|
ORE Studio 0.0.4
|
Manages commands related to CURRENCIES. More...
#include <currencies_commands.hpp>

Static Public Member Functions | |
| static void | register_commands (cli::Menu &root_menu, ores::nats::service::nats_client &session, pagination_context &pagination) |
| Register currency-related commands. | |
| static void | process_get_currencies (std::ostream &out, ores::nats::service::nats_client &session, pagination_context &pagination) |
| Process a get currencies request. | |
| static void | process_add_currency (std::ostream &out, ores::nats::service::nats_client &session, std::string iso_code, std::string name, std::string numeric_code, std::string symbol, std::string fractions_per_unit, std::string change_reason_code, std::string change_commentary) |
| Process an add currency request. | |
| static void | process_delete_currency (std::ostream &out, ores::nats::service::nats_client &session, std::string iso_code) |
| Process a delete currency request. | |
| static void | process_get_currency_history (std::ostream &out, ores::nats::service::nats_client &session, std::string iso_code) |
| Process a get currency history request. | |
Manages commands related to CURRENCIES.
|
static |
Register currency-related commands.
Creates the currencies submenu and adds currency operations.
|
static |
Process a get currencies request.
Retrieves currencies from the server with pagination and displays them.
| out | Output stream for results |
| session | Client session for connectivity. |
| pagination | Pagination context for state management. |

|
static |
Process an add currency request.
Creates a new currency with the provided details. The modified_by field is automatically set from the logged-in user's session.
| out | Output stream for results |
| session | Client session for connectivity. |
| iso_code | ISO 4217 alphabetic code (e.g., "USD") |
| name | Full name of the currency |
| numeric_code | ISO 4217 numeric code (optional) |
| symbol | Currency symbol (optional) |
| fractions_per_unit | Number of fractional units (default: 100) |
| change_reason_code | Code identifying the reason for the change |
| change_commentary | Free-text commentary explaining the change |

|
static |
Process a delete currency request.
Deletes a currency by its ISO code. Requires authentication.
| out | Output stream for results |
| session | Client session for connectivity. |
| iso_code | ISO 4217 code of the currency to delete |

|
static |
Process a get currency history request.
Retrieves the version history for a currency by its ISO code.
| out | Output stream for results |
| session | Client session for connectivity. |
| iso_code | ISO 4217 code of the currency |
