Class PreCheckoutQuery

java.lang.Object
io.micronaut.chatbots.telegram.api.PreCheckoutQuery

public class PreCheckoutQuery extends Object
This object contains information about an incoming pre-checkout query.
Since:
1.0.0
Author:
Sergio del Amo
See Also:
  • Constructor Details

    • PreCheckoutQuery

      public PreCheckoutQuery()
  • Method Details

    • getId

      @NonNull public @NonNull String getId()
      Returns:
      Unique query identifier.
    • setId

      public void setId(@NonNull @NonNull String id)
      Parameters:
      id - Unique query identifier.
    • getFrom

      @NonNull public @NonNull User getFrom()
      Returns:
      User who sent the query.
    • setFrom

      public void setFrom(@NonNull @NonNull User from)
      Parameters:
      from - User who sent the query.
    • getCurrency

      @NonNull public @NonNull String getCurrency()
      Returns:
      Three-letter ISO 4217 currency code.
    • setCurrency

      public void setCurrency(@NonNull @NonNull String currency)
      Parameters:
      currency - Three-letter ISO 4217 currency code.
    • getTotalAmount

      @NonNull public @NonNull Integer getTotalAmount()
      Returns:
      Total price in the smallest units of the currency (integer, not float/double).
    • setTotalAmount

      public void setTotalAmount(@NonNull @NonNull Integer totalAmount)
      Parameters:
      totalAmount - Total price in the smallest units of the currency (integer, not float/double).
    • getInvoicePayload

      @NonNull public @NonNull String getInvoicePayload()
      Returns:
      Bot specified invoice payload.
    • setInvoicePayload

      public void setInvoicePayload(@NonNull @NonNull String invoicePayload)
      Parameters:
      invoicePayload - Bot specified invoice payload.
    • getShippingOptionId

      public String getShippingOptionId()
      Returns:
      Identifier of the shipping option chosen by the user.
    • setShippingOptionId

      public void setShippingOptionId(String shippingOptionId)
      Parameters:
      shippingOptionId - Identifier of the shipping option chosen by the user.
    • getOrderInfo

      public OrderInfo getOrderInfo()
      Returns:
      Order info provided by the user.
    • setOrderInfo

      public void setOrderInfo(OrderInfo orderInfo)
      Parameters:
      orderInfo - Order info provided by the user.
    • toString

      public String toString()
      Overrides:
      toString in class Object