37 nl::json json = nl::json::object();
#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 refunded payment. https://core.telegram....
nl::json toJson() const
Serializes this object to JSON.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
std::int64_t totalAmount
Total refunded price in the smallest units of the currency (integer, not float/double)....
std::string currency
Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars. Currently,...
std::string providerPaymentChargeId
Optional. Provider payment identifier.
std::string telegramPaymentChargeId
Telegram payment identifier.
std::string invoicePayload
Bot-specified invoice payload.
RefundedPayment()=default
RefundedPayment(const nl::json &json)