Package org.drinkless.tdlib
Class TdApi.Invoice
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Invoice
-
- Enclosing class:
- TdApi
public static class TdApi.Invoice extends TdApi.Object
Product invoice.
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.StringcurrencyISO 4217 currency code.booleanisFlexibleTrue, if the total price depends on the shipping method.booleanisTestTrue, if the payment is a test payment.longmaxTipAmountThe maximum allowed amount of tip in the smallest units of the currency.booleanneedEmailAddressTrue, if the user's email address is needed for payment.booleanneedNameTrue, if the user's name is needed for payment.booleanneedPhoneNumberTrue, if the user's phone number is needed for payment.booleanneedShippingAddressTrue, if the user's shipping address is needed for payment.TdApi.LabeledPricePart[]pricePartsA list of objects used to calculate the total price of the product.booleansendEmailAddressToProviderTrue, if the user's email address will be sent to the provider.booleansendPhoneNumberToProviderTrue, if the user's phone number will be sent to the provider.long[]suggestedTipAmountsSuggested amounts of tip in the smallest units of the currency.
-
Constructor Summary
Constructors Constructor Description Invoice()Product invoice.Invoice(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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
currency
public String currency
ISO 4217 currency code.
-
priceParts
public TdApi.LabeledPricePart[] priceParts
A list of objects used to calculate the total price of the product.
-
maxTipAmount
public long maxTipAmount
The maximum allowed amount of tip in the smallest units of the currency.
-
suggestedTipAmounts
public long[] suggestedTipAmounts
Suggested amounts of tip in the smallest units of the currency.
-
isTest
public boolean isTest
True, if the payment is a test payment.
-
needName
public boolean needName
True, if the user's name is needed for payment.
-
needPhoneNumber
public boolean needPhoneNumber
True, if the user's phone number is needed for payment.
-
needEmailAddress
public boolean needEmailAddress
True, if the user's email address is needed for payment.
-
needShippingAddress
public boolean needShippingAddress
True, if the user's shipping address is needed for payment.
-
sendPhoneNumberToProvider
public boolean sendPhoneNumberToProvider
True, if the user's phone number will be sent to the provider.
-
sendEmailAddressToProvider
public boolean sendEmailAddressToProvider
True, if the user's email address will be sent to the provider.
-
isFlexible
public boolean isFlexible
True, if the total price depends on the shipping method.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Invoice
public Invoice()
Product invoice.
-
Invoice
public Invoice(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.- Parameters:
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.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-