Class TdApi.PremiumGiftCodePaymentOption
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.PremiumGiftCodePaymentOption
- Enclosing class:
- TdApi
Describes an option for creating Telegram Premium gift codes. Use telegramPaymentPurposePremiumGiftCodes for out-of-store payments.
-
Field Summary
Modifier and TypeFieldDescriptionlong
The amount to pay, in the smallest units of the currency.static final int
Identifier uniquely determining type of the object.ISO 4217 currency code for Telegram Premium gift code payment.int
Number of months the Telegram Premium subscription will be active.Identifier of the store product associated with the option; may be empty if none.int
Number of times the store product must be paid.int
Number of users which will be able to activate the gift codes. -
Constructor Summary
ConstructorDescriptionDescribes an option for creating Telegram Premium gift codes.PremiumGiftCodePaymentOption
(String currency, long amount, int userCount, int monthCount, String storeProductId, int storeProductQuantity) Describes an option for creating Telegram Premium gift codes. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Object
toString
-
Field Details
-
currency
ISO 4217 currency code for Telegram Premium gift code payment. -
amount
public long amountThe amount to pay, in the smallest units of the currency. -
userCount
public int userCountNumber of users which will be able to activate the gift codes. -
monthCount
public int monthCountNumber 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
public int storeProductQuantityNumber of times the store product must be paid. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
PremiumGiftCodePaymentOption
public PremiumGiftCodePaymentOption()Describes an option for creating Telegram Premium gift codes. Use telegramPaymentPurposePremiumGiftCodes for out-of-store payments. -
PremiumGiftCodePaymentOption
public PremiumGiftCodePaymentOption(String currency, long amount, int userCount, int monthCount, String storeProductId, int storeProductQuantity) Describes an option for creating Telegram Premium gift codes. Use telegramPaymentPurposePremiumGiftCodes for out-of-store payments.- Parameters:
currency
- ISO 4217 currency code for Telegram Premium gift code payment.amount
- The amount to pay, in the smallest units of the currency.userCount
- 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.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-