@ikonintegration/mod-license-client 2.0.2 → 2.0.4
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 +3 -1
- package/lib/operations/Order.js +5 -0
- package/lib/operations/Vault.js +7 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -60,6 +60,7 @@ The following header must be specified in every request!
|
|
|
60
60
|
- API.order.submitInvoiceOrder(orderObj) - Admin and services
|
|
61
61
|
- API.order.approveInvoiceOrder(orderObj) - Admin and services
|
|
62
62
|
- API.order.rejectInvoiceOrder(orderObj) - Admin and services
|
|
63
|
+
- API.order.getOrderByID(orderID) - Admin and services
|
|
63
64
|
|
|
64
65
|
**License:**
|
|
65
66
|
- API.license.redeemLicense(activationCode, productID) - Service only
|
|
@@ -88,4 +89,5 @@ The following header must be specified in every request!
|
|
|
88
89
|
- API.key.getKey(activationKey) - Service only
|
|
89
90
|
|
|
90
91
|
**Vault**
|
|
91
|
-
- API.vault.getVaultNonce(externalID, userInfo) - Sysadmins, Admins and users (no services here)
|
|
92
|
+
- API.vault.getVaultNonce(externalID, userInfo) - Sysadmins, Admins and users (no services here)
|
|
93
|
+
- API.vault.setVaultDefaultPaymentMethod(paymentMethodNonce, externalID) - Sysadmins, Admins and users (no services here)
|
package/lib/operations/Order.js
CHANGED
package/lib/operations/Vault.js
CHANGED
|
@@ -8,4 +8,11 @@ export default class Vault {
|
|
|
8
8
|
req.body = { ...userInfo };
|
|
9
9
|
return await req.exec();
|
|
10
10
|
}
|
|
11
|
+
async setVaultDefaultPaymentMethod(paymentMethodNonce, externalID) {
|
|
12
|
+
const req = await this.api.newBaseRequest('POST');
|
|
13
|
+
if (externalID) req.path = '/vault/defaultPayment/' + (externalID || '');
|
|
14
|
+
else req.path = '/vault/defaultPayment';
|
|
15
|
+
req.body = { paymentMethodNonce };
|
|
16
|
+
return req.exec();
|
|
17
|
+
}
|
|
11
18
|
}
|