ORE Studio 0.0.4
Loading...
Searching...
No Matches
pricing_engine_type_protocol.hpp
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 *
3 * Copyright (C) 2026 Marco Craveiro <marco.craveiro@gmail.com>
4 *
5 * This program is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU General Public License as published by the Free Software
7 * Foundation; either version 3 of the License, or (at your option) any later
8 * version.
9 *
10 * This program is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
13 * details.
14 *
15 * You should have received a copy of the GNU General Public License along with
16 * this program; if not, write to the Free Software Foundation, Inc., 51
17 * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 *
19 */
20#ifndef ORES_ANALYTICS_MESSAGING_PRICING_ENGINE_TYPE_PROTOCOL_HPP
21#define ORES_ANALYTICS_MESSAGING_PRICING_ENGINE_TYPE_PROTOCOL_HPP
22
23#include <string>
24#include <vector>
25#include "ores.analytics.api/domain/pricing_engine_type.hpp"
26
27namespace ores::analytics::messaging {
28
29struct get_pricing_engine_types_request {
30 using response_type = struct get_pricing_engine_types_response;
31 static constexpr std::string_view nats_subject =
32 "analytics.v1.pricing_engine_types.list";
33};
34
35struct get_pricing_engine_types_response {
36 std::vector<ores::analytics::domain::pricing_engine_type> types;
37 int total_available_count = 0;
38 bool success = true;
39 std::string message;
40};
41
42struct save_pricing_engine_type_request {
43 using response_type = struct save_pricing_engine_type_response;
44 static constexpr std::string_view nats_subject =
45 "analytics.v1.pricing_engine_types.save";
47};
48
49struct save_pricing_engine_type_response {
50 bool success = false;
51 std::string message;
52};
53
54struct delete_pricing_engine_type_request {
55 using response_type = struct delete_pricing_engine_type_response;
56 static constexpr std::string_view nats_subject =
57 "analytics.v1.pricing_engine_types.delete";
58 std::vector<std::string> codes;
59};
60
61struct delete_pricing_engine_type_response {
62 bool success = false;
63 std::string message;
64};
65
66struct get_pricing_engine_type_history_request {
67 using response_type = struct get_pricing_engine_type_history_response;
68 static constexpr std::string_view nats_subject =
69 "analytics.v1.pricing_engine_types.history";
70 std::string code;
71};
72
73struct get_pricing_engine_type_history_response {
74 std::vector<ores::analytics::domain::pricing_engine_type> types;
75 bool success = false;
76 std::string message;
77};
78
79}
80
81#endif
Analytics-specific product taxonomy for ORE pricing engines.
Definition pricing_engine_type.hpp:38