Business logic
Account Holders¶
AccountHolderLogic ¶
This class is the public interface to the account holder logic.
Implements the following Nullable patterns: - Nullables: https://www.jamesshore.com/v2/projects/nullables/testing-without-mocks#nullables ⧉ - Parameterless instantiation: https://www.jamesshore.com/v2/projects/nullables/testing-without-mocks#instantiation ⧉
Source code in components/payment_gateway/subcomponents/accounts/protected/business_logic/account_holders.py
create
classmethod
¶
create_null
classmethod
¶
Null factory
declare_account_holder ¶
Declare an account holder.
Source code in components/payment_gateway/subcomponents/accounts/protected/business_logic/account_holders.py
get_account_holder ¶
Get an account holder entity from its ID.
Source code in components/payment_gateway/subcomponents/accounts/protected/business_logic/account_holders.py
get_account_holder_id_by_external_id ¶
Get an account holder entity from its external ID.
Source code in components/payment_gateway/subcomponents/accounts/protected/business_logic/account_holders.py
terminate_account_holder ¶
Terminate an account holder.
Account holders in terminal state cannot be modified or used anymore.
Source code in components/payment_gateway/subcomponents/accounts/protected/business_logic/account_holders.py
update_account_holder_legal_name ¶
Update the legal name of an account holder.
Source code in components/payment_gateway/subcomponents/accounts/protected/business_logic/account_holders.py
Accounts¶
AccountLogic ¶
This class is the public interface to the account logic.
Implements the following Nullable patterns: - Nullables: https://www.jamesshore.com/v2/projects/nullables/testing-without-mocks#nullables ⧉ - Parameterless instantiation: https://www.jamesshore.com/v2/projects/nullables/testing-without-mocks#instantiation ⧉
Source code in components/payment_gateway/subcomponents/accounts/protected/business_logic/accounts.py
activate_account ¶
Activate an account.
Source code in components/payment_gateway/subcomponents/accounts/protected/business_logic/accounts.py
create
classmethod
¶
create_account ¶
Create an account for an account holder.
Source code in components/payment_gateway/subcomponents/accounts/protected/business_logic/accounts.py
create_null
classmethod
¶
Null factory
Source code in components/payment_gateway/subcomponents/accounts/protected/business_logic/accounts.py
deactivate_account ¶
Deactivate an account.
Source code in components/payment_gateway/subcomponents/accounts/protected/business_logic/accounts.py
get_account ¶
Get an account entity from its ID.
Source code in components/payment_gateway/subcomponents/accounts/protected/business_logic/accounts.py
get_account_id_by_external_id ¶
Find an account using its external id.
Source code in components/payment_gateway/subcomponents/accounts/protected/business_logic/accounts.py
get_account_ids_for_account_holder ¶
Get all the account IDs for an account holder.
Source code in components/payment_gateway/subcomponents/accounts/protected/business_logic/accounts.py
get_accounts_for_account_holder ¶
Get all the accounts for an account holder.
Source code in components/payment_gateway/subcomponents/accounts/protected/business_logic/accounts.py
terminate_account ¶
Terminate an account.
Accounts in terminal state cannot be modified or used anymore.
Source code in components/payment_gateway/subcomponents/accounts/protected/business_logic/accounts.py
update_account ¶
Update the account description and reference