ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
counterparty_identifier_service Class Reference

Service for managing counterparty identifiers. More...

#include <counterparty_identifier_service.hpp>

Collaboration diagram for counterparty_identifier_service:
Collaboration graph

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_identifierlist_counterparty_identifiers ()
 Lists all counterparty identifiers.
 
std::vector< domain::counterparty_identifierlist_counterparty_identifiers_by_counterparty (const boost::uuids::uuid &counterparty_id)
 Lists counterparty identifiers for a specific counterparty.
 
std::optional< domain::counterparty_identifierfind_counterparty_identifier (const boost::uuids::uuid &id)
 Finds a counterparty identifier by its ID.
 
std::optional< domain::counterparty_identifierfind_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_identifierget_counterparty_identifier_history (const boost::uuids::uuid &id)
 Gets the version history for a counterparty identifier.
 

Detailed Description

Service for managing counterparty identifiers.

This service provides functionality for:

Constructor & Destructor Documentation

◆ counterparty_identifier_service()

Constructs a counterparty_identifier_service with required repositories.

Parameters
ctxThe database context.

Member Function Documentation

◆ save_counterparty_identifier()

void save_counterparty_identifier ( const domain::counterparty_identifier counterparty_identifier)

Saves a counterparty identifier (creates or updates).

Parameters
counterparty_identifierThe counterparty identifier to save

◆ save_counterparty_identifiers()

void save_counterparty_identifiers ( const std::vector< domain::counterparty_identifier > &  counterparty_identifiers)

Saves multiple counterparty identifiers (creates or updates).

Parameters
counterparty_identifiersThe counterparty identifiers to save

◆ remove_counterparty_identifier()

void remove_counterparty_identifier ( const boost::uuids::uuid &  id)

Removes a counterparty identifier.

Parameters
idThe ID of the counterparty identifier to remove

◆ get_counterparty_identifier_history()

std::vector< domain::counterparty_identifier > get_counterparty_identifier_history ( const boost::uuids::uuid &  id)

Gets the version history for a counterparty identifier.

Parameters
idThe counterparty identifier ID
Returns
Vector of all versions, newest first