public class Invoice extends java.lang.Object implements TelegramObject
| Constructor and Description |
|---|
Invoice(java.lang.String title,
java.lang.String description,
java.lang.String startParameter,
Currency currency,
int totalAmount)
Constructs an Invoice.
|
| Modifier and Type | Method and Description |
|---|---|
Currency |
getCurrency()
Returns the currency of the invoice.
|
java.lang.String |
getDescription()
Getter for property
description. |
java.lang.String |
getStartParameter()
Getter for property
startParameter. |
java.lang.String |
getTitle()
Getter for property
title. |
int |
getTotalAmount()
Getter for property
totalAmount. |
public Invoice(java.lang.String title,
java.lang.String description,
java.lang.String startParameter,
Currency currency,
int totalAmount)
title - product namedescription - product descriptionstartParameter - unique bot deep-linking parameter
that can be used to generate this invoicecurrency - the currencytotalAmount - total price in the smallest units of the currency
For example, for a price of US$ 1.45 pass
amount = 145. See Currency.getExponent(),
it shows the number of digits past the decimal point for each
currency (2 for the majority of currencies).
public java.lang.String getTitle()
title.titlepublic java.lang.String getDescription()
description.descriptionpublic java.lang.String getStartParameter()
startParameter.startParameterpublic Currency getCurrency()
public int getTotalAmount()
totalAmount.totalAmount