Skip to content

Commit 23b6b56

Browse files
add to cloudevents
1 parent 6a54252 commit 23b6b56

4 files changed

Lines changed: 10 additions & 2 deletions

File tree

internal/events/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@
3737
"typecheck": "tsc --noEmit"
3838
},
3939
"types": "dist/index.d.ts",
40-
"version": "1.0.13"
40+
"version": "1.0.14"
4141
}

internal/events/src/domain/letter.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ The identifier will be included as the origin domain in the subject of any corre
8383
examples: ["1y3q9v1zzzz"],
8484
}),
8585

86+
specificationBillingId: z.string().meta({
87+
title: "Specification Billing ID",
88+
description:
89+
"The billing ID from the letter specification which was used to produce a letter pack for this request.",
90+
examples: ["1y3q9v1zzzz"],
91+
}),
92+
8693
supplierId: z.string().meta({
8794
title: "Supplier ID",
8895
description: "Supplier ID allocated to the letter during creation.",

internal/events/src/events/letter-mapper.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export function mapLetterToCloudEvent(
2525
status: letter.status,
2626
specificationId: letter.specificationId,
2727
billingRef: letter.billingRef,
28+
specificationBillingId: letter.specificationBillingId,
2829
supplierId: letter.supplierId,
2930
groupId: letter.groupId,
3031
reasonCode: letter.reasonCode,

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)