merchi_sdk_js 0.0.13 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/discount.js +3 -0
package/package.json
CHANGED
package/src/discount.js
CHANGED
@@ -9,6 +9,9 @@ export function Discount() {
|
|
9
9
|
addPropertyTo(this, 'id');
|
10
10
|
addPropertyTo(this, 'lowerLimit');
|
11
11
|
addPropertyTo(this, 'amount');
|
12
|
+
addPropertyTo(this, 'code');
|
13
|
+
addPropertyTo(this, 'usageLimit');
|
14
|
+
addPropertyTo(this, 'isPercentage');
|
12
15
|
|
13
16
|
this.discountedUnitCost = function (unitPrice) {
|
14
17
|
var unitCost = unitPrice ? unitPrice : 0,
|