@ikonintegration/mod-license-client 0.4.6 → 0.4.7
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 +1 -1
- package/lib/operations/License.js +5 -0
- package/lib/operations/Order.js +0 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -52,7 +52,6 @@ The following header must be specified in every request!
|
|
|
52
52
|
- API.order.completeOrder(orderObj, provider) - Admin and users
|
|
53
53
|
- API.order.refundOrder(orderObj, provider) - Admin and users
|
|
54
54
|
- API.order.cancelOrder(orderObj, provider) - Admin and users
|
|
55
|
-
- API.order.getOrderByID(orderID) - Admin, users and services
|
|
56
55
|
- API.order.getOrder(externalID, orderID) - Admin, users and services
|
|
57
56
|
- API.order.getOrdersByExternalID(externalID) - Admin, users and services
|
|
58
57
|
- API.order.getOrdersFromToTimestamp(from, to /*timestamps*/) - Admin and services
|
|
@@ -66,6 +65,7 @@ The following header must be specified in every request!
|
|
|
66
65
|
- API.license.redeemLicenseByProduct(productID, externalID) - Service only
|
|
67
66
|
- API.license.revokeLicense(licenseID) - Admin only
|
|
68
67
|
- API.license.revokeLicenses(licenseIDs) - Admin only
|
|
68
|
+
- API.license.getLicenseByID(licenseID) - Admin, users and services
|
|
69
69
|
- API.license.getLicense(licenseID, externalID) - Admin, users and services
|
|
70
70
|
- API.license.getLicensesByExternalID(externalID) - Admin, users and services
|
|
71
71
|
- API.license.getLicensesByExternalIDs(externalIDs) - Admin and services
|
|
@@ -25,6 +25,11 @@ export default class License {
|
|
|
25
25
|
req.body = { licenseIDs };
|
|
26
26
|
return await req.exec();
|
|
27
27
|
}
|
|
28
|
+
async getLicenseByID(licenseID) {
|
|
29
|
+
const req = await this.api.newBaseRequest('GET');
|
|
30
|
+
req.path = `/license/${licenseID}`;
|
|
31
|
+
return await req.exec();
|
|
32
|
+
}
|
|
28
33
|
async getLicense(licenseID, externalID) {
|
|
29
34
|
const req = await this.api.newBaseRequest('GET');
|
|
30
35
|
req.path = '/license/' + licenseID + '/' + externalID;
|
package/lib/operations/Order.js
CHANGED
|
@@ -59,11 +59,6 @@ export default class Order {
|
|
|
59
59
|
return await req.exec();
|
|
60
60
|
}
|
|
61
61
|
//Get order(s)
|
|
62
|
-
async getOrderByID(orderID) {
|
|
63
|
-
const req = await this.api.newBaseRequest('GET');
|
|
64
|
-
req.path = `/order/${orderID}`;
|
|
65
|
-
return await req.exec();
|
|
66
|
-
}
|
|
67
62
|
async getOrder(externalID, orderID) {
|
|
68
63
|
const req = await this.api.newBaseRequest('GET');
|
|
69
64
|
req.path = `/order/${externalID}/${orderID}`;
|