Policies
components.payment_gateway.subcomponents.transfers.business_logic.policies.account_transfer_processor ¶
AccountTransferProcessorPolicy ¶
This class is responsible for processing account transfer events (a.k.a internal transfer from Adyen).
It processes Adyen transfer notifications of type internalTransfer or invoiceDeduction.
Source code in components/payment_gateway/subcomponents/transfers/business_logic/policies/account_transfer_processor.py
on_account_transfer_received ¶
Source code in components/payment_gateway/subcomponents/transfers/business_logic/policies/account_transfer_processor.py
components.payment_gateway.subcomponents.transfers.business_logic.policies.bank_transfer_processor ¶
BankTransferProcessorPolicy ¶
This class is responsible for processing bank transfer events.
It processes Adyen transfer notifications of type bankTransfer.
Source code in components/payment_gateway/subcomponents/transfers/business_logic/policies/bank_transfer_processor.py
on_bank_transfer_received ¶
Source code in components/payment_gateway/subcomponents/transfers/business_logic/policies/bank_transfer_processor.py
components.payment_gateway.subcomponents.transfers.business_logic.policies.card_transfer_processor ¶
CardTransferProcessorPolicy ¶
This class is responsible for processing card transfer events.
It processes Adyen transfer notifications of type payment.
Source code in components/payment_gateway/subcomponents/transfers/business_logic/policies/card_transfer_processor.py
merchant_registry_policy
instance-attribute
¶
on_payment_received ¶
Source code in components/payment_gateway/subcomponents/transfers/business_logic/policies/card_transfer_processor.py
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 | |
components.payment_gateway.subcomponents.transfers.business_logic.policies.helpers ¶
record_ledger_entry_for_transfer_event ¶
Record a new ledger entry matching the balance change of the provided transfer event.
Does nothing if the balance change is zero.
Note
The function makes no assumption about multiple ledger entries sharing the same external_id, deduplication is the caller's responsibility to ensure there is no double accounting of the same event.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ledger_logic
|
LedgerLogic
|
The ledger logic instance to use. |
required |
ledger_id
|
LedgerId
|
The ID of the ledger to record the entry in. |
required |
transfer_event
|
TransferEvent
|
The transfer event to record the ledger entry for. |
required |