TransactionPartnerAffiliateProgram class
Describes the affiliate program that issued the affiliate commission received via this transaction.
- Inheritance
-
- Object
- TransactionPartner
- TransactionPartnerAffiliateProgram
Constructors
- TransactionPartnerAffiliateProgram({User? sponsorUser, required int commissionPerMille})
-
Constructs a TransactionPartnerAffiliateProgram object.
const
-
TransactionPartnerAffiliateProgram.fromJson(Map<
String, dynamic> json) -
Creates a TransactionPartnerAffiliateProgram object from JSON.
factory
Properties
- commissionPerMille → int
-
The number of Telegram Stars received by the bot for each 1000 Telegram
Stars received by the affiliate program sponsor from referred users.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sponsorUser → User?
-
Information about the bot that sponsored the affiliate program.
final
- type → TransactionPartnerType
-
Type of the transaction partner.
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts a TransactionPartnerAffiliateProgram object to JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited