@rebilly/instruments 16.214.2 → 16.215.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/dist/index.js CHANGED
@@ -6383,7 +6383,7 @@ E$1(I$1, "cancelAll", async (e) => {
6383
6383
  for (const s of q$1.getAll())
6384
6384
  await s.cancel(e), q$1.deleteById(s.id);
6385
6385
  });
6386
- const nr = {
6386
+ const ur = {
6387
6387
  /**
6388
6388
  * @type Cancellation.cancelAll
6389
6389
  */
@@ -6417,7 +6417,7 @@ function O$1({ options: t }) {
6417
6417
  }
6418
6418
  function o() {
6419
6419
  const a = {
6420
- "REB-API-CONSUMER": `${["Rebilly", t.appName, "js-sdk"].filter((m2) => m2).join("/")}@244d435`
6420
+ "REB-API-CONSUMER": `${["Rebilly", t.appName, "js-sdk"].filter((m2) => m2).join("/")}@f3eab18`
6421
6421
  };
6422
6422
  return t.apiKey && (a["REB-APIKEY"] = t.apiKey), a;
6423
6423
  }
@@ -8865,11 +8865,18 @@ function Ot$1({ apiHandler: t }) {
8865
8865
  function Ft$1({ apiHandler: t }) {
8866
8866
  return {
8867
8867
  create({ data: e }) {
8868
- return t.post("payout-request-batch-previews", e);
8868
+ return t.post("payout-request-batch-operations", e);
8869
8869
  }
8870
8870
  };
8871
8871
  }
8872
8872
  function Bt$1({ apiHandler: t }) {
8873
+ return {
8874
+ create({ data: e }) {
8875
+ return t.post("payout-request-batch-previews", e);
8876
+ }
8877
+ };
8878
+ }
8879
+ function Kt$1({ apiHandler: t }) {
8873
8880
  return {
8874
8881
  /**
8875
8882
  * @param { rebilly.GetPayoutRequestBatchCollectionRequest } request
@@ -8933,14 +8940,14 @@ function Bt$1({ apiHandler: t }) {
8933
8940
  }
8934
8941
  };
8935
8942
  }
8936
- function Kt$1({ apiHandler: t }) {
8943
+ function Nt$1({ apiHandler: t }) {
8937
8944
  return {
8938
8945
  create({ data: e }) {
8939
8946
  return t.post("payout-request-splits", e);
8940
8947
  }
8941
8948
  };
8942
8949
  }
8943
- function Nt$1({ apiHandler: t }) {
8950
+ function Lt$1({ apiHandler: t }) {
8944
8951
  return {
8945
8952
  /**
8946
8953
  * @param { rebilly.GetPayoutRequestCollectionRequest } request
@@ -9007,14 +9014,14 @@ function Nt$1({ apiHandler: t }) {
9007
9014
  }
9008
9015
  };
9009
9016
  }
9010
- function Lt$1({ apiHandler: t }) {
9017
+ function zt$1({ apiHandler: t }) {
9011
9018
  return {
9012
9019
  create({ data: e }) {
9013
9020
  return t.post("payouts", e);
9014
9021
  }
9015
9022
  };
9016
9023
  }
9017
- function zt$1({ apiHandler: t }) {
9024
+ function Ut$1({ apiHandler: t }) {
9018
9025
  return {
9019
9026
  /**
9020
9027
  * @param { rebilly.GetPlanCollectionRequest } request
@@ -9054,7 +9061,7 @@ function zt$1({ apiHandler: t }) {
9054
9061
  }
9055
9062
  };
9056
9063
  }
9057
- function Ut$1({ apiHandler: t }) {
9064
+ function Vt$1({ apiHandler: t }) {
9058
9065
  return {
9059
9066
  order({ data: e }) {
9060
9067
  return t.post("previews/orders", e);
@@ -9067,7 +9074,7 @@ function Ut$1({ apiHandler: t }) {
9067
9074
  }
9068
9075
  };
9069
9076
  }
9070
- function Vt$1({ apiHandler: t }) {
9077
+ function Jt$1({ apiHandler: t }) {
9071
9078
  return {
9072
9079
  /**
9073
9080
  * @param { rebilly.GetProductCollectionRequest } request
@@ -9107,7 +9114,7 @@ function Vt$1({ apiHandler: t }) {
9107
9114
  }
9108
9115
  };
9109
9116
  }
9110
- function Jt$1({ apiHandler: t }) {
9117
+ function Wt$1({ apiHandler: t }) {
9111
9118
  return {
9112
9119
  startPermissionsEmulation({ data: e }) {
9113
9120
  return t.post("permissions-emulation", e);
@@ -9148,14 +9155,14 @@ function Jt$1({ apiHandler: t }) {
9148
9155
  }
9149
9156
  };
9150
9157
  }
9151
- function Wt$1({ apiHandler: t }) {
9158
+ function Gt$1({ apiHandler: t }) {
9152
9159
  return {
9153
9160
  readyToPay({ data: e }) {
9154
9161
  return t.post("ready-to-pay", e);
9155
9162
  }
9156
9163
  };
9157
9164
  }
9158
- function Gt$1({ apiHandler: t }) {
9165
+ function Yt$1({ apiHandler: t }) {
9159
9166
  return {
9160
9167
  /**
9161
9168
  * @param { rebilly.GetQuoteCollectionRequest } request
@@ -9248,7 +9255,7 @@ function Gt$1({ apiHandler: t }) {
9248
9255
  }
9249
9256
  };
9250
9257
  }
9251
- function Yt$1({ apiHandler: t }) {
9258
+ function Qt$1({ apiHandler: t }) {
9252
9259
  return {
9253
9260
  /**
9254
9261
  * @returns { rebilly.GetReleaseFlagsResponsePromise } response
@@ -9258,7 +9265,7 @@ function Yt$1({ apiHandler: t }) {
9258
9265
  }
9259
9266
  };
9260
9267
  }
9261
- function Qt$1({ apiHandler: t }) {
9268
+ function Xt$1({ apiHandler: t }) {
9262
9269
  return {
9263
9270
  /**
9264
9271
  * @returns { rebilly.GetExternalIdentifierResponsePromise } response
@@ -9289,7 +9296,7 @@ function Qt$1({ apiHandler: t }) {
9289
9296
  }
9290
9297
  };
9291
9298
  }
9292
- function Xt$1({ apiHandler: t }) {
9299
+ function Zt$1({ apiHandler: t }) {
9293
9300
  return {
9294
9301
  /**
9295
9302
  * @returns { rebilly.GetRiskScoreRulesResponsePromise } response
@@ -9317,7 +9324,7 @@ function Xt$1({ apiHandler: t }) {
9317
9324
  }
9318
9325
  };
9319
9326
  }
9320
- function Zt$1({ apiHandler: t }) {
9327
+ function _t$1({ apiHandler: t }) {
9321
9328
  return {
9322
9329
  /**
9323
9330
  * @param { rebilly.GetRoleCollectionRequest } request
@@ -9359,7 +9366,7 @@ function Zt$1({ apiHandler: t }) {
9359
9366
  }
9360
9367
  };
9361
9368
  }
9362
- function _t$1({ apiHandler: t }) {
9369
+ function Ht$1({ apiHandler: t }) {
9363
9370
  return {
9364
9371
  /**
9365
9372
  * @returns { rebilly.GetSearchResponsePromise } response
@@ -9370,7 +9377,7 @@ function _t$1({ apiHandler: t }) {
9370
9377
  }
9371
9378
  };
9372
9379
  }
9373
- function Ht$1({ apiHandler: t }) {
9380
+ function es({ apiHandler: t }) {
9374
9381
  return {
9375
9382
  /**
9376
9383
  * @param { rebilly.GetGridSegmentCollectionRequest } request
@@ -9410,7 +9417,7 @@ function Ht$1({ apiHandler: t }) {
9410
9417
  }
9411
9418
  };
9412
9419
  }
9413
- function es({ apiHandler: t }) {
9420
+ function ts({ apiHandler: t }) {
9414
9421
  return {
9415
9422
  /**
9416
9423
  * @returns { rebilly.GetSendThroughAttributionCollectionResponsePromise } response
@@ -9420,7 +9427,7 @@ function es({ apiHandler: t }) {
9420
9427
  }
9421
9428
  };
9422
9429
  }
9423
- function ts({ apiHandler: t }) {
9430
+ function ss({ apiHandler: t }) {
9424
9431
  return {
9425
9432
  /**
9426
9433
  * @param { rebilly.GetServiceCredentialCollectionRequest } request
@@ -9471,7 +9478,7 @@ function ts({ apiHandler: t }) {
9471
9478
  }
9472
9479
  };
9473
9480
  }
9474
- function ss({ apiHandler: t }) {
9481
+ function rs({ apiHandler: t }) {
9475
9482
  return {
9476
9483
  /**
9477
9484
  * @param { rebilly.GetShippingRateCollectionRequest } request
@@ -9511,7 +9518,7 @@ function ss({ apiHandler: t }) {
9511
9518
  }
9512
9519
  };
9513
9520
  }
9514
- function rs({ apiHandler: t }) {
9521
+ function ns({ apiHandler: t }) {
9515
9522
  return {
9516
9523
  /**
9517
9524
  * @returns { rebilly.GetStatusResponsePromise } response
@@ -9521,7 +9528,7 @@ function rs({ apiHandler: t }) {
9521
9528
  }
9522
9529
  };
9523
9530
  }
9524
- function ns({ apiHandler: t }) {
9531
+ function us({ apiHandler: t }) {
9525
9532
  return {
9526
9533
  /**
9527
9534
  * @param { rebilly.GetSubscriptionCancellationCollectionRequest } request
@@ -9552,7 +9559,7 @@ function ns({ apiHandler: t }) {
9552
9559
  }
9553
9560
  };
9554
9561
  }
9555
- function us({ apiHandler: t }) {
9562
+ function os({ apiHandler: t }) {
9556
9563
  return {
9557
9564
  /**
9558
9565
  * @param { rebilly.GetSubscriptionPauseCollectionRequest } request
@@ -9586,7 +9593,7 @@ function us({ apiHandler: t }) {
9586
9593
  }
9587
9594
  };
9588
9595
  }
9589
- function os({ apiHandler: t }) {
9596
+ function ls({ apiHandler: t }) {
9590
9597
  return {
9591
9598
  /**
9592
9599
  * @param { rebilly.GetSubscriptionReactivationCollectionRequest } request
@@ -9607,7 +9614,7 @@ function os({ apiHandler: t }) {
9607
9614
  }
9608
9615
  };
9609
9616
  }
9610
- function ls({ apiHandler: t }) {
9617
+ function cs({ apiHandler: t }) {
9611
9618
  return {
9612
9619
  /**
9613
9620
  * @param { rebilly.GetSubscriptionCollectionRequest } request
@@ -9718,7 +9725,7 @@ function ls({ apiHandler: t }) {
9718
9725
  }
9719
9726
  };
9720
9727
  }
9721
- function cs({ apiHandler: t }) {
9728
+ function is({ apiHandler: t }) {
9722
9729
  return {
9723
9730
  /**
9724
9731
  * @param { rebilly.GetTagCollectionRequest } request
@@ -9787,7 +9794,7 @@ function cs({ apiHandler: t }) {
9787
9794
  }
9788
9795
  };
9789
9796
  }
9790
- function is({ apiHandler: t }) {
9797
+ function as({ apiHandler: t }) {
9791
9798
  return {
9792
9799
  /**
9793
9800
  * @param { rebilly.GetTagRuleCollectionRequest } request
@@ -9827,7 +9834,7 @@ function is({ apiHandler: t }) {
9827
9834
  }
9828
9835
  };
9829
9836
  }
9830
- function as({ apiHandler: t }) {
9837
+ function gs({ apiHandler: t }) {
9831
9838
  return {
9832
9839
  /**
9833
9840
  * @param { rebilly.GetTrackingApiCollectionRequest } request
@@ -9909,7 +9916,7 @@ function as({ apiHandler: t }) {
9909
9916
  }
9910
9917
  };
9911
9918
  }
9912
- function gs({ apiHandler: t }) {
9919
+ function ms({ apiHandler: t }) {
9913
9920
  return {
9914
9921
  /**
9915
9922
  * @param { rebilly.GetTransactionCollectionRequest } request
@@ -9986,7 +9993,7 @@ function gs({ apiHandler: t }) {
9986
9993
  }
9987
9994
  };
9988
9995
  }
9989
- function ms({ apiHandler: t }) {
9996
+ function fs({ apiHandler: t }) {
9990
9997
  return {
9991
9998
  /**
9992
9999
  * @param { rebilly.GetUsageCollectionRequest } request
@@ -10016,7 +10023,7 @@ function ms({ apiHandler: t }) {
10016
10023
  }
10017
10024
  };
10018
10025
  }
10019
- function fs({ apiHandler: t }) {
10026
+ function ps({ apiHandler: t }) {
10020
10027
  return {
10021
10028
  deleteUserMembership({ organizationId: e, userId: s }) {
10022
10029
  return t.delete(`memberships/${e}/${s}`);
@@ -10056,7 +10063,7 @@ function fs({ apiHandler: t }) {
10056
10063
  }
10057
10064
  };
10058
10065
  }
10059
- function ps({ apiHandler: t }) {
10066
+ function $s({ apiHandler: t }) {
10060
10067
  return {
10061
10068
  /**
10062
10069
  * @param { rebilly.GetWebhookCollectionRequest } request
@@ -10090,7 +10097,7 @@ function ps({ apiHandler: t }) {
10090
10097
  }
10091
10098
  };
10092
10099
  }
10093
- function $s({ apiHandler: t }) {
10100
+ function hs({ apiHandler: t }) {
10094
10101
  return {
10095
10102
  /**
10096
10103
  * @param { rebilly.GetWebsiteCollectionRequest } request
@@ -10130,7 +10137,7 @@ function $s({ apiHandler: t }) {
10130
10137
  }
10131
10138
  };
10132
10139
  }
10133
- class hs {
10140
+ class ys {
10134
10141
  constructor({ apiHandler: e }) {
10135
10142
  this.account = Fe$1({ apiHandler: e }), this.allowlists = Be$1({ apiHandler: e }), this.amlChecks = Ke$1({ apiHandler: e }), this.amlSettings = Ne$1({ apiHandler: e }), this.apiKeys = Le$1({ apiHandler: e }), this.applicationInstances = ze$1({ apiHandler: e }), this.applications = Ue$1({ apiHandler: e }), this.balanceTransactions = Ve$1({ apiHandler: e }), this.billingPortals = Je$1({ apiHandler: e }), this.blocklists = We$1({ apiHandler: e }), this.broadcastMessages = Ge$1({ apiHandler: e }), this.cashiers = Ye$1({ apiHandler: e }), this.checkoutForms = Qe$1({ apiHandler: e }), this.coupons = Xe$1({ apiHandler: e }), this.creditMemos = Ze$1({ apiHandler: e }), this.customDomains = _e$1({ apiHandler: e }), this.customFields = He$1({ apiHandler: e }), this.customerAuthentication = et$1({ apiHandler: e }), this.customers = tt$1({ apiHandler: e }), this.depositCustomPropertySets = st$1({
10136
10143
  apiHandler: e
@@ -10140,16 +10147,18 @@ class hs {
10140
10147
  apiHandler: e
10141
10148
  }), this.payoutRequestAutoAllocations = Ot$1({
10142
10149
  apiHandler: e
10143
- }), this.payoutRequestBatchPreviews = Ft$1({
10150
+ }), this.payoutRequestBatchOperations = Ft$1({
10151
+ apiHandler: e
10152
+ }), this.payoutRequestBatchPreviews = Bt$1({
10144
10153
  apiHandler: e
10145
- }), this.payoutRequestBatches = Bt$1({ apiHandler: e }), this.payoutRequestSplits = Kt$1({ apiHandler: e }), this.payoutRequests = Nt$1({ apiHandler: e }), this.payouts = Lt$1({ apiHandler: e }), this.plans = zt$1({ apiHandler: e }), this.previews = Ut$1({ apiHandler: e }), this.products = Vt$1({ apiHandler: e }), this.profile = Jt$1({ apiHandler: e }), this.purchase = Wt$1({ apiHandler: e }), this.quotes = Gt$1({ apiHandler: e }), this.releaseFlags = Yt$1({ apiHandler: e }), this.resource = Qt$1({ apiHandler: e }), this.riskScoreRules = Xt$1({ apiHandler: e }), this.roles = Zt$1({ apiHandler: e }), this.search = _t$1({ apiHandler: e }), this.segments = Ht$1({ apiHandler: e }), this.sendThroughAttribution = es({ apiHandler: e }), this.serviceCredentials = ts({ apiHandler: e }), this.shippingRates = ss({ apiHandler: e }), this.status = rs({ apiHandler: e }), this.subscriptionCancellations = ns({
10154
+ }), this.payoutRequestBatches = Kt$1({ apiHandler: e }), this.payoutRequestSplits = Nt$1({ apiHandler: e }), this.payoutRequests = Lt$1({ apiHandler: e }), this.payouts = zt$1({ apiHandler: e }), this.plans = Ut$1({ apiHandler: e }), this.previews = Vt$1({ apiHandler: e }), this.products = Jt$1({ apiHandler: e }), this.profile = Wt$1({ apiHandler: e }), this.purchase = Gt$1({ apiHandler: e }), this.quotes = Yt$1({ apiHandler: e }), this.releaseFlags = Qt$1({ apiHandler: e }), this.resource = Xt$1({ apiHandler: e }), this.riskScoreRules = Zt$1({ apiHandler: e }), this.roles = _t$1({ apiHandler: e }), this.search = Ht$1({ apiHandler: e }), this.segments = es({ apiHandler: e }), this.sendThroughAttribution = ts({ apiHandler: e }), this.serviceCredentials = ss({ apiHandler: e }), this.shippingRates = rs({ apiHandler: e }), this.status = ns({ apiHandler: e }), this.subscriptionCancellations = us({
10146
10155
  apiHandler: e
10147
- }), this.subscriptionPauses = us({ apiHandler: e }), this.subscriptionReactivations = os({
10156
+ }), this.subscriptionPauses = os({ apiHandler: e }), this.subscriptionReactivations = ls({
10148
10157
  apiHandler: e
10149
- }), this.subscriptions = ls({ apiHandler: e }), this.tags = cs({ apiHandler: e }), this.tagsRules = is({ apiHandler: e }), this.tracking = as({ apiHandler: e }), this.transactions = gs({ apiHandler: e }), this.usages = ms({ apiHandler: e }), this.users = fs({ apiHandler: e }), this.webhooks = ps({ apiHandler: e }), this.websites = $s({ apiHandler: e }), this.addRequestInterceptor = e.addRequestInterceptor, this.removeRequestInterceptor = e.removeRequestInterceptor, this.addResponseInterceptor = e.addResponseInterceptor, this.removeResponseInterceptor = e.removeResponseInterceptor, this.setTimeout = e.setTimeout, this.setProxyAgent = e.setProxyAgent, this.setSessionToken = e.setSessionToken, this.setPublishableKey = e.setPublishableKey, this.setEndpoints = e.setEndpoints, this.getCancellationToken = e.getCancellationToken, this.generateSignature = e.generateSignature;
10158
+ }), this.subscriptions = cs({ apiHandler: e }), this.tags = is({ apiHandler: e }), this.tagsRules = as({ apiHandler: e }), this.tracking = gs({ apiHandler: e }), this.transactions = ms({ apiHandler: e }), this.usages = fs({ apiHandler: e }), this.users = ps({ apiHandler: e }), this.webhooks = $s({ apiHandler: e }), this.websites = hs({ apiHandler: e }), this.addRequestInterceptor = e.addRequestInterceptor, this.removeRequestInterceptor = e.removeRequestInterceptor, this.addResponseInterceptor = e.addResponseInterceptor, this.removeResponseInterceptor = e.removeResponseInterceptor, this.setTimeout = e.setTimeout, this.setProxyAgent = e.setProxyAgent, this.setSessionToken = e.setSessionToken, this.setPublishableKey = e.setPublishableKey, this.setEndpoints = e.setEndpoints, this.getCancellationToken = e.getCancellationToken, this.generateSignature = e.generateSignature;
10150
10159
  }
10151
10160
  }
10152
- function ys({ apiHandler: t }) {
10161
+ function As({ apiHandler: t }) {
10153
10162
  return {
10154
10163
  /**
10155
10164
  * @returns { rebilly.GetCustomerSummaryMetricReportResponsePromise } response
@@ -10159,7 +10168,7 @@ function ys({ apiHandler: t }) {
10159
10168
  }
10160
10169
  };
10161
10170
  }
10162
- function As({ apiHandler: t }) {
10171
+ function Rs({ apiHandler: t }) {
10163
10172
  return {
10164
10173
  /**
10165
10174
  * @param { rebilly.GetDataExportCollectionRequest } request
@@ -10204,7 +10213,7 @@ function As({ apiHandler: t }) {
10204
10213
  }
10205
10214
  };
10206
10215
  }
10207
- function Rs({ apiHandler: t }) {
10216
+ function bs({ apiHandler: t }) {
10208
10217
  return {
10209
10218
  /**
10210
10219
  * @returns { rebilly.GetHistogramAmlCheckReportResponsePromise } response
@@ -10248,7 +10257,7 @@ function Rs({ apiHandler: t }) {
10248
10257
  }
10249
10258
  };
10250
10259
  }
10251
- function bs({ apiHandler: t }) {
10260
+ function ws({ apiHandler: t }) {
10252
10261
  return {
10253
10262
  /**
10254
10263
  * @returns { rebilly.GetApiLogSummaryReportResponsePromise } response
@@ -10747,7 +10756,7 @@ function bs({ apiHandler: t }) {
10747
10756
  }
10748
10757
  };
10749
10758
  }
10750
- function ws({ apiHandler: t }) {
10759
+ function ks({ apiHandler: t }) {
10751
10760
  return {
10752
10761
  /**
10753
10762
  * @returns { rebilly.GetSubscriptionSummaryMetricReportResponsePromise } response
@@ -10757,7 +10766,7 @@ function ws({ apiHandler: t }) {
10757
10766
  }
10758
10767
  };
10759
10768
  }
10760
- function ks({ apiHandler: t }) {
10769
+ function vs({ apiHandler: t }) {
10761
10770
  return {
10762
10771
  getActivityFeed({ eventTypes: e = null, limit: s = 1e3, offset: r = 0 }) {
10763
10772
  const n = {
@@ -10785,7 +10794,7 @@ function ks({ apiHandler: t }) {
10785
10794
  }
10786
10795
  };
10787
10796
  }
10788
- function vs({ apiHandler: t }) {
10797
+ function qs({ apiHandler: t }) {
10789
10798
  return {
10790
10799
  query() {
10791
10800
  return t.get("location");
@@ -10793,15 +10802,15 @@ function vs({ apiHandler: t }) {
10793
10802
  };
10794
10803
  }
10795
10804
  const b = {
10796
- CustomersResource: ys,
10797
- DataExportsResource: As,
10798
- HistogramsResource: Rs,
10799
- ReportsResource: bs,
10800
- SubscriptionsResource: ws,
10801
- TimelinesResource: ks,
10802
- LocationResource: vs
10805
+ CustomersResource: As,
10806
+ DataExportsResource: Rs,
10807
+ HistogramsResource: bs,
10808
+ ReportsResource: ws,
10809
+ SubscriptionsResource: ks,
10810
+ TimelinesResource: vs,
10811
+ LocationResource: qs
10803
10812
  };
10804
- class qs {
10813
+ class ds {
10805
10814
  constructor({ apiHandler: e }) {
10806
10815
  this.customers = b.CustomersResource({ apiHandler: e }), this.dataExports = b.DataExportsResource({
10807
10816
  apiHandler: e
@@ -10810,7 +10819,7 @@ class qs {
10810
10819
  }), this.timelines = b.TimelinesResource({ apiHandler: e }), this.location = b.LocationResource({ apiHandler: e }), this.addRequestInterceptor = e.addRequestInterceptor, this.removeRequestInterceptor = e.removeRequestInterceptor, this.addResponseInterceptor = e.addResponseInterceptor, this.removeResponseInterceptor = e.removeResponseInterceptor, this.setTimeout = e.setTimeout, this.setProxyAgent = e.setProxyAgent, this.setSessionToken = e.setSessionToken, this.setEndpoints = e.setEndpoints, this.getCancellationToken = e.getCancellationToken;
10811
10820
  }
10812
10821
  }
10813
- function ds({ apiHandler: t }) {
10822
+ function Ts({ apiHandler: t }) {
10814
10823
  return {
10815
10824
  /**
10816
10825
  * @returns { rebilly.StorefrontGetAccountResponsePromise } response
@@ -10842,7 +10851,7 @@ function ds({ apiHandler: t }) {
10842
10851
  }
10843
10852
  };
10844
10853
  }
10845
- function Ts({ apiHandler: t }) {
10854
+ function Is({ apiHandler: t }) {
10846
10855
  return {
10847
10856
  login({ data: e }) {
10848
10857
  return t.post("login", e);
@@ -10852,7 +10861,7 @@ function Ts({ apiHandler: t }) {
10852
10861
  }
10853
10862
  };
10854
10863
  }
10855
- function Is({ apiHandler: t }) {
10864
+ function Ss({ apiHandler: t }) {
10856
10865
  return {
10857
10866
  /**
10858
10867
  * @returns { rebilly.StorefrontGetBillingPortalResponsePromise } response
@@ -10862,7 +10871,7 @@ function Is({ apiHandler: t }) {
10862
10871
  }
10863
10872
  };
10864
10873
  }
10865
- function Ss({ apiHandler: t }) {
10874
+ function Es({ apiHandler: t }) {
10866
10875
  return {
10867
10876
  /**
10868
10877
  * @returns { rebilly.StorefrontGetCashierResponsePromise } response
@@ -10872,7 +10881,7 @@ function Ss({ apiHandler: t }) {
10872
10881
  }
10873
10882
  };
10874
10883
  }
10875
- function Es({ apiHandler: t }) {
10884
+ function Ps({ apiHandler: t }) {
10876
10885
  return {
10877
10886
  /**
10878
10887
  * @returns { rebilly.StorefrontGetCheckoutFormResponsePromise } response
@@ -10882,7 +10891,7 @@ function Es({ apiHandler: t }) {
10882
10891
  }
10883
10892
  };
10884
10893
  }
10885
- function Ps({ apiHandler: t }) {
10894
+ function xs({ apiHandler: t }) {
10886
10895
  return {
10887
10896
  /**
10888
10897
  * @param { rebilly.StorefrontGetCustomFieldCollectionRequest } request
@@ -10894,7 +10903,7 @@ function Ps({ apiHandler: t }) {
10894
10903
  }
10895
10904
  };
10896
10905
  }
10897
- function xs({ apiHandler: t }) {
10906
+ function Cs({ apiHandler: t }) {
10898
10907
  return {
10899
10908
  /**
10900
10909
  * @returns { rebilly.StorefrontGetDepositRequestResponsePromise } response
@@ -10905,14 +10914,14 @@ function xs({ apiHandler: t }) {
10905
10914
  }
10906
10915
  };
10907
10916
  }
10908
- function Cs({ apiHandler: t }) {
10917
+ function Ds({ apiHandler: t }) {
10909
10918
  return {
10910
10919
  create({ data: e }) {
10911
10920
  return t.post("deposit", e);
10912
10921
  }
10913
10922
  };
10914
10923
  }
10915
- function Ds({ apiHandler: t }) {
10924
+ function js({ apiHandler: t }) {
10916
10925
  return {
10917
10926
  /**
10918
10927
  * @returns { rebilly.StorefrontGetDepositStrategyResponsePromise } response
@@ -10922,7 +10931,7 @@ function Ds({ apiHandler: t }) {
10922
10931
  }
10923
10932
  };
10924
10933
  }
10925
- function js({ apiHandler: t }) {
10934
+ function Ms({ apiHandler: t }) {
10926
10935
  return {
10927
10936
  /**
10928
10937
  * @param { rebilly.StorefrontGetInvoiceCollectionRequest } request
@@ -10958,7 +10967,7 @@ function js({ apiHandler: t }) {
10958
10967
  }
10959
10968
  };
10960
10969
  }
10961
- function Ms({ apiHandler: t }) {
10970
+ function Os({ apiHandler: t }) {
10962
10971
  return {
10963
10972
  create({ data: e }) {
10964
10973
  return t.post("kyc-documents", e);
@@ -10974,7 +10983,7 @@ function Ms({ apiHandler: t }) {
10974
10983
  }
10975
10984
  };
10976
10985
  }
10977
- function Os({ apiHandler: t }) {
10986
+ function Fs({ apiHandler: t }) {
10978
10987
  return {
10979
10988
  create({ data: e }) {
10980
10989
  return t.post("kyc-liveness-sessions", e);
@@ -10990,7 +10999,7 @@ function Os({ apiHandler: t }) {
10990
10999
  }
10991
11000
  };
10992
11001
  }
10993
- function Fs({ apiHandler: t }) {
11002
+ function Bs({ apiHandler: t }) {
10994
11003
  return {
10995
11004
  /**
10996
11005
  * @returns { rebilly.StorefrontGetKycRequestResponsePromise } response
@@ -11001,7 +11010,7 @@ function Fs({ apiHandler: t }) {
11001
11010
  }
11002
11011
  };
11003
11012
  }
11004
- function Bs({ apiHandler: t }) {
11013
+ function Ks({ apiHandler: t }) {
11005
11014
  return {
11006
11015
  /**
11007
11016
  * @returns { rebilly.StorefrontGetOrderUpcomingInvoiceResponsePromise } response
@@ -11043,7 +11052,7 @@ function Bs({ apiHandler: t }) {
11043
11052
  }
11044
11053
  };
11045
11054
  }
11046
- function Ks({ apiHandler: t }) {
11055
+ function Ns({ apiHandler: t }) {
11047
11056
  return {
11048
11057
  /**
11049
11058
  * @param { rebilly.StorefrontGetPaymentInstrumentCollectionRequest } request
@@ -11086,14 +11095,14 @@ function Ks({ apiHandler: t }) {
11086
11095
  }
11087
11096
  };
11088
11097
  }
11089
- function Ns({ apiHandler: t }) {
11098
+ function Ls({ apiHandler: t }) {
11090
11099
  return {
11091
11100
  create({ data: e }) {
11092
11101
  return t.post("payout-request-cancellations", e);
11093
11102
  }
11094
11103
  };
11095
11104
  }
11096
- function Ls({ apiHandler: t }) {
11105
+ function zs({ apiHandler: t }) {
11097
11106
  return {
11098
11107
  /**
11099
11108
  * @param { rebilly.StorefrontGetPayoutRequestCollectionRequest } request
@@ -11123,7 +11132,7 @@ function Ls({ apiHandler: t }) {
11123
11132
  }
11124
11133
  };
11125
11134
  }
11126
- function zs({ apiHandler: t }) {
11135
+ function Us({ apiHandler: t }) {
11127
11136
  return {
11128
11137
  /**
11129
11138
  * @param { rebilly.StorefrontGetPlanCollectionRequest } request
@@ -11149,7 +11158,7 @@ function zs({ apiHandler: t }) {
11149
11158
  }
11150
11159
  };
11151
11160
  }
11152
- function Us({ apiHandler: t }) {
11161
+ function Vs({ apiHandler: t }) {
11153
11162
  return {
11154
11163
  /**
11155
11164
  * @param { rebilly.StorefrontGetProductCollectionRequest } request
@@ -11173,7 +11182,7 @@ function Us({ apiHandler: t }) {
11173
11182
  }
11174
11183
  };
11175
11184
  }
11176
- function Vs({ apiHandler: t }) {
11185
+ function Js({ apiHandler: t }) {
11177
11186
  return {
11178
11187
  payment({ data: e }) {
11179
11188
  return t.post("payment", e);
@@ -11189,7 +11198,7 @@ function Vs({ apiHandler: t }) {
11189
11198
  }
11190
11199
  };
11191
11200
  }
11192
- function Js({ apiHandler: t }) {
11201
+ function Ws({ apiHandler: t }) {
11193
11202
  return {
11194
11203
  /**
11195
11204
  * @returns { rebilly.StorefrontGetQuoteResponsePromise } response
@@ -11213,21 +11222,21 @@ function Js({ apiHandler: t }) {
11213
11222
  }
11214
11223
  };
11215
11224
  }
11216
- function Ws({ apiHandler: t }) {
11225
+ function Gs({ apiHandler: t }) {
11217
11226
  return {
11218
11227
  readyToPayout({ data: e }) {
11219
11228
  return t.post("ready-to-payout", e);
11220
11229
  }
11221
11230
  };
11222
11231
  }
11223
- function Gs({ apiHandler: t }) {
11232
+ function Ys({ apiHandler: t }) {
11224
11233
  return {
11225
11234
  reactivation({ data: e }) {
11226
11235
  return t.post("subscription-reactivations", e);
11227
11236
  }
11228
11237
  };
11229
11238
  }
11230
- function Ys({ apiHandler: t }) {
11239
+ function Qs({ apiHandler: t }) {
11231
11240
  return {
11232
11241
  changeItems({ id: e, data: s }) {
11233
11242
  return t.post(`subscriptions/${e}/change-items`, s);
@@ -11237,7 +11246,7 @@ function Ys({ apiHandler: t }) {
11237
11246
  }
11238
11247
  };
11239
11248
  }
11240
- function Qs({ apiHandler: t }) {
11249
+ function Xs({ apiHandler: t }) {
11241
11250
  return {
11242
11251
  /**
11243
11252
  * @param { rebilly.StorefrontGetTransactionCollectionRequest } request
@@ -11286,7 +11295,7 @@ function Qs({ apiHandler: t }) {
11286
11295
  }
11287
11296
  };
11288
11297
  }
11289
- function Xs({ apiHandler: t }) {
11298
+ function Zs({ apiHandler: t }) {
11290
11299
  return {
11291
11300
  /**
11292
11301
  * @returns { rebilly.StorefrontGetWebsiteResponsePromise } response
@@ -11296,29 +11305,29 @@ function Xs({ apiHandler: t }) {
11296
11305
  }
11297
11306
  };
11298
11307
  }
11299
- class Zs {
11308
+ class _s {
11300
11309
  constructor({ apiHandler: e }) {
11301
- this.account = ds({ apiHandler: e }), this.authorization = Ts({ apiHandler: e }), this.billingPortals = Is({ apiHandler: e }), this.cashiers = Ss({ apiHandler: e }), this.checkoutForms = Es({ apiHandler: e }), this.customFields = Ps({ apiHandler: e }), this.depositRequests = xs({ apiHandler: e }), this.deposit = Cs({ apiHandler: e }), this.depositStrategies = Ds({ apiHandler: e }), this.invoices = js({ apiHandler: e }), this.kycDocuments = Ms({ apiHandler: e }), this.kycLivenessSessions = Os({ apiHandler: e }), this.kycRequests = Fs({ apiHandler: e }), this.orders = Bs({ apiHandler: e }), this.paymentInstruments = Ks({ apiHandler: e }), this.payoutRequestCancellations = Ns({
11310
+ this.account = Ts({ apiHandler: e }), this.authorization = Is({ apiHandler: e }), this.billingPortals = Ss({ apiHandler: e }), this.cashiers = Es({ apiHandler: e }), this.checkoutForms = Ps({ apiHandler: e }), this.customFields = xs({ apiHandler: e }), this.depositRequests = Cs({ apiHandler: e }), this.deposit = Ds({ apiHandler: e }), this.depositStrategies = js({ apiHandler: e }), this.invoices = Ms({ apiHandler: e }), this.kycDocuments = Os({ apiHandler: e }), this.kycLivenessSessions = Fs({ apiHandler: e }), this.kycRequests = Bs({ apiHandler: e }), this.orders = Ks({ apiHandler: e }), this.paymentInstruments = Ns({ apiHandler: e }), this.payoutRequestCancellations = Ls({
11302
11311
  apiHandler: e
11303
- }), this.payoutRequests = Ls({ apiHandler: e }), this.plans = zs({ apiHandler: e }), this.products = Us({ apiHandler: e }), this.purchase = Vs({ apiHandler: e }), this.quotes = Js({ apiHandler: e }), this.readyToPayout = Ws({ apiHandler: e }), this.subscriptionReactivations = Gs({
11312
+ }), this.payoutRequests = zs({ apiHandler: e }), this.plans = Us({ apiHandler: e }), this.products = Vs({ apiHandler: e }), this.purchase = Js({ apiHandler: e }), this.quotes = Ws({ apiHandler: e }), this.readyToPayout = Gs({ apiHandler: e }), this.subscriptionReactivations = Ys({
11304
11313
  apiHandler: e
11305
- }), this.subscriptions = Ys({ apiHandler: e }), this.transactions = Qs({ apiHandler: e }), this.websites = Xs({ apiHandler: e }), this.checkoutForm = this.checkoutForms, this.billingPortal = this.billingPortals, this.addRequestInterceptor = e.addRequestInterceptor, this.removeRequestInterceptor = e.removeRequestInterceptor, this.addResponseInterceptor = e.addResponseInterceptor, this.removeResponseInterceptor = e.removeResponseInterceptor, this.setTimeout = e.setTimeout, this.setProxyAgent = e.setProxyAgent, this.setSessionToken = e.setSessionToken, this.setPublishableKey = e.setPublishableKey, this.setEndpoints = e.setEndpoints, this.getCancellationToken = e.getCancellationToken, this.generateSignature = e.generateSignature;
11314
+ }), this.subscriptions = Qs({ apiHandler: e }), this.transactions = Xs({ apiHandler: e }), this.websites = Zs({ apiHandler: e }), this.checkoutForm = this.checkoutForms, this.billingPortal = this.billingPortals, this.addRequestInterceptor = e.addRequestInterceptor, this.removeRequestInterceptor = e.removeRequestInterceptor, this.addResponseInterceptor = e.addResponseInterceptor, this.removeResponseInterceptor = e.removeResponseInterceptor, this.setTimeout = e.setTimeout, this.setProxyAgent = e.setProxyAgent, this.setSessionToken = e.setSessionToken, this.setPublishableKey = e.setPublishableKey, this.setEndpoints = e.setEndpoints, this.getCancellationToken = e.getCancellationToken, this.generateSignature = e.generateSignature;
11306
11315
  }
11307
11316
  }
11308
- function _s({ apiHandler: t }) {
11309
- return new hs({ apiHandler: t });
11310
- }
11311
11317
  function Hs({ apiHandler: t }) {
11312
- return new qs({ apiHandler: t });
11318
+ return new ys({ apiHandler: t });
11313
11319
  }
11314
11320
  function er({ apiHandler: t }) {
11315
- return new Zs({ apiHandler: t });
11321
+ return new ds({ apiHandler: t });
11322
+ }
11323
+ function tr({ apiHandler: t }) {
11324
+ return new _s({ apiHandler: t });
11316
11325
  }
11317
11326
  const F$1 = {
11318
11327
  live: "https://api.rebilly.com",
11319
11328
  sandbox: "https://api-sandbox.rebilly.com"
11320
11329
  }, B$1 = 6e3;
11321
- function ur({
11330
+ function or({
11322
11331
  apiKey: t = null,
11323
11332
  sandbox: e = false,
11324
11333
  timeout: s = B$1,
@@ -11344,9 +11353,9 @@ function ur({
11344
11353
  organizationId: r,
11345
11354
  appName: (u == null ? void 0 : u.appName) ?? null
11346
11355
  }, l = O$1({ options: o });
11347
- return _s({ apiHandler: l });
11356
+ return Hs({ apiHandler: l });
11348
11357
  }
11349
- function or({
11358
+ function lr({
11350
11359
  apiKey: t = null,
11351
11360
  sandbox: e = false,
11352
11361
  timeout: s = B$1,
@@ -11372,9 +11381,9 @@ function or({
11372
11381
  organizationId: r,
11373
11382
  appName: (u == null ? void 0 : u.appName) ?? null
11374
11383
  }, l = O$1({ options: o });
11375
- return Hs({ apiHandler: l });
11384
+ return er({ apiHandler: l });
11376
11385
  }
11377
- function lr({
11386
+ function cr({
11378
11387
  publishableKey: t = null,
11379
11388
  jwt: e = null,
11380
11389
  sandbox: s = false,
@@ -11401,7 +11410,7 @@ function lr({
11401
11410
  organizationId: n,
11402
11411
  appName: (o == null ? void 0 : o.appName) ?? null
11403
11412
  }, i = O$1({ options: l });
11404
- return i.setSessionToken(l.jwt), er({ apiHandler: i });
11413
+ return i.setSessionToken(l.jwt), tr({ apiHandler: i });
11405
11414
  }
11406
11415
  const TIMEOUT = 6e4;
11407
11416
  function validateStateForStorefront() {
@@ -11442,15 +11451,15 @@ class StorefrontInstance {
11442
11451
  appName: appName ? `${appName}/instruments` : "instruments"
11443
11452
  }
11444
11453
  };
11445
- const api = lr(config);
11454
+ const api = cr(config);
11446
11455
  const rebilly = (
11447
11456
  // @ts-expect-error refactor with above todo
11448
- typeof ur.default === "function" ? (
11457
+ typeof or.default === "function" ? (
11449
11458
  // @ts-expect-error refactor with above todo
11450
- ur.default(config)
11451
- ) : ur(config)
11459
+ or.default(config)
11460
+ ) : or(config)
11452
11461
  );
11453
- const experimental = or(config);
11462
+ const experimental = lr(config);
11454
11463
  api.setSessionToken(publishableKey || jwt);
11455
11464
  rebilly.setSessionToken(publishableKey || jwt);
11456
11465
  experimental.setSessionToken(publishableKey || jwt);
@@ -15232,7 +15241,7 @@ function handleComputedProperty(options) {
15232
15241
  var _a;
15233
15242
  return Object.assign({}, options, {
15234
15243
  _computed: {
15235
- version: "16.214.2",
15244
+ version: "16.215.0",
15236
15245
  paymentMethodsUrl: ((_a = options._dev) == null ? void 0 : _a.paymentMethodsUrl) ?? "https://forms.secure-payments.app"
15237
15246
  }
15238
15247
  });
@@ -18843,7 +18852,7 @@ async function destroy() {
18843
18852
  if (state.form instanceof HTMLElement) {
18844
18853
  state.form.textContent = "";
18845
18854
  }
18846
- await nr.cancelAll();
18855
+ await ur.cancelAll();
18847
18856
  state.loader.clearAll();
18848
18857
  }
18849
18858
  async function update({ newOptions = {} } = {}) {
@@ -18884,7 +18893,7 @@ class RebillyInstrumentsInstance {
18884
18893
  await show({ componentName, payload });
18885
18894
  }
18886
18895
  get version() {
18887
- return `RebillyInstruments Ver.${"16.214.2"}`;
18896
+ return `RebillyInstruments Ver.${"16.215.0"}`;
18888
18897
  }
18889
18898
  on(eventName, callback) {
18890
18899
  on({ eventName, callback });