summaryrefslogtreecommitdiff
path: root/include/tgbot/types/OrderInfo.h
blob: cda9b6fe1d02b2b0607d99bf4e623f0e6cf2cd58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef TGBOT_ORDERINFO_H
#define TGBOT_ORDERINFO_H

#include "tgbot/types/ShippingAddress.h"

#include <string>
#include <memory>

namespace TgBot {

/**
 * @brief This object represents information about an order.
 *
 * https://core.telegram.org/bots/api#orderinfo
 *
 * @ingroup types
 */
class OrderInfo {
public:
    typedef std::shared_ptr<OrderInfo> Ptr;

    /**
     * @brief Optional. User name.
     */
    std::string name;

    /**
     * @brief Optional. User's phone number.
     */
    std::string phoneNumber;

    /**
     * @brief Optional. User email.
     */
    std::string email;

    /**
     * @brief Optional. User shipping address.
     */
    ShippingAddress::Ptr shippingAddress;
};

}

#endif //TGBOT_ORDERINFO_H