tgbotxx
1.1.6.9
Telegram Bot C++ Library
|
This object contains basic information about a successful payment. https://core.telegram.org/bots/api#successfulpayment. More...
#include <SuccessfulPayment.hpp>
Public Member Functions | |
SuccessfulPayment ()=default | |
SuccessfulPayment (const nl::json &json) | |
nl::json | toJson () const |
Serializes this object to JSON. More... | |
void | fromJson (const nl::json &json) |
Deserializes this object from JSON. More... | |
Public Attributes | |
std::string | currency |
Three-letter ISO 4217 currency code https://core.telegram.org/bots/payments#supported-currencies . More... | |
std::int32_t | totalAmount {} |
Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass 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 . More... | |
std::string | invoicePayload |
Bot specified invoice payload. More... | |
std::string | shippingOptionId |
Optional. Identifier of the shipping option chosen by the user. More... | |
Ptr< OrderInfo > | orderInfo |
Optional. Order information provided by the user. More... | |
std::string | telegramPaymentChargeId |
Telegram payment identifier. More... | |
std::string | providerPaymentChargeId |
Provider payment identifier. More... | |
This object contains basic information about a successful payment. https://core.telegram.org/bots/api#successfulpayment.
Definition at line 8 of file SuccessfulPayment.hpp.
|
default |
|
inlineexplicit |
Definition at line 10 of file SuccessfulPayment.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 55 of file SuccessfulPayment.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 42 of file SuccessfulPayment.hpp.
std::string tgbotxx::SuccessfulPayment::currency |
Three-letter ISO 4217 currency code https://core.telegram.org/bots/payments#supported-currencies .
Definition at line 16 of file SuccessfulPayment.hpp.
std::string tgbotxx::SuccessfulPayment::invoicePayload |
Bot specified invoice payload.
Definition at line 25 of file SuccessfulPayment.hpp.
Optional. Order information provided by the user.
Definition at line 31 of file SuccessfulPayment.hpp.
std::string tgbotxx::SuccessfulPayment::providerPaymentChargeId |
Provider payment identifier.
Definition at line 37 of file SuccessfulPayment.hpp.
std::string tgbotxx::SuccessfulPayment::shippingOptionId |
Optional. Identifier of the shipping option chosen by the user.
Definition at line 28 of file SuccessfulPayment.hpp.
std::string tgbotxx::SuccessfulPayment::telegramPaymentChargeId |
Telegram payment identifier.
Definition at line 34 of file SuccessfulPayment.hpp.
std::int32_t tgbotxx::SuccessfulPayment::totalAmount {} |
Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass 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 22 of file SuccessfulPayment.hpp.