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