@commercelayer/cli-plugin-triggers 3.8.3 → 3.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/README.md +47 -0
  2. package/lib/base.d.ts +3 -3
  3. package/lib/base.js +1 -1
  4. package/lib/commands/adyen_payment/details.js +1 -1
  5. package/lib/commands/adyen_payment/index.js +1 -1
  6. package/lib/commands/authorization/capture.js +1 -1
  7. package/lib/commands/authorization/capture_amount_cents.js +1 -1
  8. package/lib/commands/authorization/index.js +1 -1
  9. package/lib/commands/authorization/void.js +1 -1
  10. package/lib/commands/axerve_payment/index.js +1 -1
  11. package/lib/commands/axerve_payment/update.js +1 -1
  12. package/lib/commands/bundle/compute_compare_at_amount.js +1 -1
  13. package/lib/commands/bundle/compute_price_amount.js +1 -1
  14. package/lib/commands/bundle/index.js +1 -1
  15. package/lib/commands/capture/index.js +1 -1
  16. package/lib/commands/capture/refund.js +1 -1
  17. package/lib/commands/capture/refund_amount_cents.js +1 -1
  18. package/lib/commands/checkout_com_payment/details.js +1 -1
  19. package/lib/commands/checkout_com_payment/index.js +1 -1
  20. package/lib/commands/checkout_com_payment/refresh.js +1 -1
  21. package/lib/commands/customer_password_reset/index.js +1 -1
  22. package/lib/commands/customer_password_reset/reset_password_token.js +1 -1
  23. package/lib/commands/gift_card/activate.js +1 -1
  24. package/lib/commands/gift_card/balance_change_cents.js +1 -1
  25. package/lib/commands/gift_card/deactivate.js +1 -1
  26. package/lib/commands/gift_card/index.js +1 -1
  27. package/lib/commands/gift_card/purchase.js +1 -1
  28. package/lib/commands/in_stock_subscription/activate.js +1 -1
  29. package/lib/commands/in_stock_subscription/deactivate.js +1 -1
  30. package/lib/commands/in_stock_subscription/index.js +1 -1
  31. package/lib/commands/klarna_payment/index.js +1 -1
  32. package/lib/commands/klarna_payment/update.js +1 -1
  33. package/lib/commands/line_item/external_price.js +1 -1
  34. package/lib/commands/line_item/index.js +1 -1
  35. package/lib/commands/market/disable.js +1 -1
  36. package/lib/commands/market/enable.js +1 -1
  37. package/lib/commands/market/index.js +1 -1
  38. package/lib/commands/noc.js +1 -1
  39. package/lib/commands/order/approve.js +1 -1
  40. package/lib/commands/order/approve_and_capture.js +1 -1
  41. package/lib/commands/order/archive.js +1 -1
  42. package/lib/commands/order/authorization_amount_cents.js +1 -1
  43. package/lib/commands/order/authorize.js +1 -1
  44. package/lib/commands/order/billing_address_clone_id.js +1 -1
  45. package/lib/commands/order/billing_address_same_as_shipping.js +1 -1
  46. package/lib/commands/order/cancel.js +1 -1
  47. package/lib/commands/order/capture.js +1 -1
  48. package/lib/commands/order/commit_invoice.js +1 -1
  49. package/lib/commands/order/create_subscriptions.d.ts +9 -0
  50. package/lib/commands/order/create_subscriptions.js +21 -0
  51. package/lib/commands/order/customer_payment_source_id.js +1 -1
  52. package/lib/commands/order/index.js +1 -1
  53. package/lib/commands/order/nullify_payment_source.js +1 -1
  54. package/lib/commands/order/place.js +1 -1
  55. package/lib/commands/order/refresh.js +1 -1
  56. package/lib/commands/order/refund.js +1 -1
  57. package/lib/commands/order/refund_invoice.js +1 -1
  58. package/lib/commands/order/save_billing_address_to_customer_address_book.js +1 -1
  59. package/lib/commands/order/save_payment_source_to_customer_wallet.js +1 -1
  60. package/lib/commands/order/save_shipping_address_to_customer_address_book.js +1 -1
  61. package/lib/commands/order/shipping_address_clone_id.js +1 -1
  62. package/lib/commands/order/shipping_address_same_as_billing.js +1 -1
  63. package/lib/commands/order/unarchive.js +1 -1
  64. package/lib/commands/order/update_taxes.js +1 -1
  65. package/lib/commands/order/validate.js +1 -1
  66. package/lib/commands/order_subscription/activate.js +1 -1
  67. package/lib/commands/order_subscription/cancel.js +1 -1
  68. package/lib/commands/order_subscription/deactivate.js +1 -1
  69. package/lib/commands/order_subscription/index.js +1 -1
  70. package/lib/commands/payment_method/disable.js +1 -1
  71. package/lib/commands/payment_method/enable.js +1 -1
  72. package/lib/commands/payment_method/index.js +1 -1
  73. package/lib/commands/return/approve.js +1 -1
  74. package/lib/commands/return/archive.js +1 -1
  75. package/lib/commands/return/cancel.js +1 -1
  76. package/lib/commands/return/index.js +1 -1
  77. package/lib/commands/return/receive.js +1 -1
  78. package/lib/commands/return/reject.js +1 -1
  79. package/lib/commands/return/request.js +1 -1
  80. package/lib/commands/return/restock.js +1 -1
  81. package/lib/commands/return/ship.js +1 -1
  82. package/lib/commands/return/unarchive.js +1 -1
  83. package/lib/commands/return_line_item/index.js +1 -1
  84. package/lib/commands/return_line_item/restock.js +1 -1
  85. package/lib/commands/satispay_payment/index.js +1 -1
  86. package/lib/commands/satispay_payment/refresh.js +1 -1
  87. package/lib/commands/shipment/get_rates.js +1 -1
  88. package/lib/commands/shipment/index.js +1 -1
  89. package/lib/commands/shipment/on_hold.js +1 -1
  90. package/lib/commands/shipment/packing.js +1 -1
  91. package/lib/commands/shipment/picking.js +1 -1
  92. package/lib/commands/shipment/purchase.js +1 -1
  93. package/lib/commands/shipment/ready_to_ship.js +1 -1
  94. package/lib/commands/shipment/ship.js +1 -1
  95. package/lib/commands/shipping_method/disable.js +1 -1
  96. package/lib/commands/shipping_method/enable.js +1 -1
  97. package/lib/commands/shipping_method/index.js +1 -1
  98. package/lib/commands/stock_transfer/cancel.js +1 -1
  99. package/lib/commands/stock_transfer/complete.js +1 -1
  100. package/lib/commands/stock_transfer/in_transit.js +1 -1
  101. package/lib/commands/stock_transfer/index.js +1 -1
  102. package/lib/commands/stock_transfer/picking.js +1 -1
  103. package/lib/commands/stock_transfer/upcoming.js +1 -1
  104. package/lib/commands/stripe_payment/index.js +1 -1
  105. package/lib/commands/stripe_payment/refresh.js +1 -1
  106. package/lib/commands/stripe_payment/update.d.ts +9 -0
  107. package/lib/commands/stripe_payment/update.js +21 -0
  108. package/lib/commands/webhook/index.js +1 -1
  109. package/lib/commands/webhook/reset_circuit.js +1 -1
  110. package/lib/triggers/adyen_payments.d.ts +1 -3
  111. package/lib/triggers/authorizations.d.ts +1 -3
  112. package/lib/triggers/axerve_payments.d.ts +1 -3
  113. package/lib/triggers/bundles.d.ts +1 -3
  114. package/lib/triggers/captures.d.ts +1 -3
  115. package/lib/triggers/checkout_com_payments.d.ts +1 -3
  116. package/lib/triggers/customer_password_resets.d.ts +1 -3
  117. package/lib/triggers/gift_cards.d.ts +1 -3
  118. package/lib/triggers/in_stock_subscriptions.d.ts +1 -3
  119. package/lib/triggers/klarna_payments.d.ts +1 -3
  120. package/lib/triggers/line_items.d.ts +1 -3
  121. package/lib/triggers/markets.d.ts +1 -3
  122. package/lib/triggers/order_subscriptions.d.ts +1 -3
  123. package/lib/triggers/orders.d.ts +2 -4
  124. package/lib/triggers/orders.js +5 -0
  125. package/lib/triggers/payment_methods.d.ts +1 -3
  126. package/lib/triggers/return_line_items.d.ts +1 -3
  127. package/lib/triggers/returns.d.ts +1 -3
  128. package/lib/triggers/satispay_payments.d.ts +1 -3
  129. package/lib/triggers/shipments.d.ts +1 -3
  130. package/lib/triggers/shipping_methods.d.ts +1 -3
  131. package/lib/triggers/stock_transfers.d.ts +1 -3
  132. package/lib/triggers/stripe_payments.d.ts +2 -4
  133. package/lib/triggers/stripe_payments.js +5 -0
  134. package/lib/triggers/webhooks.d.ts +1 -3
  135. package/oclif.manifest.json +145 -1
  136. package/package.json +13 -13
package/README.md CHANGED
@@ -75,6 +75,7 @@ $ commercelayer plugins:install triggers
75
75
  * [`commercelayer order:cancel ID`](#commercelayer-ordercancel-id)
76
76
  * [`commercelayer order:capture ID`](#commercelayer-ordercapture-id)
77
77
  * [`commercelayer order:commit_invoice ID`](#commercelayer-ordercommit_invoice-id)
78
+ * [`commercelayer order:create_subscriptions ID`](#commercelayer-ordercreate_subscriptions-id)
78
79
  * [`commercelayer order:customer_payment_source_id ID`](#commercelayer-ordercustomer_payment_source_id-id)
79
80
  * [`commercelayer order:nullify_payment_source ID`](#commercelayer-ordernullify_payment_source-id)
80
81
  * [`commercelayer order:place ID`](#commercelayer-orderplace-id)
@@ -129,6 +130,7 @@ $ commercelayer plugins:install triggers
129
130
  * [`commercelayer stock_transfer:upcoming ID`](#commercelayer-stock_transferupcoming-id)
130
131
  * [`commercelayer stripe_payment ID`](#commercelayer-stripe_payment-id)
131
132
  * [`commercelayer stripe_payment:refresh ID`](#commercelayer-stripe_paymentrefresh-id)
133
+ * [`commercelayer stripe_payment:update ID`](#commercelayer-stripe_paymentupdate-id)
132
134
  * [`commercelayer webhook ID`](#commercelayer-webhook-id)
133
135
  * [`commercelayer webhook:reset_circuit ID`](#commercelayer-webhookreset_circuit-id)
134
136
 
@@ -1129,6 +1131,29 @@ DESCRIPTION
1129
1131
 
1130
1132
  _See code: [src/commands/order/commit_invoice.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/order/commit_invoice.ts)_
1131
1133
 
1134
+ ### `commercelayer order:create_subscriptions ID`
1135
+
1136
+ Send this attribute if you want to create order subscriptions from the recurring line items upon/after placing the order. Subscriptions are generated according to associated subscription model strategy.
1137
+
1138
+ ```sh-session
1139
+ USAGE
1140
+ $ commercelayer order:create_subscriptions ID [-u [-j -p]]
1141
+
1142
+ ARGUMENTS
1143
+ ID the unique id of the resource
1144
+
1145
+ FLAGS
1146
+ -j, --json print result in JSON format
1147
+ -p, --print print out the modified resource
1148
+ -u, --unformatted print JSON output without indentation
1149
+
1150
+ DESCRIPTION
1151
+ Send this attribute if you want to create order subscriptions from the recurring line items upon/after placing the
1152
+ order. Subscriptions are generated according to associated subscription model strategy.
1153
+ ```
1154
+
1155
+ _See code: [src/commands/order/create_subscriptions.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/order/create_subscriptions.ts)_
1156
+
1132
1157
  ### `commercelayer order:customer_payment_source_id ID`
1133
1158
 
1134
1159
  The id of the customer payment source (i.e. credit card) that you want to use as the order's payment source.
@@ -2324,6 +2349,28 @@ DESCRIPTION
2324
2349
 
2325
2350
  _See code: [src/commands/stripe_payment/refresh.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/stripe_payment/refresh.ts)_
2326
2351
 
2352
+ ### `commercelayer stripe_payment:update ID`
2353
+
2354
+ Send this attribute if you want to update the created payment intent with fresh order data.
2355
+
2356
+ ```sh-session
2357
+ USAGE
2358
+ $ commercelayer stripe_payment:update ID [-u [-j -p]]
2359
+
2360
+ ARGUMENTS
2361
+ ID the unique id of the resource
2362
+
2363
+ FLAGS
2364
+ -j, --json print result in JSON format
2365
+ -p, --print print out the modified resource
2366
+ -u, --unformatted print JSON output without indentation
2367
+
2368
+ DESCRIPTION
2369
+ Send this attribute if you want to update the created payment intent with fresh order data.
2370
+ ```
2371
+
2372
+ _See code: [src/commands/stripe_payment/update.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/stripe_payment/update.ts)_
2373
+
2327
2374
  ### `commercelayer webhook ID`
2328
2375
 
2329
2376
  Execute an action on a resource of type webhooks.
package/lib/base.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Command, Flags } from '@oclif/core';
2
- import { CommandError } from '@oclif/core/lib/interfaces';
3
- import { Resource } from '@commercelayer/sdk/lib/cjs/resource';
4
- import { CLIError } from '@oclif/core/lib/errors';
2
+ import type { CommandError } from '@oclif/core/lib/interfaces';
3
+ import type { Resource } from '@commercelayer/sdk/lib/cjs/resource';
4
+ import type { CLIError } from '@oclif/core/lib/errors';
5
5
  export default abstract class extends Command {
6
6
  static baseFlags: {
7
7
  organization: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
package/lib/base.js CHANGED
@@ -51,7 +51,6 @@ class default_1 extends core_1.Command {
51
51
  this.log(`\nAction ${cli_core_1.clColor.api.trigger(action)} executed without errors on ${resource.replace(/_/g, ' ')} ${cli_core_1.clColor.api.id(id)}\n`);
52
52
  }
53
53
  }
54
- exports.default = default_1;
55
54
  default_1.baseFlags = {
56
55
  organization: core_1.Flags.string({
57
56
  char: 'o',
@@ -90,3 +89,4 @@ default_1.baseFlags = {
90
89
  default_1.args = {
91
90
  id: core_1.Args.string({ name: 'id', description: 'the unique id of the resource', required: true }),
92
91
  };
92
+ exports.default = default_1;
@@ -15,7 +15,7 @@ class AdyenPaymentDetails extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = AdyenPaymentDetails;
19
18
  AdyenPaymentDetails.description = adyen_payments_1.triggers[TRIGGER].description;
20
19
  AdyenPaymentDetails.flags = {};
21
20
  AdyenPaymentDetails.args = Object.assign({}, base_1.default.args);
21
+ exports.default = AdyenPaymentDetails;
@@ -32,7 +32,7 @@ class AdyenPaymentIndex extends base_1.default {
32
32
  return res;
33
33
  }
34
34
  }
35
- exports.default = AdyenPaymentIndex;
36
35
  AdyenPaymentIndex.description = 'execute an action on a resource of type adyen_payments';
37
36
  AdyenPaymentIndex.flags = {};
38
37
  AdyenPaymentIndex.args = Object.assign({}, base_1.default.args);
38
+ exports.default = AdyenPaymentIndex;
@@ -15,7 +15,7 @@ class AuthorizationCapture extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = AuthorizationCapture;
19
18
  AuthorizationCapture.description = authorizations_1.triggers[TRIGGER].description;
20
19
  AuthorizationCapture.flags = {};
21
20
  AuthorizationCapture.args = Object.assign({}, base_1.default.args);
21
+ exports.default = AuthorizationCapture;
@@ -15,7 +15,7 @@ class AuthorizationCaptureAmountCents extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = AuthorizationCaptureAmountCents;
19
18
  AuthorizationCaptureAmountCents.description = authorizations_1.triggers[TRIGGER].description;
20
19
  AuthorizationCaptureAmountCents.flags = {};
21
20
  AuthorizationCaptureAmountCents.args = Object.assign({}, base_1.default.args);
21
+ exports.default = AuthorizationCaptureAmountCents;
@@ -32,7 +32,7 @@ class AuthorizationIndex extends base_1.default {
32
32
  return res;
33
33
  }
34
34
  }
35
- exports.default = AuthorizationIndex;
36
35
  AuthorizationIndex.description = 'execute an action on a resource of type authorizations';
37
36
  AuthorizationIndex.flags = {};
38
37
  AuthorizationIndex.args = Object.assign({}, base_1.default.args);
38
+ exports.default = AuthorizationIndex;
@@ -15,7 +15,7 @@ class AuthorizationVoid extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = AuthorizationVoid;
19
18
  AuthorizationVoid.description = authorizations_1.triggers[TRIGGER].description;
20
19
  AuthorizationVoid.flags = {};
21
20
  AuthorizationVoid.args = Object.assign({}, base_1.default.args);
21
+ exports.default = AuthorizationVoid;
@@ -32,7 +32,7 @@ class AxervePaymentIndex extends base_1.default {
32
32
  return res;
33
33
  }
34
34
  }
35
- exports.default = AxervePaymentIndex;
36
35
  AxervePaymentIndex.description = 'execute an action on a resource of type axerve_payments';
37
36
  AxervePaymentIndex.flags = {};
38
37
  AxervePaymentIndex.args = Object.assign({}, base_1.default.args);
38
+ exports.default = AxervePaymentIndex;
@@ -15,7 +15,7 @@ class AxervePaymentUpdate extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = AxervePaymentUpdate;
19
18
  AxervePaymentUpdate.description = axerve_payments_1.triggers[TRIGGER].description;
20
19
  AxervePaymentUpdate.flags = {};
21
20
  AxervePaymentUpdate.args = Object.assign({}, base_1.default.args);
21
+ exports.default = AxervePaymentUpdate;
@@ -15,7 +15,7 @@ class BundleComputeCompareAtAmount extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = BundleComputeCompareAtAmount;
19
18
  BundleComputeCompareAtAmount.description = bundles_1.triggers[TRIGGER].description;
20
19
  BundleComputeCompareAtAmount.flags = {};
21
20
  BundleComputeCompareAtAmount.args = Object.assign({}, base_1.default.args);
21
+ exports.default = BundleComputeCompareAtAmount;
@@ -15,7 +15,7 @@ class BundleComputePriceAmount extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = BundleComputePriceAmount;
19
18
  BundleComputePriceAmount.description = bundles_1.triggers[TRIGGER].description;
20
19
  BundleComputePriceAmount.flags = {};
21
20
  BundleComputePriceAmount.args = Object.assign({}, base_1.default.args);
21
+ exports.default = BundleComputePriceAmount;
@@ -32,7 +32,7 @@ class BundleIndex extends base_1.default {
32
32
  return res;
33
33
  }
34
34
  }
35
- exports.default = BundleIndex;
36
35
  BundleIndex.description = 'execute an action on a resource of type bundles';
37
36
  BundleIndex.flags = {};
38
37
  BundleIndex.args = Object.assign({}, base_1.default.args);
38
+ exports.default = BundleIndex;
@@ -32,7 +32,7 @@ class CaptureIndex extends base_1.default {
32
32
  return res;
33
33
  }
34
34
  }
35
- exports.default = CaptureIndex;
36
35
  CaptureIndex.description = 'execute an action on a resource of type captures';
37
36
  CaptureIndex.flags = {};
38
37
  CaptureIndex.args = Object.assign({}, base_1.default.args);
38
+ exports.default = CaptureIndex;
@@ -15,7 +15,7 @@ class CaptureRefund extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = CaptureRefund;
19
18
  CaptureRefund.description = captures_1.triggers[TRIGGER].description;
20
19
  CaptureRefund.flags = {};
21
20
  CaptureRefund.args = Object.assign({}, base_1.default.args);
21
+ exports.default = CaptureRefund;
@@ -15,7 +15,7 @@ class CaptureRefundAmountCents extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = CaptureRefundAmountCents;
19
18
  CaptureRefundAmountCents.description = captures_1.triggers[TRIGGER].description;
20
19
  CaptureRefundAmountCents.flags = {};
21
20
  CaptureRefundAmountCents.args = Object.assign({}, base_1.default.args);
21
+ exports.default = CaptureRefundAmountCents;
@@ -15,7 +15,7 @@ class CheckoutComPaymentDetails extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = CheckoutComPaymentDetails;
19
18
  CheckoutComPaymentDetails.description = checkout_com_payments_1.triggers[TRIGGER].description;
20
19
  CheckoutComPaymentDetails.flags = {};
21
20
  CheckoutComPaymentDetails.args = Object.assign({}, base_1.default.args);
21
+ exports.default = CheckoutComPaymentDetails;
@@ -32,7 +32,7 @@ class CheckoutComPaymentIndex extends base_1.default {
32
32
  return res;
33
33
  }
34
34
  }
35
- exports.default = CheckoutComPaymentIndex;
36
35
  CheckoutComPaymentIndex.description = 'execute an action on a resource of type checkout_com_payments';
37
36
  CheckoutComPaymentIndex.flags = {};
38
37
  CheckoutComPaymentIndex.args = Object.assign({}, base_1.default.args);
38
+ exports.default = CheckoutComPaymentIndex;
@@ -15,7 +15,7 @@ class CheckoutComPaymentRefresh extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = CheckoutComPaymentRefresh;
19
18
  CheckoutComPaymentRefresh.description = checkout_com_payments_1.triggers[TRIGGER].description;
20
19
  CheckoutComPaymentRefresh.flags = {};
21
20
  CheckoutComPaymentRefresh.args = Object.assign({}, base_1.default.args);
21
+ exports.default = CheckoutComPaymentRefresh;
@@ -32,7 +32,7 @@ class CustomerPasswordResetIndex extends base_1.default {
32
32
  return res;
33
33
  }
34
34
  }
35
- exports.default = CustomerPasswordResetIndex;
36
35
  CustomerPasswordResetIndex.description = 'execute an action on a resource of type customer_password_resets';
37
36
  CustomerPasswordResetIndex.flags = {};
38
37
  CustomerPasswordResetIndex.args = Object.assign({}, base_1.default.args);
38
+ exports.default = CustomerPasswordResetIndex;
@@ -15,7 +15,7 @@ class CustomerPasswordResetResetPasswordToken extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = CustomerPasswordResetResetPasswordToken;
19
18
  CustomerPasswordResetResetPasswordToken.description = customer_password_resets_1.triggers[TRIGGER].description;
20
19
  CustomerPasswordResetResetPasswordToken.flags = {};
21
20
  CustomerPasswordResetResetPasswordToken.args = Object.assign({}, base_1.default.args);
21
+ exports.default = CustomerPasswordResetResetPasswordToken;
@@ -15,7 +15,7 @@ class GiftCardActivate extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = GiftCardActivate;
19
18
  GiftCardActivate.description = gift_cards_1.triggers[TRIGGER].description;
20
19
  GiftCardActivate.flags = {};
21
20
  GiftCardActivate.args = Object.assign({}, base_1.default.args);
21
+ exports.default = GiftCardActivate;
@@ -15,7 +15,7 @@ class GiftCardBalanceChangeCents extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = GiftCardBalanceChangeCents;
19
18
  GiftCardBalanceChangeCents.description = gift_cards_1.triggers[TRIGGER].description;
20
19
  GiftCardBalanceChangeCents.flags = {};
21
20
  GiftCardBalanceChangeCents.args = Object.assign({}, base_1.default.args);
21
+ exports.default = GiftCardBalanceChangeCents;
@@ -15,7 +15,7 @@ class GiftCardDeactivate extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = GiftCardDeactivate;
19
18
  GiftCardDeactivate.description = gift_cards_1.triggers[TRIGGER].description;
20
19
  GiftCardDeactivate.flags = {};
21
20
  GiftCardDeactivate.args = Object.assign({}, base_1.default.args);
21
+ exports.default = GiftCardDeactivate;
@@ -32,7 +32,7 @@ class GiftCardIndex extends base_1.default {
32
32
  return res;
33
33
  }
34
34
  }
35
- exports.default = GiftCardIndex;
36
35
  GiftCardIndex.description = 'execute an action on a resource of type gift_cards';
37
36
  GiftCardIndex.flags = {};
38
37
  GiftCardIndex.args = Object.assign({}, base_1.default.args);
38
+ exports.default = GiftCardIndex;
@@ -15,7 +15,7 @@ class GiftCardPurchase extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = GiftCardPurchase;
19
18
  GiftCardPurchase.description = gift_cards_1.triggers[TRIGGER].description;
20
19
  GiftCardPurchase.flags = {};
21
20
  GiftCardPurchase.args = Object.assign({}, base_1.default.args);
21
+ exports.default = GiftCardPurchase;
@@ -15,7 +15,7 @@ class InStockSubscriptionActivate extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = InStockSubscriptionActivate;
19
18
  InStockSubscriptionActivate.description = in_stock_subscriptions_1.triggers[TRIGGER].description;
20
19
  InStockSubscriptionActivate.flags = {};
21
20
  InStockSubscriptionActivate.args = Object.assign({}, base_1.default.args);
21
+ exports.default = InStockSubscriptionActivate;
@@ -15,7 +15,7 @@ class InStockSubscriptionDeactivate extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = InStockSubscriptionDeactivate;
19
18
  InStockSubscriptionDeactivate.description = in_stock_subscriptions_1.triggers[TRIGGER].description;
20
19
  InStockSubscriptionDeactivate.flags = {};
21
20
  InStockSubscriptionDeactivate.args = Object.assign({}, base_1.default.args);
21
+ exports.default = InStockSubscriptionDeactivate;
@@ -32,7 +32,7 @@ class InStockSubscriptionIndex extends base_1.default {
32
32
  return res;
33
33
  }
34
34
  }
35
- exports.default = InStockSubscriptionIndex;
36
35
  InStockSubscriptionIndex.description = 'execute an action on a resource of type in_stock_subscriptions';
37
36
  InStockSubscriptionIndex.flags = {};
38
37
  InStockSubscriptionIndex.args = Object.assign({}, base_1.default.args);
38
+ exports.default = InStockSubscriptionIndex;
@@ -32,7 +32,7 @@ class KlarnaPaymentIndex extends base_1.default {
32
32
  return res;
33
33
  }
34
34
  }
35
- exports.default = KlarnaPaymentIndex;
36
35
  KlarnaPaymentIndex.description = 'execute an action on a resource of type klarna_payments';
37
36
  KlarnaPaymentIndex.flags = {};
38
37
  KlarnaPaymentIndex.args = Object.assign({}, base_1.default.args);
38
+ exports.default = KlarnaPaymentIndex;
@@ -15,7 +15,7 @@ class KlarnaPaymentUpdate extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = KlarnaPaymentUpdate;
19
18
  KlarnaPaymentUpdate.description = klarna_payments_1.triggers[TRIGGER].description;
20
19
  KlarnaPaymentUpdate.flags = {};
21
20
  KlarnaPaymentUpdate.args = Object.assign({}, base_1.default.args);
21
+ exports.default = KlarnaPaymentUpdate;
@@ -15,7 +15,7 @@ class LineItemExternalPrice extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = LineItemExternalPrice;
19
18
  LineItemExternalPrice.description = line_items_1.triggers[TRIGGER].description;
20
19
  LineItemExternalPrice.flags = {};
21
20
  LineItemExternalPrice.args = Object.assign({}, base_1.default.args);
21
+ exports.default = LineItemExternalPrice;
@@ -32,7 +32,7 @@ class LineItemIndex extends base_1.default {
32
32
  return res;
33
33
  }
34
34
  }
35
- exports.default = LineItemIndex;
36
35
  LineItemIndex.description = 'execute an action on a resource of type line_items';
37
36
  LineItemIndex.flags = {};
38
37
  LineItemIndex.args = Object.assign({}, base_1.default.args);
38
+ exports.default = LineItemIndex;
@@ -15,7 +15,7 @@ class MarketDisable extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = MarketDisable;
19
18
  MarketDisable.description = markets_1.triggers[TRIGGER].description;
20
19
  MarketDisable.flags = {};
21
20
  MarketDisable.args = Object.assign({}, base_1.default.args);
21
+ exports.default = MarketDisable;
@@ -15,7 +15,7 @@ class MarketEnable extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = MarketEnable;
19
18
  MarketEnable.description = markets_1.triggers[TRIGGER].description;
20
19
  MarketEnable.flags = {};
21
20
  MarketEnable.args = Object.assign({}, base_1.default.args);
21
+ exports.default = MarketEnable;
@@ -32,7 +32,7 @@ class MarketIndex extends base_1.default {
32
32
  return res;
33
33
  }
34
34
  }
35
- exports.default = MarketIndex;
36
35
  MarketIndex.description = 'execute an action on a resource of type markets';
37
36
  MarketIndex.flags = {};
38
37
  MarketIndex.args = Object.assign({}, base_1.default.args);
38
+ exports.default = MarketIndex;
@@ -8,6 +8,6 @@ class Noc extends core_1.Command {
8
8
  return output;
9
9
  }
10
10
  }
11
- exports.default = Noc;
12
11
  Noc.hidden = true;
13
12
  Noc.flags = {};
13
+ exports.default = Noc;
@@ -15,7 +15,7 @@ class OrderApprove extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = OrderApprove;
19
18
  OrderApprove.description = orders_1.triggers[TRIGGER].description;
20
19
  OrderApprove.flags = {};
21
20
  OrderApprove.args = Object.assign({}, base_1.default.args);
21
+ exports.default = OrderApprove;
@@ -15,7 +15,7 @@ class OrderApproveAndCapture extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = OrderApproveAndCapture;
19
18
  OrderApproveAndCapture.description = orders_1.triggers[TRIGGER].description;
20
19
  OrderApproveAndCapture.flags = {};
21
20
  OrderApproveAndCapture.args = Object.assign({}, base_1.default.args);
21
+ exports.default = OrderApproveAndCapture;
@@ -15,7 +15,7 @@ class OrderArchive extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = OrderArchive;
19
18
  OrderArchive.description = orders_1.triggers[TRIGGER].description;
20
19
  OrderArchive.flags = {};
21
20
  OrderArchive.args = Object.assign({}, base_1.default.args);
21
+ exports.default = OrderArchive;
@@ -15,7 +15,7 @@ class OrderAuthorizationAmountCents extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = OrderAuthorizationAmountCents;
19
18
  OrderAuthorizationAmountCents.description = orders_1.triggers[TRIGGER].description;
20
19
  OrderAuthorizationAmountCents.flags = {};
21
20
  OrderAuthorizationAmountCents.args = Object.assign({}, base_1.default.args);
21
+ exports.default = OrderAuthorizationAmountCents;
@@ -15,7 +15,7 @@ class OrderAuthorize extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = OrderAuthorize;
19
18
  OrderAuthorize.description = orders_1.triggers[TRIGGER].description;
20
19
  OrderAuthorize.flags = {};
21
20
  OrderAuthorize.args = Object.assign({}, base_1.default.args);
21
+ exports.default = OrderAuthorize;
@@ -15,7 +15,6 @@ class OrderBillingAddressCloneId extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = OrderBillingAddressCloneId;
19
18
  OrderBillingAddressCloneId.description = orders_1.triggers[TRIGGER].description;
20
19
  OrderBillingAddressCloneId.flags = {
21
20
  value: base_1.Flags.string({
@@ -26,3 +25,4 @@ OrderBillingAddressCloneId.flags = {
26
25
  }),
27
26
  };
28
27
  OrderBillingAddressCloneId.args = Object.assign({}, base_1.default.args);
28
+ exports.default = OrderBillingAddressCloneId;
@@ -15,7 +15,7 @@ class OrderBillingAddressSameAsShipping extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = OrderBillingAddressSameAsShipping;
19
18
  OrderBillingAddressSameAsShipping.description = orders_1.triggers[TRIGGER].description;
20
19
  OrderBillingAddressSameAsShipping.flags = {};
21
20
  OrderBillingAddressSameAsShipping.args = Object.assign({}, base_1.default.args);
21
+ exports.default = OrderBillingAddressSameAsShipping;
@@ -15,7 +15,7 @@ class OrderCancel extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = OrderCancel;
19
18
  OrderCancel.description = orders_1.triggers[TRIGGER].description;
20
19
  OrderCancel.flags = {};
21
20
  OrderCancel.args = Object.assign({}, base_1.default.args);
21
+ exports.default = OrderCancel;
@@ -15,7 +15,7 @@ class OrderCapture extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = OrderCapture;
19
18
  OrderCapture.description = orders_1.triggers[TRIGGER].description;
20
19
  OrderCapture.flags = {};
21
20
  OrderCapture.args = Object.assign({}, base_1.default.args);
21
+ exports.default = OrderCapture;
@@ -15,7 +15,7 @@ class OrderCommitInvoice extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = OrderCommitInvoice;
19
18
  OrderCommitInvoice.description = orders_1.triggers[TRIGGER].description;
20
19
  OrderCommitInvoice.flags = {};
21
20
  OrderCommitInvoice.args = Object.assign({}, base_1.default.args);
21
+ exports.default = OrderCommitInvoice;
@@ -0,0 +1,9 @@
1
+ import Command from '../../base';
2
+ export default class OrderCreateSubscriptions extends Command {
3
+ static description: string;
4
+ static flags: {};
5
+ static args: {
6
+ id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
7
+ };
8
+ run(): Promise<any>;
9
+ }
@@ -0,0 +1,21 @@
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 exec_1 = tslib_1.__importDefault(require("../../exec"));
6
+ const orders_1 = require("../../triggers/orders");
7
+ const TRIGGER = 'create_subscriptions';
8
+ class OrderCreateSubscriptions extends base_1.default {
9
+ async run() {
10
+ const { args, flags } = await this.parse(OrderCreateSubscriptions);
11
+ const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
12
+ if (flags.print)
13
+ this.printOutput(res, flags);
14
+ this.successMessage('order', TRIGGER, res.id);
15
+ return res;
16
+ }
17
+ }
18
+ OrderCreateSubscriptions.description = orders_1.triggers[TRIGGER].description;
19
+ OrderCreateSubscriptions.flags = {};
20
+ OrderCreateSubscriptions.args = Object.assign({}, base_1.default.args);
21
+ exports.default = OrderCreateSubscriptions;
@@ -15,7 +15,6 @@ class OrderCustomerPaymentSourceId extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = OrderCustomerPaymentSourceId;
19
18
  OrderCustomerPaymentSourceId.description = orders_1.triggers[TRIGGER].description;
20
19
  OrderCustomerPaymentSourceId.flags = {
21
20
  value: base_1.Flags.string({
@@ -26,3 +25,4 @@ OrderCustomerPaymentSourceId.flags = {
26
25
  }),
27
26
  };
28
27
  OrderCustomerPaymentSourceId.args = Object.assign({}, base_1.default.args);
28
+ exports.default = OrderCustomerPaymentSourceId;
@@ -32,7 +32,7 @@ class OrderIndex extends base_1.default {
32
32
  return res;
33
33
  }
34
34
  }
35
- exports.default = OrderIndex;
36
35
  OrderIndex.description = 'execute an action on a resource of type orders';
37
36
  OrderIndex.flags = {};
38
37
  OrderIndex.args = Object.assign({}, base_1.default.args);
38
+ exports.default = OrderIndex;
@@ -15,7 +15,7 @@ class OrderNullifyPaymentSource extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = OrderNullifyPaymentSource;
19
18
  OrderNullifyPaymentSource.description = orders_1.triggers[TRIGGER].description;
20
19
  OrderNullifyPaymentSource.flags = {};
21
20
  OrderNullifyPaymentSource.args = Object.assign({}, base_1.default.args);
21
+ exports.default = OrderNullifyPaymentSource;
@@ -15,7 +15,7 @@ class OrderPlace extends base_1.default {
15
15
  return res;
16
16
  }
17
17
  }
18
- exports.default = OrderPlace;
19
18
  OrderPlace.description = orders_1.triggers[TRIGGER].description;
20
19
  OrderPlace.flags = {};
21
20
  OrderPlace.args = Object.assign({}, base_1.default.args);
21
+ exports.default = OrderPlace;