Skip to content

Commit a68a003

Browse files
authored
Use nullish for optional nullable fields in stripe v2 outbound payment (dubinc#3786)
1 parent 7eeabf8 commit a68a003

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

apps/web/lib/stripe/stripe-v2-schemas.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,21 +117,19 @@ export const outboundPaymentSchema = z.object({
117117
.object({
118118
reason: z.string().default("unknown_failure"),
119119
})
120-
.optional(),
120+
.nullish(),
121121
returned: z
122122
.object({
123123
reason: z.string().default("unknown_failure"),
124124
})
125-
.optional(),
125+
.nullish(),
126126
})
127-
.nullable()
128-
.optional(),
127+
.nullish(),
129128
trace_id: z
130129
.object({
131130
value: z.string(),
132131
})
133-
.nullable()
134-
.optional(),
132+
.nullish(),
135133
});
136134

137135
export const listPayoutMethodsQuerySchema = z.object({

0 commit comments

Comments
 (0)