tgbotxx  1.1.6.9
Telegram Bot C++ Library
tgbotxx::OrderInfo Struct Reference

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 email
 Optional. User email. More...
 
Ptr< ShippingAddressshippingAddress
 Optional. User shipping address. More...
 

Detailed Description

This object represents information about an order. https://core.telegram.org/bots/api#orderinfo.

Definition at line 8 of file OrderInfo.hpp.

Constructor & Destructor Documentation

◆ OrderInfo() [1/2]

tgbotxx::OrderInfo::OrderInfo ( )
default

◆ OrderInfo() [2/2]

tgbotxx::OrderInfo::OrderInfo ( const nl::json &  json)
inlineexplicit

Definition at line 10 of file OrderInfo.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::OrderInfo::fromJson ( const nl::json &  json)
inline

Deserializes this object from JSON.

Definition at line 38 of file OrderInfo.hpp.

◆ toJson()

nl::json tgbotxx::OrderInfo::toJson ( ) const
inline

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 28 of file OrderInfo.hpp.

Member Data Documentation

◆ email

std::string tgbotxx::OrderInfo::email

Optional. User email.

Definition at line 21 of file OrderInfo.hpp.

◆ name

std::string tgbotxx::OrderInfo::name

Optional. User name.

Definition at line 15 of file OrderInfo.hpp.

◆ phoneNumber

std::string tgbotxx::OrderInfo::phoneNumber

Optional. User's phone number.

Definition at line 18 of file OrderInfo.hpp.

◆ shippingAddress

Ptr<ShippingAddress> tgbotxx::OrderInfo::shippingAddress

Optional. User shipping address.

Definition at line 24 of file OrderInfo.hpp.


The documentation for this struct was generated from the following file: