@commercelayer/cli-plugin-triggers 4.7.1 → 4.9.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.
Files changed (43) hide show
  1. package/README.md +263 -50
  2. package/lib/commands/authorization/cancel.d.ts +9 -0
  3. package/lib/commands/authorization/cancel.js +22 -0
  4. package/lib/commands/capture/cancel.d.ts +9 -0
  5. package/lib/commands/capture/cancel.js +22 -0
  6. package/lib/commands/flex_promotion/disable.d.ts +9 -0
  7. package/lib/commands/flex_promotion/disable.js +22 -0
  8. package/lib/commands/flex_promotion/enable.d.ts +9 -0
  9. package/lib/commands/flex_promotion/enable.js +22 -0
  10. package/lib/commands/flex_promotion/index.d.ts +9 -0
  11. package/lib/commands/flex_promotion/index.js +40 -0
  12. package/lib/commands/refund/forward.d.ts +9 -0
  13. package/lib/commands/refund/forward.js +22 -0
  14. package/lib/commands/refund/index.d.ts +9 -0
  15. package/lib/commands/refund/index.js +40 -0
  16. package/lib/commands/void/forward.d.ts +9 -0
  17. package/lib/commands/void/forward.js +22 -0
  18. package/lib/commands/void/index.d.ts +9 -0
  19. package/lib/commands/void/index.js +40 -0
  20. package/lib/index.js +0 -1
  21. package/lib/triggers/authorizations.d.ts +1 -1
  22. package/lib/triggers/authorizations.js +5 -0
  23. package/lib/triggers/captures.d.ts +1 -1
  24. package/lib/triggers/captures.js +5 -0
  25. package/lib/triggers/events.js +1 -1
  26. package/lib/triggers/external_gateways.js +1 -1
  27. package/lib/triggers/external_promotions.js +1 -1
  28. package/lib/triggers/external_tax_calculators.js +1 -1
  29. package/lib/triggers/flex_promotions.d.ts +3 -0
  30. package/lib/triggers/flex_promotions.js +15 -0
  31. package/lib/triggers/line_items.js +2 -2
  32. package/lib/triggers/orders.js +9 -9
  33. package/lib/triggers/refunds.d.ts +3 -0
  34. package/lib/triggers/refunds.js +10 -0
  35. package/lib/triggers/shipments.js +5 -5
  36. package/lib/triggers/shipping_methods.js +1 -1
  37. package/lib/triggers/stock_items.js +1 -1
  38. package/lib/triggers/stock_line_items.js +3 -3
  39. package/lib/triggers/voids.d.ts +3 -0
  40. package/lib/triggers/voids.js +10 -0
  41. package/lib/triggers/webhooks.js +1 -1
  42. package/oclif.manifest.json +941 -149
  43. package/package.json +14 -14
package/README.md CHANGED
@@ -33,6 +33,7 @@ $ commercelayer plugins:install triggers
33
33
  * [`commercelayer adyen_payment ID`](#commercelayer-adyen_payment-id)
34
34
  * [`commercelayer adyen_payment:details ID`](#commercelayer-adyen_paymentdetails-id)
35
35
  * [`commercelayer authorization ID`](#commercelayer-authorization-id)
36
+ * [`commercelayer authorization:cancel ID`](#commercelayer-authorizationcancel-id)
36
37
  * [`commercelayer authorization:capture ID`](#commercelayer-authorizationcapture-id)
37
38
  * [`commercelayer authorization:capture_amount_cents ID`](#commercelayer-authorizationcapture_amount_cents-id)
38
39
  * [`commercelayer authorization:forward ID`](#commercelayer-authorizationforward-id)
@@ -46,6 +47,7 @@ $ commercelayer plugins:install triggers
46
47
  * [`commercelayer buy_x_pay_y_promotion:disable ID`](#commercelayer-buy_x_pay_y_promotiondisable-id)
47
48
  * [`commercelayer buy_x_pay_y_promotion:enable ID`](#commercelayer-buy_x_pay_y_promotionenable-id)
48
49
  * [`commercelayer capture ID`](#commercelayer-capture-id)
50
+ * [`commercelayer capture:cancel ID`](#commercelayer-capturecancel-id)
49
51
  * [`commercelayer capture:forward ID`](#commercelayer-captureforward-id)
50
52
  * [`commercelayer capture:refund ID`](#commercelayer-capturerefund-id)
51
53
  * [`commercelayer capture:refund_amount_cents ID`](#commercelayer-capturerefund_amount_cents-id)
@@ -70,6 +72,9 @@ $ commercelayer plugins:install triggers
70
72
  * [`commercelayer fixed_price_promotion ID`](#commercelayer-fixed_price_promotion-id)
71
73
  * [`commercelayer fixed_price_promotion:disable ID`](#commercelayer-fixed_price_promotiondisable-id)
72
74
  * [`commercelayer fixed_price_promotion:enable ID`](#commercelayer-fixed_price_promotionenable-id)
75
+ * [`commercelayer flex_promotion ID`](#commercelayer-flex_promotion-id)
76
+ * [`commercelayer flex_promotion:disable ID`](#commercelayer-flex_promotiondisable-id)
77
+ * [`commercelayer flex_promotion:enable ID`](#commercelayer-flex_promotionenable-id)
73
78
  * [`commercelayer free_gift_promotion ID`](#commercelayer-free_gift_promotion-id)
74
79
  * [`commercelayer free_gift_promotion:disable ID`](#commercelayer-free_gift_promotiondisable-id)
75
80
  * [`commercelayer free_gift_promotion:enable ID`](#commercelayer-free_gift_promotionenable-id)
@@ -141,6 +146,8 @@ $ commercelayer plugins:install triggers
141
146
  * [`commercelayer price_list_scheduler ID`](#commercelayer-price_list_scheduler-id)
142
147
  * [`commercelayer price_list_scheduler:disable ID`](#commercelayer-price_list_schedulerdisable-id)
143
148
  * [`commercelayer price_list_scheduler:enable ID`](#commercelayer-price_list_schedulerenable-id)
149
+ * [`commercelayer refund ID`](#commercelayer-refund-id)
150
+ * [`commercelayer refund:forward ID`](#commercelayer-refundforward-id)
144
151
  * [`commercelayer return ID`](#commercelayer-return-id)
145
152
  * [`commercelayer return:approve ID`](#commercelayer-returnapprove-id)
146
153
  * [`commercelayer return:archive ID`](#commercelayer-returnarchive-id)
@@ -193,6 +200,8 @@ $ commercelayer plugins:install triggers
193
200
  * [`commercelayer stripe_payment ID`](#commercelayer-stripe_payment-id)
194
201
  * [`commercelayer stripe_payment:refresh ID`](#commercelayer-stripe_paymentrefresh-id)
195
202
  * [`commercelayer stripe_payment:update ID`](#commercelayer-stripe_paymentupdate-id)
203
+ * [`commercelayer void ID`](#commercelayer-void-id)
204
+ * [`commercelayer void:forward ID`](#commercelayer-voidforward-id)
196
205
  * [`commercelayer webhook ID`](#commercelayer-webhook-id)
197
206
  * [`commercelayer webhook:disable ID`](#commercelayer-webhookdisable-id)
198
207
  * [`commercelayer webhook:enable ID`](#commercelayer-webhookenable-id)
@@ -264,6 +273,28 @@ DESCRIPTION
264
273
 
265
274
  _See code: [src/commands/authorization/index.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/authorization/index.ts)_
266
275
 
276
+ ### `commercelayer authorization:cancel ID`
277
+
278
+ Send this attribute if you want to void a succeeded authorization of a pending order (which is left unpaid).
279
+
280
+ ```sh-session
281
+ USAGE
282
+ $ commercelayer authorization:cancel ID [-u [-j -p]]
283
+
284
+ ARGUMENTS
285
+ ID the unique id of the resource
286
+
287
+ FLAGS
288
+ -j, --json print result in JSON format
289
+ -p, --print print out the modified resource
290
+ -u, --unformatted print JSON output without indentation
291
+
292
+ DESCRIPTION
293
+ Send this attribute if you want to void a succeeded authorization of a pending order (which is left unpaid).
294
+ ```
295
+
296
+ _See code: [src/commands/authorization/cancel.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/authorization/cancel.ts)_
297
+
267
298
  ### `commercelayer authorization:capture ID`
268
299
 
269
300
  Send this attribute if you want to create a capture for this authorization.
@@ -553,6 +584,28 @@ DESCRIPTION
553
584
 
554
585
  _See code: [src/commands/capture/index.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/capture/index.ts)_
555
586
 
587
+ ### `commercelayer capture:cancel ID`
588
+
589
+ Send this attribute if you want to refund a succeeded capture of a pending order (which is left unpaid).
590
+
591
+ ```sh-session
592
+ USAGE
593
+ $ commercelayer capture:cancel ID [-u [-j -p]]
594
+
595
+ ARGUMENTS
596
+ ID the unique id of the resource
597
+
598
+ FLAGS
599
+ -j, --json print result in JSON format
600
+ -p, --print print out the modified resource
601
+ -u, --unformatted print JSON output without indentation
602
+
603
+ DESCRIPTION
604
+ Send this attribute if you want to refund a succeeded capture of a pending order (which is left unpaid).
605
+ ```
606
+
607
+ _See code: [src/commands/capture/cancel.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/capture/cancel.ts)_
608
+
556
609
  ### `commercelayer capture:forward ID`
557
610
 
558
611
  Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states accordingly.
@@ -754,7 +807,7 @@ _See code: [src/commands/event/index.ts](https://github.com/commercelayer/commer
754
807
 
755
808
  ### `commercelayer event:trigger ID`
756
809
 
757
- Send this attribute if you want to force webhooks execution for this event.
810
+ Send this attribute if you want to force webhooks execution for this event. Cannot be passed by sales channels.
758
811
 
759
812
  ```sh-session
760
813
  USAGE
@@ -769,7 +822,7 @@ FLAGS
769
822
  -u, --unformatted print JSON output without indentation
770
823
 
771
824
  DESCRIPTION
772
- Send this attribute if you want to force webhooks execution for this event.
825
+ Send this attribute if you want to force webhooks execution for this event. Cannot be passed by sales channels.
773
826
  ```
774
827
 
775
828
  _See code: [src/commands/event/trigger.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/event/trigger.ts)_
@@ -798,7 +851,7 @@ _See code: [src/commands/external_gateway/index.ts](https://github.com/commercel
798
851
 
799
852
  ### `commercelayer external_gateway:reset_circuit ID`
800
853
 
801
- Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count.
854
+ Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels.
802
855
 
803
856
  ```sh-session
804
857
  USAGE
@@ -814,7 +867,7 @@ FLAGS
814
867
 
815
868
  DESCRIPTION
816
869
  Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero
817
- failures count.
870
+ failures count. Cannot be passed by sales channels.
818
871
  ```
819
872
 
820
873
  _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)_
@@ -887,7 +940,7 @@ _See code: [src/commands/external_promotion/enable.ts](https://github.com/commer
887
940
 
888
941
  ### `commercelayer external_promotion:reset_circuit ID`
889
942
 
890
- Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count.
943
+ Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels.
891
944
 
892
945
  ```sh-session
893
946
  USAGE
@@ -903,7 +956,7 @@ FLAGS
903
956
 
904
957
  DESCRIPTION
905
958
  Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero
906
- failures count.
959
+ failures count. Cannot be passed by sales channels.
907
960
  ```
908
961
 
909
962
  _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)_
@@ -932,7 +985,7 @@ _See code: [src/commands/external_tax_calculator/index.ts](https://github.com/co
932
985
 
933
986
  ### `commercelayer external_tax_calculator:reset_circuit ID`
934
987
 
935
- Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count.
988
+ Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels.
936
989
 
937
990
  ```sh-session
938
991
  USAGE
@@ -948,7 +1001,7 @@ FLAGS
948
1001
 
949
1002
  DESCRIPTION
950
1003
  Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero
951
- failures count.
1004
+ failures count. Cannot be passed by sales channels.
952
1005
  ```
953
1006
 
954
1007
  _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)_
@@ -1085,6 +1138,72 @@ DESCRIPTION
1085
1138
 
1086
1139
  _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)_
1087
1140
 
1141
+ ### `commercelayer flex_promotion ID`
1142
+
1143
+ Execute an action on a resource of type flex_promotions.
1144
+
1145
+ ```sh-session
1146
+ USAGE
1147
+ $ commercelayer flex_promotion ID [-u [-j -p]]
1148
+
1149
+ ARGUMENTS
1150
+ ID the unique id of the resource
1151
+
1152
+ FLAGS
1153
+ -j, --json print result in JSON format
1154
+ -p, --print print out the modified resource
1155
+ -u, --unformatted print JSON output without indentation
1156
+
1157
+ DESCRIPTION
1158
+ execute an action on a resource of type flex_promotions
1159
+ ```
1160
+
1161
+ _See code: [src/commands/flex_promotion/index.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/flex_promotion/index.ts)_
1162
+
1163
+ ### `commercelayer flex_promotion:disable ID`
1164
+
1165
+ Send this attribute if you want to mark this resource as disabled.
1166
+
1167
+ ```sh-session
1168
+ USAGE
1169
+ $ commercelayer flex_promotion:disable ID [-u [-j -p]]
1170
+
1171
+ ARGUMENTS
1172
+ ID the unique id of the resource
1173
+
1174
+ FLAGS
1175
+ -j, --json print result in JSON format
1176
+ -p, --print print out the modified resource
1177
+ -u, --unformatted print JSON output without indentation
1178
+
1179
+ DESCRIPTION
1180
+ Send this attribute if you want to mark this resource as disabled.
1181
+ ```
1182
+
1183
+ _See code: [src/commands/flex_promotion/disable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/flex_promotion/disable.ts)_
1184
+
1185
+ ### `commercelayer flex_promotion:enable ID`
1186
+
1187
+ Send this attribute if you want to mark this resource as enabled.
1188
+
1189
+ ```sh-session
1190
+ USAGE
1191
+ $ commercelayer flex_promotion:enable ID [-u [-j -p]]
1192
+
1193
+ ARGUMENTS
1194
+ ID the unique id of the resource
1195
+
1196
+ FLAGS
1197
+ -j, --json print result in JSON format
1198
+ -p, --print print out the modified resource
1199
+ -u, --unformatted print JSON output without indentation
1200
+
1201
+ DESCRIPTION
1202
+ Send this attribute if you want to mark this resource as enabled.
1203
+ ```
1204
+
1205
+ _See code: [src/commands/flex_promotion/enable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/flex_promotion/enable.ts)_
1206
+
1088
1207
  ### `commercelayer free_gift_promotion ID`
1089
1208
 
1090
1209
  Execute an action on a resource of type free_gift_promotions.
@@ -1487,7 +1606,7 @@ _See code: [src/commands/line_item/external_price.ts](https://github.com/commerc
1487
1606
 
1488
1607
  ### `commercelayer line_item:reserve_stock ID`
1489
1608
 
1490
- Send this attribute if you want to reserve the stock for the line item's SKUs quantity. Stock reservations expiration depends on the inventory model's cutoff. When used on update the existing active stock reservations are renewed.
1609
+ Send this attribute if you want to reserve the stock for the line item's SKUs quantity. Stock reservations expiration depends on the inventory model's cutoff. When used on update the existing active stock reservations are renewed. Cannot be passed by sales channels.
1491
1610
 
1492
1611
  ```sh-session
1493
1612
  USAGE
@@ -1504,13 +1623,14 @@ FLAGS
1504
1623
  DESCRIPTION
1505
1624
  Send this attribute if you want to reserve the stock for the line item's SKUs quantity. Stock reservations expiration
1506
1625
  depends on the inventory model's cutoff. When used on update the existing active stock reservations are renewed.
1626
+ Cannot be passed by sales channels.
1507
1627
  ```
1508
1628
 
1509
1629
  _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)_
1510
1630
 
1511
1631
  ### `commercelayer line_item:reset_circuit ID`
1512
1632
 
1513
- Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count.
1633
+ Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels.
1514
1634
 
1515
1635
  ```sh-session
1516
1636
  USAGE
@@ -1526,7 +1646,7 @@ FLAGS
1526
1646
 
1527
1647
  DESCRIPTION
1528
1648
  Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero
1529
- failures count.
1649
+ failures count. Cannot be passed by sales channels.
1530
1650
  ```
1531
1651
 
1532
1652
  _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)_
@@ -1687,7 +1807,7 @@ _See code: [src/commands/order/index.ts](https://github.com/commercelayer/commer
1687
1807
 
1688
1808
  ### `commercelayer order:approve ID`
1689
1809
 
1690
- Send this attribute if you want to approve a placed order.
1810
+ Send this attribute if you want to approve a placed order. Cannot be passed by sales channels.
1691
1811
 
1692
1812
  ```sh-session
1693
1813
  USAGE
@@ -1702,14 +1822,14 @@ FLAGS
1702
1822
  -u, --unformatted print JSON output without indentation
1703
1823
 
1704
1824
  DESCRIPTION
1705
- Send this attribute if you want to approve a placed order.
1825
+ Send this attribute if you want to approve a placed order. Cannot be passed by sales channels.
1706
1826
  ```
1707
1827
 
1708
1828
  _See code: [src/commands/order/approve.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/order/approve.ts)_
1709
1829
 
1710
1830
  ### `commercelayer order:approve_and_capture ID`
1711
1831
 
1712
- Send this attribute if you want to approve and capture a placed order.
1832
+ Send this attribute if you want to approve and capture a placed order. Cannot be passed by sales channels.
1713
1833
 
1714
1834
  ```sh-session
1715
1835
  USAGE
@@ -1724,7 +1844,7 @@ FLAGS
1724
1844
  -u, --unformatted print JSON output without indentation
1725
1845
 
1726
1846
  DESCRIPTION
1727
- Send this attribute if you want to approve and capture a placed order.
1847
+ Send this attribute if you want to approve and capture a placed order. Cannot be passed by sales channels.
1728
1848
  ```
1729
1849
 
1730
1850
  _See code: [src/commands/order/approve_and_capture.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/order/approve_and_capture.ts)_
@@ -1864,7 +1984,7 @@ _See code: [src/commands/order/cancel.ts](https://github.com/commercelayer/comme
1864
1984
 
1865
1985
  ### `commercelayer order:capture ID`
1866
1986
 
1867
- Send this attribute if you want to capture an authorized order.
1987
+ Send this attribute if you want to capture an authorized order. Cannot be passed by sales channels.
1868
1988
 
1869
1989
  ```sh-session
1870
1990
  USAGE
@@ -1879,7 +1999,7 @@ FLAGS
1879
1999
  -u, --unformatted print JSON output without indentation
1880
2000
 
1881
2001
  DESCRIPTION
1882
- Send this attribute if you want to capture an authorized order.
2002
+ Send this attribute if you want to capture an authorized order. Cannot be passed by sales channels.
1883
2003
  ```
1884
2004
 
1885
2005
  _See code: [src/commands/order/capture.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/order/capture.ts)_
@@ -1955,7 +2075,7 @@ _See code: [src/commands/order/customer_payment_source_id.ts](https://github.com
1955
2075
 
1956
2076
  ### `commercelayer order:fulfill ID`
1957
2077
 
1958
- Send this attribute if you want to mark as fulfilled the order (shipments must be cancelled, shipped or delivered).
2078
+ Send this attribute if you want to mark as fulfilled the order (shipments must be cancelled, shipped or delivered). Cannot be passed by sales channels.
1959
2079
 
1960
2080
  ```sh-session
1961
2081
  USAGE
@@ -1971,6 +2091,7 @@ FLAGS
1971
2091
 
1972
2092
  DESCRIPTION
1973
2093
  Send this attribute if you want to mark as fulfilled the order (shipments must be cancelled, shipped or delivered).
2094
+ Cannot be passed by sales channels.
1974
2095
  ```
1975
2096
 
1976
2097
  _See code: [src/commands/order/fulfill.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/order/fulfill.ts)_
@@ -1999,7 +2120,7 @@ _See code: [src/commands/order/nullify_payment_source.ts](https://github.com/com
1999
2120
 
2000
2121
  ### `commercelayer order:pending ID`
2001
2122
 
2002
- Send this attribute if you want to move a draft or placing order to pending.
2123
+ Send this attribute if you want to move a draft or placing order to pending. Cannot be passed by sales channels.
2003
2124
 
2004
2125
  ```sh-session
2005
2126
  USAGE
@@ -2014,7 +2135,7 @@ FLAGS
2014
2135
  -u, --unformatted print JSON output without indentation
2015
2136
 
2016
2137
  DESCRIPTION
2017
- Send this attribute if you want to move a draft or placing order to pending.
2138
+ Send this attribute if you want to move a draft or placing order to pending. Cannot be passed by sales channels.
2018
2139
  ```
2019
2140
 
2020
2141
  _See code: [src/commands/order/pending.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/order/pending.ts)_
@@ -2065,7 +2186,7 @@ _See code: [src/commands/order/refresh.ts](https://github.com/commercelayer/comm
2065
2186
 
2066
2187
  ### `commercelayer order:refund ID`
2067
2188
 
2068
- Send this attribute if you want to refund a captured order.
2189
+ Send this attribute if you want to refund a captured order. Cannot be passed by sales channels.
2069
2190
 
2070
2191
  ```sh-session
2071
2192
  USAGE
@@ -2080,7 +2201,7 @@ FLAGS
2080
2201
  -u, --unformatted print JSON output without indentation
2081
2202
 
2082
2203
  DESCRIPTION
2083
- Send this attribute if you want to refund a captured order.
2204
+ Send this attribute if you want to refund a captured order. Cannot be passed by sales channels.
2084
2205
  ```
2085
2206
 
2086
2207
  _See code: [src/commands/order/refund.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/order/refund.ts)_
@@ -2110,7 +2231,7 @@ _See code: [src/commands/order/refund_invoice.ts](https://github.com/commercelay
2110
2231
 
2111
2232
  ### `commercelayer order:reset_circuit ID`
2112
2233
 
2113
- Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count.
2234
+ Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels.
2114
2235
 
2115
2236
  ```sh-session
2116
2237
  USAGE
@@ -2126,7 +2247,7 @@ FLAGS
2126
2247
 
2127
2248
  DESCRIPTION
2128
2249
  Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero
2129
- failures count.
2250
+ failures count. Cannot be passed by sales channels.
2130
2251
  ```
2131
2252
 
2132
2253
  _See code: [src/commands/order/reset_circuit.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/order/reset_circuit.ts)_
@@ -2247,7 +2368,7 @@ _See code: [src/commands/order/shipping_address_same_as_billing.ts](https://gith
2247
2368
 
2248
2369
  ### `commercelayer order:start_editing ID`
2249
2370
 
2250
- Send this attribute if you want to edit the order after it is placed. Remember you cannot exceed the original total amount.
2371
+ Send this attribute if you want to edit the order after it is placed. Remember you cannot exceed the original total amount. Cannot be passed by sales channels.
2251
2372
 
2252
2373
  ```sh-session
2253
2374
  USAGE
@@ -2263,14 +2384,14 @@ FLAGS
2263
2384
 
2264
2385
  DESCRIPTION
2265
2386
  Send this attribute if you want to edit the order after it is placed. Remember you cannot exceed the original total
2266
- amount.
2387
+ amount. Cannot be passed by sales channels.
2267
2388
  ```
2268
2389
 
2269
2390
  _See code: [src/commands/order/start_editing.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/order/start_editing.ts)_
2270
2391
 
2271
2392
  ### `commercelayer order:stop_editing ID`
2272
2393
 
2273
- Send this attribute to stop the editing for the order and return back to placed status.
2394
+ Send this attribute to stop the editing for the order and return back to placed status. Cannot be passed by sales channels.
2274
2395
 
2275
2396
  ```sh-session
2276
2397
  USAGE
@@ -2285,7 +2406,8 @@ FLAGS
2285
2406
  -u, --unformatted print JSON output without indentation
2286
2407
 
2287
2408
  DESCRIPTION
2288
- Send this attribute to stop the editing for the order and return back to placed status.
2409
+ Send this attribute to stop the editing for the order and return back to placed status. Cannot be passed by sales
2410
+ channels.
2289
2411
  ```
2290
2412
 
2291
2413
  _See code: [src/commands/order/stop_editing.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/order/stop_editing.ts)_
@@ -2666,6 +2788,51 @@ DESCRIPTION
2666
2788
 
2667
2789
  _See code: [src/commands/price_list_scheduler/enable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/price_list_scheduler/enable.ts)_
2668
2790
 
2791
+ ### `commercelayer refund ID`
2792
+
2793
+ Execute an action on a resource of type refunds.
2794
+
2795
+ ```sh-session
2796
+ USAGE
2797
+ $ commercelayer refund ID [-u [-j -p]]
2798
+
2799
+ ARGUMENTS
2800
+ ID the unique id of the resource
2801
+
2802
+ FLAGS
2803
+ -j, --json print result in JSON format
2804
+ -p, --print print out the modified resource
2805
+ -u, --unformatted print JSON output without indentation
2806
+
2807
+ DESCRIPTION
2808
+ execute an action on a resource of type refunds
2809
+ ```
2810
+
2811
+ _See code: [src/commands/refund/index.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/refund/index.ts)_
2812
+
2813
+ ### `commercelayer refund:forward ID`
2814
+
2815
+ Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states accordingly.
2816
+
2817
+ ```sh-session
2818
+ USAGE
2819
+ $ commercelayer refund:forward ID [-u [-j -p]]
2820
+
2821
+ ARGUMENTS
2822
+ ID the unique id of the resource
2823
+
2824
+ FLAGS
2825
+ -j, --json print result in JSON format
2826
+ -p, --print print out the modified resource
2827
+ -u, --unformatted print JSON output without indentation
2828
+
2829
+ DESCRIPTION
2830
+ Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states
2831
+ accordingly.
2832
+ ```
2833
+
2834
+ _See code: [src/commands/refund/forward.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/refund/forward.ts)_
2835
+
2669
2836
  ### `commercelayer return ID`
2670
2837
 
2671
2838
  Execute an action on a resource of type returns.
@@ -3042,7 +3209,7 @@ _See code: [src/commands/shipment/index.ts](https://github.com/commercelayer/com
3042
3209
 
3043
3210
  ### `commercelayer shipment:cancel ID`
3044
3211
 
3045
- Send this attribute if you want to mark this shipment as cancelled (unless already shipped or delivered).
3212
+ Send this attribute if you want to mark this shipment as cancelled (unless already shipped or delivered). Cannot be passed by sales channels.
3046
3213
 
3047
3214
  ```sh-session
3048
3215
  USAGE
@@ -3057,14 +3224,15 @@ FLAGS
3057
3224
  -u, --unformatted print JSON output without indentation
3058
3225
 
3059
3226
  DESCRIPTION
3060
- Send this attribute if you want to mark this shipment as cancelled (unless already shipped or delivered).
3227
+ Send this attribute if you want to mark this shipment as cancelled (unless already shipped or delivered). Cannot be
3228
+ passed by sales channels.
3061
3229
  ```
3062
3230
 
3063
3231
  _See code: [src/commands/shipment/cancel.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/shipment/cancel.ts)_
3064
3232
 
3065
3233
  ### `commercelayer shipment:decrement_stock ID`
3066
3234
 
3067
- 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.
3235
+ 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. Cannot be passed by sales channels.
3068
3236
 
3069
3237
  ```sh-session
3070
3238
  USAGE
@@ -3080,7 +3248,7 @@ FLAGS
3080
3248
 
3081
3249
  DESCRIPTION
3082
3250
  Send this attribute if you want to automatically decrement and release the stock for each of the associated stock line
3083
- item. Can be done only when fulfillment is in progress.
3251
+ item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels.
3084
3252
  ```
3085
3253
 
3086
3254
  _See code: [src/commands/shipment/decrement_stock.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/shipment/decrement_stock.ts)_
@@ -3241,7 +3409,7 @@ _See code: [src/commands/shipment/ready_to_ship.ts](https://github.com/commercel
3241
3409
 
3242
3410
  ### `commercelayer shipment:release_stock ID`
3243
3411
 
3244
- 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.
3412
+ 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. Cannot be passed by sales channels.
3245
3413
 
3246
3414
  ```sh-session
3247
3415
  USAGE
@@ -3257,14 +3425,14 @@ FLAGS
3257
3425
 
3258
3426
  DESCRIPTION
3259
3427
  Send this attribute if you want to automatically destroy the stock reservations for each of the associated stock line
3260
- item. Can be done only when fulfillment is in progress.
3428
+ item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels.
3261
3429
  ```
3262
3430
 
3263
3431
  _See code: [src/commands/shipment/release_stock.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/shipment/release_stock.ts)_
3264
3432
 
3265
3433
  ### `commercelayer shipment:reserve_stock ID`
3266
3434
 
3267
- 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.
3435
+ 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. Cannot be passed by sales channels.
3268
3436
 
3269
3437
  ```sh-session
3270
3438
  USAGE
@@ -3280,7 +3448,7 @@ FLAGS
3280
3448
 
3281
3449
  DESCRIPTION
3282
3450
  Send this attribute if you want to automatically reserve the stock for each of the associated stock line item. Can be
3283
- done only when fulfillment is in progress.
3451
+ done only when fulfillment is in progress. Cannot be passed by sales channels.
3284
3452
  ```
3285
3453
 
3286
3454
  _See code: [src/commands/shipment/reserve_stock.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/shipment/reserve_stock.ts)_
@@ -3309,7 +3477,7 @@ _See code: [src/commands/shipment/ship.ts](https://github.com/commercelayer/comm
3309
3477
 
3310
3478
  ### `commercelayer shipment:upcoming ID`
3311
3479
 
3312
- Send this attribute if you want to mark this shipment as upcoming.
3480
+ Send this attribute if you want to mark this shipment as upcoming. Cannot be passed by sales channels.
3313
3481
 
3314
3482
  ```sh-session
3315
3483
  USAGE
@@ -3324,7 +3492,7 @@ FLAGS
3324
3492
  -u, --unformatted print JSON output without indentation
3325
3493
 
3326
3494
  DESCRIPTION
3327
- Send this attribute if you want to mark this shipment as upcoming.
3495
+ Send this attribute if you want to mark this shipment as upcoming. Cannot be passed by sales channels.
3328
3496
  ```
3329
3497
 
3330
3498
  _See code: [src/commands/shipment/upcoming.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/shipment/upcoming.ts)_
@@ -3397,7 +3565,7 @@ _See code: [src/commands/shipping_method/enable.ts](https://github.com/commercel
3397
3565
 
3398
3566
  ### `commercelayer shipping_method:reset_circuit ID`
3399
3567
 
3400
- Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count.
3568
+ Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels.
3401
3569
 
3402
3570
  ```sh-session
3403
3571
  USAGE
@@ -3413,7 +3581,7 @@ FLAGS
3413
3581
 
3414
3582
  DESCRIPTION
3415
3583
  Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero
3416
- failures count.
3584
+ failures count. Cannot be passed by sales channels.
3417
3585
  ```
3418
3586
 
3419
3587
  _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)_
@@ -3442,7 +3610,7 @@ _See code: [src/commands/stock_item/index.ts](https://github.com/commercelayer/c
3442
3610
 
3443
3611
  ### `commercelayer stock_item:validate ID`
3444
3612
 
3445
- 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.
3613
+ 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. Cannot be passed by sales channels.
3446
3614
 
3447
3615
  ```sh-session
3448
3616
  USAGE
@@ -3458,7 +3626,7 @@ FLAGS
3458
3626
 
3459
3627
  DESCRIPTION
3460
3628
  Send this attribute if you want to validate the stock item quantity against the existing reserved stock one, returns
3461
- an error in case the former is smaller.
3629
+ an error in case the former is smaller. Cannot be passed by sales channels.
3462
3630
  ```
3463
3631
 
3464
3632
  _See code: [src/commands/stock_item/validate.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/stock_item/validate.ts)_
@@ -3487,7 +3655,7 @@ _See code: [src/commands/stock_line_item/index.ts](https://github.com/commercela
3487
3655
 
3488
3656
  ### `commercelayer stock_line_item:decrement_stock ID`
3489
3657
 
3490
- Send this attribute if you want to automatically decrement and release the stock this stock line item. Can be done only when fulfillment is in progress.
3658
+ Send this attribute if you want to automatically decrement and release the stock this stock line item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels.
3491
3659
 
3492
3660
  ```sh-session
3493
3661
  USAGE
@@ -3503,14 +3671,14 @@ FLAGS
3503
3671
 
3504
3672
  DESCRIPTION
3505
3673
  Send this attribute if you want to automatically decrement and release the stock this stock line item. Can be done
3506
- only when fulfillment is in progress.
3674
+ only when fulfillment is in progress. Cannot be passed by sales channels.
3507
3675
  ```
3508
3676
 
3509
3677
  _See code: [src/commands/stock_line_item/decrement_stock.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/stock_line_item/decrement_stock.ts)_
3510
3678
 
3511
3679
  ### `commercelayer stock_line_item:release_stock ID`
3512
3680
 
3513
- 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.
3681
+ 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. Cannot be passed by sales channels.
3514
3682
 
3515
3683
  ```sh-session
3516
3684
  USAGE
@@ -3526,14 +3694,14 @@ FLAGS
3526
3694
 
3527
3695
  DESCRIPTION
3528
3696
  Send this attribute if you want to automatically destroy the stock reservation for this stock line item. Can be done
3529
- only when fulfillment is in progress.
3697
+ only when fulfillment is in progress. Cannot be passed by sales channels.
3530
3698
  ```
3531
3699
 
3532
3700
  _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)_
3533
3701
 
3534
3702
  ### `commercelayer stock_line_item:reserve_stock ID`
3535
3703
 
3536
- Send this attribute if you want to automatically reserve the stock for this stock line item. Can be done only when fulfillment is in progress.
3704
+ Send this attribute if you want to automatically reserve the stock for this stock line item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels.
3537
3705
 
3538
3706
  ```sh-session
3539
3707
  USAGE
@@ -3549,7 +3717,7 @@ FLAGS
3549
3717
 
3550
3718
  DESCRIPTION
3551
3719
  Send this attribute if you want to automatically reserve the stock for this stock line item. Can be done only when
3552
- fulfillment is in progress.
3720
+ fulfillment is in progress. Cannot be passed by sales channels.
3553
3721
  ```
3554
3722
 
3555
3723
  _See code: [src/commands/stock_line_item/reserve_stock.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/stock_line_item/reserve_stock.ts)_
@@ -3818,6 +3986,51 @@ DESCRIPTION
3818
3986
 
3819
3987
  _See code: [src/commands/stripe_payment/update.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/stripe_payment/update.ts)_
3820
3988
 
3989
+ ### `commercelayer void ID`
3990
+
3991
+ Execute an action on a resource of type voids.
3992
+
3993
+ ```sh-session
3994
+ USAGE
3995
+ $ commercelayer void ID [-u [-j -p]]
3996
+
3997
+ ARGUMENTS
3998
+ ID the unique id of the resource
3999
+
4000
+ FLAGS
4001
+ -j, --json print result in JSON format
4002
+ -p, --print print out the modified resource
4003
+ -u, --unformatted print JSON output without indentation
4004
+
4005
+ DESCRIPTION
4006
+ execute an action on a resource of type voids
4007
+ ```
4008
+
4009
+ _See code: [src/commands/void/index.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/void/index.ts)_
4010
+
4011
+ ### `commercelayer void:forward ID`
4012
+
4013
+ Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states accordingly.
4014
+
4015
+ ```sh-session
4016
+ USAGE
4017
+ $ commercelayer void:forward ID [-u [-j -p]]
4018
+
4019
+ ARGUMENTS
4020
+ ID the unique id of the resource
4021
+
4022
+ FLAGS
4023
+ -j, --json print result in JSON format
4024
+ -p, --print print out the modified resource
4025
+ -u, --unformatted print JSON output without indentation
4026
+
4027
+ DESCRIPTION
4028
+ Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states
4029
+ accordingly.
4030
+ ```
4031
+
4032
+ _See code: [src/commands/void/forward.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/void/forward.ts)_
4033
+
3821
4034
  ### `commercelayer webhook ID`
3822
4035
 
3823
4036
  Execute an action on a resource of type webhooks.
@@ -3886,7 +4099,7 @@ _See code: [src/commands/webhook/enable.ts](https://github.com/commercelayer/com
3886
4099
 
3887
4100
  ### `commercelayer webhook:reset_circuit ID`
3888
4101
 
3889
- Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count.
4102
+ Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels.
3890
4103
 
3891
4104
  ```sh-session
3892
4105
  USAGE
@@ -3902,7 +4115,7 @@ FLAGS
3902
4115
 
3903
4116
  DESCRIPTION
3904
4117
  Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero
3905
- failures count.
4118
+ failures count. Cannot be passed by sales channels.
3906
4119
  ```
3907
4120
 
3908
4121
  _See code: [src/commands/webhook/reset_circuit.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/webhook/reset_circuit.ts)_