TransactionPartnerFragment

class aiogram.types.transaction_partner_fragment.TransactionPartnerFragment(*, type: Literal[TransactionPartnerType.FRAGMENT] = TransactionPartnerType.FRAGMENT, withdrawal_state: RevenueWithdrawalStatePending | RevenueWithdrawalStateSucceeded | RevenueWithdrawalStateFailed | None = None, **extra_data: Any)[source]

Describes a withdrawal transaction with Fragment.

Source: https://core.telegram.org/bots/api#transactionpartnerfragment

type: Literal[TransactionPartnerType.FRAGMENT]

Type of the transaction partner, always ‘fragment’

model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_post_init(context: Any, /) None

We need to both initialize private attributes and call the user-defined model_post_init method.

withdrawal_state: RevenueWithdrawalStatePending | RevenueWithdrawalStateSucceeded | RevenueWithdrawalStateFailed | None

Optional. State of the transaction if the transaction is outgoing