PremiumPaymentOption class
Describes an option for buying Telegram Premium to a user.
- Inheritance
- Available Extensions
Constructors
- PremiumPaymentOption({required String currency, required int amount, required int discount_percentage, required int month_count, required String store_product_id, InternalLinkType? payment_link, int? extra, int? clientId})
- Describes an option for buying Telegram Premium to a user
Properties
- amount ↔ int
-
The amount to pay, in the smallest units of the currency.
read / write
- clientId ↔ int?
-
TDLib client instance identifier, for which the response was received.
read / writeoverride
- currency ↔ String
-
ISO 4217 currency code for Telegram Premium subscription payment.
read / write
- discount_percentage ↔ int
-
The discount associated with this option, as a percentage.
read / write
- extra ↔ int?
-
Request identifier. Must be non-zero.
read / writeoverride
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- month_count ↔ int
-
Number of month the Telegram Premium subscription will be active.
read / write
- payment_link ↔ InternalLinkType?
-
An internal link to be opened for buying Telegram Premium to the user if store payment isn't possible; may be null if direct payment isn't available.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- store_product_id ↔ String
-
Identifier of the store product associated with the option.
read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Object to Map serializer
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromMap(
Map< String, dynamic> ? _map) → PremiumPaymentOption? -
Construct from Map.
override
Constants
- CONSTRUCTOR → const String
-
@type
"premiumPaymentOption"