Module tdlight.api

Class TdApi.Invoice

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Invoice
Enclosing class:
TdApi

public static final class TdApi.Invoice extends TdApi.Object
Product invoice.
  • Field Details

    • 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.
    • recurringPaymentTermsOfServiceUrl

      public String 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.
    • 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
      See Also:
  • Constructor Details

    • Invoice

      public Invoice()
      Product invoice.
    • Invoice

      public Invoice(String currency, TdApi.LabeledPricePart[] priceParts, long maxTipAmount, long[] suggestedTipAmounts, String recurringPaymentTermsOfServiceUrl, 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.
      maxTipAmount - long The maximum allowed amount of tip in the smallest units of the currency.
      suggestedTipAmounts - long[] Suggested amounts of tip in the smallest units of the currency.
      recurringPaymentTermsOfServiceUrl - String 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.
      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

      public Invoice(DataInput input) throws IOException
      Product invoice.
      Throws:
      IOException
  • Method Details