@commercelayer/cli-plugin-triggers 1.0.5 → 1.1.3
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 +334 -342
- package/lib/base.js +4 -14
- package/lib/common.d.ts +0 -6
- package/lib/common.js +0 -24
- package/oclif.manifest.json +1 -1
- package/package.json +11 -7
package/lib/base.js
CHANGED
|
@@ -6,22 +6,12 @@ const sdk_1 = require("@commercelayer/sdk");
|
|
|
6
6
|
const command_1 = (0, tslib_1.__importStar)(require("@oclif/command"));
|
|
7
7
|
Object.defineProperty(exports, "flags", { enumerable: true, get: function () { return command_1.flags; } });
|
|
8
8
|
const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
|
|
9
|
-
const
|
|
10
|
-
const update_notifier_1 = (0, tslib_1.__importDefault)(require("update-notifier"));
|
|
11
|
-
const common_1 = require("./common");
|
|
9
|
+
const cli_core_1 = require("@commercelayer/cli-core");
|
|
12
10
|
const pkg = require('../package.json');
|
|
13
11
|
class default_1 extends command_1.default {
|
|
14
12
|
// INIT (override)
|
|
15
13
|
async init() {
|
|
16
|
-
|
|
17
|
-
if (notifier.update) {
|
|
18
|
-
const pluginMode = path_1.default.resolve(__dirname).includes(`/@commercelayer/cli/node_modules/${pkg.name}/`);
|
|
19
|
-
const command = pluginMode ? 'commercelayer plugins:update' : '{updateCommand}';
|
|
20
|
-
notifier.notify({
|
|
21
|
-
isGlobal: !pluginMode,
|
|
22
|
-
message: `-= ${chalk_1.default.bgWhite.black.bold(` ${pkg.description} `)} =-\n\nNew version available: ${chalk_1.default.dim('{currentVersion}')} -> ${chalk_1.default.green('{latestVersion}')}\nRun ${chalk_1.default.cyanBright(command)} to update`,
|
|
23
|
-
});
|
|
24
|
-
}
|
|
14
|
+
cli_core_1.update.checkUpdate(pkg);
|
|
25
15
|
return super.init();
|
|
26
16
|
}
|
|
27
17
|
async catch(error) {
|
|
@@ -36,13 +26,13 @@ class default_1 extends command_1.default {
|
|
|
36
26
|
this.error(chalk_1.default.bgRed(`${err.title}: ${err.detail}`), { suggestions: [`Execute login with sufficient privileges to get access to the organization's resources${res ? ` of type ${chalk_1.default.bold(res)}` : ''}`] });
|
|
37
27
|
}
|
|
38
28
|
else
|
|
39
|
-
this.error(
|
|
29
|
+
this.error(cli_core_1.output.formatError(error, flags));
|
|
40
30
|
}
|
|
41
31
|
else
|
|
42
32
|
throw error;
|
|
43
33
|
}
|
|
44
34
|
printOutput(order, flags) {
|
|
45
|
-
this.log(
|
|
35
|
+
this.log(cli_core_1.output.formatOutput(order, flags));
|
|
46
36
|
}
|
|
47
37
|
successMessage(resource, action, id) {
|
|
48
38
|
this.log(`\nAction ${chalk_1.default.italic.cyanBright(action)} executed without errors on ${resource.replace(/_/g, ' ')} ${chalk_1.default.yellowBright(id)}\n`);
|
package/lib/common.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import { ApiError } from '@commercelayer/sdk';
|
|
2
|
-
declare const formatOutput: (output: any, flags?: any, { color }?: {
|
|
3
|
-
color?: boolean | undefined;
|
|
4
|
-
}) => string;
|
|
5
|
-
declare const formatError: (error: ApiError, flags: any) => string;
|
|
6
|
-
export { formatOutput, formatError };
|
|
7
1
|
export declare type Trigger = {
|
|
8
2
|
action: string;
|
|
9
3
|
trigger: string;
|
package/lib/common.js
CHANGED
|
@@ -1,26 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.formatError = exports.formatOutput = void 0;
|
|
4
|
-
const util_1 = require("util");
|
|
5
|
-
const inspectObject = (object, options) => {
|
|
6
|
-
return (0, util_1.inspect)(object, {
|
|
7
|
-
showHidden: false,
|
|
8
|
-
depth: null,
|
|
9
|
-
colors: (options === null || options === void 0 ? void 0 : options.color) || true,
|
|
10
|
-
sorted: false,
|
|
11
|
-
maxArrayLength: Infinity,
|
|
12
|
-
breakLength: (options === null || options === void 0 ? void 0 : options.breakLength) || 120,
|
|
13
|
-
});
|
|
14
|
-
};
|
|
15
|
-
const formatOutput = (output, flags, { color = true } = {}) => {
|
|
16
|
-
if (!output)
|
|
17
|
-
return '';
|
|
18
|
-
if (typeof output === 'string')
|
|
19
|
-
return output;
|
|
20
|
-
return inspectObject(output, color);
|
|
21
|
-
};
|
|
22
|
-
exports.formatOutput = formatOutput;
|
|
23
|
-
const formatError = (error, flags) => {
|
|
24
|
-
return formatOutput(error.errors, flags);
|
|
25
|
-
};
|
|
26
|
-
exports.formatError = formatError;
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.0.5","commands":{"noc":{"id":"noc","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","hidden":true,"aliases":[],"flags":{},"args":[]},"adyen_payment:authorize":{"id":"adyen_payment:authorize","description":"Send this attribute if you want to authorize the payment.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"adyen_payment:details":{"id":"adyen_payment:details","description":"Send this attribute if you want to send additional details the payment request.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"adyen_payment":{"id":"adyen_payment","description":"execute an action on a resource of type adyen_payments","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"authorization:capture":{"id":"authorization:capture","description":"Send this attribute if you want to create a capture for this authorization.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"authorization:capture_amount_cents":{"id":"authorization:capture_amount_cents","description":"The associated capture amount, in cents.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"authorization":{"id":"authorization","description":"execute an action on a resource of type authorizations","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"authorization:void":{"id":"authorization:void","description":"Send this attribute if you want to create a void for this authorization.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"bundle:compute_compare_at_amount":{"id":"bundle:compute_compare_at_amount","description":"Send this attribute if you want to compute the compare_at_amount_cents as the sum of the prices of the bundle SKUs for the market.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"bundle":{"id":"bundle","description":"execute an action on a resource of type bundles","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"capture":{"id":"capture","description":"execute an action on a resource of type captures","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"capture:refund":{"id":"capture:refund","description":"Send this attribute if you want to create a refund for this capture.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"capture:refund_amount_cents":{"id":"capture:refund_amount_cents","description":"The associated refund amount, in cents.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"checkout_com_payment:authorize":{"id":"checkout_com_payment:authorize","description":"Send this attribute if you want to authorize the payment.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"checkout_com_payment:details":{"id":"checkout_com_payment:details","description":"Send this attribute if you want to send additional details the payment request (i.e. upon 3DS check).","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"checkout_com_payment":{"id":"checkout_com_payment","description":"execute an action on a resource of type checkout_com_payments","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"checkout_com_payment:refresh":{"id":"checkout_com_payment:refresh","description":"Send this attribute if you want to refresh all the pending transactions, can be used as webhooks fallback logic.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"customer_password_reset":{"id":"customer_password_reset","description":"execute an action on a resource of type customer_password_resets","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"customer_password_reset:reset_password_token":{"id":"customer_password_reset:reset_password_token","description":"Send the 'reset_password_token' that you got on create when updating the customer password.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"gift_card:activate":{"id":"gift_card:activate","description":"Send this attribute if you want to activate a gift card.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"gift_card:balance_change_cents":{"id":"gift_card:balance_change_cents","description":"The balance change, in cents. Send a negative value to reduces the card balance by the specified amount. Send a positive value to recharge the gift card (if rechargeable).","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"gift_card:deactivate":{"id":"gift_card:deactivate","description":"Send this attribute if you want to deactivate a gift card.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"gift_card":{"id":"gift_card","description":"execute an action on a resource of type gift_cards","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"gift_card:purchase":{"id":"gift_card:purchase","description":"Send this attribute if you want to confirm a draft gift card. The gift card becomes 'inactive', waiting to be activated.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"in_stock_subscription:activate":{"id":"in_stock_subscription:activate","description":"Send this attribute if you want to activate an inactive subscription.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"in_stock_subscription:deactivate":{"id":"in_stock_subscription:deactivate","description":"Send this attribute if you want to dactivate an active subscription.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"in_stock_subscription":{"id":"in_stock_subscription","description":"execute an action on a resource of type in_stock_subscriptions","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:approve":{"id":"order:approve","description":"Send this attribute if you want to approve a placed order.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:approve_and_capture":{"id":"order:approve_and_capture","description":"Send this attribute if you want to approve and capture a placed order.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:archive":{"id":"order:archive","description":"Send this attribute if you want to archive the order.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:authorization_amount_cents":{"id":"order:authorization_amount_cents","description":"The authorization amount, in cents.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:authorize":{"id":"order:authorize","description":"Send this attribute if you want to authorize the order's payment source.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:billing_address_clone_id":{"id":"order:billing_address_clone_id","description":"The id of the address that you want to clone to create the order's billing address.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true},"value":{"name":"value","type":"option","char":"v","description":"the trigger attribute value","required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:billing_address_same_as_shipping":{"id":"order:billing_address_same_as_shipping","description":"Send this attribute if you want the billing address to be cloned from the order's shipping address.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:cancel":{"id":"order:cancel","description":"Send this attribute if you want to cancel a placed order. The order's authorization will be automatically voided.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:capture":{"id":"order:capture","description":"Send this attribute if you want to capture an approved order.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:customer_payment_source_id":{"id":"order:customer_payment_source_id","description":"The id of the customer payment source (i.e. credit card) that you want to use as the order's payment source.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true},"value":{"name":"value","type":"option","char":"v","description":"the trigger attribute value","required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order":{"id":"order","description":"execute an action on a resource of type orders","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:place":{"id":"order:place","description":"Send this attribute if you want to place the order.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:refresh":{"id":"order:refresh","description":"Send this attribute if you want to manually refresh the order.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:refund":{"id":"order:refund","description":"Send this attribute if you want to refund a captured order.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:save_billing_address_to_customer_address_book":{"id":"order:save_billing_address_to_customer_address_book","description":"Send this attribute if you want the order's billing address to be saved in the customer's address book as a customer address.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:save_payment_source_to_customer_wallet":{"id":"order:save_payment_source_to_customer_wallet","description":"Send this attribute if you want the order's payment source to be saved in the customer's wallet as a customer payment source.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:save_shipping_address_to_customer_address_book":{"id":"order:save_shipping_address_to_customer_address_book","description":"Send this attribute if you want the order's shipping address to be saved in the customer's address book as a customer address.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:shipping_address_clone_id":{"id":"order:shipping_address_clone_id","description":"The id of the address that you want to clone to create the order's shipping address.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true},"value":{"name":"value","type":"option","char":"v","description":"the trigger attribute value","required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:shipping_address_same_as_billing":{"id":"order:shipping_address_same_as_billing","description":"Send this attribute if you want the shipping address to be cloned from the order's billing address.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:unarchive":{"id":"order:unarchive","description":"Send this attribute if you want to unarchive the order.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:update_taxes":{"id":"order:update_taxes","description":"Send this attribute if you want to force tax calculation for this order (a tax calculator must be associated to the order's market).","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order_subscription:activate":{"id":"order_subscription:activate","description":"Send this attribute if you want to mark this subscription as active.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order_subscription:cancel":{"id":"order_subscription:cancel","description":"Send this attribute if you want to mark this subscription as cancelled.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order_subscription:deactivate":{"id":"order_subscription:deactivate","description":"Send this attribute if you want to mark this subscription as inactive.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order_subscription":{"id":"order_subscription","description":"execute an action on a resource of type order_subscriptions","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"return:approve":{"id":"return:approve","description":"Send this attribute if you want to mark this return as approved.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"return:archive":{"id":"return:archive","description":"Send this attribute if you want to archive the return.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"return:cancel":{"id":"return:cancel","description":"Send this attribute if you want to mark this return as cancelled.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"return":{"id":"return","description":"execute an action on a resource of type returns","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"return:receive":{"id":"return:receive","description":"Send this attribute if you want to mark this return as received.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"return:reject":{"id":"return:reject","description":"Send this attribute if you want to mark this return as rejected.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"return:request":{"id":"return:request","description":"Send this attribute if you want to activate this return.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"return:restock":{"id":"return:restock","description":"Send this attribute if you want to restock all of the return line items.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"return:ship":{"id":"return:ship","description":"Send this attribute if you want to mark this return as shipped.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"return:unarchive":{"id":"return:unarchive","description":"Send this attribute if you want to unarchive the return.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"return_line_item":{"id":"return_line_item","description":"execute an action on a resource of type return_line_items","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"return_line_item:restock":{"id":"return_line_item:restock","description":"Send this attribute if you want to restock the line item.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"shipment:get_rates":{"id":"shipment:get_rates","description":"Send this attribute if you want get the shipping rates from the associated carrier accounts.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"shipment":{"id":"shipment","description":"execute an action on a resource of type shipments","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"shipment:on_hold":{"id":"shipment:on_hold","description":"Send this attribute if you want to put this shipment on hold.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"shipment:packing":{"id":"shipment:packing","description":"Send this attribute if you want to start packing this shipment.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"shipment:picking":{"id":"shipment:picking","description":"Send this attribute if you want to start picking this shipment.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"shipment:purchase":{"id":"shipment:purchase","description":"Send this attribute if you want to purchase this shipment with the selected rate.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"shipment:ready_to_ship":{"id":"shipment:ready_to_ship","description":"Send this attribute if you want to mark this shipment as ready to ship.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"shipment:ship":{"id":"shipment:ship","description":"Send this attribute if you want to mark this shipment as shipped.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"stock_transfer:cancel":{"id":"stock_transfer:cancel","description":"Send this attribute if you want to cancel this stock transfer.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"stock_transfer:complete":{"id":"stock_transfer:complete","description":"Send this attribute if you want to complete this stock transfer.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"stock_transfer:in_transit":{"id":"stock_transfer:in_transit","description":"Send this attribute if you want to mark this stock transfer as in transit.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"stock_transfer":{"id":"stock_transfer","description":"execute an action on a resource of type stock_transfers","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"stock_transfer:picking":{"id":"stock_transfer:picking","description":"Send this attribute if you want to start picking this stock transfer.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"stock_transfer:upcoming":{"id":"stock_transfer:upcoming","description":"Send this attribute if you want to mark this stock transfer as upcoming.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"stripe_payment":{"id":"stripe_payment","description":"execute an action on a resource of type stripe_payments","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"stripe_payment:refresh":{"id":"stripe_payment:refresh","description":"Send this attribute if you want to refresh the payment status, can be used as webhooks fallback logic.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"webhook":{"id":"webhook","description":"execute an action on a resource of type webhooks","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"webhook:reset_circuit":{"id":"webhook:reset_circuit","description":"Send this attribute if you want to reset the circuit breaker associated to this webhook to 'closed' state and zero failures count.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]}}}
|
|
1
|
+
{"version":"1.1.3","commands":{"noc":{"id":"noc","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","hidden":true,"aliases":[],"flags":{},"args":[]},"adyen_payment:authorize":{"id":"adyen_payment:authorize","description":"Send this attribute if you want to authorize the payment.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"adyen_payment:details":{"id":"adyen_payment:details","description":"Send this attribute if you want to send additional details the payment request.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"adyen_payment":{"id":"adyen_payment","description":"execute an action on a resource of type adyen_payments","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"authorization:capture":{"id":"authorization:capture","description":"Send this attribute if you want to create a capture for this authorization.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"authorization:capture_amount_cents":{"id":"authorization:capture_amount_cents","description":"The associated capture amount, in cents.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"authorization":{"id":"authorization","description":"execute an action on a resource of type authorizations","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"authorization:void":{"id":"authorization:void","description":"Send this attribute if you want to create a void for this authorization.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"bundle:compute_compare_at_amount":{"id":"bundle:compute_compare_at_amount","description":"Send this attribute if you want to compute the compare_at_amount_cents as the sum of the prices of the bundle SKUs for the market.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"bundle":{"id":"bundle","description":"execute an action on a resource of type bundles","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"capture":{"id":"capture","description":"execute an action on a resource of type captures","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"capture:refund":{"id":"capture:refund","description":"Send this attribute if you want to create a refund for this capture.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"capture:refund_amount_cents":{"id":"capture:refund_amount_cents","description":"The associated refund amount, in cents.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"checkout_com_payment:authorize":{"id":"checkout_com_payment:authorize","description":"Send this attribute if you want to authorize the payment.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"checkout_com_payment:details":{"id":"checkout_com_payment:details","description":"Send this attribute if you want to send additional details the payment request (i.e. upon 3DS check).","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"checkout_com_payment":{"id":"checkout_com_payment","description":"execute an action on a resource of type checkout_com_payments","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"checkout_com_payment:refresh":{"id":"checkout_com_payment:refresh","description":"Send this attribute if you want to refresh all the pending transactions, can be used as webhooks fallback logic.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"customer_password_reset":{"id":"customer_password_reset","description":"execute an action on a resource of type customer_password_resets","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"customer_password_reset:reset_password_token":{"id":"customer_password_reset:reset_password_token","description":"Send the 'reset_password_token' that you got on create when updating the customer password.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"gift_card:activate":{"id":"gift_card:activate","description":"Send this attribute if you want to activate a gift card.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"gift_card:balance_change_cents":{"id":"gift_card:balance_change_cents","description":"The balance change, in cents. Send a negative value to reduces the card balance by the specified amount. Send a positive value to recharge the gift card (if rechargeable).","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"gift_card:deactivate":{"id":"gift_card:deactivate","description":"Send this attribute if you want to deactivate a gift card.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"gift_card":{"id":"gift_card","description":"execute an action on a resource of type gift_cards","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"gift_card:purchase":{"id":"gift_card:purchase","description":"Send this attribute if you want to confirm a draft gift card. The gift card becomes 'inactive', waiting to be activated.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"in_stock_subscription:activate":{"id":"in_stock_subscription:activate","description":"Send this attribute if you want to activate an inactive subscription.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"in_stock_subscription:deactivate":{"id":"in_stock_subscription:deactivate","description":"Send this attribute if you want to dactivate an active subscription.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"in_stock_subscription":{"id":"in_stock_subscription","description":"execute an action on a resource of type in_stock_subscriptions","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:approve":{"id":"order:approve","description":"Send this attribute if you want to approve a placed order.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:approve_and_capture":{"id":"order:approve_and_capture","description":"Send this attribute if you want to approve and capture a placed order.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:archive":{"id":"order:archive","description":"Send this attribute if you want to archive the order.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:authorization_amount_cents":{"id":"order:authorization_amount_cents","description":"The authorization amount, in cents.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:authorize":{"id":"order:authorize","description":"Send this attribute if you want to authorize the order's payment source.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:billing_address_clone_id":{"id":"order:billing_address_clone_id","description":"The id of the address that you want to clone to create the order's billing address.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true},"value":{"name":"value","type":"option","char":"v","description":"the trigger attribute value","required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:billing_address_same_as_shipping":{"id":"order:billing_address_same_as_shipping","description":"Send this attribute if you want the billing address to be cloned from the order's shipping address.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:cancel":{"id":"order:cancel","description":"Send this attribute if you want to cancel a placed order. The order's authorization will be automatically voided.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:capture":{"id":"order:capture","description":"Send this attribute if you want to capture an approved order.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:customer_payment_source_id":{"id":"order:customer_payment_source_id","description":"The id of the customer payment source (i.e. credit card) that you want to use as the order's payment source.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true},"value":{"name":"value","type":"option","char":"v","description":"the trigger attribute value","required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order":{"id":"order","description":"execute an action on a resource of type orders","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:place":{"id":"order:place","description":"Send this attribute if you want to place the order.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:refresh":{"id":"order:refresh","description":"Send this attribute if you want to manually refresh the order.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:refund":{"id":"order:refund","description":"Send this attribute if you want to refund a captured order.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:save_billing_address_to_customer_address_book":{"id":"order:save_billing_address_to_customer_address_book","description":"Send this attribute if you want the order's billing address to be saved in the customer's address book as a customer address.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:save_payment_source_to_customer_wallet":{"id":"order:save_payment_source_to_customer_wallet","description":"Send this attribute if you want the order's payment source to be saved in the customer's wallet as a customer payment source.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:save_shipping_address_to_customer_address_book":{"id":"order:save_shipping_address_to_customer_address_book","description":"Send this attribute if you want the order's shipping address to be saved in the customer's address book as a customer address.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:shipping_address_clone_id":{"id":"order:shipping_address_clone_id","description":"The id of the address that you want to clone to create the order's shipping address.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true},"value":{"name":"value","type":"option","char":"v","description":"the trigger attribute value","required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:shipping_address_same_as_billing":{"id":"order:shipping_address_same_as_billing","description":"Send this attribute if you want the shipping address to be cloned from the order's billing address.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:unarchive":{"id":"order:unarchive","description":"Send this attribute if you want to unarchive the order.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order:update_taxes":{"id":"order:update_taxes","description":"Send this attribute if you want to force tax calculation for this order (a tax calculator must be associated to the order's market).","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order_subscription:activate":{"id":"order_subscription:activate","description":"Send this attribute if you want to mark this subscription as active.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order_subscription:cancel":{"id":"order_subscription:cancel","description":"Send this attribute if you want to mark this subscription as cancelled.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order_subscription:deactivate":{"id":"order_subscription:deactivate","description":"Send this attribute if you want to mark this subscription as inactive.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"order_subscription":{"id":"order_subscription","description":"execute an action on a resource of type order_subscriptions","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"return:approve":{"id":"return:approve","description":"Send this attribute if you want to mark this return as approved.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"return:archive":{"id":"return:archive","description":"Send this attribute if you want to archive the return.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"return:cancel":{"id":"return:cancel","description":"Send this attribute if you want to mark this return as cancelled.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"return":{"id":"return","description":"execute an action on a resource of type returns","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"return:receive":{"id":"return:receive","description":"Send this attribute if you want to mark this return as received.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"return:reject":{"id":"return:reject","description":"Send this attribute if you want to mark this return as rejected.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"return:request":{"id":"return:request","description":"Send this attribute if you want to activate this return.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"return:restock":{"id":"return:restock","description":"Send this attribute if you want to restock all of the return line items.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"return:ship":{"id":"return:ship","description":"Send this attribute if you want to mark this return as shipped.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"return:unarchive":{"id":"return:unarchive","description":"Send this attribute if you want to unarchive the return.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"return_line_item":{"id":"return_line_item","description":"execute an action on a resource of type return_line_items","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"return_line_item:restock":{"id":"return_line_item:restock","description":"Send this attribute if you want to restock the line item.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"shipment:get_rates":{"id":"shipment:get_rates","description":"Send this attribute if you want get the shipping rates from the associated carrier accounts.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"shipment":{"id":"shipment","description":"execute an action on a resource of type shipments","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"shipment:on_hold":{"id":"shipment:on_hold","description":"Send this attribute if you want to put this shipment on hold.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"shipment:packing":{"id":"shipment:packing","description":"Send this attribute if you want to start packing this shipment.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"shipment:picking":{"id":"shipment:picking","description":"Send this attribute if you want to start picking this shipment.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"shipment:purchase":{"id":"shipment:purchase","description":"Send this attribute if you want to purchase this shipment with the selected rate.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"shipment:ready_to_ship":{"id":"shipment:ready_to_ship","description":"Send this attribute if you want to mark this shipment as ready to ship.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"shipment:ship":{"id":"shipment:ship","description":"Send this attribute if you want to mark this shipment as shipped.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"stock_transfer:cancel":{"id":"stock_transfer:cancel","description":"Send this attribute if you want to cancel this stock transfer.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"stock_transfer:complete":{"id":"stock_transfer:complete","description":"Send this attribute if you want to complete this stock transfer.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"stock_transfer:in_transit":{"id":"stock_transfer:in_transit","description":"Send this attribute if you want to mark this stock transfer as in transit.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"stock_transfer":{"id":"stock_transfer","description":"execute an action on a resource of type stock_transfers","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"stock_transfer:picking":{"id":"stock_transfer:picking","description":"Send this attribute if you want to start picking this stock transfer.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"stock_transfer:upcoming":{"id":"stock_transfer:upcoming","description":"Send this attribute if you want to mark this stock transfer as upcoming.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"stripe_payment":{"id":"stripe_payment","description":"execute an action on a resource of type stripe_payments","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"stripe_payment:refresh":{"id":"stripe_payment:refresh","description":"Send this attribute if you want to refresh the payment status, can be used as webhooks fallback logic.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"webhook":{"id":"webhook","description":"execute an action on a resource of type webhooks","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]},"webhook:reset_circuit":{"id":"webhook:reset_circuit","description":"Send this attribute if you want to reset the circuit breaker associated to this webhook to 'closed' state and zero failures count.","pluginName":"@commercelayer/cli-plugin-triggers","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true}},"args":[{"name":"id","description":"the unique id of the order","required":true}]}}}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercelayer/cli-plugin-triggers",
|
|
3
3
|
"description": "Commerce Layer CLI Triggers plugin",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.1.3",
|
|
5
5
|
"author": "Pierluigi Viti <pierluigi@commercelayer.io>",
|
|
6
6
|
"bin": {
|
|
7
7
|
"cl-triggers": "./bin/run"
|
|
@@ -15,11 +15,16 @@
|
|
|
15
15
|
"@types/inquirer": "^8.1.3",
|
|
16
16
|
"@types/mocha": "^5.2.7",
|
|
17
17
|
"@types/node": "^14.x",
|
|
18
|
-
"@types/update-notifier": "^5.1.0",
|
|
19
18
|
"chai": "^4.3.4",
|
|
20
19
|
"eslint": "^5.16.0",
|
|
21
20
|
"eslint-config-oclif": "^3.1.0",
|
|
22
21
|
"eslint-config-oclif-typescript": "^0.2.0",
|
|
22
|
+
"@typescript-eslint/eslint-plugin": "^2.6.1",
|
|
23
|
+
"@typescript-eslint/parser": "^2.6.1",
|
|
24
|
+
"eslint-config-xo-space": "^0.20.0",
|
|
25
|
+
"eslint-plugin-mocha": "^5.2.0",
|
|
26
|
+
"eslint-plugin-node": "^7.0.1",
|
|
27
|
+
"eslint-plugin-unicorn": "^6.0.1",
|
|
23
28
|
"globby": "^10.0.2",
|
|
24
29
|
"inflector-js": "^1.0.1",
|
|
25
30
|
"jsonapi-typescript": "^0.1.3",
|
|
@@ -66,14 +71,14 @@
|
|
|
66
71
|
"scripts": {
|
|
67
72
|
"postpack": "rm -f oclif.manifest.json",
|
|
68
73
|
"posttest": "eslint . --ext .ts --config .eslintrc",
|
|
69
|
-
"prepack": "rm -rf lib && tsc -b && oclif-dev manifest && npm run
|
|
74
|
+
"prepack": "rm -rf lib && tsc -b && oclif-dev manifest && npm run readme",
|
|
70
75
|
"test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
|
|
71
|
-
"
|
|
72
|
-
"readme": "oclif-dev readme",
|
|
76
|
+
"readme": "oclif-dev readme --plugin --bin=commercelayer && git add README.md",
|
|
73
77
|
"generate": "ts-node gen/generator.ts"
|
|
74
78
|
},
|
|
75
79
|
"types": "lib/index.d.ts",
|
|
76
80
|
"dependencies": {
|
|
81
|
+
"@commercelayer/cli-core": "^0.1.2",
|
|
77
82
|
"@commercelayer/js-auth": "^2.2.4",
|
|
78
83
|
"@commercelayer/sdk": "^2.3.10",
|
|
79
84
|
"@oclif/command": "^1.8.4",
|
|
@@ -81,8 +86,7 @@
|
|
|
81
86
|
"chalk": "^4.1.2",
|
|
82
87
|
"cli-ux": "^5.6.3",
|
|
83
88
|
"inquirer": "^8.2.0",
|
|
84
|
-
"tslib": "^2.3.1"
|
|
85
|
-
"update-notifier": "^5.1.0"
|
|
89
|
+
"tslib": "^2.3.1"
|
|
86
90
|
},
|
|
87
91
|
"publishConfig": {
|
|
88
92
|
"access": "public"
|