@rebilly/instruments 16.13.0 → 16.15.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.13.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v16.12.2...instruments/core-v16.13.0) (2025-10-29)
1
+ ## [16.15.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v16.14.0...instruments/core-v16.15.0) (2025-10-30)
2
2
 
3
3
 
4
4
  ### Features
5
5
 
6
- * **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#16092](https://github.com/Rebilly/rebilly/issues/16092)) ([de972a1](https://github.com/Rebilly/rebilly/commit/de972a12e7b802cc5a2a0148d1f011657afb9f08))
6
+ * **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#16154](https://github.com/Rebilly/rebilly/issues/16154)) ([c864484](https://github.com/Rebilly/rebilly/commit/c86448422387b11c071b2473febbc0f87e1dcbba))
package/dist/index.js CHANGED
@@ -4730,7 +4730,7 @@ const {
4730
4730
  } = axios;
4731
4731
  var ie$1 = Object.defineProperty;
4732
4732
  var ge = (t2, e2, s) => e2 in t2 ? ie$1(t2, e2, { enumerable: true, configurable: true, writable: true, value: s }) : t2[e2] = s;
4733
- var q$1 = (t2, e2, s) => ge(t2, typeof e2 != "symbol" ? e2 + "" : e2, s);
4733
+ var E$1 = (t2, e2, s) => ge(t2, typeof e2 != "symbol" ? e2 + "" : e2, s);
4734
4734
  function T(t2, { exclude: e2 = [] } = {}) {
4735
4735
  Object.freeze(t2);
4736
4736
  const s = typeof t2 == "function";
@@ -4863,7 +4863,7 @@ var ke$1 = Object.prototype.toString, Y$1 = function(e2) {
4863
4863
  return Se$1(e2) ? "generatorfunction" : "function";
4864
4864
  if (ve$1(e2)) return "array";
4865
4865
  if (xe$1(e2)) return "buffer";
4866
- if (qe$1(e2)) return "arguments";
4866
+ if (Ee$1(e2)) return "arguments";
4867
4867
  if (Te$1(e2)) return "date";
4868
4868
  if (de$1(e2)) return "error";
4869
4869
  if (Ie$1(e2)) return "regexp";
@@ -4899,7 +4899,7 @@ var ke$1 = Object.prototype.toString, Y$1 = function(e2) {
4899
4899
  case "Float64Array":
4900
4900
  return "float64array";
4901
4901
  }
4902
- if (Ee$1(e2))
4902
+ if (qe$1(e2))
4903
4903
  return "generator";
4904
4904
  switch (s = ke$1.call(e2), s) {
4905
4905
  case "[object Object]":
@@ -4933,10 +4933,10 @@ function Ie$1(t2) {
4933
4933
  function Se$1(t2, e2) {
4934
4934
  return Q$1(t2) === "GeneratorFunction";
4935
4935
  }
4936
- function Ee$1(t2) {
4936
+ function qe$1(t2) {
4937
4937
  return typeof t2.throw == "function" && typeof t2.return == "function" && typeof t2.next == "function";
4938
4938
  }
4939
- function qe$1(t2) {
4939
+ function Ee$1(t2) {
4940
4940
  try {
4941
4941
  if (typeof t2.length == "number" && typeof t2.callee == "function")
4942
4942
  return true;
@@ -5122,7 +5122,7 @@ class v {
5122
5122
  const w = new v();
5123
5123
  class d {
5124
5124
  }
5125
- q$1(d, "cancelById", (e2, s) => {
5125
+ E$1(d, "cancelById", (e2, s) => {
5126
5126
  try {
5127
5127
  w.getById(e2).cancel(s), w.deleteById(e2);
5128
5128
  } catch {
@@ -5142,7 +5142,7 @@ q$1(d, "cancelById", (e2, s) => {
5142
5142
  * // cancel all active requests
5143
5143
  * await cancellation.cancelAll();
5144
5144
  */
5145
- q$1(d, "cancelAll", async (e2) => {
5145
+ E$1(d, "cancelAll", async (e2) => {
5146
5146
  for (const s of w.getAll())
5147
5147
  await s.cancel(e2), w.deleteById(s.id);
5148
5148
  });
@@ -5180,7 +5180,7 @@ function C$1({ options: t2 }) {
5180
5180
  }
5181
5181
  function o2() {
5182
5182
  const i = {
5183
- "REB-API-CONSUMER": `${["Rebilly", t2.appName, "js-sdk"].filter((g) => g).join("/")}@de972a1`
5183
+ "REB-API-CONSUMER": `${["Rebilly", t2.appName, "js-sdk"].filter((g) => g).join("/")}@c864484`
5184
5184
  };
5185
5185
  return t2.apiKey && (i["REB-APIKEY"] = t2.apiKey), i;
5186
5186
  }
@@ -5205,7 +5205,7 @@ function C$1({ options: t2 }) {
5205
5205
  auth: g
5206
5206
  };
5207
5207
  }
5208
- function E2({ live: c = null, sandbox: i = null }) {
5208
+ function q2({ live: c = null, sandbox: i = null }) {
5209
5209
  c && (t2.apiEndpoints.live = c), i && (t2.apiEndpoints.sandbox = i), e2.defaults.baseURL = u();
5210
5210
  }
5211
5211
  function M2(c, { thenDelegate: i, catchDelegate: g = () => {
@@ -5368,7 +5368,7 @@ function C$1({ options: t2 }) {
5368
5368
  setProxyAgent: S2,
5369
5369
  setSessionToken: f,
5370
5370
  setPublishableKey: y,
5371
- setEndpoints: E2,
5371
+ setEndpoints: q2,
5372
5372
  get: N2,
5373
5373
  getAll: se2,
5374
5374
  post: B2,
@@ -6587,7 +6587,7 @@ function St$1({ apiHandler: t2 }) {
6587
6587
  }
6588
6588
  };
6589
6589
  }
6590
- function Et$1({ apiHandler: t2 }) {
6590
+ function qt$1({ apiHandler: t2 }) {
6591
6591
  return {
6592
6592
  /**
6593
6593
  * @param { rebilly.GetFeeCollectionRequest } request
@@ -6624,7 +6624,7 @@ function Et$1({ apiHandler: t2 }) {
6624
6624
  }
6625
6625
  };
6626
6626
  }
6627
- function qt$1({ apiHandler: t2 }) {
6627
+ function Et$1({ apiHandler: t2 }) {
6628
6628
  return {
6629
6629
  /**
6630
6630
  * @param { rebilly.GetAttachmentCollectionRequest } request
@@ -8780,7 +8780,7 @@ class Is {
8780
8780
  apiHandler: e2
8781
8781
  }), 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({
8782
8782
  apiHandler: e2
8783
- }), 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 = Ot$1({ apiHandler: e2 }), this.kycRequests = Ft$1({ apiHandler: e2 }), this.kycSettings = Kt$1({ apiHandler: e2 }), this.lists = Nt$1({ apiHandler: e2 }), this.memberships = Bt$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.payoutRequests = Zt$1({ apiHandler: e2 }), this.payouts = _t$1({ apiHandler: e2 }), this.plans = Ht$1({ apiHandler: e2 }), this.previews = es({ apiHandler: e2 }), this.products = ts({ apiHandler: e2 }), this.profile = ss({ apiHandler: e2 }), this.purchase = rs({ apiHandler: e2 }), this.quotes = ns({ apiHandler: e2 }), this.resource = us({ apiHandler: e2 }), this.riskScoreRules = os({ apiHandler: e2 }), this.roles = ls({ apiHandler: e2 }), this.search = cs({ apiHandler: e2 }), this.segments = is({ apiHandler: e2 }), this.sendThroughAttribution = gs({ apiHandler: e2 }), this.serviceCredentials = as({ apiHandler: e2 }), this.shippingRates = ms({ apiHandler: e2 }), this.status = fs({ apiHandler: e2 }), this.subscriptionCancellations = $s({
8783
+ }), this.fees = qt$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 = Kt$1({ apiHandler: e2 }), this.lists = Nt$1({ apiHandler: e2 }), this.memberships = Bt$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.payoutRequests = Zt$1({ apiHandler: e2 }), this.payouts = _t$1({ apiHandler: e2 }), this.plans = Ht$1({ apiHandler: e2 }), this.previews = es({ apiHandler: e2 }), this.products = ts({ apiHandler: e2 }), this.profile = ss({ apiHandler: e2 }), this.purchase = rs({ apiHandler: e2 }), this.quotes = ns({ apiHandler: e2 }), this.resource = us({ apiHandler: e2 }), this.riskScoreRules = os({ apiHandler: e2 }), this.roles = ls({ apiHandler: e2 }), this.search = cs({ apiHandler: e2 }), this.segments = is({ apiHandler: e2 }), this.sendThroughAttribution = gs({ apiHandler: e2 }), this.serviceCredentials = as({ apiHandler: e2 }), this.shippingRates = ms({ apiHandler: e2 }), this.status = fs({ apiHandler: e2 }), this.subscriptionCancellations = $s({
8784
8784
  apiHandler: e2
8785
8785
  }), this.subscriptionPauses = hs({ apiHandler: e2 }), this.subscriptionReactivations = ps({
8786
8786
  apiHandler: e2
@@ -8797,7 +8797,7 @@ function Ss({ apiHandler: t2 }) {
8797
8797
  }
8798
8798
  };
8799
8799
  }
8800
- function Es({ apiHandler: t2 }) {
8800
+ function qs({ apiHandler: t2 }) {
8801
8801
  return {
8802
8802
  /**
8803
8803
  * @param { rebilly.GetDataExportCollectionRequest } request
@@ -8842,7 +8842,7 @@ function Es({ apiHandler: t2 }) {
8842
8842
  }
8843
8843
  };
8844
8844
  }
8845
- function qs({ apiHandler: t2 }) {
8845
+ function Es({ apiHandler: t2 }) {
8846
8846
  return {
8847
8847
  /**
8848
8848
  * @returns { rebilly.GetHistogramTransactionReportResponsePromise } response
@@ -9140,7 +9140,7 @@ function xs({ apiHandler: t2 }) {
9140
9140
  sort: y = null,
9141
9141
  criteria: S2 = null
9142
9142
  }) {
9143
- const E2 = {
9143
+ const q2 = {
9144
9144
  aggregationField: e2,
9145
9145
  aggregationPeriod: s,
9146
9146
  includeRefunds: r2,
@@ -9153,7 +9153,7 @@ function xs({ apiHandler: t2 }) {
9153
9153
  sort: y,
9154
9154
  criteria: S2
9155
9155
  };
9156
- return t2.get("reports/retention-value", E2);
9156
+ return t2.get("reports/retention-value", q2);
9157
9157
  },
9158
9158
  /**
9159
9159
  * @returns { rebilly.GetRevenueWaterfallReportResponsePromise } response
@@ -9320,8 +9320,8 @@ function js({ apiHandler: t2 }) {
9320
9320
  }
9321
9321
  const R = {
9322
9322
  CustomersResource: Ss,
9323
- DataExportsResource: Es,
9324
- HistogramsResource: qs,
9323
+ DataExportsResource: qs,
9324
+ HistogramsResource: Es,
9325
9325
  ReportsResource: xs,
9326
9326
  SubscriptionsResource: Ps,
9327
9327
  TimelinesResource: Cs,
@@ -9395,6 +9395,9 @@ function Ks({ apiHandler: t2 }) {
9395
9395
  */
9396
9396
  get({ id: e2 }) {
9397
9397
  return t2.get(`cashiers/${e2}`);
9398
+ },
9399
+ cancelPayoutRequests({ id: e2, data: s }) {
9400
+ return t2.post(`cashiers/${e2}/cancel-payout-requests`, s);
9398
9401
  }
9399
9402
  };
9400
9403
  }