20#ifndef ORES_ORE_PLANNER_IMPORT_CHOICES_HPP
21#define ORES_ORE_PLANNER_IMPORT_CHOICES_HPP
26#include <boost/uuid/uuid.hpp>
28namespace ores::ore::planner {
33enum class currency_import_mode {
42enum class reimport_mode {
57 std::string trade_date;
58 std::string effective_date;
59 std::string termination_date;
60 std::string activity_type_code;
61 std::optional<boost::uuids::uuid> default_counterparty_id;
73 currency_import_mode
currency_mode = currency_import_mode::missing_only;
Default field values to stamp onto imported trades.
Definition import_choices.hpp:56
User-supplied choices that drive the import plan.
Definition import_choices.hpp:69
bool create_parent_portfolio
If true, a single parent portfolio wraps all imported portfolios.
Definition import_choices.hpp:88
currency_import_mode currency_mode
How to handle currencies already in the database.
Definition import_choices.hpp:73
std::string parent_portfolio_name
Name for the optional wrapping parent portfolio.
Definition import_choices.hpp:83
trade_defaults defaults
Default field values to stamp onto imported trades.
Definition import_choices.hpp:112
boost::uuids::uuid party_id
Party that owns the imported entities.
Definition import_choices.hpp:128
std::string aggregation_ccy
Aggregation currency for auto-created portfolios.
Definition import_choices.hpp:133
std::string purpose_type
Purpose type for auto-created portfolios.
Definition import_choices.hpp:143
reimport_mode portfolio_reimport_mode
How to handle portfolios and books that already exist.
Definition import_choices.hpp:78
std::optional< boost::uuids::uuid > existing_parent_portfolio_id
UUID of a pre-existing portfolio to use as parent.
Definition import_choices.hpp:121
std::string ledger_ccy
Ledger currency for auto-created books.
Definition import_choices.hpp:138
std::vector< std::string > scan_exclusions
Directory name segments to skip during the filesystem scan.
Definition import_choices.hpp:97
std::vector< std::string > hierarchy_strip
Directory name segments to strip when building the portfolio/book hierarchy.
Definition import_choices.hpp:107