tgbot-cpp
Loading...
Searching...
No Matches
PreCheckoutQuery.h
Go to the documentation of this file.
1#ifndef TGBOT_PRECHECKOUTQUERY_H
2#define TGBOT_PRECHECKOUTQUERY_H
3
4#include "tgbot/types/User.h"
6
7#include <cstdint>
8#include <string>
9#include <memory>
10#include <vector>
11
12namespace TgBot {
13
22public:
23 typedef std::shared_ptr<PreCheckoutQuery> Ptr;
24
28 std::string id;
29
34
38 std::string currency;
39
51 std::int32_t totalAmount;
52
56 std::string invoicePayload;
57
61 std::string shippingOptionId;
62
67};
68}
69
70#endif //TGBOT_PRECHECKOUTQUERY_H
std::shared_ptr< OrderInfo > Ptr
Definition OrderInfo.h:20
This object contains information about an incoming pre-checkout query.
std::int32_t totalAmount
Total price in the smallest units of the currency (integer, not float/double).
OrderInfo::Ptr orderInfo
Optional. Order info provided by the user.
User::Ptr from
User who sent the query.
std::string shippingOptionId
Optional. Identifier of the shipping option chosen by the user.
std::shared_ptr< PreCheckoutQuery > Ptr
std::string invoicePayload
Bot specified invoice payload.
std::string currency
Three-letter ISO 4217 currency code.
std::string id
Unique query identifier.
std::shared_ptr< User > Ptr
Definition User.h:18
Definition Api.h:40