Bank Services tested and completed
This commit is contained in:
38
BankServices/ServiceDepends/config.py
Normal file
38
BankServices/ServiceDepends/config.py
Normal file
@@ -0,0 +1,38 @@
|
||||
import os
|
||||
|
||||
|
||||
class Config:
|
||||
|
||||
MAILBOX: str = os.getenv("MAILBOX", "bilgilendirme@ileti.isbank.com.tr")
|
||||
MAIN_MAIL: str = os.getenv("MAIN_MAIL", "karatay.berkay@gmail.com")
|
||||
INFO_MAIL: str = os.getenv("INFO_MAIL", "mehmet.karatay@hotmail.com")
|
||||
EMAIL_HOST: str = os.getenv("EMAIL_HOST", "10.10.2.34")
|
||||
EMAIL_SENDER_USERNAME: str = os.getenv(
|
||||
"EMAIL_SENDER_USERNAME", "karatay@mehmetkaratay.com.tr"
|
||||
)
|
||||
EMAIL_USERNAME: str = os.getenv("EMAIL_USERNAME", "isbank@mehmetkaratay.com.tr")
|
||||
EMAIL_PASSWORD: str = os.getenv("EMAIL_PASSWORD", "system")
|
||||
AUTHORIZE_IBAN: str = os.getenv("AUTHORIZE_IBAN", "4245-0093333")
|
||||
SERVICE_TIMING: int = int(os.getenv("SERVICE_TIMING", 900))
|
||||
EMAIL_PORT: int = int(os.getenv("EMAIL_PORT", 993))
|
||||
EMAIL_SEND_PORT: int = int(os.getenv("EMAIL_SEND_PORT", 587))
|
||||
EMAIL_SLEEP: int = int(os.getenv("EMAIL_SLEEP", 60))
|
||||
EMAIL_SEND: bool = bool(os.getenv("EMAIL_SEND", False))
|
||||
|
||||
|
||||
class EmailConfig:
|
||||
|
||||
EMAIL_HOST: str = os.getenv("EMAIL_HOST", "10.10.2.34")
|
||||
EMAIL_USERNAME: str = Config.EMAIL_SENDER_USERNAME
|
||||
EMAIL_PASSWORD: str = Config.EMAIL_PASSWORD
|
||||
EMAIL_PORT: int = Config.EMAIL_SEND_PORT
|
||||
EMAIL_SEND: bool = Config.EMAIL_SEND
|
||||
|
||||
@classmethod
|
||||
def as_dict(cls):
|
||||
return dict(
|
||||
host=EmailConfig.EMAIL_HOST,
|
||||
port=EmailConfig.EMAIL_PORT,
|
||||
username=EmailConfig.EMAIL_USERNAME,
|
||||
password=EmailConfig.EMAIL_PASSWORD,
|
||||
)
|
||||
Reference in New Issue
Block a user