kubesail-shipping
Advanced tools
Comparing version 1.0.7 to 1.0.8
module.exports = [ | ||
// All EU countries are allowed - not in this list | ||
'US', | ||
'UK', | ||
// 'GB', // Waiting on response from German distributor on how VAT in GB works | ||
// TODO: North America | ||
] |
@@ -28,8 +28,8 @@ const countryVat = require('country-vat') | ||
if (euMember(countryCode)) currency = 'EUR' | ||
else if (countryCode === 'UK') currency = 'GBP' | ||
else if (countryCode === 'GB') currency = 'GBP' | ||
let shippingCost = 0 | ||
let shippingCost = [0] | ||
if (['US', 'DE'].includes(countryCode)) { | ||
// These countries get free shipping | ||
shippingCost = 0 | ||
shippingCost = [0] | ||
} else if (typeof shippingCosts[countryCode] !== 'undefined') { | ||
@@ -36,0 +36,0 @@ shippingCost = shippingCostTable[shippingCosts[countryCode]] |
{ | ||
"name": "kubesail-shipping", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "KubeSail Shipping and Tax Cost logic", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
5035