java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.MessageContent
it.tdlight.jni.TdApi.MessagePaymentSuccessfulBot
- Enclosing class:
- TdApi
A payment has been completed; for bots only.
-
Field Summary
Modifier 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.Provider payment identifier.Identifier of the shipping option chosen by the user; may be empty if not applicable.Telegram payment identifier.long
Total price for the product, in the smallest units of the currency. -
Constructor Summary
ConstructorDescriptionA payment has been completed; for bots only.A 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 TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Object
serialize, 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.
-
MessagePaymentSuccessfulBot
A payment has been completed; for bots only.- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
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
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-