Class PreCheckoutQuery
java.lang.Object
io.micronaut.chatbots.telegram.api.PreCheckoutQuery
This object contains information about an incoming pre-checkout query.
- Since:
- 1.0.0
- Author:
- Sergio del Amo
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull String@NonNull UsergetFrom()@NonNull StringgetId()@NonNull String@NonNull IntegervoidsetCurrency(@NonNull String currency) voidvoidvoidsetInvoicePayload(@NonNull String invoicePayload) voidsetOrderInfo(OrderInfo orderInfo) voidsetShippingOptionId(String shippingOptionId) voidsetTotalAmount(@NonNull Integer totalAmount) toString()
-
Constructor Details
-
PreCheckoutQuery
public PreCheckoutQuery()
-
-
Method Details
-
getId
- Returns:
- Unique query identifier.
-
setId
- Parameters:
id- Unique query identifier.
-
getFrom
- Returns:
- User who sent the query.
-
setFrom
- Parameters:
from- User who sent the query.
-
getCurrency
- Returns:
- Three-letter ISO 4217 currency code.
-
setCurrency
- Parameters:
currency- Three-letter ISO 4217 currency code.
-
getTotalAmount
- Returns:
- Total price in the smallest units of the currency (integer, not float/double).
-
setTotalAmount
- Parameters:
totalAmount- Total price in the smallest units of the currency (integer, not float/double).
-
getInvoicePayload
- Returns:
- Bot specified invoice payload.
-
setInvoicePayload
- Parameters:
invoicePayload- Bot specified invoice payload.
-
getShippingOptionId
- Returns:
- Identifier of the shipping option chosen by the user.
-
setShippingOptionId
- Parameters:
shippingOptionId- Identifier of the shipping option chosen by the user.
-
getOrderInfo
- Returns:
- Order info provided by the user.
-
setOrderInfo
- Parameters:
orderInfo- Order info provided by the user.
-
toString
-