Skip to content

Commit e413c87

Browse files
CCM-15623 - BillingId should be optional
1 parent eb2e25b commit e413c87

2 files changed

Lines changed: 5 additions & 2 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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ 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({
86+
specificationBillingId: z
87+
.string()
88+
.optional()
89+
.meta({
8790
title: "Specification Billing ID",
8891
description:
8992
"The billing ID from the letter specification which was used to produce a letter pack for this request.",

0 commit comments

Comments
 (0)