@ikonintegration/mod-license-client 2.0.27 → 2.0.29
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.
|
@@ -19,10 +19,10 @@ export default class License {
|
|
|
19
19
|
req.body = { productID, externalID, sessionID };
|
|
20
20
|
return await req.exec();
|
|
21
21
|
}
|
|
22
|
-
async redeemLicense(activationCode, productID, externalID, referralID) {
|
|
22
|
+
async redeemLicense(activationCode, productID, externalID, referralID, sessionID) {
|
|
23
23
|
const req = await this.api.newBaseRequest("POST");
|
|
24
24
|
req.path = "/license/redeem";
|
|
25
|
-
req.body = { key: activationCode, productID, externalID, referralID };
|
|
25
|
+
req.body = { key: activationCode, productID, externalID, referralID, sessionID };
|
|
26
26
|
return await req.exec();
|
|
27
27
|
}
|
|
28
28
|
async revokeLicense(licenseID) {
|
|
@@ -30,6 +30,11 @@ export default class License {
|
|
|
30
30
|
req.path = "/license/" + licenseID + "/revoke";
|
|
31
31
|
return await req.exec();
|
|
32
32
|
}
|
|
33
|
+
async revokeLicenseActivations(licenseID, numActivations) {
|
|
34
|
+
const req = await this.api.newBaseRequest("POST");
|
|
35
|
+
req.path = `/license/${licenseID}/revoke/${numActivations}`;
|
|
36
|
+
return await req.exec();
|
|
37
|
+
}
|
|
33
38
|
async revokeLicenses(licenseIDs) {
|
|
34
39
|
const req = await this.api.newBaseRequest("POST");
|
|
35
40
|
req.path = "/license/revoke/bulk";
|