@rebilly/instruments 9.17.4 → 9.18.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,10 @@
1
+ ## [9.18.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v9.17.4...instruments/core-v9.18.0) (2024-03-26)
2
+
3
+
4
+ ### Features
5
+
6
+ * **rebilly-js-sdk:** Add upsert operation to Gateway account resources ([#4315](https://github.com/Rebilly/rebilly/issues/4315)) ([f2badc9](https://github.com/Rebilly/rebilly/commit/f2badc952c9f59166e81c55d853b0179a3c82ebc))
7
+
1
8
  ## [9.17.4](https://github.com/Rebilly/rebilly/compare/instruments/core-v9.17.3...instruments/core-v9.17.4) (2024-03-26)
2
9
 
3
10
  ## [9.17.3](https://github.com/Rebilly/rebilly/compare/instruments/core-v9.17.2...instruments/core-v9.17.3) (2024-03-25)
package/dist/index.js CHANGED
@@ -5963,7 +5963,7 @@ function Je(t2, e2) {
5963
5963
  return s2;
5964
5964
  }
5965
5965
  var Ge = P$1;
5966
- const Ye = /* @__PURE__ */ we(Ge), Qe = "56.3.5";
5966
+ const Ye = /* @__PURE__ */ we(Ge), Qe = "56.3.6";
5967
5967
  let Xe = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Ze = (t2 = 21) => {
5968
5968
  let e2 = "", s2 = t2;
5969
5969
  for (; s2--; )
@@ -7663,12 +7663,18 @@ function xt({ apiHandler: t2 }) {
7663
7663
  get({ id: e2 }) {
7664
7664
  return t2.get(`gateway-accounts/${e2}`);
7665
7665
  },
7666
- update({ id: e2, data: s2 }) {
7667
- return t2.patch(`gateway-accounts/${e2}`, s2);
7666
+ /**
7667
+ * @returns { rebilly.PutGatewayAccountResponsePromise } response
7668
+ */
7669
+ upsert({ id: e2, data: s2 }) {
7670
+ return t2.put(`gateway-accounts/${e2}`, s2);
7668
7671
  },
7669
7672
  delete({ id: e2 }) {
7670
7673
  return t2.delete(`gateway-accounts/${e2}`);
7671
7674
  },
7675
+ update({ id: e2, data: s2 }) {
7676
+ return t2.patch(`gateway-accounts/${e2}`, s2);
7677
+ },
7672
7678
  close({ id: e2 }) {
7673
7679
  return t2.post(`gateway-accounts/${e2}/close`);
7674
7680
  },
@@ -24704,7 +24710,7 @@ function handleComputedProperty(options) {
24704
24710
  var _a;
24705
24711
  return Object.assign({}, options, {
24706
24712
  _computed: {
24707
- version: "9.17.3",
24713
+ version: "9.17.4",
24708
24714
  paymentMethodsUrl: ((_a = options._dev) == null ? void 0 : _a.paymentMethodsUrl) ?? "https://forms.secure-payments.app"
24709
24715
  }
24710
24716
  });
@@ -28046,7 +28052,7 @@ class RebillyInstrumentsInstance {
28046
28052
  await show({ componentName, payload });
28047
28053
  }
28048
28054
  get version() {
28049
- return `RebillyInstruments Ver.${"9.17.3"}`;
28055
+ return `RebillyInstruments Ver.${"9.17.4"}`;
28050
28056
  }
28051
28057
  on(eventName, callback) {
28052
28058
  on({ eventName, callback });