@ns8/ns8-shopify-switches
Advanced tools
Comparing version 1.0.209 to 1.0.210
@@ -299,2 +299,14 @@ "use strict"; | ||
console.log(switchContext.merchant.domain, id); | ||
const processingMethod = switchContext.data.processing_method; | ||
if (processingMethod === 'manual' || processingMethod === 'free') { | ||
const msg = 'createNS8OrderFromShopifyOrder:: Received zero-dollar order or order with manual payment.'; | ||
const logData = { | ||
domain: switchContext.merchant.domain, | ||
shopifyOrderId: id, | ||
processingMethod, | ||
method: 'createNS8OrderFromShopifyOrder', | ||
}; | ||
ns8_switch_utils_1.Logger.log(logData, switchContext, msg); | ||
return undefined; | ||
} | ||
const client = getShopifyClient_1.default(switchContext); | ||
@@ -301,0 +313,0 @@ const shopifyOrder = switchContext.data; |
{ | ||
"name": "@ns8/ns8-shopify-switches", | ||
"version": "1.0.209", | ||
"version": "1.0.210", | ||
"description": "Custom switches for the shopify integration", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
109264
1298