mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 12:24:18 +00:00
10 lines
287 B
TypeScript
10 lines
287 B
TypeScript
import { Customer } from '@commerce/types/customer'
|
|
import { Customer as MedusaCustomer } from '@medusajs/medusa-js/lib/types'
|
|
|
|
export function normalizeCustomer(customer: MedusaCustomer): Customer {
|
|
return {
|
|
firstName: customer.first_name,
|
|
lastName: customer.last_name,
|
|
}
|
|
}
|