tgbot-cpp
|
This object contains basic information about a successful payment. More...
#include <SuccessfulPayment.h>
Public Types | |
typedef std::shared_ptr< SuccessfulPayment > | Ptr |
Public Attributes | |
std::string | currency |
Three-letter ISO 4217 currency code. | |
std::int32_t | totalAmount |
Total price in the smallest units of the currency (integer, not float/double). | |
std::string | invoicePayload |
Bot specified invoice payload. | |
std::string | shippingOptionId |
Optional. Identifier of the shipping option chosen by the user. | |
OrderInfo::Ptr | orderInfo |
Optional. Order info provided by the user. | |
std::string | telegramPaymentChargeId |
Telegram payment identifier. | |
std::string | providerPaymentChargeId |
Provider payment identifier. | |
This object contains basic information about a successful payment.
https://core.telegram.org/bots/api#successfulpayment
Definition at line 20 of file SuccessfulPayment.h.
typedef std::shared_ptr<SuccessfulPayment> TgBot::SuccessfulPayment::Ptr |
Definition at line 22 of file SuccessfulPayment.h.
std::string TgBot::SuccessfulPayment::currency |
Three-letter ISO 4217 currency code.
Definition at line 27 of file SuccessfulPayment.h.
std::string TgBot::SuccessfulPayment::invoicePayload |
Bot specified invoice payload.
Definition at line 45 of file SuccessfulPayment.h.
OrderInfo::Ptr TgBot::SuccessfulPayment::orderInfo |
Optional. Order info provided by the user.
Definition at line 55 of file SuccessfulPayment.h.
std::string TgBot::SuccessfulPayment::providerPaymentChargeId |
Provider payment identifier.
Definition at line 65 of file SuccessfulPayment.h.
std::string TgBot::SuccessfulPayment::shippingOptionId |
Optional. Identifier of the shipping option chosen by the user.
Definition at line 50 of file SuccessfulPayment.h.
std::string TgBot::SuccessfulPayment::telegramPaymentChargeId |
Telegram payment identifier.
Definition at line 60 of file SuccessfulPayment.h.
std::int32_t TgBot::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 40 of file SuccessfulPayment.h.