|
@@ -178,6 +178,7 @@ async function syncOrders(
|
|
|
currency: order.currency || 'USD',
|
|
currency: order.currency || 'USD',
|
|
|
customer_name: `${order.billing?.first_name || ''} ${order.billing?.last_name || ''}`.trim(),
|
|
customer_name: `${order.billing?.first_name || ''} ${order.billing?.last_name || ''}`.trim(),
|
|
|
customer_email: order.billing?.email || null,
|
|
customer_email: order.billing?.email || null,
|
|
|
|
|
+ customer_phone: order.billing?.phone || null,
|
|
|
line_items: order.line_items || [],
|
|
line_items: order.line_items || [],
|
|
|
billing_address: order.billing || null,
|
|
billing_address: order.billing || null,
|
|
|
shipping_address: order.shipping || null,
|
|
shipping_address: order.shipping || null,
|
|
@@ -249,6 +250,7 @@ async function syncCustomers(
|
|
|
first_name: customer.first_name || null,
|
|
first_name: customer.first_name || null,
|
|
|
last_name: customer.last_name || null,
|
|
last_name: customer.last_name || null,
|
|
|
username: customer.username || null,
|
|
username: customer.username || null,
|
|
|
|
|
+ phone: customer.billing?.phone || null,
|
|
|
billing_address: customer.billing || null,
|
|
billing_address: customer.billing || null,
|
|
|
shipping_address: customer.shipping || null,
|
|
shipping_address: customer.shipping || null,
|
|
|
orders_count: customer.orders_count || 0,
|
|
orders_count: customer.orders_count || 0,
|