tgbot-cpp
Loading...
Searching...
No Matches
Invoice.h
Go to the documentation of this file.
1#ifndef TGBOT_INVOICE_H
2#define TGBOT_INVOICE_H
3
4#include <cstdint>
5#include <string>
6#include <memory>
7
8namespace TgBot {
9
17class Invoice {
18public:
19 typedef std::shared_ptr<Invoice> Ptr;
20
24 std::string title;
25
29 std::string description;
30
34 std::string startParameter;
35
39 std::string currency;
40
52 std::int32_t totalAmount;
53};
54}
55
56#endif //TGBOT_INVOICE_H
This object contains basic information about an invoice.
Definition Invoice.h:17
std::shared_ptr< Invoice > Ptr
Definition Invoice.h:19
std::string title
Product name.
Definition Invoice.h:24
std::string startParameter
Unique bot deep-linking parameter that can be used to generate this invoice.
Definition Invoice.h:34
std::string currency
Three-letter ISO 4217 currency code.
Definition Invoice.h:39
std::string description
Product description.
Definition Invoice.h:29
std::int32_t totalAmount
Total price in the smallest units of the currency (integer, not float/double).
Definition Invoice.h:52
Definition Api.h:39