@rebilly/instruments 16.104.1 → 16.106.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.104.1](https://github.com/Rebilly/rebilly/compare/instruments/core-v16.104.0...instruments/core-v16.104.1) (2026-04-30)
1
+ ## [16.106.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v16.105.0...instruments/core-v16.106.0) (2026-05-01)
2
2
 
3
3
 
4
- ### Bug Fixes
4
+ ### Features
5
5
 
6
- * **rebilly-js-sdk:** Remove payout-requests-v-2-resource resource manually ([#21036](https://github.com/Rebilly/rebilly/issues/21036)) ([0d6e864](https://github.com/Rebilly/rebilly/commit/0d6e86490a90a25df3f8dcef7252525ca05581fb))
6
+ * **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#21064](https://github.com/Rebilly/rebilly/issues/21064)) ([e8202ad](https://github.com/Rebilly/rebilly/commit/e8202ad1007d21d3647e0907255ff7eba2ac03ba))
package/dist/index.js CHANGED
@@ -220,7 +220,7 @@ const arrayInstrumentations = {
220
220
  return apply(this, "every", fn, thisArg, void 0, arguments);
221
221
  },
222
222
  filter(fn, thisArg) {
223
- return apply(this, "filter", fn, thisArg, (v2) => v2.map(toReactive), arguments);
223
+ return apply(this, "filter", fn, thisArg, (v) => v.map(toReactive), arguments);
224
224
  },
225
225
  find(fn, thisArg) {
226
226
  return apply(this, "find", fn, thisArg, toReactive, arguments);
@@ -510,7 +510,7 @@ class ReadonlyReactiveHandler extends BaseReactiveHandler {
510
510
  const mutableHandlers = /* @__PURE__ */ new MutableReactiveHandler();
511
511
  const readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler();
512
512
  const toShallow = (value) => value;
513
- const getProto = (v2) => Reflect.getPrototypeOf(v2);
513
+ const getProto = (v) => Reflect.getPrototypeOf(v);
514
514
  function createIterableMethod(method, isReadonly2, isShallow2) {
515
515
  return function(...args) {
516
516
  const target = this["__v_raw"];
@@ -4982,8 +4982,8 @@ var ke$1 = Object.prototype.toString, Y$1 = function(e2) {
4982
4982
  if (ve$1(e2)) return "array";
4983
4983
  if (xe$1(e2)) return "buffer";
4984
4984
  if (Ee$1(e2)) return "arguments";
4985
- if (Te$1(e2)) return "date";
4986
- if (qe$1(e2)) return "error";
4985
+ if (qe$1(e2)) return "date";
4986
+ if (Te$1(e2)) return "error";
4987
4987
  if (de$1(e2)) return "regexp";
4988
4988
  switch (Q$1(e2)) {
4989
4989
  case "Symbol":
@@ -5039,10 +5039,10 @@ function Q$1(t2) {
5039
5039
  function ve$1(t2) {
5040
5040
  return Array.isArray ? Array.isArray(t2) : t2 instanceof Array;
5041
5041
  }
5042
- function qe$1(t2) {
5042
+ function Te$1(t2) {
5043
5043
  return t2 instanceof Error || typeof t2.message == "string" && t2.constructor && typeof t2.constructor.stackTraceLimit == "number";
5044
5044
  }
5045
- function Te$1(t2) {
5045
+ function qe$1(t2) {
5046
5046
  return t2 instanceof Date ? true : typeof t2.toDateString == "function" && typeof t2.getDate == "function" && typeof t2.setDate == "function";
5047
5047
  }
5048
5048
  function de$1(t2) {
@@ -5091,7 +5091,7 @@ function Ce$1(t2, e2) {
5091
5091
  case "symbol":
5092
5092
  return Fe$1(t2);
5093
5093
  case "arraybuffer":
5094
- return De$1(t2);
5094
+ return je$1(t2);
5095
5095
  case "float32array":
5096
5096
  case "float64array":
5097
5097
  case "int16array":
@@ -5103,18 +5103,18 @@ function Ce$1(t2, e2) {
5103
5103
  case "uint8array":
5104
5104
  return Me$1(t2);
5105
5105
  case "regexp":
5106
- return je$1(t2);
5106
+ return De$1(t2);
5107
5107
  case "error":
5108
5108
  return Object.create(t2);
5109
5109
  default:
5110
5110
  return t2;
5111
5111
  }
5112
5112
  }
5113
- function je$1(t2) {
5113
+ function De$1(t2) {
5114
5114
  const e2 = t2.flags !== void 0 ? t2.flags : /\w+$/.exec(t2) || void 0, s = new t2.constructor(t2.source, e2);
5115
5115
  return s.lastIndex = t2.lastIndex, s;
5116
5116
  }
5117
- function De$1(t2) {
5117
+ function je$1(t2) {
5118
5118
  const e2 = new t2.constructor(t2.byteLength);
5119
5119
  return new Uint8Array(e2).set(new Uint8Array(t2)), e2;
5120
5120
  }
@@ -5195,11 +5195,11 @@ let Ze$1 = class Ze {
5195
5195
  });
5196
5196
  }
5197
5197
  };
5198
- class v {
5198
+ class T {
5199
5199
  constructor() {
5200
- if (v.instance)
5201
- return v.instance;
5202
- this.requests = {}, v.instance = this;
5200
+ if (T.instance)
5201
+ return T.instance;
5202
+ this.requests = {}, T.instance = this;
5203
5203
  }
5204
5204
  /**
5205
5205
  * Returns Array with all CachedRequest from the cache.
@@ -5237,12 +5237,12 @@ class v {
5237
5237
  return this.requests[e2.id] = e2, { id: e2.id, cancelToken: e2.cancelToken };
5238
5238
  }
5239
5239
  }
5240
- const w = new v();
5241
- class T {
5242
- }
5243
- E$1(T, "cancelById", (e2, s) => {
5240
+ const k$1 = new T();
5241
+ let q$1 = class q {
5242
+ };
5243
+ E$1(q$1, "cancelById", (e2, s) => {
5244
5244
  try {
5245
- w.getById(e2).cancel(s), w.deleteById(e2);
5245
+ k$1.getById(e2).cancel(s), k$1.deleteById(e2);
5246
5246
  } catch {
5247
5247
  }
5248
5248
  }), /**
@@ -5260,15 +5260,15 @@ E$1(T, "cancelById", (e2, s) => {
5260
5260
  * // cancel all active requests
5261
5261
  * await cancellation.cancelAll();
5262
5262
  */
5263
- E$1(T, "cancelAll", async (e2) => {
5264
- for (const s of w.getAll())
5265
- await s.cancel(e2), w.deleteById(s.id);
5263
+ E$1(q$1, "cancelAll", async (e2) => {
5264
+ for (const s of k$1.getAll())
5265
+ await s.cancel(e2), k$1.deleteById(s.id);
5266
5266
  });
5267
5267
  const pr = {
5268
5268
  /**
5269
5269
  * @type Cancellation.cancelAll
5270
5270
  */
5271
- cancelAll: async (...t2) => await T.cancelAll(...t2)
5271
+ cancelAll: async (...t2) => await q$1.cancelAll(...t2)
5272
5272
  }, b = {
5273
5273
  request: "request",
5274
5274
  response: "response"
@@ -5298,7 +5298,7 @@ function C$1({ options: t2 }) {
5298
5298
  }
5299
5299
  function o2() {
5300
5300
  const i = {
5301
- "REB-API-CONSUMER": `${["Rebilly", t2.appName, "js-sdk"].filter((g) => g).join("/")}@e37db3b`
5301
+ "REB-API-CONSUMER": `${["Rebilly", t2.appName, "js-sdk"].filter((g) => g).join("/")}@c38a91c`
5302
5302
  };
5303
5303
  return t2.apiKey && (i["REB-APIKEY"] = t2.apiKey), i;
5304
5304
  }
@@ -5360,23 +5360,23 @@ function C$1({ options: t2 }) {
5360
5360
  O2(b.response, c);
5361
5361
  }
5362
5362
  function A2({ request: c, isCollection: i, config: g }) {
5363
- const m2 = B2(g), { id: h2, cancelToken: ce2 } = w.save();
5363
+ const m2 = B2(g), { id: h2, cancelToken: ce2 } = k$1.save();
5364
5364
  m2.cancelToken = ce2;
5365
5365
  const z2 = async function() {
5366
5366
  try {
5367
- const k2 = await c(m2);
5367
+ const v = await c(m2);
5368
5368
  return ee2({
5369
- response: k2,
5369
+ response: v,
5370
5370
  isCollection: i,
5371
5371
  config: m2
5372
5372
  });
5373
- } catch (k2) {
5374
- return F2({ error: k2 });
5373
+ } catch (v) {
5374
+ return F2({ error: v });
5375
5375
  } finally {
5376
- w.deleteById(h2);
5376
+ k$1.deleteById(h2);
5377
5377
  }
5378
5378
  }();
5379
- return z2.cancel = (k2) => T.cancelById(h2, k2), z2;
5379
+ return z2.cancel = (v) => q$1.cancelById(h2, v), z2;
5380
5380
  }
5381
5381
  function ee2({ response: c, isCollection: i, config: g }) {
5382
5382
  return i ? new ae$1(c, g) : new G$1(c, g);
@@ -5934,7 +5934,7 @@ function at$1({ apiHandler: t2 }) {
5934
5934
  }
5935
5935
  };
5936
5936
  }
5937
- const q$1 = { Accept: "application/pdf" };
5937
+ const w = { Accept: "application/pdf" };
5938
5938
  function mt$1({ apiHandler: t2 }) {
5939
5939
  return {
5940
5940
  /**
@@ -6009,7 +6009,7 @@ function mt$1({ apiHandler: t2 }) {
6009
6009
  },
6010
6010
  downloadPDF({ id: e2 }) {
6011
6011
  const s = {
6012
- headers: q$1,
6012
+ headers: w,
6013
6013
  responseType: "arraybuffer"
6014
6014
  };
6015
6015
  return t2.download(`credit-memos/${e2}`, s);
@@ -6531,7 +6531,7 @@ function vt$1({ apiHandler: t2 }) {
6531
6531
  }
6532
6532
  };
6533
6533
  }
6534
- function qt$1({ apiHandler: t2 }) {
6534
+ function Tt$1({ apiHandler: t2 }) {
6535
6535
  return {
6536
6536
  /**
6537
6537
  * @param { rebilly.GetEmailNotificationCollectionRequest } request
@@ -6543,7 +6543,7 @@ function qt$1({ apiHandler: t2 }) {
6543
6543
  }
6544
6544
  };
6545
6545
  }
6546
- function Tt$1({ apiHandler: t2 }) {
6546
+ function qt$1({ apiHandler: t2 }) {
6547
6547
  return {
6548
6548
  /**
6549
6549
  * @param { rebilly.GetEventCollectionRequest } request
@@ -7140,6 +7140,9 @@ function Ct$1({ apiHandler: t2 }) {
7140
7140
  n2
7141
7141
  );
7142
7142
  },
7143
+ allocateCreditBalance({ id: e2, data: s }) {
7144
+ return t2.post(`invoices/${e2}/allocate-credit-balance`, s);
7145
+ },
7143
7146
  applyTransaction({ id: e2, data: s }) {
7144
7147
  return t2.post(`invoices/${e2}/transaction`, s);
7145
7148
  },
@@ -7172,14 +7175,14 @@ function Ct$1({ apiHandler: t2 }) {
7172
7175
  },
7173
7176
  downloadPDF({ id: e2 }) {
7174
7177
  const s = {
7175
- headers: q$1,
7178
+ headers: w,
7176
7179
  responseType: "arraybuffer"
7177
7180
  };
7178
7181
  return t2.download(`invoices/${e2}`, s);
7179
7182
  }
7180
7183
  };
7181
7184
  }
7182
- function jt$1({ apiHandler: t2 }) {
7185
+ function Dt$1({ apiHandler: t2 }) {
7183
7186
  return {
7184
7187
  /**
7185
7188
  * @param { rebilly.GetJournalAccountCollectionRequest } request
@@ -7215,7 +7218,7 @@ function jt$1({ apiHandler: t2 }) {
7215
7218
  }
7216
7219
  };
7217
7220
  }
7218
- function Dt$1({ apiHandler: t2 }) {
7221
+ function jt$1({ apiHandler: t2 }) {
7219
7222
  return {
7220
7223
  /**
7221
7224
  * @param { rebilly.GetJournalEntryCollectionRequest } request
@@ -7572,10 +7575,11 @@ function Vt$1({ apiHandler: t2 }) {
7572
7575
  sort: s = null,
7573
7576
  limit: r2 = null,
7574
7577
  offset: n2 = null,
7575
- q: u = null
7578
+ q: u = null,
7579
+ expand: o2 = null
7576
7580
  } = {}) {
7577
- const o2 = { filter: e2, sort: s, limit: r2, offset: n2, q: u };
7578
- return t2.getAll("orders", o2);
7581
+ const l = { filter: e2, sort: s, limit: r2, offset: n2, q: u, expand: o2 };
7582
+ return t2.getAll("orders", l);
7579
7583
  },
7580
7584
  /**
7581
7585
  * @param { rebilly.CreateOrderRequest } request
@@ -8136,7 +8140,7 @@ function os({ apiHandler: t2 }) {
8136
8140
  },
8137
8141
  downloadPDF({ id: e2 }) {
8138
8142
  const s = {
8139
- headers: q$1,
8143
+ headers: w,
8140
8144
  responseType: "arraybuffer"
8141
8145
  };
8142
8146
  return t2.download(`quotes/${e2}`, s);
@@ -8861,10 +8865,17 @@ function vs({ apiHandler: t2 }) {
8861
8865
  },
8862
8866
  deleteTimelineMessage({ id: e2, messageId: s }) {
8863
8867
  return t2.delete(`transactions/${e2}/timeline/${s}`);
8868
+ },
8869
+ downloadPDF({ id: e2 }) {
8870
+ const s = {
8871
+ headers: w,
8872
+ responseType: "arraybuffer"
8873
+ };
8874
+ return t2.download(`transactions/${e2}`, s);
8864
8875
  }
8865
8876
  };
8866
8877
  }
8867
- function qs({ apiHandler: t2 }) {
8878
+ function Ts({ apiHandler: t2 }) {
8868
8879
  return {
8869
8880
  /**
8870
8881
  * @param { rebilly.GetUsageCollectionRequest } request
@@ -8894,7 +8905,7 @@ function qs({ apiHandler: t2 }) {
8894
8905
  }
8895
8906
  };
8896
8907
  }
8897
- function Ts({ apiHandler: t2 }) {
8908
+ function qs({ apiHandler: t2 }) {
8898
8909
  return {
8899
8910
  /**
8900
8911
  * @param { rebilly.GetUserCollectionRequest } request
@@ -9015,15 +9026,15 @@ class Ss {
9015
9026
  constructor({ apiHandler: e2 }) {
9016
9027
  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 = $t$1({ apiHandler: e2 }), this.customFields = ft$1({ apiHandler: e2 }), this.customerAuthentication = pt$1({ apiHandler: e2 }), this.customers = ht$1({ apiHandler: e2 }), this.depositCustomPropertySets = yt$1({
9017
9028
  apiHandler: e2
9018
- }), 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 = qt$1({ apiHandler: e2 }), this.events = Tt$1({ apiHandler: e2 }), this.externalIdentifiers = dt$1({ apiHandler: e2 }), this.externalServicesSettings = It$1({
9029
+ }), 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 = Tt$1({ apiHandler: e2 }), this.events = qt$1({ apiHandler: e2 }), this.externalIdentifiers = dt$1({ apiHandler: e2 }), this.externalServicesSettings = It$1({
9019
9030
  apiHandler: e2
9020
- }), this.fees = St$1({ apiHandler: e2 }), this.files = Et$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 = Ot$1({ apiHandler: e2 }), this.kycRequests = Ft$1({ apiHandler: e2 }), this.kycSettings = Bt$1({ apiHandler: e2 }), this.lists = Kt$1({ apiHandler: e2 }), this.memberships = Nt$1({ apiHandler: e2 }), this.orderCancellations = Lt$1({ apiHandler: e2 }), this.orderPauses = zt$1({ apiHandler: e2 }), this.orderReactivations = Ut$1({ apiHandler: e2 }), this.orders = Vt$1({ apiHandler: e2 }), this.organizationExports = Jt$1({ apiHandler: e2 }), this.organizations = Wt$1({ apiHandler: e2 }), this.paymentCardsBankNames = Gt$1({ apiHandler: e2 }), this.paymentInstruments = Yt$1({ apiHandler: e2 }), this.paymentMethods = Qt$1({ apiHandler: e2 }), this.paymentTokens = Xt$1({ apiHandler: e2 }), this.payoutRequestAllocations = Zt$1({
9031
+ }), this.fees = St$1({ apiHandler: e2 }), this.files = Et$1({ apiHandler: e2 }), this.gatewayAccounts = xt$1({ apiHandler: e2 }), this.integrations = Pt$1({ apiHandler: e2 }), this.invoices = Ct$1({ apiHandler: e2 }), this.journalAccounts = Dt$1({ apiHandler: e2 }), this.journalEntries = jt$1({ apiHandler: e2 }), this.journalRecords = Mt$1({ apiHandler: e2 }), this.kycDocuments = Ot$1({ apiHandler: e2 }), this.kycRequests = Ft$1({ apiHandler: e2 }), this.kycSettings = Bt$1({ apiHandler: e2 }), this.lists = Kt$1({ apiHandler: e2 }), this.memberships = Nt$1({ apiHandler: e2 }), this.orderCancellations = Lt$1({ apiHandler: e2 }), this.orderPauses = zt$1({ apiHandler: e2 }), this.orderReactivations = Ut$1({ apiHandler: e2 }), this.orders = Vt$1({ apiHandler: e2 }), this.organizationExports = Jt$1({ apiHandler: e2 }), this.organizations = Wt$1({ apiHandler: e2 }), this.paymentCardsBankNames = Gt$1({ apiHandler: e2 }), this.paymentInstruments = Yt$1({ apiHandler: e2 }), this.paymentMethods = Qt$1({ apiHandler: e2 }), this.paymentTokens = Xt$1({ apiHandler: e2 }), this.payoutRequestAllocations = Zt$1({
9021
9032
  apiHandler: e2
9022
9033
  }), this.payoutRequestBatches = _t$1({ apiHandler: e2 }), this.payoutRequests = Ht$1({ apiHandler: e2 }), this.payouts = es({ apiHandler: e2 }), this.plans = ts({ apiHandler: e2 }), this.previews = ss({ apiHandler: e2 }), this.products = rs({ apiHandler: e2 }), this.profile = ns({ apiHandler: e2 }), this.purchase = us({ apiHandler: e2 }), this.quotes = os({ apiHandler: e2 }), this.resource = ls({ apiHandler: e2 }), this.riskScoreRules = cs({ apiHandler: e2 }), this.roles = is({ apiHandler: e2 }), this.search = gs({ apiHandler: e2 }), this.segments = as({ apiHandler: e2 }), this.sendThroughAttribution = ms({ apiHandler: e2 }), this.serviceCredentials = $s({ apiHandler: e2 }), this.shippingRates = fs({ apiHandler: e2 }), this.status = ps({ apiHandler: e2 }), this.subscriptionCancellations = hs({
9023
9034
  apiHandler: e2
9024
9035
  }), this.subscriptionPauses = ys({ apiHandler: e2 }), this.subscriptionReactivations = As({
9025
9036
  apiHandler: e2
9026
- }), this.subscriptions = Rs({ apiHandler: e2 }), this.tags = bs({ apiHandler: e2 }), this.tagsRules = ws({ apiHandler: e2 }), this.tracking = ks({ apiHandler: e2 }), this.transactions = vs({ apiHandler: e2 }), this.usages = qs({ apiHandler: e2 }), this.users = Ts({ apiHandler: e2 }), this.webhooks = ds({ apiHandler: e2 }), this.websites = Is({ 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;
9037
+ }), this.subscriptions = Rs({ apiHandler: e2 }), this.tags = bs({ apiHandler: e2 }), this.tagsRules = ws({ apiHandler: e2 }), this.tracking = ks({ apiHandler: e2 }), this.transactions = vs({ apiHandler: e2 }), this.usages = Ts({ apiHandler: e2 }), this.users = qs({ apiHandler: e2 }), this.webhooks = ds({ apiHandler: e2 }), this.websites = Is({ 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;
9027
9038
  }
9028
9039
  }
9029
9040
  function Es({ apiHandler: t2 }) {
@@ -9597,7 +9608,7 @@ function Cs({ apiHandler: t2 }) {
9597
9608
  }
9598
9609
  };
9599
9610
  }
9600
- function js({ apiHandler: t2 }) {
9611
+ function Ds({ apiHandler: t2 }) {
9601
9612
  return {
9602
9613
  /**
9603
9614
  * @returns { rebilly.GetSubscriptionSummaryMetricReportResponsePromise } response
@@ -9607,7 +9618,7 @@ function js({ apiHandler: t2 }) {
9607
9618
  }
9608
9619
  };
9609
9620
  }
9610
- function Ds({ apiHandler: t2 }) {
9621
+ function js({ apiHandler: t2 }) {
9611
9622
  return {
9612
9623
  getActivityFeed({ eventTypes: e2 = null, limit: s = 1e3, offset: r2 = 0 }) {
9613
9624
  const n2 = {
@@ -9647,8 +9658,8 @@ const R = {
9647
9658
  DataExportsResource: xs,
9648
9659
  HistogramsResource: Ps,
9649
9660
  ReportsResource: Cs,
9650
- SubscriptionsResource: js,
9651
- TimelinesResource: Ds,
9661
+ SubscriptionsResource: Ds,
9662
+ TimelinesResource: js,
9652
9663
  LocationResource: Ms
9653
9664
  };
9654
9665
  class Os {
@@ -9804,7 +9815,7 @@ function Ws({ apiHandler: t2 }) {
9804
9815
  },
9805
9816
  downloadPDF({ id: e2 }) {
9806
9817
  const s = {
9807
- headers: q$1,
9818
+ headers: w,
9808
9819
  responseType: "arraybuffer"
9809
9820
  };
9810
9821
  return t2.download(`invoices/${e2}`, s);
@@ -10060,7 +10071,7 @@ function sr({ apiHandler: t2 }) {
10060
10071
  },
10061
10072
  downloadPDF({ id: e2 }) {
10062
10073
  const s = {
10063
- headers: q$1,
10074
+ headers: w,
10064
10075
  responseType: "arraybuffer"
10065
10076
  };
10066
10077
  return t2.download(`quotes/${e2}`, s);
@@ -10128,6 +10139,13 @@ function or({ apiHandler: t2 }) {
10128
10139
  skipKyc({ id: e2, token: s }) {
10129
10140
  return t2.post(`transactions/${e2}/${s}/bypass`);
10130
10141
  },
10142
+ downloadPDF({ id: e2 }) {
10143
+ const s = {
10144
+ headers: w,
10145
+ responseType: "arraybuffer"
10146
+ };
10147
+ return t2.download(`transactions/${e2}`, s);
10148
+ },
10131
10149
  update({ id: e2, data: s }) {
10132
10150
  return t2.patch(`transactions/${e2}`, s);
10133
10151
  }
@@ -10159,16 +10177,16 @@ function gr({ apiHandler: t2 }) {
10159
10177
  function ar({ apiHandler: t2 }) {
10160
10178
  return new cr({ apiHandler: t2 });
10161
10179
  }
10162
- const j$1 = {
10180
+ const D = {
10163
10181
  live: "https://api.rebilly.com",
10164
10182
  sandbox: "https://api-sandbox.rebilly.com"
10165
- }, D = 6e3;
10183
+ }, j$1 = 6e3;
10166
10184
  function hr({
10167
10185
  apiKey: t2 = null,
10168
10186
  sandbox: e2 = false,
10169
- timeout: s = D,
10187
+ timeout: s = j$1,
10170
10188
  organizationId: r2 = null,
10171
- urls: n2 = j$1,
10189
+ urls: n2 = D,
10172
10190
  internalOptions: u = null
10173
10191
  } = {}) {
10174
10192
  if (!n2.live || !n2.sandbox)
@@ -10194,9 +10212,9 @@ function hr({
10194
10212
  function yr({
10195
10213
  apiKey: t2 = null,
10196
10214
  sandbox: e2 = false,
10197
- timeout: s = D,
10215
+ timeout: s = j$1,
10198
10216
  organizationId: r2 = null,
10199
- urls: n2 = j$1,
10217
+ urls: n2 = D,
10200
10218
  internalOptions: u = null
10201
10219
  } = {}) {
10202
10220
  if (!n2.live || !n2.sandbox)
@@ -10223,9 +10241,9 @@ function Ar({
10223
10241
  publishableKey: t2 = null,
10224
10242
  jwt: e2 = null,
10225
10243
  sandbox: s = false,
10226
- timeout: r2 = D,
10244
+ timeout: r2 = j$1,
10227
10245
  organizationId: n2 = null,
10228
- urls: u = j$1,
10246
+ urls: u = D,
10229
10247
  internalOptions: o2 = null
10230
10248
  } = {}) {
10231
10249
  if (!u.live || !u.sandbox)
@@ -10688,7 +10706,7 @@ function L(e2, t2) {
10688
10706
  function h(e2, t2) {
10689
10707
  return [e2[0] ^ t2[0], e2[1] ^ t2[1]];
10690
10708
  }
10691
- function q(e2) {
10709
+ function q2(e2) {
10692
10710
  return e2 = h(e2, [0, e2[0] >>> 1]), e2 = C(e2, [4283543511, 3981806797]), e2 = h(e2, [0, e2[0] >>> 1]), e2 = C(e2, [3301882366, 444984403]), e2 = h(e2, [0, e2[0] >>> 1]), e2;
10693
10711
  }
10694
10712
  function we(e2, t2) {
@@ -10734,7 +10752,7 @@ function we(e2, t2) {
10734
10752
  case 1:
10735
10753
  o2 = h(o2, [0, e2.charCodeAt(u)]), o2 = C(o2, l), o2 = A(o2, 31), o2 = C(o2, s), i = h(i, o2);
10736
10754
  }
10737
- return i = h(i, [0, e2.length]), r2 = h(r2, [0, e2.length]), i = Z(i, r2), r2 = Z(r2, i), i = q(i), r2 = q(r2), i = Z(i, r2), r2 = Z(r2, i), ("00000000" + (i[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (i[1] >>> 0).toString(16)).slice(-8) + ("00000000" + (r2[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (r2[1] >>> 0).toString(16)).slice(-8);
10755
+ return i = h(i, [0, e2.length]), r2 = h(r2, [0, e2.length]), i = Z(i, r2), r2 = Z(r2, i), i = q2(i), r2 = q2(r2), i = Z(i, r2), r2 = Z(r2, i), ("00000000" + (i[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (i[1] >>> 0).toString(16)).slice(-8) + ("00000000" + (r2[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (r2[1] >>> 0).toString(16)).slice(-8);
10738
10756
  }
10739
10757
  function Se(e2) {
10740
10758
  var t2;
@@ -11880,24 +11898,24 @@ var m = Math, S = function() {
11880
11898
  return 0;
11881
11899
  };
11882
11900
  function It() {
11883
- var e2 = m.acos || S, t2 = m.acosh || S, n2 = m.asin || S, a = m.asinh || S, i = m.atanh || S, r2 = m.atan || S, o2 = m.sin || S, c = m.sinh || S, l = m.cos || S, s = m.cosh || S, u = m.tan || S, f2 = m.tanh || S, d2 = m.exp || S, p2 = m.expm1 || S, g = m.log1p || S, y = function(v2) {
11884
- return m.pow(m.PI, v2);
11885
- }, b2 = function(v2) {
11886
- return m.log(v2 + m.sqrt(v2 * v2 - 1));
11887
- }, w2 = function(v2) {
11888
- return m.log(v2 + m.sqrt(v2 * v2 + 1));
11889
- }, R2 = function(v2) {
11890
- return m.log((1 + v2) / (1 - v2)) / 2;
11891
- }, D2 = function(v2) {
11892
- return m.exp(v2) - 1 / m.exp(v2) / 2;
11893
- }, P2 = function(v2) {
11894
- return (m.exp(v2) + 1 / m.exp(v2)) / 2;
11895
- }, T2 = function(v2) {
11896
- return m.exp(v2) - 1;
11897
- }, ge2 = function(v2) {
11898
- return (m.exp(2 * v2) - 1) / (m.exp(2 * v2) + 1);
11899
- }, be2 = function(v2) {
11900
- return m.log(1 + v2);
11901
+ var e2 = m.acos || S, t2 = m.acosh || S, n2 = m.asin || S, a = m.asinh || S, i = m.atanh || S, r2 = m.atan || S, o2 = m.sin || S, c = m.sinh || S, l = m.cos || S, s = m.cosh || S, u = m.tan || S, f2 = m.tanh || S, d2 = m.exp || S, p2 = m.expm1 || S, g = m.log1p || S, y = function(v) {
11902
+ return m.pow(m.PI, v);
11903
+ }, b2 = function(v) {
11904
+ return m.log(v + m.sqrt(v * v - 1));
11905
+ }, w2 = function(v) {
11906
+ return m.log(v + m.sqrt(v * v + 1));
11907
+ }, R2 = function(v) {
11908
+ return m.log((1 + v) / (1 - v)) / 2;
11909
+ }, D2 = function(v) {
11910
+ return m.exp(v) - 1 / m.exp(v) / 2;
11911
+ }, P2 = function(v) {
11912
+ return (m.exp(v) + 1 / m.exp(v)) / 2;
11913
+ }, T2 = function(v) {
11914
+ return m.exp(v) - 1;
11915
+ }, ge2 = function(v) {
11916
+ return (m.exp(2 * v) - 1) / (m.exp(2 * v) + 1);
11917
+ }, be2 = function(v) {
11918
+ return m.log(1 + v);
11901
11919
  };
11902
11920
  return {
11903
11921
  acos: e2(0.12312423423423424),
@@ -19073,7 +19091,7 @@ async function fetchData({
19073
19091
  (_i = (_h = state.options) == null ? void 0 : _h.paymentInstruments) == null ? void 0 : _i.allowDeactivate,
19074
19092
  (_k = (_j = state.options) == null ? void 0 : _j.paymentInstruments) == null ? void 0 : _k.allowUpdate,
19075
19093
  (_m = (_l = state.options) == null ? void 0 : _l.paymentInstruments) == null ? void 0 : _m.allowMakeDefault
19076
- ].some((v2) => v2);
19094
+ ].some((v) => v);
19077
19095
  let readyToPayPromise = Promise.resolve(null);
19078
19096
  let readyToPayoutPromise = Promise.resolve(null);
19079
19097
  let fetchAccountAndWebsitePromise = Promise.resolve();
@@ -20625,7 +20643,7 @@ const parseCSSColor = (str) => {
20625
20643
  * @link http://noeldelgado.github.io/values.js/
20626
20644
  * @license MIT
20627
20645
  */
20628
- const defaultNumberParam = (v2, d2) => v2 === null || isNaN(v2) || typeof v2 === "string" ? d2 : v2;
20646
+ const defaultNumberParam = (v, d2) => v === null || isNaN(v) || typeof v === "string" ? d2 : v;
20629
20647
  class Values {
20630
20648
  constructor(color = "#000", type = "base", weight = 0) {
20631
20649
  [this.rgb, this.alpha, this.type, this.weight] = [[0, 0, 0], 1, type, weight];
@@ -21814,7 +21832,7 @@ const _Theme = class _Theme {
21814
21832
  });
21815
21833
  }
21816
21834
  get cssVars() {
21817
- return Object.keys(this.theme).filter((v2) => !_Theme.nonCssProperties.includes(v2)).map((p2, i) => `${!i ? "" : " "}--rebilly-${p2}: ${this.theme[p2]};`).join("\n");
21835
+ return Object.keys(this.theme).filter((v) => !_Theme.nonCssProperties.includes(v)).map((p2, i) => `${!i ? "" : " "}--rebilly-${p2}: ${this.theme[p2]};`).join("\n");
21818
21836
  }
21819
21837
  build() {
21820
21838
  this.overrideTheme();