ores.refdata.counterparty
Table of Contents
External trading partners and counterparties that participate in financial transactions with the organisation. Counterparties form a hierarchy through parent_counterparty_id for group structures.
Flags
Primary key
UUID uniquely identifying this counterparty.
Surrogate key for the counterparty record.
Natural keys
full_name
Full legal name of the counterparty.
The official registered name of the external entity.
std::string(faker::company::name())
short_code
Short code for quick reference.
A brief mnemonic code used in trading systems.
std::string(faker::string::alpha(6))
Columns
party_type
Classification of this counterparty.
References the party_type lookup table.
std::string("Bank")
parent_counterparty_id
Parent counterparty for hierarchy.
References the parent counterparty record for group structures. Null for root counterparties.
std::nullopt
business_center_code
Business center location code.
FpML business center code indicating primary location.
std::string("USNY")
status
Current lifecycle status.
References the party_status lookup table.
std::string("Active")
SQL
Flags
C++
Flags
Repository
Domain includes
#include <chrono> #include <string> #include <optional> #include <boost/uuid/uuid.hpp>
Entity includes
#include <string> #include <optional> #include "sqlgen/Timestamp.hpp" #include "sqlgen/PrimaryKey.hpp"
Conventions
Table display
| column | header |
|---|---|
| short_code | Code |
| full_name | Name |
| party_type | Type |
| status | Status |
| business_center_code | Business Center |
| modified_by | Modified By |
| version | Version |
Qt
Detail fields
| field | label | widget | type | is_key | is_required | placeholder |
|---|---|---|---|---|---|---|
| short_code | Short Code | codeEdit | line_edit | true | true | Enter short code |
| full_name | Full Name | nameEdit | line_edit | true | Enter full name | |
| party_type | Party Type | partyTypeEdit | line_edit | Enter party type | ||
| status | Status | statusEdit | line_edit | Enter status | ||
| business_center_code | Business Center | businessCenterEdit | line_edit | Enter business center code |
Columns (Qt model)
| enum_name | field | header | type | width |
|---|---|---|---|---|
| ShortCode | short_code | Code | string | 120 |
| FullName | full_name | Name | string | 250 |
| PartyType | party_type | Type | string | 120 |
| Status | status | Status | string | 100 |
| BusinessCenterCode | business_center_code | Business Center | string | 130 |
| Version | version | Version | int | 80 |
| ModifiedBy | modified_by | Modified By | string | 120 |
| RecordedAt | recorded_at | Recorded At | timestamp | 150 |
Custom repository methods
See also
- ores.refdata — component group overview.