Actions
components.payment_gateway.subcomponents.cards.protected.business_logic.actions.card_holder_actions ¶
CardHolderActions ¶
This class contains all the actions related to card 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/cards/protected/business_logic/actions/card_holder_actions.py
card_authentication_actions
instance-attribute
¶
create
classmethod
¶
Normal factory
Source code in components/payment_gateway/subcomponents/cards/protected/business_logic/actions/card_holder_actions.py
create_null
classmethod
¶
Null factory
Source code in components/payment_gateway/subcomponents/cards/protected/business_logic/actions/card_holder_actions.py
declare_card_holder ¶
declare_card_holder(
session,
/,
workspace_key,
external_id,
first_name,
last_name,
display_name=None,
short_name=None,
)
Declare a card holder.
The card holder must exist in the PSP workspace if an external ID is provided.
Source code in components/payment_gateway/subcomponents/cards/protected/business_logic/actions/card_holder_actions.py
terminate_card_holder ¶
Terminate a card holder.
The operation is idempotent, i.e. it has no effect on already terminated entities.
Card holders in terminal state cannot be modified or used anymore. Any
attempt to use or retrieve a terminated card holder will raise a
CardHolderTerminatedException.
Source code in components/payment_gateway/subcomponents/cards/protected/business_logic/actions/card_holder_actions.py
update_card_holder_contact_info ¶
Update the card holder contact info on the PSP. Phone number is needed to add cards to digital wallets. Email is optional as a second option for adding cards to digit wallets.
Source code in components/payment_gateway/subcomponents/cards/protected/business_logic/actions/card_holder_actions.py
update_card_holder_identity ¶
Update the identity of a card holder.
The current identity of a card holder is used when issuing a card. The identity of a card holder may change over time, but cards are immutable.
Source code in components/payment_gateway/subcomponents/cards/protected/business_logic/actions/card_holder_actions.py
components.payment_gateway.subcomponents.cards.protected.business_logic.actions.card_incidents_actions ¶
CardIncidentsActions ¶
This class contains all the actions relative to card incidents.
Incidents should eventually lead to the replacement of the card.
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/cards/protected/business_logic/actions/card_incidents_actions.py
create
classmethod
¶
Normal factory
Source code in components/payment_gateway/subcomponents/cards/protected/business_logic/actions/card_incidents_actions.py
create_null
classmethod
¶
Null factory
Source code in components/payment_gateway/subcomponents/cards/protected/business_logic/actions/card_incidents_actions.py
declare_card_damaged ¶
Declare a card as damaged.
Source code in components/payment_gateway/subcomponents/cards/protected/business_logic/actions/card_incidents_actions.py
declare_card_lost ¶
Declare a card as lost.
Source code in components/payment_gateway/subcomponents/cards/protected/business_logic/actions/card_incidents_actions.py
declare_card_stolen ¶
Declare a card as stolen.
Source code in components/payment_gateway/subcomponents/cards/protected/business_logic/actions/card_incidents_actions.py
declare_card_temporarily_suspended ¶
Declare a card as temporarily suspended.