@ikonintegration/mod-license-client 2.0.3 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -60,6 +60,7 @@ The following header must be specified in every request!
60
60
  - API.order.submitInvoiceOrder(orderObj) - Admin and services
61
61
  - API.order.approveInvoiceOrder(orderObj) - Admin and services
62
62
  - API.order.rejectInvoiceOrder(orderObj) - Admin and services
63
+ - API.order.getOrderByID(orderID) - Admin and services
63
64
 
64
65
  **License:**
65
66
  - API.license.redeemLicense(activationCode, productID) - Service only
@@ -8,10 +8,10 @@ export default class License {
8
8
  req.body = { productID, externalID };
9
9
  return await req.exec();
10
10
  }
11
- async redeemLicense(activationCode, productID, externalID) {
11
+ async redeemLicense(activationCode, productID, externalID, referralID) {
12
12
  const req = await this.api.newBaseRequest('POST');
13
13
  req.path = '/license/redeem';
14
- req.body = { key: activationCode, productID, externalID };
14
+ req.body = { key: activationCode, productID, externalID , referralID };
15
15
  return await req.exec();
16
16
  }
17
17
  async revokeLicense(licenseID) {
@@ -95,4 +95,9 @@ export default class Order {
95
95
  req.bodyType = 'BINARY';
96
96
  return await req.exec();
97
97
  }
98
+ async getOrderByID(orderID) {
99
+ const req = await this.api.newBaseRequest('GET');
100
+ req.path = `/order/${orderID}`;
101
+ return await req.exec();
102
+ }
98
103
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikonintegration/mod-license-client",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "description": "Shared module license API client",
5
5
  "main": "index.js",
6
6
  "scripts": {