Skip to content

Commit 7f358fc

Browse files
committed
CCM-13295: Add reasonCode and reasonText to PrintLetterTransitioned event
1 parent 29a0414 commit 7f358fc

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

src/cloudevents/domains/digital-letters/2025-10-draft/data/digital-letters-print-letter-transitioned-data.schema.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ properties:
1212
$ref: ../defs/print.schema.yaml#/properties/specificationId
1313
status:
1414
$ref: ../defs/print.schema.yaml#/properties/status
15+
reasonCode:
16+
$ref: ../defs/print.schema.yaml#/properties/reasonCode
17+
reasonText:
18+
$ref: ../defs/print.schema.yaml#/properties/reasonText
1519
supplierId:
1620
$ref: ../defs/print.schema.yaml#/properties/supplierId
1721
time:

src/cloudevents/domains/digital-letters/2025-10-draft/defs/print.schema.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,13 @@ properties:
5959
]
6060
type: "string"
6161
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
62+
reasonCode:
63+
type: string
64+
description: A codified reason for the status of the message
65+
examples:
66+
- "FAILURE001"
67+
reasonText:
68+
type: string
69+
description: Human-readable explanation for the reasonCode
70+
examples:
71+
- "Letter has too many pages"

0 commit comments

Comments
 (0)