@commercelayer/cli-plugin-triggers 3.15.0 → 4.0.0-oclif3.10

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 (341) hide show
  1. package/README.md +446 -45
  2. package/bin/run.js +6 -0
  3. package/lib/base.d.ts +5 -5
  4. package/lib/base.js +41 -41
  5. package/lib/commands/adyen_payment/details.d.ts +1 -1
  6. package/lib/commands/adyen_payment/details.js +5 -3
  7. package/lib/commands/adyen_payment/index.d.ts +1 -1
  8. package/lib/commands/adyen_payment/index.js +5 -3
  9. package/lib/commands/authorization/capture.d.ts +1 -1
  10. package/lib/commands/authorization/capture.js +5 -3
  11. package/lib/commands/authorization/capture_amount_cents.d.ts +1 -1
  12. package/lib/commands/authorization/capture_amount_cents.js +5 -3
  13. package/lib/commands/authorization/index.d.ts +1 -1
  14. package/lib/commands/authorization/index.js +5 -3
  15. package/lib/commands/authorization/void.d.ts +1 -1
  16. package/lib/commands/authorization/void.js +5 -3
  17. package/lib/commands/axerve_payment/index.d.ts +1 -1
  18. package/lib/commands/axerve_payment/index.js +5 -3
  19. package/lib/commands/axerve_payment/update.d.ts +1 -1
  20. package/lib/commands/axerve_payment/update.js +5 -3
  21. package/lib/commands/bundle/compute_compare_at_amount.d.ts +1 -1
  22. package/lib/commands/bundle/compute_compare_at_amount.js +5 -3
  23. package/lib/commands/bundle/compute_price_amount.d.ts +1 -1
  24. package/lib/commands/bundle/compute_price_amount.js +5 -3
  25. package/lib/commands/bundle/index.d.ts +1 -1
  26. package/lib/commands/bundle/index.js +5 -3
  27. package/lib/commands/buy_x_pay_y_promotion/disable.d.ts +1 -1
  28. package/lib/commands/buy_x_pay_y_promotion/disable.js +5 -3
  29. package/lib/commands/buy_x_pay_y_promotion/enable.d.ts +1 -1
  30. package/lib/commands/buy_x_pay_y_promotion/enable.js +5 -3
  31. package/lib/commands/buy_x_pay_y_promotion/index.d.ts +1 -1
  32. package/lib/commands/buy_x_pay_y_promotion/index.js +5 -3
  33. package/lib/commands/capture/index.d.ts +1 -1
  34. package/lib/commands/capture/index.js +5 -3
  35. package/lib/commands/capture/refund.d.ts +1 -1
  36. package/lib/commands/capture/refund.js +5 -3
  37. package/lib/commands/capture/refund_amount_cents.d.ts +1 -1
  38. package/lib/commands/capture/refund_amount_cents.js +5 -3
  39. package/lib/commands/checkout_com_payment/details.d.ts +1 -1
  40. package/lib/commands/checkout_com_payment/details.js +5 -3
  41. package/lib/commands/checkout_com_payment/index.d.ts +1 -1
  42. package/lib/commands/checkout_com_payment/index.js +5 -3
  43. package/lib/commands/checkout_com_payment/refresh.d.ts +1 -1
  44. package/lib/commands/checkout_com_payment/refresh.js +5 -3
  45. package/lib/commands/customer_password_reset/index.d.ts +1 -1
  46. package/lib/commands/customer_password_reset/index.js +5 -3
  47. package/lib/commands/customer_password_reset/reset_password_token.d.ts +1 -1
  48. package/lib/commands/customer_password_reset/reset_password_token.js +5 -3
  49. package/lib/commands/external_gateway/index.d.ts +9 -0
  50. package/lib/commands/external_gateway/index.js +40 -0
  51. package/lib/commands/external_gateway/reset_circuit.d.ts +9 -0
  52. package/lib/commands/external_gateway/reset_circuit.js +22 -0
  53. package/lib/commands/external_promotion/disable.d.ts +1 -1
  54. package/lib/commands/external_promotion/disable.js +5 -3
  55. package/lib/commands/external_promotion/enable.d.ts +1 -1
  56. package/lib/commands/external_promotion/enable.js +5 -3
  57. package/lib/commands/external_promotion/index.d.ts +1 -1
  58. package/lib/commands/external_promotion/index.js +5 -3
  59. package/lib/commands/external_promotion/reset_circuit.d.ts +9 -0
  60. package/lib/commands/external_promotion/reset_circuit.js +22 -0
  61. package/lib/commands/external_tax_calculator/index.d.ts +9 -0
  62. package/lib/commands/external_tax_calculator/index.js +40 -0
  63. package/lib/commands/external_tax_calculator/reset_circuit.d.ts +9 -0
  64. package/lib/commands/external_tax_calculator/reset_circuit.js +22 -0
  65. package/lib/commands/fixed_amount_promotion/disable.d.ts +1 -1
  66. package/lib/commands/fixed_amount_promotion/disable.js +5 -3
  67. package/lib/commands/fixed_amount_promotion/enable.d.ts +1 -1
  68. package/lib/commands/fixed_amount_promotion/enable.js +5 -3
  69. package/lib/commands/fixed_amount_promotion/index.d.ts +1 -1
  70. package/lib/commands/fixed_amount_promotion/index.js +5 -3
  71. package/lib/commands/fixed_price_promotion/disable.d.ts +1 -1
  72. package/lib/commands/fixed_price_promotion/disable.js +5 -3
  73. package/lib/commands/fixed_price_promotion/enable.d.ts +1 -1
  74. package/lib/commands/fixed_price_promotion/enable.js +5 -3
  75. package/lib/commands/fixed_price_promotion/index.d.ts +1 -1
  76. package/lib/commands/fixed_price_promotion/index.js +5 -3
  77. package/lib/commands/free_gift_promotion/disable.d.ts +1 -1
  78. package/lib/commands/free_gift_promotion/disable.js +5 -3
  79. package/lib/commands/free_gift_promotion/enable.d.ts +1 -1
  80. package/lib/commands/free_gift_promotion/enable.js +5 -3
  81. package/lib/commands/free_gift_promotion/index.d.ts +1 -1
  82. package/lib/commands/free_gift_promotion/index.js +5 -3
  83. package/lib/commands/free_shipping_promotion/disable.d.ts +1 -1
  84. package/lib/commands/free_shipping_promotion/disable.js +5 -3
  85. package/lib/commands/free_shipping_promotion/enable.d.ts +1 -1
  86. package/lib/commands/free_shipping_promotion/enable.js +5 -3
  87. package/lib/commands/free_shipping_promotion/index.d.ts +1 -1
  88. package/lib/commands/free_shipping_promotion/index.js +5 -3
  89. package/lib/commands/gift_card/activate.d.ts +1 -1
  90. package/lib/commands/gift_card/activate.js +5 -3
  91. package/lib/commands/gift_card/balance_change_cents.d.ts +1 -1
  92. package/lib/commands/gift_card/balance_change_cents.js +5 -3
  93. package/lib/commands/gift_card/deactivate.d.ts +1 -1
  94. package/lib/commands/gift_card/deactivate.js +5 -3
  95. package/lib/commands/gift_card/index.d.ts +1 -1
  96. package/lib/commands/gift_card/index.js +5 -3
  97. package/lib/commands/gift_card/purchase.d.ts +1 -1
  98. package/lib/commands/gift_card/purchase.js +5 -3
  99. package/lib/commands/in_stock_subscription/activate.d.ts +1 -1
  100. package/lib/commands/in_stock_subscription/activate.js +5 -3
  101. package/lib/commands/in_stock_subscription/deactivate.d.ts +1 -1
  102. package/lib/commands/in_stock_subscription/deactivate.js +5 -3
  103. package/lib/commands/in_stock_subscription/index.d.ts +1 -1
  104. package/lib/commands/in_stock_subscription/index.js +5 -3
  105. package/lib/commands/klarna_payment/index.d.ts +1 -1
  106. package/lib/commands/klarna_payment/index.js +5 -3
  107. package/lib/commands/klarna_payment/update.d.ts +1 -1
  108. package/lib/commands/klarna_payment/update.js +5 -3
  109. package/lib/commands/line_item/external_price.d.ts +1 -1
  110. package/lib/commands/line_item/external_price.js +5 -3
  111. package/lib/commands/line_item/index.d.ts +1 -1
  112. package/lib/commands/line_item/index.js +5 -3
  113. package/lib/commands/line_item/reserve_stock.d.ts +1 -1
  114. package/lib/commands/line_item/reserve_stock.js +5 -3
  115. package/lib/commands/line_item/reset_circuit.d.ts +9 -0
  116. package/lib/commands/line_item/reset_circuit.js +22 -0
  117. package/lib/commands/market/disable.d.ts +1 -1
  118. package/lib/commands/market/disable.js +5 -3
  119. package/lib/commands/market/enable.d.ts +1 -1
  120. package/lib/commands/market/enable.js +5 -3
  121. package/lib/commands/market/index.d.ts +1 -1
  122. package/lib/commands/market/index.js +5 -3
  123. package/lib/commands/noc.js +2 -2
  124. package/lib/commands/order/approve.d.ts +1 -1
  125. package/lib/commands/order/approve.js +5 -3
  126. package/lib/commands/order/approve_and_capture.d.ts +1 -1
  127. package/lib/commands/order/approve_and_capture.js +5 -3
  128. package/lib/commands/order/archive.d.ts +1 -1
  129. package/lib/commands/order/archive.js +5 -3
  130. package/lib/commands/order/authorization_amount_cents.d.ts +1 -1
  131. package/lib/commands/order/authorization_amount_cents.js +5 -3
  132. package/lib/commands/order/authorize.d.ts +1 -1
  133. package/lib/commands/order/authorize.js +5 -3
  134. package/lib/commands/order/billing_address_clone_id.d.ts +2 -2
  135. package/lib/commands/order/billing_address_clone_id.js +12 -10
  136. package/lib/commands/order/billing_address_same_as_shipping.d.ts +1 -1
  137. package/lib/commands/order/billing_address_same_as_shipping.js +5 -3
  138. package/lib/commands/order/cancel.d.ts +1 -1
  139. package/lib/commands/order/cancel.js +5 -3
  140. package/lib/commands/order/capture.d.ts +1 -1
  141. package/lib/commands/order/capture.js +5 -3
  142. package/lib/commands/order/commit_invoice.d.ts +1 -1
  143. package/lib/commands/order/commit_invoice.js +5 -3
  144. package/lib/commands/order/create_subscriptions.d.ts +1 -1
  145. package/lib/commands/order/create_subscriptions.js +5 -3
  146. package/lib/commands/order/customer_payment_source_id.d.ts +2 -2
  147. package/lib/commands/order/customer_payment_source_id.js +12 -10
  148. package/lib/commands/order/index.d.ts +1 -1
  149. package/lib/commands/order/index.js +5 -3
  150. package/lib/commands/order/nullify_payment_source.d.ts +1 -1
  151. package/lib/commands/order/nullify_payment_source.js +5 -3
  152. package/lib/commands/order/pending.d.ts +9 -0
  153. package/lib/commands/order/pending.js +22 -0
  154. package/lib/commands/order/place.d.ts +1 -1
  155. package/lib/commands/order/place.js +5 -3
  156. package/lib/commands/order/refresh.d.ts +1 -1
  157. package/lib/commands/order/refresh.js +5 -3
  158. package/lib/commands/order/refund.d.ts +1 -1
  159. package/lib/commands/order/refund.js +5 -3
  160. package/lib/commands/order/refund_invoice.d.ts +1 -1
  161. package/lib/commands/order/refund_invoice.js +5 -3
  162. package/lib/commands/order/reset_circuit.d.ts +9 -0
  163. package/lib/commands/order/reset_circuit.js +22 -0
  164. package/lib/commands/order/save_billing_address_to_customer_address_book.d.ts +1 -1
  165. package/lib/commands/order/save_billing_address_to_customer_address_book.js +5 -3
  166. package/lib/commands/order/save_payment_source_to_customer_wallet.d.ts +1 -1
  167. package/lib/commands/order/save_payment_source_to_customer_wallet.js +5 -3
  168. package/lib/commands/order/save_shipping_address_to_customer_address_book.d.ts +1 -1
  169. package/lib/commands/order/save_shipping_address_to_customer_address_book.js +5 -3
  170. package/lib/commands/order/shipping_address_clone_id.d.ts +2 -2
  171. package/lib/commands/order/shipping_address_clone_id.js +12 -10
  172. package/lib/commands/order/shipping_address_same_as_billing.d.ts +1 -1
  173. package/lib/commands/order/shipping_address_same_as_billing.js +5 -3
  174. package/lib/commands/order/start_editing.d.ts +1 -1
  175. package/lib/commands/order/start_editing.js +5 -3
  176. package/lib/commands/order/stop_editing.d.ts +1 -1
  177. package/lib/commands/order/stop_editing.js +5 -3
  178. package/lib/commands/order/unarchive.d.ts +1 -1
  179. package/lib/commands/order/unarchive.js +5 -3
  180. package/lib/commands/order/update_taxes.d.ts +1 -1
  181. package/lib/commands/order/update_taxes.js +5 -3
  182. package/lib/commands/order/validate.d.ts +1 -1
  183. package/lib/commands/order/validate.js +5 -3
  184. package/lib/commands/order_subscription/activate.d.ts +1 -1
  185. package/lib/commands/order_subscription/activate.js +5 -3
  186. package/lib/commands/order_subscription/cancel.d.ts +1 -1
  187. package/lib/commands/order_subscription/cancel.js +5 -3
  188. package/lib/commands/order_subscription/deactivate.d.ts +1 -1
  189. package/lib/commands/order_subscription/deactivate.js +5 -3
  190. package/lib/commands/order_subscription/index.d.ts +1 -1
  191. package/lib/commands/order_subscription/index.js +5 -3
  192. package/lib/commands/payment_method/disable.d.ts +1 -1
  193. package/lib/commands/payment_method/disable.js +5 -3
  194. package/lib/commands/payment_method/enable.d.ts +1 -1
  195. package/lib/commands/payment_method/enable.js +5 -3
  196. package/lib/commands/payment_method/index.d.ts +1 -1
  197. package/lib/commands/payment_method/index.js +5 -3
  198. package/lib/commands/percentage_discount_promotion/disable.d.ts +1 -1
  199. package/lib/commands/percentage_discount_promotion/disable.js +5 -3
  200. package/lib/commands/percentage_discount_promotion/enable.d.ts +1 -1
  201. package/lib/commands/percentage_discount_promotion/enable.js +5 -3
  202. package/lib/commands/percentage_discount_promotion/index.d.ts +1 -1
  203. package/lib/commands/percentage_discount_promotion/index.js +5 -3
  204. package/lib/commands/return/approve.d.ts +1 -1
  205. package/lib/commands/return/approve.js +5 -3
  206. package/lib/commands/return/archive.d.ts +1 -1
  207. package/lib/commands/return/archive.js +5 -3
  208. package/lib/commands/return/cancel.d.ts +1 -1
  209. package/lib/commands/return/cancel.js +5 -3
  210. package/lib/commands/return/index.d.ts +1 -1
  211. package/lib/commands/return/index.js +5 -3
  212. package/lib/commands/return/receive.d.ts +1 -1
  213. package/lib/commands/return/receive.js +5 -3
  214. package/lib/commands/return/reject.d.ts +1 -1
  215. package/lib/commands/return/reject.js +5 -3
  216. package/lib/commands/return/request.d.ts +1 -1
  217. package/lib/commands/return/request.js +5 -3
  218. package/lib/commands/return/restock.d.ts +1 -1
  219. package/lib/commands/return/restock.js +5 -3
  220. package/lib/commands/return/ship.d.ts +1 -1
  221. package/lib/commands/return/ship.js +5 -3
  222. package/lib/commands/return/unarchive.d.ts +1 -1
  223. package/lib/commands/return/unarchive.js +5 -3
  224. package/lib/commands/return_line_item/index.d.ts +1 -1
  225. package/lib/commands/return_line_item/index.js +5 -3
  226. package/lib/commands/return_line_item/restock.d.ts +1 -1
  227. package/lib/commands/return_line_item/restock.js +5 -3
  228. package/lib/commands/satispay_payment/index.d.ts +1 -1
  229. package/lib/commands/satispay_payment/index.js +5 -3
  230. package/lib/commands/satispay_payment/refresh.d.ts +1 -1
  231. package/lib/commands/satispay_payment/refresh.js +5 -3
  232. package/lib/commands/shipment/decrement_stock.d.ts +1 -1
  233. package/lib/commands/shipment/decrement_stock.js +5 -3
  234. package/lib/commands/shipment/get_rates.d.ts +1 -1
  235. package/lib/commands/shipment/get_rates.js +5 -3
  236. package/lib/commands/shipment/index.d.ts +1 -1
  237. package/lib/commands/shipment/index.js +5 -3
  238. package/lib/commands/shipment/on_hold.d.ts +1 -1
  239. package/lib/commands/shipment/on_hold.js +5 -3
  240. package/lib/commands/shipment/packing.d.ts +1 -1
  241. package/lib/commands/shipment/packing.js +5 -3
  242. package/lib/commands/shipment/picking.d.ts +1 -1
  243. package/lib/commands/shipment/picking.js +5 -3
  244. package/lib/commands/shipment/purchase.d.ts +1 -1
  245. package/lib/commands/shipment/purchase.js +5 -3
  246. package/lib/commands/shipment/ready_to_ship.d.ts +1 -1
  247. package/lib/commands/shipment/ready_to_ship.js +5 -3
  248. package/lib/commands/shipment/release_stock.d.ts +1 -1
  249. package/lib/commands/shipment/release_stock.js +5 -3
  250. package/lib/commands/shipment/reserve_stock.d.ts +1 -1
  251. package/lib/commands/shipment/reserve_stock.js +5 -3
  252. package/lib/commands/shipment/ship.d.ts +1 -1
  253. package/lib/commands/shipment/ship.js +5 -3
  254. package/lib/commands/shipment/upcoming.d.ts +1 -1
  255. package/lib/commands/shipment/upcoming.js +5 -3
  256. package/lib/commands/shipping_method/disable.d.ts +1 -1
  257. package/lib/commands/shipping_method/disable.js +5 -3
  258. package/lib/commands/shipping_method/enable.d.ts +1 -1
  259. package/lib/commands/shipping_method/enable.js +5 -3
  260. package/lib/commands/shipping_method/index.d.ts +1 -1
  261. package/lib/commands/shipping_method/index.js +5 -3
  262. package/lib/commands/shipping_method/reset_circuit.d.ts +9 -0
  263. package/lib/commands/shipping_method/reset_circuit.js +22 -0
  264. package/lib/commands/stock_item/index.d.ts +9 -0
  265. package/lib/commands/stock_item/index.js +40 -0
  266. package/lib/commands/stock_item/validate.d.ts +9 -0
  267. package/lib/commands/stock_item/validate.js +22 -0
  268. package/lib/commands/stock_line_item/decrement_stock.d.ts +9 -0
  269. package/lib/commands/stock_line_item/decrement_stock.js +22 -0
  270. package/lib/commands/stock_line_item/index.d.ts +9 -0
  271. package/lib/commands/stock_line_item/index.js +40 -0
  272. package/lib/commands/stock_line_item/release_stock.d.ts +9 -0
  273. package/lib/commands/stock_line_item/release_stock.js +22 -0
  274. package/lib/commands/stock_line_item/reserve_stock.d.ts +9 -0
  275. package/lib/commands/stock_line_item/reserve_stock.js +22 -0
  276. package/lib/commands/stock_reservation/index.d.ts +1 -1
  277. package/lib/commands/stock_reservation/index.js +5 -3
  278. package/lib/commands/stock_reservation/pending.d.ts +1 -1
  279. package/lib/commands/stock_reservation/pending.js +5 -3
  280. package/lib/commands/stock_transfer/cancel.d.ts +1 -1
  281. package/lib/commands/stock_transfer/cancel.js +5 -3
  282. package/lib/commands/stock_transfer/complete.d.ts +1 -1
  283. package/lib/commands/stock_transfer/complete.js +5 -3
  284. package/lib/commands/stock_transfer/in_transit.d.ts +1 -1
  285. package/lib/commands/stock_transfer/in_transit.js +5 -3
  286. package/lib/commands/stock_transfer/index.d.ts +1 -1
  287. package/lib/commands/stock_transfer/index.js +5 -3
  288. package/lib/commands/stock_transfer/on_hold.d.ts +1 -1
  289. package/lib/commands/stock_transfer/on_hold.js +5 -3
  290. package/lib/commands/stock_transfer/picking.d.ts +1 -1
  291. package/lib/commands/stock_transfer/picking.js +5 -3
  292. package/lib/commands/stock_transfer/upcoming.d.ts +1 -1
  293. package/lib/commands/stock_transfer/upcoming.js +5 -3
  294. package/lib/commands/stripe_payment/index.d.ts +1 -1
  295. package/lib/commands/stripe_payment/index.js +5 -3
  296. package/lib/commands/stripe_payment/refresh.d.ts +1 -1
  297. package/lib/commands/stripe_payment/refresh.js +5 -3
  298. package/lib/commands/stripe_payment/update.d.ts +1 -1
  299. package/lib/commands/stripe_payment/update.js +5 -3
  300. package/lib/commands/webhook/disable.d.ts +9 -0
  301. package/lib/commands/webhook/disable.js +22 -0
  302. package/lib/commands/webhook/enable.d.ts +9 -0
  303. package/lib/commands/webhook/enable.js +22 -0
  304. package/lib/commands/webhook/index.d.ts +1 -1
  305. package/lib/commands/webhook/index.js +5 -3
  306. package/lib/commands/webhook/reset_circuit.d.ts +1 -1
  307. package/lib/commands/webhook/reset_circuit.js +5 -3
  308. package/lib/exec.d.ts +2 -1
  309. package/lib/exec.js +0 -1
  310. package/lib/triggers/buy_x_pay_y_promotions.js +2 -2
  311. package/lib/triggers/external_gateways.d.ts +3 -0
  312. package/lib/triggers/external_gateways.js +10 -0
  313. package/lib/triggers/external_promotions.d.ts +1 -1
  314. package/lib/triggers/external_promotions.js +7 -2
  315. package/lib/triggers/external_tax_calculators.d.ts +3 -0
  316. package/lib/triggers/external_tax_calculators.js +10 -0
  317. package/lib/triggers/fixed_amount_promotions.js +2 -2
  318. package/lib/triggers/fixed_price_promotions.js +2 -2
  319. package/lib/triggers/free_gift_promotions.js +2 -2
  320. package/lib/triggers/free_shipping_promotions.js +2 -2
  321. package/lib/triggers/line_items.d.ts +1 -1
  322. package/lib/triggers/line_items.js +5 -0
  323. package/lib/triggers/markets.js +2 -2
  324. package/lib/triggers/orders.d.ts +1 -1
  325. package/lib/triggers/orders.js +10 -0
  326. package/lib/triggers/payment_methods.js +2 -2
  327. package/lib/triggers/percentage_discount_promotions.js +2 -2
  328. package/lib/triggers/shipments.js +1 -1
  329. package/lib/triggers/shipping_methods.d.ts +1 -1
  330. package/lib/triggers/shipping_methods.js +7 -2
  331. package/lib/triggers/stock_items.d.ts +3 -0
  332. package/lib/triggers/stock_items.js +10 -0
  333. package/lib/triggers/stock_line_items.d.ts +3 -0
  334. package/lib/triggers/stock_line_items.js +20 -0
  335. package/lib/triggers/webhooks.d.ts +1 -1
  336. package/lib/triggers/webhooks.js +11 -1
  337. package/oclif.manifest.json +2203 -572
  338. package/package.json +38 -32
  339. package/bin/dev +0 -18
  340. package/bin/dev.cmd +0 -3
  341. package/bin/run +0 -5
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
5
5
  const orders_1 = require("../../triggers/orders");
6
6
  const TRIGGER = 'refresh';
7
7
  class OrderRefresh extends base_1.default {
8
+ static description = orders_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
8
13
  async run() {
9
14
  const { args, flags } = await this.parse(OrderRefresh);
10
15
  const res = await this.executeAction('orders', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class OrderRefresh extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- OrderRefresh.description = orders_1.triggers[TRIGGER].description;
18
- OrderRefresh.flags = {};
19
- OrderRefresh.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = OrderRefresh;
@@ -3,7 +3,7 @@ export default class OrderRefund extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
5
5
  const orders_1 = require("../../triggers/orders");
6
6
  const TRIGGER = 'refund';
7
7
  class OrderRefund extends base_1.default {
8
+ static description = orders_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
8
13
  async run() {
9
14
  const { args, flags } = await this.parse(OrderRefund);
10
15
  const res = await this.executeAction('orders', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class OrderRefund extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- OrderRefund.description = orders_1.triggers[TRIGGER].description;
18
- OrderRefund.flags = {};
19
- OrderRefund.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = OrderRefund;
@@ -3,7 +3,7 @@ export default class OrderRefundInvoice extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
5
5
  const orders_1 = require("../../triggers/orders");
6
6
  const TRIGGER = 'refund_invoice';
7
7
  class OrderRefundInvoice extends base_1.default {
8
+ static description = orders_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
8
13
  async run() {
9
14
  const { args, flags } = await this.parse(OrderRefundInvoice);
10
15
  const res = await this.executeAction('orders', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class OrderRefundInvoice extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- OrderRefundInvoice.description = orders_1.triggers[TRIGGER].description;
18
- OrderRefundInvoice.flags = {};
19
- OrderRefundInvoice.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = OrderRefundInvoice;
@@ -0,0 +1,9 @@
1
+ import Command from '../../base';
2
+ export default class OrderResetCircuit 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
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const base_1 = tslib_1.__importDefault(require("../../base"));
5
+ const orders_1 = require("../../triggers/orders");
6
+ const TRIGGER = 'reset_circuit';
7
+ class OrderResetCircuit extends base_1.default {
8
+ static description = orders_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
13
+ async run() {
14
+ const { args, flags } = await this.parse(OrderResetCircuit);
15
+ const res = await this.executeAction('orders', args.id, TRIGGER, flags);
16
+ if (flags.print)
17
+ this.printOutput(res, flags);
18
+ this.successMessage('order', TRIGGER, res.id);
19
+ return res;
20
+ }
21
+ }
22
+ exports.default = OrderResetCircuit;
@@ -3,7 +3,7 @@ export default class OrderSaveBillingAddressToCustomerAddressBook extends Comman
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
5
5
  const orders_1 = require("../../triggers/orders");
6
6
  const TRIGGER = 'save_billing_address_to_customer_address_book';
7
7
  class OrderSaveBillingAddressToCustomerAddressBook extends base_1.default {
8
+ static description = orders_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
8
13
  async run() {
9
14
  const { args, flags } = await this.parse(OrderSaveBillingAddressToCustomerAddressBook);
10
15
  const res = await this.executeAction('orders', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class OrderSaveBillingAddressToCustomerAddressBook extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- OrderSaveBillingAddressToCustomerAddressBook.description = orders_1.triggers[TRIGGER].description;
18
- OrderSaveBillingAddressToCustomerAddressBook.flags = {};
19
- OrderSaveBillingAddressToCustomerAddressBook.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = OrderSaveBillingAddressToCustomerAddressBook;
@@ -3,7 +3,7 @@ export default class OrderSavePaymentSourceToCustomerWallet extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
5
5
  const orders_1 = require("../../triggers/orders");
6
6
  const TRIGGER = 'save_payment_source_to_customer_wallet';
7
7
  class OrderSavePaymentSourceToCustomerWallet extends base_1.default {
8
+ static description = orders_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
8
13
  async run() {
9
14
  const { args, flags } = await this.parse(OrderSavePaymentSourceToCustomerWallet);
10
15
  const res = await this.executeAction('orders', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class OrderSavePaymentSourceToCustomerWallet extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- OrderSavePaymentSourceToCustomerWallet.description = orders_1.triggers[TRIGGER].description;
18
- OrderSavePaymentSourceToCustomerWallet.flags = {};
19
- OrderSavePaymentSourceToCustomerWallet.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = OrderSavePaymentSourceToCustomerWallet;
@@ -3,7 +3,7 @@ export default class OrderSaveShippingAddressToCustomerAddressBook extends Comma
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
5
5
  const orders_1 = require("../../triggers/orders");
6
6
  const TRIGGER = 'save_shipping_address_to_customer_address_book';
7
7
  class OrderSaveShippingAddressToCustomerAddressBook extends base_1.default {
8
+ static description = orders_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
8
13
  async run() {
9
14
  const { args, flags } = await this.parse(OrderSaveShippingAddressToCustomerAddressBook);
10
15
  const res = await this.executeAction('orders', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class OrderSaveShippingAddressToCustomerAddressBook extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- OrderSaveShippingAddressToCustomerAddressBook.description = orders_1.triggers[TRIGGER].description;
18
- OrderSaveShippingAddressToCustomerAddressBook.flags = {};
19
- OrderSaveShippingAddressToCustomerAddressBook.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = OrderSaveShippingAddressToCustomerAddressBook;
@@ -2,10 +2,10 @@ import Command from '../../base';
2
2
  export default class OrderShippingAddressCloneId extends Command {
3
3
  static description: string;
4
4
  static flags: {
5
- value: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
5
+ value: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
6
6
  };
7
7
  static args: {
8
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
8
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
9
9
  };
10
10
  run(): Promise<any>;
11
11
  }
@@ -5,6 +5,18 @@ const base_1 = tslib_1.__importStar(require("../../base"));
5
5
  const orders_1 = require("../../triggers/orders");
6
6
  const TRIGGER = 'shipping_address_clone_id';
7
7
  class OrderShippingAddressCloneId extends base_1.default {
8
+ static description = orders_1.triggers[TRIGGER].description;
9
+ static flags = {
10
+ value: base_1.Flags.string({
11
+ char: 'v',
12
+ description: 'the trigger attribute value',
13
+ multiple: false,
14
+ required: true,
15
+ }),
16
+ };
17
+ static args = {
18
+ ...base_1.default.args,
19
+ };
8
20
  async run() {
9
21
  const { args, flags } = await this.parse(OrderShippingAddressCloneId);
10
22
  const res = await this.executeAction('orders', args.id, TRIGGER, flags);
@@ -14,14 +26,4 @@ class OrderShippingAddressCloneId extends base_1.default {
14
26
  return res;
15
27
  }
16
28
  }
17
- OrderShippingAddressCloneId.description = orders_1.triggers[TRIGGER].description;
18
- OrderShippingAddressCloneId.flags = {
19
- value: base_1.Flags.string({
20
- char: 'v',
21
- description: 'the trigger attribute value',
22
- multiple: false,
23
- required: true,
24
- }),
25
- };
26
- OrderShippingAddressCloneId.args = Object.assign({}, base_1.default.args);
27
29
  exports.default = OrderShippingAddressCloneId;
@@ -3,7 +3,7 @@ export default class OrderShippingAddressSameAsBilling extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
5
5
  const orders_1 = require("../../triggers/orders");
6
6
  const TRIGGER = 'shipping_address_same_as_billing';
7
7
  class OrderShippingAddressSameAsBilling extends base_1.default {
8
+ static description = orders_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
8
13
  async run() {
9
14
  const { args, flags } = await this.parse(OrderShippingAddressSameAsBilling);
10
15
  const res = await this.executeAction('orders', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class OrderShippingAddressSameAsBilling extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- OrderShippingAddressSameAsBilling.description = orders_1.triggers[TRIGGER].description;
18
- OrderShippingAddressSameAsBilling.flags = {};
19
- OrderShippingAddressSameAsBilling.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = OrderShippingAddressSameAsBilling;
@@ -3,7 +3,7 @@ export default class OrderStartEditing extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
5
5
  const orders_1 = require("../../triggers/orders");
6
6
  const TRIGGER = 'start_editing';
7
7
  class OrderStartEditing extends base_1.default {
8
+ static description = orders_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
8
13
  async run() {
9
14
  const { args, flags } = await this.parse(OrderStartEditing);
10
15
  const res = await this.executeAction('orders', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class OrderStartEditing extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- OrderStartEditing.description = orders_1.triggers[TRIGGER].description;
18
- OrderStartEditing.flags = {};
19
- OrderStartEditing.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = OrderStartEditing;
@@ -3,7 +3,7 @@ export default class OrderStopEditing extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
5
5
  const orders_1 = require("../../triggers/orders");
6
6
  const TRIGGER = 'stop_editing';
7
7
  class OrderStopEditing extends base_1.default {
8
+ static description = orders_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
8
13
  async run() {
9
14
  const { args, flags } = await this.parse(OrderStopEditing);
10
15
  const res = await this.executeAction('orders', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class OrderStopEditing extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- OrderStopEditing.description = orders_1.triggers[TRIGGER].description;
18
- OrderStopEditing.flags = {};
19
- OrderStopEditing.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = OrderStopEditing;
@@ -3,7 +3,7 @@ export default class OrderUnarchive extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
5
5
  const orders_1 = require("../../triggers/orders");
6
6
  const TRIGGER = 'unarchive';
7
7
  class OrderUnarchive extends base_1.default {
8
+ static description = orders_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
8
13
  async run() {
9
14
  const { args, flags } = await this.parse(OrderUnarchive);
10
15
  const res = await this.executeAction('orders', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class OrderUnarchive extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- OrderUnarchive.description = orders_1.triggers[TRIGGER].description;
18
- OrderUnarchive.flags = {};
19
- OrderUnarchive.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = OrderUnarchive;
@@ -3,7 +3,7 @@ export default class OrderUpdateTaxes extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
5
5
  const orders_1 = require("../../triggers/orders");
6
6
  const TRIGGER = 'update_taxes';
7
7
  class OrderUpdateTaxes extends base_1.default {
8
+ static description = orders_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
8
13
  async run() {
9
14
  const { args, flags } = await this.parse(OrderUpdateTaxes);
10
15
  const res = await this.executeAction('orders', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class OrderUpdateTaxes extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- OrderUpdateTaxes.description = orders_1.triggers[TRIGGER].description;
18
- OrderUpdateTaxes.flags = {};
19
- OrderUpdateTaxes.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = OrderUpdateTaxes;
@@ -3,7 +3,7 @@ export default class OrderValidate extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
5
5
  const orders_1 = require("../../triggers/orders");
6
6
  const TRIGGER = 'validate';
7
7
  class OrderValidate extends base_1.default {
8
+ static description = orders_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
8
13
  async run() {
9
14
  const { args, flags } = await this.parse(OrderValidate);
10
15
  const res = await this.executeAction('orders', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class OrderValidate extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- OrderValidate.description = orders_1.triggers[TRIGGER].description;
18
- OrderValidate.flags = {};
19
- OrderValidate.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = OrderValidate;
@@ -3,7 +3,7 @@ export default class OrderSubscriptionActivate extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
5
5
  const order_subscriptions_1 = require("../../triggers/order_subscriptions");
6
6
  const TRIGGER = 'activate';
7
7
  class OrderSubscriptionActivate extends base_1.default {
8
+ static description = order_subscriptions_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
8
13
  async run() {
9
14
  const { args, flags } = await this.parse(OrderSubscriptionActivate);
10
15
  const res = await this.executeAction('order_subscriptions', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class OrderSubscriptionActivate extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- OrderSubscriptionActivate.description = order_subscriptions_1.triggers[TRIGGER].description;
18
- OrderSubscriptionActivate.flags = {};
19
- OrderSubscriptionActivate.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = OrderSubscriptionActivate;
@@ -3,7 +3,7 @@ export default class OrderSubscriptionCancel extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
5
5
  const order_subscriptions_1 = require("../../triggers/order_subscriptions");
6
6
  const TRIGGER = 'cancel';
7
7
  class OrderSubscriptionCancel extends base_1.default {
8
+ static description = order_subscriptions_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
8
13
  async run() {
9
14
  const { args, flags } = await this.parse(OrderSubscriptionCancel);
10
15
  const res = await this.executeAction('order_subscriptions', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class OrderSubscriptionCancel extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- OrderSubscriptionCancel.description = order_subscriptions_1.triggers[TRIGGER].description;
18
- OrderSubscriptionCancel.flags = {};
19
- OrderSubscriptionCancel.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = OrderSubscriptionCancel;
@@ -3,7 +3,7 @@ export default class OrderSubscriptionDeactivate extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
5
5
  const order_subscriptions_1 = require("../../triggers/order_subscriptions");
6
6
  const TRIGGER = 'deactivate';
7
7
  class OrderSubscriptionDeactivate extends base_1.default {
8
+ static description = order_subscriptions_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
8
13
  async run() {
9
14
  const { args, flags } = await this.parse(OrderSubscriptionDeactivate);
10
15
  const res = await this.executeAction('order_subscriptions', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class OrderSubscriptionDeactivate extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- OrderSubscriptionDeactivate.description = order_subscriptions_1.triggers[TRIGGER].description;
18
- OrderSubscriptionDeactivate.flags = {};
19
- OrderSubscriptionDeactivate.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = OrderSubscriptionDeactivate;
@@ -3,7 +3,7 @@ export default class OrderSubscriptionIndex extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -20,6 +20,11 @@ const promptAction = async (id) => {
20
20
  return answers.trigger;
21
21
  };
22
22
  class OrderSubscriptionIndex extends base_1.default {
23
+ static description = 'execute an action on a resource of type order_subscriptions';
24
+ static flags = {};
25
+ static args = {
26
+ ...base_1.default.args,
27
+ };
23
28
  async run() {
24
29
  const { args, flags } = await this.parse(OrderSubscriptionIndex);
25
30
  const id = args.id;
@@ -32,7 +37,4 @@ class OrderSubscriptionIndex extends base_1.default {
32
37
  return res;
33
38
  }
34
39
  }
35
- OrderSubscriptionIndex.description = 'execute an action on a resource of type order_subscriptions';
36
- OrderSubscriptionIndex.flags = {};
37
- OrderSubscriptionIndex.args = Object.assign({}, base_1.default.args);
38
40
  exports.default = OrderSubscriptionIndex;
@@ -3,7 +3,7 @@ export default class PaymentMethodDisable extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
5
5
  const payment_methods_1 = require("../../triggers/payment_methods");
6
6
  const TRIGGER = 'disable';
7
7
  class PaymentMethodDisable extends base_1.default {
8
+ static description = payment_methods_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
8
13
  async run() {
9
14
  const { args, flags } = await this.parse(PaymentMethodDisable);
10
15
  const res = await this.executeAction('payment_methods', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class PaymentMethodDisable extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- PaymentMethodDisable.description = payment_methods_1.triggers[TRIGGER].description;
18
- PaymentMethodDisable.flags = {};
19
- PaymentMethodDisable.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = PaymentMethodDisable;
@@ -3,7 +3,7 @@ export default class PaymentMethodEnable extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
5
5
  const payment_methods_1 = require("../../triggers/payment_methods");
6
6
  const TRIGGER = 'enable';
7
7
  class PaymentMethodEnable extends base_1.default {
8
+ static description = payment_methods_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
8
13
  async run() {
9
14
  const { args, flags } = await this.parse(PaymentMethodEnable);
10
15
  const res = await this.executeAction('payment_methods', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class PaymentMethodEnable extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- PaymentMethodEnable.description = payment_methods_1.triggers[TRIGGER].description;
18
- PaymentMethodEnable.flags = {};
19
- PaymentMethodEnable.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = PaymentMethodEnable;
@@ -3,7 +3,7 @@ export default class PaymentMethodIndex extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }