custom ECB sql file
This commit is contained in:
@@ -36,6 +36,11 @@ message PreviewEcbConversionRequest {
|
||||
// ISO calendar date (YYYY-MM-DD). Its meaning is selected by
|
||||
// conversion_context: transaction, statement, or decisive date.
|
||||
string anchor_date = 4;
|
||||
|
||||
// Required. Profile whose custom exchange rate table is consulted before the
|
||||
// ECB observations, so the preview matches what posting into that profile
|
||||
// would do.
|
||||
string profile_name = 5;
|
||||
}
|
||||
|
||||
// The conversion and immutable local ECB observation that would be used now.
|
||||
@@ -56,6 +61,14 @@ message PreviewEcbConversionResponse {
|
||||
optional string rate_fetched_at = 13;
|
||||
optional int64 import_batch_id = 14;
|
||||
optional string source_endpoint = 15;
|
||||
|
||||
// Present only when determination_method is custom_rate. rate_date and
|
||||
// units_per_eur then describe the hand-entered row identified here, and the
|
||||
// ECB observation fields above are empty.
|
||||
optional int64 custom_rate_table_definition_id = 16;
|
||||
optional int64 custom_rate_record_id = 17;
|
||||
optional int64 custom_rate_row_revision = 18;
|
||||
optional string custom_rate_note = 19;
|
||||
}
|
||||
|
||||
// Identify one logical money cell whose conversion history should be inspected.
|
||||
@@ -102,10 +115,19 @@ message EcbConversionEvidence {
|
||||
optional int64 import_batch_id = 16;
|
||||
optional string source_endpoint = 17;
|
||||
string evidence_created_at = 18;
|
||||
|
||||
// Present only when determination_method is custom_rate. The hand-entered row
|
||||
// that supplied rate_date and units_per_eur. The row itself stays editable, so
|
||||
// the figures above are the immutable record of what was actually applied.
|
||||
optional int64 custom_rate_table_definition_id = 19;
|
||||
optional int64 custom_rate_record_id = 20;
|
||||
optional int64 custom_rate_row_revision = 21;
|
||||
optional string custom_rate_note = 22;
|
||||
}
|
||||
|
||||
message ListEcbConversionEvidenceResponse {
|
||||
// True when at least one evidence row for this cell used an ECB rate.
|
||||
// True when at least one evidence row for this cell used a rate, whether it
|
||||
// came from ECB or from a hand-entered custom row.
|
||||
bool has_exchange = 1;
|
||||
|
||||
// Newest-first immutable history for this page.
|
||||
|
||||
Reference in New Issue
Block a user