@ikonintegration/mod-license-client 0.4.5 → 0.4.6

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
@@ -63,6 +63,7 @@ The following header must be specified in every request!
63
63
 
64
64
  **License:**
65
65
  - API.license.redeemLicense(activationCode, productID) - Service only
66
+ - API.license.redeemLicenseByProduct(productID, externalID) - Service only
66
67
  - API.license.revokeLicense(licenseID) - Admin only
67
68
  - API.license.revokeLicenses(licenseIDs) - Admin only
68
69
  - API.license.getLicense(licenseID, externalID) - Admin, users and services
@@ -2,6 +2,12 @@ export default class License {
2
2
  constructor(API) {
3
3
  this.api = API;
4
4
  }
5
+ async redeemLicenseByProduct(productID, externalID) {
6
+ const req = await this.api.newBaseRequest('POST');
7
+ req.path = '/license/redeem/available';
8
+ req.body = { productID, externalID };
9
+ return await req.exec();
10
+ }
5
11
  async redeemLicense(activationCode, productID, externalID) {
6
12
  const req = await this.api.newBaseRequest('POST');
7
13
  req.path = '/license/redeem';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikonintegration/mod-license-client",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "description": "Shared module license API client",
5
5
  "main": "index.js",
6
6
  "scripts": {