ores.analytics.pricing_model_config

Table of Contents

Header entity for a pricing model configuration. Each config contains product mappings (in pricing_model_products) and parameters (in pricing_model_product_parameters). Corresponds to ORE's pricingengine.xml.

1. Flags

2. Columns

2.1. id

UUID uniquely identifying this pricing model configuration.

Surrogate key for the pricing model configuration.

2.2. party_id

The party that owns the document this row belongs to. Set from the session that writes the document, and enforced by row level security, so a party sees only its own configuration.

ctx.generate_uuid()

2.3. name

Human-readable name for this configuration.

Unique per tenant. Examples: 'Standard', 'AMC', 'DeltaGamma', 'SABR'.

std::string("config")

2.4. description

Detailed description of this pricing model configuration.

std::string(faker::lorem::sentence())

2.5. config_variant

Configuration variant tag.

Examples: 'standard', 'amc', 'amccg', 'dg', 'sabr', 'ad'.

std::string("standard")

2.6. configuration_id

The reporting configuration this document is registered as, which is how a report reaches the engines it prices with. Nullable because a document can be imported before it is registered: the mapper reads and writes content and does not invent a header, the caller supplies one.

The foreign key into reporting's configurations is not checked here (:skip_check:): a trigger runs with the inserting service's grants, and this component does not read reporting's tables. Reporting's binding holds the reference; this column only names it.

boost::uuids::nil_uuid()

3. SQL

3.1. Flags

4. Foreign keys

4.1. configuration_id

5. C++

5.1. Flags

5.2. Repository

5.3. Domain includes

#include <string>
#include <boost/uuid/nil_generator.hpp>
#include <boost/uuid/uuid.hpp>

5.4. Entity includes

#include <string>

5.5. Conventions

5.6. Table display

column header
name Name
config_variant Variant
description Description
modified_by Modified By
version Version

5.7. Presentation

5.7.1. Detail fields

field label widget type is_key is_required placeholder
name Name nameEdit line_edit true true Enter configuration name (e.g. Standard, AMC, DeltaGamma)
config_variant Variant configVariantEdit line_edit     Optional variant tag (e.g. standard, amc, dg)
description Description descriptionEdit text_edit     Enter a description of this pricing model configuration

5.7.2. Columns

enum_name field header type width
Name name Name string 180
ConfigVariant config_variant Variant string 100
Description description Description string 300
Version version Version int 70
ModifiedBy modified_by Modified By string 120
RecordedAt recorded_at Recorded At timestamp 150

5.8. Custom repository methods

6. See also

Emacs 29.3 (Org mode 9.6.15)