TransactionPartnerUser class

Describes a transaction with a user.

Inheritance

Constructors

TransactionPartnerUser({required User user, String? invoicePayload, List<PaidMedia>? paidMedia, String? paidMediaPayload, int? subscriptionPeriod, Gift? gift, AffiliateInfo? affiliate})
Constructs a TransactionPartnerUser object.
const
TransactionPartnerUser.fromJson(Map<String, dynamic> json)
Creates a TransactionPartnerUser object from JSON.
factory

Properties

affiliate AffiliateInfo?
Optional. Information about the affiliate that received a commission via this transaction
final
gift Gift?
Optional. The gift sent to the user by the bot.
final
hashCode int
The hash code for this object.
no setterinherited
invoicePayload String?
Bot-specified invoice payload.
final
paidMedia List<PaidMedia>?
Optional. Information about the paid media bought by the user
final
paidMediaPayload String?
Optional. Bot-specified paid media payload
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subscriptionPeriod int?
Optional. The duration of the paid subscription.
final
type TransactionPartnerType
Type of the transaction partner.
no setteroverride
user User
Information about the user.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts a TransactionPartnerUser object to JSON.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited