|
ORE Studio 0.0.4
|
Service for managing party identifiers. More...
#include <party_identifier_service.hpp>

Public Types | |
| using | context = ores::database::context |
Public Member Functions | |
| party_identifier_service (context ctx) | |
| Constructs a party_identifier_service with required repositories. | |
| std::vector< domain::party_identifier > | list_party_identifiers () |
| Lists all party identifiers. | |
| std::vector< domain::party_identifier > | list_party_identifiers_by_party (const boost::uuids::uuid &party_id) |
| Lists party identifiers for a specific party. | |
| std::optional< domain::party_identifier > | find_party_identifier (const boost::uuids::uuid &id) |
| Finds a party identifier by its ID. | |
| std::optional< domain::party_identifier > | find_party_identifier_by_code (const std::string &code) |
| Finds a party identifier by its code. | |
| void | save_party_identifier (const domain::party_identifier &party_identifier) |
| Saves a party identifier (creates or updates). | |
| void | save_party_identifiers (const std::vector< domain::party_identifier > &party_identifiers) |
| Saves multiple party identifiers (creates or updates). | |
| void | remove_party_identifier (const boost::uuids::uuid &id) |
| Removes a party identifier. | |
| std::vector< domain::party_identifier > | get_party_identifier_history (const boost::uuids::uuid &id) |
| Gets the version history for a party identifier. | |
Service for managing party identifiers.
This service provides functionality for:
|
explicit |
Constructs a party_identifier_service with required repositories.
| ctx | The database context. |
| void save_party_identifier | ( | const domain::party_identifier & | party_identifier | ) |
Saves a party identifier (creates or updates).
| party_identifier | The party identifier to save |
| void save_party_identifiers | ( | const std::vector< domain::party_identifier > & | party_identifiers | ) |
Saves multiple party identifiers (creates or updates).
| party_identifiers | The party identifiers to save |
| void remove_party_identifier | ( | const boost::uuids::uuid & | id | ) |
Removes a party identifier.
| id | The ID of the party identifier to remove |
| std::vector< domain::party_identifier > get_party_identifier_history | ( | const boost::uuids::uuid & | id | ) |
Gets the version history for a party identifier.
| id | The party identifier ID |