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 received by the bot or the business account.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.Currency for price of the product.byte[]
Invoice payload.boolean
True, if this is the first recurring payment.boolean
True, if this is a recurring payment.Information about the order; may be null; for bots only.Provider payment identifier.Identifier of the shipping option chosen by the user; may be empty if not applicable; for bots only.int
Point in time (Unix timestamp) when the subscription will expire; 0 if unknown or the payment isn't recurring.Telegram payment identifier.long
Total price for the product, in the smallest units of the currency. -
Constructor Summary
ConstructorsConstructorDescriptionA payment has been received by the bot or the business account.MessagePaymentSuccessfulBot
(String currency, long totalAmount, int subscriptionUntilDate, boolean isRecurring, boolean isFirstRecurring, byte[] invoicePayload, String shippingOptionId, TdApi.OrderInfo orderInfo, String telegramPaymentChargeId, String providerPaymentChargeId) A payment has been received by the bot or the business account. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns 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. -
subscriptionUntilDate
public int subscriptionUntilDatePoint in time (Unix timestamp) when the subscription will expire; 0 if unknown or the payment isn't recurring. -
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; for bots only. -
orderInfo
Information about the order; may be null; for bots only. -
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 received by the bot or the business account. -
MessagePaymentSuccessfulBot
public MessagePaymentSuccessfulBot(String currency, long totalAmount, int subscriptionUntilDate, boolean isRecurring, boolean isFirstRecurring, byte[] invoicePayload, String shippingOptionId, TdApi.OrderInfo orderInfo, String telegramPaymentChargeId, String providerPaymentChargeId) A payment has been received by the bot or the business account.- Parameters:
currency
- Currency for price of the product.totalAmount
- Total price for the product, in the smallest units of the currency.subscriptionUntilDate
- Point in time (Unix timestamp) when the subscription will expire; 0 if unknown or the payment isn't recurring.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; for bots only.orderInfo
- Information about the order; may be null; for bots only.telegramPaymentChargeId
- Telegram payment identifier.providerPaymentChargeId
- Provider payment identifier.
-
-
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
-