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 basic information about a successful payment. https://core.telegram....
std::string providerPaymentChargeId
Provider payment identifier.
nl::json toJson() const
Serializes this object to JSON.
std::string currency
Three-letter ISO 4217 currency code https://core.telegram.org/bots/payments#supported-currencies .
std::string shippingOptionId
Optional. Identifier of the shipping option chosen by the user.
Ptr< OrderInfo > orderInfo
Optional. Order information provided by the user.
SuccessfulPayment(const nl::json &json)
std::int32_t totalAmount
Total price in the smallest units of the currency (integer, not float/double). For example,...
void fromJson(const nl::json &json)
Deserializes this object from JSON.
std::string telegramPaymentChargeId
Telegram payment identifier.
SuccessfulPayment()=default
std::string invoicePayload
Bot specified invoice payload.