20#ifndef ORES_ANALYTICS_MESSAGING_PRICING_MODEL_PRODUCT_PROTOCOL_HPP
21#define ORES_ANALYTICS_MESSAGING_PRICING_MODEL_PRODUCT_PROTOCOL_HPP
25#include <boost/uuid/uuid.hpp>
26#include "ores.analytics.api/domain/pricing_model_product.hpp"
28namespace ores::analytics::messaging {
30struct get_pricing_model_products_request {
31 using response_type =
struct get_pricing_model_products_response;
32 static constexpr std::string_view nats_subject =
33 "analytics.v1.pricing_model_products.list";
34 std::string config_id;
37struct get_pricing_model_products_response {
38 std::vector<ores::analytics::domain::pricing_model_product> products;
39 int total_available_count = 0;
44struct save_pricing_model_product_request {
45 using response_type =
struct save_pricing_model_product_response;
46 static constexpr std::string_view nats_subject =
47 "analytics.v1.pricing_model_products.save";
51struct save_pricing_model_product_response {
56struct delete_pricing_model_product_request {
57 using response_type =
struct delete_pricing_model_product_response;
58 static constexpr std::string_view nats_subject =
59 "analytics.v1.pricing_model_products.delete";
60 std::vector<boost::uuids::uuid> ids;
63struct delete_pricing_model_product_response {
68struct get_pricing_model_product_history_request {
69 using response_type =
struct get_pricing_model_product_history_response;
70 static constexpr std::string_view nats_subject =
71 "analytics.v1.pricing_model_products.history";
72 boost::uuids::uuid id;
75struct get_pricing_model_product_history_response {
76 std::vector<ores::analytics::domain::pricing_model_product> products;
Per-product model and engine assignment within a pricing model config.
Definition pricing_model_product.hpp:38