Types

All Pydantic models are immutable (frozen=True) and support extra fields.

Base

class aioplatega.types.base.PlategaObject[source]

Bases: BaseModel

Base model for all Platega API objects.

Configured as immutable (frozen=True) with extra fields allowed.

model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'defer_build': True, 'extra': 'allow', 'frozen': True, 'populate_by_name': True, 'use_enum_values': True, 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

PaymentDetails

class aioplatega.types.payment_details.PaymentDetails[source]

Bases: PlategaObject

amount: float
currency: str
model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'defer_build': True, 'extra': 'allow', 'frozen': True, 'populate_by_name': True, 'use_enum_values': True, 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

CreateTransactionRequest

class aioplatega.types.create_transaction_request.CreateTransactionRequest[source]

Bases: PlategaObject

payment_method: PaymentMethodInt
payment_details: PaymentDetails
description: Optional[str]
return_url: Optional[str]
failed_url: Optional[str]
payload: Optional[str]
model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'defer_build': True, 'extra': 'allow', 'frozen': True, 'populate_by_name': True, 'use_enum_values': True, 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

CreateTransactionResponse

class aioplatega.types.create_transaction_response.CreateTransactionResponse[source]

Bases: PlategaObject

payment_method: Optional[str]
transaction_id: UUID
redirect: Optional[str]
return_url: Optional[str]
payment_details: Union[str, PaymentDetails, None]
status: PaymentStatus
expires_in: Optional[str]
merchant_id: Optional[UUID]
usdt_rate: Optional[float]
model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'defer_build': True, 'extra': 'allow', 'frozen': True, 'populate_by_name': True, 'use_enum_values': True, 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

TransactionStatusResponse

class aioplatega.types.transaction_status_response.TransactionStatusResponse[source]

Bases: PlategaObject

id: Optional[UUID]
status: Optional[PaymentStatus]
payment_details: Optional[PaymentDetails]
merchant_name: Optional[str]
merchant_id: Optional[UUID]
commission: Optional[float]
payment_method: Optional[str]
expires_in: Optional[str]
return_url: Optional[str]
commission_usdt: Optional[float]
amount_usdt: Optional[float]
qr: Optional[str]
pay_form_success_url: Optional[str]
payload: Optional[str]
commission_type: Optional[int]
external_id: Optional[str]
description: Optional[str]
model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'defer_build': True, 'extra': 'allow', 'frozen': True, 'populate_by_name': True, 'use_enum_values': True, 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

RateResponse

class aioplatega.types.rate_response.RateResponse[source]

Bases: PlategaObject

payment_method: Optional[int]
currency_from: Optional[str]
currency_to: Optional[str]
rate: Optional[float]
updated_at: Optional[datetime]
model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'defer_build': True, 'extra': 'allow', 'frozen': True, 'populate_by_name': True, 'use_enum_values': True, 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

ConversionItem

class aioplatega.types.conversion_item.ConversionItem[source]

Bases: PlategaObject

id: Optional[int]
amount: Optional[float]
currency: Optional[str]
status: Optional[str]
created_at: Optional[datetime]
model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'defer_build': True, 'extra': 'allow', 'frozen': True, 'populate_by_name': True, 'use_enum_values': True, 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

ConversionsResponse

class aioplatega.types.conversions_response.ConversionsResponse[source]

Bases: PlategaObject

content: list[ConversionItem]
total_elements: int
total_pages: int
page: int
size: int
model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'defer_build': True, 'extra': 'allow', 'frozen': True, 'populate_by_name': True, 'use_enum_values': True, 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

CallbackPayload

class aioplatega.types.callback_payload.CallbackPayload[source]

Bases: PlategaObject

id: UUID
amount: float
currency: str
status: str
payment_method: int
payload: Optional[str]
model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'defer_build': True, 'extra': 'allow', 'frozen': True, 'populate_by_name': True, 'use_enum_values': True, 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].