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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "merchi_sdk_js",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "type": "module",
5
5
  "main": "src/merchi.js",
6
6
  "module": "src/merchi.js",
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,
@@ -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
  }