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({
|
export const customerSchema = z.object({
|
||||||
id: z.string(),
|
customer: z.object({
|
||||||
firstName: z.string(),
|
id: z.string(),
|
||||||
lastName: z.string(),
|
firstName: z.string(),
|
||||||
email: z.string().optional(),
|
lastName: z.string(),
|
||||||
phone: z.string().optional(),
|
email: z.string().optional(),
|
||||||
company: z.string().optional(),
|
phone: z.string().optional(),
|
||||||
notes: z.string().optional(),
|
company: z.string().optional(),
|
||||||
acceptsMarketing: z.boolean().optional(),
|
notes: z.string().optional(),
|
||||||
|
acceptsMarketing: z.boolean().optional(),
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
export const addressSchema = z.object({
|
export const addressSchema = z.object({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user