java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.PaymentReceipt
- Enclosing class:
- TdApi
Contains information about a successful payment.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.Title of the saved credentials chosen by the buyer.int
Point in time (Unix timestamp) when the payment was made.Product description.Information about the invoice.Order information; may be null.long
User identifier of the payment provider bot.Product photo; may be null.long
User identifier of the seller bot.Chosen shipping option; may be null.long
The amount of tip chosen by the buyer in the smallest units of the currency.Product title. -
Constructor Summary
ConstructorDescriptionContains information about a successful payment.PaymentReceipt
(DataInput input) Contains information about a successful payment.PaymentReceipt
(String title, TdApi.FormattedText description, TdApi.Photo photo, int date, long sellerBotUserId, long paymentProviderUserId, TdApi.Invoice invoice, TdApi.OrderInfo orderInfo, TdApi.ShippingOption shippingOption, String credentialsTitle, long tipAmount) Contains information about a successful payment. -
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
-
title
Product title. -
description
Product description. -
photo
Product photo; may be null. -
date
public int datePoint in time (Unix timestamp) when the payment was made. -
sellerBotUserId
public long sellerBotUserIdUser identifier of the seller bot. -
paymentProviderUserId
public long paymentProviderUserIdUser identifier of the payment provider bot. -
invoice
Information about the invoice. -
orderInfo
Order information; may be null. -
shippingOption
Chosen shipping option; may be null. -
credentialsTitle
Title of the saved credentials chosen by the buyer. -
tipAmount
public long tipAmountThe amount of tip chosen by the buyer in the smallest units of the currency. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
PaymentReceipt
public PaymentReceipt()Contains information about a successful payment. -
PaymentReceipt
public PaymentReceipt(String title, TdApi.FormattedText description, TdApi.Photo photo, int date, long sellerBotUserId, long paymentProviderUserId, TdApi.Invoice invoice, TdApi.OrderInfo orderInfo, TdApi.ShippingOption shippingOption, String credentialsTitle, long tipAmount) Contains information about a successful payment.- Parameters:
title
- Product title.description
- Product description.photo
- Product photo; may be null.date
- Point in time (Unix timestamp) when the payment was made.sellerBotUserId
- User identifier of the seller bot.paymentProviderUserId
- User identifier of the payment provider bot.invoice
- Information about the invoice.orderInfo
- Order information; may be null.shippingOption
- Chosen shipping option; may be null.credentialsTitle
- Title of the saved credentials chosen by the buyer.tipAmount
- The amount of tip chosen by the buyer in the smallest units of the currency.
-
PaymentReceipt
Contains information about a successful payment.- 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()
-