@commercelayer/cli-plugin-triggers 3.13.1 → 3.15.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/README.md +653 -5
- package/lib/base.d.ts +1 -0
- package/lib/base.js +5 -0
- package/lib/commands/adyen_payment/details.js +1 -2
- package/lib/commands/authorization/capture.js +1 -2
- package/lib/commands/authorization/capture_amount_cents.js +1 -2
- package/lib/commands/authorization/void.js +1 -2
- package/lib/commands/axerve_payment/update.js +1 -2
- package/lib/commands/bundle/compute_compare_at_amount.js +1 -2
- package/lib/commands/bundle/compute_price_amount.js +1 -2
- package/lib/commands/buy_x_pay_y_promotion/disable.d.ts +9 -0
- package/lib/commands/buy_x_pay_y_promotion/disable.js +20 -0
- package/lib/commands/buy_x_pay_y_promotion/enable.d.ts +9 -0
- package/lib/commands/buy_x_pay_y_promotion/enable.js +20 -0
- package/lib/commands/buy_x_pay_y_promotion/index.d.ts +9 -0
- package/lib/commands/buy_x_pay_y_promotion/index.js +38 -0
- package/lib/commands/capture/refund.js +1 -2
- package/lib/commands/capture/refund_amount_cents.js +1 -2
- package/lib/commands/checkout_com_payment/details.js +1 -2
- package/lib/commands/checkout_com_payment/refresh.js +1 -2
- package/lib/commands/customer_password_reset/reset_password_token.js +1 -2
- package/lib/commands/external_promotion/disable.d.ts +9 -0
- package/lib/commands/external_promotion/disable.js +20 -0
- package/lib/commands/external_promotion/enable.d.ts +9 -0
- package/lib/commands/external_promotion/enable.js +20 -0
- package/lib/commands/external_promotion/index.d.ts +9 -0
- package/lib/commands/external_promotion/index.js +38 -0
- package/lib/commands/fixed_amount_promotion/disable.d.ts +9 -0
- package/lib/commands/fixed_amount_promotion/disable.js +20 -0
- package/lib/commands/fixed_amount_promotion/enable.d.ts +9 -0
- package/lib/commands/fixed_amount_promotion/enable.js +20 -0
- package/lib/commands/fixed_amount_promotion/index.d.ts +9 -0
- package/lib/commands/fixed_amount_promotion/index.js +38 -0
- package/lib/commands/fixed_price_promotion/disable.d.ts +9 -0
- package/lib/commands/fixed_price_promotion/disable.js +20 -0
- package/lib/commands/fixed_price_promotion/enable.d.ts +9 -0
- package/lib/commands/fixed_price_promotion/enable.js +20 -0
- package/lib/commands/fixed_price_promotion/index.d.ts +9 -0
- package/lib/commands/fixed_price_promotion/index.js +38 -0
- package/lib/commands/free_gift_promotion/disable.d.ts +9 -0
- package/lib/commands/free_gift_promotion/disable.js +20 -0
- package/lib/commands/free_gift_promotion/enable.d.ts +9 -0
- package/lib/commands/free_gift_promotion/enable.js +20 -0
- package/lib/commands/free_gift_promotion/index.d.ts +9 -0
- package/lib/commands/free_gift_promotion/index.js +38 -0
- package/lib/commands/free_shipping_promotion/disable.d.ts +9 -0
- package/lib/commands/free_shipping_promotion/disable.js +20 -0
- package/lib/commands/free_shipping_promotion/enable.d.ts +9 -0
- package/lib/commands/free_shipping_promotion/enable.js +20 -0
- package/lib/commands/free_shipping_promotion/index.d.ts +9 -0
- package/lib/commands/free_shipping_promotion/index.js +38 -0
- package/lib/commands/gift_card/activate.js +1 -2
- package/lib/commands/gift_card/balance_change_cents.js +1 -2
- package/lib/commands/gift_card/deactivate.js +1 -2
- package/lib/commands/gift_card/purchase.js +1 -2
- package/lib/commands/in_stock_subscription/activate.js +1 -2
- package/lib/commands/in_stock_subscription/deactivate.js +1 -2
- package/lib/commands/klarna_payment/update.js +1 -2
- package/lib/commands/line_item/external_price.js +1 -2
- package/lib/commands/line_item/reserve_stock.js +1 -2
- package/lib/commands/market/disable.js +1 -2
- package/lib/commands/market/enable.js +1 -2
- package/lib/commands/order/approve.js +1 -2
- package/lib/commands/order/approve_and_capture.js +1 -2
- package/lib/commands/order/archive.js +1 -2
- package/lib/commands/order/authorization_amount_cents.js +1 -2
- package/lib/commands/order/authorize.js +1 -2
- package/lib/commands/order/billing_address_clone_id.js +1 -2
- package/lib/commands/order/billing_address_same_as_shipping.js +1 -2
- package/lib/commands/order/cancel.js +1 -2
- package/lib/commands/order/capture.js +1 -2
- package/lib/commands/order/commit_invoice.js +1 -2
- package/lib/commands/order/create_subscriptions.js +1 -2
- package/lib/commands/order/customer_payment_source_id.js +1 -2
- package/lib/commands/order/nullify_payment_source.js +1 -2
- package/lib/commands/order/place.js +1 -2
- package/lib/commands/order/refresh.js +1 -2
- package/lib/commands/order/refund.js +1 -2
- package/lib/commands/order/refund_invoice.js +1 -2
- package/lib/commands/order/save_billing_address_to_customer_address_book.js +1 -2
- package/lib/commands/order/save_payment_source_to_customer_wallet.js +1 -2
- package/lib/commands/order/save_shipping_address_to_customer_address_book.js +1 -2
- package/lib/commands/order/shipping_address_clone_id.js +1 -2
- package/lib/commands/order/shipping_address_same_as_billing.js +1 -2
- package/lib/commands/order/start_editing.js +1 -2
- package/lib/commands/order/stop_editing.js +1 -2
- package/lib/commands/order/unarchive.js +1 -2
- package/lib/commands/order/update_taxes.js +1 -2
- package/lib/commands/order/validate.js +1 -2
- package/lib/commands/order_subscription/activate.js +1 -2
- package/lib/commands/order_subscription/cancel.js +1 -2
- package/lib/commands/order_subscription/deactivate.js +1 -2
- package/lib/commands/payment_method/disable.js +1 -2
- package/lib/commands/payment_method/enable.js +1 -2
- package/lib/commands/percentage_discount_promotion/disable.d.ts +9 -0
- package/lib/commands/percentage_discount_promotion/disable.js +20 -0
- package/lib/commands/percentage_discount_promotion/enable.d.ts +9 -0
- package/lib/commands/percentage_discount_promotion/enable.js +20 -0
- package/lib/commands/percentage_discount_promotion/index.d.ts +9 -0
- package/lib/commands/percentage_discount_promotion/index.js +38 -0
- package/lib/commands/return/approve.js +1 -2
- package/lib/commands/return/archive.js +1 -2
- package/lib/commands/return/cancel.js +1 -2
- package/lib/commands/return/receive.js +1 -2
- package/lib/commands/return/reject.js +1 -2
- package/lib/commands/return/request.js +1 -2
- package/lib/commands/return/restock.js +1 -2
- package/lib/commands/return/ship.js +1 -2
- package/lib/commands/return/unarchive.js +1 -2
- package/lib/commands/return_line_item/restock.js +1 -2
- package/lib/commands/satispay_payment/refresh.js +1 -2
- package/lib/commands/shipment/decrement_stock.d.ts +9 -0
- package/lib/commands/shipment/decrement_stock.js +20 -0
- package/lib/commands/shipment/get_rates.js +1 -2
- package/lib/commands/shipment/on_hold.js +1 -2
- package/lib/commands/shipment/packing.js +1 -2
- package/lib/commands/shipment/picking.js +1 -2
- package/lib/commands/shipment/purchase.js +1 -2
- package/lib/commands/shipment/ready_to_ship.js +1 -2
- package/lib/commands/shipment/release_stock.d.ts +9 -0
- package/lib/commands/shipment/release_stock.js +20 -0
- package/lib/commands/shipment/reserve_stock.d.ts +9 -0
- package/lib/commands/shipment/reserve_stock.js +20 -0
- package/lib/commands/shipment/ship.js +1 -2
- package/lib/commands/shipment/upcoming.d.ts +9 -0
- package/lib/commands/shipment/upcoming.js +20 -0
- package/lib/commands/shipping_method/disable.js +1 -2
- package/lib/commands/shipping_method/enable.js +1 -2
- package/lib/commands/stock_reservation/index.d.ts +9 -0
- package/lib/commands/stock_reservation/index.js +38 -0
- package/lib/commands/stock_reservation/pending.d.ts +9 -0
- package/lib/commands/stock_reservation/pending.js +20 -0
- package/lib/commands/stock_transfer/cancel.js +1 -2
- package/lib/commands/stock_transfer/complete.js +1 -2
- package/lib/commands/stock_transfer/in_transit.js +1 -2
- package/lib/commands/stock_transfer/on_hold.d.ts +9 -0
- package/lib/commands/stock_transfer/on_hold.js +20 -0
- package/lib/commands/stock_transfer/picking.js +1 -2
- package/lib/commands/stock_transfer/upcoming.js +1 -2
- package/lib/commands/stripe_payment/refresh.js +1 -2
- package/lib/commands/stripe_payment/update.js +1 -2
- package/lib/commands/webhook/reset_circuit.js +1 -2
- package/lib/exec.d.ts +3 -2
- package/lib/exec.js +7 -4
- package/lib/triggers/buy_x_pay_y_promotions.d.ts +3 -0
- package/lib/triggers/buy_x_pay_y_promotions.js +15 -0
- package/lib/triggers/external_promotions.d.ts +3 -0
- package/lib/triggers/external_promotions.js +15 -0
- package/lib/triggers/fixed_amount_promotions.d.ts +3 -0
- package/lib/triggers/fixed_amount_promotions.js +15 -0
- package/lib/triggers/fixed_price_promotions.d.ts +3 -0
- package/lib/triggers/fixed_price_promotions.js +15 -0
- package/lib/triggers/free_gift_promotions.d.ts +3 -0
- package/lib/triggers/free_gift_promotions.js +15 -0
- package/lib/triggers/free_shipping_promotions.d.ts +3 -0
- package/lib/triggers/free_shipping_promotions.js +15 -0
- package/lib/triggers/line_items.js +1 -1
- package/lib/triggers/orders.js +1 -1
- package/lib/triggers/percentage_discount_promotions.d.ts +3 -0
- package/lib/triggers/percentage_discount_promotions.js +15 -0
- package/lib/triggers/shipments.d.ts +1 -1
- package/lib/triggers/shipments.js +20 -0
- package/lib/triggers/stock_reservations.d.ts +3 -0
- package/lib/triggers/stock_reservations.js +10 -0
- package/lib/triggers/stock_transfers.d.ts +1 -1
- package/lib/triggers/stock_transfers.js +5 -0
- package/oclif.manifest.json +7757 -3720
- package/package.json +17 -17
package/README.md
CHANGED
|
@@ -41,6 +41,9 @@ $ commercelayer plugins:install triggers
|
|
|
41
41
|
* [`commercelayer bundle ID`](#commercelayer-bundle-id)
|
|
42
42
|
* [`commercelayer bundle:compute_compare_at_amount ID`](#commercelayer-bundlecompute_compare_at_amount-id)
|
|
43
43
|
* [`commercelayer bundle:compute_price_amount ID`](#commercelayer-bundlecompute_price_amount-id)
|
|
44
|
+
* [`commercelayer buy_x_pay_y_promotion ID`](#commercelayer-buy_x_pay_y_promotion-id)
|
|
45
|
+
* [`commercelayer buy_x_pay_y_promotion:disable ID`](#commercelayer-buy_x_pay_y_promotiondisable-id)
|
|
46
|
+
* [`commercelayer buy_x_pay_y_promotion:enable ID`](#commercelayer-buy_x_pay_y_promotionenable-id)
|
|
44
47
|
* [`commercelayer capture ID`](#commercelayer-capture-id)
|
|
45
48
|
* [`commercelayer capture:refund ID`](#commercelayer-capturerefund-id)
|
|
46
49
|
* [`commercelayer capture:refund_amount_cents ID`](#commercelayer-capturerefund_amount_cents-id)
|
|
@@ -49,6 +52,21 @@ $ commercelayer plugins:install triggers
|
|
|
49
52
|
* [`commercelayer checkout_com_payment:refresh ID`](#commercelayer-checkout_com_paymentrefresh-id)
|
|
50
53
|
* [`commercelayer customer_password_reset ID`](#commercelayer-customer_password_reset-id)
|
|
51
54
|
* [`commercelayer customer_password_reset:reset_password_token ID`](#commercelayer-customer_password_resetreset_password_token-id)
|
|
55
|
+
* [`commercelayer external_promotion ID`](#commercelayer-external_promotion-id)
|
|
56
|
+
* [`commercelayer external_promotion:disable ID`](#commercelayer-external_promotiondisable-id)
|
|
57
|
+
* [`commercelayer external_promotion:enable ID`](#commercelayer-external_promotionenable-id)
|
|
58
|
+
* [`commercelayer fixed_amount_promotion ID`](#commercelayer-fixed_amount_promotion-id)
|
|
59
|
+
* [`commercelayer fixed_amount_promotion:disable ID`](#commercelayer-fixed_amount_promotiondisable-id)
|
|
60
|
+
* [`commercelayer fixed_amount_promotion:enable ID`](#commercelayer-fixed_amount_promotionenable-id)
|
|
61
|
+
* [`commercelayer fixed_price_promotion ID`](#commercelayer-fixed_price_promotion-id)
|
|
62
|
+
* [`commercelayer fixed_price_promotion:disable ID`](#commercelayer-fixed_price_promotiondisable-id)
|
|
63
|
+
* [`commercelayer fixed_price_promotion:enable ID`](#commercelayer-fixed_price_promotionenable-id)
|
|
64
|
+
* [`commercelayer free_gift_promotion ID`](#commercelayer-free_gift_promotion-id)
|
|
65
|
+
* [`commercelayer free_gift_promotion:disable ID`](#commercelayer-free_gift_promotiondisable-id)
|
|
66
|
+
* [`commercelayer free_gift_promotion:enable ID`](#commercelayer-free_gift_promotionenable-id)
|
|
67
|
+
* [`commercelayer free_shipping_promotion ID`](#commercelayer-free_shipping_promotion-id)
|
|
68
|
+
* [`commercelayer free_shipping_promotion:disable ID`](#commercelayer-free_shipping_promotiondisable-id)
|
|
69
|
+
* [`commercelayer free_shipping_promotion:enable ID`](#commercelayer-free_shipping_promotionenable-id)
|
|
52
70
|
* [`commercelayer gift_card ID`](#commercelayer-gift_card-id)
|
|
53
71
|
* [`commercelayer gift_card:activate ID`](#commercelayer-gift_cardactivate-id)
|
|
54
72
|
* [`commercelayer gift_card:balance_change_cents ID`](#commercelayer-gift_cardbalance_change_cents-id)
|
|
@@ -100,6 +118,9 @@ $ commercelayer plugins:install triggers
|
|
|
100
118
|
* [`commercelayer payment_method ID`](#commercelayer-payment_method-id)
|
|
101
119
|
* [`commercelayer payment_method:disable ID`](#commercelayer-payment_methoddisable-id)
|
|
102
120
|
* [`commercelayer payment_method:enable ID`](#commercelayer-payment_methodenable-id)
|
|
121
|
+
* [`commercelayer percentage_discount_promotion ID`](#commercelayer-percentage_discount_promotion-id)
|
|
122
|
+
* [`commercelayer percentage_discount_promotion:disable ID`](#commercelayer-percentage_discount_promotiondisable-id)
|
|
123
|
+
* [`commercelayer percentage_discount_promotion:enable ID`](#commercelayer-percentage_discount_promotionenable-id)
|
|
103
124
|
* [`commercelayer return ID`](#commercelayer-return-id)
|
|
104
125
|
* [`commercelayer return:approve ID`](#commercelayer-returnapprove-id)
|
|
105
126
|
* [`commercelayer return:archive ID`](#commercelayer-returnarchive-id)
|
|
@@ -115,20 +136,27 @@ $ commercelayer plugins:install triggers
|
|
|
115
136
|
* [`commercelayer satispay_payment ID`](#commercelayer-satispay_payment-id)
|
|
116
137
|
* [`commercelayer satispay_payment:refresh ID`](#commercelayer-satispay_paymentrefresh-id)
|
|
117
138
|
* [`commercelayer shipment ID`](#commercelayer-shipment-id)
|
|
139
|
+
* [`commercelayer shipment:decrement_stock ID`](#commercelayer-shipmentdecrement_stock-id)
|
|
118
140
|
* [`commercelayer shipment:get_rates ID`](#commercelayer-shipmentget_rates-id)
|
|
119
141
|
* [`commercelayer shipment:on_hold ID`](#commercelayer-shipmenton_hold-id)
|
|
120
142
|
* [`commercelayer shipment:packing ID`](#commercelayer-shipmentpacking-id)
|
|
121
143
|
* [`commercelayer shipment:picking ID`](#commercelayer-shipmentpicking-id)
|
|
122
144
|
* [`commercelayer shipment:purchase ID`](#commercelayer-shipmentpurchase-id)
|
|
123
145
|
* [`commercelayer shipment:ready_to_ship ID`](#commercelayer-shipmentready_to_ship-id)
|
|
146
|
+
* [`commercelayer shipment:release_stock ID`](#commercelayer-shipmentrelease_stock-id)
|
|
147
|
+
* [`commercelayer shipment:reserve_stock ID`](#commercelayer-shipmentreserve_stock-id)
|
|
124
148
|
* [`commercelayer shipment:ship ID`](#commercelayer-shipmentship-id)
|
|
149
|
+
* [`commercelayer shipment:upcoming ID`](#commercelayer-shipmentupcoming-id)
|
|
125
150
|
* [`commercelayer shipping_method ID`](#commercelayer-shipping_method-id)
|
|
126
151
|
* [`commercelayer shipping_method:disable ID`](#commercelayer-shipping_methoddisable-id)
|
|
127
152
|
* [`commercelayer shipping_method:enable ID`](#commercelayer-shipping_methodenable-id)
|
|
153
|
+
* [`commercelayer stock_reservation ID`](#commercelayer-stock_reservation-id)
|
|
154
|
+
* [`commercelayer stock_reservation:pending ID`](#commercelayer-stock_reservationpending-id)
|
|
128
155
|
* [`commercelayer stock_transfer ID`](#commercelayer-stock_transfer-id)
|
|
129
156
|
* [`commercelayer stock_transfer:cancel ID`](#commercelayer-stock_transfercancel-id)
|
|
130
157
|
* [`commercelayer stock_transfer:complete ID`](#commercelayer-stock_transfercomplete-id)
|
|
131
158
|
* [`commercelayer stock_transfer:in_transit ID`](#commercelayer-stock_transferin_transit-id)
|
|
159
|
+
* [`commercelayer stock_transfer:on_hold ID`](#commercelayer-stock_transferon_hold-id)
|
|
132
160
|
* [`commercelayer stock_transfer:picking ID`](#commercelayer-stock_transferpicking-id)
|
|
133
161
|
* [`commercelayer stock_transfer:upcoming ID`](#commercelayer-stock_transferupcoming-id)
|
|
134
162
|
* [`commercelayer stripe_payment ID`](#commercelayer-stripe_payment-id)
|
|
@@ -381,6 +409,72 @@ DESCRIPTION
|
|
|
381
409
|
|
|
382
410
|
_See code: [src/commands/bundle/compute_price_amount.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/bundle/compute_price_amount.ts)_
|
|
383
411
|
|
|
412
|
+
### `commercelayer buy_x_pay_y_promotion ID`
|
|
413
|
+
|
|
414
|
+
Execute an action on a resource of type buy_x_pay_y_promotions.
|
|
415
|
+
|
|
416
|
+
```sh-session
|
|
417
|
+
USAGE
|
|
418
|
+
$ commercelayer buy_x_pay_y_promotion ID [-u [-j -p]]
|
|
419
|
+
|
|
420
|
+
ARGUMENTS
|
|
421
|
+
ID the unique id of the resource
|
|
422
|
+
|
|
423
|
+
FLAGS
|
|
424
|
+
-j, --json print result in JSON format
|
|
425
|
+
-p, --print print out the modified resource
|
|
426
|
+
-u, --unformatted print JSON output without indentation
|
|
427
|
+
|
|
428
|
+
DESCRIPTION
|
|
429
|
+
execute an action on a resource of type buy_x_pay_y_promotions
|
|
430
|
+
```
|
|
431
|
+
|
|
432
|
+
_See code: [src/commands/buy_x_pay_y_promotion/index.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/buy_x_pay_y_promotion/index.ts)_
|
|
433
|
+
|
|
434
|
+
### `commercelayer buy_x_pay_y_promotion:disable ID`
|
|
435
|
+
|
|
436
|
+
Send this attribute if you want to mark the promotion as disabled.
|
|
437
|
+
|
|
438
|
+
```sh-session
|
|
439
|
+
USAGE
|
|
440
|
+
$ commercelayer buy_x_pay_y_promotion:disable ID [-u [-j -p]]
|
|
441
|
+
|
|
442
|
+
ARGUMENTS
|
|
443
|
+
ID the unique id of the resource
|
|
444
|
+
|
|
445
|
+
FLAGS
|
|
446
|
+
-j, --json print result in JSON format
|
|
447
|
+
-p, --print print out the modified resource
|
|
448
|
+
-u, --unformatted print JSON output without indentation
|
|
449
|
+
|
|
450
|
+
DESCRIPTION
|
|
451
|
+
Send this attribute if you want to mark the promotion as disabled.
|
|
452
|
+
```
|
|
453
|
+
|
|
454
|
+
_See code: [src/commands/buy_x_pay_y_promotion/disable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/buy_x_pay_y_promotion/disable.ts)_
|
|
455
|
+
|
|
456
|
+
### `commercelayer buy_x_pay_y_promotion:enable ID`
|
|
457
|
+
|
|
458
|
+
Send this attribute if you want to mark the promotion as enabled.
|
|
459
|
+
|
|
460
|
+
```sh-session
|
|
461
|
+
USAGE
|
|
462
|
+
$ commercelayer buy_x_pay_y_promotion:enable ID [-u [-j -p]]
|
|
463
|
+
|
|
464
|
+
ARGUMENTS
|
|
465
|
+
ID the unique id of the resource
|
|
466
|
+
|
|
467
|
+
FLAGS
|
|
468
|
+
-j, --json print result in JSON format
|
|
469
|
+
-p, --print print out the modified resource
|
|
470
|
+
-u, --unformatted print JSON output without indentation
|
|
471
|
+
|
|
472
|
+
DESCRIPTION
|
|
473
|
+
Send this attribute if you want to mark the promotion as enabled.
|
|
474
|
+
```
|
|
475
|
+
|
|
476
|
+
_See code: [src/commands/buy_x_pay_y_promotion/enable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/buy_x_pay_y_promotion/enable.ts)_
|
|
477
|
+
|
|
384
478
|
### `commercelayer capture ID`
|
|
385
479
|
|
|
386
480
|
Execute an action on a resource of type captures.
|
|
@@ -557,6 +651,336 @@ DESCRIPTION
|
|
|
557
651
|
|
|
558
652
|
_See code: [src/commands/customer_password_reset/reset_password_token.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/customer_password_reset/reset_password_token.ts)_
|
|
559
653
|
|
|
654
|
+
### `commercelayer external_promotion ID`
|
|
655
|
+
|
|
656
|
+
Execute an action on a resource of type external_promotions.
|
|
657
|
+
|
|
658
|
+
```sh-session
|
|
659
|
+
USAGE
|
|
660
|
+
$ commercelayer external_promotion ID [-u [-j -p]]
|
|
661
|
+
|
|
662
|
+
ARGUMENTS
|
|
663
|
+
ID the unique id of the resource
|
|
664
|
+
|
|
665
|
+
FLAGS
|
|
666
|
+
-j, --json print result in JSON format
|
|
667
|
+
-p, --print print out the modified resource
|
|
668
|
+
-u, --unformatted print JSON output without indentation
|
|
669
|
+
|
|
670
|
+
DESCRIPTION
|
|
671
|
+
execute an action on a resource of type external_promotions
|
|
672
|
+
```
|
|
673
|
+
|
|
674
|
+
_See code: [src/commands/external_promotion/index.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/external_promotion/index.ts)_
|
|
675
|
+
|
|
676
|
+
### `commercelayer external_promotion:disable ID`
|
|
677
|
+
|
|
678
|
+
Send this attribute if you want to mark the promotion as disabled.
|
|
679
|
+
|
|
680
|
+
```sh-session
|
|
681
|
+
USAGE
|
|
682
|
+
$ commercelayer external_promotion:disable ID [-u [-j -p]]
|
|
683
|
+
|
|
684
|
+
ARGUMENTS
|
|
685
|
+
ID the unique id of the resource
|
|
686
|
+
|
|
687
|
+
FLAGS
|
|
688
|
+
-j, --json print result in JSON format
|
|
689
|
+
-p, --print print out the modified resource
|
|
690
|
+
-u, --unformatted print JSON output without indentation
|
|
691
|
+
|
|
692
|
+
DESCRIPTION
|
|
693
|
+
Send this attribute if you want to mark the promotion as disabled.
|
|
694
|
+
```
|
|
695
|
+
|
|
696
|
+
_See code: [src/commands/external_promotion/disable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/external_promotion/disable.ts)_
|
|
697
|
+
|
|
698
|
+
### `commercelayer external_promotion:enable ID`
|
|
699
|
+
|
|
700
|
+
Send this attribute if you want to mark the promotion as enabled.
|
|
701
|
+
|
|
702
|
+
```sh-session
|
|
703
|
+
USAGE
|
|
704
|
+
$ commercelayer external_promotion:enable ID [-u [-j -p]]
|
|
705
|
+
|
|
706
|
+
ARGUMENTS
|
|
707
|
+
ID the unique id of the resource
|
|
708
|
+
|
|
709
|
+
FLAGS
|
|
710
|
+
-j, --json print result in JSON format
|
|
711
|
+
-p, --print print out the modified resource
|
|
712
|
+
-u, --unformatted print JSON output without indentation
|
|
713
|
+
|
|
714
|
+
DESCRIPTION
|
|
715
|
+
Send this attribute if you want to mark the promotion as enabled.
|
|
716
|
+
```
|
|
717
|
+
|
|
718
|
+
_See code: [src/commands/external_promotion/enable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/external_promotion/enable.ts)_
|
|
719
|
+
|
|
720
|
+
### `commercelayer fixed_amount_promotion ID`
|
|
721
|
+
|
|
722
|
+
Execute an action on a resource of type fixed_amount_promotions.
|
|
723
|
+
|
|
724
|
+
```sh-session
|
|
725
|
+
USAGE
|
|
726
|
+
$ commercelayer fixed_amount_promotion ID [-u [-j -p]]
|
|
727
|
+
|
|
728
|
+
ARGUMENTS
|
|
729
|
+
ID the unique id of the resource
|
|
730
|
+
|
|
731
|
+
FLAGS
|
|
732
|
+
-j, --json print result in JSON format
|
|
733
|
+
-p, --print print out the modified resource
|
|
734
|
+
-u, --unformatted print JSON output without indentation
|
|
735
|
+
|
|
736
|
+
DESCRIPTION
|
|
737
|
+
execute an action on a resource of type fixed_amount_promotions
|
|
738
|
+
```
|
|
739
|
+
|
|
740
|
+
_See code: [src/commands/fixed_amount_promotion/index.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/fixed_amount_promotion/index.ts)_
|
|
741
|
+
|
|
742
|
+
### `commercelayer fixed_amount_promotion:disable ID`
|
|
743
|
+
|
|
744
|
+
Send this attribute if you want to mark the promotion as disabled.
|
|
745
|
+
|
|
746
|
+
```sh-session
|
|
747
|
+
USAGE
|
|
748
|
+
$ commercelayer fixed_amount_promotion:disable ID [-u [-j -p]]
|
|
749
|
+
|
|
750
|
+
ARGUMENTS
|
|
751
|
+
ID the unique id of the resource
|
|
752
|
+
|
|
753
|
+
FLAGS
|
|
754
|
+
-j, --json print result in JSON format
|
|
755
|
+
-p, --print print out the modified resource
|
|
756
|
+
-u, --unformatted print JSON output without indentation
|
|
757
|
+
|
|
758
|
+
DESCRIPTION
|
|
759
|
+
Send this attribute if you want to mark the promotion as disabled.
|
|
760
|
+
```
|
|
761
|
+
|
|
762
|
+
_See code: [src/commands/fixed_amount_promotion/disable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/fixed_amount_promotion/disable.ts)_
|
|
763
|
+
|
|
764
|
+
### `commercelayer fixed_amount_promotion:enable ID`
|
|
765
|
+
|
|
766
|
+
Send this attribute if you want to mark the promotion as enabled.
|
|
767
|
+
|
|
768
|
+
```sh-session
|
|
769
|
+
USAGE
|
|
770
|
+
$ commercelayer fixed_amount_promotion:enable ID [-u [-j -p]]
|
|
771
|
+
|
|
772
|
+
ARGUMENTS
|
|
773
|
+
ID the unique id of the resource
|
|
774
|
+
|
|
775
|
+
FLAGS
|
|
776
|
+
-j, --json print result in JSON format
|
|
777
|
+
-p, --print print out the modified resource
|
|
778
|
+
-u, --unformatted print JSON output without indentation
|
|
779
|
+
|
|
780
|
+
DESCRIPTION
|
|
781
|
+
Send this attribute if you want to mark the promotion as enabled.
|
|
782
|
+
```
|
|
783
|
+
|
|
784
|
+
_See code: [src/commands/fixed_amount_promotion/enable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/fixed_amount_promotion/enable.ts)_
|
|
785
|
+
|
|
786
|
+
### `commercelayer fixed_price_promotion ID`
|
|
787
|
+
|
|
788
|
+
Execute an action on a resource of type fixed_price_promotions.
|
|
789
|
+
|
|
790
|
+
```sh-session
|
|
791
|
+
USAGE
|
|
792
|
+
$ commercelayer fixed_price_promotion ID [-u [-j -p]]
|
|
793
|
+
|
|
794
|
+
ARGUMENTS
|
|
795
|
+
ID the unique id of the resource
|
|
796
|
+
|
|
797
|
+
FLAGS
|
|
798
|
+
-j, --json print result in JSON format
|
|
799
|
+
-p, --print print out the modified resource
|
|
800
|
+
-u, --unformatted print JSON output without indentation
|
|
801
|
+
|
|
802
|
+
DESCRIPTION
|
|
803
|
+
execute an action on a resource of type fixed_price_promotions
|
|
804
|
+
```
|
|
805
|
+
|
|
806
|
+
_See code: [src/commands/fixed_price_promotion/index.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/fixed_price_promotion/index.ts)_
|
|
807
|
+
|
|
808
|
+
### `commercelayer fixed_price_promotion:disable ID`
|
|
809
|
+
|
|
810
|
+
Send this attribute if you want to mark the promotion as disabled.
|
|
811
|
+
|
|
812
|
+
```sh-session
|
|
813
|
+
USAGE
|
|
814
|
+
$ commercelayer fixed_price_promotion:disable ID [-u [-j -p]]
|
|
815
|
+
|
|
816
|
+
ARGUMENTS
|
|
817
|
+
ID the unique id of the resource
|
|
818
|
+
|
|
819
|
+
FLAGS
|
|
820
|
+
-j, --json print result in JSON format
|
|
821
|
+
-p, --print print out the modified resource
|
|
822
|
+
-u, --unformatted print JSON output without indentation
|
|
823
|
+
|
|
824
|
+
DESCRIPTION
|
|
825
|
+
Send this attribute if you want to mark the promotion as disabled.
|
|
826
|
+
```
|
|
827
|
+
|
|
828
|
+
_See code: [src/commands/fixed_price_promotion/disable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/fixed_price_promotion/disable.ts)_
|
|
829
|
+
|
|
830
|
+
### `commercelayer fixed_price_promotion:enable ID`
|
|
831
|
+
|
|
832
|
+
Send this attribute if you want to mark the promotion as enabled.
|
|
833
|
+
|
|
834
|
+
```sh-session
|
|
835
|
+
USAGE
|
|
836
|
+
$ commercelayer fixed_price_promotion:enable ID [-u [-j -p]]
|
|
837
|
+
|
|
838
|
+
ARGUMENTS
|
|
839
|
+
ID the unique id of the resource
|
|
840
|
+
|
|
841
|
+
FLAGS
|
|
842
|
+
-j, --json print result in JSON format
|
|
843
|
+
-p, --print print out the modified resource
|
|
844
|
+
-u, --unformatted print JSON output without indentation
|
|
845
|
+
|
|
846
|
+
DESCRIPTION
|
|
847
|
+
Send this attribute if you want to mark the promotion as enabled.
|
|
848
|
+
```
|
|
849
|
+
|
|
850
|
+
_See code: [src/commands/fixed_price_promotion/enable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/fixed_price_promotion/enable.ts)_
|
|
851
|
+
|
|
852
|
+
### `commercelayer free_gift_promotion ID`
|
|
853
|
+
|
|
854
|
+
Execute an action on a resource of type free_gift_promotions.
|
|
855
|
+
|
|
856
|
+
```sh-session
|
|
857
|
+
USAGE
|
|
858
|
+
$ commercelayer free_gift_promotion ID [-u [-j -p]]
|
|
859
|
+
|
|
860
|
+
ARGUMENTS
|
|
861
|
+
ID the unique id of the resource
|
|
862
|
+
|
|
863
|
+
FLAGS
|
|
864
|
+
-j, --json print result in JSON format
|
|
865
|
+
-p, --print print out the modified resource
|
|
866
|
+
-u, --unformatted print JSON output without indentation
|
|
867
|
+
|
|
868
|
+
DESCRIPTION
|
|
869
|
+
execute an action on a resource of type free_gift_promotions
|
|
870
|
+
```
|
|
871
|
+
|
|
872
|
+
_See code: [src/commands/free_gift_promotion/index.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/free_gift_promotion/index.ts)_
|
|
873
|
+
|
|
874
|
+
### `commercelayer free_gift_promotion:disable ID`
|
|
875
|
+
|
|
876
|
+
Send this attribute if you want to mark the promotion as disabled.
|
|
877
|
+
|
|
878
|
+
```sh-session
|
|
879
|
+
USAGE
|
|
880
|
+
$ commercelayer free_gift_promotion:disable ID [-u [-j -p]]
|
|
881
|
+
|
|
882
|
+
ARGUMENTS
|
|
883
|
+
ID the unique id of the resource
|
|
884
|
+
|
|
885
|
+
FLAGS
|
|
886
|
+
-j, --json print result in JSON format
|
|
887
|
+
-p, --print print out the modified resource
|
|
888
|
+
-u, --unformatted print JSON output without indentation
|
|
889
|
+
|
|
890
|
+
DESCRIPTION
|
|
891
|
+
Send this attribute if you want to mark the promotion as disabled.
|
|
892
|
+
```
|
|
893
|
+
|
|
894
|
+
_See code: [src/commands/free_gift_promotion/disable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/free_gift_promotion/disable.ts)_
|
|
895
|
+
|
|
896
|
+
### `commercelayer free_gift_promotion:enable ID`
|
|
897
|
+
|
|
898
|
+
Send this attribute if you want to mark the promotion as enabled.
|
|
899
|
+
|
|
900
|
+
```sh-session
|
|
901
|
+
USAGE
|
|
902
|
+
$ commercelayer free_gift_promotion:enable ID [-u [-j -p]]
|
|
903
|
+
|
|
904
|
+
ARGUMENTS
|
|
905
|
+
ID the unique id of the resource
|
|
906
|
+
|
|
907
|
+
FLAGS
|
|
908
|
+
-j, --json print result in JSON format
|
|
909
|
+
-p, --print print out the modified resource
|
|
910
|
+
-u, --unformatted print JSON output without indentation
|
|
911
|
+
|
|
912
|
+
DESCRIPTION
|
|
913
|
+
Send this attribute if you want to mark the promotion as enabled.
|
|
914
|
+
```
|
|
915
|
+
|
|
916
|
+
_See code: [src/commands/free_gift_promotion/enable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/free_gift_promotion/enable.ts)_
|
|
917
|
+
|
|
918
|
+
### `commercelayer free_shipping_promotion ID`
|
|
919
|
+
|
|
920
|
+
Execute an action on a resource of type free_shipping_promotions.
|
|
921
|
+
|
|
922
|
+
```sh-session
|
|
923
|
+
USAGE
|
|
924
|
+
$ commercelayer free_shipping_promotion ID [-u [-j -p]]
|
|
925
|
+
|
|
926
|
+
ARGUMENTS
|
|
927
|
+
ID the unique id of the resource
|
|
928
|
+
|
|
929
|
+
FLAGS
|
|
930
|
+
-j, --json print result in JSON format
|
|
931
|
+
-p, --print print out the modified resource
|
|
932
|
+
-u, --unformatted print JSON output without indentation
|
|
933
|
+
|
|
934
|
+
DESCRIPTION
|
|
935
|
+
execute an action on a resource of type free_shipping_promotions
|
|
936
|
+
```
|
|
937
|
+
|
|
938
|
+
_See code: [src/commands/free_shipping_promotion/index.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/free_shipping_promotion/index.ts)_
|
|
939
|
+
|
|
940
|
+
### `commercelayer free_shipping_promotion:disable ID`
|
|
941
|
+
|
|
942
|
+
Send this attribute if you want to mark the promotion as disabled.
|
|
943
|
+
|
|
944
|
+
```sh-session
|
|
945
|
+
USAGE
|
|
946
|
+
$ commercelayer free_shipping_promotion:disable ID [-u [-j -p]]
|
|
947
|
+
|
|
948
|
+
ARGUMENTS
|
|
949
|
+
ID the unique id of the resource
|
|
950
|
+
|
|
951
|
+
FLAGS
|
|
952
|
+
-j, --json print result in JSON format
|
|
953
|
+
-p, --print print out the modified resource
|
|
954
|
+
-u, --unformatted print JSON output without indentation
|
|
955
|
+
|
|
956
|
+
DESCRIPTION
|
|
957
|
+
Send this attribute if you want to mark the promotion as disabled.
|
|
958
|
+
```
|
|
959
|
+
|
|
960
|
+
_See code: [src/commands/free_shipping_promotion/disable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/free_shipping_promotion/disable.ts)_
|
|
961
|
+
|
|
962
|
+
### `commercelayer free_shipping_promotion:enable ID`
|
|
963
|
+
|
|
964
|
+
Send this attribute if you want to mark the promotion as enabled.
|
|
965
|
+
|
|
966
|
+
```sh-session
|
|
967
|
+
USAGE
|
|
968
|
+
$ commercelayer free_shipping_promotion:enable ID [-u [-j -p]]
|
|
969
|
+
|
|
970
|
+
ARGUMENTS
|
|
971
|
+
ID the unique id of the resource
|
|
972
|
+
|
|
973
|
+
FLAGS
|
|
974
|
+
-j, --json print result in JSON format
|
|
975
|
+
-p, --print print out the modified resource
|
|
976
|
+
-u, --unformatted print JSON output without indentation
|
|
977
|
+
|
|
978
|
+
DESCRIPTION
|
|
979
|
+
Send this attribute if you want to mark the promotion as enabled.
|
|
980
|
+
```
|
|
981
|
+
|
|
982
|
+
_See code: [src/commands/free_shipping_promotion/enable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/free_shipping_promotion/enable.ts)_
|
|
983
|
+
|
|
560
984
|
### `commercelayer gift_card ID`
|
|
561
985
|
|
|
562
986
|
Execute an action on a resource of type gift_cards.
|
|
@@ -803,7 +1227,7 @@ _See code: [src/commands/line_item/index.ts](https://github.com/commercelayer/co
|
|
|
803
1227
|
|
|
804
1228
|
### `commercelayer line_item:external_price ID`
|
|
805
1229
|
|
|
806
|
-
When creating or updating a new line item, set this attribute to '1' if you want to inject the unit_amount_cents price from an external source.
|
|
1230
|
+
When creating or updating a new line item, set this attribute to '1' if you want to inject the unit_amount_cents price from an external source. Any successive price computation will be done externally, until the attribute is reset to '0'.
|
|
807
1231
|
|
|
808
1232
|
```sh-session
|
|
809
1233
|
USAGE
|
|
@@ -819,7 +1243,8 @@ FLAGS
|
|
|
819
1243
|
|
|
820
1244
|
DESCRIPTION
|
|
821
1245
|
When creating or updating a new line item, set this attribute to '1' if you want to inject the unit_amount_cents price
|
|
822
|
-
from an external source.
|
|
1246
|
+
from an external source. Any successive price computation will be done externally, until the attribute is reset to
|
|
1247
|
+
'0'.
|
|
823
1248
|
```
|
|
824
1249
|
|
|
825
1250
|
_See code: [src/commands/line_item/external_price.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/line_item/external_price.ts)_
|
|
@@ -1159,7 +1584,7 @@ _See code: [src/commands/order/commit_invoice.ts](https://github.com/commercelay
|
|
|
1159
1584
|
|
|
1160
1585
|
### `commercelayer order:create_subscriptions ID`
|
|
1161
1586
|
|
|
1162
|
-
Send this attribute if you want to create order subscriptions from the
|
|
1587
|
+
Send this attribute upon/after placing the order if you want to create order subscriptions from the line items that have a frequency.
|
|
1163
1588
|
|
|
1164
1589
|
```sh-session
|
|
1165
1590
|
USAGE
|
|
@@ -1174,8 +1599,8 @@ FLAGS
|
|
|
1174
1599
|
-u, --unformatted print JSON output without indentation
|
|
1175
1600
|
|
|
1176
1601
|
DESCRIPTION
|
|
1177
|
-
Send this attribute if you want to create order subscriptions from the
|
|
1178
|
-
|
|
1602
|
+
Send this attribute upon/after placing the order if you want to create order subscriptions from the line items that
|
|
1603
|
+
have a frequency.
|
|
1179
1604
|
```
|
|
1180
1605
|
|
|
1181
1606
|
_See code: [src/commands/order/create_subscriptions.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/order/create_subscriptions.ts)_
|
|
@@ -1694,6 +2119,72 @@ DESCRIPTION
|
|
|
1694
2119
|
|
|
1695
2120
|
_See code: [src/commands/payment_method/enable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/payment_method/enable.ts)_
|
|
1696
2121
|
|
|
2122
|
+
### `commercelayer percentage_discount_promotion ID`
|
|
2123
|
+
|
|
2124
|
+
Execute an action on a resource of type percentage_discount_promotions.
|
|
2125
|
+
|
|
2126
|
+
```sh-session
|
|
2127
|
+
USAGE
|
|
2128
|
+
$ commercelayer percentage_discount_promotion ID [-u [-j -p]]
|
|
2129
|
+
|
|
2130
|
+
ARGUMENTS
|
|
2131
|
+
ID the unique id of the resource
|
|
2132
|
+
|
|
2133
|
+
FLAGS
|
|
2134
|
+
-j, --json print result in JSON format
|
|
2135
|
+
-p, --print print out the modified resource
|
|
2136
|
+
-u, --unformatted print JSON output without indentation
|
|
2137
|
+
|
|
2138
|
+
DESCRIPTION
|
|
2139
|
+
execute an action on a resource of type percentage_discount_promotions
|
|
2140
|
+
```
|
|
2141
|
+
|
|
2142
|
+
_See code: [src/commands/percentage_discount_promotion/index.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/percentage_discount_promotion/index.ts)_
|
|
2143
|
+
|
|
2144
|
+
### `commercelayer percentage_discount_promotion:disable ID`
|
|
2145
|
+
|
|
2146
|
+
Send this attribute if you want to mark the promotion as disabled.
|
|
2147
|
+
|
|
2148
|
+
```sh-session
|
|
2149
|
+
USAGE
|
|
2150
|
+
$ commercelayer percentage_discount_promotion:disable ID [-u [-j -p]]
|
|
2151
|
+
|
|
2152
|
+
ARGUMENTS
|
|
2153
|
+
ID the unique id of the resource
|
|
2154
|
+
|
|
2155
|
+
FLAGS
|
|
2156
|
+
-j, --json print result in JSON format
|
|
2157
|
+
-p, --print print out the modified resource
|
|
2158
|
+
-u, --unformatted print JSON output without indentation
|
|
2159
|
+
|
|
2160
|
+
DESCRIPTION
|
|
2161
|
+
Send this attribute if you want to mark the promotion as disabled.
|
|
2162
|
+
```
|
|
2163
|
+
|
|
2164
|
+
_See code: [src/commands/percentage_discount_promotion/disable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/percentage_discount_promotion/disable.ts)_
|
|
2165
|
+
|
|
2166
|
+
### `commercelayer percentage_discount_promotion:enable ID`
|
|
2167
|
+
|
|
2168
|
+
Send this attribute if you want to mark the promotion as enabled.
|
|
2169
|
+
|
|
2170
|
+
```sh-session
|
|
2171
|
+
USAGE
|
|
2172
|
+
$ commercelayer percentage_discount_promotion:enable ID [-u [-j -p]]
|
|
2173
|
+
|
|
2174
|
+
ARGUMENTS
|
|
2175
|
+
ID the unique id of the resource
|
|
2176
|
+
|
|
2177
|
+
FLAGS
|
|
2178
|
+
-j, --json print result in JSON format
|
|
2179
|
+
-p, --print print out the modified resource
|
|
2180
|
+
-u, --unformatted print JSON output without indentation
|
|
2181
|
+
|
|
2182
|
+
DESCRIPTION
|
|
2183
|
+
Send this attribute if you want to mark the promotion as enabled.
|
|
2184
|
+
```
|
|
2185
|
+
|
|
2186
|
+
_See code: [src/commands/percentage_discount_promotion/enable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/percentage_discount_promotion/enable.ts)_
|
|
2187
|
+
|
|
1697
2188
|
### `commercelayer return ID`
|
|
1698
2189
|
|
|
1699
2190
|
Execute an action on a resource of type returns.
|
|
@@ -2024,6 +2515,29 @@ DESCRIPTION
|
|
|
2024
2515
|
|
|
2025
2516
|
_See code: [src/commands/shipment/index.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/shipment/index.ts)_
|
|
2026
2517
|
|
|
2518
|
+
### `commercelayer shipment:decrement_stock ID`
|
|
2519
|
+
|
|
2520
|
+
Send this attribute if you want to automatically decrement and release the stock for each of the associated stock line item. Can be done only when fulfillment is in progress.
|
|
2521
|
+
|
|
2522
|
+
```sh-session
|
|
2523
|
+
USAGE
|
|
2524
|
+
$ commercelayer shipment:decrement_stock ID [-u [-j -p]]
|
|
2525
|
+
|
|
2526
|
+
ARGUMENTS
|
|
2527
|
+
ID the unique id of the resource
|
|
2528
|
+
|
|
2529
|
+
FLAGS
|
|
2530
|
+
-j, --json print result in JSON format
|
|
2531
|
+
-p, --print print out the modified resource
|
|
2532
|
+
-u, --unformatted print JSON output without indentation
|
|
2533
|
+
|
|
2534
|
+
DESCRIPTION
|
|
2535
|
+
Send this attribute if you want to automatically decrement and release the stock for each of the associated stock line
|
|
2536
|
+
item. Can be done only when fulfillment is in progress.
|
|
2537
|
+
```
|
|
2538
|
+
|
|
2539
|
+
_See code: [src/commands/shipment/decrement_stock.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/shipment/decrement_stock.ts)_
|
|
2540
|
+
|
|
2027
2541
|
### `commercelayer shipment:get_rates ID`
|
|
2028
2542
|
|
|
2029
2543
|
Send this attribute if you want get the shipping rates from the associated carrier accounts.
|
|
@@ -2156,6 +2670,52 @@ DESCRIPTION
|
|
|
2156
2670
|
|
|
2157
2671
|
_See code: [src/commands/shipment/ready_to_ship.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/shipment/ready_to_ship.ts)_
|
|
2158
2672
|
|
|
2673
|
+
### `commercelayer shipment:release_stock ID`
|
|
2674
|
+
|
|
2675
|
+
Send this attribute if you want to automatically release the stock for each of the associated stock line item. Can be done only when fulfillment is in progress.
|
|
2676
|
+
|
|
2677
|
+
```sh-session
|
|
2678
|
+
USAGE
|
|
2679
|
+
$ commercelayer shipment:release_stock ID [-u [-j -p]]
|
|
2680
|
+
|
|
2681
|
+
ARGUMENTS
|
|
2682
|
+
ID the unique id of the resource
|
|
2683
|
+
|
|
2684
|
+
FLAGS
|
|
2685
|
+
-j, --json print result in JSON format
|
|
2686
|
+
-p, --print print out the modified resource
|
|
2687
|
+
-u, --unformatted print JSON output without indentation
|
|
2688
|
+
|
|
2689
|
+
DESCRIPTION
|
|
2690
|
+
Send this attribute if you want to automatically release the stock for each of the associated stock line item. Can be
|
|
2691
|
+
done only when fulfillment is in progress.
|
|
2692
|
+
```
|
|
2693
|
+
|
|
2694
|
+
_See code: [src/commands/shipment/release_stock.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/shipment/release_stock.ts)_
|
|
2695
|
+
|
|
2696
|
+
### `commercelayer shipment:reserve_stock ID`
|
|
2697
|
+
|
|
2698
|
+
Send this attribute if you want to automatically reserve the stock for each of the associated stock line item. Can be done only when fulfillment is in progress.
|
|
2699
|
+
|
|
2700
|
+
```sh-session
|
|
2701
|
+
USAGE
|
|
2702
|
+
$ commercelayer shipment:reserve_stock ID [-u [-j -p]]
|
|
2703
|
+
|
|
2704
|
+
ARGUMENTS
|
|
2705
|
+
ID the unique id of the resource
|
|
2706
|
+
|
|
2707
|
+
FLAGS
|
|
2708
|
+
-j, --json print result in JSON format
|
|
2709
|
+
-p, --print print out the modified resource
|
|
2710
|
+
-u, --unformatted print JSON output without indentation
|
|
2711
|
+
|
|
2712
|
+
DESCRIPTION
|
|
2713
|
+
Send this attribute if you want to automatically reserve the stock for each of the associated stock line item. Can be
|
|
2714
|
+
done only when fulfillment is in progress.
|
|
2715
|
+
```
|
|
2716
|
+
|
|
2717
|
+
_See code: [src/commands/shipment/reserve_stock.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/shipment/reserve_stock.ts)_
|
|
2718
|
+
|
|
2159
2719
|
### `commercelayer shipment:ship ID`
|
|
2160
2720
|
|
|
2161
2721
|
Send this attribute if you want to mark this shipment as shipped.
|
|
@@ -2178,6 +2738,28 @@ DESCRIPTION
|
|
|
2178
2738
|
|
|
2179
2739
|
_See code: [src/commands/shipment/ship.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/shipment/ship.ts)_
|
|
2180
2740
|
|
|
2741
|
+
### `commercelayer shipment:upcoming ID`
|
|
2742
|
+
|
|
2743
|
+
Send this attribute if you want to mark this shipment as upcoming.
|
|
2744
|
+
|
|
2745
|
+
```sh-session
|
|
2746
|
+
USAGE
|
|
2747
|
+
$ commercelayer shipment:upcoming ID [-u [-j -p]]
|
|
2748
|
+
|
|
2749
|
+
ARGUMENTS
|
|
2750
|
+
ID the unique id of the resource
|
|
2751
|
+
|
|
2752
|
+
FLAGS
|
|
2753
|
+
-j, --json print result in JSON format
|
|
2754
|
+
-p, --print print out the modified resource
|
|
2755
|
+
-u, --unformatted print JSON output without indentation
|
|
2756
|
+
|
|
2757
|
+
DESCRIPTION
|
|
2758
|
+
Send this attribute if you want to mark this shipment as upcoming.
|
|
2759
|
+
```
|
|
2760
|
+
|
|
2761
|
+
_See code: [src/commands/shipment/upcoming.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/shipment/upcoming.ts)_
|
|
2762
|
+
|
|
2181
2763
|
### `commercelayer shipping_method ID`
|
|
2182
2764
|
|
|
2183
2765
|
Execute an action on a resource of type shipping_methods.
|
|
@@ -2244,6 +2826,50 @@ DESCRIPTION
|
|
|
2244
2826
|
|
|
2245
2827
|
_See code: [src/commands/shipping_method/enable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/shipping_method/enable.ts)_
|
|
2246
2828
|
|
|
2829
|
+
### `commercelayer stock_reservation ID`
|
|
2830
|
+
|
|
2831
|
+
Execute an action on a resource of type stock_reservations.
|
|
2832
|
+
|
|
2833
|
+
```sh-session
|
|
2834
|
+
USAGE
|
|
2835
|
+
$ commercelayer stock_reservation ID [-u [-j -p]]
|
|
2836
|
+
|
|
2837
|
+
ARGUMENTS
|
|
2838
|
+
ID the unique id of the resource
|
|
2839
|
+
|
|
2840
|
+
FLAGS
|
|
2841
|
+
-j, --json print result in JSON format
|
|
2842
|
+
-p, --print print out the modified resource
|
|
2843
|
+
-u, --unformatted print JSON output without indentation
|
|
2844
|
+
|
|
2845
|
+
DESCRIPTION
|
|
2846
|
+
execute an action on a resource of type stock_reservations
|
|
2847
|
+
```
|
|
2848
|
+
|
|
2849
|
+
_See code: [src/commands/stock_reservation/index.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/stock_reservation/index.ts)_
|
|
2850
|
+
|
|
2851
|
+
### `commercelayer stock_reservation:pending ID`
|
|
2852
|
+
|
|
2853
|
+
Send this attribute if you want to mark this stock reservation as pending.
|
|
2854
|
+
|
|
2855
|
+
```sh-session
|
|
2856
|
+
USAGE
|
|
2857
|
+
$ commercelayer stock_reservation:pending ID [-u [-j -p]]
|
|
2858
|
+
|
|
2859
|
+
ARGUMENTS
|
|
2860
|
+
ID the unique id of the resource
|
|
2861
|
+
|
|
2862
|
+
FLAGS
|
|
2863
|
+
-j, --json print result in JSON format
|
|
2864
|
+
-p, --print print out the modified resource
|
|
2865
|
+
-u, --unformatted print JSON output without indentation
|
|
2866
|
+
|
|
2867
|
+
DESCRIPTION
|
|
2868
|
+
Send this attribute if you want to mark this stock reservation as pending.
|
|
2869
|
+
```
|
|
2870
|
+
|
|
2871
|
+
_See code: [src/commands/stock_reservation/pending.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/stock_reservation/pending.ts)_
|
|
2872
|
+
|
|
2247
2873
|
### `commercelayer stock_transfer ID`
|
|
2248
2874
|
|
|
2249
2875
|
Execute an action on a resource of type stock_transfers.
|
|
@@ -2332,6 +2958,28 @@ DESCRIPTION
|
|
|
2332
2958
|
|
|
2333
2959
|
_See code: [src/commands/stock_transfer/in_transit.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/stock_transfer/in_transit.ts)_
|
|
2334
2960
|
|
|
2961
|
+
### `commercelayer stock_transfer:on_hold ID`
|
|
2962
|
+
|
|
2963
|
+
Send this attribute if you want to put this stock transfer on hold.
|
|
2964
|
+
|
|
2965
|
+
```sh-session
|
|
2966
|
+
USAGE
|
|
2967
|
+
$ commercelayer stock_transfer:on_hold ID [-u [-j -p]]
|
|
2968
|
+
|
|
2969
|
+
ARGUMENTS
|
|
2970
|
+
ID the unique id of the resource
|
|
2971
|
+
|
|
2972
|
+
FLAGS
|
|
2973
|
+
-j, --json print result in JSON format
|
|
2974
|
+
-p, --print print out the modified resource
|
|
2975
|
+
-u, --unformatted print JSON output without indentation
|
|
2976
|
+
|
|
2977
|
+
DESCRIPTION
|
|
2978
|
+
Send this attribute if you want to put this stock transfer on hold.
|
|
2979
|
+
```
|
|
2980
|
+
|
|
2981
|
+
_See code: [src/commands/stock_transfer/on_hold.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/stock_transfer/on_hold.ts)_
|
|
2982
|
+
|
|
2335
2983
|
### `commercelayer stock_transfer:picking ID`
|
|
2336
2984
|
|
|
2337
2985
|
Send this attribute if you want to start picking this stock transfer.
|