43 nl::json json = nl::json::object();
#define OBJECT_SERIALIZE_FIELD_PTR(json, json_field, field)
#define OBJECT_DESERIALIZE_FIELD_PTR(json, json_field, field, optional)
#define OBJECT_SERIALIZE_FIELD(json, json_field, field)
Available objects: https://core.telegram.org/bots/api#available-types.
#define OBJECT_DESERIALIZE_FIELD(json, json_field, field, default_value, optional)
Deserialize.
This object contains information about an incoming pre-checkout query. https://core....
nl::json toJson() const
Serializes this object to JSON.
std::string currency
Three-letter ISO 4217 currency code.
PreCheckoutQuery(const nl::json &json)
PreCheckoutQuery()=default
Ptr< User > from
User who sent the query.
Ptr< OrderInfo > orderInfo
Optional. Order information provided by the user.
std::string shippingOptionId
Optional. Identifier of the shipping option chosen by the user.
std::int32_t totalAmount
Total price in the smallest units of the currency (integer, not float/double). For example,...
std::string invoicePayload
Bot specified invoice payload.
std::string id
Unique query identifier.
void fromJson(const nl::json &json)
Deserializes this object from JSON.