Package it.tdlight.jni
Class TdApi.Invoice
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Invoice
- Enclosing class:
- TdApi
public static class TdApi.Invoice extends TdApi.Object
Product invoice.
-
Field Summary
Fields Modifier and Type Field Description static int
CONSTRUCTOR
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.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. -
Constructor Summary
Constructors Constructor Description Invoice()
Product invoice.Invoice(DataInput input)
Invoice(String currency, TdApi.LabeledPricePart[] priceParts, boolean isTest, boolean needName, boolean needPhoneNumber, boolean needEmailAddress, boolean needShippingAddress, boolean sendPhoneNumberToProvider, boolean sendEmailAddressToProvider, boolean isFlexible)
Product invoice. -
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutputStream output)
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
currency
ISO 4217 currency code. -
priceParts
A list of objects used to calculate the total price of the product. -
isTest
public boolean isTestTrue, if the payment is a test payment. -
needName
public boolean needNameTrue, if the user's name is needed for payment. -
needPhoneNumber
public boolean needPhoneNumberTrue, if the user's phone number is needed for payment. -
needEmailAddress
public boolean needEmailAddressTrue, if the user's email address is needed for payment. -
needShippingAddress
public boolean needShippingAddressTrue, if the user's shipping address is needed for payment. -
sendPhoneNumberToProvider
public boolean sendPhoneNumberToProviderTrue, if the user's phone number will be sent to the provider. -
sendEmailAddressToProvider
public boolean sendEmailAddressToProviderTrue, if the user's email address will be sent to the provider. -
isFlexible
public boolean isFlexibleTrue, if the total price depends on the shipping method. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
Invoice
public Invoice()Product invoice. -
Invoice
public Invoice(String currency, TdApi.LabeledPricePart[] priceParts, boolean isTest, boolean needName, boolean needPhoneNumber, boolean needEmailAddress, boolean needShippingAddress, boolean sendPhoneNumberToProvider, boolean sendEmailAddressToProvider, boolean isFlexible)Product invoice.- Parameters:
currency
- String ISO 4217 currency code.priceParts
- LabeledPricePart[] A list of objects used to calculate the total price of the product.isTest
- boolean True, if the payment is a test payment.needName
- boolean True, if the user's name is needed for payment.needPhoneNumber
- boolean True, if the user's phone number is needed for payment.needEmailAddress
- boolean True, if the user's email address is needed for payment.needShippingAddress
- boolean True, if the user's shipping address is needed for payment.sendPhoneNumberToProvider
- boolean True, if the user's phone number will be sent to the provider.sendEmailAddressToProvider
- boolean True, if the user's email address will be sent to the provider.isFlexible
- boolean True, if the total price depends on the shipping method.
-
Invoice
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-