java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Invoice
- Enclosing class:
- TdApi
Product invoice.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.ISO 4217 currency code.boolean
True, if the total price depends on the shipping method.boolean
True, if the payment is a test payment.long
The maximum allowed amount of tip in the smallest units of the currency.boolean
True, if the user's email address is needed for payment.boolean
True, if the user's name is needed for payment.boolean
True, if the user's phone number is needed for payment.boolean
True, if the user's shipping address is needed for payment.A list of objects used to calculate the total price of the product.An HTTP URL with terms of service for recurring payments.boolean
True, if the user's email address will be sent to the provider.boolean
True, if the user's phone number will be sent to the provider.long[]
Suggested amounts of tip in the smallest units of the currency.An HTTP URL with terms of service for non-recurring payments. -
Constructor Summary
ConstructorDescriptionInvoice()
Product invoice.Product invoice.Invoice
(String currency, TdApi.LabeledPricePart[] priceParts, long maxTipAmount, long[] suggestedTipAmounts, String recurringPaymentTermsOfServiceUrl, String termsOfServiceUrl, boolean isTest, boolean needName, boolean needPhoneNumber, boolean needEmailAddress, boolean needShippingAddress, boolean sendPhoneNumberToProvider, boolean sendEmailAddressToProvider, boolean isFlexible) Product invoice. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods 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. -
maxTipAmount
public long maxTipAmountThe maximum allowed amount of tip in the smallest units of the currency. -
suggestedTipAmounts
public long[] suggestedTipAmountsSuggested amounts of tip in the smallest units of the currency. -
recurringPaymentTermsOfServiceUrl
An HTTP URL with terms of service for recurring payments. If non-empty, the invoice payment will result in recurring payments and the user must accept the terms of service before allowed to pay. -
termsOfServiceUrl
An HTTP URL with terms of service for non-recurring payments. If non-empty, then the user must accept the terms of service before allowed to pay. -
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 CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
Invoice
public Invoice()Product invoice. -
Invoice
public Invoice(String currency, TdApi.LabeledPricePart[] priceParts, long maxTipAmount, long[] suggestedTipAmounts, String recurringPaymentTermsOfServiceUrl, String termsOfServiceUrl, 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.recurringPaymentTermsOfServiceUrl
- An HTTP URL with terms of service for recurring payments. If non-empty, the invoice payment will result in recurring payments and the user must accept the terms of service before allowed to pay.termsOfServiceUrl
- An HTTP URL with terms of service for non-recurring payments. If non-empty, then the user must accept the terms of service before allowed to pay.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.
-
Invoice
Product invoice.- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-