|
ORE Studio 0.0.4
|
Service for managing counterparty contact informations. More...
#include <counterparty_contact_information_service.hpp>

Public Types | |
| using | context = ores::database::context |
Public Member Functions | |
| counterparty_contact_information_service (context ctx) | |
| Constructs a counterparty_contact_information_service with required repositories. | |
| std::vector< domain::counterparty_contact_information > | list_counterparty_contact_informations () |
| Lists all counterparty contact informations. | |
| std::vector< domain::counterparty_contact_information > | list_counterparty_contact_informations_by_counterparty (const boost::uuids::uuid &counterparty_id) |
| Lists counterparty contact informations for a specific counterparty. | |
| std::optional< domain::counterparty_contact_information > | find_counterparty_contact_information (const boost::uuids::uuid &id) |
| Finds a counterparty contact information by its ID. | |
| std::optional< domain::counterparty_contact_information > | find_counterparty_contact_information_by_code (const std::string &code) |
| Finds a counterparty contact information by its code. | |
| void | save_counterparty_contact_information (const domain::counterparty_contact_information &counterparty_contact_information) |
| Saves a counterparty contact information (creates or updates). | |
| void | save_counterparty_contact_informations (const std::vector< domain::counterparty_contact_information > &counterparty_contact_informations) |
| Saves multiple counterparty contact informations (creates or updates). | |
| void | remove_counterparty_contact_information (const boost::uuids::uuid &id) |
| Removes a counterparty contact information. | |
| std::vector< domain::counterparty_contact_information > | get_counterparty_contact_information_history (const boost::uuids::uuid &id) |
| Gets the version history for a counterparty contact information. | |
Service for managing counterparty contact informations.
This service provides functionality for:
|
explicit |
Constructs a counterparty_contact_information_service with required repositories.
| ctx | The database context. |
| void save_counterparty_contact_information | ( | const domain::counterparty_contact_information & | counterparty_contact_information | ) |
Saves a counterparty contact information (creates or updates).
| counterparty_contact_information | The counterparty contact information to save |
| void save_counterparty_contact_informations | ( | const std::vector< domain::counterparty_contact_information > & | counterparty_contact_informations | ) |
Saves multiple counterparty contact informations (creates or updates).
| counterparty_contact_informations | The counterparty contact informations to save |
| void remove_counterparty_contact_information | ( | const boost::uuids::uuid & | id | ) |
Removes a counterparty contact information.
| id | The ID of the counterparty contact information to remove |
| std::vector< domain::counterparty_contact_information > get_counterparty_contact_information_history | ( | const boost::uuids::uuid & | id | ) |
Gets the version history for a counterparty contact information.
| id | The counterparty contact information ID |