Actions
components.payment_gateway.subcomponents.cards.business_logic.actions.card_authentication_actions ¶
CARD_ISSUING_CONFIGURATIONS_CONFIG_KEY
module-attribute
¶
CardAuthenticationActions ¶
CardAuthenticationActions(
adyen_client,
default_card_configuration_key,
card_configurations,
card_reveal_queries,
)
This class contains all the actions relative to card authentication.
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/business_logic/actions/card_authentication_actions.py
create
classmethod
¶
Normal factory
Source code in components/payment_gateway/subcomponents/cards/business_logic/actions/card_authentication_actions.py
create_null
classmethod
¶
Null factory
Source code in components/payment_gateway/subcomponents/cards/business_logic/actions/card_authentication_actions.py
default_card_configuration_key
instance-attribute
¶
edit_card_authentication_info ¶
Edit the contact info for card card authentication.
Note
This operation is currently only supported for Adyen.
Source code in components/payment_gateway/subcomponents/cards/business_logic/actions/card_authentication_actions.py
DEFAULT_CARD_ISSUING_CONFIGURATION_KEY_CONFIG_KEY
module-attribute
¶
DEFAULT_CARD_ISSUING_CONFIGURATION_KEY_CONFIG_KEY = (
"ADYEN_DEFAULT_CARD_ISSUING_CONFIGURATION_KEY"
)
components.payment_gateway.subcomponents.cards.business_logic.actions.card_delivery_actions ¶
CardDeliveryActions ¶
This class contains all the actions related to the delivery of a card.
create_card_order ¶
create_card_order(
session,
/,
workspace_key,
external_card_id,
delivery_status,
shipping_method,
tracking_number=None,
)
Create a card order upon reception of a card order creation event.
Source code in components/payment_gateway/subcomponents/cards/business_logic/actions/card_delivery_actions.py
declare_card_not_received ¶
Declare that a card has not been received by the card holder.
This can happen if the card has been lost or stolen during the shipment.
Source code in components/payment_gateway/subcomponents/cards/business_logic/actions/card_delivery_actions.py
declare_card_received ¶
Declare that a card has been received by the card holder.
Source code in components/payment_gateway/subcomponents/cards/business_logic/actions/card_delivery_actions.py
update_card_order ¶
update_card_order(
session,
/,
workspace_key,
external_card_id,
delivery_status,
tracking_number=None,
)
Update a card order upon reception of a card order update event.
Source code in components/payment_gateway/subcomponents/cards/business_logic/actions/card_delivery_actions.py
components.payment_gateway.subcomponents.cards.business_logic.actions.card_renewal_actions ¶
CardRenewalActions ¶
This class contains all the actions related to the renewal of a card.
renew_card ¶
Renew a card.
Renewal can be triggered by the business logic or the card holder. For example, if the card is about to expire or is declared lost, stolen or damaged.
Source code in components/payment_gateway/subcomponents/cards/business_logic/actions/card_renewal_actions.py
components.payment_gateway.subcomponents.cards.business_logic.actions.card_status_actions ¶
CardStatusActions ¶
This class contains all the actions used to change the status of a 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/business_logic/actions/card_status_actions.py
activate_card ¶
Activate a card.
Source code in components/payment_gateway/subcomponents/cards/business_logic/actions/card_status_actions.py
close_card ¶
Close a card. This is non-revertible.
Source code in components/payment_gateway/subcomponents/cards/business_logic/actions/card_status_actions.py
create
classmethod
¶
Normal factory
Source code in components/payment_gateway/subcomponents/cards/business_logic/actions/card_status_actions.py
create_null
classmethod
¶
Null factory
Source code in components/payment_gateway/subcomponents/cards/business_logic/actions/card_status_actions.py
suspend_card ¶
Suspend a card.