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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/discount.js +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "merchi_sdk_js",
3
- "version": "0.0.13",
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,