Skip to content

Commit

Permalink
Allow customer metadata update
Browse files Browse the repository at this point in the history
See issue 9779
medusajs#9779
  • Loading branch information
docloulou authored Oct 24, 2024
1 parent 59e6747 commit 653998e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/medusa/src/api/store/customers/validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ export const StoreCreateCustomer = z.object({
first_name: z.string().nullish(),
last_name: z.string().nullish(),
phone: z.string().nullish(),
metadata: z.record(z.unknown()).nullish(),
})

export const StoreUpdateCustomer = z.object({
company_name: z.string().nullish(),
first_name: z.string().nullish(),
last_name: z.string().nullish(),
phone: z.string().nullish(),
metadata: z.record(z.unknown()).nullish(),
})

export const StoreGetCustomerAddressParams = createSelectParams()
Expand Down

0 comments on commit 653998e

Please sign in to comment.