@rebilly/instruments 16.151.2 → 16.152.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 +1,6 @@
1
- ## [16.151.2](https://github.com/Rebilly/rebilly/compare/instruments/core-v16.151.1...instruments/core-v16.151.2) (2026-07-09)
1
+ ## [16.152.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v16.151.2...instruments/core-v16.152.0) (2026-07-10)
2
+
3
+
4
+ ### Features
5
+
6
+ * **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#23342](https://github.com/Rebilly/rebilly/issues/23342)) ([7c39584](https://github.com/Rebilly/rebilly/commit/7c3958485cf18de5c386a055a382a0a64d72e158))
package/dist/index.js CHANGED
@@ -5365,12 +5365,12 @@ let A$1 = class A extends Error {
5365
5365
  n2 && n2.data && (n2.data.error ? l = n2.data.error : n2.data.detail ? l = n2.data.detail : n2.data.title && (l = n2.data.title)), super(l), this.name = s || "RebillyError", this.response = n2, this.request = u, this.config = r2, this.status = n2 && n2.status ? n2.status : null, this.statusText = n2 && n2.statusText ? n2.statusText : null, this.details = n2 && n2.data && n2.data.details ? n2.data.details : null, this.invalidFields = n2 && n2.data && n2.data.invalidFields ? n2.data.invalidFields : null;
5366
5366
  }
5367
5367
  };
5368
- let bt$1 = class bt extends A$1 {
5368
+ let Rt$1 = class Rt extends A$1 {
5369
5369
  constructor(t2) {
5370
5370
  super({ error: t2, name: "RebillyRequestError" });
5371
5371
  }
5372
5372
  };
5373
- let Rt$1 = class Rt extends A$1 {
5373
+ let bt$1 = class bt extends A$1 {
5374
5374
  constructor(t2) {
5375
5375
  super({ error: t2, name: "RebillyValidationError" });
5376
5376
  }
@@ -5407,8 +5407,8 @@ let Tt$1 = class Tt extends A$1 {
5407
5407
  };
5408
5408
  const y = {
5409
5409
  RebillyError: A$1,
5410
- RebillyRequestError: bt$1,
5411
- RebillyValidationError: Rt$1,
5410
+ RebillyRequestError: Rt$1,
5411
+ RebillyValidationError: bt$1,
5412
5412
  RebillyNotFoundError: wt$1,
5413
5413
  RebillyConflictError: kt$1,
5414
5414
  RebillyForbiddenError: vt$1,
@@ -5779,7 +5779,7 @@ function O$1({ options: e2 }) {
5779
5779
  }
5780
5780
  function o2() {
5781
5781
  const g = {
5782
- "REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((m2) => m2).join("/")}@0b2cf72`
5782
+ "REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((m2) => m2).join("/")}@7c39584`
5783
5783
  };
5784
5784
  return e2.apiKey && (g["REB-APIKEY"] = e2.apiKey), g;
5785
5785
  }
@@ -5840,8 +5840,8 @@ function O$1({ options: e2 }) {
5840
5840
  function ut2(c) {
5841
5841
  N2(k$1.response, c);
5842
5842
  }
5843
- function R({ request: c, isCollection: g, config: m2 }) {
5844
- const p = z2(m2), { id: b, cancelToken: $t2 } = q$1.save();
5843
+ function b({ request: c, isCollection: g, config: m2 }) {
5844
+ const p = z2(m2), { id: R, cancelToken: $t2 } = q$1.save();
5845
5845
  p.cancelToken = $t2;
5846
5846
  const W2 = (async function() {
5847
5847
  try {
@@ -5854,10 +5854,10 @@ function O$1({ options: e2 }) {
5854
5854
  } catch (d) {
5855
5855
  return L2({ error: d });
5856
5856
  } finally {
5857
- q$1.deleteById(b);
5857
+ q$1.deleteById(R);
5858
5858
  }
5859
5859
  })();
5860
- return W2.cancel = (d) => I$1.cancelById(b, d), W2;
5860
+ return W2.cancel = (d) => I$1.cancelById(R, d), W2;
5861
5861
  }
5862
5862
  function ot2({ response: c, isCollection: g, config: m2 }) {
5863
5863
  return g ? new yt$1(c, m2) : new tt$1(c, m2);
@@ -5891,13 +5891,13 @@ function O$1({ options: e2 }) {
5891
5891
  return { ...lt2(c) };
5892
5892
  }
5893
5893
  function U2(c, g = {}) {
5894
- return R({
5894
+ return b({
5895
5895
  request: (m2) => t2.get(c, m2),
5896
5896
  config: { params: g }
5897
5897
  });
5898
5898
  }
5899
5899
  function ct2(c, g) {
5900
- return R({
5900
+ return b({
5901
5901
  request: (m2) => t2.get(c, m2),
5902
5902
  config: { params: g },
5903
5903
  isCollection: true
@@ -5905,31 +5905,31 @@ function O$1({ options: e2 }) {
5905
5905
  }
5906
5906
  function V2(c, g, m2 = {}) {
5907
5907
  let p = {};
5908
- return m2.authenticate === false && (p = { headers: l() }, delete p.headers.common["REB-APIKEY"], delete p.headers.common.Authorization), m2.params && (p.params = { ...m2.params }), R({
5909
- request: (b) => t2.post(c, g, b),
5908
+ return m2.authenticate === false && (p = { headers: l() }, delete p.headers.common["REB-APIKEY"], delete p.headers.common.Authorization), m2.params && (p.params = { ...m2.params }), b({
5909
+ request: (R) => t2.post(c, g, R),
5910
5910
  config: p
5911
5911
  });
5912
5912
  }
5913
5913
  function J2(c, g, m2 = {}) {
5914
- return R({
5914
+ return b({
5915
5915
  request: (p) => t2.put(c, g, p),
5916
5916
  config: { params: m2 }
5917
5917
  });
5918
5918
  }
5919
5919
  function it2(c, g) {
5920
- return R({
5920
+ return b({
5921
5921
  request: (m2) => t2.patch(c, g, m2),
5922
5922
  config: {}
5923
5923
  });
5924
5924
  }
5925
5925
  function gt2(c) {
5926
- return R({
5926
+ return b({
5927
5927
  request: (g) => t2.delete(c, g),
5928
5928
  config: {}
5929
5929
  });
5930
5930
  }
5931
5931
  function at2(c, g) {
5932
- return R({
5932
+ return b({
5933
5933
  request: (m2) => t2.delete(c, m2),
5934
5934
  config: { data: { ...g } }
5935
5935
  });
@@ -5942,10 +5942,10 @@ function O$1({ options: e2 }) {
5942
5942
  throw new y.RebillyConflictError({
5943
5943
  message: "A resource already exists with this ID. Please use a different ID."
5944
5944
  });
5945
- } catch (b) {
5946
- if (b.name === "RebillyNotFoundError")
5945
+ } catch (R) {
5946
+ if (R.name === "RebillyNotFoundError")
5947
5947
  return J2(c, m2, p);
5948
- throw b;
5948
+ throw R;
5949
5949
  }
5950
5950
  }
5951
5951
  async function ft2(c, g) {
@@ -6779,6 +6779,12 @@ function se$1({ apiHandler: e2 }) {
6779
6779
  */
6780
6780
  getCustomerCreditBalance({ id: t2 }) {
6781
6781
  return e2.get(`customers/${t2}/credit-balance`);
6782
+ },
6783
+ /**
6784
+ * @returns { rebilly.GetCustomerComplianceScreeningReportResponsePromise } response
6785
+ */
6786
+ downloadComplianceScreeningReport({ id: t2 }) {
6787
+ return e2.get(`customers/${t2}/compliance-screening-report`);
6782
6788
  }
6783
6789
  };
6784
6790
  }
@@ -7656,7 +7662,7 @@ function Ae$1({ apiHandler: e2 }) {
7656
7662
  }
7657
7663
  };
7658
7664
  }
7659
- function be({ apiHandler: e2 }) {
7665
+ function Re$1({ apiHandler: e2 }) {
7660
7666
  return {
7661
7667
  /**
7662
7668
  * @param { rebilly.GetJournalAccountCollectionRequest } request
@@ -7692,7 +7698,7 @@ function be({ apiHandler: e2 }) {
7692
7698
  }
7693
7699
  };
7694
7700
  }
7695
- function Re$1({ apiHandler: e2 }) {
7701
+ function be({ apiHandler: e2 }) {
7696
7702
  return {
7697
7703
  /**
7698
7704
  * @param { rebilly.GetJournalEntryCollectionRequest } request
@@ -9523,7 +9529,7 @@ class $s {
9523
9529
  apiHandler: t2
9524
9530
  }), this.depositRequests = ne$1({ apiHandler: t2 }), this.depositStrategies = ue$1({ apiHandler: t2 }), this.digitalWallets = oe$1({ apiHandler: t2 }), this.disputes = le$1({ apiHandler: t2 }), this.emailDeliverySettings = ce$1({ apiHandler: t2 }), this.emailMessages = ie$1({ apiHandler: t2 }), this.emailNotifications = ge({ apiHandler: t2 }), this.events = ae$1({ apiHandler: t2 }), this.externalIdentifiers = me$1({ apiHandler: t2 }), this.externalServicesSettings = fe$1({
9525
9531
  apiHandler: t2
9526
- }), this.fees = $e$1({ apiHandler: t2 }), this.files = pe$1({ apiHandler: t2 }), this.gatewayAccounts = he$1({ apiHandler: t2 }), this.integrations = ye$1({ apiHandler: t2 }), this.invoices = Ae$1({ apiHandler: t2 }), this.journalAccounts = be({ apiHandler: t2 }), this.journalEntries = Re$1({ apiHandler: t2 }), this.journalRecords = we$1({ apiHandler: t2 }), this.kycDocuments = ke$1({ apiHandler: t2 }), this.kycRequests = ve$1({ apiHandler: t2 }), this.kycSettings = qe$1({ apiHandler: t2 }), this.lists = de$1({ apiHandler: t2 }), this.memberships = Te$1({ apiHandler: t2 }), this.orderCancellations = Ie$1({ apiHandler: t2 }), this.orderPauses = Se$1({ apiHandler: t2 }), this.orderReactivations = Ee$1({ apiHandler: t2 }), this.orders = xe$1({ apiHandler: t2 }), this.organizationExports = Pe$1({ apiHandler: t2 }), this.organizations = Ce$1({ apiHandler: t2 }), this.paymentCardsBankNames = De$1({ apiHandler: t2 }), this.paymentInstruments = je$1({ apiHandler: t2 }), this.paymentMethods = Me$1({ apiHandler: t2 }), this.paymentTokens = Oe$1({ apiHandler: t2 }), this.payoutRequestAllocations = Fe$1({
9532
+ }), this.fees = $e$1({ apiHandler: t2 }), this.files = pe$1({ apiHandler: t2 }), this.gatewayAccounts = he$1({ apiHandler: t2 }), this.integrations = ye$1({ apiHandler: t2 }), this.invoices = Ae$1({ apiHandler: t2 }), this.journalAccounts = Re$1({ apiHandler: t2 }), this.journalEntries = be({ apiHandler: t2 }), this.journalRecords = we$1({ apiHandler: t2 }), this.kycDocuments = ke$1({ apiHandler: t2 }), this.kycRequests = ve$1({ apiHandler: t2 }), this.kycSettings = qe$1({ apiHandler: t2 }), this.lists = de$1({ apiHandler: t2 }), this.memberships = Te$1({ apiHandler: t2 }), this.orderCancellations = Ie$1({ apiHandler: t2 }), this.orderPauses = Se$1({ apiHandler: t2 }), this.orderReactivations = Ee$1({ apiHandler: t2 }), this.orders = xe$1({ apiHandler: t2 }), this.organizationExports = Pe$1({ apiHandler: t2 }), this.organizations = Ce$1({ apiHandler: t2 }), this.paymentCardsBankNames = De$1({ apiHandler: t2 }), this.paymentInstruments = je$1({ apiHandler: t2 }), this.paymentMethods = Me$1({ apiHandler: t2 }), this.paymentTokens = Oe$1({ apiHandler: t2 }), this.payoutRequestAllocations = Fe$1({
9527
9533
  apiHandler: t2
9528
9534
  }), this.payoutRequestBatches = Be$1({ apiHandler: t2 }), this.payoutRequests = Ke$1({ apiHandler: t2 }), this.payouts = Ne$1({ apiHandler: t2 }), this.plans = Le$1({ apiHandler: t2 }), this.previews = ze$1({ apiHandler: t2 }), this.products = Ue$1({ apiHandler: t2 }), this.profile = Ve$1({ apiHandler: t2 }), this.purchase = Je$1({ apiHandler: t2 }), this.quotes = We$1({ apiHandler: t2 }), this.resource = Ge$1({ apiHandler: t2 }), this.riskScoreRules = Ye$1({ apiHandler: t2 }), this.roles = Qe$1({ apiHandler: t2 }), this.search = Xe$1({ apiHandler: t2 }), this.segments = Ze$1({ apiHandler: t2 }), this.sendThroughAttribution = _e$1({ apiHandler: t2 }), this.serviceCredentials = He$1({ apiHandler: t2 }), this.shippingRates = ts({ apiHandler: t2 }), this.status = es({ apiHandler: t2 }), this.subscriptionCancellations = ss({
9529
9535
  apiHandler: t2
@@ -10103,7 +10109,7 @@ function As({ apiHandler: e2 }) {
10103
10109
  }
10104
10110
  };
10105
10111
  }
10106
- function bs({ apiHandler: e2 }) {
10112
+ function Rs({ apiHandler: e2 }) {
10107
10113
  return {
10108
10114
  /**
10109
10115
  * @returns { rebilly.GetSubscriptionSummaryMetricReportResponsePromise } response
@@ -10113,7 +10119,7 @@ function bs({ apiHandler: e2 }) {
10113
10119
  }
10114
10120
  };
10115
10121
  }
10116
- function Rs({ apiHandler: e2 }) {
10122
+ function bs({ apiHandler: e2 }) {
10117
10123
  return {
10118
10124
  getActivityFeed({ eventTypes: t2 = null, limit: s = 1e3, offset: r2 = 0 }) {
10119
10125
  const n2 = {
@@ -10153,8 +10159,8 @@ const w = {
10153
10159
  DataExportsResource: hs,
10154
10160
  HistogramsResource: ys,
10155
10161
  ReportsResource: As,
10156
- SubscriptionsResource: bs,
10157
- TimelinesResource: Rs,
10162
+ SubscriptionsResource: Rs,
10163
+ TimelinesResource: bs,
10158
10164
  LocationResource: ws
10159
10165
  };
10160
10166
  class ks {