public static class TdApi.StarPaymentOption 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 the payment.
|
boolean |
isAdditional
True, if the option must be shown only in the full list of payment options.
|
long |
starCount
Number of Telegram Stars that will be purchased.
|
java.lang.String |
storeProductId
Identifier of the store product associated with the option; may be empty if none.
|
| Constructor and Description |
|---|
StarPaymentOption()
Describes an option for buying Telegram Stars.
|
StarPaymentOption(java.lang.String currency,
long amount,
long starCount,
java.lang.String storeProductId,
boolean isAdditional)
Describes an option for buying Telegram Stars.
|
| 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 long starCount
public java.lang.String storeProductId
public boolean isAdditional
public static final int CONSTRUCTOR
public StarPaymentOption()
public StarPaymentOption(java.lang.String currency,
long amount,
long starCount,
java.lang.String storeProductId,
boolean isAdditional)
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.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object