public static class TdApi.PremiumGiftCodePaymentOption 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 gift code 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.Sticker |
sticker
A sticker to be shown along with the gift code; may be null if unknown.
|
java.lang.String |
storeProductId
Identifier of the store product associated with the option; may be empty if none.
|
int |
storeProductQuantity
Number of times the store product must be paid.
|
int |
winnerCount
Number of users which will be able to activate the gift codes.
|
| Constructor and Description |
|---|
PremiumGiftCodePaymentOption()
Describes an option for creating Telegram Premium gift codes or Telegram Premium giveaway.
|
PremiumGiftCodePaymentOption(java.lang.String currency,
long amount,
int discountPercentage,
int winnerCount,
int monthCount,
java.lang.String storeProductId,
int storeProductQuantity,
TdApi.Sticker sticker)
Describes an option for creating Telegram Premium gift codes or Telegram Premium giveaway.
|
| 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 winnerCount
public int monthCount
public java.lang.String storeProductId
public int storeProductQuantity
public TdApi.Sticker sticker
public static final int CONSTRUCTOR
public PremiumGiftCodePaymentOption()
public PremiumGiftCodePaymentOption(java.lang.String currency,
long amount,
int discountPercentage,
int winnerCount,
int monthCount,
java.lang.String storeProductId,
int storeProductQuantity,
TdApi.Sticker sticker)
currency - ISO 4217 currency code for Telegram Premium gift code payment.amount - The amount to pay, in the smallest units of the currency.discountPercentage - The discount associated with this option, as a percentage.winnerCount - Number of users which will be able to activate the gift codes.monthCount - Number of months the Telegram Premium subscription will be active.storeProductId - Identifier of the store product associated with the option; may be empty if none.storeProductQuantity - Number of times the store product must be paid.sticker - A sticker to be shown along with the gift code; may be null if unknown.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object