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
-
Method Summary
Modifier and TypeMethodDescription@NonNull String
@NonNull User
getFrom()
@NonNull String
getId()
@NonNull String
@NonNull Integer
void
setCurrency
(@NonNull String currency) void
void
void
setInvoicePayload
(@NonNull String invoicePayload) void
setOrderInfo
(OrderInfo orderInfo) void
setShippingOptionId
(String shippingOptionId) void
setTotalAmount
(@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
-