Enums#

PaymentMethodInt#

class aioplatega.enums.payment_method_int.PaymentMethodInt[source]#

Bases: IntEnum

Supported 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: StrEnum

Transaction payment status.

Note

Platega publishes two specifications that disagree. The Apidog schema at https://docs.platega.io lists PENDING, CANCELED, CONFIRMED and CHARGEBACKED; the older GitBook lists PENDING, CONFIRMED, EXPIRED, CANCELED and FAILED. 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#

class aioplatega.enums.subscription_status.SubscriptionStatus[source]#

Bases: StrEnum

Lifecycle state of a recurring SBP subscription.

PENDING_AGREEMENT = 'PendingAgreement'#
ACTIVE = 'Active'#
PAST_DUE = 'PastDue'#
CANCELLED = 'Cancelled'#
FAILED = 'Failed'#
__new__(value)#

CallbackSubscriptionStatus#

class aioplatega.enums.callback_subscription_status.CallbackSubscriptionStatus[source]#

Bases: StrEnum

Subscription 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: StrEnum

How 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.