commerce/framework/medusa/utils/normalizers/normalize-customer.ts
Kasper Fabricius Kristensen 92d70c752f
Medusa provider (#3)
* initial provider

* readded types
2021-09-14 17:48:06 +02:00

10 lines
262 B
TypeScript

import { Customer } from '@commerce/types/customer'
import { MedusaCustomer } from '@framework/types'
export function normalizeCustomer(customer: MedusaCustomer): Customer {
return {
firstName: customer.first_name,
lastName: customer.last_name,
}
}