tgbotxx
1.1.6.9
Telegram Bot C++ Library
|
This object represents information about an order. https://core.telegram.org/bots/api#orderinfo. More...
#include <OrderInfo.hpp>
Public Member Functions | |
OrderInfo ()=default | |
OrderInfo (const nl::json &json) | |
nl::json | toJson () const |
Serializes this object to JSON. More... | |
void | fromJson (const nl::json &json) |
Deserializes this object from JSON. More... | |
Public Attributes | |
std::string | name |
Optional. User name. More... | |
std::string | phoneNumber |
Optional. User's phone number. More... | |
std::string | |
Optional. User email. More... | |
Ptr< ShippingAddress > | shippingAddress |
Optional. User shipping address. More... | |
This object represents information about an order. https://core.telegram.org/bots/api#orderinfo.
Definition at line 8 of file OrderInfo.hpp.
|
default |
|
inlineexplicit |
Definition at line 10 of file OrderInfo.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 38 of file OrderInfo.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 28 of file OrderInfo.hpp.
std::string tgbotxx::OrderInfo::email |
Optional. User email.
Definition at line 21 of file OrderInfo.hpp.
std::string tgbotxx::OrderInfo::name |
Optional. User name.
Definition at line 15 of file OrderInfo.hpp.
std::string tgbotxx::OrderInfo::phoneNumber |
Optional. User's phone number.
Definition at line 18 of file OrderInfo.hpp.
Ptr<ShippingAddress> tgbotxx::OrderInfo::shippingAddress |
Optional. User shipping address.
Definition at line 24 of file OrderInfo.hpp.