20#ifndef ORES_REFDATA_API_MESSAGING_BUSINESS_UNIT_PROTOCOL_HPP
21#define ORES_REFDATA_API_MESSAGING_BUSINESS_UNIT_PROTOCOL_HPP
25#include "ores.refdata.api/domain/business_unit.hpp"
27namespace ores::refdata::messaging {
29struct get_business_units_request {
30 using response_type =
struct get_business_units_response;
31 static constexpr std::string_view nats_subject =
"refdata.v1.business-units.list";
36struct get_business_units_response {
37 std::vector<ores::refdata::domain::business_unit> business_units;
38 int total_available_count = 0;
41struct save_business_unit_request {
42 using response_type =
struct save_business_unit_response;
43 static constexpr std::string_view nats_subject =
"refdata.v1.business-units.save";
47struct save_business_unit_response {
52struct delete_business_unit_request {
53 using response_type =
struct delete_business_unit_response;
54 static constexpr std::string_view nats_subject =
"refdata.v1.business-units.delete";
55 std::vector<std::string> ids;
58struct delete_business_unit_response {
63struct get_business_unit_history_request {
64 using response_type =
struct get_business_unit_history_response;
65 static constexpr std::string_view nats_subject =
"refdata.v1.business-units.history";
69struct get_business_unit_history_response {
72 std::vector<ores::refdata::domain::business_unit> history;
Internal organizational unit within a party.
Definition business_unit.hpp:37