summaryrefslogtreecommitdiff
path: root/include/tgbot/types/ShippingOption.h
blob: 8f09b7648db6d550b54f5831d9ad04fff5254dde (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
#ifndef TGBOT_SHIPPINGOPTION_H
#define TGBOT_SHIPPINGOPTION_H

#include "tgbot/types/LabeledPrice.h"

#include <string>
#include <memory>
#include <vector>

namespace TgBot {

/**
 * @brief This object represents one shipping option.
 *
 * https://core.telegram.org/bots/api#shippingoption
 *
 * @ingroup types
 */
class ShippingOption {
public:
    typedef std::shared_ptr<ShippingOption> Ptr;

    /**
     * @brief Shipping option identifier.
     */
    std::string id;

    /**
     * @brief Option title.
     */
    std::string title;

    /**
     * @brief List of price options.
     */
    std::vector<LabeledPrice::Ptr> prices;
};
}

#endif //TGBOT_SHIPPINGOPTION_H