@rebilly/instruments 8.50.1 → 8.51.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [8.51.1](https://github.com/Rebilly/rebilly/compare/instruments/core-v8.51.0...instruments/core-v8.51.1) (2024-02-22)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **rebilly-js-sdk:** Add expand to experimental billing portal get ([#3658](https://github.com/Rebilly/rebilly/issues/3658)) ([df117c6](https://github.com/Rebilly/rebilly/commit/df117c64225d56379483cef49c287a4110e846f0))
7
+
8
+ ## [8.51.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v8.50.1...instruments/core-v8.51.0) (2024-02-22)
9
+
10
+
11
+ ### Features
12
+
13
+ * **rebilly-js-sdk:** update resources ([#3631](https://github.com/Rebilly/rebilly/issues/3631)) ([cffd19d](https://github.com/Rebilly/rebilly/commit/cffd19da041e4e37ac3cdf1e9a3622a2c4005b8d))
14
+
1
15
  ## [8.50.1](https://github.com/Rebilly/rebilly/compare/instruments/core-v8.50.0...instruments/core-v8.50.1) (2024-02-19)
2
16
 
3
17
 
package/dist/index.js CHANGED
@@ -5996,7 +5996,7 @@ function cloneArrayDeep(val, instanceClone) {
5996
5996
  return res;
5997
5997
  }
5998
5998
  var cloneDeep_1 = cloneDeep;
5999
- const version = "55.23.0";
5999
+ const version = "55.24.0";
6000
6000
  let urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
6001
6001
  let nanoid = (size2 = 21) => {
6002
6002
  let id2 = "";
@@ -7814,6 +7814,9 @@ function PayoutRequestsResource$1({ apiHandler }) {
7814
7814
  update({ id: id2, data }) {
7815
7815
  return apiHandler.put(`payout-requests/${id2}`, data);
7816
7816
  },
7817
+ cancel({ id: id2, data }) {
7818
+ return apiHandler.post(`payout-requests/${id2}/cancel`, data);
7819
+ },
7817
7820
  getPaymentInstruments({ id: id2 }) {
7818
7821
  return apiHandler.get(`payout-requests/${id2}/payment-instruments`);
7819
7822
  }
@@ -8017,29 +8020,6 @@ function ResourceResource({ apiHandler }) {
8017
8020
  }
8018
8021
  };
8019
8022
  }
8020
- function RichBillingPortalsResource$1({ apiHandler }) {
8021
- return {
8022
- getAll({
8023
- filter: filter2 = null,
8024
- sort = null,
8025
- limit = null,
8026
- offset = null,
8027
- q: q2 = null
8028
- } = {}) {
8029
- const params = { filter: filter2, sort, limit, offset, q: q2 };
8030
- return apiHandler.getAll(`rich-billing-portals`, params);
8031
- },
8032
- create({ id: id2 = "", data }) {
8033
- return apiHandler.create(`rich-billing-portals/${id2}`, id2, data);
8034
- },
8035
- get({ id: id2 }) {
8036
- return apiHandler.get(`rich-billing-portals/${id2}`);
8037
- },
8038
- update({ id: id2, data }) {
8039
- return apiHandler.put(`rich-billing-portals/${id2}`, data);
8040
- }
8041
- };
8042
- }
8043
8023
  function RiskScoreRulesResource({ apiHandler }) {
8044
8024
  return {
8045
8025
  getAll() {
@@ -8283,8 +8263,9 @@ function SubscriptionsResource$2({ apiHandler }) {
8283
8263
  void({ id: id2 }) {
8284
8264
  return apiHandler.post(`subscriptions/${id2}/void`);
8285
8265
  },
8286
- changeItems({ id: id2, data }) {
8287
- return apiHandler.post(`subscriptions/${id2}/change-items`, data);
8266
+ changeItems({ id: id2, data, expand = null }) {
8267
+ const params = { expand };
8268
+ return apiHandler.post(`subscriptions/${id2}/change-items`, data, params);
8288
8269
  },
8289
8270
  updateItem({ id: id2, itemId, data }) {
8290
8271
  return apiHandler.patch(`subscriptions/${id2}/items/${itemId}`, data);
@@ -8691,7 +8672,6 @@ class ApiInstance {
8691
8672
  this.purchase = PurchaseResource$1({ apiHandler });
8692
8673
  this.quotes = QuotesResource$1({ apiHandler });
8693
8674
  this.resource = ResourceResource({ apiHandler });
8694
- this.richBillingPortals = RichBillingPortalsResource$1({ apiHandler });
8695
8675
  this.riskScoreRules = RiskScoreRulesResource({ apiHandler });
8696
8676
  this.roles = RolesResource({ apiHandler });
8697
8677
  this.search = SearchResource({ apiHandler });
@@ -9251,6 +9231,14 @@ function DepositStrategiesResource({ apiHandler }) {
9251
9231
  }
9252
9232
  };
9253
9233
  }
9234
+ function ExperimentalResource({ apiHandler }) {
9235
+ return {
9236
+ get({ slug, expand = null }) {
9237
+ const params = { expand };
9238
+ return apiHandler.get(`experimental/billing-portals/${slug}`, params);
9239
+ }
9240
+ };
9241
+ }
9254
9242
  function InvoicesResource({ apiHandler }) {
9255
9243
  return {
9256
9244
  getAll({
@@ -9478,14 +9466,6 @@ function ReadyToPayoutResource({ apiHandler }) {
9478
9466
  }
9479
9467
  };
9480
9468
  }
9481
- function RichBillingPortalsResource({ apiHandler }) {
9482
- return {
9483
- get({ id: id2, expand = null }) {
9484
- const params = { expand };
9485
- return apiHandler.get(`rich-billing-portals/${id2}`, params);
9486
- }
9487
- };
9488
- }
9489
9469
  function SubscriptionsResource({ apiHandler }) {
9490
9470
  return {
9491
9471
  changeItems({ id: id2, data }) {
@@ -9539,6 +9519,7 @@ class StorefrontApiInstance {
9539
9519
  this.depositRequests = DepositRequestsResource({ apiHandler });
9540
9520
  this.deposit = DepositResource({ apiHandler });
9541
9521
  this.depositStrategies = DepositStrategiesResource({ apiHandler });
9522
+ this.experimental = ExperimentalResource({ apiHandler });
9542
9523
  this.invoices = InvoicesResource({ apiHandler });
9543
9524
  this.kycDocuments = KycDocumentsResource({ apiHandler });
9544
9525
  this.kycLivenessSessions = KycLivenessSessionsResource({ apiHandler });
@@ -9551,7 +9532,6 @@ class StorefrontApiInstance {
9551
9532
  this.purchase = PurchaseResource({ apiHandler });
9552
9533
  this.quotes = QuotesResource({ apiHandler });
9553
9534
  this.readyToPayout = ReadyToPayoutResource({ apiHandler });
9554
- this.richBillingPortals = RichBillingPortalsResource({ apiHandler });
9555
9535
  this.subscriptions = SubscriptionsResource({ apiHandler });
9556
9536
  this.transactions = TransactionsResource({ apiHandler });
9557
9537
  this.websites = WebsitesResource({ apiHandler });
@@ -23727,7 +23707,7 @@ function handleComputedProperty(options) {
23727
23707
  var _a;
23728
23708
  return Object.assign({}, options, {
23729
23709
  _computed: {
23730
- version: "8.50.0",
23710
+ version: "8.51.0",
23731
23711
  paymentMethodsUrl: ((_a = options._dev) == null ? void 0 : _a.paymentMethodsUrl) ?? "https://forms.secure-payments.app"
23732
23712
  }
23733
23713
  });
@@ -27067,7 +27047,7 @@ class RebillyInstrumentsInstance {
27067
27047
  await show({ componentName, payload });
27068
27048
  }
27069
27049
  get version() {
27070
- return `RebillyInstruments Ver.${"8.50.0"}`;
27050
+ return `RebillyInstruments Ver.${"8.51.0"}`;
27071
27051
  }
27072
27052
  on(eventName, callback) {
27073
27053
  on({ eventName, callback });