20#ifndef ORES_TRADING_MESSAGING_PAYMENT_FREQUENCY_TYPE_PROTOCOL_HPP
21#define ORES_TRADING_MESSAGING_PAYMENT_FREQUENCY_TYPE_PROTOCOL_HPP
25#include "ores.trading.api/domain/payment_frequency_type.hpp"
27namespace ores::trading::messaging {
29struct get_payment_frequency_types_request {
30 using response_type =
struct get_payment_frequency_types_response;
31 static constexpr std::string_view nats_subject =
"trading.v1.payment-frequency-types.list";
36struct get_payment_frequency_types_response {
37 std::vector<ores::trading::domain::payment_frequency_type> types;
38 int total_available_count = 0;
41struct save_payment_frequency_type_request {
42 using response_type =
struct save_payment_frequency_type_response;
43 static constexpr std::string_view nats_subject =
"trading.v1.payment-frequency-types.save";
47struct save_payment_frequency_type_response {
52struct delete_payment_frequency_type_request {
53 using response_type =
struct delete_payment_frequency_type_response;
54 static constexpr std::string_view nats_subject =
"trading.v1.payment-frequency-types.delete";
55 std::vector<std::string> codes;
58struct delete_payment_frequency_type_response {
63struct get_payment_frequency_type_history_request {
64 using response_type =
struct get_payment_frequency_type_history_response;
65 static constexpr std::string_view nats_subject =
"trading.v1.payment-frequency-types.history";
69struct get_payment_frequency_type_history_response {
72 std::vector<ores::trading::domain::payment_frequency_type> history;
Coupon or payment frequency code (e.g. Annual, Quarterly, Monthly).
Definition payment_frequency_type.hpp:35