Package org.drinkless.tdlib
Class TdApi.MessagePaymentSuccessfulBot
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.MessageContent
org.drinkless.tdlib.TdApi.MessagePaymentSuccessfulBot
- Enclosing class:
- TdApi
A payment has been completed; for bots only.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.MessageContent
TdApi.MessageContent.Constructors -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.Currency for price of the product.byte[]Invoice payload.booleanTrue, if this is the first recurring payment.booleanTrue, if this is a recurring payment.Information about the order; may be null.Provider payment identifier.Identifier of the shipping option chosen by the user; may be empty if not applicable.Telegram payment identifier.longTotal price for the product, in the smallest units of the currency. -
Constructor Summary
ConstructorsConstructorDescriptionA payment has been completed; for bots only.MessagePaymentSuccessfulBot(String currency, long totalAmount, boolean isRecurring, boolean isFirstRecurring, byte[] invoicePayload, String shippingOptionId, TdApi.OrderInfo orderInfo, String telegramPaymentChargeId, String providerPaymentChargeId) A payment has been completed; for bots only. -
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
Currency for price of the product. -
totalAmount
public long totalAmountTotal price for the product, in the smallest units of the currency. -
isRecurring
public boolean isRecurringTrue, if this is a recurring payment. -
isFirstRecurring
public boolean isFirstRecurringTrue, if this is the first recurring payment. -
invoicePayload
public byte[] invoicePayloadInvoice payload. -
shippingOptionId
Identifier of the shipping option chosen by the user; may be empty if not applicable. -
orderInfo
Information about the order; may be null. -
telegramPaymentChargeId
Telegram payment identifier. -
providerPaymentChargeId
Provider payment identifier. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
MessagePaymentSuccessfulBot
public MessagePaymentSuccessfulBot()A payment has been completed; for bots only. -
MessagePaymentSuccessfulBot
public MessagePaymentSuccessfulBot(String currency, long totalAmount, boolean isRecurring, boolean isFirstRecurring, byte[] invoicePayload, String shippingOptionId, TdApi.OrderInfo orderInfo, String telegramPaymentChargeId, String providerPaymentChargeId) A payment has been completed; for bots only.- Parameters:
currency- Currency for price of the product.totalAmount- Total price for the product, in the smallest units of the currency.isRecurring- True, if this is a recurring payment.isFirstRecurring- True, if this is the first recurring payment.invoicePayload- Invoice payload.shippingOptionId- Identifier of the shipping option chosen by the user; may be empty if not applicable.orderInfo- Information about the order; may be null.telegramPaymentChargeId- Telegram payment identifier.providerPaymentChargeId- Provider payment identifier.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.MessageContent- Returns:
- this.CONSTRUCTOR
-