commerce/framework/medusa/utils/normalizers/normalize-customer.ts
Kasper Fabricius Kristensen 3342d9d1bb
initial provider (#2)
2021-09-14 17:29:38 +02:00

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,
}
}