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. More... | |
int32_t | totalAmount |
Total price in the smallest units of the currency (integer, not float/double). More... | |
std::string | invoicePayload |
Bot specified invoice payload. More... | |
std::string | shippingOptionId |
Optional. Identifier of the shipping option chosen by the user. More... | |
OrderInfo::Ptr | orderInfo |
Optional. Order info 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 41 of file SuccessfulPayment.h.
typedef std::shared_ptr<SuccessfulPayment> TgBot::SuccessfulPayment::Ptr |
Definition at line 43 of file SuccessfulPayment.h.
std::string TgBot::SuccessfulPayment::currency |
Three-letter ISO 4217 currency code.
Definition at line 48 of file SuccessfulPayment.h.
std::string TgBot::SuccessfulPayment::invoicePayload |
Bot specified invoice payload.
Definition at line 66 of file SuccessfulPayment.h.
OrderInfo::Ptr TgBot::SuccessfulPayment::orderInfo |
Optional. Order info provided by the user.
Definition at line 76 of file SuccessfulPayment.h.
std::string TgBot::SuccessfulPayment::providerPaymentChargeId |
Provider payment identifier.
Definition at line 86 of file SuccessfulPayment.h.
std::string TgBot::SuccessfulPayment::shippingOptionId |
Optional. Identifier of the shipping option chosen by the user.
Definition at line 71 of file SuccessfulPayment.h.
std::string TgBot::SuccessfulPayment::telegramPaymentChargeId |
Telegram payment identifier.
Definition at line 81 of file SuccessfulPayment.h.
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 61 of file SuccessfulPayment.h.