@ns8/ns8-shopify-switches
Advanced tools
Comparing version 1.0.210 to 1.0.211
@@ -198,2 +198,6 @@ "use strict"; | ||
exports.getClientDetails = getClientDetails; | ||
const orderIsFree = (order) => { | ||
const totalPrice = parseFloat(order.total_price); | ||
return order.processing_method === 'free' || totalPrice === 0; | ||
}; | ||
const shouldOrderBeProcessed = (transaction) => { | ||
@@ -301,3 +305,3 @@ const { kind, payment_details, status, source_name, } = transaction; | ||
const processingMethod = switchContext.data.processing_method; | ||
if (processingMethod === 'manual' || processingMethod === 'free') { | ||
if (processingMethod === 'manual' || orderIsFree(switchContext.data)) { | ||
const msg = 'createNS8OrderFromShopifyOrder:: Received zero-dollar order or order with manual payment.'; | ||
@@ -304,0 +308,0 @@ const logData = { |
{ | ||
"name": "@ns8/ns8-shopify-switches", | ||
"version": "1.0.210", | ||
"version": "1.0.211", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
109615
1302