@commercelayer/cli-plugin-triggers 4.9.1 → 4.9.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 +208 -0
- package/lib/commands/cleanup/index.d.ts +9 -0
- package/lib/commands/cleanup/index.js +40 -0
- package/lib/commands/cleanup/interrupt.d.ts +9 -0
- package/lib/commands/cleanup/interrupt.js +22 -0
- package/lib/commands/export/index.d.ts +9 -0
- package/lib/commands/export/index.js +40 -0
- package/lib/commands/export/interrupt.d.ts +9 -0
- package/lib/commands/export/interrupt.js +22 -0
- package/lib/commands/import/index.d.ts +9 -0
- package/lib/commands/import/index.js +40 -0
- package/lib/commands/import/interrupt.d.ts +9 -0
- package/lib/commands/import/interrupt.js +22 -0
- package/lib/commands/order/fix_payment_source.d.ts +9 -0
- package/lib/commands/order/fix_payment_source.js +22 -0
- package/lib/commands/vertex_account/index.d.ts +9 -0
- package/lib/commands/vertex_account/index.js +40 -0
- package/lib/commands/vertex_account/refresh_token.d.ts +9 -0
- package/lib/commands/vertex_account/refresh_token.js +22 -0
- package/lib/triggers/cleanups.d.ts +3 -0
- package/lib/triggers/cleanups.js +10 -0
- package/lib/triggers/exports.d.ts +3 -0
- package/lib/triggers/exports.js +10 -0
- package/lib/triggers/imports.d.ts +3 -0
- package/lib/triggers/imports.js +10 -0
- package/lib/triggers/orders.d.ts +1 -1
- package/lib/triggers/orders.js +5 -0
- package/lib/triggers/vertex_accounts.d.ts +3 -0
- package/lib/triggers/vertex_accounts.js +10 -0
- package/oclif.manifest.json +798 -6
- package/package.json +9 -8
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.triggers = void 0;
|
|
4
|
+
exports.triggers = {
|
|
5
|
+
interrupt: {
|
|
6
|
+
action: 'interrupt',
|
|
7
|
+
trigger: '_interrupt',
|
|
8
|
+
description: 'Send this attribute if you want to mark status as \'interrupted\'.',
|
|
9
|
+
},
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.triggers = void 0;
|
|
4
|
+
exports.triggers = {
|
|
5
|
+
interrupt: {
|
|
6
|
+
action: 'interrupt',
|
|
7
|
+
trigger: '_interrupt',
|
|
8
|
+
description: 'Send this attribute if you want to mark status as \'interrupted\'.',
|
|
9
|
+
},
|
|
10
|
+
};
|
package/lib/triggers/orders.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Trigger } from '../common';
|
|
2
2
|
export declare const triggers: Record<string, Trigger>;
|
|
3
|
-
export type ActionType = 'archive' | 'unarchive' | 'pending' | 'place' | 'cancel' | 'approve' | 'approve_and_capture' | 'authorize' | 'authorization_amount_cents' | 'capture' | 'refund' | 'fulfill' | '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' | 'validate' | 'create_subscriptions' | 'start_editing' | 'stop_editing' | 'reset_circuit';
|
|
3
|
+
export type ActionType = 'archive' | 'unarchive' | 'pending' | 'place' | 'cancel' | 'approve' | 'approve_and_capture' | 'authorize' | 'authorization_amount_cents' | 'capture' | 'refund' | 'fulfill' | 'update_taxes' | 'nullify_payment_source' | 'fix_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' | 'validate' | 'create_subscriptions' | 'start_editing' | 'stop_editing' | 'reset_circuit';
|
package/lib/triggers/orders.js
CHANGED
|
@@ -72,6 +72,11 @@ exports.triggers = {
|
|
|
72
72
|
trigger: '_nullify_payment_source',
|
|
73
73
|
description: 'Send this attribute if you want to nullify the payment source for this order.',
|
|
74
74
|
},
|
|
75
|
+
fix_payment_source: {
|
|
76
|
+
action: 'fix_payment_source',
|
|
77
|
+
trigger: '_fix_payment_source',
|
|
78
|
+
description: 'Send this attribute if you want to set the payment source associated with the last succeeded authorization. At the end of the fix the order should be placed and authorized and ready for approval. Cannot be passed by sales channels.',
|
|
79
|
+
},
|
|
75
80
|
billing_address_clone_id: {
|
|
76
81
|
action: 'billing_address_clone_id',
|
|
77
82
|
trigger: '_billing_address_clone_id',
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.triggers = void 0;
|
|
4
|
+
exports.triggers = {
|
|
5
|
+
refresh_token: {
|
|
6
|
+
action: 'refresh_token',
|
|
7
|
+
trigger: '_refresh_token',
|
|
8
|
+
description: 'Send this attribute if you want to manually refresh the access token.',
|
|
9
|
+
},
|
|
10
|
+
};
|