Module tdlight.api

Class TdApi.SendPaymentForm

Enclosing class:
TdApi

public static final class TdApi.SendPaymentForm extends TdApi.Function<TdApi.PaymentResult>
Sends a filled-out payment form to the bot for final verification.

Returns PaymentResult

  • Field Details

    • inputInvoice

      public TdApi.InputInvoice inputInvoice
      The invoice.
    • paymentFormId

      public long paymentFormId
      Payment form identifier returned by getPaymentForm.
    • orderInfoId

      public String orderInfoId
      Identifier returned by validateOrderInfo, or an empty string.
    • shippingOptionId

      public String shippingOptionId
      Identifier of a chosen shipping option, if applicable.
    • credentials

      public TdApi.InputCredentials credentials
      The credentials chosen by user for payment.
    • tipAmount

      public long tipAmount
      Chosen by the user amount of tip in the smallest units of the currency.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • SendPaymentForm

      public SendPaymentForm()
      Sends a filled-out payment form to the bot for final verification.

      Returns PaymentResult

    • SendPaymentForm

      public SendPaymentForm(TdApi.InputInvoice inputInvoice, long paymentFormId, String orderInfoId, String shippingOptionId, TdApi.InputCredentials credentials, long tipAmount)
      Sends a filled-out payment form to the bot for final verification.

      Returns PaymentResult

      Parameters:
      inputInvoice - The invoice.
      paymentFormId - Payment form identifier returned by getPaymentForm.
      orderInfoId - Identifier returned by validateOrderInfo, or an empty string.
      shippingOptionId - Identifier of a chosen shipping option, if applicable.
      credentials - The credentials chosen by user for payment.
      tipAmount - Chosen by the user amount of tip in the smallest units of the currency.

      Returns PaymentResult

    • SendPaymentForm

      public SendPaymentForm(DataInput input) throws IOException
      Sends a filled-out payment form to the bot for final verification.

      Returns PaymentResult

      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 class TdApi.Object
      Returns:
      this.CONSTRUCTOR
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object