Types¶
All Pydantic models are immutable (frozen=True) and support extra fields.
Base¶
- class aioplatega.types.base.PlategaObject[source]¶
Bases:
BaseModelBase 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- 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¶
- 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].
-
payment_method:
CreateTransactionResponse¶
- class aioplatega.types.create_transaction_response.CreateTransactionResponse[source]¶
Bases:
PlategaObject-
payment_details:
Union[str,PaymentDetails,None]¶
-
status:
PaymentStatus¶
- 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].
-
payment_details:
TransactionStatusResponse¶
- class aioplatega.types.transaction_status_response.TransactionStatusResponse[source]¶
Bases:
PlategaObject-
status:
Optional[PaymentStatus]¶
-
payment_details:
Optional[PaymentDetails]¶
- 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].
-
status:
RateResponse¶
- class aioplatega.types.rate_response.RateResponse[source]¶
Bases:
PlategaObject- 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- 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]¶
- 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].
-
content:
CallbackPayload¶
- class aioplatega.types.callback_payload.CallbackPayload[source]¶
Bases:
PlategaObject- 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].