|
ORE Studio 0.0.4
|
Service for managing counterparty identifiers. More...
#include <counterparty_identifier_service.hpp>

Public Types | |
| using | context = ores::database::context |
Public Member Functions | |
| counterparty_identifier_service (context ctx) | |
| Constructs a counterparty_identifier_service with required repositories. | |
| std::vector< domain::counterparty_identifier > | list_counterparty_identifiers () |
| Lists all counterparty identifiers. | |
| std::vector< domain::counterparty_identifier > | list_counterparty_identifiers_by_counterparty (const boost::uuids::uuid &counterparty_id) |
| Lists counterparty identifiers for a specific counterparty. | |
| std::optional< domain::counterparty_identifier > | find_counterparty_identifier (const boost::uuids::uuid &id) |
| Finds a counterparty identifier by its ID. | |
| std::optional< domain::counterparty_identifier > | find_counterparty_identifier_by_code (const std::string &code) |
| Finds a counterparty identifier by its code. | |
| void | save_counterparty_identifier (const domain::counterparty_identifier &counterparty_identifier) |
| Saves a counterparty identifier (creates or updates). | |
| void | save_counterparty_identifiers (const std::vector< domain::counterparty_identifier > &counterparty_identifiers) |
| Saves multiple counterparty identifiers (creates or updates). | |
| void | remove_counterparty_identifier (const boost::uuids::uuid &id) |
| Removes a counterparty identifier. | |
| std::vector< domain::counterparty_identifier > | get_counterparty_identifier_history (const boost::uuids::uuid &id) |
| Gets the version history for a counterparty identifier. | |
Service for managing counterparty identifiers.
This service provides functionality for:
|
explicit |
Constructs a counterparty_identifier_service with required repositories.
| ctx | The database context. |
| void save_counterparty_identifier | ( | const domain::counterparty_identifier & | counterparty_identifier | ) |
Saves a counterparty identifier (creates or updates).
| counterparty_identifier | The counterparty identifier to save |
| void save_counterparty_identifiers | ( | const std::vector< domain::counterparty_identifier > & | counterparty_identifiers | ) |
Saves multiple counterparty identifiers (creates or updates).
| counterparty_identifiers | The counterparty identifiers to save |
| void remove_counterparty_identifier | ( | const boost::uuids::uuid & | id | ) |
Removes a counterparty identifier.
| id | The ID of the counterparty identifier to remove |
| std::vector< domain::counterparty_identifier > get_counterparty_identifier_history | ( | const boost::uuids::uuid & | id | ) |
Gets the version history for a counterparty identifier.
| id | The counterparty identifier ID |