|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
This object contains basic information about a refunded payment. https://core.telegram.org/bots/api#refundedpayment. More...
#include <RefundedPayment.hpp>
Public Member Functions | |
| RefundedPayment ()=default | |
| RefundedPayment (const nl::json &json) | |
| nl::json | toJson () const |
| Serializes this object to JSON. | |
| void | fromJson (const nl::json &json) |
| Deserializes this object from JSON. | |
Public Attributes | |
| std::string | currency |
| Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars. Currently, always “XTR” https://t.me/BotNews/90 https://core.telegram.org/bots/payments#supported-currencies. | |
| std::int64_t | totalAmount {} |
| Total refunded price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45, total_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. | |
| std::string | invoicePayload |
| Bot-specified invoice payload. | |
| std::string | telegramPaymentChargeId |
| Telegram payment identifier. | |
| std::string | providerPaymentChargeId |
| Optional. Provider payment identifier. | |
This object contains basic information about a refunded payment. https://core.telegram.org/bots/api#refundedpayment.
Definition at line 7 of file RefundedPayment.hpp.
|
default |
|
inlineexplicit |
Definition at line 9 of file RefundedPayment.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 47 of file RefundedPayment.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 36 of file RefundedPayment.hpp.
| std::string tgbotxx::RefundedPayment::currency |
Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars. Currently, always “XTR” https://t.me/BotNews/90 https://core.telegram.org/bots/payments#supported-currencies.
Definition at line 16 of file RefundedPayment.hpp.
| std::string tgbotxx::RefundedPayment::invoicePayload |
Bot-specified invoice payload.
Definition at line 26 of file RefundedPayment.hpp.
| std::string tgbotxx::RefundedPayment::providerPaymentChargeId |
Optional. Provider payment identifier.
Definition at line 32 of file RefundedPayment.hpp.
| std::string tgbotxx::RefundedPayment::telegramPaymentChargeId |
Telegram payment identifier.
Definition at line 29 of file RefundedPayment.hpp.
| std::int64_t tgbotxx::RefundedPayment::totalAmount {} |
Total refunded price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45, total_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 23 of file RefundedPayment.hpp.