couponable
Advanced tools
Comparing version 2.0.0 to 3.0.0
@@ -32,6 +32,2 @@ function priceFormat(amountInCents) { | ||
if (orderItem.shippingOption) { | ||
total += orderItem.shippingOption.priceInCents || 0; | ||
} | ||
if (orderItem.variation) { | ||
@@ -38,0 +34,0 @@ total += orderItem.variation.priceInCents || 0; |
{ | ||
"name": "couponable", | ||
"description": "Helper functions for dealing with coupons.", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"author": "Chris McC", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -15,6 +15,5 @@ var couponable = require('.'); | ||
quantity: 2, | ||
shippingOption: {priceInCents: 2}, | ||
variation: {priceInCents: 2}, | ||
priceInCents: 2 | ||
}), 12); | ||
}), 8); | ||
}); | ||
@@ -21,0 +20,0 @@ |
11226
329