@ns8/ns8-shopify-switches
Advanced tools
Comparing version 1.0.66 to 1.0.67
@@ -10,5 +10,9 @@ "use strict"; | ||
async update(switchContext) { | ||
const { merchant: { profile: { interceptPaymentCapture, }, }, data: { platformId, status, }, } = switchContext; | ||
const { merchant: { profile, }, data: { platformId, status, }, } = switchContext; | ||
const orderId = parseInt(platformId, 10); | ||
const client = getShopifyClient_1.default(switchContext); | ||
let interceptPaymentCapture = false; | ||
if (profile && profile.interceptPaymentCapture) { | ||
interceptPaymentCapture = profile.interceptPaymentCapture; | ||
} | ||
const orderDetails = getPlatformOrderDetails_1.default(switchContext.data); | ||
@@ -15,0 +19,0 @@ const result = await client.order.update(orderId, orderDetails); |
{ | ||
"name": "@ns8/ns8-shopify-switches", | ||
"version": "1.0.66", | ||
"version": "1.0.67", | ||
"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
33931
421