feat: add daily manual price review workflow
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "ARR frozen daily manual-price override manifest",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["review_version", "review_case_id", "job_id", "source_sha256", "business_date", "processor_version", "rule_set_sha256", "issues", "overrides"],
|
||||
"properties": {
|
||||
"review_version": { "const": "1.0" },
|
||||
"review_case_id": { "type": "string", "pattern": "^dailyreview-[0-9a-f]{32}$" },
|
||||
"job_id": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$" },
|
||||
"source_sha256": { "$ref": "#/$defs/sha256" },
|
||||
"business_date": { "type": "string", "format": "date" },
|
||||
"processor_version": { "type": "string", "const": "4.0.0" },
|
||||
"rule_set_sha256": { "$ref": "#/$defs/sha256" },
|
||||
"issues": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/key" } },
|
||||
"overrides": { "type": "array", "items": { "$ref": "#/$defs/override" } }
|
||||
},
|
||||
"$defs": {
|
||||
"sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
|
||||
"amount": { "type": "string", "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$" },
|
||||
"key": {
|
||||
"type": "object", "additionalProperties": false,
|
||||
"required": ["company_key", "rate_code", "effective_rate_amount"],
|
||||
"properties": {
|
||||
"company_key": { "type": "string", "minLength": 1 },
|
||||
"rate_code": { "type": "string", "pattern": "^[A-Z0-9]+$" },
|
||||
"effective_rate_amount": { "$ref": "#/$defs/amount" }
|
||||
}
|
||||
},
|
||||
"override": {
|
||||
"type": "object", "additionalProperties": false,
|
||||
"required": ["company_key", "rate_code", "effective_rate_amount", "real_price"],
|
||||
"properties": {
|
||||
"company_key": { "type": "string", "minLength": 1 },
|
||||
"rate_code": { "type": "string", "pattern": "^[A-Z0-9]+$" },
|
||||
"effective_rate_amount": { "$ref": "#/$defs/amount" },
|
||||
"real_price": { "type": "string", "pattern": "^(?:0|[1-9][0-9]{0,15})\\.[0-9]{2}$" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user