@commercelayer/cli-plugin-triggers 3.2.1 → 3.4.0

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/lib/exec.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const executeAction: (resourceType: string, id: string, action: string, flags: any, fields?: string[] | undefined) => Promise<any>;
1
+ declare const executeAction: (resourceType: string, id: string, action: string, flags: any, fields?: string[]) => Promise<any>;
2
2
  export default executeAction;
@@ -2,4 +2,4 @@ import type { Trigger } from '../common';
2
2
  export declare const triggers: {
3
3
  [key: string]: Trigger;
4
4
  };
5
- export declare type ActionType = 'archive' | 'unarchive' | 'place' | 'cancel' | 'approve' | 'approve_and_capture' | 'authorize' | 'authorization_amount_cents' | 'capture' | 'refund' | 'update_taxes' | 'nullify_payment_source' | 'billing_address_clone_id' | 'shipping_address_clone_id' | 'customer_payment_source_id' | 'shipping_address_same_as_billing' | 'billing_address_same_as_shipping' | 'save_payment_source_to_customer_wallet' | 'save_shipping_address_to_customer_address_book' | 'save_billing_address_to_customer_address_book' | 'refresh';
5
+ export declare type ActionType = 'archive' | 'unarchive' | 'place' | 'cancel' | 'approve' | 'approve_and_capture' | 'authorize' | 'authorization_amount_cents' | 'capture' | 'refund' | 'update_taxes' | 'nullify_payment_source' | 'billing_address_clone_id' | 'shipping_address_clone_id' | 'customer_payment_source_id' | 'shipping_address_same_as_billing' | 'billing_address_same_as_shipping' | 'commit_invoice' | 'refund_invoice' | 'save_payment_source_to_customer_wallet' | 'save_shipping_address_to_customer_address_book' | 'save_billing_address_to_customer_address_book' | 'refresh';
@@ -45,7 +45,7 @@ exports.triggers = {
45
45
  capture: {
46
46
  action: 'capture',
47
47
  trigger: '_capture',
48
- description: 'Send this attribute if you want to capture an approved order.',
48
+ description: 'Send this attribute if you want to capture an authorized order.',
49
49
  },
50
50
  refund: {
51
51
  action: 'refund',
@@ -87,6 +87,16 @@ exports.triggers = {
87
87
  trigger: '_billing_address_same_as_shipping',
88
88
  description: 'Send this attribute if you want the billing address to be cloned from the order\'s shipping address.',
89
89
  },
90
+ commit_invoice: {
91
+ action: 'commit_invoice',
92
+ trigger: '_commit_invoice',
93
+ description: 'Send this attribute if you want commit the sales tax invoice to the associated tax calculator (currently supported by Avalara).',
94
+ },
95
+ refund_invoice: {
96
+ action: 'refund_invoice',
97
+ trigger: '_refund_invoice',
98
+ description: 'Send this attribute if you want refund the sales tax invoice to the associated tax calculator (currently supported by Avalara).',
99
+ },
90
100
  save_payment_source_to_customer_wallet: {
91
101
  action: 'save_payment_source_to_customer_wallet',
92
102
  trigger: '_save_payment_source_to_customer_wallet',
@@ -0,0 +1,5 @@
1
+ import type { Trigger } from '../common';
2
+ export declare const triggers: {
3
+ [key: string]: Trigger;
4
+ };
5
+ export declare type ActionType = 'disable' | 'enable';
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.triggers = void 0;
4
+ exports.triggers = {
5
+ disable: {
6
+ action: 'disable',
7
+ trigger: '_disable',
8
+ description: 'Send this attribute if you want to mark the payment method as disabled.',
9
+ },
10
+ enable: {
11
+ action: 'enable',
12
+ trigger: '_enable',
13
+ description: 'Send this attribute if you want to mark the payment method as enabled.',
14
+ },
15
+ };
@@ -0,0 +1,5 @@
1
+ import type { Trigger } from '../common';
2
+ export declare const triggers: {
3
+ [key: string]: Trigger;
4
+ };
5
+ export declare type ActionType = 'disable' | 'enable';
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.triggers = void 0;
4
+ exports.triggers = {
5
+ disable: {
6
+ action: 'disable',
7
+ trigger: '_disable',
8
+ description: 'Send this attribute if you want to mark the shipping method as disabled.',
9
+ },
10
+ enable: {
11
+ action: 'enable',
12
+ trigger: '_enable',
13
+ description: 'Send this attribute if you want to mark the shipping method as enabled.',
14
+ },
15
+ };