merchi_sdk_js 0.0.14 → 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/src/discount_group.js +0 -1
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,
|
package/src/discount_group.js
CHANGED
@@ -17,7 +17,6 @@ export function DiscountGroup() {
|
|
17
17
|
addPropertyTo(this, 'discountType');
|
18
18
|
addPropertyTo(this, 'discounts');
|
19
19
|
addPropertyTo(this, 'name');
|
20
|
-
addPropertyTo(this, 'code');
|
21
20
|
addPropertyTo(this, 'domain', Domain);
|
22
21
|
addPropertyTo(this, 'product', Product);
|
23
22
|
}
|