Skip to content

Commit 90ae464

Browse files
CCM-15623 - BillingId should be optional (#488)
1 parent e938372 commit 90ae464

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

internal/datastore/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const LetterSchema = LetterSchemaBase.extend({
5454
source: z.string(),
5555
subject: z.string(),
5656
billingRef: z.string(),
57-
specificationBillingId: z.string(),
57+
specificationBillingId: z.string().optional(),
5858
}).describe("Letter");
5959

6060
/**

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.15"
40+
"version": "1.0.16"
4141
}

internal/events/src/domain/letter.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,15 @@ 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-
}),
86+
specificationBillingId: z
87+
.string()
88+
.optional()
89+
.meta({
90+
title: "Specification Billing ID",
91+
description:
92+
"The billing ID from the letter specification which was used to produce a letter pack for this request.",
93+
examples: ["1y3q9v1zzzz"],
94+
}),
9295

9396
supplierId: z.string().meta({
9497
title: "Supplier ID",

0 commit comments

Comments
 (0)