Adapters
components.payment_gateway.subcomponents.rules.adapters.adyen ¶
helpers ¶
expense_limit_rule_to_transaction_rule_info ¶
expense_limit_rule_to_transaction_rule_info(
description,
reference,
external_card_id,
amount,
currency,
period,
criteria,
first_day=None,
is_active=True,
start=None,
end=None,
)
Convert our expense limit model into an Adyen TransactionRuleInfo for API creation calls.
Source code in components/payment_gateway/subcomponents/rules/adapters/adyen/helpers.py
to_transaction_rule_restrictions ¶
Convert our criterion model into an Adyen TransactionRuleRestrictions for API creation calls.
Source code in components/payment_gateway/subcomponents/rules/adapters/adyen/helpers.py
usage_restriction_rule_to_transaction_rule_info ¶
usage_restriction_rule_to_transaction_rule_info(
description,
reference,
external_account_id,
criteria,
is_active=True,
start=None,
end=None,
allow_zero_amount=True,
)
Convert our usage restriction model into an Adyen TransactionRuleInfo for API creation calls.