rebilly-js-sdk 62.145.4 → 62.147.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.
@@ -68,12 +68,12 @@ class A extends Error {
68
68
  n && n.data && (n.data.error ? l = n.data.error : n.data.detail ? l = n.data.detail : n.data.title && (l = n.data.title)), super(l), this.name = s || "RebillyError", this.response = n, this.request = u, this.config = r, this.status = n && n.status ? n.status : null, this.statusText = n && n.statusText ? n.statusText : null, this.details = n && n.data && n.data.details ? n.data.details : null, this.invalidFields = n && n.data && n.data.invalidFields ? n.data.invalidFields : null;
69
69
  }
70
70
  }
71
- class Re extends A {
71
+ class be extends A {
72
72
  constructor(e) {
73
73
  super({ error: e, name: "RebillyRequestError" });
74
74
  }
75
75
  }
76
- class be extends A {
76
+ class Re extends A {
77
77
  constructor(e) {
78
78
  super({ error: e, name: "RebillyValidationError" });
79
79
  }
@@ -110,8 +110,8 @@ class Te extends A {
110
110
  }
111
111
  const y = {
112
112
  RebillyError: A,
113
- RebillyRequestError: Re,
114
- RebillyValidationError: be,
113
+ RebillyRequestError: be,
114
+ RebillyValidationError: Re,
115
115
  RebillyNotFoundError: we,
116
116
  RebillyConflictError: ke,
117
117
  RebillyForbiddenError: ve,
@@ -196,30 +196,30 @@ function te() {
196
196
  }
197
197
  return h.slice(8, -1).toLowerCase().replace(/\s/g, "");
198
198
  };
199
- function e(a) {
200
- return typeof a.constructor == "function" ? a.constructor.name : null;
199
+ function e(g) {
200
+ return typeof g.constructor == "function" ? g.constructor.name : null;
201
201
  }
202
- function s(a) {
203
- return Array.isArray ? Array.isArray(a) : a instanceof Array;
202
+ function s(g) {
203
+ return Array.isArray ? Array.isArray(g) : g instanceof Array;
204
204
  }
205
- function r(a) {
206
- return a instanceof Error || typeof a.message == "string" && a.constructor && typeof a.constructor.stackTraceLimit == "number";
205
+ function r(g) {
206
+ return g instanceof Error || typeof g.message == "string" && g.constructor && typeof g.constructor.stackTraceLimit == "number";
207
207
  }
208
- function n(a) {
209
- return a instanceof Date ? !0 : typeof a.toDateString == "function" && typeof a.getDate == "function" && typeof a.setDate == "function";
208
+ function n(g) {
209
+ return g instanceof Date ? !0 : typeof g.toDateString == "function" && typeof g.getDate == "function" && typeof g.setDate == "function";
210
210
  }
211
- function u(a) {
212
- return a instanceof RegExp ? !0 : typeof a.flags == "string" && typeof a.ignoreCase == "boolean" && typeof a.multiline == "boolean" && typeof a.global == "boolean";
211
+ function u(g) {
212
+ return g instanceof RegExp ? !0 : typeof g.flags == "string" && typeof g.ignoreCase == "boolean" && typeof g.multiline == "boolean" && typeof g.global == "boolean";
213
213
  }
214
- function o(a, $) {
215
- return e(a) === "GeneratorFunction";
214
+ function o(g, $) {
215
+ return e(g) === "GeneratorFunction";
216
216
  }
217
- function l(a) {
218
- return typeof a.throw == "function" && typeof a.return == "function" && typeof a.next == "function";
217
+ function l(g) {
218
+ return typeof g.throw == "function" && typeof g.return == "function" && typeof g.next == "function";
219
219
  }
220
- function i(a) {
220
+ function i(g) {
221
221
  try {
222
- if (typeof a.length == "number" && typeof a.callee == "function")
222
+ if (typeof g.length == "number" && typeof g.callee == "function")
223
223
  return !0;
224
224
  } catch ($) {
225
225
  if ($.message.indexOf("callee") !== -1)
@@ -227,8 +227,8 @@ function te() {
227
227
  }
228
228
  return !1;
229
229
  }
230
- function f(a) {
231
- return a.constructor && typeof a.constructor.isBuffer == "function" ? a.constructor.isBuffer(a) : !1;
230
+ function f(g) {
231
+ return g.constructor && typeof g.constructor.isBuffer == "function" ? g.constructor.isBuffer(g) : !1;
232
232
  }
233
233
  return x;
234
234
  }
@@ -280,8 +280,8 @@ function Se() {
280
280
  }
281
281
  }
282
282
  function r(i) {
283
- const f = i.flags !== void 0 ? i.flags : /\w+$/.exec(i) || void 0, a = new i.constructor(i.source, f);
284
- return a.lastIndex = i.lastIndex, a;
283
+ const f = i.flags !== void 0 ? i.flags : /\w+$/.exec(i) || void 0, g = new i.constructor(i.source, f);
284
+ return g.lastIndex = i.lastIndex, g;
285
285
  }
286
286
  function n(i) {
287
287
  const f = new i.constructor(i.byteLength);
@@ -291,8 +291,8 @@ function Se() {
291
291
  return new i.constructor(i.buffer, i.byteOffset, i.length);
292
292
  }
293
293
  function o(i) {
294
- const f = i.length, a = Buffer.allocUnsafe ? Buffer.allocUnsafe(f) : Buffer.from(f);
295
- return i.copy(a), a;
294
+ const f = i.length, g = Buffer.allocUnsafe ? Buffer.allocUnsafe(f) : Buffer.from(f);
295
+ return i.copy(g), g;
296
296
  }
297
297
  function l(i) {
298
298
  return t ? Object(t.call(i)) : {};
@@ -488,10 +488,10 @@ function O({ options: t }) {
488
488
  return t.apiVersion && (c = `${c}/${t.apiVersion}`), t.organizationId && (c = `${c}/organizations/${t.organizationId}`), `${c}`;
489
489
  }
490
490
  function o() {
491
- const g = {
492
- "REB-API-CONSUMER": `${["Rebilly", t.appName, "js-sdk"].filter((m) => m).join("/")}@856f75e`
491
+ const a = {
492
+ "REB-API-CONSUMER": `${["Rebilly", t.appName, "js-sdk"].filter((m) => m).join("/")}@bb68948`
493
493
  };
494
- return t.apiKey && (g["REB-APIKEY"] = t.apiKey), g;
494
+ return t.apiKey && (a["REB-APIKEY"] = t.apiKey), a;
495
495
  }
496
496
  function l() {
497
497
  return De(e.defaults.headers);
@@ -500,38 +500,38 @@ function O({ options: t }) {
500
500
  t.requestTimeout = Number(c), e.defaults.timeout = t.requestTimeout;
501
501
  }
502
502
  function f(c = t.jwt) {
503
- const g = l();
504
- t.apiKey = null, t.jwt = c, delete g.common["REB-APIKEY"], g.common.Authorization = `Bearer ${c}`, e.defaults.headers = g;
503
+ const a = l();
504
+ t.apiKey = null, t.jwt = c, delete a.common["REB-APIKEY"], a.common.Authorization = `Bearer ${c}`, e.defaults.headers = a;
505
505
  }
506
- function a(c = t.publishableKey) {
507
- const g = l();
508
- t.publishableKey = c, g.common.Authorization = `${c}`, e.defaults.headers = g;
506
+ function g(c = t.publishableKey) {
507
+ const a = l();
508
+ t.publishableKey = c, a.common.Authorization = `${c}`, e.defaults.headers = a;
509
509
  }
510
- function $({ host: c, port: g, auth: m }) {
510
+ function $({ host: c, port: a, auth: m }) {
511
511
  e.defaults.proxy = {
512
512
  host: c,
513
- port: g,
513
+ port: a,
514
514
  auth: m
515
515
  };
516
516
  }
517
- function h({ live: c = null, sandbox: g = null }) {
518
- c && (t.apiEndpoints.live = c), g && (t.apiEndpoints.sandbox = g), e.defaults.baseURL = u();
517
+ function h({ live: c = null, sandbox: a = null }) {
518
+ c && (t.apiEndpoints.live = c), a && (t.apiEndpoints.sandbox = a), e.defaults.baseURL = u();
519
519
  }
520
- function K(c, { thenDelegate: g, catchDelegate: m = () => {
520
+ function K(c, { thenDelegate: a, catchDelegate: m = () => {
521
521
  } }) {
522
522
  return H(c) && e.interceptors[v[c]].use(
523
- g,
523
+ a,
524
524
  m
525
525
  );
526
526
  }
527
- function N(c, g) {
528
- return H(c) && e.interceptors[v[c]].eject(g);
527
+ function N(c, a) {
528
+ return H(c) && e.interceptors[v[c]].eject(a);
529
529
  }
530
- function se({ thenDelegate: c, catchDelegate: g = () => {
530
+ function se({ thenDelegate: c, catchDelegate: a = () => {
531
531
  } }) {
532
532
  return K(v.request, {
533
533
  thenDelegate: c,
534
- catchDelegate: g
534
+ catchDelegate: a
535
535
  });
536
536
  }
537
537
  function re(c) {
@@ -539,38 +539,38 @@ function O({ options: t }) {
539
539
  }
540
540
  function ne({
541
541
  thenDelegate: c,
542
- catchDelegate: g = () => {
542
+ catchDelegate: a = () => {
543
543
  }
544
544
  }) {
545
545
  return K(v.response, {
546
546
  thenDelegate: c,
547
- catchDelegate: g
547
+ catchDelegate: a
548
548
  });
549
549
  }
550
550
  function ue(c) {
551
551
  N(v.response, c);
552
552
  }
553
- function w({ request: c, isCollection: g, config: m }) {
554
- const p = z(m), { id: R, cancelToken: $e } = q.save();
553
+ function w({ request: c, isCollection: a, config: m }) {
554
+ const p = z(m), { id: b, cancelToken: $e } = q.save();
555
555
  p.cancelToken = $e;
556
556
  const W = async function() {
557
557
  try {
558
558
  const d = await c(p);
559
559
  return oe({
560
560
  response: d,
561
- isCollection: g,
561
+ isCollection: a,
562
562
  config: p
563
563
  });
564
564
  } catch (d) {
565
565
  return L({ error: d });
566
566
  } finally {
567
- q.deleteById(R);
567
+ q.deleteById(b);
568
568
  }
569
569
  }();
570
- return W.cancel = (d) => I.cancelById(R, d), W;
570
+ return W.cancel = (d) => I.cancelById(b, d), W;
571
571
  }
572
- function oe({ response: c, isCollection: g, config: m }) {
573
- return g ? new ye(c, m) : new ee(c, m);
572
+ function oe({ response: c, isCollection: a, config: m }) {
573
+ return a ? new ye(c, m) : new ee(c, m);
574
574
  }
575
575
  function L({ error: c }) {
576
576
  if (M.isCancel(c))
@@ -594,72 +594,72 @@ function O({ options: t }) {
594
594
  }
595
595
  function le(c) {
596
596
  return c.params !== void 0 && (c.params = Object.keys(c.params).filter(
597
- (g) => c.params[g] !== null && c.params[g] !== ""
598
- ).reduce((g, m) => (g[m] = c.params[m], g), {})), c;
597
+ (a) => c.params[a] !== null && c.params[a] !== ""
598
+ ).reduce((a, m) => (a[m] = c.params[m], a), {})), c;
599
599
  }
600
600
  function z(c = {}) {
601
601
  return { ...le(c) };
602
602
  }
603
- function U(c, g = {}) {
603
+ function U(c, a = {}) {
604
604
  return w({
605
605
  request: (m) => e.get(c, m),
606
- config: { params: g }
606
+ config: { params: a }
607
607
  });
608
608
  }
609
- function ce(c, g) {
609
+ function ce(c, a) {
610
610
  return w({
611
611
  request: (m) => e.get(c, m),
612
- config: { params: g },
612
+ config: { params: a },
613
613
  isCollection: !0
614
614
  });
615
615
  }
616
- function V(c, g, m = {}) {
616
+ function V(c, a, m = {}) {
617
617
  let p = {};
618
618
  return m.authenticate === !1 && (p = { headers: l() }, delete p.headers.common["REB-APIKEY"], delete p.headers.common.Authorization), m.params && (p.params = { ...m.params }), w({
619
- request: (R) => e.post(c, g, R),
619
+ request: (b) => e.post(c, a, b),
620
620
  config: p
621
621
  });
622
622
  }
623
- function J(c, g, m = {}) {
623
+ function J(c, a, m = {}) {
624
624
  return w({
625
- request: (p) => e.put(c, g, p),
625
+ request: (p) => e.put(c, a, p),
626
626
  config: { params: m }
627
627
  });
628
628
  }
629
- function ie(c, g) {
629
+ function ie(c, a) {
630
630
  return w({
631
- request: (m) => e.patch(c, g, m),
631
+ request: (m) => e.patch(c, a, m),
632
632
  config: {}
633
633
  });
634
634
  }
635
- function ge(c) {
635
+ function ae(c) {
636
636
  return w({
637
- request: (g) => e.delete(c, g),
637
+ request: (a) => e.delete(c, a),
638
638
  config: {}
639
639
  });
640
640
  }
641
- function ae(c, g) {
641
+ function ge(c, a) {
642
642
  return w({
643
643
  request: (m) => e.delete(c, m),
644
- config: { data: { ...g } }
644
+ config: { data: { ...a } }
645
645
  });
646
646
  }
647
- async function me(c, g, m, p = {}) {
648
- if (g === "")
647
+ async function me(c, a, m, p = {}) {
648
+ if (a === "")
649
649
  return V(c, m, { params: p });
650
650
  try {
651
651
  if ((await U(c)).response.status === 200)
652
652
  throw new y.RebillyConflictError({
653
653
  message: "A resource already exists with this ID. Please use a different ID."
654
654
  });
655
- } catch (R) {
656
- if (R.name === "RebillyNotFoundError")
655
+ } catch (b) {
656
+ if (b.name === "RebillyNotFoundError")
657
657
  return J(c, m, p);
658
- throw R;
658
+ throw b;
659
659
  }
660
660
  }
661
- async function fe(c, g) {
662
- const m = z(g);
661
+ async function fe(c, a) {
662
+ const m = z(a);
663
663
  try {
664
664
  const p = await e.get(c, m);
665
665
  return new Ae(p, m);
@@ -676,15 +676,15 @@ function O({ options: t }) {
676
676
  setTimeout: i,
677
677
  setProxyAgent: $,
678
678
  setSessionToken: f,
679
- setPublishableKey: a,
679
+ setPublishableKey: g,
680
680
  setEndpoints: h,
681
681
  get: U,
682
682
  getAll: ce,
683
683
  post: V,
684
684
  put: J,
685
685
  patch: ie,
686
- delete: ge,
687
- deleteAll: ae,
686
+ delete: ae,
687
+ deleteAll: ge,
688
688
  create: me,
689
689
  download: fe
690
690
  };
@@ -770,18 +770,16 @@ function Ne({ apiHandler: t }) {
770
770
  offset: s = null,
771
771
  sort: r = null,
772
772
  filter: n = null,
773
- q: u = null,
774
- expand: o = null
773
+ q: u = null
775
774
  } = {}) {
776
- const l = { limit: e, offset: s, sort: r, filter: n, q: u, expand: o };
777
- return t.getAll("aml-checks", l);
775
+ const o = { limit: e, offset: s, sort: r, filter: n, q: u };
776
+ return t.getAll("aml-checks", o);
778
777
  },
779
778
  /**
780
779
  * @returns { rebilly.GetAmlCheckResponsePromise } response
781
780
  */
782
- get({ id: e, expand: s = null }) {
783
- const r = { expand: s };
784
- return t.get(`aml-checks/${e}`, r);
781
+ get({ id: e }) {
782
+ return t.get(`aml-checks/${e}`);
785
783
  },
786
784
  startReview({ id: e }) {
787
785
  return t.post(`aml-checks/${e}/start-review`);
@@ -1161,7 +1159,7 @@ function Ze({ apiHandler: t }) {
1161
1159
  }
1162
1160
  };
1163
1161
  }
1164
- const b = { Accept: "application/pdf" };
1162
+ const R = { Accept: "application/pdf" };
1165
1163
  function _e({ apiHandler: t }) {
1166
1164
  return {
1167
1165
  /**
@@ -1236,7 +1234,7 @@ function _e({ apiHandler: t }) {
1236
1234
  },
1237
1235
  downloadPDF({ id: e }) {
1238
1236
  const s = {
1239
- headers: b,
1237
+ headers: R,
1240
1238
  responseType: "arraybuffer"
1241
1239
  };
1242
1240
  return t.download(`credit-memos/${e}`, s);
@@ -1492,7 +1490,7 @@ function st({ apiHandler: t }) {
1492
1490
  },
1493
1491
  downloadComplianceScreeningReport({ id: e }) {
1494
1492
  const s = {
1495
- headers: b,
1493
+ headers: R,
1496
1494
  responseType: "arraybuffer"
1497
1495
  };
1498
1496
  return t.download(
@@ -1725,7 +1723,7 @@ function it({ apiHandler: t }) {
1725
1723
  }
1726
1724
  };
1727
1725
  }
1728
- function gt({ apiHandler: t }) {
1726
+ function at({ apiHandler: t }) {
1729
1727
  return {
1730
1728
  /**
1731
1729
  * @param { rebilly.GetEmailNotificationCollectionRequest } request
@@ -1737,7 +1735,7 @@ function gt({ apiHandler: t }) {
1737
1735
  }
1738
1736
  };
1739
1737
  }
1740
- function at({ apiHandler: t }) {
1738
+ function gt({ apiHandler: t }) {
1741
1739
  return {
1742
1740
  /**
1743
1741
  * @param { rebilly.GetEventCollectionRequest } request
@@ -2042,7 +2040,7 @@ function pt({ apiHandler: t }) {
2042
2040
  const o = this.getAllAttachments(s);
2043
2041
  r.push(o);
2044
2042
  const i = (await o).items.map(
2045
- (a) => this.detach({ id: a.fields.id })
2043
+ (g) => this.detach({ id: g.fields.id })
2046
2044
  );
2047
2045
  r = [...r, i], await Promise.all(i);
2048
2046
  const f = t.delete(`files/${e}`);
@@ -2369,14 +2367,14 @@ function At({ apiHandler: t }) {
2369
2367
  },
2370
2368
  downloadPDF({ id: e }) {
2371
2369
  const s = {
2372
- headers: b,
2370
+ headers: R,
2373
2371
  responseType: "arraybuffer"
2374
2372
  };
2375
2373
  return t.download(`invoices/${e}`, s);
2376
2374
  }
2377
2375
  };
2378
2376
  }
2379
- function Rt({ apiHandler: t }) {
2377
+ function bt({ apiHandler: t }) {
2380
2378
  return {
2381
2379
  /**
2382
2380
  * @param { rebilly.GetJournalAccountCollectionRequest } request
@@ -2412,7 +2410,7 @@ function Rt({ apiHandler: t }) {
2412
2410
  }
2413
2411
  };
2414
2412
  }
2415
- function bt({ apiHandler: t }) {
2413
+ function Rt({ apiHandler: t }) {
2416
2414
  return {
2417
2415
  /**
2418
2416
  * @param { rebilly.GetJournalEntryCollectionRequest } request
@@ -3016,6 +3014,9 @@ function Bt({ apiHandler: t }) {
3016
3014
  get({ id: e }) {
3017
3015
  return t.get(`payout-request-batches/${e}`);
3018
3016
  },
3017
+ delete({ id: e }) {
3018
+ return t.delete(`payout-request-batches/${e}`);
3019
+ },
3019
3020
  patch({ id: e, data: s }) {
3020
3021
  return t.patch(`payout-request-batches/${e}`, s);
3021
3022
  },
@@ -3028,6 +3029,21 @@ function Bt({ apiHandler: t }) {
3028
3029
  block({ id: e, data: s }) {
3029
3030
  return t.post(`payout-request-batches/${e}/block`, s);
3030
3031
  },
3032
+ addPayoutRequests({ id: e, data: s }) {
3033
+ return t.post(
3034
+ `payout-request-batches/${e}/payout-requests`,
3035
+ s
3036
+ );
3037
+ },
3038
+ removePayoutRequests({ id: e, data: s }) {
3039
+ return t.post(
3040
+ `payout-request-batches/${e}/payout-requests/remove`,
3041
+ s
3042
+ );
3043
+ },
3044
+ unblock({ id: e }) {
3045
+ return t.post(`payout-request-batches/${e}/unblock`);
3046
+ },
3031
3047
  /**
3032
3048
  * @returns { rebilly.GetPayoutRequestBatchPreviewResponsePromise } response
3033
3049
  */
@@ -3353,7 +3369,7 @@ function Wt({ apiHandler: t }) {
3353
3369
  },
3354
3370
  downloadPDF({ id: e }) {
3355
3371
  const s = {
3356
- headers: b,
3372
+ headers: R,
3357
3373
  responseType: "arraybuffer"
3358
3374
  };
3359
3375
  return t.download(`quotes/${e}`, s);
@@ -4081,14 +4097,14 @@ function is({ apiHandler: t }) {
4081
4097
  },
4082
4098
  downloadPDF({ id: e }) {
4083
4099
  const s = {
4084
- headers: b,
4100
+ headers: R,
4085
4101
  responseType: "arraybuffer"
4086
4102
  };
4087
4103
  return t.download(`transactions/${e}`, s);
4088
4104
  }
4089
4105
  };
4090
4106
  }
4091
- function gs({ apiHandler: t }) {
4107
+ function as({ apiHandler: t }) {
4092
4108
  return {
4093
4109
  /**
4094
4110
  * @param { rebilly.GetUsageCollectionRequest } request
@@ -4118,7 +4134,7 @@ function gs({ apiHandler: t }) {
4118
4134
  }
4119
4135
  };
4120
4136
  }
4121
- function as({ apiHandler: t }) {
4137
+ function gs({ apiHandler: t }) {
4122
4138
  return {
4123
4139
  /**
4124
4140
  * @param { rebilly.GetUserCollectionRequest } request
@@ -4241,15 +4257,15 @@ class $s {
4241
4257
  apiHandler: e
4242
4258
  }), this.account = Be({ apiHandler: e }), this.allowlists = Ke({ apiHandler: e }), this.amlChecks = Ne({ apiHandler: e }), this.amlSettings = Le({ apiHandler: e }), this.apiKeys = ze({ apiHandler: e }), this.applicationInstances = Ue({ apiHandler: e }), this.applications = Ve({ apiHandler: e }), this.balanceTransactions = Je({ apiHandler: e }), this.billingPortals = We({ apiHandler: e }), this.blocklists = Ge({ apiHandler: e }), this.broadcastMessages = Ye({ apiHandler: e }), this.cashiers = Qe({ apiHandler: e }), this.checkoutForms = Xe({ apiHandler: e }), this.coupons = Ze({ apiHandler: e }), this.creditMemos = _e({ apiHandler: e }), this.customDomains = He({ apiHandler: e }), this.customFields = et({ apiHandler: e }), this.customerAuthentication = tt({ apiHandler: e }), this.customers = st({ apiHandler: e }), this.depositCustomPropertySets = rt({
4243
4259
  apiHandler: e
4244
- }), this.depositRequests = nt({ apiHandler: e }), this.depositStrategies = ut({ apiHandler: e }), this.digitalWallets = ot({ apiHandler: e }), this.disputes = lt({ apiHandler: e }), this.emailDeliverySettings = ct({ apiHandler: e }), this.emailMessages = it({ apiHandler: e }), this.emailNotifications = gt({ apiHandler: e }), this.events = at({ apiHandler: e }), this.externalIdentifiers = mt({ apiHandler: e }), this.externalServicesSettings = ft({
4260
+ }), this.depositRequests = nt({ apiHandler: e }), this.depositStrategies = ut({ apiHandler: e }), this.digitalWallets = ot({ apiHandler: e }), this.disputes = lt({ apiHandler: e }), this.emailDeliverySettings = ct({ apiHandler: e }), this.emailMessages = it({ apiHandler: e }), this.emailNotifications = at({ apiHandler: e }), this.events = gt({ apiHandler: e }), this.externalIdentifiers = mt({ apiHandler: e }), this.externalServicesSettings = ft({
4245
4261
  apiHandler: e
4246
- }), this.fees = $t({ apiHandler: e }), this.files = pt({ apiHandler: e }), this.gatewayAccounts = ht({ apiHandler: e }), this.integrations = yt({ apiHandler: e }), this.invoices = At({ apiHandler: e }), this.journalAccounts = Rt({ apiHandler: e }), this.journalEntries = bt({ apiHandler: e }), this.journalRecords = wt({ apiHandler: e }), this.kycDocuments = kt({ apiHandler: e }), this.kycRequests = vt({ apiHandler: e }), this.kycSettings = qt({ apiHandler: e }), this.lists = dt({ apiHandler: e }), this.memberships = Tt({ apiHandler: e }), this.orderCancellations = It({ apiHandler: e }), this.orderPauses = St({ apiHandler: e }), this.orderReactivations = Et({ apiHandler: e }), this.orders = xt({ apiHandler: e }), this.organizationExports = Pt({ apiHandler: e }), this.organizations = Ct({ apiHandler: e }), this.paymentCardsBankNames = Dt({ apiHandler: e }), this.paymentInstruments = jt({ apiHandler: e }), this.paymentMethods = Mt({ apiHandler: e }), this.paymentTokens = Ot({ apiHandler: e }), this.payoutRequestAllocations = Ft({
4262
+ }), this.fees = $t({ apiHandler: e }), this.files = pt({ apiHandler: e }), this.gatewayAccounts = ht({ apiHandler: e }), this.integrations = yt({ apiHandler: e }), this.invoices = At({ apiHandler: e }), this.journalAccounts = bt({ apiHandler: e }), this.journalEntries = Rt({ apiHandler: e }), this.journalRecords = wt({ apiHandler: e }), this.kycDocuments = kt({ apiHandler: e }), this.kycRequests = vt({ apiHandler: e }), this.kycSettings = qt({ apiHandler: e }), this.lists = dt({ apiHandler: e }), this.memberships = Tt({ apiHandler: e }), this.orderCancellations = It({ apiHandler: e }), this.orderPauses = St({ apiHandler: e }), this.orderReactivations = Et({ apiHandler: e }), this.orders = xt({ apiHandler: e }), this.organizationExports = Pt({ apiHandler: e }), this.organizations = Ct({ apiHandler: e }), this.paymentCardsBankNames = Dt({ apiHandler: e }), this.paymentInstruments = jt({ apiHandler: e }), this.paymentMethods = Mt({ apiHandler: e }), this.paymentTokens = Ot({ apiHandler: e }), this.payoutRequestAllocations = Ft({
4247
4263
  apiHandler: e
4248
4264
  }), this.payoutRequestBatches = Bt({ apiHandler: e }), this.payoutRequests = Kt({ apiHandler: e }), this.payouts = Nt({ apiHandler: e }), this.plans = Lt({ apiHandler: e }), this.previews = zt({ apiHandler: e }), this.products = Ut({ apiHandler: e }), this.profile = Vt({ apiHandler: e }), this.purchase = Jt({ apiHandler: e }), this.quotes = Wt({ apiHandler: e }), this.resource = Gt({ apiHandler: e }), this.riskScoreRules = Yt({ apiHandler: e }), this.roles = Qt({ apiHandler: e }), this.search = Xt({ apiHandler: e }), this.segments = Zt({ apiHandler: e }), this.sendThroughAttribution = _t({ apiHandler: e }), this.serviceCredentials = Ht({ apiHandler: e }), this.shippingRates = es({ apiHandler: e }), this.status = ts({ apiHandler: e }), this.subscriptionCancellations = ss({
4249
4265
  apiHandler: e
4250
4266
  }), this.subscriptionPauses = rs({ apiHandler: e }), this.subscriptionReactivations = ns({
4251
4267
  apiHandler: e
4252
- }), this.subscriptions = us({ apiHandler: e }), this.tags = os({ apiHandler: e }), this.tagsRules = ls({ apiHandler: e }), this.tracking = cs({ apiHandler: e }), this.transactions = is({ apiHandler: e }), this.usages = gs({ apiHandler: e }), this.users = as({ apiHandler: e }), this.webhooks = ms({ apiHandler: e }), this.websites = fs({ 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;
4268
+ }), this.subscriptions = us({ apiHandler: e }), this.tags = os({ apiHandler: e }), this.tagsRules = ls({ apiHandler: e }), this.tracking = cs({ apiHandler: e }), this.transactions = is({ apiHandler: e }), this.usages = as({ apiHandler: e }), this.users = gs({ apiHandler: e }), this.webhooks = ms({ apiHandler: e }), this.websites = fs({ 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;
4253
4269
  }
4254
4270
  }
4255
4271
  function ps({ apiHandler: t }) {
@@ -4656,7 +4672,7 @@ function As({ apiHandler: t }) {
4656
4672
  filter: i = null,
4657
4673
  criteria: f = null
4658
4674
  }) {
4659
- const a = {
4675
+ const g = {
4660
4676
  aggregationField: e,
4661
4677
  aggregationPeriod: s,
4662
4678
  includeSwitchedSubscriptions: r,
@@ -4667,7 +4683,7 @@ function As({ apiHandler: t }) {
4667
4683
  filter: i,
4668
4684
  criteria: f
4669
4685
  };
4670
- return t.get("reports/retention-percentage", a);
4686
+ return t.get("reports/retention-percentage", g);
4671
4687
  },
4672
4688
  /**
4673
4689
  * @returns { rebilly.GetRetentionValueReportResponsePromise } response
@@ -4682,7 +4698,7 @@ function As({ apiHandler: t }) {
4682
4698
  limit: l = null,
4683
4699
  offset: i = null,
4684
4700
  filter: f = null,
4685
- sort: a = null,
4701
+ sort: g = null,
4686
4702
  criteria: $ = null
4687
4703
  }) {
4688
4704
  const h = {
@@ -4695,7 +4711,7 @@ function As({ apiHandler: t }) {
4695
4711
  limit: l,
4696
4712
  offset: i,
4697
4713
  filter: f,
4698
- sort: a,
4714
+ sort: g,
4699
4715
  criteria: $
4700
4716
  };
4701
4717
  return t.get("reports/retention-value", h);
@@ -4823,7 +4839,7 @@ function As({ apiHandler: t }) {
4823
4839
  }
4824
4840
  };
4825
4841
  }
4826
- function Rs({ apiHandler: t }) {
4842
+ function bs({ apiHandler: t }) {
4827
4843
  return {
4828
4844
  /**
4829
4845
  * @returns { rebilly.GetSubscriptionSummaryMetricReportResponsePromise } response
@@ -4833,7 +4849,7 @@ function Rs({ apiHandler: t }) {
4833
4849
  }
4834
4850
  };
4835
4851
  }
4836
- function bs({ apiHandler: t }) {
4852
+ function Rs({ apiHandler: t }) {
4837
4853
  return {
4838
4854
  getActivityFeed({ eventTypes: e = null, limit: s = 1e3, offset: r = 0 }) {
4839
4855
  const n = {
@@ -4873,8 +4889,8 @@ const k = {
4873
4889
  DataExportsResource: hs,
4874
4890
  HistogramsResource: ys,
4875
4891
  ReportsResource: As,
4876
- SubscriptionsResource: Rs,
4877
- TimelinesResource: bs,
4892
+ SubscriptionsResource: bs,
4893
+ TimelinesResource: Rs,
4878
4894
  LocationResource: ws
4879
4895
  };
4880
4896
  class ks {
@@ -5030,7 +5046,7 @@ function Cs({ apiHandler: t }) {
5030
5046
  },
5031
5047
  downloadPDF({ id: e }) {
5032
5048
  const s = {
5033
- headers: b,
5049
+ headers: R,
5034
5050
  responseType: "arraybuffer"
5035
5051
  };
5036
5052
  return t.download(`invoices/${e}`, s);
@@ -5286,7 +5302,7 @@ function zs({ apiHandler: t }) {
5286
5302
  },
5287
5303
  downloadPDF({ id: e }) {
5288
5304
  const s = {
5289
- headers: b,
5305
+ headers: R,
5290
5306
  responseType: "arraybuffer"
5291
5307
  };
5292
5308
  return t.download(`quotes/${e}`, s);
@@ -5356,7 +5372,7 @@ function Ws({ apiHandler: t }) {
5356
5372
  },
5357
5373
  downloadPDF({ id: e }) {
5358
5374
  const s = {
5359
- headers: b,
5375
+ headers: R,
5360
5376
  responseType: "arraybuffer"
5361
5377
  };
5362
5378
  return t.download(`transactions/${e}`, s);