Bank Services tested and completed

This commit is contained in:
2025-04-21 14:33:25 +03:00
parent 2c5f00ab1d
commit 35aab0ba11
31 changed files with 1751 additions and 15 deletions

View File

@@ -10,19 +10,18 @@ class Configs(BaseSettings):
USERNAME: str = ""
PASSWORD: str = ""
PORT: int = 0
SEND: bool = False
SEND: bool = 0
@property
def is_send(self):
return bool(self.SEND)
@classmethod
def as_dict(cls):
def as_dict(self):
return dict(
host=cls.EMAIL_HOST,
port=cls.EMAIL_PORT,
username=cls.EMAIL_USERNAME,
password=cls.EMAIL_PASSWORD,
host=self.HOST,
port=self.PORT,
username=self.USERNAME,
password=self.PASSWORD,
)
model_config = SettingsConfigDict(env_prefix="EMAIL_")