tgbot-cpp
|
This object contains information about an incoming pre-checkout query. More...
#include <PreCheckoutQuery.h>
Public Types | |
typedef std::shared_ptr< PreCheckoutQuery > | Ptr |
Public Attributes | |
std::string | id |
Unique query identifier. | |
User::Ptr | from |
User who sent the query. | |
std::string | currency |
Three-letter ISO 4217 currency code. | |
std::int32_t | totalAmount |
Total price in the smallest units of the currency (integer, not float/double). | |
std::string | invoicePayload |
Bot specified invoice payload. | |
std::string | shippingOptionId |
Optional. Identifier of the shipping option chosen by the user. | |
OrderInfo::Ptr | orderInfo |
Optional. Order info provided by the user. | |
This object contains information about an incoming pre-checkout query.
https://core.telegram.org/bots/api#precheckoutquery
Definition at line 21 of file PreCheckoutQuery.h.
typedef std::shared_ptr<PreCheckoutQuery> TgBot::PreCheckoutQuery::Ptr |
Definition at line 23 of file PreCheckoutQuery.h.
std::string TgBot::PreCheckoutQuery::currency |
Three-letter ISO 4217 currency code.
Definition at line 38 of file PreCheckoutQuery.h.
User::Ptr TgBot::PreCheckoutQuery::from |
User who sent the query.
Definition at line 33 of file PreCheckoutQuery.h.
std::string TgBot::PreCheckoutQuery::id |
Unique query identifier.
Definition at line 28 of file PreCheckoutQuery.h.
std::string TgBot::PreCheckoutQuery::invoicePayload |
Bot specified invoice payload.
Definition at line 56 of file PreCheckoutQuery.h.
OrderInfo::Ptr TgBot::PreCheckoutQuery::orderInfo |
Optional. Order info provided by the user.
Definition at line 66 of file PreCheckoutQuery.h.
std::string TgBot::PreCheckoutQuery::shippingOptionId |
Optional. Identifier of the shipping option chosen by the user.
Definition at line 61 of file PreCheckoutQuery.h.
std::int32_t TgBot::PreCheckoutQuery::totalAmount |
Total price in the smallest units of the currency (integer, not float/double).
For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
https://core.telegram.org/bots/payments/currencies.json
Definition at line 51 of file PreCheckoutQuery.h.