java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.MessageContent
it.tdlight.jni.TdApi.MessagePaymentSuccessful
- Enclosing class:
- TdApi
A payment has been completed.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.Currency for the price of the product.long
Identifier of the chat, containing the corresponding invoice message.long
Identifier of the message with the corresponding invoice; can be 0 or an identifier of a deleted message.Name of the invoice; may be empty if unknown.boolean
True, if this is the first recurring payment.boolean
True, if this is a recurring payment.long
Total price for the product, in the smallest units of the currency. -
Constructor Summary
ConstructorDescriptionA payment has been completed.MessagePaymentSuccessful
(long invoiceChatId, long invoiceMessageId, String currency, long totalAmount, boolean isRecurring, boolean isFirstRecurring, String invoiceName) A payment has been completed.A payment has been completed. -
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
-
invoiceChatId
public long invoiceChatIdIdentifier of the chat, containing the corresponding invoice message. -
invoiceMessageId
public long invoiceMessageIdIdentifier of the message with the corresponding invoice; can be 0 or an identifier of a deleted message. -
currency
Currency for the 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. -
invoiceName
Name of the invoice; may be empty if unknown. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
MessagePaymentSuccessful
public MessagePaymentSuccessful()A payment has been completed. -
MessagePaymentSuccessful
public MessagePaymentSuccessful(long invoiceChatId, long invoiceMessageId, String currency, long totalAmount, boolean isRecurring, boolean isFirstRecurring, String invoiceName) A payment has been completed.- Parameters:
invoiceChatId
- Identifier of the chat, containing the corresponding invoice message.invoiceMessageId
- Identifier of the message with the corresponding invoice; can be 0 or an identifier of a deleted message.currency
- Currency for the 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.invoiceName
- Name of the invoice; may be empty if unknown.
-
MessagePaymentSuccessful
A payment has been completed.- 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()
-