Package org.drinkless.tdlib
Class TdApi.StarPaymentOption
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.StarPaymentOption
- Enclosing class:
- TdApi
Describes an option for buying Telegram Stars. Use telegramPaymentPurposeStars for out-of-store payments.
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongThe amount to pay, in the smallest units of the currency.static final intIdentifier uniquely determining type of the object.ISO 4217 currency code for the payment.booleanTrue, if the option must be shown only in the full list of payment options.longNumber of Telegram Stars that will be purchased.Identifier of the store product associated with the option; may be empty if none. -
Constructor Summary
ConstructorsConstructorDescriptionDescribes an option for buying Telegram Stars.StarPaymentOption(String currency, long amount, long starCount, String storeProductId, boolean isAdditional) Describes an option for buying Telegram Stars. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
currency
ISO 4217 currency code for the payment. -
amount
public long amountThe amount to pay, in the smallest units of the currency. -
starCount
public long starCountNumber of Telegram Stars that will be purchased. -
storeProductId
Identifier of the store product associated with the option; may be empty if none. -
isAdditional
public boolean isAdditionalTrue, if the option must be shown only in the full list of payment options. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
StarPaymentOption
public StarPaymentOption()Describes an option for buying Telegram Stars. Use telegramPaymentPurposeStars for out-of-store payments. -
StarPaymentOption
public StarPaymentOption(String currency, long amount, long starCount, String storeProductId, boolean isAdditional) Describes an option for buying Telegram Stars. Use telegramPaymentPurposeStars for out-of-store payments.- Parameters:
currency- ISO 4217 currency code for the payment.amount- The amount to pay, in the smallest units of the currency.starCount- Number of Telegram Stars that will be purchased.storeProductId- Identifier of the store product associated with the option; may be empty if none.isAdditional- True, if the option must be shown only in the full list of payment options.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-