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
def inactivate_account(account: Account): account.status = AccountStatus.INACTIVE.name account.save() return account