@ikonintegration/mod-license-client 0.4.4 → 0.4.5
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 +2 -0
- package/lib/operations/Order.js +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,10 +47,12 @@ The following header must be specified in every request!
|
|
|
47
47
|
**Order:**
|
|
48
48
|
- API.order.getProviderFromProduct(productObject) - Return provider from product
|
|
49
49
|
- API.order.isMonerisEnabledForProduct(productObject) - Return of Moneris is enabled for this provider.
|
|
50
|
+
- API.order.preOrder(orderObj) - Admin and users
|
|
50
51
|
- API.order.beginOrder(orderObj, provider) - Admin and users
|
|
51
52
|
- API.order.completeOrder(orderObj, provider) - Admin and users
|
|
52
53
|
- API.order.refundOrder(orderObj, provider) - Admin and users
|
|
53
54
|
- API.order.cancelOrder(orderObj, provider) - Admin and users
|
|
55
|
+
- API.order.getOrderByID(orderID) - Admin, users and services
|
|
54
56
|
- API.order.getOrder(externalID, orderID) - Admin, users and services
|
|
55
57
|
- API.order.getOrdersByExternalID(externalID) - Admin, users and services
|
|
56
58
|
- API.order.getOrdersFromToTimestamp(from, to /*timestamps*/) - Admin and services
|
package/lib/operations/Order.js
CHANGED
|
@@ -9,6 +9,12 @@ export default class Order {
|
|
|
9
9
|
return (this.getProviderFromProduct(product).indexOf('moneris') != -1);
|
|
10
10
|
}
|
|
11
11
|
//CC/Skip order
|
|
12
|
+
async preOrder(orderObj) {
|
|
13
|
+
const req = await this.api.newBaseRequest('POST');
|
|
14
|
+
req.path = `/order/pre/common`;
|
|
15
|
+
req.body = orderObj;
|
|
16
|
+
return await req.exec();
|
|
17
|
+
}
|
|
12
18
|
async beginOrder(orderObj, provider) {
|
|
13
19
|
const req = await this.api.newBaseRequest('POST');
|
|
14
20
|
req.path = `/order/begin/${provider}`;
|