@commercelayer/cli-plugin-triggers 3.14.0 → 4.0.0-oclif3.1

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 (301) hide show
  1. package/README.md +308 -2
  2. package/bin/dev +0 -0
  3. package/bin/run +0 -0
  4. package/lib/base.d.ts +5 -4
  5. package/lib/base.js +46 -41
  6. package/lib/commands/adyen_payment/details.d.ts +1 -1
  7. package/lib/commands/adyen_payment/details.js +6 -5
  8. package/lib/commands/adyen_payment/index.d.ts +1 -1
  9. package/lib/commands/adyen_payment/index.js +5 -3
  10. package/lib/commands/authorization/capture.d.ts +1 -1
  11. package/lib/commands/authorization/capture.js +6 -5
  12. package/lib/commands/authorization/capture_amount_cents.d.ts +1 -1
  13. package/lib/commands/authorization/capture_amount_cents.js +6 -5
  14. package/lib/commands/authorization/index.d.ts +1 -1
  15. package/lib/commands/authorization/index.js +5 -3
  16. package/lib/commands/authorization/void.d.ts +1 -1
  17. package/lib/commands/authorization/void.js +6 -5
  18. package/lib/commands/axerve_payment/index.d.ts +1 -1
  19. package/lib/commands/axerve_payment/index.js +5 -3
  20. package/lib/commands/axerve_payment/update.d.ts +1 -1
  21. package/lib/commands/axerve_payment/update.js +6 -5
  22. package/lib/commands/bundle/compute_compare_at_amount.d.ts +1 -1
  23. package/lib/commands/bundle/compute_compare_at_amount.js +6 -5
  24. package/lib/commands/bundle/compute_price_amount.d.ts +1 -1
  25. package/lib/commands/bundle/compute_price_amount.js +6 -5
  26. package/lib/commands/bundle/index.d.ts +1 -1
  27. package/lib/commands/bundle/index.js +5 -3
  28. package/lib/commands/buy_x_pay_y_promotion/disable.d.ts +1 -1
  29. package/lib/commands/buy_x_pay_y_promotion/disable.js +6 -5
  30. package/lib/commands/buy_x_pay_y_promotion/enable.d.ts +1 -1
  31. package/lib/commands/buy_x_pay_y_promotion/enable.js +6 -5
  32. package/lib/commands/buy_x_pay_y_promotion/index.d.ts +1 -1
  33. package/lib/commands/buy_x_pay_y_promotion/index.js +5 -3
  34. package/lib/commands/capture/index.d.ts +1 -1
  35. package/lib/commands/capture/index.js +5 -3
  36. package/lib/commands/capture/refund.d.ts +1 -1
  37. package/lib/commands/capture/refund.js +6 -5
  38. package/lib/commands/capture/refund_amount_cents.d.ts +1 -1
  39. package/lib/commands/capture/refund_amount_cents.js +6 -5
  40. package/lib/commands/checkout_com_payment/details.d.ts +1 -1
  41. package/lib/commands/checkout_com_payment/details.js +6 -5
  42. package/lib/commands/checkout_com_payment/index.d.ts +1 -1
  43. package/lib/commands/checkout_com_payment/index.js +5 -3
  44. package/lib/commands/checkout_com_payment/refresh.d.ts +1 -1
  45. package/lib/commands/checkout_com_payment/refresh.js +6 -5
  46. package/lib/commands/customer_password_reset/index.d.ts +1 -1
  47. package/lib/commands/customer_password_reset/index.js +5 -3
  48. package/lib/commands/customer_password_reset/reset_password_token.d.ts +1 -1
  49. package/lib/commands/customer_password_reset/reset_password_token.js +6 -5
  50. package/lib/commands/external_promotion/disable.d.ts +1 -1
  51. package/lib/commands/external_promotion/disable.js +6 -5
  52. package/lib/commands/external_promotion/enable.d.ts +1 -1
  53. package/lib/commands/external_promotion/enable.js +6 -5
  54. package/lib/commands/external_promotion/index.d.ts +1 -1
  55. package/lib/commands/external_promotion/index.js +5 -3
  56. package/lib/commands/fixed_amount_promotion/disable.d.ts +1 -1
  57. package/lib/commands/fixed_amount_promotion/disable.js +6 -5
  58. package/lib/commands/fixed_amount_promotion/enable.d.ts +1 -1
  59. package/lib/commands/fixed_amount_promotion/enable.js +6 -5
  60. package/lib/commands/fixed_amount_promotion/index.d.ts +1 -1
  61. package/lib/commands/fixed_amount_promotion/index.js +5 -3
  62. package/lib/commands/fixed_price_promotion/disable.d.ts +1 -1
  63. package/lib/commands/fixed_price_promotion/disable.js +6 -5
  64. package/lib/commands/fixed_price_promotion/enable.d.ts +1 -1
  65. package/lib/commands/fixed_price_promotion/enable.js +6 -5
  66. package/lib/commands/fixed_price_promotion/index.d.ts +1 -1
  67. package/lib/commands/fixed_price_promotion/index.js +5 -3
  68. package/lib/commands/free_gift_promotion/disable.d.ts +1 -1
  69. package/lib/commands/free_gift_promotion/disable.js +6 -5
  70. package/lib/commands/free_gift_promotion/enable.d.ts +1 -1
  71. package/lib/commands/free_gift_promotion/enable.js +6 -5
  72. package/lib/commands/free_gift_promotion/index.d.ts +1 -1
  73. package/lib/commands/free_gift_promotion/index.js +5 -3
  74. package/lib/commands/free_shipping_promotion/disable.d.ts +1 -1
  75. package/lib/commands/free_shipping_promotion/disable.js +6 -5
  76. package/lib/commands/free_shipping_promotion/enable.d.ts +1 -1
  77. package/lib/commands/free_shipping_promotion/enable.js +6 -5
  78. package/lib/commands/free_shipping_promotion/index.d.ts +1 -1
  79. package/lib/commands/free_shipping_promotion/index.js +5 -3
  80. package/lib/commands/gift_card/activate.d.ts +1 -1
  81. package/lib/commands/gift_card/activate.js +6 -5
  82. package/lib/commands/gift_card/balance_change_cents.d.ts +1 -1
  83. package/lib/commands/gift_card/balance_change_cents.js +6 -5
  84. package/lib/commands/gift_card/deactivate.d.ts +1 -1
  85. package/lib/commands/gift_card/deactivate.js +6 -5
  86. package/lib/commands/gift_card/index.d.ts +1 -1
  87. package/lib/commands/gift_card/index.js +5 -3
  88. package/lib/commands/gift_card/purchase.d.ts +1 -1
  89. package/lib/commands/gift_card/purchase.js +6 -5
  90. package/lib/commands/in_stock_subscription/activate.d.ts +1 -1
  91. package/lib/commands/in_stock_subscription/activate.js +6 -5
  92. package/lib/commands/in_stock_subscription/deactivate.d.ts +1 -1
  93. package/lib/commands/in_stock_subscription/deactivate.js +6 -5
  94. package/lib/commands/in_stock_subscription/index.d.ts +1 -1
  95. package/lib/commands/in_stock_subscription/index.js +5 -3
  96. package/lib/commands/klarna_payment/index.d.ts +1 -1
  97. package/lib/commands/klarna_payment/index.js +5 -3
  98. package/lib/commands/klarna_payment/update.d.ts +1 -1
  99. package/lib/commands/klarna_payment/update.js +6 -5
  100. package/lib/commands/line_item/external_price.d.ts +1 -1
  101. package/lib/commands/line_item/external_price.js +6 -5
  102. package/lib/commands/line_item/index.d.ts +1 -1
  103. package/lib/commands/line_item/index.js +5 -3
  104. package/lib/commands/line_item/reserve_stock.d.ts +1 -1
  105. package/lib/commands/line_item/reserve_stock.js +6 -5
  106. package/lib/commands/market/disable.d.ts +1 -1
  107. package/lib/commands/market/disable.js +6 -5
  108. package/lib/commands/market/enable.d.ts +1 -1
  109. package/lib/commands/market/enable.js +6 -5
  110. package/lib/commands/market/index.d.ts +1 -1
  111. package/lib/commands/market/index.js +5 -3
  112. package/lib/commands/noc.js +2 -2
  113. package/lib/commands/order/approve.d.ts +1 -1
  114. package/lib/commands/order/approve.js +6 -5
  115. package/lib/commands/order/approve_and_capture.d.ts +1 -1
  116. package/lib/commands/order/approve_and_capture.js +6 -5
  117. package/lib/commands/order/archive.d.ts +1 -1
  118. package/lib/commands/order/archive.js +6 -5
  119. package/lib/commands/order/authorization_amount_cents.d.ts +1 -1
  120. package/lib/commands/order/authorization_amount_cents.js +6 -5
  121. package/lib/commands/order/authorize.d.ts +1 -1
  122. package/lib/commands/order/authorize.js +6 -5
  123. package/lib/commands/order/billing_address_clone_id.d.ts +2 -2
  124. package/lib/commands/order/billing_address_clone_id.js +13 -12
  125. package/lib/commands/order/billing_address_same_as_shipping.d.ts +1 -1
  126. package/lib/commands/order/billing_address_same_as_shipping.js +6 -5
  127. package/lib/commands/order/cancel.d.ts +1 -1
  128. package/lib/commands/order/cancel.js +6 -5
  129. package/lib/commands/order/capture.d.ts +1 -1
  130. package/lib/commands/order/capture.js +6 -5
  131. package/lib/commands/order/commit_invoice.d.ts +1 -1
  132. package/lib/commands/order/commit_invoice.js +6 -5
  133. package/lib/commands/order/create_subscriptions.d.ts +1 -1
  134. package/lib/commands/order/create_subscriptions.js +6 -5
  135. package/lib/commands/order/customer_payment_source_id.d.ts +2 -2
  136. package/lib/commands/order/customer_payment_source_id.js +13 -12
  137. package/lib/commands/order/index.d.ts +1 -1
  138. package/lib/commands/order/index.js +5 -3
  139. package/lib/commands/order/nullify_payment_source.d.ts +1 -1
  140. package/lib/commands/order/nullify_payment_source.js +6 -5
  141. package/lib/commands/order/place.d.ts +1 -1
  142. package/lib/commands/order/place.js +6 -5
  143. package/lib/commands/order/refresh.d.ts +1 -1
  144. package/lib/commands/order/refresh.js +6 -5
  145. package/lib/commands/order/refund.d.ts +1 -1
  146. package/lib/commands/order/refund.js +6 -5
  147. package/lib/commands/order/refund_invoice.d.ts +1 -1
  148. package/lib/commands/order/refund_invoice.js +6 -5
  149. package/lib/commands/order/save_billing_address_to_customer_address_book.d.ts +1 -1
  150. package/lib/commands/order/save_billing_address_to_customer_address_book.js +6 -5
  151. package/lib/commands/order/save_payment_source_to_customer_wallet.d.ts +1 -1
  152. package/lib/commands/order/save_payment_source_to_customer_wallet.js +6 -5
  153. package/lib/commands/order/save_shipping_address_to_customer_address_book.d.ts +1 -1
  154. package/lib/commands/order/save_shipping_address_to_customer_address_book.js +6 -5
  155. package/lib/commands/order/shipping_address_clone_id.d.ts +2 -2
  156. package/lib/commands/order/shipping_address_clone_id.js +13 -12
  157. package/lib/commands/order/shipping_address_same_as_billing.d.ts +1 -1
  158. package/lib/commands/order/shipping_address_same_as_billing.js +6 -5
  159. package/lib/commands/order/start_editing.d.ts +1 -1
  160. package/lib/commands/order/start_editing.js +6 -5
  161. package/lib/commands/order/stop_editing.d.ts +1 -1
  162. package/lib/commands/order/stop_editing.js +6 -5
  163. package/lib/commands/order/unarchive.d.ts +1 -1
  164. package/lib/commands/order/unarchive.js +6 -5
  165. package/lib/commands/order/update_taxes.d.ts +1 -1
  166. package/lib/commands/order/update_taxes.js +6 -5
  167. package/lib/commands/order/validate.d.ts +1 -1
  168. package/lib/commands/order/validate.js +6 -5
  169. package/lib/commands/order_subscription/activate.d.ts +1 -1
  170. package/lib/commands/order_subscription/activate.js +6 -5
  171. package/lib/commands/order_subscription/cancel.d.ts +1 -1
  172. package/lib/commands/order_subscription/cancel.js +6 -5
  173. package/lib/commands/order_subscription/deactivate.d.ts +1 -1
  174. package/lib/commands/order_subscription/deactivate.js +6 -5
  175. package/lib/commands/order_subscription/index.d.ts +1 -1
  176. package/lib/commands/order_subscription/index.js +5 -3
  177. package/lib/commands/payment_method/disable.d.ts +1 -1
  178. package/lib/commands/payment_method/disable.js +6 -5
  179. package/lib/commands/payment_method/enable.d.ts +1 -1
  180. package/lib/commands/payment_method/enable.js +6 -5
  181. package/lib/commands/payment_method/index.d.ts +1 -1
  182. package/lib/commands/payment_method/index.js +5 -3
  183. package/lib/commands/percentage_discount_promotion/disable.d.ts +1 -1
  184. package/lib/commands/percentage_discount_promotion/disable.js +6 -5
  185. package/lib/commands/percentage_discount_promotion/enable.d.ts +1 -1
  186. package/lib/commands/percentage_discount_promotion/enable.js +6 -5
  187. package/lib/commands/percentage_discount_promotion/index.d.ts +1 -1
  188. package/lib/commands/percentage_discount_promotion/index.js +5 -3
  189. package/lib/commands/return/approve.d.ts +1 -1
  190. package/lib/commands/return/approve.js +6 -5
  191. package/lib/commands/return/archive.d.ts +1 -1
  192. package/lib/commands/return/archive.js +6 -5
  193. package/lib/commands/return/cancel.d.ts +1 -1
  194. package/lib/commands/return/cancel.js +6 -5
  195. package/lib/commands/return/index.d.ts +1 -1
  196. package/lib/commands/return/index.js +5 -3
  197. package/lib/commands/return/receive.d.ts +1 -1
  198. package/lib/commands/return/receive.js +6 -5
  199. package/lib/commands/return/reject.d.ts +1 -1
  200. package/lib/commands/return/reject.js +6 -5
  201. package/lib/commands/return/request.d.ts +1 -1
  202. package/lib/commands/return/request.js +6 -5
  203. package/lib/commands/return/restock.d.ts +1 -1
  204. package/lib/commands/return/restock.js +6 -5
  205. package/lib/commands/return/ship.d.ts +1 -1
  206. package/lib/commands/return/ship.js +6 -5
  207. package/lib/commands/return/unarchive.d.ts +1 -1
  208. package/lib/commands/return/unarchive.js +6 -5
  209. package/lib/commands/return_line_item/index.d.ts +1 -1
  210. package/lib/commands/return_line_item/index.js +5 -3
  211. package/lib/commands/return_line_item/restock.d.ts +1 -1
  212. package/lib/commands/return_line_item/restock.js +6 -5
  213. package/lib/commands/satispay_payment/index.d.ts +1 -1
  214. package/lib/commands/satispay_payment/index.js +5 -3
  215. package/lib/commands/satispay_payment/refresh.d.ts +1 -1
  216. package/lib/commands/satispay_payment/refresh.js +6 -5
  217. package/lib/commands/shipment/decrement_stock.d.ts +9 -0
  218. package/lib/commands/shipment/decrement_stock.js +22 -0
  219. package/lib/commands/shipment/get_rates.d.ts +1 -1
  220. package/lib/commands/shipment/get_rates.js +6 -5
  221. package/lib/commands/shipment/index.d.ts +1 -1
  222. package/lib/commands/shipment/index.js +5 -3
  223. package/lib/commands/shipment/on_hold.d.ts +1 -1
  224. package/lib/commands/shipment/on_hold.js +6 -5
  225. package/lib/commands/shipment/packing.d.ts +1 -1
  226. package/lib/commands/shipment/packing.js +6 -5
  227. package/lib/commands/shipment/picking.d.ts +1 -1
  228. package/lib/commands/shipment/picking.js +6 -5
  229. package/lib/commands/shipment/purchase.d.ts +1 -1
  230. package/lib/commands/shipment/purchase.js +6 -5
  231. package/lib/commands/shipment/ready_to_ship.d.ts +1 -1
  232. package/lib/commands/shipment/ready_to_ship.js +6 -5
  233. package/lib/commands/shipment/release_stock.d.ts +9 -0
  234. package/lib/commands/shipment/release_stock.js +22 -0
  235. package/lib/commands/shipment/reserve_stock.d.ts +9 -0
  236. package/lib/commands/shipment/reserve_stock.js +22 -0
  237. package/lib/commands/shipment/ship.d.ts +1 -1
  238. package/lib/commands/shipment/ship.js +6 -5
  239. package/lib/commands/shipment/upcoming.d.ts +9 -0
  240. package/lib/commands/shipment/upcoming.js +22 -0
  241. package/lib/commands/shipping_method/disable.d.ts +1 -1
  242. package/lib/commands/shipping_method/disable.js +6 -5
  243. package/lib/commands/shipping_method/enable.d.ts +1 -1
  244. package/lib/commands/shipping_method/enable.js +6 -5
  245. package/lib/commands/shipping_method/index.d.ts +1 -1
  246. package/lib/commands/shipping_method/index.js +5 -3
  247. package/lib/commands/stock_line_item/decrement_stock.d.ts +9 -0
  248. package/lib/commands/stock_line_item/decrement_stock.js +22 -0
  249. package/lib/commands/stock_line_item/index.d.ts +9 -0
  250. package/lib/commands/stock_line_item/index.js +40 -0
  251. package/lib/commands/stock_line_item/release_stock.d.ts +9 -0
  252. package/lib/commands/stock_line_item/release_stock.js +22 -0
  253. package/lib/commands/stock_line_item/reserve_stock.d.ts +9 -0
  254. package/lib/commands/stock_line_item/reserve_stock.js +22 -0
  255. package/lib/commands/stock_reservation/index.d.ts +9 -0
  256. package/lib/commands/stock_reservation/index.js +40 -0
  257. package/lib/commands/stock_reservation/pending.d.ts +9 -0
  258. package/lib/commands/stock_reservation/pending.js +22 -0
  259. package/lib/commands/stock_transfer/cancel.d.ts +1 -1
  260. package/lib/commands/stock_transfer/cancel.js +6 -5
  261. package/lib/commands/stock_transfer/complete.d.ts +1 -1
  262. package/lib/commands/stock_transfer/complete.js +6 -5
  263. package/lib/commands/stock_transfer/in_transit.d.ts +1 -1
  264. package/lib/commands/stock_transfer/in_transit.js +6 -5
  265. package/lib/commands/stock_transfer/index.d.ts +1 -1
  266. package/lib/commands/stock_transfer/index.js +5 -3
  267. package/lib/commands/stock_transfer/on_hold.d.ts +9 -0
  268. package/lib/commands/stock_transfer/on_hold.js +22 -0
  269. package/lib/commands/stock_transfer/picking.d.ts +1 -1
  270. package/lib/commands/stock_transfer/picking.js +6 -5
  271. package/lib/commands/stock_transfer/upcoming.d.ts +1 -1
  272. package/lib/commands/stock_transfer/upcoming.js +6 -5
  273. package/lib/commands/stripe_payment/index.d.ts +1 -1
  274. package/lib/commands/stripe_payment/index.js +5 -3
  275. package/lib/commands/stripe_payment/refresh.d.ts +1 -1
  276. package/lib/commands/stripe_payment/refresh.js +6 -5
  277. package/lib/commands/stripe_payment/update.d.ts +1 -1
  278. package/lib/commands/stripe_payment/update.js +6 -5
  279. package/lib/commands/webhook/disable.d.ts +9 -0
  280. package/lib/commands/webhook/disable.js +22 -0
  281. package/lib/commands/webhook/enable.d.ts +9 -0
  282. package/lib/commands/webhook/enable.js +22 -0
  283. package/lib/commands/webhook/index.d.ts +1 -1
  284. package/lib/commands/webhook/index.js +5 -3
  285. package/lib/commands/webhook/reset_circuit.d.ts +1 -1
  286. package/lib/commands/webhook/reset_circuit.js +6 -5
  287. package/lib/exec.d.ts +4 -2
  288. package/lib/exec.js +7 -4
  289. package/lib/triggers/line_items.js +1 -1
  290. package/lib/triggers/shipments.d.ts +1 -1
  291. package/lib/triggers/shipments.js +20 -0
  292. package/lib/triggers/stock_line_items.d.ts +3 -0
  293. package/lib/triggers/stock_line_items.js +20 -0
  294. package/lib/triggers/stock_reservations.d.ts +3 -0
  295. package/lib/triggers/stock_reservations.js +10 -0
  296. package/lib/triggers/stock_transfers.d.ts +1 -1
  297. package/lib/triggers/stock_transfers.js +5 -0
  298. package/lib/triggers/webhooks.d.ts +1 -1
  299. package/lib/triggers/webhooks.js +10 -0
  300. package/oclif.manifest.json +7560 -4372
  301. package/package.json +37 -31
@@ -2,20 +2,21 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const base_1 = tslib_1.__importDefault(require("../../base"));
5
- const exec_1 = tslib_1.__importDefault(require("../../exec"));
6
5
  const authorizations_1 = require("../../triggers/authorizations");
7
6
  const TRIGGER = 'capture_amount_cents';
8
7
  class AuthorizationCaptureAmountCents extends base_1.default {
8
+ static description = authorizations_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
9
13
  async run() {
10
14
  const { args, flags } = await this.parse(AuthorizationCaptureAmountCents);
11
- const res = await (0, exec_1.default)('authorizations', args.id, TRIGGER, flags);
15
+ const res = await this.executeAction('authorizations', args.id, TRIGGER, flags);
12
16
  if (flags.print)
13
17
  this.printOutput(res, flags);
14
18
  this.successMessage('authorization', TRIGGER, res.id);
15
19
  return res;
16
20
  }
17
21
  }
18
- AuthorizationCaptureAmountCents.description = authorizations_1.triggers[TRIGGER].description;
19
- AuthorizationCaptureAmountCents.flags = {};
20
- AuthorizationCaptureAmountCents.args = Object.assign({}, base_1.default.args);
21
22
  exports.default = AuthorizationCaptureAmountCents;
@@ -3,7 +3,7 @@ export default class AuthorizationIndex 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 AuthorizationIndex extends base_1.default {
23
+ static description = 'execute an action on a resource of type authorizations';
24
+ static flags = {};
25
+ static args = {
26
+ ...base_1.default.args,
27
+ };
23
28
  async run() {
24
29
  const { args, flags } = await this.parse(AuthorizationIndex);
25
30
  const id = args.id;
@@ -32,7 +37,4 @@ class AuthorizationIndex extends base_1.default {
32
37
  return res;
33
38
  }
34
39
  }
35
- AuthorizationIndex.description = 'execute an action on a resource of type authorizations';
36
- AuthorizationIndex.flags = {};
37
- AuthorizationIndex.args = Object.assign({}, base_1.default.args);
38
40
  exports.default = AuthorizationIndex;
@@ -3,7 +3,7 @@ export default class AuthorizationVoid 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
  }
@@ -2,20 +2,21 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const base_1 = tslib_1.__importDefault(require("../../base"));
5
- const exec_1 = tslib_1.__importDefault(require("../../exec"));
6
5
  const authorizations_1 = require("../../triggers/authorizations");
7
6
  const TRIGGER = 'void';
8
7
  class AuthorizationVoid extends base_1.default {
8
+ static description = authorizations_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
9
13
  async run() {
10
14
  const { args, flags } = await this.parse(AuthorizationVoid);
11
- const res = await (0, exec_1.default)('authorizations', args.id, TRIGGER, flags);
15
+ const res = await this.executeAction('authorizations', args.id, TRIGGER, flags);
12
16
  if (flags.print)
13
17
  this.printOutput(res, flags);
14
18
  this.successMessage('authorization', TRIGGER, res.id);
15
19
  return res;
16
20
  }
17
21
  }
18
- AuthorizationVoid.description = authorizations_1.triggers[TRIGGER].description;
19
- AuthorizationVoid.flags = {};
20
- AuthorizationVoid.args = Object.assign({}, base_1.default.args);
21
22
  exports.default = AuthorizationVoid;
@@ -3,7 +3,7 @@ export default class AxervePaymentIndex 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 AxervePaymentIndex extends base_1.default {
23
+ static description = 'execute an action on a resource of type axerve_payments';
24
+ static flags = {};
25
+ static args = {
26
+ ...base_1.default.args,
27
+ };
23
28
  async run() {
24
29
  const { args, flags } = await this.parse(AxervePaymentIndex);
25
30
  const id = args.id;
@@ -32,7 +37,4 @@ class AxervePaymentIndex extends base_1.default {
32
37
  return res;
33
38
  }
34
39
  }
35
- AxervePaymentIndex.description = 'execute an action on a resource of type axerve_payments';
36
- AxervePaymentIndex.flags = {};
37
- AxervePaymentIndex.args = Object.assign({}, base_1.default.args);
38
40
  exports.default = AxervePaymentIndex;
@@ -3,7 +3,7 @@ export default class AxervePaymentUpdate 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
  }
@@ -2,20 +2,21 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const base_1 = tslib_1.__importDefault(require("../../base"));
5
- const exec_1 = tslib_1.__importDefault(require("../../exec"));
6
5
  const axerve_payments_1 = require("../../triggers/axerve_payments");
7
6
  const TRIGGER = 'update';
8
7
  class AxervePaymentUpdate extends base_1.default {
8
+ static description = axerve_payments_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
9
13
  async run() {
10
14
  const { args, flags } = await this.parse(AxervePaymentUpdate);
11
- const res = await (0, exec_1.default)('axerve_payments', args.id, TRIGGER, flags);
15
+ const res = await this.executeAction('axerve_payments', args.id, TRIGGER, flags);
12
16
  if (flags.print)
13
17
  this.printOutput(res, flags);
14
18
  this.successMessage('axerve_payment', TRIGGER, res.id);
15
19
  return res;
16
20
  }
17
21
  }
18
- AxervePaymentUpdate.description = axerve_payments_1.triggers[TRIGGER].description;
19
- AxervePaymentUpdate.flags = {};
20
- AxervePaymentUpdate.args = Object.assign({}, base_1.default.args);
21
22
  exports.default = AxervePaymentUpdate;
@@ -3,7 +3,7 @@ export default class BundleComputeCompareAtAmount 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
  }
@@ -2,20 +2,21 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const base_1 = tslib_1.__importDefault(require("../../base"));
5
- const exec_1 = tslib_1.__importDefault(require("../../exec"));
6
5
  const bundles_1 = require("../../triggers/bundles");
7
6
  const TRIGGER = 'compute_compare_at_amount';
8
7
  class BundleComputeCompareAtAmount extends base_1.default {
8
+ static description = bundles_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
9
13
  async run() {
10
14
  const { args, flags } = await this.parse(BundleComputeCompareAtAmount);
11
- const res = await (0, exec_1.default)('bundles', args.id, TRIGGER, flags);
15
+ const res = await this.executeAction('bundles', args.id, TRIGGER, flags);
12
16
  if (flags.print)
13
17
  this.printOutput(res, flags);
14
18
  this.successMessage('bundle', TRIGGER, res.id);
15
19
  return res;
16
20
  }
17
21
  }
18
- BundleComputeCompareAtAmount.description = bundles_1.triggers[TRIGGER].description;
19
- BundleComputeCompareAtAmount.flags = {};
20
- BundleComputeCompareAtAmount.args = Object.assign({}, base_1.default.args);
21
22
  exports.default = BundleComputeCompareAtAmount;
@@ -3,7 +3,7 @@ export default class BundleComputePriceAmount 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
  }
@@ -2,20 +2,21 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const base_1 = tslib_1.__importDefault(require("../../base"));
5
- const exec_1 = tslib_1.__importDefault(require("../../exec"));
6
5
  const bundles_1 = require("../../triggers/bundles");
7
6
  const TRIGGER = 'compute_price_amount';
8
7
  class BundleComputePriceAmount extends base_1.default {
8
+ static description = bundles_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
9
13
  async run() {
10
14
  const { args, flags } = await this.parse(BundleComputePriceAmount);
11
- const res = await (0, exec_1.default)('bundles', args.id, TRIGGER, flags);
15
+ const res = await this.executeAction('bundles', args.id, TRIGGER, flags);
12
16
  if (flags.print)
13
17
  this.printOutput(res, flags);
14
18
  this.successMessage('bundle', TRIGGER, res.id);
15
19
  return res;
16
20
  }
17
21
  }
18
- BundleComputePriceAmount.description = bundles_1.triggers[TRIGGER].description;
19
- BundleComputePriceAmount.flags = {};
20
- BundleComputePriceAmount.args = Object.assign({}, base_1.default.args);
21
22
  exports.default = BundleComputePriceAmount;
@@ -3,7 +3,7 @@ export default class BundleIndex 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 BundleIndex extends base_1.default {
23
+ static description = 'execute an action on a resource of type bundles';
24
+ static flags = {};
25
+ static args = {
26
+ ...base_1.default.args,
27
+ };
23
28
  async run() {
24
29
  const { args, flags } = await this.parse(BundleIndex);
25
30
  const id = args.id;
@@ -32,7 +37,4 @@ class BundleIndex extends base_1.default {
32
37
  return res;
33
38
  }
34
39
  }
35
- BundleIndex.description = 'execute an action on a resource of type bundles';
36
- BundleIndex.flags = {};
37
- BundleIndex.args = Object.assign({}, base_1.default.args);
38
40
  exports.default = BundleIndex;
@@ -3,7 +3,7 @@ export default class BuyXPayYPromotionDisable 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
  }
@@ -2,20 +2,21 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const base_1 = tslib_1.__importDefault(require("../../base"));
5
- const exec_1 = tslib_1.__importDefault(require("../../exec"));
6
5
  const buy_x_pay_y_promotions_1 = require("../../triggers/buy_x_pay_y_promotions");
7
6
  const TRIGGER = 'disable';
8
7
  class BuyXPayYPromotionDisable extends base_1.default {
8
+ static description = buy_x_pay_y_promotions_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
9
13
  async run() {
10
14
  const { args, flags } = await this.parse(BuyXPayYPromotionDisable);
11
- const res = await (0, exec_1.default)('buy_x_pay_y_promotions', args.id, TRIGGER, flags);
15
+ const res = await this.executeAction('buy_x_pay_y_promotions', args.id, TRIGGER, flags);
12
16
  if (flags.print)
13
17
  this.printOutput(res, flags);
14
18
  this.successMessage('buy_x_pay_y_promotion', TRIGGER, res.id);
15
19
  return res;
16
20
  }
17
21
  }
18
- BuyXPayYPromotionDisable.description = buy_x_pay_y_promotions_1.triggers[TRIGGER].description;
19
- BuyXPayYPromotionDisable.flags = {};
20
- BuyXPayYPromotionDisable.args = Object.assign({}, base_1.default.args);
21
22
  exports.default = BuyXPayYPromotionDisable;
@@ -3,7 +3,7 @@ export default class BuyXPayYPromotionEnable 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
  }
@@ -2,20 +2,21 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const base_1 = tslib_1.__importDefault(require("../../base"));
5
- const exec_1 = tslib_1.__importDefault(require("../../exec"));
6
5
  const buy_x_pay_y_promotions_1 = require("../../triggers/buy_x_pay_y_promotions");
7
6
  const TRIGGER = 'enable';
8
7
  class BuyXPayYPromotionEnable extends base_1.default {
8
+ static description = buy_x_pay_y_promotions_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
9
13
  async run() {
10
14
  const { args, flags } = await this.parse(BuyXPayYPromotionEnable);
11
- const res = await (0, exec_1.default)('buy_x_pay_y_promotions', args.id, TRIGGER, flags);
15
+ const res = await this.executeAction('buy_x_pay_y_promotions', args.id, TRIGGER, flags);
12
16
  if (flags.print)
13
17
  this.printOutput(res, flags);
14
18
  this.successMessage('buy_x_pay_y_promotion', TRIGGER, res.id);
15
19
  return res;
16
20
  }
17
21
  }
18
- BuyXPayYPromotionEnable.description = buy_x_pay_y_promotions_1.triggers[TRIGGER].description;
19
- BuyXPayYPromotionEnable.flags = {};
20
- BuyXPayYPromotionEnable.args = Object.assign({}, base_1.default.args);
21
22
  exports.default = BuyXPayYPromotionEnable;
@@ -3,7 +3,7 @@ export default class BuyXPayYPromotionIndex 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 BuyXPayYPromotionIndex extends base_1.default {
23
+ static description = 'execute an action on a resource of type buy_x_pay_y_promotions';
24
+ static flags = {};
25
+ static args = {
26
+ ...base_1.default.args,
27
+ };
23
28
  async run() {
24
29
  const { args, flags } = await this.parse(BuyXPayYPromotionIndex);
25
30
  const id = args.id;
@@ -32,7 +37,4 @@ class BuyXPayYPromotionIndex extends base_1.default {
32
37
  return res;
33
38
  }
34
39
  }
35
- BuyXPayYPromotionIndex.description = 'execute an action on a resource of type buy_x_pay_y_promotions';
36
- BuyXPayYPromotionIndex.flags = {};
37
- BuyXPayYPromotionIndex.args = Object.assign({}, base_1.default.args);
38
40
  exports.default = BuyXPayYPromotionIndex;
@@ -3,7 +3,7 @@ export default class CaptureIndex 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 CaptureIndex extends base_1.default {
23
+ static description = 'execute an action on a resource of type captures';
24
+ static flags = {};
25
+ static args = {
26
+ ...base_1.default.args,
27
+ };
23
28
  async run() {
24
29
  const { args, flags } = await this.parse(CaptureIndex);
25
30
  const id = args.id;
@@ -32,7 +37,4 @@ class CaptureIndex extends base_1.default {
32
37
  return res;
33
38
  }
34
39
  }
35
- CaptureIndex.description = 'execute an action on a resource of type captures';
36
- CaptureIndex.flags = {};
37
- CaptureIndex.args = Object.assign({}, base_1.default.args);
38
40
  exports.default = CaptureIndex;
@@ -3,7 +3,7 @@ export default class CaptureRefund 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
  }
@@ -2,20 +2,21 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const base_1 = tslib_1.__importDefault(require("../../base"));
5
- const exec_1 = tslib_1.__importDefault(require("../../exec"));
6
5
  const captures_1 = require("../../triggers/captures");
7
6
  const TRIGGER = 'refund';
8
7
  class CaptureRefund extends base_1.default {
8
+ static description = captures_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
9
13
  async run() {
10
14
  const { args, flags } = await this.parse(CaptureRefund);
11
- const res = await (0, exec_1.default)('captures', args.id, TRIGGER, flags);
15
+ const res = await this.executeAction('captures', args.id, TRIGGER, flags);
12
16
  if (flags.print)
13
17
  this.printOutput(res, flags);
14
18
  this.successMessage('capture', TRIGGER, res.id);
15
19
  return res;
16
20
  }
17
21
  }
18
- CaptureRefund.description = captures_1.triggers[TRIGGER].description;
19
- CaptureRefund.flags = {};
20
- CaptureRefund.args = Object.assign({}, base_1.default.args);
21
22
  exports.default = CaptureRefund;
@@ -3,7 +3,7 @@ export default class CaptureRefundAmountCents 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
  }
@@ -2,20 +2,21 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const base_1 = tslib_1.__importDefault(require("../../base"));
5
- const exec_1 = tslib_1.__importDefault(require("../../exec"));
6
5
  const captures_1 = require("../../triggers/captures");
7
6
  const TRIGGER = 'refund_amount_cents';
8
7
  class CaptureRefundAmountCents extends base_1.default {
8
+ static description = captures_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
9
13
  async run() {
10
14
  const { args, flags } = await this.parse(CaptureRefundAmountCents);
11
- const res = await (0, exec_1.default)('captures', args.id, TRIGGER, flags);
15
+ const res = await this.executeAction('captures', args.id, TRIGGER, flags);
12
16
  if (flags.print)
13
17
  this.printOutput(res, flags);
14
18
  this.successMessage('capture', TRIGGER, res.id);
15
19
  return res;
16
20
  }
17
21
  }
18
- CaptureRefundAmountCents.description = captures_1.triggers[TRIGGER].description;
19
- CaptureRefundAmountCents.flags = {};
20
- CaptureRefundAmountCents.args = Object.assign({}, base_1.default.args);
21
22
  exports.default = CaptureRefundAmountCents;
@@ -3,7 +3,7 @@ export default class CheckoutComPaymentDetails 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
  }
@@ -2,20 +2,21 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const base_1 = tslib_1.__importDefault(require("../../base"));
5
- const exec_1 = tslib_1.__importDefault(require("../../exec"));
6
5
  const checkout_com_payments_1 = require("../../triggers/checkout_com_payments");
7
6
  const TRIGGER = 'details';
8
7
  class CheckoutComPaymentDetails extends base_1.default {
8
+ static description = checkout_com_payments_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
9
13
  async run() {
10
14
  const { args, flags } = await this.parse(CheckoutComPaymentDetails);
11
- const res = await (0, exec_1.default)('checkout_com_payments', args.id, TRIGGER, flags);
15
+ const res = await this.executeAction('checkout_com_payments', args.id, TRIGGER, flags);
12
16
  if (flags.print)
13
17
  this.printOutput(res, flags);
14
18
  this.successMessage('checkout_com_payment', TRIGGER, res.id);
15
19
  return res;
16
20
  }
17
21
  }
18
- CheckoutComPaymentDetails.description = checkout_com_payments_1.triggers[TRIGGER].description;
19
- CheckoutComPaymentDetails.flags = {};
20
- CheckoutComPaymentDetails.args = Object.assign({}, base_1.default.args);
21
22
  exports.default = CheckoutComPaymentDetails;
@@ -3,7 +3,7 @@ export default class CheckoutComPaymentIndex 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 CheckoutComPaymentIndex extends base_1.default {
23
+ static description = 'execute an action on a resource of type checkout_com_payments';
24
+ static flags = {};
25
+ static args = {
26
+ ...base_1.default.args,
27
+ };
23
28
  async run() {
24
29
  const { args, flags } = await this.parse(CheckoutComPaymentIndex);
25
30
  const id = args.id;
@@ -32,7 +37,4 @@ class CheckoutComPaymentIndex extends base_1.default {
32
37
  return res;
33
38
  }
34
39
  }
35
- CheckoutComPaymentIndex.description = 'execute an action on a resource of type checkout_com_payments';
36
- CheckoutComPaymentIndex.flags = {};
37
- CheckoutComPaymentIndex.args = Object.assign({}, base_1.default.args);
38
40
  exports.default = CheckoutComPaymentIndex;
@@ -3,7 +3,7 @@ export default class CheckoutComPaymentRefresh 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
  }
@@ -2,20 +2,21 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const base_1 = tslib_1.__importDefault(require("../../base"));
5
- const exec_1 = tslib_1.__importDefault(require("../../exec"));
6
5
  const checkout_com_payments_1 = require("../../triggers/checkout_com_payments");
7
6
  const TRIGGER = 'refresh';
8
7
  class CheckoutComPaymentRefresh extends base_1.default {
8
+ static description = checkout_com_payments_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
9
13
  async run() {
10
14
  const { args, flags } = await this.parse(CheckoutComPaymentRefresh);
11
- const res = await (0, exec_1.default)('checkout_com_payments', args.id, TRIGGER, flags);
15
+ const res = await this.executeAction('checkout_com_payments', args.id, TRIGGER, flags);
12
16
  if (flags.print)
13
17
  this.printOutput(res, flags);
14
18
  this.successMessage('checkout_com_payment', TRIGGER, res.id);
15
19
  return res;
16
20
  }
17
21
  }
18
- CheckoutComPaymentRefresh.description = checkout_com_payments_1.triggers[TRIGGER].description;
19
- CheckoutComPaymentRefresh.flags = {};
20
- CheckoutComPaymentRefresh.args = Object.assign({}, base_1.default.args);
21
22
  exports.default = CheckoutComPaymentRefresh;
@@ -3,7 +3,7 @@ export default class CustomerPasswordResetIndex 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 CustomerPasswordResetIndex extends base_1.default {
23
+ static description = 'execute an action on a resource of type customer_password_resets';
24
+ static flags = {};
25
+ static args = {
26
+ ...base_1.default.args,
27
+ };
23
28
  async run() {
24
29
  const { args, flags } = await this.parse(CustomerPasswordResetIndex);
25
30
  const id = args.id;
@@ -32,7 +37,4 @@ class CustomerPasswordResetIndex extends base_1.default {
32
37
  return res;
33
38
  }
34
39
  }
35
- CustomerPasswordResetIndex.description = 'execute an action on a resource of type customer_password_resets';
36
- CustomerPasswordResetIndex.flags = {};
37
- CustomerPasswordResetIndex.args = Object.assign({}, base_1.default.args);
38
40
  exports.default = CustomerPasswordResetIndex;
@@ -3,7 +3,7 @@ export default class CustomerPasswordResetResetPasswordToken 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
  }