@rebilly/instruments 14.12.0 → 14.12.2

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/dist/index.js CHANGED
@@ -4777,13 +4777,13 @@ var ke$1 = Object.prototype.toString, Y$1 = function(e2) {
4777
4777
  if (s === "number") return "number";
4778
4778
  if (s === "symbol") return "symbol";
4779
4779
  if (s === "function")
4780
- return Ie$1(e2) ? "generatorfunction" : "function";
4780
+ return Se$1(e2) ? "generatorfunction" : "function";
4781
4781
  if (ve$1(e2)) return "array";
4782
4782
  if (xe$1(e2)) return "buffer";
4783
4783
  if (qe$1(e2)) return "arguments";
4784
4784
  if (Te$1(e2)) return "date";
4785
4785
  if (de$1(e2)) return "error";
4786
- if (Se$1(e2)) return "regexp";
4786
+ if (Ie$1(e2)) return "regexp";
4787
4787
  switch (Q$1(e2)) {
4788
4788
  case "Symbol":
4789
4789
  return "symbol";
@@ -4844,10 +4844,10 @@ function de$1(t2) {
4844
4844
  function Te$1(t2) {
4845
4845
  return t2 instanceof Date ? true : typeof t2.toDateString == "function" && typeof t2.getDate == "function" && typeof t2.setDate == "function";
4846
4846
  }
4847
- function Se$1(t2) {
4847
+ function Ie$1(t2) {
4848
4848
  return t2 instanceof RegExp ? true : typeof t2.flags == "string" && typeof t2.ignoreCase == "boolean" && typeof t2.multiline == "boolean" && typeof t2.global == "boolean";
4849
4849
  }
4850
- function Ie$1(t2, e2) {
4850
+ function Se$1(t2, e2) {
4851
4851
  return Q$1(t2) === "GeneratorFunction";
4852
4852
  }
4853
4853
  function Ee$1(t2) {
@@ -5063,7 +5063,7 @@ q$1(d, "cancelAll", async (e2) => {
5063
5063
  for (const s of w.getAll())
5064
5064
  await s.cancel(e2), w.deleteById(s.id);
5065
5065
  });
5066
- const gr = {
5066
+ const ir = {
5067
5067
  /**
5068
5068
  * @type Cancellation.cancelAll
5069
5069
  */
@@ -5097,7 +5097,7 @@ function C$1({ options: t2 }) {
5097
5097
  }
5098
5098
  function o2() {
5099
5099
  const i = {
5100
- "REB-API-CONSUMER": `${["Rebilly", t2.appName, "js-sdk"].filter((g) => g).join("/")}@7c7c8e1`
5100
+ "REB-API-CONSUMER": `${["Rebilly", t2.appName, "js-sdk"].filter((g) => g).join("/")}@2fb1cbc`
5101
5101
  };
5102
5102
  return t2.apiKey && (i["REB-APIKEY"] = t2.apiKey), i;
5103
5103
  }
@@ -5115,7 +5115,7 @@ function C$1({ options: t2 }) {
5115
5115
  const i = l();
5116
5116
  t2.publishableKey = c, i.common.Authorization = `${c}`, e2.defaults.headers = i;
5117
5117
  }
5118
- function I2({ host: c, port: i, auth: g }) {
5118
+ function S2({ host: c, port: i, auth: g }) {
5119
5119
  e2.defaults.proxy = {
5120
5120
  host: c,
5121
5121
  port: i,
@@ -5282,7 +5282,7 @@ function C$1({ options: t2 }) {
5282
5282
  addResponseInterceptor: _2,
5283
5283
  removeResponseInterceptor: H2,
5284
5284
  setTimeout: a,
5285
- setProxyAgent: I2,
5285
+ setProxyAgent: S2,
5286
5286
  setSessionToken: f,
5287
5287
  setPublishableKey: y,
5288
5288
  setEndpoints: E2,
@@ -6466,7 +6466,7 @@ function Tt$1({ apiHandler: t2 }) {
6466
6466
  }
6467
6467
  };
6468
6468
  }
6469
- function St$1({ apiHandler: t2 }) {
6469
+ function It$1({ apiHandler: t2 }) {
6470
6470
  return {
6471
6471
  /**
6472
6472
  * @returns { rebilly.GetExternalIdentifierResponsePromise } response
@@ -6497,7 +6497,7 @@ function St$1({ apiHandler: t2 }) {
6497
6497
  }
6498
6498
  };
6499
6499
  }
6500
- function It$1({ apiHandler: t2 }) {
6500
+ function St$1({ apiHandler: t2 }) {
6501
6501
  return {
6502
6502
  /**
6503
6503
  * @returns { rebilly.GetExternalServiceSettingsResponsePromise } response
@@ -6842,7 +6842,7 @@ function Pt$1({ apiHandler: t2 }) {
6842
6842
  }
6843
6843
  };
6844
6844
  }
6845
- const S$1 = { Accept: "application/pdf" };
6845
+ const I$1 = { Accept: "application/pdf" };
6846
6846
  function Ct$1({ apiHandler: t2 }) {
6847
6847
  return {
6848
6848
  /**
@@ -6964,7 +6964,7 @@ function Ct$1({ apiHandler: t2 }) {
6964
6964
  },
6965
6965
  downloadPDF({ id: e2 }) {
6966
6966
  const s = {
6967
- headers: S$1,
6967
+ headers: I$1,
6968
6968
  responseType: "arraybuffer"
6969
6969
  };
6970
6970
  return t2.download(`invoices/${e2}`, s);
@@ -7708,7 +7708,7 @@ function es({ apiHandler: t2 }) {
7708
7708
  },
7709
7709
  downloadPDF({ id: e2 }) {
7710
7710
  const s = {
7711
- headers: S$1,
7711
+ headers: I$1,
7712
7712
  responseType: "arraybuffer"
7713
7713
  };
7714
7714
  return t2.download(`quotes/${e2}`, s);
@@ -7775,41 +7775,6 @@ function ss({ apiHandler: t2 }) {
7775
7775
  };
7776
7776
  }
7777
7777
  function rs({ apiHandler: t2 }) {
7778
- return {
7779
- /**
7780
- * @param { rebilly.GetRiskScoreSimulationJobCollectionRequest } request
7781
- * @returns { rebilly.GetRiskScoreSimulationJobCollectionResponsePromise } response
7782
- */
7783
- getAll({ filter: e2 = null, sort: s = null, limit: r2 = null, offset: n2 = null } = {}) {
7784
- const u = { filter: e2, sort: s, limit: r2, offset: n2 };
7785
- return t2.getAll("risk-score-simulation-jobs", u);
7786
- },
7787
- create({ data: e2 }) {
7788
- return t2.post("risk-score-simulation-jobs", e2);
7789
- },
7790
- /**
7791
- * @returns { rebilly.GetRiskScoreSimulationJobResponsePromise } response
7792
- */
7793
- get({ id: e2 }) {
7794
- return t2.get(`risk-score-simulation-jobs/${e2}`);
7795
- },
7796
- stop({ id: e2 }) {
7797
- return t2.post(`risk-score-simulation-jobs/${e2}/stop`);
7798
- },
7799
- /**
7800
- * @param { rebilly.GetRiskScoreSimulatedTransactionCollectionRequest } request
7801
- * @returns { rebilly.GetRiskScoreSimulatedTransactionCollectionResponsePromise } response
7802
- */
7803
- getTransactions({ id: e2, limit: s = null, offset: r2 = null }) {
7804
- const n2 = { limit: s, offset: r2 };
7805
- return t2.getAll(
7806
- `risk-score-simulation-jobs/${e2}/transactions`,
7807
- n2
7808
- );
7809
- }
7810
- };
7811
- }
7812
- function ns({ apiHandler: t2 }) {
7813
7778
  return {
7814
7779
  /**
7815
7780
  * @param { rebilly.GetRoleCollectionRequest } request
@@ -7851,7 +7816,7 @@ function ns({ apiHandler: t2 }) {
7851
7816
  }
7852
7817
  };
7853
7818
  }
7854
- function us({ apiHandler: t2 }) {
7819
+ function ns({ apiHandler: t2 }) {
7855
7820
  return {
7856
7821
  /**
7857
7822
  * @returns { rebilly.GetSearchResponsePromise } response
@@ -7862,7 +7827,7 @@ function us({ apiHandler: t2 }) {
7862
7827
  }
7863
7828
  };
7864
7829
  }
7865
- function os({ apiHandler: t2 }) {
7830
+ function us({ apiHandler: t2 }) {
7866
7831
  return {
7867
7832
  /**
7868
7833
  * @param { rebilly.GetGridSegmentCollectionRequest } request
@@ -7902,7 +7867,7 @@ function os({ apiHandler: t2 }) {
7902
7867
  }
7903
7868
  };
7904
7869
  }
7905
- function ls({ apiHandler: t2 }) {
7870
+ function os({ apiHandler: t2 }) {
7906
7871
  return {
7907
7872
  /**
7908
7873
  * @returns { rebilly.GetSendThroughAttributionCollectionResponsePromise } response
@@ -7912,7 +7877,7 @@ function ls({ apiHandler: t2 }) {
7912
7877
  }
7913
7878
  };
7914
7879
  }
7915
- function cs({ apiHandler: t2 }) {
7880
+ function ls({ apiHandler: t2 }) {
7916
7881
  return {
7917
7882
  /**
7918
7883
  * @param { rebilly.GetServiceCredentialCollectionRequest } request
@@ -7963,7 +7928,7 @@ function cs({ apiHandler: t2 }) {
7963
7928
  }
7964
7929
  };
7965
7930
  }
7966
- function is({ apiHandler: t2 }) {
7931
+ function cs({ apiHandler: t2 }) {
7967
7932
  return {
7968
7933
  /**
7969
7934
  * @param { rebilly.GetShippingRateCollectionRequest } request
@@ -8003,7 +7968,7 @@ function is({ apiHandler: t2 }) {
8003
7968
  }
8004
7969
  };
8005
7970
  }
8006
- function gs({ apiHandler: t2 }) {
7971
+ function is({ apiHandler: t2 }) {
8007
7972
  return {
8008
7973
  /**
8009
7974
  * @returns { rebilly.GetStatusResponsePromise } response
@@ -8013,7 +7978,7 @@ function gs({ apiHandler: t2 }) {
8013
7978
  }
8014
7979
  };
8015
7980
  }
8016
- function as({ apiHandler: t2 }) {
7981
+ function gs({ apiHandler: t2 }) {
8017
7982
  return {
8018
7983
  /**
8019
7984
  * @param { rebilly.GetSubscriptionCancellationCollectionRequest } request
@@ -8044,7 +8009,7 @@ function as({ apiHandler: t2 }) {
8044
8009
  }
8045
8010
  };
8046
8011
  }
8047
- function ms({ apiHandler: t2 }) {
8012
+ function as({ apiHandler: t2 }) {
8048
8013
  return {
8049
8014
  /**
8050
8015
  * @param { rebilly.GetSubscriptionPauseCollectionRequest } request
@@ -8078,7 +8043,7 @@ function ms({ apiHandler: t2 }) {
8078
8043
  }
8079
8044
  };
8080
8045
  }
8081
- function fs({ apiHandler: t2 }) {
8046
+ function ms({ apiHandler: t2 }) {
8082
8047
  return {
8083
8048
  /**
8084
8049
  * @param { rebilly.GetSubscriptionReactivationCollectionRequest } request
@@ -8099,7 +8064,7 @@ function fs({ apiHandler: t2 }) {
8099
8064
  }
8100
8065
  };
8101
8066
  }
8102
- function $s({ apiHandler: t2 }) {
8067
+ function fs({ apiHandler: t2 }) {
8103
8068
  return {
8104
8069
  /**
8105
8070
  * @param { rebilly.GetSubscriptionCollectionRequest } request
@@ -8210,7 +8175,7 @@ function $s({ apiHandler: t2 }) {
8210
8175
  }
8211
8176
  };
8212
8177
  }
8213
- function hs({ apiHandler: t2 }) {
8178
+ function $s({ apiHandler: t2 }) {
8214
8179
  return {
8215
8180
  /**
8216
8181
  * @param { rebilly.GetTagCollectionRequest } request
@@ -8279,7 +8244,7 @@ function hs({ apiHandler: t2 }) {
8279
8244
  }
8280
8245
  };
8281
8246
  }
8282
- function ps({ apiHandler: t2 }) {
8247
+ function hs({ apiHandler: t2 }) {
8283
8248
  return {
8284
8249
  /**
8285
8250
  * @param { rebilly.GetTagRuleCollectionRequest } request
@@ -8319,7 +8284,7 @@ function ps({ apiHandler: t2 }) {
8319
8284
  }
8320
8285
  };
8321
8286
  }
8322
- function ys({ apiHandler: t2 }) {
8287
+ function ps({ apiHandler: t2 }) {
8323
8288
  return {
8324
8289
  /**
8325
8290
  * @param { rebilly.GetTrackingApiCollectionRequest } request
@@ -8401,7 +8366,7 @@ function ys({ apiHandler: t2 }) {
8401
8366
  }
8402
8367
  };
8403
8368
  }
8404
- function As({ apiHandler: t2 }) {
8369
+ function ys({ apiHandler: t2 }) {
8405
8370
  return {
8406
8371
  /**
8407
8372
  * @param { rebilly.GetTransactionCollectionRequest } request
@@ -8471,7 +8436,7 @@ function As({ apiHandler: t2 }) {
8471
8436
  }
8472
8437
  };
8473
8438
  }
8474
- function Rs({ apiHandler: t2 }) {
8439
+ function As({ apiHandler: t2 }) {
8475
8440
  return {
8476
8441
  /**
8477
8442
  * @param { rebilly.GetUsageCollectionRequest } request
@@ -8501,7 +8466,7 @@ function Rs({ apiHandler: t2 }) {
8501
8466
  }
8502
8467
  };
8503
8468
  }
8504
- function bs({ apiHandler: t2 }) {
8469
+ function Rs({ apiHandler: t2 }) {
8505
8470
  return {
8506
8471
  /**
8507
8472
  * @param { rebilly.GetUserCollectionRequest } request
@@ -8544,7 +8509,7 @@ function bs({ apiHandler: t2 }) {
8544
8509
  }
8545
8510
  };
8546
8511
  }
8547
- function ws({ apiHandler: t2 }) {
8512
+ function bs({ apiHandler: t2 }) {
8548
8513
  return {
8549
8514
  /**
8550
8515
  * @param { rebilly.GetWebhookCollectionRequest } request
@@ -8578,7 +8543,7 @@ function ws({ apiHandler: t2 }) {
8578
8543
  }
8579
8544
  };
8580
8545
  }
8581
- function ks({ apiHandler: t2 }) {
8546
+ function ws({ apiHandler: t2 }) {
8582
8547
  return {
8583
8548
  /**
8584
8549
  * @param { rebilly.GetWebsiteCollectionRequest } request
@@ -8618,22 +8583,20 @@ function ks({ apiHandler: t2 }) {
8618
8583
  }
8619
8584
  };
8620
8585
  }
8621
- class vs {
8586
+ class ks {
8622
8587
  constructor({ apiHandler: e2 }) {
8623
8588
  this.account = _e$1({ apiHandler: e2 }), this.allowlists = He$1({ apiHandler: e2 }), this.amlChecks = et$1({ apiHandler: e2 }), this.amlSettings = tt$1({ apiHandler: e2 }), this.apiKeys = st$1({ apiHandler: e2 }), this.applicationInstances = rt$1({ apiHandler: e2 }), this.applications = nt$1({ apiHandler: e2 }), this.balanceTransactions = ut$1({ apiHandler: e2 }), this.billingPortals = ot$1({ apiHandler: e2 }), this.blocklists = lt$1({ apiHandler: e2 }), this.broadcastMessages = ct$1({ apiHandler: e2 }), this.cashiers = it$1({ apiHandler: e2 }), this.checkoutForms = gt$1({ apiHandler: e2 }), this.coupons = at$1({ apiHandler: e2 }), this.creditMemos = mt$1({ apiHandler: e2 }), this.customDomains = ft$1({ apiHandler: e2 }), this.customFields = $t$1({ apiHandler: e2 }), this.customerAuthentication = ht$1({ apiHandler: e2 }), this.customers = pt$1({ apiHandler: e2 }), this.depositCustomPropertySets = yt$1({
8624
8589
  apiHandler: e2
8625
- }), this.depositRequests = At$1({ apiHandler: e2 }), this.depositStrategies = Rt$1({ apiHandler: e2 }), this.digitalWallets = bt$1({ apiHandler: e2 }), this.disputes = wt$1({ apiHandler: e2 }), this.emailDeliverySettings = kt$1({ apiHandler: e2 }), this.emailMessages = vt$1({ apiHandler: e2 }), this.emailNotifications = dt$1({ apiHandler: e2 }), this.events = Tt$1({ apiHandler: e2 }), this.externalIdentifiers = St$1({ apiHandler: e2 }), this.externalServicesSettings = It$1({
8626
- apiHandler: e2
8627
- }), this.fees = Et$1({ apiHandler: e2 }), this.files = qt$1({ apiHandler: e2 }), this.gatewayAccounts = xt$1({ apiHandler: e2 }), this.integrations = Pt$1({ apiHandler: e2 }), this.invoices = Ct$1({ apiHandler: e2 }), this.journalAccounts = jt$1({ apiHandler: e2 }), this.journalEntries = Dt$1({ apiHandler: e2 }), this.journalRecords = Mt$1({ apiHandler: e2 }), this.kycDocuments = Ft$1({ apiHandler: e2 }), this.kycRequests = Ot$1({ apiHandler: e2 }), this.kycSettings = Kt$1({ apiHandler: e2 }), this.lists = Nt$1({ apiHandler: e2 }), this.memberships = Bt$1({ apiHandler: e2 }), this.organizationExports = Lt$1({ apiHandler: e2 }), this.organizations = zt$1({ apiHandler: e2 }), this.paymentCardsBankNames = Ut$1({ apiHandler: e2 }), this.paymentInstruments = Vt$1({ apiHandler: e2 }), this.paymentMethods = Jt$1({ apiHandler: e2 }), this.paymentTokens = Wt$1({ apiHandler: e2 }), this.payoutRequests = Gt$1({ apiHandler: e2 }), this.payouts = Yt$1({ apiHandler: e2 }), this.plans = Qt$1({ apiHandler: e2 }), this.previews = Xt$1({ apiHandler: e2 }), this.products = Zt$1({ apiHandler: e2 }), this.profile = _t$1({ apiHandler: e2 }), this.purchase = Ht$1({ apiHandler: e2 }), this.quotes = es({ apiHandler: e2 }), this.resource = ts({ apiHandler: e2 }), this.riskScoreRules = ss({ apiHandler: e2 }), this.riskScoreSimulationJobs = rs({
8590
+ }), this.depositRequests = At$1({ apiHandler: e2 }), this.depositStrategies = Rt$1({ apiHandler: e2 }), this.digitalWallets = bt$1({ apiHandler: e2 }), this.disputes = wt$1({ apiHandler: e2 }), this.emailDeliverySettings = kt$1({ apiHandler: e2 }), this.emailMessages = vt$1({ apiHandler: e2 }), this.emailNotifications = dt$1({ apiHandler: e2 }), this.events = Tt$1({ apiHandler: e2 }), this.externalIdentifiers = It$1({ apiHandler: e2 }), this.externalServicesSettings = St$1({
8628
8591
  apiHandler: e2
8629
- }), this.roles = ns({ apiHandler: e2 }), this.search = us({ apiHandler: e2 }), this.segments = os({ apiHandler: e2 }), this.sendThroughAttribution = ls({ apiHandler: e2 }), this.serviceCredentials = cs({ apiHandler: e2 }), this.shippingRates = is({ apiHandler: e2 }), this.status = gs({ apiHandler: e2 }), this.subscriptionCancellations = as({
8592
+ }), this.fees = Et$1({ apiHandler: e2 }), this.files = qt$1({ apiHandler: e2 }), this.gatewayAccounts = xt$1({ apiHandler: e2 }), this.integrations = Pt$1({ apiHandler: e2 }), this.invoices = Ct$1({ apiHandler: e2 }), this.journalAccounts = jt$1({ apiHandler: e2 }), this.journalEntries = Dt$1({ apiHandler: e2 }), this.journalRecords = Mt$1({ apiHandler: e2 }), this.kycDocuments = Ft$1({ apiHandler: e2 }), this.kycRequests = Ot$1({ apiHandler: e2 }), this.kycSettings = Kt$1({ apiHandler: e2 }), this.lists = Nt$1({ apiHandler: e2 }), this.memberships = Bt$1({ apiHandler: e2 }), this.organizationExports = Lt$1({ apiHandler: e2 }), this.organizations = zt$1({ apiHandler: e2 }), this.paymentCardsBankNames = Ut$1({ apiHandler: e2 }), this.paymentInstruments = Vt$1({ apiHandler: e2 }), this.paymentMethods = Jt$1({ apiHandler: e2 }), this.paymentTokens = Wt$1({ apiHandler: e2 }), this.payoutRequests = Gt$1({ apiHandler: e2 }), this.payouts = Yt$1({ apiHandler: e2 }), this.plans = Qt$1({ apiHandler: e2 }), this.previews = Xt$1({ apiHandler: e2 }), this.products = Zt$1({ apiHandler: e2 }), this.profile = _t$1({ apiHandler: e2 }), this.purchase = Ht$1({ apiHandler: e2 }), this.quotes = es({ apiHandler: e2 }), this.resource = ts({ apiHandler: e2 }), this.riskScoreRules = ss({ apiHandler: e2 }), this.roles = rs({ apiHandler: e2 }), this.search = ns({ apiHandler: e2 }), this.segments = us({ apiHandler: e2 }), this.sendThroughAttribution = os({ apiHandler: e2 }), this.serviceCredentials = ls({ apiHandler: e2 }), this.shippingRates = cs({ apiHandler: e2 }), this.status = is({ apiHandler: e2 }), this.subscriptionCancellations = gs({
8630
8593
  apiHandler: e2
8631
- }), this.subscriptionPauses = ms({ apiHandler: e2 }), this.subscriptionReactivations = fs({
8594
+ }), this.subscriptionPauses = as({ apiHandler: e2 }), this.subscriptionReactivations = ms({
8632
8595
  apiHandler: e2
8633
- }), this.subscriptions = $s({ apiHandler: e2 }), this.tags = hs({ apiHandler: e2 }), this.tagsRules = ps({ apiHandler: e2 }), this.tracking = ys({ apiHandler: e2 }), this.transactions = As({ apiHandler: e2 }), this.usages = Rs({ apiHandler: e2 }), this.users = bs({ apiHandler: e2 }), this.webhooks = ws({ apiHandler: e2 }), this.websites = ks({ apiHandler: e2 }), this.addRequestInterceptor = e2.addRequestInterceptor, this.removeRequestInterceptor = e2.removeRequestInterceptor, this.addResponseInterceptor = e2.addResponseInterceptor, this.removeResponseInterceptor = e2.removeResponseInterceptor, this.setTimeout = e2.setTimeout, this.setProxyAgent = e2.setProxyAgent, this.setSessionToken = e2.setSessionToken, this.setPublishableKey = e2.setPublishableKey, this.setEndpoints = e2.setEndpoints, this.getCancellationToken = e2.getCancellationToken, this.generateSignature = e2.generateSignature;
8596
+ }), this.subscriptions = fs({ apiHandler: e2 }), this.tags = $s({ apiHandler: e2 }), this.tagsRules = hs({ apiHandler: e2 }), this.tracking = ps({ apiHandler: e2 }), this.transactions = ys({ apiHandler: e2 }), this.usages = As({ apiHandler: e2 }), this.users = Rs({ apiHandler: e2 }), this.webhooks = bs({ apiHandler: e2 }), this.websites = ws({ apiHandler: e2 }), this.addRequestInterceptor = e2.addRequestInterceptor, this.removeRequestInterceptor = e2.removeRequestInterceptor, this.addResponseInterceptor = e2.addResponseInterceptor, this.removeResponseInterceptor = e2.removeResponseInterceptor, this.setTimeout = e2.setTimeout, this.setProxyAgent = e2.setProxyAgent, this.setSessionToken = e2.setSessionToken, this.setPublishableKey = e2.setPublishableKey, this.setEndpoints = e2.setEndpoints, this.getCancellationToken = e2.getCancellationToken, this.generateSignature = e2.generateSignature;
8634
8597
  }
8635
8598
  }
8636
- function ds({ apiHandler: t2 }) {
8599
+ function vs({ apiHandler: t2 }) {
8637
8600
  return {
8638
8601
  /**
8639
8602
  * @returns { rebilly.GetCustomerSummaryMetricReportResponsePromise } response
@@ -8643,7 +8606,7 @@ function ds({ apiHandler: t2 }) {
8643
8606
  }
8644
8607
  };
8645
8608
  }
8646
- function Ts({ apiHandler: t2 }) {
8609
+ function ds({ apiHandler: t2 }) {
8647
8610
  return {
8648
8611
  /**
8649
8612
  * @param { rebilly.GetDataExportCollectionRequest } request
@@ -8688,7 +8651,7 @@ function Ts({ apiHandler: t2 }) {
8688
8651
  }
8689
8652
  };
8690
8653
  }
8691
- function Ss({ apiHandler: t2 }) {
8654
+ function Ts({ apiHandler: t2 }) {
8692
8655
  return {
8693
8656
  /**
8694
8657
  * @returns { rebilly.GetHistogramTransactionReportResponsePromise } response
@@ -8976,7 +8939,7 @@ function Is({ apiHandler: t2 }) {
8976
8939
  offset: a = null,
8977
8940
  filter: f = null,
8978
8941
  sort: y = null,
8979
- criteria: I2 = null
8942
+ criteria: S2 = null
8980
8943
  }) {
8981
8944
  const E2 = {
8982
8945
  aggregationField: e2,
@@ -8989,7 +8952,7 @@ function Is({ apiHandler: t2 }) {
8989
8952
  offset: a,
8990
8953
  filter: f,
8991
8954
  sort: y,
8992
- criteria: I2
8955
+ criteria: S2
8993
8956
  };
8994
8957
  return t2.get("reports/retention-value", E2);
8995
8958
  },
@@ -9118,7 +9081,7 @@ function Is({ apiHandler: t2 }) {
9118
9081
  }
9119
9082
  };
9120
9083
  }
9121
- function Es({ apiHandler: t2 }) {
9084
+ function Ss({ apiHandler: t2 }) {
9122
9085
  return {
9123
9086
  /**
9124
9087
  * @returns { rebilly.GetSubscriptionSummaryMetricReportResponsePromise } response
@@ -9128,7 +9091,7 @@ function Es({ apiHandler: t2 }) {
9128
9091
  }
9129
9092
  };
9130
9093
  }
9131
- function qs({ apiHandler: t2 }) {
9094
+ function Es({ apiHandler: t2 }) {
9132
9095
  return {
9133
9096
  getActivityFeed({ eventTypes: e2 = null, limit: s = 1e3, offset: r2 = 0 }) {
9134
9097
  const n2 = {
@@ -9156,7 +9119,7 @@ function qs({ apiHandler: t2 }) {
9156
9119
  }
9157
9120
  };
9158
9121
  }
9159
- function xs({ apiHandler: t2 }) {
9122
+ function qs({ apiHandler: t2 }) {
9160
9123
  return {
9161
9124
  query() {
9162
9125
  return t2.get("location");
@@ -9164,15 +9127,15 @@ function xs({ apiHandler: t2 }) {
9164
9127
  };
9165
9128
  }
9166
9129
  const R = {
9167
- CustomersResource: ds,
9168
- DataExportsResource: Ts,
9169
- HistogramsResource: Ss,
9130
+ CustomersResource: vs,
9131
+ DataExportsResource: ds,
9132
+ HistogramsResource: Ts,
9170
9133
  ReportsResource: Is,
9171
- SubscriptionsResource: Es,
9172
- TimelinesResource: qs,
9173
- LocationResource: xs
9134
+ SubscriptionsResource: Ss,
9135
+ TimelinesResource: Es,
9136
+ LocationResource: qs
9174
9137
  };
9175
- class Ps {
9138
+ class xs {
9176
9139
  constructor({ apiHandler: e2 }) {
9177
9140
  this.customers = R.CustomersResource({ apiHandler: e2 }), this.dataExports = R.DataExportsResource({
9178
9141
  apiHandler: e2
@@ -9181,7 +9144,7 @@ class Ps {
9181
9144
  }), this.timelines = R.TimelinesResource({ apiHandler: e2 }), this.location = R.LocationResource({ apiHandler: e2 }), this.addRequestInterceptor = e2.addRequestInterceptor, this.removeRequestInterceptor = e2.removeRequestInterceptor, this.addResponseInterceptor = e2.addResponseInterceptor, this.removeResponseInterceptor = e2.removeResponseInterceptor, this.setTimeout = e2.setTimeout, this.setProxyAgent = e2.setProxyAgent, this.setSessionToken = e2.setSessionToken, this.setEndpoints = e2.setEndpoints, this.getCancellationToken = e2.getCancellationToken;
9182
9145
  }
9183
9146
  }
9184
- function Cs({ apiHandler: t2 }) {
9147
+ function Ps({ apiHandler: t2 }) {
9185
9148
  return {
9186
9149
  /**
9187
9150
  * @returns { rebilly.StorefrontGetAccountResponsePromise } response
@@ -9213,7 +9176,7 @@ function Cs({ apiHandler: t2 }) {
9213
9176
  }
9214
9177
  };
9215
9178
  }
9216
- function js({ apiHandler: t2 }) {
9179
+ function Cs({ apiHandler: t2 }) {
9217
9180
  return {
9218
9181
  login({ data: e2 }) {
9219
9182
  return t2.post("login", e2);
@@ -9223,7 +9186,7 @@ function js({ apiHandler: t2 }) {
9223
9186
  }
9224
9187
  };
9225
9188
  }
9226
- function Ds({ apiHandler: t2 }) {
9189
+ function js({ apiHandler: t2 }) {
9227
9190
  return {
9228
9191
  /**
9229
9192
  * @returns { rebilly.StorefrontGetBillingPortalResponsePromise } response
@@ -9233,7 +9196,7 @@ function Ds({ apiHandler: t2 }) {
9233
9196
  }
9234
9197
  };
9235
9198
  }
9236
- function Ms({ apiHandler: t2 }) {
9199
+ function Ds({ apiHandler: t2 }) {
9237
9200
  return {
9238
9201
  /**
9239
9202
  * @returns { rebilly.StorefrontGetCashierResponsePromise } response
@@ -9243,7 +9206,7 @@ function Ms({ apiHandler: t2 }) {
9243
9206
  }
9244
9207
  };
9245
9208
  }
9246
- function Fs({ apiHandler: t2 }) {
9209
+ function Ms({ apiHandler: t2 }) {
9247
9210
  return {
9248
9211
  /**
9249
9212
  * @returns { rebilly.StorefrontGetCheckoutFormResponsePromise } response
@@ -9253,7 +9216,7 @@ function Fs({ apiHandler: t2 }) {
9253
9216
  }
9254
9217
  };
9255
9218
  }
9256
- function Os({ apiHandler: t2 }) {
9219
+ function Fs({ apiHandler: t2 }) {
9257
9220
  return {
9258
9221
  /**
9259
9222
  * @param { rebilly.StorefrontGetCustomFieldCollectionRequest } request
@@ -9265,7 +9228,7 @@ function Os({ apiHandler: t2 }) {
9265
9228
  }
9266
9229
  };
9267
9230
  }
9268
- function Ks({ apiHandler: t2 }) {
9231
+ function Os({ apiHandler: t2 }) {
9269
9232
  return {
9270
9233
  /**
9271
9234
  * @returns { rebilly.StorefrontGetDepositRequestResponsePromise } response
@@ -9276,14 +9239,14 @@ function Ks({ apiHandler: t2 }) {
9276
9239
  }
9277
9240
  };
9278
9241
  }
9279
- function Ns({ apiHandler: t2 }) {
9242
+ function Ks({ apiHandler: t2 }) {
9280
9243
  return {
9281
9244
  create({ data: e2 }) {
9282
9245
  return t2.post("deposit", e2);
9283
9246
  }
9284
9247
  };
9285
9248
  }
9286
- function Bs({ apiHandler: t2 }) {
9249
+ function Ns({ apiHandler: t2 }) {
9287
9250
  return {
9288
9251
  /**
9289
9252
  * @returns { rebilly.StorefrontGetDepositStrategyResponsePromise } response
@@ -9293,7 +9256,7 @@ function Bs({ apiHandler: t2 }) {
9293
9256
  }
9294
9257
  };
9295
9258
  }
9296
- function Ls({ apiHandler: t2 }) {
9259
+ function Bs({ apiHandler: t2 }) {
9297
9260
  return {
9298
9261
  /**
9299
9262
  * @param { rebilly.StorefrontGetInvoiceCollectionRequest } request
@@ -9322,14 +9285,14 @@ function Ls({ apiHandler: t2 }) {
9322
9285
  },
9323
9286
  downloadPDF({ id: e2 }) {
9324
9287
  const s = {
9325
- headers: S$1,
9288
+ headers: I$1,
9326
9289
  responseType: "arraybuffer"
9327
9290
  };
9328
9291
  return t2.download(`invoices/${e2}`, s);
9329
9292
  }
9330
9293
  };
9331
9294
  }
9332
- function zs({ apiHandler: t2 }) {
9295
+ function Ls({ apiHandler: t2 }) {
9333
9296
  return {
9334
9297
  /**
9335
9298
  * @param { rebilly.StorefrontGetKycDocumentCollectionRequest } request
@@ -9353,7 +9316,7 @@ function zs({ apiHandler: t2 }) {
9353
9316
  }
9354
9317
  };
9355
9318
  }
9356
- function Us({ apiHandler: t2 }) {
9319
+ function zs({ apiHandler: t2 }) {
9357
9320
  return {
9358
9321
  create({ data: e2 }) {
9359
9322
  return t2.post("kyc-liveness-sessions", e2);
@@ -9369,7 +9332,7 @@ function Us({ apiHandler: t2 }) {
9369
9332
  }
9370
9333
  };
9371
9334
  }
9372
- function Vs({ apiHandler: t2 }) {
9335
+ function Us({ apiHandler: t2 }) {
9373
9336
  return {
9374
9337
  /**
9375
9338
  * @returns { rebilly.StorefrontGetKycRequestResponsePromise } response
@@ -9380,7 +9343,7 @@ function Vs({ apiHandler: t2 }) {
9380
9343
  }
9381
9344
  };
9382
9345
  }
9383
- function Js({ apiHandler: t2 }) {
9346
+ function Vs({ apiHandler: t2 }) {
9384
9347
  return {
9385
9348
  /**
9386
9349
  * @returns { rebilly.StorefrontGetOrderUpcomingInvoiceResponsePromise } response
@@ -9422,7 +9385,7 @@ function Js({ apiHandler: t2 }) {
9422
9385
  }
9423
9386
  };
9424
9387
  }
9425
- function Ws({ apiHandler: t2 }) {
9388
+ function Js({ apiHandler: t2 }) {
9426
9389
  return {
9427
9390
  /**
9428
9391
  * @param { rebilly.StorefrontGetPaymentInstrumentCollectionRequest } request
@@ -9465,7 +9428,7 @@ function Ws({ apiHandler: t2 }) {
9465
9428
  }
9466
9429
  };
9467
9430
  }
9468
- function Gs({ apiHandler: t2 }) {
9431
+ function Ws({ apiHandler: t2 }) {
9469
9432
  return {
9470
9433
  /**
9471
9434
  * @param { rebilly.StorefrontGetPayoutRequestCollectionRequest } request
@@ -9492,7 +9455,7 @@ function Gs({ apiHandler: t2 }) {
9492
9455
  }
9493
9456
  };
9494
9457
  }
9495
- function Ys({ apiHandler: t2 }) {
9458
+ function Gs({ apiHandler: t2 }) {
9496
9459
  return {
9497
9460
  /**
9498
9461
  * @param { rebilly.StorefrontGetPlanCollectionRequest } request
@@ -9518,7 +9481,7 @@ function Ys({ apiHandler: t2 }) {
9518
9481
  }
9519
9482
  };
9520
9483
  }
9521
- function Qs({ apiHandler: t2 }) {
9484
+ function Ys({ apiHandler: t2 }) {
9522
9485
  return {
9523
9486
  /**
9524
9487
  * @param { rebilly.StorefrontGetProductCollectionRequest } request
@@ -9542,7 +9505,7 @@ function Qs({ apiHandler: t2 }) {
9542
9505
  }
9543
9506
  };
9544
9507
  }
9545
- function Xs({ apiHandler: t2 }) {
9508
+ function Qs({ apiHandler: t2 }) {
9546
9509
  return {
9547
9510
  payment({ data: e2 }) {
9548
9511
  return t2.post("payment", e2);
@@ -9558,7 +9521,7 @@ function Xs({ apiHandler: t2 }) {
9558
9521
  }
9559
9522
  };
9560
9523
  }
9561
- function Zs({ apiHandler: t2 }) {
9524
+ function Xs({ apiHandler: t2 }) {
9562
9525
  return {
9563
9526
  /**
9564
9527
  * @returns { rebilly.StorefrontGetQuoteResponsePromise } response
@@ -9575,28 +9538,28 @@ function Zs({ apiHandler: t2 }) {
9575
9538
  },
9576
9539
  downloadPDF({ id: e2 }) {
9577
9540
  const s = {
9578
- headers: S$1,
9541
+ headers: I$1,
9579
9542
  responseType: "arraybuffer"
9580
9543
  };
9581
9544
  return t2.download(`quotes/${e2}`, s);
9582
9545
  }
9583
9546
  };
9584
9547
  }
9585
- function _s({ apiHandler: t2 }) {
9548
+ function Zs({ apiHandler: t2 }) {
9586
9549
  return {
9587
9550
  readyToPayout({ data: e2 }) {
9588
9551
  return t2.post("ready-to-payout", e2);
9589
9552
  }
9590
9553
  };
9591
9554
  }
9592
- function Hs({ apiHandler: t2 }) {
9555
+ function _s({ apiHandler: t2 }) {
9593
9556
  return {
9594
9557
  reactivation({ data: e2 }) {
9595
9558
  return t2.post("subscription-reactivations", e2);
9596
9559
  }
9597
9560
  };
9598
9561
  }
9599
- function er({ apiHandler: t2 }) {
9562
+ function Hs({ apiHandler: t2 }) {
9600
9563
  return {
9601
9564
  changeItems({ id: e2, data: s }) {
9602
9565
  return t2.post(`subscriptions/${e2}/change-items`, s);
@@ -9606,7 +9569,7 @@ function er({ apiHandler: t2 }) {
9606
9569
  }
9607
9570
  };
9608
9571
  }
9609
- function tr({ apiHandler: t2 }) {
9572
+ function er({ apiHandler: t2 }) {
9610
9573
  return {
9611
9574
  /**
9612
9575
  * @param { rebilly.StorefrontGetTransactionCollectionRequest } request
@@ -9639,7 +9602,7 @@ function tr({ apiHandler: t2 }) {
9639
9602
  }
9640
9603
  };
9641
9604
  }
9642
- function sr({ apiHandler: t2 }) {
9605
+ function tr({ apiHandler: t2 }) {
9643
9606
  return {
9644
9607
  /**
9645
9608
  * @returns { rebilly.StorefrontGetWebsiteResponsePromise } response
@@ -9649,27 +9612,27 @@ function sr({ apiHandler: t2 }) {
9649
9612
  }
9650
9613
  };
9651
9614
  }
9652
- class rr {
9615
+ class sr {
9653
9616
  constructor({ apiHandler: e2 }) {
9654
- this.account = Cs({ apiHandler: e2 }), this.authorization = js({ apiHandler: e2 }), this.billingPortals = Ds({ apiHandler: e2 }), this.cashiers = Ms({ apiHandler: e2 }), this.checkoutForms = Fs({ apiHandler: e2 }), this.customFields = Os({ apiHandler: e2 }), this.depositRequests = Ks({ apiHandler: e2 }), this.deposit = Ns({ apiHandler: e2 }), this.depositStrategies = Bs({ apiHandler: e2 }), this.invoices = Ls({ apiHandler: e2 }), this.kycDocuments = zs({ apiHandler: e2 }), this.kycLivenessSessions = Us({ apiHandler: e2 }), this.kycRequests = Vs({ apiHandler: e2 }), this.orders = Js({ apiHandler: e2 }), this.paymentInstruments = Ws({ apiHandler: e2 }), this.payoutRequests = Gs({ apiHandler: e2 }), this.plans = Ys({ apiHandler: e2 }), this.products = Qs({ apiHandler: e2 }), this.purchase = Xs({ apiHandler: e2 }), this.quotes = Zs({ apiHandler: e2 }), this.readyToPayout = _s({ apiHandler: e2 }), this.subscriptionReactivations = Hs({
9617
+ this.account = Ps({ apiHandler: e2 }), this.authorization = Cs({ apiHandler: e2 }), this.billingPortals = js({ apiHandler: e2 }), this.cashiers = Ds({ apiHandler: e2 }), this.checkoutForms = Ms({ apiHandler: e2 }), this.customFields = Fs({ apiHandler: e2 }), this.depositRequests = Os({ apiHandler: e2 }), this.deposit = Ks({ apiHandler: e2 }), this.depositStrategies = Ns({ apiHandler: e2 }), this.invoices = Bs({ apiHandler: e2 }), this.kycDocuments = Ls({ apiHandler: e2 }), this.kycLivenessSessions = zs({ apiHandler: e2 }), this.kycRequests = Us({ apiHandler: e2 }), this.orders = Vs({ apiHandler: e2 }), this.paymentInstruments = Js({ apiHandler: e2 }), this.payoutRequests = Ws({ apiHandler: e2 }), this.plans = Gs({ apiHandler: e2 }), this.products = Ys({ apiHandler: e2 }), this.purchase = Qs({ apiHandler: e2 }), this.quotes = Xs({ apiHandler: e2 }), this.readyToPayout = Zs({ apiHandler: e2 }), this.subscriptionReactivations = _s({
9655
9618
  apiHandler: e2
9656
- }), this.subscriptions = er({ apiHandler: e2 }), this.transactions = tr({ apiHandler: e2 }), this.websites = sr({ apiHandler: e2 }), this.checkoutForm = this.checkoutForms, this.billingPortal = this.billingPortals, this.addRequestInterceptor = e2.addRequestInterceptor, this.removeRequestInterceptor = e2.removeRequestInterceptor, this.addResponseInterceptor = e2.addResponseInterceptor, this.removeResponseInterceptor = e2.removeResponseInterceptor, this.setTimeout = e2.setTimeout, this.setProxyAgent = e2.setProxyAgent, this.setSessionToken = e2.setSessionToken, this.setPublishableKey = e2.setPublishableKey, this.setEndpoints = e2.setEndpoints, this.getCancellationToken = e2.getCancellationToken, this.generateSignature = e2.generateSignature;
9619
+ }), this.subscriptions = Hs({ apiHandler: e2 }), this.transactions = er({ apiHandler: e2 }), this.websites = tr({ apiHandler: e2 }), this.checkoutForm = this.checkoutForms, this.billingPortal = this.billingPortals, this.addRequestInterceptor = e2.addRequestInterceptor, this.removeRequestInterceptor = e2.removeRequestInterceptor, this.addResponseInterceptor = e2.addResponseInterceptor, this.removeResponseInterceptor = e2.removeResponseInterceptor, this.setTimeout = e2.setTimeout, this.setProxyAgent = e2.setProxyAgent, this.setSessionToken = e2.setSessionToken, this.setPublishableKey = e2.setPublishableKey, this.setEndpoints = e2.setEndpoints, this.getCancellationToken = e2.getCancellationToken, this.generateSignature = e2.generateSignature;
9657
9620
  }
9658
9621
  }
9622
+ function rr({ apiHandler: t2 }) {
9623
+ return new ks({ apiHandler: t2 });
9624
+ }
9659
9625
  function nr({ apiHandler: t2 }) {
9660
- return new vs({ apiHandler: t2 });
9626
+ return new xs({ apiHandler: t2 });
9661
9627
  }
9662
9628
  function ur({ apiHandler: t2 }) {
9663
- return new Ps({ apiHandler: t2 });
9664
- }
9665
- function or({ apiHandler: t2 }) {
9666
- return new rr({ apiHandler: t2 });
9629
+ return new sr({ apiHandler: t2 });
9667
9630
  }
9668
9631
  const j$1 = {
9669
9632
  live: "https://api.rebilly.com",
9670
9633
  sandbox: "https://api-sandbox.rebilly.com"
9671
9634
  }, D = 6e3;
9672
- function ar({
9635
+ function gr({
9673
9636
  apiKey: t2 = null,
9674
9637
  sandbox: e2 = false,
9675
9638
  timeout: s = D,
@@ -9695,9 +9658,9 @@ function ar({
9695
9658
  organizationId: r2,
9696
9659
  appName: (u == null ? void 0 : u.appName) ?? null
9697
9660
  }, l = C$1({ options: o2 });
9698
- return nr({ apiHandler: l });
9661
+ return rr({ apiHandler: l });
9699
9662
  }
9700
- function mr({
9663
+ function ar({
9701
9664
  apiKey: t2 = null,
9702
9665
  sandbox: e2 = false,
9703
9666
  timeout: s = D,
@@ -9723,9 +9686,9 @@ function mr({
9723
9686
  organizationId: r2,
9724
9687
  appName: (u == null ? void 0 : u.appName) ?? null
9725
9688
  }, l = C$1({ options: o2 });
9726
- return ur({ apiHandler: l });
9689
+ return nr({ apiHandler: l });
9727
9690
  }
9728
- function fr({
9691
+ function mr({
9729
9692
  publishableKey: t2 = null,
9730
9693
  jwt: e2 = null,
9731
9694
  sandbox: s = false,
@@ -9752,7 +9715,7 @@ function fr({
9752
9715
  organizationId: n2,
9753
9716
  appName: (o2 == null ? void 0 : o2.appName) ?? null
9754
9717
  }, a = C$1({ options: l });
9755
- return a.setSessionToken(l.jwt), or({ apiHandler: a });
9718
+ return a.setSessionToken(l.jwt), ur({ apiHandler: a });
9756
9719
  }
9757
9720
  const TIMEOUT = 6e4;
9758
9721
  function validateStateForStorefront() {
@@ -9793,15 +9756,15 @@ class StorefrontInstance {
9793
9756
  appName: appName ? `${appName}/instruments` : "instruments"
9794
9757
  }
9795
9758
  };
9796
- const api = fr(config);
9759
+ const api = mr(config);
9797
9760
  const rebilly = (
9798
9761
  // @ts-expect-error refactor with above todo
9799
- typeof ar.default === "function" ? (
9762
+ typeof gr.default === "function" ? (
9800
9763
  // @ts-expect-error refactor with above todo
9801
- ar.default(config)
9802
- ) : ar(config)
9764
+ gr.default(config)
9765
+ ) : gr(config)
9803
9766
  );
9804
- const experimental = mr(config);
9767
+ const experimental = ar(config);
9805
9768
  api.setSessionToken(publishableKey || jwt);
9806
9769
  rebilly.setSessionToken(publishableKey || jwt);
9807
9770
  experimental.setSessionToken(publishableKey || jwt);
@@ -22812,7 +22775,7 @@ async function destroy() {
22812
22775
  if (state.form instanceof HTMLElement) {
22813
22776
  state.form.textContent = "";
22814
22777
  }
22815
- await gr.cancelAll();
22778
+ await ir.cancelAll();
22816
22779
  state.loader.clearAll();
22817
22780
  }
22818
22781
  async function update({ newOptions = {} } = {}) {