tgbot-cpp
Invoice.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Oleg Morozenkov
3  * Copyright (c) 2017 Maks Mazurov (fox.cpp)
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a copy
6  * of this software and associated documentation files (the "Software"), to deal
7  * in the Software without restriction, including without limitation the rights
8  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9  * copies of the Software, and to permit persons to whom the Software is
10  * furnished to do so, subject to the following conditions:
11  *
12  * The above copyright notice and this permission notice shall be included in all
13  * copies or substantial portions of the Software.
14  *
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21  * SOFTWARE.
22  */
23 
24 #ifndef TGBOT_INVOICE_H
25 #define TGBOT_INVOICE_H
26 
27 #include <string>
28 #include <memory>
29 
30 namespace TgBot {
31 
39 class Invoice {
40 public:
41  typedef std::shared_ptr<Invoice> Ptr;
42 
46  std::string title;
47 
51  std::string description;
52 
56  std::string startParameter;
57 
61  std::string currency;
62 
74  int32_t totalAmount;
75 };
76 }
77 
78 #endif //TGBOT_INVOICE_H
std::string title
Product name.
Definition: Invoice.h:46
std::string startParameter
Unique bot deep-linking parameter that can be used to generate this invoice.
Definition: Invoice.h:56
Definition: Api.h:49
This object contains basic information about an invoice.
Definition: Invoice.h:39
std::string description
Product description.
Definition: Invoice.h:51
std::string currency
Three-letter ISO 4217 currency code.
Definition: Invoice.h:61
int32_t totalAmount
Total price in the smallest units of the currency (integer, not float/double).
Definition: Invoice.h:74
std::shared_ptr< Invoice > Ptr
Definition: Invoice.h:41