@ikonintegration/mod-license-client 2.0.33 → 2.0.35
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.
|
@@ -3,26 +3,32 @@ export default class LicenseConsumption {
|
|
|
3
3
|
this.api = API;
|
|
4
4
|
}
|
|
5
5
|
async getLicenseConsumption(licenseID, consumptionID) {
|
|
6
|
-
const req = await this.api.newBaseRequest(
|
|
7
|
-
req.path =
|
|
6
|
+
const req = await this.api.newBaseRequest("GET");
|
|
7
|
+
req.path = "/license/" + licenseID + "/consumption/" + consumptionID;
|
|
8
|
+
return await req.exec();
|
|
9
|
+
}
|
|
10
|
+
async updateLicenseConsumption(consumptionID, body) {
|
|
11
|
+
const req = await this.api.newBaseRequest("PUT");
|
|
12
|
+
req.body = { ...body };
|
|
13
|
+
req.path = "/license/consumption" + consumptionID;
|
|
8
14
|
return await req.exec();
|
|
9
15
|
}
|
|
10
16
|
async getLicenseConsumptions(consumptionIDs) {
|
|
11
|
-
const req = await this.api.newBaseRequest(
|
|
17
|
+
const req = await this.api.newBaseRequest("POST");
|
|
12
18
|
req.body = { IDs: consumptionIDs };
|
|
13
|
-
req.path =
|
|
19
|
+
req.path = "/licenses/consumptions";
|
|
14
20
|
return await req.exec();
|
|
15
21
|
}
|
|
16
22
|
async getLicenseConsumptionsByLicenseID(licensesID) {
|
|
17
|
-
const req = await this.api.newBaseRequest(
|
|
23
|
+
const req = await this.api.newBaseRequest("POST");
|
|
18
24
|
req.body = { IDs: licensesID };
|
|
19
|
-
req.path =
|
|
25
|
+
req.path = "/licenses/consumptions/licensesID";
|
|
20
26
|
return await req.exec();
|
|
21
27
|
}
|
|
22
28
|
async searchLicenseConsumption(externalID, from, to) {
|
|
23
|
-
const req = await this.api.newBaseRequest(
|
|
29
|
+
const req = await this.api.newBaseRequest("POST");
|
|
24
30
|
req.body = { externalID, from, to };
|
|
25
|
-
req.path =
|
|
31
|
+
req.path = "/licenses/consumption/search";
|
|
26
32
|
return await req.exec();
|
|
27
33
|
}
|
|
28
34
|
}
|
package/lib/operations/Order.js
CHANGED
|
@@ -70,6 +70,11 @@ export default class Order {
|
|
|
70
70
|
req.path = `/order/${externalID}/${orderID}`;
|
|
71
71
|
return await req.exec();
|
|
72
72
|
}
|
|
73
|
+
async getOrderExpanded(externalID, orderID) {
|
|
74
|
+
const req = await this.api.newBaseRequest("GET");
|
|
75
|
+
req.path = `/order/${externalID}/${orderID}/expanded`;
|
|
76
|
+
return await req.exec();
|
|
77
|
+
}
|
|
73
78
|
async getOrdersByExternalID(externalID) {
|
|
74
79
|
const req = await this.api.newBaseRequest("GET");
|
|
75
80
|
req.path = "/orders/" + externalID;
|