Actions
components.payment_gateway.subcomponents.accounts.business_logic.actions.account_actions ¶
AccountActions ¶
This class contains all the actions used to manage the lifecycle of an account.
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/business_logic/actions/account_actions.py
activate_account ¶
Activate an account.
Source code in components/payment_gateway/subcomponents/accounts/business_logic/actions/account_actions.py
create
classmethod
¶
Normal factory
Source code in components/payment_gateway/subcomponents/accounts/business_logic/actions/account_actions.py
create_account ¶
Create an account for an account holder.
Source code in components/payment_gateway/subcomponents/accounts/business_logic/actions/account_actions.py
create_null
classmethod
¶
Null factory
Source code in components/payment_gateway/subcomponents/accounts/business_logic/actions/account_actions.py
deactivate_account ¶
Deactivate an account.
Source code in components/payment_gateway/subcomponents/accounts/business_logic/actions/account_actions.py
terminate_account ¶
Terminate an account.
The operation is idempotent, i.e. it has no effect on already terminated entities.
Accounts in terminal state cannot be modified or used anymore. Any
attempt to use or retrieve a terminated account will raise an
AccountTerminatedException.
Source code in components/payment_gateway/subcomponents/accounts/business_logic/actions/account_actions.py
update_account ¶
Update the balance account description and reference.
New description/name for the account will be truncated to 300 characters. New optional reference for the account will be truncated to 150 characters.
Source code in components/payment_gateway/subcomponents/accounts/business_logic/actions/account_actions.py
components.payment_gateway.subcomponents.accounts.business_logic.actions.account_holder_actions ¶
AccountHolderActions ¶
This class contains all the actions related to account holders.
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/business_logic/actions/account_holder_actions.py
adyen_account_holders_client
property
¶
Ensures the Adyen client is available when accessing it.
adyen_legal_entities_client
property
¶
Ensures the Adyen client is available when accessing it.
create
classmethod
¶
Normal factory
Source code in components/payment_gateway/subcomponents/accounts/business_logic/actions/account_holder_actions.py
create_null
classmethod
¶
Null factory
Source code in components/payment_gateway/subcomponents/accounts/business_logic/actions/account_holder_actions.py
declare_account_holder ¶
Declare an account holder.
Source code in components/payment_gateway/subcomponents/accounts/business_logic/actions/account_holder_actions.py
terminate_account_holder ¶
Terminate an account holder.
The operation is idempotent, i.e. it has no effect on already terminated entities.
Account holders in terminal state cannot be modified or used anymore.
Any attempt to use or retrieve a terminated account holder will raise an
AccountHolderTerminatedException.
Source code in components/payment_gateway/subcomponents/accounts/business_logic/actions/account_holder_actions.py
update_account_holder_legal_name ¶
Update the legal name of an account holder.
This method updates the legal name of an account holder in both the database and the third party API.