@rebilly/instruments 8.43.0 → 8.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [8.44.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v8.43.1...instruments/core-v8.44.0) (2024-02-07)
2
+
3
+
4
+ ### Features
5
+
6
+ * **rebilly-js-sdk:** Add expand to storefront endpoints ([#3356](https://github.com/Rebilly/rebilly/issues/3356)) ([909715a](https://github.com/Rebilly/rebilly/commit/909715a2ee7e89207fe5238e9728b0df4992cb54))
7
+
8
+ ## [8.43.1](https://github.com/Rebilly/rebilly/compare/instruments/core-v8.43.0...instruments/core-v8.43.1) (2024-02-06)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **instrument:** Show re-attempt button for invoice payment ([#3312](https://github.com/Rebilly/rebilly/issues/3312)) ([308488e](https://github.com/Rebilly/rebilly/commit/308488ef5af1e87d58ad16c5b2216f66eb80d4a6))
14
+
1
15
  ## [8.43.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v8.42.1...instruments/core-v8.43.0) (2024-02-06)
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.17.0";
5999
+ const version = "55.18.0";
6000
6000
  let urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
6001
6001
  let nanoid = (size2 = 21) => {
6002
6002
  let id2 = "";
@@ -9324,9 +9324,10 @@ function OrdersResource({ apiHandler }) {
9324
9324
  sort = null,
9325
9325
  limit = null,
9326
9326
  offset = null,
9327
- q = null
9327
+ q = null,
9328
+ expand = null
9328
9329
  } = {}) {
9329
- const params = { filter: filter2, sort, limit, offset, q };
9330
+ const params = { filter: filter2, sort, limit, offset, q, expand };
9330
9331
  return apiHandler.getAll(`orders`, params);
9331
9332
  },
9332
9333
  get({ id: id2 }) {
@@ -9478,8 +9479,9 @@ function ReadyToPayoutResource({ apiHandler }) {
9478
9479
  }
9479
9480
  function RichBillingPortalsResource({ apiHandler }) {
9480
9481
  return {
9481
- get({ id: id2 }) {
9482
- return apiHandler.get(`rich-billing-portals/${id2}`);
9482
+ get({ id: id2, expand = null }) {
9483
+ const params = { expand };
9484
+ return apiHandler.get(`rich-billing-portals/${id2}`, params);
9483
9485
  }
9484
9486
  };
9485
9487
  }
@@ -14561,6 +14563,9 @@ class DataInstance {
14561
14563
  get isPayment() {
14562
14564
  return Boolean(this.invoice || this.transaction || this.money);
14563
14565
  }
14566
+ get isInvoice() {
14567
+ return Boolean(this.invoice);
14568
+ }
14564
14569
  get isPurchase() {
14565
14570
  return Boolean(this.previewPurchase);
14566
14571
  }
@@ -14601,6 +14606,7 @@ class DataInstance {
14601
14606
  ...this,
14602
14607
  amountAndCurrency: this.amountAndCurrency,
14603
14608
  isPayment: this.isPayment,
14609
+ isInvoice: this.isInvoice,
14604
14610
  isPurchase: this.isPurchase,
14605
14611
  hasAmountDue: this.hasAmountDue,
14606
14612
  summaryItems: this.summaryItems,
@@ -23449,7 +23455,7 @@ function handleComputedProperty(options) {
23449
23455
  var _a;
23450
23456
  return Object.assign({}, options, {
23451
23457
  _computed: {
23452
- version: "8.42.1",
23458
+ version: "8.43.1",
23453
23459
  paymentMethodsUrl: ((_a = options._dev) == null ? void 0 : _a.paymentMethodsUrl) ?? "https://forms.secure-payments.app"
23454
23460
  }
23455
23461
  });
@@ -26789,7 +26795,7 @@ class RebillyInstrumentsInstance {
26789
26795
  await show({ componentName, payload });
26790
26796
  }
26791
26797
  get version() {
26792
- return `RebillyInstruments Ver.${"8.42.1"}`;
26798
+ return `RebillyInstruments Ver.${"8.43.1"}`;
26793
26799
  }
26794
26800
  on(eventName, callback) {
26795
26801
  on({ eventName, callback });