Enums#
PaymentMethodInt#
- class aioplatega.enums.payment_method_int.PaymentMethodInt[source]#
Bases:
IntEnumSupported payment method identifiers.
Note
Drawn from both published specifications. The Apidog schema at https://docs.platega.io lists 2, 3, 11, 12 and 13; the older GitBook additionally names 10. Its table also notes that methods 1 through 9 are P2P, which is why the subscription endpoint takes a method id that is not a member here.
- SBP_QR = 2#
SBP QR code, plus SberPay where the merchant has it enabled.
- ERIP = 3#
ERIP (Belarusian payment system).
- CARDS_RUB = 10#
Card payments in RUB, 3-D Secure, MIR cards.
Named in the GitBook table but absent from the Apidog enum.
- __new__(value)#
- CARD_ACQUIRING = 11#
Card acquiring.
- INTERNATIONAL_ACQUIRING = 12#
International payments.
- CRYPTO = 13#
Cryptocurrency.
PaymentStatus#
- class aioplatega.enums.payment_status.PaymentStatus[source]#
Bases:
StrEnumTransaction payment status.
Note
Platega publishes two specifications that disagree. The Apidog schema at https://docs.platega.io lists
PENDING,CANCELED,CONFIRMEDandCHARGEBACKED; the older GitBook listsPENDING,CONFIRMED,EXPIRED,CANCELEDandFAILED. Both sets are accepted here, since the API answers with values from each.Response models type their status field as
PaymentStatus | str, so a value absent from both lists still parses rather than making the whole response unreadable.- PENDING = 'PENDING'#
Awaiting payment.
- CONFIRMED = 'CONFIRMED'#
Paid.
- CANCELED = 'CANCELED'#
Payment failed or was cancelled.
- __new__(value)#
- CHARGEBACKED = 'CHARGEBACKED'#
Funds were charged back.
- EXPIRED = 'EXPIRED'#
The payment window closed before the payer completed it.
- FAILED = 'FAILED'#
The payment could not be created.
SubscriptionStatus#
CallbackSubscriptionStatus#
- class aioplatega.enums.callback_subscription_status.CallbackSubscriptionStatus[source]#
Bases:
StrEnumSubscription status as delivered in a subscription callback.
Distinct from
SubscriptionStatus: the callback reports transitions in SCREAMING_SNAKE form, the resource reports state in PascalCase.- ACTIVATED = 'SUBSCRIPTION_ACTIVATED'#
- PAST_DUE = 'SUBSCRIPTION_PAST_DUE'#
- CANCELLED = 'SUBSCRIPTION_CANCELLED'#
- FAILED = 'SUBSCRIPTION_FAILED'#
- __new__(value)#
SubscriptionInterval#
- class aioplatega.enums.subscription_interval.SubscriptionInterval[source]#
Bases:
StrEnumHow often a subscription charges.
Required when creating a subscription, as
paymentDetails.interval.- DAY = '1'#
Charged daily.
- WEEK = '2'#
Charged weekly.
- __new__(value)#
- MONTH = '3'#
Charged monthly.
- YEAR = '4'#
Charged yearly.