@commercelayer/cli-plugin-triggers 1.0.0-alpha.0 → 1.0.2
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 +330 -330
- package/lib/base.d.ts +1 -1
- package/lib/base.js +2 -2
- package/lib/commands/adyen_payment/authorize.js +1 -1
- package/lib/commands/adyen_payment/details.js +1 -1
- package/lib/commands/adyen_payment/index.js +1 -1
- package/lib/commands/authorization/capture.js +1 -1
- package/lib/commands/authorization/capture_amount_cents.js +1 -1
- package/lib/commands/authorization/index.js +1 -1
- package/lib/commands/authorization/void.js +1 -1
- package/lib/commands/bundle/compute_compare_at_amount.js +1 -1
- package/lib/commands/bundle/index.js +1 -1
- package/lib/commands/capture/index.js +1 -1
- package/lib/commands/capture/refund.js +1 -1
- package/lib/commands/capture/refund_amount_cents.js +1 -1
- package/lib/commands/checkout_com_payment/authorize.js +1 -1
- package/lib/commands/checkout_com_payment/details.js +1 -1
- package/lib/commands/checkout_com_payment/index.js +1 -1
- package/lib/commands/checkout_com_payment/refresh.js +1 -1
- package/lib/commands/customer_password_reset/index.js +1 -1
- package/lib/commands/customer_password_reset/reset_password_token.js +1 -1
- package/lib/commands/gift_card/activate.js +1 -1
- package/lib/commands/gift_card/balance_change_cents.js +1 -1
- package/lib/commands/gift_card/deactivate.js +1 -1
- package/lib/commands/gift_card/index.js +1 -1
- package/lib/commands/gift_card/purchase.js +1 -1
- package/lib/commands/in_stock_subscription/activate.js +1 -1
- package/lib/commands/in_stock_subscription/deactivate.js +1 -1
- package/lib/commands/in_stock_subscription/index.js +1 -1
- package/lib/commands/order/approve.js +1 -1
- package/lib/commands/order/approve_and_capture.js +1 -1
- package/lib/commands/order/archive.js +1 -1
- package/lib/commands/order/authorization_amount_cents.js +1 -1
- package/lib/commands/order/authorize.js +1 -1
- package/lib/commands/order/billing_address_clone_id.js +1 -1
- package/lib/commands/order/billing_address_same_as_shipping.js +1 -1
- package/lib/commands/order/cancel.js +1 -1
- package/lib/commands/order/capture.js +1 -1
- package/lib/commands/order/customer_payment_source_id.js +1 -1
- package/lib/commands/order/index.js +1 -1
- package/lib/commands/order/place.js +1 -1
- package/lib/commands/order/refresh.js +1 -1
- package/lib/commands/order/refund.js +1 -1
- package/lib/commands/order/save_billing_address_to_customer_address_book.js +1 -1
- package/lib/commands/order/save_payment_source_to_customer_wallet.js +1 -1
- package/lib/commands/order/save_shipping_address_to_customer_address_book.js +1 -1
- package/lib/commands/order/shipping_address_clone_id.js +1 -1
- package/lib/commands/order/shipping_address_same_as_billing.js +1 -1
- package/lib/commands/order/unarchive.js +1 -1
- package/lib/commands/order/update_taxes.js +1 -1
- package/lib/commands/order_subscription/activate.js +1 -1
- package/lib/commands/order_subscription/cancel.js +1 -1
- package/lib/commands/order_subscription/deactivate.js +1 -1
- package/lib/commands/order_subscription/index.js +1 -1
- package/lib/commands/return/approve.js +1 -1
- package/lib/commands/return/archive.js +1 -1
- package/lib/commands/return/cancel.js +1 -1
- package/lib/commands/return/index.js +1 -1
- package/lib/commands/return/receive.js +1 -1
- package/lib/commands/return/reject.js +1 -1
- package/lib/commands/return/request.js +1 -1
- package/lib/commands/return/restock.js +1 -1
- package/lib/commands/return/ship.js +1 -1
- package/lib/commands/return/unarchive.js +1 -1
- package/lib/commands/return_line_item/index.js +1 -1
- package/lib/commands/return_line_item/restock.js +1 -1
- package/lib/commands/shipment/get_rates.js +1 -1
- package/lib/commands/shipment/index.js +1 -1
- package/lib/commands/shipment/on_hold.js +1 -1
- package/lib/commands/shipment/packing.js +1 -1
- package/lib/commands/shipment/picking.js +1 -1
- package/lib/commands/shipment/purchase.js +1 -1
- package/lib/commands/shipment/ready_to_ship.js +1 -1
- package/lib/commands/shipment/ship.js +1 -1
- package/lib/commands/stock_transfer/cancel.js +1 -1
- package/lib/commands/stock_transfer/complete.js +1 -1
- package/lib/commands/stock_transfer/in_transit.js +1 -1
- package/lib/commands/stock_transfer/index.js +1 -1
- package/lib/commands/stock_transfer/picking.js +1 -1
- package/lib/commands/stock_transfer/upcoming.js +1 -1
- package/lib/commands/stripe_payment/index.js +1 -1
- package/lib/commands/stripe_payment/refresh.js +1 -1
- package/lib/commands/webhook/index.js +1 -1
- package/lib/commands/webhook/reset_circuit.js +1 -1
- package/lib/exec.d.ts +1 -1
- package/lib/exec.js +4 -4
- package/oclif.manifest.json +1 -1
- package/package.json +12 -16
package/lib/base.d.ts
CHANGED
|
@@ -15,6 +15,6 @@ export default abstract class extends Command {
|
|
|
15
15
|
catch(error: any): Promise<void>;
|
|
16
16
|
protected handleError(error: any, flags?: any): void;
|
|
17
17
|
protected printOutput(order: Order, flags: any): void;
|
|
18
|
-
protected successMessage(action: string, id: string): void;
|
|
18
|
+
protected successMessage(resource: string, action: string, id: string): void;
|
|
19
19
|
}
|
|
20
20
|
export { flags };
|
package/lib/base.js
CHANGED
|
@@ -44,8 +44,8 @@ class default_1 extends command_1.default {
|
|
|
44
44
|
printOutput(order, flags) {
|
|
45
45
|
this.log((0, common_1.formatOutput)(order, flags));
|
|
46
46
|
}
|
|
47
|
-
successMessage(action, id) {
|
|
48
|
-
this.log(`\nAction ${chalk_1.default.italic.cyanBright(action)} executed without errors on
|
|
47
|
+
successMessage(resource, action, id) {
|
|
48
|
+
this.log(`\nAction ${chalk_1.default.italic.cyanBright(action)} executed without errors on ${resource.replace(/_/g, ' ')} ${chalk_1.default.yellowBright(id)}\n`);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
exports.default = default_1;
|
|
@@ -9,7 +9,7 @@ class AdyenPaymentAuthorize extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(AdyenPaymentAuthorize);
|
|
11
11
|
const res = await (0, exec_1.default)('adyen_payments', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('adyen_payment', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class AdyenPaymentDetails extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(AdyenPaymentDetails);
|
|
11
11
|
const res = await (0, exec_1.default)('adyen_payments', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('adyen_payment', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -28,7 +28,7 @@ class AdyenPaymentIndex extends base_1.default {
|
|
|
28
28
|
const res = await (0, exec_1.default)('adyen_payments', id, action, flags, fields);
|
|
29
29
|
this.log();
|
|
30
30
|
this.printOutput(res, flags);
|
|
31
|
-
this.successMessage(action, res.id);
|
|
31
|
+
this.successMessage('adyen payment', action, res.id);
|
|
32
32
|
return res;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -9,7 +9,7 @@ class AuthorizationCapture extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(AuthorizationCapture);
|
|
11
11
|
const res = await (0, exec_1.default)('authorizations', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('authorization', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class AuthorizationCaptureAmountCents extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(AuthorizationCaptureAmountCents);
|
|
11
11
|
const res = await (0, exec_1.default)('authorizations', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('authorization', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -28,7 +28,7 @@ class AuthorizationIndex extends base_1.default {
|
|
|
28
28
|
const res = await (0, exec_1.default)('authorizations', id, action, flags, fields);
|
|
29
29
|
this.log();
|
|
30
30
|
this.printOutput(res, flags);
|
|
31
|
-
this.successMessage(action, res.id);
|
|
31
|
+
this.successMessage('authorization', action, res.id);
|
|
32
32
|
return res;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -9,7 +9,7 @@ class AuthorizationVoid extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(AuthorizationVoid);
|
|
11
11
|
const res = await (0, exec_1.default)('authorizations', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('authorization', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class BundleComputeCompareAtAmount extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(BundleComputeCompareAtAmount);
|
|
11
11
|
const res = await (0, exec_1.default)('bundles', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('bundle', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -28,7 +28,7 @@ class BundleIndex extends base_1.default {
|
|
|
28
28
|
const res = await (0, exec_1.default)('bundles', id, action, flags, fields);
|
|
29
29
|
this.log();
|
|
30
30
|
this.printOutput(res, flags);
|
|
31
|
-
this.successMessage(action, res.id);
|
|
31
|
+
this.successMessage('bundle', action, res.id);
|
|
32
32
|
return res;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -28,7 +28,7 @@ class CaptureIndex extends base_1.default {
|
|
|
28
28
|
const res = await (0, exec_1.default)('captures', id, action, flags, fields);
|
|
29
29
|
this.log();
|
|
30
30
|
this.printOutput(res, flags);
|
|
31
|
-
this.successMessage(action, res.id);
|
|
31
|
+
this.successMessage('capture', action, res.id);
|
|
32
32
|
return res;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -9,7 +9,7 @@ class CaptureRefund extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(CaptureRefund);
|
|
11
11
|
const res = await (0, exec_1.default)('captures', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('capture', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class CaptureRefundAmountCents extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(CaptureRefundAmountCents);
|
|
11
11
|
const res = await (0, exec_1.default)('captures', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('capture', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class CheckoutComPaymentAuthorize extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(CheckoutComPaymentAuthorize);
|
|
11
11
|
const res = await (0, exec_1.default)('checkout_com_payments', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('checkout_com_payment', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class CheckoutComPaymentDetails extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(CheckoutComPaymentDetails);
|
|
11
11
|
const res = await (0, exec_1.default)('checkout_com_payments', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('checkout_com_payment', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -28,7 +28,7 @@ class CheckoutComPaymentIndex extends base_1.default {
|
|
|
28
28
|
const res = await (0, exec_1.default)('checkout_com_payments', id, action, flags, fields);
|
|
29
29
|
this.log();
|
|
30
30
|
this.printOutput(res, flags);
|
|
31
|
-
this.successMessage(action, res.id);
|
|
31
|
+
this.successMessage('checkout com payment', action, res.id);
|
|
32
32
|
return res;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -9,7 +9,7 @@ class CheckoutComPaymentRefresh extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(CheckoutComPaymentRefresh);
|
|
11
11
|
const res = await (0, exec_1.default)('checkout_com_payments', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('checkout_com_payment', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -28,7 +28,7 @@ class CustomerPasswordResetIndex extends base_1.default {
|
|
|
28
28
|
const res = await (0, exec_1.default)('customer_password_resets', id, action, flags, fields);
|
|
29
29
|
this.log();
|
|
30
30
|
this.printOutput(res, flags);
|
|
31
|
-
this.successMessage(action, res.id);
|
|
31
|
+
this.successMessage('customer password reset', action, res.id);
|
|
32
32
|
return res;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -9,7 +9,7 @@ class CustomerPasswordResetResetPasswordToken extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(CustomerPasswordResetResetPasswordToken);
|
|
11
11
|
const res = await (0, exec_1.default)('customer_password_resets', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('customer_password_reset', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class GiftCardActivate extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(GiftCardActivate);
|
|
11
11
|
const res = await (0, exec_1.default)('gift_cards', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('gift_card', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class GiftCardBalanceChangeCents extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(GiftCardBalanceChangeCents);
|
|
11
11
|
const res = await (0, exec_1.default)('gift_cards', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('gift_card', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class GiftCardDeactivate extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(GiftCardDeactivate);
|
|
11
11
|
const res = await (0, exec_1.default)('gift_cards', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('gift_card', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -28,7 +28,7 @@ class GiftCardIndex extends base_1.default {
|
|
|
28
28
|
const res = await (0, exec_1.default)('gift_cards', id, action, flags, fields);
|
|
29
29
|
this.log();
|
|
30
30
|
this.printOutput(res, flags);
|
|
31
|
-
this.successMessage(action, res.id);
|
|
31
|
+
this.successMessage('gift card', action, res.id);
|
|
32
32
|
return res;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -9,7 +9,7 @@ class GiftCardPurchase extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(GiftCardPurchase);
|
|
11
11
|
const res = await (0, exec_1.default)('gift_cards', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('gift_card', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class InStockSubscriptionActivate extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(InStockSubscriptionActivate);
|
|
11
11
|
const res = await (0, exec_1.default)('in_stock_subscriptions', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('in_stock_subscription', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class InStockSubscriptionDeactivate extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(InStockSubscriptionDeactivate);
|
|
11
11
|
const res = await (0, exec_1.default)('in_stock_subscriptions', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('in_stock_subscription', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -28,7 +28,7 @@ class InStockSubscriptionIndex extends base_1.default {
|
|
|
28
28
|
const res = await (0, exec_1.default)('in_stock_subscriptions', id, action, flags, fields);
|
|
29
29
|
this.log();
|
|
30
30
|
this.printOutput(res, flags);
|
|
31
|
-
this.successMessage(action, res.id);
|
|
31
|
+
this.successMessage('in stock subscription', action, res.id);
|
|
32
32
|
return res;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -9,7 +9,7 @@ class OrderApprove extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderApprove);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('order', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class OrderApproveAndCapture extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderApproveAndCapture);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('order', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class OrderArchive extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderArchive);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('order', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class OrderAuthorizationAmountCents extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderAuthorizationAmountCents);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('order', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class OrderAuthorize extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderAuthorize);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('order', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class OrderBillingAddressCloneId extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderBillingAddressCloneId);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('order', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class OrderBillingAddressSameAsShipping extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderBillingAddressSameAsShipping);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('order', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class OrderCancel extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderCancel);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('order', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class OrderCapture extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderCapture);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('order', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class OrderCustomerPaymentSourceId extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderCustomerPaymentSourceId);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('order', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -28,7 +28,7 @@ class OrderIndex extends base_1.default {
|
|
|
28
28
|
const res = await (0, exec_1.default)('orders', id, action, flags, fields);
|
|
29
29
|
this.log();
|
|
30
30
|
this.printOutput(res, flags);
|
|
31
|
-
this.successMessage(action, res.id);
|
|
31
|
+
this.successMessage('order', action, res.id);
|
|
32
32
|
return res;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -9,7 +9,7 @@ class OrderPlace extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderPlace);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('order', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class OrderRefresh extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderRefresh);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('order', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class OrderRefund extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderRefund);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('order', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class OrderSaveBillingAddressToCustomerAddressBook extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderSaveBillingAddressToCustomerAddressBook);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('order', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class OrderSavePaymentSourceToCustomerWallet extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderSavePaymentSourceToCustomerWallet);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('order', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class OrderSaveShippingAddressToCustomerAddressBook extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderSaveShippingAddressToCustomerAddressBook);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('order', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class OrderShippingAddressCloneId extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderShippingAddressCloneId);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('order', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class OrderShippingAddressSameAsBilling extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderShippingAddressSameAsBilling);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('order', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class OrderUnarchive extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderUnarchive);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('order', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class OrderUpdateTaxes extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderUpdateTaxes);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('order', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class OrderSubscriptionActivate extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderSubscriptionActivate);
|
|
11
11
|
const res = await (0, exec_1.default)('order_subscriptions', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('order_subscription', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class OrderSubscriptionCancel extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderSubscriptionCancel);
|
|
11
11
|
const res = await (0, exec_1.default)('order_subscriptions', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('order_subscription', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class OrderSubscriptionDeactivate extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderSubscriptionDeactivate);
|
|
11
11
|
const res = await (0, exec_1.default)('order_subscriptions', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('order_subscription', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -28,7 +28,7 @@ class OrderSubscriptionIndex extends base_1.default {
|
|
|
28
28
|
const res = await (0, exec_1.default)('order_subscriptions', id, action, flags, fields);
|
|
29
29
|
this.log();
|
|
30
30
|
this.printOutput(res, flags);
|
|
31
|
-
this.successMessage(action, res.id);
|
|
31
|
+
this.successMessage('order subscription', action, res.id);
|
|
32
32
|
return res;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -9,7 +9,7 @@ class ReturnApprove extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(ReturnApprove);
|
|
11
11
|
const res = await (0, exec_1.default)('returns', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('return', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class ReturnArchive extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(ReturnArchive);
|
|
11
11
|
const res = await (0, exec_1.default)('returns', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('return', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class ReturnCancel extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(ReturnCancel);
|
|
11
11
|
const res = await (0, exec_1.default)('returns', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('return', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -28,7 +28,7 @@ class ReturnIndex extends base_1.default {
|
|
|
28
28
|
const res = await (0, exec_1.default)('returns', id, action, flags, fields);
|
|
29
29
|
this.log();
|
|
30
30
|
this.printOutput(res, flags);
|
|
31
|
-
this.successMessage(action, res.id);
|
|
31
|
+
this.successMessage('return', action, res.id);
|
|
32
32
|
return res;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -9,7 +9,7 @@ class ReturnReceive extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(ReturnReceive);
|
|
11
11
|
const res = await (0, exec_1.default)('returns', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('return', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class ReturnReject extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(ReturnReject);
|
|
11
11
|
const res = await (0, exec_1.default)('returns', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('return', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class ReturnRequest extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(ReturnRequest);
|
|
11
11
|
const res = await (0, exec_1.default)('returns', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('return', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ class ReturnRestock extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(ReturnRestock);
|
|
11
11
|
const res = await (0, exec_1.default)('returns', args.id, TRIGGER, flags);
|
|
12
|
-
this.successMessage(TRIGGER, res.id);
|
|
12
|
+
this.successMessage('return', TRIGGER, res.id);
|
|
13
13
|
return res;
|
|
14
14
|
}
|
|
15
15
|
}
|