public static class TdApi.MessageInvoice 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 the product price.
|
boolean |
isTest
True, if the invoice is a test invoice.
|
boolean |
needShippingAddress
True, if the shipping address must be specified.
|
TdApi.PaidMedia |
paidMedia
Extended media attached to the invoice; may be null if none.
|
TdApi.FormattedText |
paidMediaCaption
Extended media caption; may be null if none.
|
TdApi.ProductInfo |
productInfo
Information about the product.
|
long |
receiptMessageId
The identifier of the message with the receipt, after the product has been purchased.
|
java.lang.String |
startParameter
Unique invoice bot startParameter to be passed to getInternalLink.
|
long |
totalAmount
Product total price in the smallest units of the currency.
|
| Constructor and Description |
|---|
MessageInvoice()
A message with an invoice from a bot.
|
MessageInvoice(TdApi.ProductInfo productInfo,
java.lang.String currency,
long totalAmount,
java.lang.String startParameter,
boolean isTest,
boolean needShippingAddress,
long receiptMessageId,
TdApi.PaidMedia paidMedia,
TdApi.FormattedText paidMediaCaption)
A message with an invoice from a bot.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic TdApi.ProductInfo productInfo
public java.lang.String currency
public long totalAmount
public java.lang.String startParameter
public boolean isTest
public boolean needShippingAddress
public long receiptMessageId
public TdApi.PaidMedia paidMedia
public TdApi.FormattedText paidMediaCaption
public static final int CONSTRUCTOR
public MessageInvoice()
public MessageInvoice(TdApi.ProductInfo productInfo, java.lang.String currency, long totalAmount, java.lang.String startParameter, boolean isTest, boolean needShippingAddress, long receiptMessageId, TdApi.PaidMedia paidMedia, TdApi.FormattedText paidMediaCaption)
productInfo - Information about the product.currency - Currency for the product price.totalAmount - Product total price in the smallest units of the currency.startParameter - Unique invoice bot startParameter to be passed to getInternalLink.isTest - True, if the invoice is a test invoice.needShippingAddress - True, if the shipping address must be specified.receiptMessageId - The identifier of the message with the receipt, after the product has been purchased.paidMedia - Extended media attached to the invoice; may be null if none.paidMediaCaption - Extended media caption; may be null if none.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object