@commercelayer/cli-plugin-triggers 4.0.0-oclif3.5 → 4.0.0-oclif3.9

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.
Files changed (55) hide show
  1. package/README.md +312 -52
  2. package/bin/run.js +0 -1
  3. package/lib/base.d.ts +1 -1
  4. package/lib/commands/external_gateway/index.d.ts +9 -0
  5. package/lib/commands/external_gateway/index.js +40 -0
  6. package/lib/commands/external_gateway/reset_circuit.d.ts +9 -0
  7. package/lib/commands/external_gateway/reset_circuit.js +22 -0
  8. package/lib/commands/external_promotion/reset_circuit.d.ts +9 -0
  9. package/lib/commands/external_promotion/reset_circuit.js +22 -0
  10. package/lib/commands/external_tax_calculator/index.d.ts +9 -0
  11. package/lib/commands/external_tax_calculator/index.js +40 -0
  12. package/lib/commands/external_tax_calculator/reset_circuit.d.ts +9 -0
  13. package/lib/commands/external_tax_calculator/reset_circuit.js +22 -0
  14. package/lib/commands/line_item/reset_circuit.d.ts +9 -0
  15. package/lib/commands/line_item/reset_circuit.js +22 -0
  16. package/lib/commands/order/pending.d.ts +9 -0
  17. package/lib/commands/order/pending.js +22 -0
  18. package/lib/commands/order/reset_circuit.d.ts +9 -0
  19. package/lib/commands/order/reset_circuit.js +22 -0
  20. package/lib/commands/shipping_method/reset_circuit.d.ts +9 -0
  21. package/lib/commands/shipping_method/reset_circuit.js +22 -0
  22. package/lib/commands/stock_item/index.d.ts +9 -0
  23. package/lib/commands/stock_item/index.js +40 -0
  24. package/lib/commands/stock_item/validate.d.ts +9 -0
  25. package/lib/commands/stock_item/validate.js +22 -0
  26. package/lib/exec.d.ts +1 -1
  27. package/lib/exec.js +0 -1
  28. package/lib/triggers/buy_x_pay_y_promotions.js +2 -2
  29. package/lib/triggers/external_gateways.d.ts +3 -0
  30. package/lib/triggers/external_gateways.js +10 -0
  31. package/lib/triggers/external_promotions.d.ts +1 -1
  32. package/lib/triggers/external_promotions.js +7 -2
  33. package/lib/triggers/external_tax_calculators.d.ts +3 -0
  34. package/lib/triggers/external_tax_calculators.js +10 -0
  35. package/lib/triggers/fixed_amount_promotions.js +2 -2
  36. package/lib/triggers/fixed_price_promotions.js +2 -2
  37. package/lib/triggers/free_gift_promotions.js +2 -2
  38. package/lib/triggers/free_shipping_promotions.js +2 -2
  39. package/lib/triggers/line_items.d.ts +1 -1
  40. package/lib/triggers/line_items.js +5 -0
  41. package/lib/triggers/markets.js +2 -2
  42. package/lib/triggers/orders.d.ts +1 -1
  43. package/lib/triggers/orders.js +10 -0
  44. package/lib/triggers/payment_methods.js +2 -2
  45. package/lib/triggers/percentage_discount_promotions.js +2 -2
  46. package/lib/triggers/shipments.js +1 -1
  47. package/lib/triggers/shipping_methods.d.ts +1 -1
  48. package/lib/triggers/shipping_methods.js +7 -2
  49. package/lib/triggers/stock_items.d.ts +3 -0
  50. package/lib/triggers/stock_items.js +10 -0
  51. package/lib/triggers/stock_line_items.js +1 -1
  52. package/lib/triggers/webhooks.d.ts +1 -1
  53. package/lib/triggers/webhooks.js +7 -7
  54. package/oclif.manifest.json +1293 -325
  55. package/package.json +16 -16
package/README.md CHANGED
@@ -52,9 +52,14 @@ $ commercelayer plugins:install triggers
52
52
  * [`commercelayer checkout_com_payment:refresh ID`](#commercelayer-checkout_com_paymentrefresh-id)
53
53
  * [`commercelayer customer_password_reset ID`](#commercelayer-customer_password_reset-id)
54
54
  * [`commercelayer customer_password_reset:reset_password_token ID`](#commercelayer-customer_password_resetreset_password_token-id)
55
+ * [`commercelayer external_gateway ID`](#commercelayer-external_gateway-id)
56
+ * [`commercelayer external_gateway:reset_circuit ID`](#commercelayer-external_gatewayreset_circuit-id)
55
57
  * [`commercelayer external_promotion ID`](#commercelayer-external_promotion-id)
56
58
  * [`commercelayer external_promotion:disable ID`](#commercelayer-external_promotiondisable-id)
57
59
  * [`commercelayer external_promotion:enable ID`](#commercelayer-external_promotionenable-id)
60
+ * [`commercelayer external_promotion:reset_circuit ID`](#commercelayer-external_promotionreset_circuit-id)
61
+ * [`commercelayer external_tax_calculator ID`](#commercelayer-external_tax_calculator-id)
62
+ * [`commercelayer external_tax_calculator:reset_circuit ID`](#commercelayer-external_tax_calculatorreset_circuit-id)
58
63
  * [`commercelayer fixed_amount_promotion ID`](#commercelayer-fixed_amount_promotion-id)
59
64
  * [`commercelayer fixed_amount_promotion:disable ID`](#commercelayer-fixed_amount_promotiondisable-id)
60
65
  * [`commercelayer fixed_amount_promotion:enable ID`](#commercelayer-fixed_amount_promotionenable-id)
@@ -80,6 +85,7 @@ $ commercelayer plugins:install triggers
80
85
  * [`commercelayer line_item ID`](#commercelayer-line_item-id)
81
86
  * [`commercelayer line_item:external_price ID`](#commercelayer-line_itemexternal_price-id)
82
87
  * [`commercelayer line_item:reserve_stock ID`](#commercelayer-line_itemreserve_stock-id)
88
+ * [`commercelayer line_item:reset_circuit ID`](#commercelayer-line_itemreset_circuit-id)
83
89
  * [`commercelayer market ID`](#commercelayer-market-id)
84
90
  * [`commercelayer market:disable ID`](#commercelayer-marketdisable-id)
85
91
  * [`commercelayer market:enable ID`](#commercelayer-marketenable-id)
@@ -97,10 +103,12 @@ $ commercelayer plugins:install triggers
97
103
  * [`commercelayer order:create_subscriptions ID`](#commercelayer-ordercreate_subscriptions-id)
98
104
  * [`commercelayer order:customer_payment_source_id ID`](#commercelayer-ordercustomer_payment_source_id-id)
99
105
  * [`commercelayer order:nullify_payment_source ID`](#commercelayer-ordernullify_payment_source-id)
106
+ * [`commercelayer order:pending ID`](#commercelayer-orderpending-id)
100
107
  * [`commercelayer order:place ID`](#commercelayer-orderplace-id)
101
108
  * [`commercelayer order:refresh ID`](#commercelayer-orderrefresh-id)
102
109
  * [`commercelayer order:refund ID`](#commercelayer-orderrefund-id)
103
110
  * [`commercelayer order:refund_invoice ID`](#commercelayer-orderrefund_invoice-id)
111
+ * [`commercelayer order:reset_circuit ID`](#commercelayer-orderreset_circuit-id)
104
112
  * [`commercelayer order:save_billing_address_to_customer_address_book ID`](#commercelayer-ordersave_billing_address_to_customer_address_book-id)
105
113
  * [`commercelayer order:save_payment_source_to_customer_wallet ID`](#commercelayer-ordersave_payment_source_to_customer_wallet-id)
106
114
  * [`commercelayer order:save_shipping_address_to_customer_address_book ID`](#commercelayer-ordersave_shipping_address_to_customer_address_book-id)
@@ -150,6 +158,9 @@ $ commercelayer plugins:install triggers
150
158
  * [`commercelayer shipping_method ID`](#commercelayer-shipping_method-id)
151
159
  * [`commercelayer shipping_method:disable ID`](#commercelayer-shipping_methoddisable-id)
152
160
  * [`commercelayer shipping_method:enable ID`](#commercelayer-shipping_methodenable-id)
161
+ * [`commercelayer shipping_method:reset_circuit ID`](#commercelayer-shipping_methodreset_circuit-id)
162
+ * [`commercelayer stock_item ID`](#commercelayer-stock_item-id)
163
+ * [`commercelayer stock_item:validate ID`](#commercelayer-stock_itemvalidate-id)
153
164
  * [`commercelayer stock_line_item ID`](#commercelayer-stock_line_item-id)
154
165
  * [`commercelayer stock_line_item:decrement_stock ID`](#commercelayer-stock_line_itemdecrement_stock-id)
155
166
  * [`commercelayer stock_line_item:release_stock ID`](#commercelayer-stock_line_itemrelease_stock-id)
@@ -439,7 +450,7 @@ _See code: [src/commands/buy_x_pay_y_promotion/index.ts](https://github.com/comm
439
450
 
440
451
  ### `commercelayer buy_x_pay_y_promotion:disable ID`
441
452
 
442
- Send this attribute if you want to mark the promotion as disabled.
453
+ Send this attribute if you want to mark this resource as disabled.
443
454
 
444
455
  ```sh-session
445
456
  USAGE
@@ -454,14 +465,14 @@ FLAGS
454
465
  -u, --unformatted print JSON output without indentation
455
466
 
456
467
  DESCRIPTION
457
- Send this attribute if you want to mark the promotion as disabled.
468
+ Send this attribute if you want to mark this resource as disabled.
458
469
  ```
459
470
 
460
471
  _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)_
461
472
 
462
473
  ### `commercelayer buy_x_pay_y_promotion:enable ID`
463
474
 
464
- Send this attribute if you want to mark the promotion as enabled.
475
+ Send this attribute if you want to mark this resource as enabled.
465
476
 
466
477
  ```sh-session
467
478
  USAGE
@@ -476,7 +487,7 @@ FLAGS
476
487
  -u, --unformatted print JSON output without indentation
477
488
 
478
489
  DESCRIPTION
479
- Send this attribute if you want to mark the promotion as enabled.
490
+ Send this attribute if you want to mark this resource as enabled.
480
491
  ```
481
492
 
482
493
  _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)_
@@ -657,6 +668,51 @@ DESCRIPTION
657
668
 
658
669
  _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)_
659
670
 
671
+ ### `commercelayer external_gateway ID`
672
+
673
+ Execute an action on a resource of type external_gateways.
674
+
675
+ ```sh-session
676
+ USAGE
677
+ $ commercelayer external_gateway ID [-u [-j -p]]
678
+
679
+ ARGUMENTS
680
+ ID the unique id of the resource
681
+
682
+ FLAGS
683
+ -j, --json print result in JSON format
684
+ -p, --print print out the modified resource
685
+ -u, --unformatted print JSON output without indentation
686
+
687
+ DESCRIPTION
688
+ execute an action on a resource of type external_gateways
689
+ ```
690
+
691
+ _See code: [src/commands/external_gateway/index.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/external_gateway/index.ts)_
692
+
693
+ ### `commercelayer external_gateway:reset_circuit ID`
694
+
695
+ Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count.
696
+
697
+ ```sh-session
698
+ USAGE
699
+ $ commercelayer external_gateway:reset_circuit ID [-u [-j -p]]
700
+
701
+ ARGUMENTS
702
+ ID the unique id of the resource
703
+
704
+ FLAGS
705
+ -j, --json print result in JSON format
706
+ -p, --print print out the modified resource
707
+ -u, --unformatted print JSON output without indentation
708
+
709
+ DESCRIPTION
710
+ Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero
711
+ failures count.
712
+ ```
713
+
714
+ _See code: [src/commands/external_gateway/reset_circuit.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/external_gateway/reset_circuit.ts)_
715
+
660
716
  ### `commercelayer external_promotion ID`
661
717
 
662
718
  Execute an action on a resource of type external_promotions.
@@ -681,7 +737,7 @@ _See code: [src/commands/external_promotion/index.ts](https://github.com/commerc
681
737
 
682
738
  ### `commercelayer external_promotion:disable ID`
683
739
 
684
- Send this attribute if you want to mark the promotion as disabled.
740
+ Send this attribute if you want to mark this resource as disabled.
685
741
 
686
742
  ```sh-session
687
743
  USAGE
@@ -696,14 +752,14 @@ FLAGS
696
752
  -u, --unformatted print JSON output without indentation
697
753
 
698
754
  DESCRIPTION
699
- Send this attribute if you want to mark the promotion as disabled.
755
+ Send this attribute if you want to mark this resource as disabled.
700
756
  ```
701
757
 
702
758
  _See code: [src/commands/external_promotion/disable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/external_promotion/disable.ts)_
703
759
 
704
760
  ### `commercelayer external_promotion:enable ID`
705
761
 
706
- Send this attribute if you want to mark the promotion as enabled.
762
+ Send this attribute if you want to mark this resource as enabled.
707
763
 
708
764
  ```sh-session
709
765
  USAGE
@@ -718,11 +774,79 @@ FLAGS
718
774
  -u, --unformatted print JSON output without indentation
719
775
 
720
776
  DESCRIPTION
721
- Send this attribute if you want to mark the promotion as enabled.
777
+ Send this attribute if you want to mark this resource as enabled.
722
778
  ```
723
779
 
724
780
  _See code: [src/commands/external_promotion/enable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/external_promotion/enable.ts)_
725
781
 
782
+ ### `commercelayer external_promotion:reset_circuit ID`
783
+
784
+ Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count.
785
+
786
+ ```sh-session
787
+ USAGE
788
+ $ commercelayer external_promotion:reset_circuit ID [-u [-j -p]]
789
+
790
+ ARGUMENTS
791
+ ID the unique id of the resource
792
+
793
+ FLAGS
794
+ -j, --json print result in JSON format
795
+ -p, --print print out the modified resource
796
+ -u, --unformatted print JSON output without indentation
797
+
798
+ DESCRIPTION
799
+ Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero
800
+ failures count.
801
+ ```
802
+
803
+ _See code: [src/commands/external_promotion/reset_circuit.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/external_promotion/reset_circuit.ts)_
804
+
805
+ ### `commercelayer external_tax_calculator ID`
806
+
807
+ Execute an action on a resource of type external_tax_calculators.
808
+
809
+ ```sh-session
810
+ USAGE
811
+ $ commercelayer external_tax_calculator ID [-u [-j -p]]
812
+
813
+ ARGUMENTS
814
+ ID the unique id of the resource
815
+
816
+ FLAGS
817
+ -j, --json print result in JSON format
818
+ -p, --print print out the modified resource
819
+ -u, --unformatted print JSON output without indentation
820
+
821
+ DESCRIPTION
822
+ execute an action on a resource of type external_tax_calculators
823
+ ```
824
+
825
+ _See code: [src/commands/external_tax_calculator/index.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/external_tax_calculator/index.ts)_
826
+
827
+ ### `commercelayer external_tax_calculator:reset_circuit ID`
828
+
829
+ Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count.
830
+
831
+ ```sh-session
832
+ USAGE
833
+ $ commercelayer external_tax_calculator:reset_circuit ID [-u [-j -p]]
834
+
835
+ ARGUMENTS
836
+ ID the unique id of the resource
837
+
838
+ FLAGS
839
+ -j, --json print result in JSON format
840
+ -p, --print print out the modified resource
841
+ -u, --unformatted print JSON output without indentation
842
+
843
+ DESCRIPTION
844
+ Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero
845
+ failures count.
846
+ ```
847
+
848
+ _See code: [src/commands/external_tax_calculator/reset_circuit.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/external_tax_calculator/reset_circuit.ts)_
849
+
726
850
  ### `commercelayer fixed_amount_promotion ID`
727
851
 
728
852
  Execute an action on a resource of type fixed_amount_promotions.
@@ -747,7 +871,7 @@ _See code: [src/commands/fixed_amount_promotion/index.ts](https://github.com/com
747
871
 
748
872
  ### `commercelayer fixed_amount_promotion:disable ID`
749
873
 
750
- Send this attribute if you want to mark the promotion as disabled.
874
+ Send this attribute if you want to mark this resource as disabled.
751
875
 
752
876
  ```sh-session
753
877
  USAGE
@@ -762,14 +886,14 @@ FLAGS
762
886
  -u, --unformatted print JSON output without indentation
763
887
 
764
888
  DESCRIPTION
765
- Send this attribute if you want to mark the promotion as disabled.
889
+ Send this attribute if you want to mark this resource as disabled.
766
890
  ```
767
891
 
768
892
  _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)_
769
893
 
770
894
  ### `commercelayer fixed_amount_promotion:enable ID`
771
895
 
772
- Send this attribute if you want to mark the promotion as enabled.
896
+ Send this attribute if you want to mark this resource as enabled.
773
897
 
774
898
  ```sh-session
775
899
  USAGE
@@ -784,7 +908,7 @@ FLAGS
784
908
  -u, --unformatted print JSON output without indentation
785
909
 
786
910
  DESCRIPTION
787
- Send this attribute if you want to mark the promotion as enabled.
911
+ Send this attribute if you want to mark this resource as enabled.
788
912
  ```
789
913
 
790
914
  _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)_
@@ -813,7 +937,7 @@ _See code: [src/commands/fixed_price_promotion/index.ts](https://github.com/comm
813
937
 
814
938
  ### `commercelayer fixed_price_promotion:disable ID`
815
939
 
816
- Send this attribute if you want to mark the promotion as disabled.
940
+ Send this attribute if you want to mark this resource as disabled.
817
941
 
818
942
  ```sh-session
819
943
  USAGE
@@ -828,14 +952,14 @@ FLAGS
828
952
  -u, --unformatted print JSON output without indentation
829
953
 
830
954
  DESCRIPTION
831
- Send this attribute if you want to mark the promotion as disabled.
955
+ Send this attribute if you want to mark this resource as disabled.
832
956
  ```
833
957
 
834
958
  _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)_
835
959
 
836
960
  ### `commercelayer fixed_price_promotion:enable ID`
837
961
 
838
- Send this attribute if you want to mark the promotion as enabled.
962
+ Send this attribute if you want to mark this resource as enabled.
839
963
 
840
964
  ```sh-session
841
965
  USAGE
@@ -850,7 +974,7 @@ FLAGS
850
974
  -u, --unformatted print JSON output without indentation
851
975
 
852
976
  DESCRIPTION
853
- Send this attribute if you want to mark the promotion as enabled.
977
+ Send this attribute if you want to mark this resource as enabled.
854
978
  ```
855
979
 
856
980
  _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)_
@@ -879,7 +1003,7 @@ _See code: [src/commands/free_gift_promotion/index.ts](https://github.com/commer
879
1003
 
880
1004
  ### `commercelayer free_gift_promotion:disable ID`
881
1005
 
882
- Send this attribute if you want to mark the promotion as disabled.
1006
+ Send this attribute if you want to mark this resource as disabled.
883
1007
 
884
1008
  ```sh-session
885
1009
  USAGE
@@ -894,14 +1018,14 @@ FLAGS
894
1018
  -u, --unformatted print JSON output without indentation
895
1019
 
896
1020
  DESCRIPTION
897
- Send this attribute if you want to mark the promotion as disabled.
1021
+ Send this attribute if you want to mark this resource as disabled.
898
1022
  ```
899
1023
 
900
1024
  _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)_
901
1025
 
902
1026
  ### `commercelayer free_gift_promotion:enable ID`
903
1027
 
904
- Send this attribute if you want to mark the promotion as enabled.
1028
+ Send this attribute if you want to mark this resource as enabled.
905
1029
 
906
1030
  ```sh-session
907
1031
  USAGE
@@ -916,7 +1040,7 @@ FLAGS
916
1040
  -u, --unformatted print JSON output without indentation
917
1041
 
918
1042
  DESCRIPTION
919
- Send this attribute if you want to mark the promotion as enabled.
1043
+ Send this attribute if you want to mark this resource as enabled.
920
1044
  ```
921
1045
 
922
1046
  _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)_
@@ -945,7 +1069,7 @@ _See code: [src/commands/free_shipping_promotion/index.ts](https://github.com/co
945
1069
 
946
1070
  ### `commercelayer free_shipping_promotion:disable ID`
947
1071
 
948
- Send this attribute if you want to mark the promotion as disabled.
1072
+ Send this attribute if you want to mark this resource as disabled.
949
1073
 
950
1074
  ```sh-session
951
1075
  USAGE
@@ -960,14 +1084,14 @@ FLAGS
960
1084
  -u, --unformatted print JSON output without indentation
961
1085
 
962
1086
  DESCRIPTION
963
- Send this attribute if you want to mark the promotion as disabled.
1087
+ Send this attribute if you want to mark this resource as disabled.
964
1088
  ```
965
1089
 
966
1090
  _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)_
967
1091
 
968
1092
  ### `commercelayer free_shipping_promotion:enable ID`
969
1093
 
970
- Send this attribute if you want to mark the promotion as enabled.
1094
+ Send this attribute if you want to mark this resource as enabled.
971
1095
 
972
1096
  ```sh-session
973
1097
  USAGE
@@ -982,7 +1106,7 @@ FLAGS
982
1106
  -u, --unformatted print JSON output without indentation
983
1107
 
984
1108
  DESCRIPTION
985
- Send this attribute if you want to mark the promotion as enabled.
1109
+ Send this attribute if you want to mark this resource as enabled.
986
1110
  ```
987
1111
 
988
1112
  _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)_
@@ -1278,6 +1402,29 @@ DESCRIPTION
1278
1402
 
1279
1403
  _See code: [src/commands/line_item/reserve_stock.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/line_item/reserve_stock.ts)_
1280
1404
 
1405
+ ### `commercelayer line_item:reset_circuit ID`
1406
+
1407
+ Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count.
1408
+
1409
+ ```sh-session
1410
+ USAGE
1411
+ $ commercelayer line_item:reset_circuit ID [-u [-j -p]]
1412
+
1413
+ ARGUMENTS
1414
+ ID the unique id of the resource
1415
+
1416
+ FLAGS
1417
+ -j, --json print result in JSON format
1418
+ -p, --print print out the modified resource
1419
+ -u, --unformatted print JSON output without indentation
1420
+
1421
+ DESCRIPTION
1422
+ Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero
1423
+ failures count.
1424
+ ```
1425
+
1426
+ _See code: [src/commands/line_item/reset_circuit.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/line_item/reset_circuit.ts)_
1427
+
1281
1428
  ### `commercelayer market ID`
1282
1429
 
1283
1430
  Execute an action on a resource of type markets.
@@ -1302,7 +1449,7 @@ _See code: [src/commands/market/index.ts](https://github.com/commercelayer/comme
1302
1449
 
1303
1450
  ### `commercelayer market:disable ID`
1304
1451
 
1305
- Send this attribute if you want to mark the market as disabled.
1452
+ Send this attribute if you want to mark this resource as disabled.
1306
1453
 
1307
1454
  ```sh-session
1308
1455
  USAGE
@@ -1317,14 +1464,14 @@ FLAGS
1317
1464
  -u, --unformatted print JSON output without indentation
1318
1465
 
1319
1466
  DESCRIPTION
1320
- Send this attribute if you want to mark the market as disabled.
1467
+ Send this attribute if you want to mark this resource as disabled.
1321
1468
  ```
1322
1469
 
1323
1470
  _See code: [src/commands/market/disable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/market/disable.ts)_
1324
1471
 
1325
1472
  ### `commercelayer market:enable ID`
1326
1473
 
1327
- Send this attribute if you want to mark the market as enabled.
1474
+ Send this attribute if you want to mark this resource as enabled.
1328
1475
 
1329
1476
  ```sh-session
1330
1477
  USAGE
@@ -1339,7 +1486,7 @@ FLAGS
1339
1486
  -u, --unformatted print JSON output without indentation
1340
1487
 
1341
1488
  DESCRIPTION
1342
- Send this attribute if you want to mark the market as enabled.
1489
+ Send this attribute if you want to mark this resource as enabled.
1343
1490
  ```
1344
1491
 
1345
1492
  _See code: [src/commands/market/enable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/market/enable.ts)_
@@ -1656,6 +1803,28 @@ DESCRIPTION
1656
1803
 
1657
1804
  _See code: [src/commands/order/nullify_payment_source.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/order/nullify_payment_source.ts)_
1658
1805
 
1806
+ ### `commercelayer order:pending ID`
1807
+
1808
+ Send this attribute if you want to move a draft or placing order to pending.
1809
+
1810
+ ```sh-session
1811
+ USAGE
1812
+ $ commercelayer order:pending ID [-u [-j -p]]
1813
+
1814
+ ARGUMENTS
1815
+ ID the unique id of the resource
1816
+
1817
+ FLAGS
1818
+ -j, --json print result in JSON format
1819
+ -p, --print print out the modified resource
1820
+ -u, --unformatted print JSON output without indentation
1821
+
1822
+ DESCRIPTION
1823
+ Send this attribute if you want to move a draft or placing order to pending.
1824
+ ```
1825
+
1826
+ _See code: [src/commands/order/pending.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/order/pending.ts)_
1827
+
1659
1828
  ### `commercelayer order:place ID`
1660
1829
 
1661
1830
  Send this attribute if you want to place the order.
@@ -1745,6 +1914,29 @@ DESCRIPTION
1745
1914
 
1746
1915
  _See code: [src/commands/order/refund_invoice.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/order/refund_invoice.ts)_
1747
1916
 
1917
+ ### `commercelayer order:reset_circuit ID`
1918
+
1919
+ Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count.
1920
+
1921
+ ```sh-session
1922
+ USAGE
1923
+ $ commercelayer order:reset_circuit ID [-u [-j -p]]
1924
+
1925
+ ARGUMENTS
1926
+ ID the unique id of the resource
1927
+
1928
+ FLAGS
1929
+ -j, --json print result in JSON format
1930
+ -p, --print print out the modified resource
1931
+ -u, --unformatted print JSON output without indentation
1932
+
1933
+ DESCRIPTION
1934
+ Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero
1935
+ failures count.
1936
+ ```
1937
+
1938
+ _See code: [src/commands/order/reset_circuit.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/order/reset_circuit.ts)_
1939
+
1748
1940
  ### `commercelayer order:save_billing_address_to_customer_address_book ID`
1749
1941
 
1750
1942
  Send this attribute if you want the order's billing address to be saved in the customer's address book as a customer address.
@@ -2083,7 +2275,7 @@ _See code: [src/commands/payment_method/index.ts](https://github.com/commercelay
2083
2275
 
2084
2276
  ### `commercelayer payment_method:disable ID`
2085
2277
 
2086
- Send this attribute if you want to mark the payment method as disabled.
2278
+ Send this attribute if you want to mark this resource as disabled.
2087
2279
 
2088
2280
  ```sh-session
2089
2281
  USAGE
@@ -2098,14 +2290,14 @@ FLAGS
2098
2290
  -u, --unformatted print JSON output without indentation
2099
2291
 
2100
2292
  DESCRIPTION
2101
- Send this attribute if you want to mark the payment method as disabled.
2293
+ Send this attribute if you want to mark this resource as disabled.
2102
2294
  ```
2103
2295
 
2104
2296
  _See code: [src/commands/payment_method/disable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/payment_method/disable.ts)_
2105
2297
 
2106
2298
  ### `commercelayer payment_method:enable ID`
2107
2299
 
2108
- Send this attribute if you want to mark the payment method as enabled.
2300
+ Send this attribute if you want to mark this resource as enabled.
2109
2301
 
2110
2302
  ```sh-session
2111
2303
  USAGE
@@ -2120,7 +2312,7 @@ FLAGS
2120
2312
  -u, --unformatted print JSON output without indentation
2121
2313
 
2122
2314
  DESCRIPTION
2123
- Send this attribute if you want to mark the payment method as enabled.
2315
+ Send this attribute if you want to mark this resource as enabled.
2124
2316
  ```
2125
2317
 
2126
2318
  _See code: [src/commands/payment_method/enable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/payment_method/enable.ts)_
@@ -2149,7 +2341,7 @@ _See code: [src/commands/percentage_discount_promotion/index.ts](https://github.
2149
2341
 
2150
2342
  ### `commercelayer percentage_discount_promotion:disable ID`
2151
2343
 
2152
- Send this attribute if you want to mark the promotion as disabled.
2344
+ Send this attribute if you want to mark this resource as disabled.
2153
2345
 
2154
2346
  ```sh-session
2155
2347
  USAGE
@@ -2164,14 +2356,14 @@ FLAGS
2164
2356
  -u, --unformatted print JSON output without indentation
2165
2357
 
2166
2358
  DESCRIPTION
2167
- Send this attribute if you want to mark the promotion as disabled.
2359
+ Send this attribute if you want to mark this resource as disabled.
2168
2360
  ```
2169
2361
 
2170
2362
  _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)_
2171
2363
 
2172
2364
  ### `commercelayer percentage_discount_promotion:enable ID`
2173
2365
 
2174
- Send this attribute if you want to mark the promotion as enabled.
2366
+ Send this attribute if you want to mark this resource as enabled.
2175
2367
 
2176
2368
  ```sh-session
2177
2369
  USAGE
@@ -2186,7 +2378,7 @@ FLAGS
2186
2378
  -u, --unformatted print JSON output without indentation
2187
2379
 
2188
2380
  DESCRIPTION
2189
- Send this attribute if you want to mark the promotion as enabled.
2381
+ Send this attribute if you want to mark this resource as enabled.
2190
2382
  ```
2191
2383
 
2192
2384
  _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)_
@@ -2678,7 +2870,7 @@ _See code: [src/commands/shipment/ready_to_ship.ts](https://github.com/commercel
2678
2870
 
2679
2871
  ### `commercelayer shipment:release_stock ID`
2680
2872
 
2681
- 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.
2873
+ Send this attribute if you want to automatically destroy the stock reservations for each of the associated stock line item. Can be done only when fulfillment is in progress.
2682
2874
 
2683
2875
  ```sh-session
2684
2876
  USAGE
@@ -2693,8 +2885,8 @@ FLAGS
2693
2885
  -u, --unformatted print JSON output without indentation
2694
2886
 
2695
2887
  DESCRIPTION
2696
- Send this attribute if you want to automatically release the stock for each of the associated stock line item. Can be
2697
- done only when fulfillment is in progress.
2888
+ Send this attribute if you want to automatically destroy the stock reservations for each of the associated stock line
2889
+ item. Can be done only when fulfillment is in progress.
2698
2890
  ```
2699
2891
 
2700
2892
  _See code: [src/commands/shipment/release_stock.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/shipment/release_stock.ts)_
@@ -2790,7 +2982,7 @@ _See code: [src/commands/shipping_method/index.ts](https://github.com/commercela
2790
2982
 
2791
2983
  ### `commercelayer shipping_method:disable ID`
2792
2984
 
2793
- Send this attribute if you want to mark the shipping method as disabled.
2985
+ Send this attribute if you want to mark this resource as disabled.
2794
2986
 
2795
2987
  ```sh-session
2796
2988
  USAGE
@@ -2805,14 +2997,14 @@ FLAGS
2805
2997
  -u, --unformatted print JSON output without indentation
2806
2998
 
2807
2999
  DESCRIPTION
2808
- Send this attribute if you want to mark the shipping method as disabled.
3000
+ Send this attribute if you want to mark this resource as disabled.
2809
3001
  ```
2810
3002
 
2811
3003
  _See code: [src/commands/shipping_method/disable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/shipping_method/disable.ts)_
2812
3004
 
2813
3005
  ### `commercelayer shipping_method:enable ID`
2814
3006
 
2815
- Send this attribute if you want to mark the shipping method as enabled.
3007
+ Send this attribute if you want to mark this resource as enabled.
2816
3008
 
2817
3009
  ```sh-session
2818
3010
  USAGE
@@ -2827,11 +3019,79 @@ FLAGS
2827
3019
  -u, --unformatted print JSON output without indentation
2828
3020
 
2829
3021
  DESCRIPTION
2830
- Send this attribute if you want to mark the shipping method as enabled.
3022
+ Send this attribute if you want to mark this resource as enabled.
2831
3023
  ```
2832
3024
 
2833
3025
  _See code: [src/commands/shipping_method/enable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/shipping_method/enable.ts)_
2834
3026
 
3027
+ ### `commercelayer shipping_method:reset_circuit ID`
3028
+
3029
+ Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count.
3030
+
3031
+ ```sh-session
3032
+ USAGE
3033
+ $ commercelayer shipping_method:reset_circuit ID [-u [-j -p]]
3034
+
3035
+ ARGUMENTS
3036
+ ID the unique id of the resource
3037
+
3038
+ FLAGS
3039
+ -j, --json print result in JSON format
3040
+ -p, --print print out the modified resource
3041
+ -u, --unformatted print JSON output without indentation
3042
+
3043
+ DESCRIPTION
3044
+ Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero
3045
+ failures count.
3046
+ ```
3047
+
3048
+ _See code: [src/commands/shipping_method/reset_circuit.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/shipping_method/reset_circuit.ts)_
3049
+
3050
+ ### `commercelayer stock_item ID`
3051
+
3052
+ Execute an action on a resource of type stock_items.
3053
+
3054
+ ```sh-session
3055
+ USAGE
3056
+ $ commercelayer stock_item ID [-u [-j -p]]
3057
+
3058
+ ARGUMENTS
3059
+ ID the unique id of the resource
3060
+
3061
+ FLAGS
3062
+ -j, --json print result in JSON format
3063
+ -p, --print print out the modified resource
3064
+ -u, --unformatted print JSON output without indentation
3065
+
3066
+ DESCRIPTION
3067
+ execute an action on a resource of type stock_items
3068
+ ```
3069
+
3070
+ _See code: [src/commands/stock_item/index.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/stock_item/index.ts)_
3071
+
3072
+ ### `commercelayer stock_item:validate ID`
3073
+
3074
+ Send this attribute if you want to validate the stock item quantity against the existing reserved stock one, returns an error in case the former is smaller.
3075
+
3076
+ ```sh-session
3077
+ USAGE
3078
+ $ commercelayer stock_item:validate ID [-u [-j -p]]
3079
+
3080
+ ARGUMENTS
3081
+ ID the unique id of the resource
3082
+
3083
+ FLAGS
3084
+ -j, --json print result in JSON format
3085
+ -p, --print print out the modified resource
3086
+ -u, --unformatted print JSON output without indentation
3087
+
3088
+ DESCRIPTION
3089
+ Send this attribute if you want to validate the stock item quantity against the existing reserved stock one, returns
3090
+ an error in case the former is smaller.
3091
+ ```
3092
+
3093
+ _See code: [src/commands/stock_item/validate.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/stock_item/validate.ts)_
3094
+
2835
3095
  ### `commercelayer stock_line_item ID`
2836
3096
 
2837
3097
  Execute an action on a resource of type stock_line_items.
@@ -2879,7 +3139,7 @@ _See code: [src/commands/stock_line_item/decrement_stock.ts](https://github.com/
2879
3139
 
2880
3140
  ### `commercelayer stock_line_item:release_stock ID`
2881
3141
 
2882
- Send this attribute if you want to automatically release the stock for this stock line item. Can be done only when fulfillment is in progress.
3142
+ Send this attribute if you want to automatically destroy the stock reservation for this stock line item. Can be done only when fulfillment is in progress.
2883
3143
 
2884
3144
  ```sh-session
2885
3145
  USAGE
@@ -2894,8 +3154,8 @@ FLAGS
2894
3154
  -u, --unformatted print JSON output without indentation
2895
3155
 
2896
3156
  DESCRIPTION
2897
- Send this attribute if you want to automatically release the stock for this stock line item. Can be done only when
2898
- fulfillment is in progress.
3157
+ Send this attribute if you want to automatically destroy the stock reservation for this stock line item. Can be done
3158
+ only when fulfillment is in progress.
2899
3159
  ```
2900
3160
 
2901
3161
  _See code: [src/commands/stock_line_item/release_stock.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/stock_line_item/release_stock.ts)_
@@ -3211,7 +3471,7 @@ _See code: [src/commands/webhook/index.ts](https://github.com/commercelayer/comm
3211
3471
 
3212
3472
  ### `commercelayer webhook:disable ID`
3213
3473
 
3214
- Send this attribute if you want to mark the webhook as disabled.
3474
+ Send this attribute if you want to mark this resource as disabled.
3215
3475
 
3216
3476
  ```sh-session
3217
3477
  USAGE
@@ -3226,14 +3486,14 @@ FLAGS
3226
3486
  -u, --unformatted print JSON output without indentation
3227
3487
 
3228
3488
  DESCRIPTION
3229
- Send this attribute if you want to mark the webhook as disabled.
3489
+ Send this attribute if you want to mark this resource as disabled.
3230
3490
  ```
3231
3491
 
3232
3492
  _See code: [src/commands/webhook/disable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/webhook/disable.ts)_
3233
3493
 
3234
3494
  ### `commercelayer webhook:enable ID`
3235
3495
 
3236
- Send this attribute if you want to mark the webhook as enabled.
3496
+ Send this attribute if you want to mark this resource as enabled.
3237
3497
 
3238
3498
  ```sh-session
3239
3499
  USAGE
@@ -3248,14 +3508,14 @@ FLAGS
3248
3508
  -u, --unformatted print JSON output without indentation
3249
3509
 
3250
3510
  DESCRIPTION
3251
- Send this attribute if you want to mark the webhook as enabled.
3511
+ Send this attribute if you want to mark this resource as enabled.
3252
3512
  ```
3253
3513
 
3254
3514
  _See code: [src/commands/webhook/enable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/webhook/enable.ts)_
3255
3515
 
3256
3516
  ### `commercelayer webhook:reset_circuit ID`
3257
3517
 
3258
- Send this attribute if you want to reset the circuit breaker associated to this webhook to 'closed' state and zero failures count.
3518
+ Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count.
3259
3519
 
3260
3520
  ```sh-session
3261
3521
  USAGE
@@ -3270,7 +3530,7 @@ FLAGS
3270
3530
  -u, --unformatted print JSON output without indentation
3271
3531
 
3272
3532
  DESCRIPTION
3273
- Send this attribute if you want to reset the circuit breaker associated to this webhook to 'closed' state and zero
3533
+ Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero
3274
3534
  failures count.
3275
3535
  ```
3276
3536