Example #1
0
def enter_account(name: str, description: str, type: AccountType) -> Account:

    account = Account()
    account.account_name = name
    account.description = description
    account.type = type.name
    account.status = AccountStatus.ACTIVE.name

    account.save()

    return account
Example #2
0
def inactivate_account(account: Account):
    account.status = AccountStatus.INACTIVE.name

    account.save()

    return account