hotfix(medusa-plugin-brightpearl): add email and phone to customer in brightpearl
This commit is contained in:
@@ -649,6 +649,14 @@ class BrightpearlService extends BaseService {
|
|||||||
const customer = await client.customers.create({
|
const customer = await client.customers.create({
|
||||||
firstName: fromOrder.shipping_address.first_name,
|
firstName: fromOrder.shipping_address.first_name,
|
||||||
lastName: fromOrder.shipping_address.last_name,
|
lastName: fromOrder.shipping_address.last_name,
|
||||||
|
telephones: {
|
||||||
|
PRI: fromOrder.shipping_address.phone,
|
||||||
|
},
|
||||||
|
emails: {
|
||||||
|
PRI: fromOrder.email,
|
||||||
|
SEC: fromOrder.email,
|
||||||
|
TER: fromOrder.email,
|
||||||
|
},
|
||||||
postAddressIds: {
|
postAddressIds: {
|
||||||
DEF: address,
|
DEF: address,
|
||||||
BIL: address,
|
BIL: address,
|
||||||
|
|||||||
Reference in New Issue
Block a user