mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 15:06:59 +00:00
Fix customerSchema
This commit is contained in:
parent
035334a439
commit
fffb17977a
@ -5,14 +5,16 @@ export const getCustomerAddressBodySchema = z.object({
|
||||
})
|
||||
|
||||
export const customerSchema = z.object({
|
||||
id: z.string(),
|
||||
firstName: z.string(),
|
||||
lastName: z.string(),
|
||||
email: z.string().optional(),
|
||||
phone: z.string().optional(),
|
||||
company: z.string().optional(),
|
||||
notes: z.string().optional(),
|
||||
acceptsMarketing: z.boolean().optional(),
|
||||
customer: z.object({
|
||||
id: z.string(),
|
||||
firstName: z.string(),
|
||||
lastName: z.string(),
|
||||
email: z.string().optional(),
|
||||
phone: z.string().optional(),
|
||||
company: z.string().optional(),
|
||||
notes: z.string().optional(),
|
||||
acceptsMarketing: z.boolean().optional(),
|
||||
})
|
||||
})
|
||||
|
||||
export const addressSchema = z.object({
|
||||
|
Loading…
x
Reference in New Issue
Block a user