public static class TdApi.PremiumPaymentOption extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
long |
amount
The amount to pay, in the smallest units of the currency.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
java.lang.String |
currency
ISO 4217 currency code for Telegram Premium subscription payment.
|
int |
discountPercentage
The discount associated with this option, as a percentage.
|
int |
monthCount
Number of months the Telegram Premium subscription will be active.
|
TdApi.InternalLinkType |
paymentLink
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.
|
java.lang.String |
storeProductId
Identifier of the store product associated with the option.
|
| Constructor and Description |
|---|
PremiumPaymentOption()
Describes an option for buying Telegram Premium to a user.
|
PremiumPaymentOption(java.lang.String currency,
long amount,
int discountPercentage,
int monthCount,
java.lang.String storeProductId,
TdApi.InternalLinkType paymentLink)
Describes an option for buying Telegram Premium to a user.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic java.lang.String currency
public long amount
public int discountPercentage
public int monthCount
public java.lang.String storeProductId
public TdApi.InternalLinkType paymentLink
public static final int CONSTRUCTOR
public PremiumPaymentOption()
public PremiumPaymentOption(java.lang.String currency,
long amount,
int discountPercentage,
int monthCount,
java.lang.String storeProductId,
TdApi.InternalLinkType paymentLink)
currency - ISO 4217 currency code for Telegram Premium subscription payment.amount - The amount to pay, in the smallest units of the currency.discountPercentage - The discount associated with this option, as a percentage.monthCount - Number of months the Telegram Premium subscription will be active. Use getPremiumInfoSticker to get the sticker to be used as representation of the Telegram Premium subscription.storeProductId - Identifier of the store product associated with the option.paymentLink - 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.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object