@rebilly/instruments 16.200.0 → 16.201.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,6 +1,6 @@
1
- ## 16.200.0 (2026-09-28)
1
+ ## 16.201.0 (2026-09-28)
2
2
 
3
3
  ### 🧱 Updated Dependencies
4
4
 
5
- - Updated rebilly-js-sdk to 62.180.0
6
- - Updated framepay-npm to 5.192.0
5
+ - Updated rebilly-js-sdk to 62.181.0
6
+ - Updated framepay-npm to 5.193.0
package/dist/index.js CHANGED
@@ -6408,7 +6408,7 @@ E$1(I$1, "cancelAll", async (t) => {
6408
6408
  for (const s of q$1.getAll())
6409
6409
  await s.cancel(t), q$1.deleteById(s.id);
6410
6410
  });
6411
- const sr = {
6411
+ const rr = {
6412
6412
  /**
6413
6413
  * @type Cancellation.cancelAll
6414
6414
  */
@@ -11147,6 +11147,13 @@ function Bs({ apiHandler: e }) {
11147
11147
  };
11148
11148
  }
11149
11149
  function Ks({ apiHandler: e }) {
11150
+ return {
11151
+ create({ data: t }) {
11152
+ return e.post("payout-request-cancellations", t);
11153
+ }
11154
+ };
11155
+ }
11156
+ function Ns({ apiHandler: e }) {
11150
11157
  return {
11151
11158
  /**
11152
11159
  * @param { rebilly.StorefrontGetPayoutRequestCollectionRequest } request
@@ -11176,7 +11183,7 @@ function Ks({ apiHandler: e }) {
11176
11183
  }
11177
11184
  };
11178
11185
  }
11179
- function Ns({ apiHandler: e }) {
11186
+ function Ls({ apiHandler: e }) {
11180
11187
  return {
11181
11188
  /**
11182
11189
  * @param { rebilly.StorefrontGetPlanCollectionRequest } request
@@ -11202,7 +11209,7 @@ function Ns({ apiHandler: e }) {
11202
11209
  }
11203
11210
  };
11204
11211
  }
11205
- function Ls({ apiHandler: e }) {
11212
+ function zs({ apiHandler: e }) {
11206
11213
  return {
11207
11214
  /**
11208
11215
  * @param { rebilly.StorefrontGetProductCollectionRequest } request
@@ -11226,7 +11233,7 @@ function Ls({ apiHandler: e }) {
11226
11233
  }
11227
11234
  };
11228
11235
  }
11229
- function zs({ apiHandler: e }) {
11236
+ function Us({ apiHandler: e }) {
11230
11237
  return {
11231
11238
  payment({ data: t }) {
11232
11239
  return e.post("payment", t);
@@ -11242,7 +11249,7 @@ function zs({ apiHandler: e }) {
11242
11249
  }
11243
11250
  };
11244
11251
  }
11245
- function Us({ apiHandler: e }) {
11252
+ function Vs({ apiHandler: e }) {
11246
11253
  return {
11247
11254
  /**
11248
11255
  * @returns { rebilly.StorefrontGetQuoteResponsePromise } response
@@ -11266,21 +11273,21 @@ function Us({ apiHandler: e }) {
11266
11273
  }
11267
11274
  };
11268
11275
  }
11269
- function Vs({ apiHandler: e }) {
11276
+ function Js({ apiHandler: e }) {
11270
11277
  return {
11271
11278
  readyToPayout({ data: t }) {
11272
11279
  return e.post("ready-to-payout", t);
11273
11280
  }
11274
11281
  };
11275
11282
  }
11276
- function Js({ apiHandler: e }) {
11283
+ function Ws({ apiHandler: e }) {
11277
11284
  return {
11278
11285
  reactivation({ data: t }) {
11279
11286
  return e.post("subscription-reactivations", t);
11280
11287
  }
11281
11288
  };
11282
11289
  }
11283
- function Ws({ apiHandler: e }) {
11290
+ function Gs({ apiHandler: e }) {
11284
11291
  return {
11285
11292
  changeItems({ id: t, data: s }) {
11286
11293
  return e.post(`subscriptions/${t}/change-items`, s);
@@ -11290,7 +11297,7 @@ function Ws({ apiHandler: e }) {
11290
11297
  }
11291
11298
  };
11292
11299
  }
11293
- function Gs({ apiHandler: e }) {
11300
+ function Ys({ apiHandler: e }) {
11294
11301
  return {
11295
11302
  /**
11296
11303
  * @param { rebilly.StorefrontGetTransactionCollectionRequest } request
@@ -11339,7 +11346,7 @@ function Gs({ apiHandler: e }) {
11339
11346
  }
11340
11347
  };
11341
11348
  }
11342
- function Ys({ apiHandler: e }) {
11349
+ function Qs({ apiHandler: e }) {
11343
11350
  return {
11344
11351
  /**
11345
11352
  * @returns { rebilly.StorefrontGetWebsiteResponsePromise } response
@@ -11349,27 +11356,29 @@ function Ys({ apiHandler: e }) {
11349
11356
  }
11350
11357
  };
11351
11358
  }
11352
- class Qs {
11359
+ class Xs {
11353
11360
  constructor({ apiHandler: t }) {
11354
- this.account = qs({ apiHandler: t }), this.authorization = ds({ apiHandler: t }), this.billingPortals = Ts({ apiHandler: t }), this.cashiers = Is({ apiHandler: t }), this.checkoutForms = Ss({ apiHandler: t }), this.customFields = Es({ apiHandler: t }), this.depositRequests = xs({ apiHandler: t }), this.deposit = Ps({ apiHandler: t }), this.depositStrategies = Cs({ apiHandler: t }), this.invoices = Ds({ apiHandler: t }), this.kycDocuments = js({ apiHandler: t }), this.kycLivenessSessions = Ms({ apiHandler: t }), this.kycRequests = Os({ apiHandler: t }), this.orders = Fs({ apiHandler: t }), this.paymentInstruments = Bs({ apiHandler: t }), this.payoutRequests = Ks({ apiHandler: t }), this.plans = Ns({ apiHandler: t }), this.products = Ls({ apiHandler: t }), this.purchase = zs({ apiHandler: t }), this.quotes = Us({ apiHandler: t }), this.readyToPayout = Vs({ apiHandler: t }), this.subscriptionReactivations = Js({
11361
+ this.account = qs({ apiHandler: t }), this.authorization = ds({ apiHandler: t }), this.billingPortals = Ts({ apiHandler: t }), this.cashiers = Is({ apiHandler: t }), this.checkoutForms = Ss({ apiHandler: t }), this.customFields = Es({ apiHandler: t }), this.depositRequests = xs({ apiHandler: t }), this.deposit = Ps({ apiHandler: t }), this.depositStrategies = Cs({ apiHandler: t }), this.invoices = Ds({ apiHandler: t }), this.kycDocuments = js({ apiHandler: t }), this.kycLivenessSessions = Ms({ apiHandler: t }), this.kycRequests = Os({ apiHandler: t }), this.orders = Fs({ apiHandler: t }), this.paymentInstruments = Bs({ apiHandler: t }), this.payoutRequestCancellations = Ks({
11362
+ apiHandler: t
11363
+ }), this.payoutRequests = Ns({ apiHandler: t }), this.plans = Ls({ apiHandler: t }), this.products = zs({ apiHandler: t }), this.purchase = Us({ apiHandler: t }), this.quotes = Vs({ apiHandler: t }), this.readyToPayout = Js({ apiHandler: t }), this.subscriptionReactivations = Ws({
11355
11364
  apiHandler: t
11356
- }), this.subscriptions = Ws({ apiHandler: t }), this.transactions = Gs({ apiHandler: t }), this.websites = Ys({ apiHandler: t }), this.checkoutForm = this.checkoutForms, this.billingPortal = this.billingPortals, this.addRequestInterceptor = t.addRequestInterceptor, this.removeRequestInterceptor = t.removeRequestInterceptor, this.addResponseInterceptor = t.addResponseInterceptor, this.removeResponseInterceptor = t.removeResponseInterceptor, this.setTimeout = t.setTimeout, this.setProxyAgent = t.setProxyAgent, this.setSessionToken = t.setSessionToken, this.setPublishableKey = t.setPublishableKey, this.setEndpoints = t.setEndpoints, this.getCancellationToken = t.getCancellationToken, this.generateSignature = t.generateSignature;
11365
+ }), this.subscriptions = Gs({ apiHandler: t }), this.transactions = Ys({ apiHandler: t }), this.websites = Qs({ apiHandler: t }), this.checkoutForm = this.checkoutForms, this.billingPortal = this.billingPortals, this.addRequestInterceptor = t.addRequestInterceptor, this.removeRequestInterceptor = t.removeRequestInterceptor, this.addResponseInterceptor = t.addResponseInterceptor, this.removeResponseInterceptor = t.removeResponseInterceptor, this.setTimeout = t.setTimeout, this.setProxyAgent = t.setProxyAgent, this.setSessionToken = t.setSessionToken, this.setPublishableKey = t.setPublishableKey, this.setEndpoints = t.setEndpoints, this.getCancellationToken = t.getCancellationToken, this.generateSignature = t.generateSignature;
11357
11366
  }
11358
11367
  }
11359
- function Xs({ apiHandler: e }) {
11368
+ function Zs({ apiHandler: e }) {
11360
11369
  return new $s({ apiHandler: e });
11361
11370
  }
11362
- function Zs({ apiHandler: e }) {
11371
+ function _s({ apiHandler: e }) {
11363
11372
  return new vs({ apiHandler: e });
11364
11373
  }
11365
- function _s({ apiHandler: e }) {
11366
- return new Qs({ apiHandler: e });
11374
+ function Hs({ apiHandler: e }) {
11375
+ return new Xs({ apiHandler: e });
11367
11376
  }
11368
11377
  const F$1 = {
11369
11378
  live: "https://api.rebilly.com",
11370
11379
  sandbox: "https://api-sandbox.rebilly.com"
11371
11380
  }, B$1 = 6e3;
11372
- function rr({
11381
+ function nr({
11373
11382
  apiKey: e = null,
11374
11383
  sandbox: t = false,
11375
11384
  timeout: s = B$1,
@@ -11395,9 +11404,9 @@ function rr({
11395
11404
  organizationId: r,
11396
11405
  appName: (u == null ? void 0 : u.appName) ?? null
11397
11406
  }, l = O$1({ options: o });
11398
- return Xs({ apiHandler: l });
11407
+ return Zs({ apiHandler: l });
11399
11408
  }
11400
- function nr({
11409
+ function ur({
11401
11410
  apiKey: e = null,
11402
11411
  sandbox: t = false,
11403
11412
  timeout: s = B$1,
@@ -11423,9 +11432,9 @@ function nr({
11423
11432
  organizationId: r,
11424
11433
  appName: (u == null ? void 0 : u.appName) ?? null
11425
11434
  }, l = O$1({ options: o });
11426
- return Zs({ apiHandler: l });
11435
+ return _s({ apiHandler: l });
11427
11436
  }
11428
- function ur({
11437
+ function or({
11429
11438
  publishableKey: e = null,
11430
11439
  jwt: t = null,
11431
11440
  sandbox: s = false,
@@ -11452,7 +11461,7 @@ function ur({
11452
11461
  organizationId: n,
11453
11462
  appName: (o == null ? void 0 : o.appName) ?? null
11454
11463
  }, i = O$1({ options: l });
11455
- return i.setSessionToken(l.jwt), _s({ apiHandler: i });
11464
+ return i.setSessionToken(l.jwt), Hs({ apiHandler: i });
11456
11465
  }
11457
11466
  const TIMEOUT = 6e4;
11458
11467
  function validateStateForStorefront() {
@@ -11493,15 +11502,15 @@ class StorefrontInstance {
11493
11502
  appName: appName ? `${appName}/instruments` : "instruments"
11494
11503
  }
11495
11504
  };
11496
- const api = ur(config);
11505
+ const api = or(config);
11497
11506
  const rebilly = (
11498
11507
  // @ts-expect-error refactor with above todo
11499
- typeof rr.default === "function" ? (
11508
+ typeof nr.default === "function" ? (
11500
11509
  // @ts-expect-error refactor with above todo
11501
- rr.default(config)
11502
- ) : rr(config)
11510
+ nr.default(config)
11511
+ ) : nr(config)
11503
11512
  );
11504
- const experimental = nr(config);
11513
+ const experimental = ur(config);
11505
11514
  api.setSessionToken(publishableKey || jwt);
11506
11515
  rebilly.setSessionToken(publishableKey || jwt);
11507
11516
  experimental.setSessionToken(publishableKey || jwt);
@@ -15283,7 +15292,7 @@ function handleComputedProperty(options) {
15283
15292
  var _a;
15284
15293
  return Object.assign({}, options, {
15285
15294
  _computed: {
15286
- version: "16.200.0",
15295
+ version: "16.201.0",
15287
15296
  paymentMethodsUrl: ((_a = options._dev) == null ? void 0 : _a.paymentMethodsUrl) ?? "https://forms.secure-payments.app"
15288
15297
  }
15289
15298
  });
@@ -18894,7 +18903,7 @@ async function destroy() {
18894
18903
  if (state.form instanceof HTMLElement) {
18895
18904
  state.form.textContent = "";
18896
18905
  }
18897
- await sr.cancelAll();
18906
+ await rr.cancelAll();
18898
18907
  state.loader.clearAll();
18899
18908
  }
18900
18909
  async function update({ newOptions = {} } = {}) {
@@ -18935,7 +18944,7 @@ class RebillyInstrumentsInstance {
18935
18944
  await show({ componentName, payload });
18936
18945
  }
18937
18946
  get version() {
18938
- return `RebillyInstruments Ver.${"16.200.0"}`;
18947
+ return `RebillyInstruments Ver.${"16.201.0"}`;
18939
18948
  }
18940
18949
  on(eventName, callback) {
18941
18950
  on({ eventName, callback });