Package org.drinkless.tdlib
Class TdApi.SetAuthenticationPremiumPurchaseTransaction
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Function<TdApi.Ok>
org.drinkless.tdlib.TdApi.SetAuthenticationPremiumPurchaseTransaction
- Enclosing class:
- TdApi
public static class TdApi.SetAuthenticationPremiumPurchaseTransaction
extends TdApi.Function<TdApi.Ok>
Informs server about an in-store purchase of Telegram Premium before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase.
Returns Ok
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongPaid amount, in the smallest units of the currency.static final intIdentifier uniquely determining type of the object.ISO 4217 currency code of the payment currency.booleanPass true if this is a restore of a Telegram Premium purchase; only for App Store.Information about the transaction. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which informs server about an in-store purchase of Telegram Premium before authorization.SetAuthenticationPremiumPurchaseTransaction(TdApi.StoreTransaction transaction, boolean isRestore, String currency, long amount) Creates a function, which informs server about an in-store purchase of Telegram Premium before authorization. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
transaction
Information about the transaction. -
isRestore
public boolean isRestorePass true if this is a restore of a Telegram Premium purchase; only for App Store. -
currency
ISO 4217 currency code of the payment currency. -
amount
public long amountPaid amount, in the smallest units of the currency. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
SetAuthenticationPremiumPurchaseTransaction
public SetAuthenticationPremiumPurchaseTransaction()Default constructor for a function, which informs server about an in-store purchase of Telegram Premium before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase.Returns
Ok -
SetAuthenticationPremiumPurchaseTransaction
public SetAuthenticationPremiumPurchaseTransaction(TdApi.StoreTransaction transaction, boolean isRestore, String currency, long amount) Creates a function, which informs server about an in-store purchase of Telegram Premium before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase.Returns
Ok- Parameters:
transaction- Information about the transaction.isRestore- Pass true if this is a restore of a Telegram Premium purchase; only for App Store.currency- ISO 4217 currency code of the payment currency.amount- Paid amount, in the smallest units of the currency.
-
-
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
-