@commercelayer/cli-plugin-triggers 4.7.1 → 4.8.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 +217 -50
- package/lib/commands/flex_promotion/disable.d.ts +9 -0
- package/lib/commands/flex_promotion/disable.js +22 -0
- package/lib/commands/flex_promotion/enable.d.ts +9 -0
- package/lib/commands/flex_promotion/enable.js +22 -0
- package/lib/commands/flex_promotion/index.d.ts +9 -0
- package/lib/commands/flex_promotion/index.js +40 -0
- package/lib/commands/refund/forward.d.ts +9 -0
- package/lib/commands/refund/forward.js +22 -0
- package/lib/commands/refund/index.d.ts +9 -0
- package/lib/commands/refund/index.js +40 -0
- package/lib/commands/void/forward.d.ts +9 -0
- package/lib/commands/void/forward.js +22 -0
- package/lib/commands/void/index.d.ts +9 -0
- package/lib/commands/void/index.js +40 -0
- package/lib/index.js +0 -1
- package/lib/triggers/events.js +1 -1
- package/lib/triggers/external_gateways.js +1 -1
- package/lib/triggers/external_promotions.js +1 -1
- package/lib/triggers/external_tax_calculators.js +1 -1
- package/lib/triggers/flex_promotions.d.ts +3 -0
- package/lib/triggers/flex_promotions.js +15 -0
- package/lib/triggers/line_items.js +2 -2
- package/lib/triggers/orders.js +9 -9
- package/lib/triggers/refunds.d.ts +3 -0
- package/lib/triggers/refunds.js +10 -0
- package/lib/triggers/shipments.js +5 -5
- package/lib/triggers/shipping_methods.js +1 -1
- package/lib/triggers/stock_items.js +1 -1
- package/lib/triggers/stock_line_items.js +3 -3
- package/lib/triggers/voids.d.ts +3 -0
- package/lib/triggers/voids.js +10 -0
- package/lib/triggers/webhooks.js +1 -1
- package/oclif.manifest.json +645 -29
- package/package.json +14 -14
package/README.md
CHANGED
|
@@ -70,6 +70,9 @@ $ commercelayer plugins:install triggers
|
|
|
70
70
|
* [`commercelayer fixed_price_promotion ID`](#commercelayer-fixed_price_promotion-id)
|
|
71
71
|
* [`commercelayer fixed_price_promotion:disable ID`](#commercelayer-fixed_price_promotiondisable-id)
|
|
72
72
|
* [`commercelayer fixed_price_promotion:enable ID`](#commercelayer-fixed_price_promotionenable-id)
|
|
73
|
+
* [`commercelayer flex_promotion ID`](#commercelayer-flex_promotion-id)
|
|
74
|
+
* [`commercelayer flex_promotion:disable ID`](#commercelayer-flex_promotiondisable-id)
|
|
75
|
+
* [`commercelayer flex_promotion:enable ID`](#commercelayer-flex_promotionenable-id)
|
|
73
76
|
* [`commercelayer free_gift_promotion ID`](#commercelayer-free_gift_promotion-id)
|
|
74
77
|
* [`commercelayer free_gift_promotion:disable ID`](#commercelayer-free_gift_promotiondisable-id)
|
|
75
78
|
* [`commercelayer free_gift_promotion:enable ID`](#commercelayer-free_gift_promotionenable-id)
|
|
@@ -141,6 +144,8 @@ $ commercelayer plugins:install triggers
|
|
|
141
144
|
* [`commercelayer price_list_scheduler ID`](#commercelayer-price_list_scheduler-id)
|
|
142
145
|
* [`commercelayer price_list_scheduler:disable ID`](#commercelayer-price_list_schedulerdisable-id)
|
|
143
146
|
* [`commercelayer price_list_scheduler:enable ID`](#commercelayer-price_list_schedulerenable-id)
|
|
147
|
+
* [`commercelayer refund ID`](#commercelayer-refund-id)
|
|
148
|
+
* [`commercelayer refund:forward ID`](#commercelayer-refundforward-id)
|
|
144
149
|
* [`commercelayer return ID`](#commercelayer-return-id)
|
|
145
150
|
* [`commercelayer return:approve ID`](#commercelayer-returnapprove-id)
|
|
146
151
|
* [`commercelayer return:archive ID`](#commercelayer-returnarchive-id)
|
|
@@ -193,6 +198,8 @@ $ commercelayer plugins:install triggers
|
|
|
193
198
|
* [`commercelayer stripe_payment ID`](#commercelayer-stripe_payment-id)
|
|
194
199
|
* [`commercelayer stripe_payment:refresh ID`](#commercelayer-stripe_paymentrefresh-id)
|
|
195
200
|
* [`commercelayer stripe_payment:update ID`](#commercelayer-stripe_paymentupdate-id)
|
|
201
|
+
* [`commercelayer void ID`](#commercelayer-void-id)
|
|
202
|
+
* [`commercelayer void:forward ID`](#commercelayer-voidforward-id)
|
|
196
203
|
* [`commercelayer webhook ID`](#commercelayer-webhook-id)
|
|
197
204
|
* [`commercelayer webhook:disable ID`](#commercelayer-webhookdisable-id)
|
|
198
205
|
* [`commercelayer webhook:enable ID`](#commercelayer-webhookenable-id)
|
|
@@ -754,7 +761,7 @@ _See code: [src/commands/event/index.ts](https://github.com/commercelayer/commer
|
|
|
754
761
|
|
|
755
762
|
### `commercelayer event:trigger ID`
|
|
756
763
|
|
|
757
|
-
Send this attribute if you want to force webhooks execution for this event.
|
|
764
|
+
Send this attribute if you want to force webhooks execution for this event. Cannot be passed by sales channels.
|
|
758
765
|
|
|
759
766
|
```sh-session
|
|
760
767
|
USAGE
|
|
@@ -769,7 +776,7 @@ FLAGS
|
|
|
769
776
|
-u, --unformatted print JSON output without indentation
|
|
770
777
|
|
|
771
778
|
DESCRIPTION
|
|
772
|
-
Send this attribute if you want to force webhooks execution for this event.
|
|
779
|
+
Send this attribute if you want to force webhooks execution for this event. Cannot be passed by sales channels.
|
|
773
780
|
```
|
|
774
781
|
|
|
775
782
|
_See code: [src/commands/event/trigger.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/event/trigger.ts)_
|
|
@@ -798,7 +805,7 @@ _See code: [src/commands/external_gateway/index.ts](https://github.com/commercel
|
|
|
798
805
|
|
|
799
806
|
### `commercelayer external_gateway:reset_circuit ID`
|
|
800
807
|
|
|
801
|
-
Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count.
|
|
808
|
+
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
809
|
|
|
803
810
|
```sh-session
|
|
804
811
|
USAGE
|
|
@@ -814,7 +821,7 @@ FLAGS
|
|
|
814
821
|
|
|
815
822
|
DESCRIPTION
|
|
816
823
|
Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero
|
|
817
|
-
failures count.
|
|
824
|
+
failures count. Cannot be passed by sales channels.
|
|
818
825
|
```
|
|
819
826
|
|
|
820
827
|
_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 +894,7 @@ _See code: [src/commands/external_promotion/enable.ts](https://github.com/commer
|
|
|
887
894
|
|
|
888
895
|
### `commercelayer external_promotion:reset_circuit ID`
|
|
889
896
|
|
|
890
|
-
Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count.
|
|
897
|
+
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
898
|
|
|
892
899
|
```sh-session
|
|
893
900
|
USAGE
|
|
@@ -903,7 +910,7 @@ FLAGS
|
|
|
903
910
|
|
|
904
911
|
DESCRIPTION
|
|
905
912
|
Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero
|
|
906
|
-
failures count.
|
|
913
|
+
failures count. Cannot be passed by sales channels.
|
|
907
914
|
```
|
|
908
915
|
|
|
909
916
|
_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 +939,7 @@ _See code: [src/commands/external_tax_calculator/index.ts](https://github.com/co
|
|
|
932
939
|
|
|
933
940
|
### `commercelayer external_tax_calculator:reset_circuit ID`
|
|
934
941
|
|
|
935
|
-
Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count.
|
|
942
|
+
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
943
|
|
|
937
944
|
```sh-session
|
|
938
945
|
USAGE
|
|
@@ -948,7 +955,7 @@ FLAGS
|
|
|
948
955
|
|
|
949
956
|
DESCRIPTION
|
|
950
957
|
Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero
|
|
951
|
-
failures count.
|
|
958
|
+
failures count. Cannot be passed by sales channels.
|
|
952
959
|
```
|
|
953
960
|
|
|
954
961
|
_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 +1092,72 @@ DESCRIPTION
|
|
|
1085
1092
|
|
|
1086
1093
|
_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
1094
|
|
|
1095
|
+
### `commercelayer flex_promotion ID`
|
|
1096
|
+
|
|
1097
|
+
Execute an action on a resource of type flex_promotions.
|
|
1098
|
+
|
|
1099
|
+
```sh-session
|
|
1100
|
+
USAGE
|
|
1101
|
+
$ commercelayer flex_promotion ID [-u [-j -p]]
|
|
1102
|
+
|
|
1103
|
+
ARGUMENTS
|
|
1104
|
+
ID the unique id of the resource
|
|
1105
|
+
|
|
1106
|
+
FLAGS
|
|
1107
|
+
-j, --json print result in JSON format
|
|
1108
|
+
-p, --print print out the modified resource
|
|
1109
|
+
-u, --unformatted print JSON output without indentation
|
|
1110
|
+
|
|
1111
|
+
DESCRIPTION
|
|
1112
|
+
execute an action on a resource of type flex_promotions
|
|
1113
|
+
```
|
|
1114
|
+
|
|
1115
|
+
_See code: [src/commands/flex_promotion/index.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/flex_promotion/index.ts)_
|
|
1116
|
+
|
|
1117
|
+
### `commercelayer flex_promotion:disable ID`
|
|
1118
|
+
|
|
1119
|
+
Send this attribute if you want to mark this resource as disabled.
|
|
1120
|
+
|
|
1121
|
+
```sh-session
|
|
1122
|
+
USAGE
|
|
1123
|
+
$ commercelayer flex_promotion:disable ID [-u [-j -p]]
|
|
1124
|
+
|
|
1125
|
+
ARGUMENTS
|
|
1126
|
+
ID the unique id of the resource
|
|
1127
|
+
|
|
1128
|
+
FLAGS
|
|
1129
|
+
-j, --json print result in JSON format
|
|
1130
|
+
-p, --print print out the modified resource
|
|
1131
|
+
-u, --unformatted print JSON output without indentation
|
|
1132
|
+
|
|
1133
|
+
DESCRIPTION
|
|
1134
|
+
Send this attribute if you want to mark this resource as disabled.
|
|
1135
|
+
```
|
|
1136
|
+
|
|
1137
|
+
_See code: [src/commands/flex_promotion/disable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/flex_promotion/disable.ts)_
|
|
1138
|
+
|
|
1139
|
+
### `commercelayer flex_promotion:enable ID`
|
|
1140
|
+
|
|
1141
|
+
Send this attribute if you want to mark this resource as enabled.
|
|
1142
|
+
|
|
1143
|
+
```sh-session
|
|
1144
|
+
USAGE
|
|
1145
|
+
$ commercelayer flex_promotion:enable ID [-u [-j -p]]
|
|
1146
|
+
|
|
1147
|
+
ARGUMENTS
|
|
1148
|
+
ID the unique id of the resource
|
|
1149
|
+
|
|
1150
|
+
FLAGS
|
|
1151
|
+
-j, --json print result in JSON format
|
|
1152
|
+
-p, --print print out the modified resource
|
|
1153
|
+
-u, --unformatted print JSON output without indentation
|
|
1154
|
+
|
|
1155
|
+
DESCRIPTION
|
|
1156
|
+
Send this attribute if you want to mark this resource as enabled.
|
|
1157
|
+
```
|
|
1158
|
+
|
|
1159
|
+
_See code: [src/commands/flex_promotion/enable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/flex_promotion/enable.ts)_
|
|
1160
|
+
|
|
1088
1161
|
### `commercelayer free_gift_promotion ID`
|
|
1089
1162
|
|
|
1090
1163
|
Execute an action on a resource of type free_gift_promotions.
|
|
@@ -1487,7 +1560,7 @@ _See code: [src/commands/line_item/external_price.ts](https://github.com/commerc
|
|
|
1487
1560
|
|
|
1488
1561
|
### `commercelayer line_item:reserve_stock ID`
|
|
1489
1562
|
|
|
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.
|
|
1563
|
+
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
1564
|
|
|
1492
1565
|
```sh-session
|
|
1493
1566
|
USAGE
|
|
@@ -1504,13 +1577,14 @@ FLAGS
|
|
|
1504
1577
|
DESCRIPTION
|
|
1505
1578
|
Send this attribute if you want to reserve the stock for the line item's SKUs quantity. Stock reservations expiration
|
|
1506
1579
|
depends on the inventory model's cutoff. When used on update the existing active stock reservations are renewed.
|
|
1580
|
+
Cannot be passed by sales channels.
|
|
1507
1581
|
```
|
|
1508
1582
|
|
|
1509
1583
|
_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
1584
|
|
|
1511
1585
|
### `commercelayer line_item:reset_circuit ID`
|
|
1512
1586
|
|
|
1513
|
-
Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count.
|
|
1587
|
+
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
1588
|
|
|
1515
1589
|
```sh-session
|
|
1516
1590
|
USAGE
|
|
@@ -1526,7 +1600,7 @@ FLAGS
|
|
|
1526
1600
|
|
|
1527
1601
|
DESCRIPTION
|
|
1528
1602
|
Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero
|
|
1529
|
-
failures count.
|
|
1603
|
+
failures count. Cannot be passed by sales channels.
|
|
1530
1604
|
```
|
|
1531
1605
|
|
|
1532
1606
|
_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 +1761,7 @@ _See code: [src/commands/order/index.ts](https://github.com/commercelayer/commer
|
|
|
1687
1761
|
|
|
1688
1762
|
### `commercelayer order:approve ID`
|
|
1689
1763
|
|
|
1690
|
-
Send this attribute if you want to approve a placed order.
|
|
1764
|
+
Send this attribute if you want to approve a placed order. Cannot be passed by sales channels.
|
|
1691
1765
|
|
|
1692
1766
|
```sh-session
|
|
1693
1767
|
USAGE
|
|
@@ -1702,14 +1776,14 @@ FLAGS
|
|
|
1702
1776
|
-u, --unformatted print JSON output without indentation
|
|
1703
1777
|
|
|
1704
1778
|
DESCRIPTION
|
|
1705
|
-
Send this attribute if you want to approve a placed order.
|
|
1779
|
+
Send this attribute if you want to approve a placed order. Cannot be passed by sales channels.
|
|
1706
1780
|
```
|
|
1707
1781
|
|
|
1708
1782
|
_See code: [src/commands/order/approve.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/order/approve.ts)_
|
|
1709
1783
|
|
|
1710
1784
|
### `commercelayer order:approve_and_capture ID`
|
|
1711
1785
|
|
|
1712
|
-
Send this attribute if you want to approve and capture a placed order.
|
|
1786
|
+
Send this attribute if you want to approve and capture a placed order. Cannot be passed by sales channels.
|
|
1713
1787
|
|
|
1714
1788
|
```sh-session
|
|
1715
1789
|
USAGE
|
|
@@ -1724,7 +1798,7 @@ FLAGS
|
|
|
1724
1798
|
-u, --unformatted print JSON output without indentation
|
|
1725
1799
|
|
|
1726
1800
|
DESCRIPTION
|
|
1727
|
-
Send this attribute if you want to approve and capture a placed order.
|
|
1801
|
+
Send this attribute if you want to approve and capture a placed order. Cannot be passed by sales channels.
|
|
1728
1802
|
```
|
|
1729
1803
|
|
|
1730
1804
|
_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 +1938,7 @@ _See code: [src/commands/order/cancel.ts](https://github.com/commercelayer/comme
|
|
|
1864
1938
|
|
|
1865
1939
|
### `commercelayer order:capture ID`
|
|
1866
1940
|
|
|
1867
|
-
Send this attribute if you want to capture an authorized order.
|
|
1941
|
+
Send this attribute if you want to capture an authorized order. Cannot be passed by sales channels.
|
|
1868
1942
|
|
|
1869
1943
|
```sh-session
|
|
1870
1944
|
USAGE
|
|
@@ -1879,7 +1953,7 @@ FLAGS
|
|
|
1879
1953
|
-u, --unformatted print JSON output without indentation
|
|
1880
1954
|
|
|
1881
1955
|
DESCRIPTION
|
|
1882
|
-
Send this attribute if you want to capture an authorized order.
|
|
1956
|
+
Send this attribute if you want to capture an authorized order. Cannot be passed by sales channels.
|
|
1883
1957
|
```
|
|
1884
1958
|
|
|
1885
1959
|
_See code: [src/commands/order/capture.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/order/capture.ts)_
|
|
@@ -1955,7 +2029,7 @@ _See code: [src/commands/order/customer_payment_source_id.ts](https://github.com
|
|
|
1955
2029
|
|
|
1956
2030
|
### `commercelayer order:fulfill ID`
|
|
1957
2031
|
|
|
1958
|
-
Send this attribute if you want to mark as fulfilled the order (shipments must be cancelled, shipped or delivered).
|
|
2032
|
+
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
2033
|
|
|
1960
2034
|
```sh-session
|
|
1961
2035
|
USAGE
|
|
@@ -1971,6 +2045,7 @@ FLAGS
|
|
|
1971
2045
|
|
|
1972
2046
|
DESCRIPTION
|
|
1973
2047
|
Send this attribute if you want to mark as fulfilled the order (shipments must be cancelled, shipped or delivered).
|
|
2048
|
+
Cannot be passed by sales channels.
|
|
1974
2049
|
```
|
|
1975
2050
|
|
|
1976
2051
|
_See code: [src/commands/order/fulfill.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/order/fulfill.ts)_
|
|
@@ -1999,7 +2074,7 @@ _See code: [src/commands/order/nullify_payment_source.ts](https://github.com/com
|
|
|
1999
2074
|
|
|
2000
2075
|
### `commercelayer order:pending ID`
|
|
2001
2076
|
|
|
2002
|
-
Send this attribute if you want to move a draft or placing order to pending.
|
|
2077
|
+
Send this attribute if you want to move a draft or placing order to pending. Cannot be passed by sales channels.
|
|
2003
2078
|
|
|
2004
2079
|
```sh-session
|
|
2005
2080
|
USAGE
|
|
@@ -2014,7 +2089,7 @@ FLAGS
|
|
|
2014
2089
|
-u, --unformatted print JSON output without indentation
|
|
2015
2090
|
|
|
2016
2091
|
DESCRIPTION
|
|
2017
|
-
Send this attribute if you want to move a draft or placing order to pending.
|
|
2092
|
+
Send this attribute if you want to move a draft or placing order to pending. Cannot be passed by sales channels.
|
|
2018
2093
|
```
|
|
2019
2094
|
|
|
2020
2095
|
_See code: [src/commands/order/pending.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/order/pending.ts)_
|
|
@@ -2065,7 +2140,7 @@ _See code: [src/commands/order/refresh.ts](https://github.com/commercelayer/comm
|
|
|
2065
2140
|
|
|
2066
2141
|
### `commercelayer order:refund ID`
|
|
2067
2142
|
|
|
2068
|
-
Send this attribute if you want to refund a captured order.
|
|
2143
|
+
Send this attribute if you want to refund a captured order. Cannot be passed by sales channels.
|
|
2069
2144
|
|
|
2070
2145
|
```sh-session
|
|
2071
2146
|
USAGE
|
|
@@ -2080,7 +2155,7 @@ FLAGS
|
|
|
2080
2155
|
-u, --unformatted print JSON output without indentation
|
|
2081
2156
|
|
|
2082
2157
|
DESCRIPTION
|
|
2083
|
-
Send this attribute if you want to refund a captured order.
|
|
2158
|
+
Send this attribute if you want to refund a captured order. Cannot be passed by sales channels.
|
|
2084
2159
|
```
|
|
2085
2160
|
|
|
2086
2161
|
_See code: [src/commands/order/refund.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/order/refund.ts)_
|
|
@@ -2110,7 +2185,7 @@ _See code: [src/commands/order/refund_invoice.ts](https://github.com/commercelay
|
|
|
2110
2185
|
|
|
2111
2186
|
### `commercelayer order:reset_circuit ID`
|
|
2112
2187
|
|
|
2113
|
-
Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count.
|
|
2188
|
+
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
2189
|
|
|
2115
2190
|
```sh-session
|
|
2116
2191
|
USAGE
|
|
@@ -2126,7 +2201,7 @@ FLAGS
|
|
|
2126
2201
|
|
|
2127
2202
|
DESCRIPTION
|
|
2128
2203
|
Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero
|
|
2129
|
-
failures count.
|
|
2204
|
+
failures count. Cannot be passed by sales channels.
|
|
2130
2205
|
```
|
|
2131
2206
|
|
|
2132
2207
|
_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 +2322,7 @@ _See code: [src/commands/order/shipping_address_same_as_billing.ts](https://gith
|
|
|
2247
2322
|
|
|
2248
2323
|
### `commercelayer order:start_editing ID`
|
|
2249
2324
|
|
|
2250
|
-
Send this attribute if you want to edit the order after it is placed. Remember you cannot exceed the original total amount.
|
|
2325
|
+
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
2326
|
|
|
2252
2327
|
```sh-session
|
|
2253
2328
|
USAGE
|
|
@@ -2263,14 +2338,14 @@ FLAGS
|
|
|
2263
2338
|
|
|
2264
2339
|
DESCRIPTION
|
|
2265
2340
|
Send this attribute if you want to edit the order after it is placed. Remember you cannot exceed the original total
|
|
2266
|
-
amount.
|
|
2341
|
+
amount. Cannot be passed by sales channels.
|
|
2267
2342
|
```
|
|
2268
2343
|
|
|
2269
2344
|
_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
2345
|
|
|
2271
2346
|
### `commercelayer order:stop_editing ID`
|
|
2272
2347
|
|
|
2273
|
-
Send this attribute to stop the editing for the order and return back to placed status.
|
|
2348
|
+
Send this attribute to stop the editing for the order and return back to placed status. Cannot be passed by sales channels.
|
|
2274
2349
|
|
|
2275
2350
|
```sh-session
|
|
2276
2351
|
USAGE
|
|
@@ -2285,7 +2360,8 @@ FLAGS
|
|
|
2285
2360
|
-u, --unformatted print JSON output without indentation
|
|
2286
2361
|
|
|
2287
2362
|
DESCRIPTION
|
|
2288
|
-
Send this attribute to stop the editing for the order and return back to placed status.
|
|
2363
|
+
Send this attribute to stop the editing for the order and return back to placed status. Cannot be passed by sales
|
|
2364
|
+
channels.
|
|
2289
2365
|
```
|
|
2290
2366
|
|
|
2291
2367
|
_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 +2742,51 @@ DESCRIPTION
|
|
|
2666
2742
|
|
|
2667
2743
|
_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
2744
|
|
|
2745
|
+
### `commercelayer refund ID`
|
|
2746
|
+
|
|
2747
|
+
Execute an action on a resource of type refunds.
|
|
2748
|
+
|
|
2749
|
+
```sh-session
|
|
2750
|
+
USAGE
|
|
2751
|
+
$ commercelayer refund ID [-u [-j -p]]
|
|
2752
|
+
|
|
2753
|
+
ARGUMENTS
|
|
2754
|
+
ID the unique id of the resource
|
|
2755
|
+
|
|
2756
|
+
FLAGS
|
|
2757
|
+
-j, --json print result in JSON format
|
|
2758
|
+
-p, --print print out the modified resource
|
|
2759
|
+
-u, --unformatted print JSON output without indentation
|
|
2760
|
+
|
|
2761
|
+
DESCRIPTION
|
|
2762
|
+
execute an action on a resource of type refunds
|
|
2763
|
+
```
|
|
2764
|
+
|
|
2765
|
+
_See code: [src/commands/refund/index.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/refund/index.ts)_
|
|
2766
|
+
|
|
2767
|
+
### `commercelayer refund:forward ID`
|
|
2768
|
+
|
|
2769
|
+
Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states accordingly.
|
|
2770
|
+
|
|
2771
|
+
```sh-session
|
|
2772
|
+
USAGE
|
|
2773
|
+
$ commercelayer refund:forward ID [-u [-j -p]]
|
|
2774
|
+
|
|
2775
|
+
ARGUMENTS
|
|
2776
|
+
ID the unique id of the resource
|
|
2777
|
+
|
|
2778
|
+
FLAGS
|
|
2779
|
+
-j, --json print result in JSON format
|
|
2780
|
+
-p, --print print out the modified resource
|
|
2781
|
+
-u, --unformatted print JSON output without indentation
|
|
2782
|
+
|
|
2783
|
+
DESCRIPTION
|
|
2784
|
+
Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states
|
|
2785
|
+
accordingly.
|
|
2786
|
+
```
|
|
2787
|
+
|
|
2788
|
+
_See code: [src/commands/refund/forward.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/refund/forward.ts)_
|
|
2789
|
+
|
|
2669
2790
|
### `commercelayer return ID`
|
|
2670
2791
|
|
|
2671
2792
|
Execute an action on a resource of type returns.
|
|
@@ -3042,7 +3163,7 @@ _See code: [src/commands/shipment/index.ts](https://github.com/commercelayer/com
|
|
|
3042
3163
|
|
|
3043
3164
|
### `commercelayer shipment:cancel ID`
|
|
3044
3165
|
|
|
3045
|
-
Send this attribute if you want to mark this shipment as cancelled (unless already shipped or delivered).
|
|
3166
|
+
Send this attribute if you want to mark this shipment as cancelled (unless already shipped or delivered). Cannot be passed by sales channels.
|
|
3046
3167
|
|
|
3047
3168
|
```sh-session
|
|
3048
3169
|
USAGE
|
|
@@ -3057,14 +3178,15 @@ FLAGS
|
|
|
3057
3178
|
-u, --unformatted print JSON output without indentation
|
|
3058
3179
|
|
|
3059
3180
|
DESCRIPTION
|
|
3060
|
-
Send this attribute if you want to mark this shipment as cancelled (unless already shipped or delivered).
|
|
3181
|
+
Send this attribute if you want to mark this shipment as cancelled (unless already shipped or delivered). Cannot be
|
|
3182
|
+
passed by sales channels.
|
|
3061
3183
|
```
|
|
3062
3184
|
|
|
3063
3185
|
_See code: [src/commands/shipment/cancel.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/shipment/cancel.ts)_
|
|
3064
3186
|
|
|
3065
3187
|
### `commercelayer shipment:decrement_stock ID`
|
|
3066
3188
|
|
|
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.
|
|
3189
|
+
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
3190
|
|
|
3069
3191
|
```sh-session
|
|
3070
3192
|
USAGE
|
|
@@ -3080,7 +3202,7 @@ FLAGS
|
|
|
3080
3202
|
|
|
3081
3203
|
DESCRIPTION
|
|
3082
3204
|
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.
|
|
3205
|
+
item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels.
|
|
3084
3206
|
```
|
|
3085
3207
|
|
|
3086
3208
|
_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 +3363,7 @@ _See code: [src/commands/shipment/ready_to_ship.ts](https://github.com/commercel
|
|
|
3241
3363
|
|
|
3242
3364
|
### `commercelayer shipment:release_stock ID`
|
|
3243
3365
|
|
|
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.
|
|
3366
|
+
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
3367
|
|
|
3246
3368
|
```sh-session
|
|
3247
3369
|
USAGE
|
|
@@ -3257,14 +3379,14 @@ FLAGS
|
|
|
3257
3379
|
|
|
3258
3380
|
DESCRIPTION
|
|
3259
3381
|
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.
|
|
3382
|
+
item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels.
|
|
3261
3383
|
```
|
|
3262
3384
|
|
|
3263
3385
|
_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
3386
|
|
|
3265
3387
|
### `commercelayer shipment:reserve_stock ID`
|
|
3266
3388
|
|
|
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.
|
|
3389
|
+
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
3390
|
|
|
3269
3391
|
```sh-session
|
|
3270
3392
|
USAGE
|
|
@@ -3280,7 +3402,7 @@ FLAGS
|
|
|
3280
3402
|
|
|
3281
3403
|
DESCRIPTION
|
|
3282
3404
|
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.
|
|
3405
|
+
done only when fulfillment is in progress. Cannot be passed by sales channels.
|
|
3284
3406
|
```
|
|
3285
3407
|
|
|
3286
3408
|
_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 +3431,7 @@ _See code: [src/commands/shipment/ship.ts](https://github.com/commercelayer/comm
|
|
|
3309
3431
|
|
|
3310
3432
|
### `commercelayer shipment:upcoming ID`
|
|
3311
3433
|
|
|
3312
|
-
Send this attribute if you want to mark this shipment as upcoming.
|
|
3434
|
+
Send this attribute if you want to mark this shipment as upcoming. Cannot be passed by sales channels.
|
|
3313
3435
|
|
|
3314
3436
|
```sh-session
|
|
3315
3437
|
USAGE
|
|
@@ -3324,7 +3446,7 @@ FLAGS
|
|
|
3324
3446
|
-u, --unformatted print JSON output without indentation
|
|
3325
3447
|
|
|
3326
3448
|
DESCRIPTION
|
|
3327
|
-
Send this attribute if you want to mark this shipment as upcoming.
|
|
3449
|
+
Send this attribute if you want to mark this shipment as upcoming. Cannot be passed by sales channels.
|
|
3328
3450
|
```
|
|
3329
3451
|
|
|
3330
3452
|
_See code: [src/commands/shipment/upcoming.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/shipment/upcoming.ts)_
|
|
@@ -3397,7 +3519,7 @@ _See code: [src/commands/shipping_method/enable.ts](https://github.com/commercel
|
|
|
3397
3519
|
|
|
3398
3520
|
### `commercelayer shipping_method:reset_circuit ID`
|
|
3399
3521
|
|
|
3400
|
-
Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count.
|
|
3522
|
+
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
3523
|
|
|
3402
3524
|
```sh-session
|
|
3403
3525
|
USAGE
|
|
@@ -3413,7 +3535,7 @@ FLAGS
|
|
|
3413
3535
|
|
|
3414
3536
|
DESCRIPTION
|
|
3415
3537
|
Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero
|
|
3416
|
-
failures count.
|
|
3538
|
+
failures count. Cannot be passed by sales channels.
|
|
3417
3539
|
```
|
|
3418
3540
|
|
|
3419
3541
|
_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 +3564,7 @@ _See code: [src/commands/stock_item/index.ts](https://github.com/commercelayer/c
|
|
|
3442
3564
|
|
|
3443
3565
|
### `commercelayer stock_item:validate ID`
|
|
3444
3566
|
|
|
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.
|
|
3567
|
+
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
3568
|
|
|
3447
3569
|
```sh-session
|
|
3448
3570
|
USAGE
|
|
@@ -3458,7 +3580,7 @@ FLAGS
|
|
|
3458
3580
|
|
|
3459
3581
|
DESCRIPTION
|
|
3460
3582
|
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.
|
|
3583
|
+
an error in case the former is smaller. Cannot be passed by sales channels.
|
|
3462
3584
|
```
|
|
3463
3585
|
|
|
3464
3586
|
_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 +3609,7 @@ _See code: [src/commands/stock_line_item/index.ts](https://github.com/commercela
|
|
|
3487
3609
|
|
|
3488
3610
|
### `commercelayer stock_line_item:decrement_stock ID`
|
|
3489
3611
|
|
|
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.
|
|
3612
|
+
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
3613
|
|
|
3492
3614
|
```sh-session
|
|
3493
3615
|
USAGE
|
|
@@ -3503,14 +3625,14 @@ FLAGS
|
|
|
3503
3625
|
|
|
3504
3626
|
DESCRIPTION
|
|
3505
3627
|
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.
|
|
3628
|
+
only when fulfillment is in progress. Cannot be passed by sales channels.
|
|
3507
3629
|
```
|
|
3508
3630
|
|
|
3509
3631
|
_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
3632
|
|
|
3511
3633
|
### `commercelayer stock_line_item:release_stock ID`
|
|
3512
3634
|
|
|
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.
|
|
3635
|
+
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
3636
|
|
|
3515
3637
|
```sh-session
|
|
3516
3638
|
USAGE
|
|
@@ -3526,14 +3648,14 @@ FLAGS
|
|
|
3526
3648
|
|
|
3527
3649
|
DESCRIPTION
|
|
3528
3650
|
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.
|
|
3651
|
+
only when fulfillment is in progress. Cannot be passed by sales channels.
|
|
3530
3652
|
```
|
|
3531
3653
|
|
|
3532
3654
|
_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
3655
|
|
|
3534
3656
|
### `commercelayer stock_line_item:reserve_stock ID`
|
|
3535
3657
|
|
|
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.
|
|
3658
|
+
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
3659
|
|
|
3538
3660
|
```sh-session
|
|
3539
3661
|
USAGE
|
|
@@ -3549,7 +3671,7 @@ FLAGS
|
|
|
3549
3671
|
|
|
3550
3672
|
DESCRIPTION
|
|
3551
3673
|
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.
|
|
3674
|
+
fulfillment is in progress. Cannot be passed by sales channels.
|
|
3553
3675
|
```
|
|
3554
3676
|
|
|
3555
3677
|
_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 +3940,51 @@ DESCRIPTION
|
|
|
3818
3940
|
|
|
3819
3941
|
_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
3942
|
|
|
3943
|
+
### `commercelayer void ID`
|
|
3944
|
+
|
|
3945
|
+
Execute an action on a resource of type voids.
|
|
3946
|
+
|
|
3947
|
+
```sh-session
|
|
3948
|
+
USAGE
|
|
3949
|
+
$ commercelayer void ID [-u [-j -p]]
|
|
3950
|
+
|
|
3951
|
+
ARGUMENTS
|
|
3952
|
+
ID the unique id of the resource
|
|
3953
|
+
|
|
3954
|
+
FLAGS
|
|
3955
|
+
-j, --json print result in JSON format
|
|
3956
|
+
-p, --print print out the modified resource
|
|
3957
|
+
-u, --unformatted print JSON output without indentation
|
|
3958
|
+
|
|
3959
|
+
DESCRIPTION
|
|
3960
|
+
execute an action on a resource of type voids
|
|
3961
|
+
```
|
|
3962
|
+
|
|
3963
|
+
_See code: [src/commands/void/index.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/void/index.ts)_
|
|
3964
|
+
|
|
3965
|
+
### `commercelayer void:forward ID`
|
|
3966
|
+
|
|
3967
|
+
Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states accordingly.
|
|
3968
|
+
|
|
3969
|
+
```sh-session
|
|
3970
|
+
USAGE
|
|
3971
|
+
$ commercelayer void:forward ID [-u [-j -p]]
|
|
3972
|
+
|
|
3973
|
+
ARGUMENTS
|
|
3974
|
+
ID the unique id of the resource
|
|
3975
|
+
|
|
3976
|
+
FLAGS
|
|
3977
|
+
-j, --json print result in JSON format
|
|
3978
|
+
-p, --print print out the modified resource
|
|
3979
|
+
-u, --unformatted print JSON output without indentation
|
|
3980
|
+
|
|
3981
|
+
DESCRIPTION
|
|
3982
|
+
Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states
|
|
3983
|
+
accordingly.
|
|
3984
|
+
```
|
|
3985
|
+
|
|
3986
|
+
_See code: [src/commands/void/forward.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/void/forward.ts)_
|
|
3987
|
+
|
|
3821
3988
|
### `commercelayer webhook ID`
|
|
3822
3989
|
|
|
3823
3990
|
Execute an action on a resource of type webhooks.
|
|
@@ -3886,7 +4053,7 @@ _See code: [src/commands/webhook/enable.ts](https://github.com/commercelayer/com
|
|
|
3886
4053
|
|
|
3887
4054
|
### `commercelayer webhook:reset_circuit ID`
|
|
3888
4055
|
|
|
3889
|
-
Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count.
|
|
4056
|
+
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
4057
|
|
|
3891
4058
|
```sh-session
|
|
3892
4059
|
USAGE
|
|
@@ -3902,7 +4069,7 @@ FLAGS
|
|
|
3902
4069
|
|
|
3903
4070
|
DESCRIPTION
|
|
3904
4071
|
Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero
|
|
3905
|
-
failures count.
|
|
4072
|
+
failures count. Cannot be passed by sales channels.
|
|
3906
4073
|
```
|
|
3907
4074
|
|
|
3908
4075
|
_See code: [src/commands/webhook/reset_circuit.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/webhook/reset_circuit.ts)_
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import Command from '../../base';
|
|
2
|
+
export default class FlexPromotionDisable extends Command {
|
|
3
|
+
static description: string;
|
|
4
|
+
static flags: {};
|
|
5
|
+
static args: {
|
|
6
|
+
id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
|
+
};
|
|
8
|
+
run(): Promise<any>;
|
|
9
|
+
}
|