Module tdlight.api

Class TdApi.ValidateOrderInfo

Enclosing class:
TdApi

public static final class TdApi.ValidateOrderInfo extends TdApi.Function<TdApi.ValidatedOrderInfo>
Validates the order information provided by a user and returns the available shipping options for a flexible invoice.

Returns ValidatedOrderInfo

  • Field Details

    • inputInvoice

      public TdApi.InputInvoice inputInvoice
      The invoice.
    • orderInfo

      public TdApi.OrderInfo orderInfo
      The order information, provided by the user; pass null if empty.
    • allowSave

      public boolean allowSave
      Pass true to save the order information.
    • CONSTRUCTOR

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

    • ValidateOrderInfo

      public ValidateOrderInfo()
      Validates the order information provided by a user and returns the available shipping options for a flexible invoice.

      Returns ValidatedOrderInfo

    • ValidateOrderInfo

      public ValidateOrderInfo(TdApi.InputInvoice inputInvoice, TdApi.OrderInfo orderInfo, boolean allowSave)
      Validates the order information provided by a user and returns the available shipping options for a flexible invoice.

      Returns ValidatedOrderInfo

      Parameters:
      inputInvoice - The invoice.
      orderInfo - The order information, provided by the user; pass null if empty.
      allowSave - Pass true to save the order information.

      Returns ValidatedOrderInfo

    • ValidateOrderInfo

      public ValidateOrderInfo(DataInput input) throws IOException
      Validates the order information provided by a user and returns the available shipping options for a flexible invoice.

      Returns ValidatedOrderInfo

      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