Skip to content

Commit be03af6

Browse files
CCM-15623 - BillingId should be optional
1 parent c645dfa commit be03af6

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

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/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)