public static class TdApi.Invoice extends TdApi.Object
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
java.lang.String |
currency
ISO 4217 currency code.
|
boolean |
isFlexible
True, if the total price depends on the shipping method.
|
boolean |
isTest
True, if the payment is a test payment.
|
long |
maxTipAmount
The maximum allowed amount of tip in the smallest units of the currency.
|
boolean |
needEmailAddress
True, if the user's email address is needed for payment.
|
boolean |
needName
True, if the user's name is needed for payment.
|
boolean |
needPhoneNumber
True, if the user's phone number is needed for payment.
|
boolean |
needShippingAddress
True, if the user's shipping address is needed for payment.
|
TdApi.LabeledPricePart[] |
priceParts
A list of objects used to calculate the total price of the product.
|
boolean |
sendEmailAddressToProvider
True, if the user's email address will be sent to the provider.
|
boolean |
sendPhoneNumberToProvider
True, if the user's phone number will be sent to the provider.
|
long[] |
suggestedTipAmounts
Suggested amounts of tip in the smallest units of the currency.
|
Constructor and Description |
---|
Invoice()
Product invoice.
|
Invoice(java.lang.String currency,
TdApi.LabeledPricePart[] priceParts,
long maxTipAmount,
long[] suggestedTipAmounts,
boolean isTest,
boolean needName,
boolean needPhoneNumber,
boolean needEmailAddress,
boolean needShippingAddress,
boolean sendPhoneNumberToProvider,
boolean sendEmailAddressToProvider,
boolean isFlexible)
Product invoice.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public java.lang.String currency
public TdApi.LabeledPricePart[] priceParts
public long maxTipAmount
public long[] suggestedTipAmounts
public boolean isTest
public boolean needName
public boolean needPhoneNumber
public boolean needEmailAddress
public boolean needShippingAddress
public boolean sendPhoneNumberToProvider
public boolean sendEmailAddressToProvider
public boolean isFlexible
public static final int CONSTRUCTOR
public Invoice()
public Invoice(java.lang.String currency, TdApi.LabeledPricePart[] priceParts, long maxTipAmount, long[] suggestedTipAmounts, boolean isTest, boolean needName, boolean needPhoneNumber, boolean needEmailAddress, boolean needShippingAddress, boolean sendPhoneNumberToProvider, boolean sendEmailAddressToProvider, boolean isFlexible)
currency
- ISO 4217 currency code.priceParts
- A list of objects used to calculate the total price of the product.maxTipAmount
- The maximum allowed amount of tip in the smallest units of the currency.suggestedTipAmounts
- Suggested amounts of tip in the smallest units of the currency.isTest
- True, if the payment is a test payment.needName
- True, if the user's name is needed for payment.needPhoneNumber
- True, if the user's phone number is needed for payment.needEmailAddress
- True, if the user's email address is needed for payment.needShippingAddress
- True, if the user's shipping address is needed for payment.sendPhoneNumberToProvider
- True, if the user's phone number will be sent to the provider.sendEmailAddressToProvider
- True, if the user's email address will be sent to the provider.isFlexible
- True, if the total price depends on the shipping method.public int getConstructor()
getConstructor
in class TdApi.Object