tgbot-cpp
Loading...
Searching...
No Matches
SuccessfulPayment.h
Go to the documentation of this file.
1#ifndef TGBOT_SUCCESSFULPAYMENT_H
2#define TGBOT_SUCCESSFULPAYMENT_H
3
5
6#include <cstdint>
7#include <string>
8#include <memory>
9#include <vector>
10
11namespace TgBot {
12
21public:
22 typedef std::shared_ptr<SuccessfulPayment> Ptr;
23
27 std::string currency;
28
40 std::int32_t totalAmount;
41
45 std::string invoicePayload;
46
50 std::string shippingOptionId;
51
56
61
66};
67}
68
69#endif //TGBOT_SUCCESSFULPAYMENT_H
std::shared_ptr< OrderInfo > Ptr
Definition OrderInfo.h:20
This object contains basic information about a successful payment.
std::string providerPaymentChargeId
Provider payment identifier.
std::string invoicePayload
Bot specified invoice payload.
std::string shippingOptionId
Optional. Identifier of the shipping option chosen by the user.
std::string telegramPaymentChargeId
Telegram payment identifier.
std::int32_t totalAmount
Total price in the smallest units of the currency (integer, not float/double).
std::shared_ptr< SuccessfulPayment > Ptr
std::string currency
Three-letter ISO 4217 currency code.
OrderInfo::Ptr orderInfo
Optional. Order info provided by the user.
Definition Api.h:39