@ikonintegration/mod-license-client 2.0.43 → 2.0.45
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.
|
@@ -13,6 +13,12 @@ export default class License {
|
|
|
13
13
|
req.path = "/license/" + externalID + "/unassign/" + activationKey;
|
|
14
14
|
return await req.exec();
|
|
15
15
|
}
|
|
16
|
+
async assignLicenseCount(externalID, licenseID, body) {
|
|
17
|
+
const req = await this.api.newBaseRequest("PUT");
|
|
18
|
+
req.path = "/license/" + externalID + "/adjust/" + licenseID;
|
|
19
|
+
req.body = { ...body };
|
|
20
|
+
return await req.exec();
|
|
21
|
+
}
|
|
16
22
|
async redeemLicenseByProduct(productID, externalID, sessionID) {
|
|
17
23
|
const req = await this.api.newBaseRequest("POST");
|
|
18
24
|
req.path = "/license/redeem/available";
|
package/lib/operations/Order.js
CHANGED
|
@@ -80,11 +80,12 @@ export default class Order {
|
|
|
80
80
|
req.path = "/orders/" + externalID;
|
|
81
81
|
return await req.exec();
|
|
82
82
|
}
|
|
83
|
-
async getOrdersFromToTimestamp(from, to) {
|
|
83
|
+
async getOrdersFromToTimestamp(from, to, isSummary) {
|
|
84
84
|
const req = await this.api.newBaseRequest("GET");
|
|
85
85
|
req.path = "/orders/report";
|
|
86
86
|
req.appendQueryParam("from", from);
|
|
87
87
|
req.appendQueryParam("to", to);
|
|
88
|
+
if (isSummary) req.appendQueryParam("isSummary", "true");
|
|
88
89
|
return await req.exec();
|
|
89
90
|
}
|
|
90
91
|
async getOrdersByExternalID(externalID) {
|