Actions
components.payment_gateway.subcomponents.cards.business_logic.actions.card_authentication_actions ¶
CardAuthenticationActions ¶
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
edit_card_authentication_info ¶
Edit the contact info for card card authentication.
Source code in components/payment_gateway/subcomponents/cards/business_logic/actions/card_authentication_actions.py
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,
/,
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 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_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/business_logic/actions/card_holder_actions.py
card_authentication_actions
instance-attribute
¶
create
classmethod
¶
Normal factory
Source code in components/payment_gateway/subcomponents/cards/business_logic/actions/card_holder_actions.py
create_null
classmethod
¶
Null factory
Source code in components/payment_gateway/subcomponents/cards/business_logic/actions/card_holder_actions.py
declare_card_holder ¶
declare_card_holder(
session,
/,
first_name,
last_name,
display_name=None,
short_name=None,
provider=PaymentServiceProvider.adyen,
external_id=None,
)
Declare a card holder.
Source code in components/payment_gateway/subcomponents/cards/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/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/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/business_logic/actions/card_holder_actions.py
components.payment_gateway.subcomponents.cards.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/business_logic/actions/card_incidents_actions.py
create
classmethod
¶
Normal factory
Source code in components/payment_gateway/subcomponents/cards/business_logic/actions/card_incidents_actions.py
create_null
classmethod
¶
Null factory
Source code in components/payment_gateway/subcomponents/cards/business_logic/actions/card_incidents_actions.py
declare_card_damaged ¶
Declare a card as damaged.
Source code in components/payment_gateway/subcomponents/cards/business_logic/actions/card_incidents_actions.py
declare_card_lost ¶
Declare a card as lost.
Source code in components/payment_gateway/subcomponents/cards/business_logic/actions/card_incidents_actions.py
declare_card_stolen ¶
Declare a card as stolen.
Source code in components/payment_gateway/subcomponents/cards/business_logic/actions/card_incidents_actions.py
declare_card_temporarily_suspended ¶
Declare a card as temporarily suspended.
Source code in components/payment_gateway/subcomponents/cards/business_logic/actions/card_incidents_actions.py
components.payment_gateway.subcomponents.cards.business_logic.actions.card_lifecycle_actions ¶
CARD_PASSWORD_SALT_CONFIG_KEY
module-attribute
¶
CARD_PASSWORD_SALT_DEFAULT_KEY
module-attribute
¶
CardLifecycleActions ¶
This class contains all the actions used to manage the lifecycle 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_lifecycle_actions.py
create
classmethod
¶
Normal factory
Source code in components/payment_gateway/subcomponents/cards/business_logic/actions/card_lifecycle_actions.py
create_card ¶
create_card(
session,
/,
card_holder_id,
account_id,
form_factor,
phone_number,
email,
shipment_info=None,
issued_at=None,
issuance_reason=None,
description=None,
reference=None,
configuration=None,
)
Create a card for a card holder.
Source code in components/payment_gateway/subcomponents/cards/business_logic/actions/card_lifecycle_actions.py
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 | |
create_null
classmethod
¶
Null factory
Source code in components/payment_gateway/subcomponents/cards/business_logic/actions/card_lifecycle_actions.py
terminate_card ¶
Terminate a card.
The operation is idempotent, i.e. it has no effect on already terminated entities.
Cards in terminal state cannot be modified or used anymore. Any attempt
to use or retrieve a terminated card will raise a
CardTerminatedException.
Source code in components/payment_gateway/subcomponents/cards/business_logic/actions/card_lifecycle_actions.py
components.payment_gateway.subcomponents.cards.business_logic.actions.card_provisioning_actions ¶
CardProvisioningActions ¶
This class contains all the actions related to card provisioning.
create_card_provisioning ¶
create_card_provisioning(
session,
/,
card_id,
provider,
external_id,
provisioning_type,
provisioning_date,
wallet_provider,
)
Create a card provisioning for the given card.
Source code in components/payment_gateway/subcomponents/cards/business_logic/actions/card_provisioning_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.