rebilly-js-sdk 62.145.4 → 62.146.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.
@@ -31,8 +31,8 @@ declare namespace rebilly {
31
31
  type GetAmlCheckCollectionResponse = operations['GetAmlCheckCollection']['responses']['200']['content']['application/json'][0]
32
32
  type GetAmlCheckCollectionResponsePromise = Promise<{ items: {fields: GetAmlCheckCollectionResponse}[], getJSON: object, total?: number, offset?: number, limit?: number }>
33
33
 
34
- type GetAmlCheckRequest = operations['GetAmlCheck']['parameters'] & { id: string }
35
-
34
+ type GetAmlCheckRequest = { id: string }
35
+
36
36
  type GetAmlCheckResponse = operations['GetAmlCheck']['responses']['200']['content']['application/json']
37
37
  type GetAmlCheckResponsePromise = Promise<{fields: GetAmlCheckResponse}>
38
38
 
@@ -6368,10 +6368,6 @@ export interface coreComponents {
6368
6368
  /** Type of link. */
6369
6369
  rel?: "self" | "customer";
6370
6370
  }[];
6371
- /** Embedded objects that are requested by the `expand` query parameter. */
6372
- _embedded?: {
6373
- customer?: { [key: string]: any };
6374
- };
6375
6371
  };
6376
6372
  /** AML check review. */
6377
6373
  AmlCheckReview: {
@@ -10877,10 +10873,15 @@ export interface coreComponents {
10877
10873
  /** Proof of funds document matches. */
10878
10874
  documentMatches?: {
10879
10875
  version?: coreComponents["schemas"]["KycDocumentMatchesVersion"];
10876
+ score?: coreComponents["schemas"]["KycDocumentMatchesScore"];
10877
+ checkList?: coreComponents["schemas"]["KycDocumentCheckList"];
10880
10878
  data?: coreComponents["schemas"]["FundsMatches"];
10881
10879
  } | null;
10880
+ /** Parsed data. */
10882
10881
  parsedData?: {
10883
10882
  version?: coreComponents["schemas"]["KycDocumentMatchesVersion"];
10883
+ score?: coreComponents["schemas"]["KycDocumentMatchesScore"];
10884
+ checkList?: coreComponents["schemas"]["KycDocumentCheckList"];
10884
10885
  data?: coreComponents["schemas"]["FundsMatches"];
10885
10886
  } | null;
10886
10887
  /** Related links. */
@@ -10971,11 +10972,15 @@ export interface coreComponents {
10971
10972
  /** Proof of purchase document matches. */
10972
10973
  documentMatches?: {
10973
10974
  version?: coreComponents["schemas"]["KycDocumentMatchesVersion"];
10975
+ score?: coreComponents["schemas"]["KycDocumentMatchesScore"];
10976
+ checkList?: coreComponents["schemas"]["KycDocumentCheckList"];
10974
10977
  data?: coreComponents["schemas"]["PurchaseMatches"];
10975
10978
  } | null;
10976
10979
  /** Parsed data. */
10977
10980
  parsedData?: {
10978
10981
  version?: coreComponents["schemas"]["KycDocumentMatchesVersion"];
10982
+ score?: coreComponents["schemas"]["KycDocumentMatchesScore"];
10983
+ checkList?: coreComponents["schemas"]["KycDocumentCheckList"];
10979
10984
  data?: coreComponents["schemas"]["PurchaseMatches"];
10980
10985
  } | null;
10981
10986
  /** Related links. */
@@ -11111,8 +11116,16 @@ export interface coreComponents {
11111
11116
  /** Proof of credit document matches. */
11112
11117
  documentMatches?: {
11113
11118
  version?: coreComponents["schemas"]["KycDocumentMatchesVersion"];
11119
+ score?: coreComponents["schemas"]["KycDocumentMatchesScore"];
11120
+ checkList?: coreComponents["schemas"]["KycDocumentCheckList"];
11114
11121
  data?: coreComponents["schemas"]["CreditFileMatches"];
11122
+ } | null;
11123
+ /** Parsed data. */
11124
+ parsedData?: {
11125
+ version?: coreComponents["schemas"]["KycDocumentMatchesVersion"];
11126
+ score?: coreComponents["schemas"]["KycDocumentMatchesScore"];
11115
11127
  checkList?: coreComponents["schemas"]["KycDocumentCheckList"];
11128
+ data?: coreComponents["schemas"]["CreditFileMatches"];
11116
11129
  } | null;
11117
11130
  /** Related links. */
11118
11131
  _links?: {
@@ -25619,6 +25632,11 @@ export interface coreComponents {
25619
25632
  updatedTime?: coreComponents["schemas"]["UpdatedTime"];
25620
25633
  /** Date and time when the KYC document is processed. */
25621
25634
  processedTime?: string;
25635
+ /** Document matches. */
25636
+ documentMatches?: {
25637
+ version?: coreComponents["schemas"]["KycDocumentMatchesVersion"];
25638
+ data?: coreComponents["schemas"]["FundsMatches"];
25639
+ } | null;
25622
25640
  _links?: coreComponents["schemas"]["SelfLink"];
25623
25641
  };
25624
25642
  StorefrontProofOfPurchaseKycDocument: {
@@ -30010,14 +30028,6 @@ export interface operations {
30010
30028
  filter?: coreComponents["parameters"]["collectionFilter"];
30011
30029
  /** Use this field to perform a partial search of text fields. */
30012
30030
  q?: coreComponents["parameters"]["collectionQuery"];
30013
- /**
30014
- * Expands a request to include embedded objects within the `_embedded`
30015
- * property of the response. This field accepts a comma-separated list of objects.
30016
- *
30017
- * For more information, see
30018
- * [Embedded resources](https://www.rebilly.com/docs/dev-docs/expand-embedded-resources).
30019
- */
30020
- expand?: coreComponents["parameters"]["collectionExpand"];
30021
30031
  };
30022
30032
  };
30023
30033
  responses: {
@@ -30042,16 +30052,6 @@ export interface operations {
30042
30052
  /** ID of the resource. */
30043
30053
  id: coreComponents["parameters"]["resourceId"];
30044
30054
  };
30045
- query: {
30046
- /**
30047
- * Expands a request to include embedded objects within the `_embedded`
30048
- * property of the response. This field accepts a comma-separated list of objects.
30049
- *
30050
- * For more information, see
30051
- * [Embedded resources](https://www.rebilly.com/docs/dev-docs/expand-embedded-resources).
30052
- */
30053
- expand?: coreComponents["parameters"]["collectionExpand"];
30054
- };
30055
30055
  };
30056
30056
  responses: {
30057
30057
  /** AML check retrieved. */
@@ -44917,10 +44917,6 @@ export interface storefrontComponents {
44917
44917
  /** Type of link. */
44918
44918
  rel?: "self" | "customer";
44919
44919
  }[];
44920
- /** Embedded objects that are requested by the `expand` query parameter. */
44921
- _embedded?: {
44922
- customer?: { [key: string]: any };
44923
- };
44924
44920
  };
44925
44921
  /** AML check review. */
44926
44922
  AmlCheckReview: {
@@ -49426,10 +49422,15 @@ export interface storefrontComponents {
49426
49422
  /** Proof of funds document matches. */
49427
49423
  documentMatches?: {
49428
49424
  version?: storefrontComponents["schemas"]["KycDocumentMatchesVersion"];
49425
+ score?: storefrontComponents["schemas"]["KycDocumentMatchesScore"];
49426
+ checkList?: storefrontComponents["schemas"]["KycDocumentCheckList"];
49429
49427
  data?: storefrontComponents["schemas"]["FundsMatches"];
49430
49428
  } | null;
49429
+ /** Parsed data. */
49431
49430
  parsedData?: {
49432
49431
  version?: storefrontComponents["schemas"]["KycDocumentMatchesVersion"];
49432
+ score?: storefrontComponents["schemas"]["KycDocumentMatchesScore"];
49433
+ checkList?: storefrontComponents["schemas"]["KycDocumentCheckList"];
49433
49434
  data?: storefrontComponents["schemas"]["FundsMatches"];
49434
49435
  } | null;
49435
49436
  /** Related links. */
@@ -49520,11 +49521,15 @@ export interface storefrontComponents {
49520
49521
  /** Proof of purchase document matches. */
49521
49522
  documentMatches?: {
49522
49523
  version?: storefrontComponents["schemas"]["KycDocumentMatchesVersion"];
49524
+ score?: storefrontComponents["schemas"]["KycDocumentMatchesScore"];
49525
+ checkList?: storefrontComponents["schemas"]["KycDocumentCheckList"];
49523
49526
  data?: storefrontComponents["schemas"]["PurchaseMatches"];
49524
49527
  } | null;
49525
49528
  /** Parsed data. */
49526
49529
  parsedData?: {
49527
49530
  version?: storefrontComponents["schemas"]["KycDocumentMatchesVersion"];
49531
+ score?: storefrontComponents["schemas"]["KycDocumentMatchesScore"];
49532
+ checkList?: storefrontComponents["schemas"]["KycDocumentCheckList"];
49528
49533
  data?: storefrontComponents["schemas"]["PurchaseMatches"];
49529
49534
  } | null;
49530
49535
  /** Related links. */
@@ -49660,8 +49665,16 @@ export interface storefrontComponents {
49660
49665
  /** Proof of credit document matches. */
49661
49666
  documentMatches?: {
49662
49667
  version?: storefrontComponents["schemas"]["KycDocumentMatchesVersion"];
49668
+ score?: storefrontComponents["schemas"]["KycDocumentMatchesScore"];
49669
+ checkList?: storefrontComponents["schemas"]["KycDocumentCheckList"];
49663
49670
  data?: storefrontComponents["schemas"]["CreditFileMatches"];
49671
+ } | null;
49672
+ /** Parsed data. */
49673
+ parsedData?: {
49674
+ version?: storefrontComponents["schemas"]["KycDocumentMatchesVersion"];
49675
+ score?: storefrontComponents["schemas"]["KycDocumentMatchesScore"];
49664
49676
  checkList?: storefrontComponents["schemas"]["KycDocumentCheckList"];
49677
+ data?: storefrontComponents["schemas"]["CreditFileMatches"];
49665
49678
  } | null;
49666
49679
  /** Related links. */
49667
49680
  _links?: {
@@ -64168,6 +64181,11 @@ export interface storefrontComponents {
64168
64181
  updatedTime?: storefrontComponents["schemas"]["UpdatedTime"];
64169
64182
  /** Date and time when the KYC document is processed. */
64170
64183
  processedTime?: string;
64184
+ /** Document matches. */
64185
+ documentMatches?: {
64186
+ version?: storefrontComponents["schemas"]["KycDocumentMatchesVersion"];
64187
+ data?: storefrontComponents["schemas"]["FundsMatches"];
64188
+ } | null;
64171
64189
  _links?: storefrontComponents["schemas"]["SelfLink"];
64172
64190
  };
64173
64191
  StorefrontProofOfPurchaseKycDocument: {
@@ -70901,10 +70919,6 @@ export interface reportsComponents {
70901
70919
  /** Type of link. */
70902
70920
  rel?: "self" | "customer";
70903
70921
  }[];
70904
- /** Embedded objects that are requested by the `expand` query parameter. */
70905
- _embedded?: {
70906
- customer?: { [key: string]: any };
70907
- };
70908
70922
  };
70909
70923
  /** AML check review. */
70910
70924
  AmlCheckReview: {
@@ -75410,10 +75424,15 @@ export interface reportsComponents {
75410
75424
  /** Proof of funds document matches. */
75411
75425
  documentMatches?: {
75412
75426
  version?: reportsComponents["schemas"]["KycDocumentMatchesVersion"];
75427
+ score?: reportsComponents["schemas"]["KycDocumentMatchesScore"];
75428
+ checkList?: reportsComponents["schemas"]["KycDocumentCheckList"];
75413
75429
  data?: reportsComponents["schemas"]["FundsMatches"];
75414
75430
  } | null;
75431
+ /** Parsed data. */
75415
75432
  parsedData?: {
75416
75433
  version?: reportsComponents["schemas"]["KycDocumentMatchesVersion"];
75434
+ score?: reportsComponents["schemas"]["KycDocumentMatchesScore"];
75435
+ checkList?: reportsComponents["schemas"]["KycDocumentCheckList"];
75417
75436
  data?: reportsComponents["schemas"]["FundsMatches"];
75418
75437
  } | null;
75419
75438
  /** Related links. */
@@ -75504,11 +75523,15 @@ export interface reportsComponents {
75504
75523
  /** Proof of purchase document matches. */
75505
75524
  documentMatches?: {
75506
75525
  version?: reportsComponents["schemas"]["KycDocumentMatchesVersion"];
75526
+ score?: reportsComponents["schemas"]["KycDocumentMatchesScore"];
75527
+ checkList?: reportsComponents["schemas"]["KycDocumentCheckList"];
75507
75528
  data?: reportsComponents["schemas"]["PurchaseMatches"];
75508
75529
  } | null;
75509
75530
  /** Parsed data. */
75510
75531
  parsedData?: {
75511
75532
  version?: reportsComponents["schemas"]["KycDocumentMatchesVersion"];
75533
+ score?: reportsComponents["schemas"]["KycDocumentMatchesScore"];
75534
+ checkList?: reportsComponents["schemas"]["KycDocumentCheckList"];
75512
75535
  data?: reportsComponents["schemas"]["PurchaseMatches"];
75513
75536
  } | null;
75514
75537
  /** Related links. */
@@ -75644,8 +75667,16 @@ export interface reportsComponents {
75644
75667
  /** Proof of credit document matches. */
75645
75668
  documentMatches?: {
75646
75669
  version?: reportsComponents["schemas"]["KycDocumentMatchesVersion"];
75670
+ score?: reportsComponents["schemas"]["KycDocumentMatchesScore"];
75671
+ checkList?: reportsComponents["schemas"]["KycDocumentCheckList"];
75647
75672
  data?: reportsComponents["schemas"]["CreditFileMatches"];
75673
+ } | null;
75674
+ /** Parsed data. */
75675
+ parsedData?: {
75676
+ version?: reportsComponents["schemas"]["KycDocumentMatchesVersion"];
75677
+ score?: reportsComponents["schemas"]["KycDocumentMatchesScore"];
75648
75678
  checkList?: reportsComponents["schemas"]["KycDocumentCheckList"];
75679
+ data?: reportsComponents["schemas"]["CreditFileMatches"];
75649
75680
  } | null;
75650
75681
  /** Related links. */
75651
75682
  _links?: {
@@ -90152,6 +90183,11 @@ export interface reportsComponents {
90152
90183
  updatedTime?: reportsComponents["schemas"]["UpdatedTime"];
90153
90184
  /** Date and time when the KYC document is processed. */
90154
90185
  processedTime?: string;
90186
+ /** Document matches. */
90187
+ documentMatches?: {
90188
+ version?: reportsComponents["schemas"]["KycDocumentMatchesVersion"];
90189
+ data?: reportsComponents["schemas"]["FundsMatches"];
90190
+ } | null;
90155
90191
  _links?: reportsComponents["schemas"]["SelfLink"];
90156
90192
  };
90157
90193
  StorefrontProofOfPurchaseKycDocument: {
@@ -98201,10 +98237,9 @@ declare module "resources/aml-checks-resource" {
98201
98237
  export default function AmlChecksResource({ apiHandler }: {
98202
98238
  apiHandler: any;
98203
98239
  }): {
98204
- getAll({ limit, offset, sort, filter, q, expand, }?: rebilly.GetAmlCheckCollectionRequest): rebilly.GetAmlCheckCollectionResponsePromise;
98205
- get({ id, expand }: {
98240
+ getAll({ limit, offset, sort, filter, q, }?: rebilly.GetAmlCheckCollectionRequest): rebilly.GetAmlCheckCollectionResponsePromise;
98241
+ get({ id }: {
98206
98242
  id: any;
98207
- expand?: any;
98208
98243
  }): rebilly.GetAmlCheckResponsePromise;
98209
98244
  startReview({ id }: {
98210
98245
  id: any;
@@ -100198,10 +100233,9 @@ declare module "resources/api-instance" {
100198
100233
  }): any;
100199
100234
  };
100200
100235
  amlChecks: {
100201
- getAll({ limit, offset, sort, filter, q, expand, }?: rebilly.GetAmlCheckCollectionRequest): rebilly.GetAmlCheckCollectionResponsePromise;
100202
- get({ id, expand }: {
100236
+ getAll({ limit, offset, sort, filter, q, }?: rebilly.GetAmlCheckCollectionRequest): rebilly.GetAmlCheckCollectionResponsePromise;
100237
+ get({ id }: {
100203
100238
  id: any;
100204
- expand?: any;
100205
100239
  }): rebilly.GetAmlCheckResponsePromise;
100206
100240
  startReview({ id }: {
100207
100241
  id: any;
@@ -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,
@@ -489,7 +489,7 @@ function O({ options: t }) {
489
489
  }
490
490
  function o() {
491
491
  const g = {
492
- "REB-API-CONSUMER": `${["Rebilly", t.appName, "js-sdk"].filter((m) => m).join("/")}@856f75e`
492
+ "REB-API-CONSUMER": `${["Rebilly", t.appName, "js-sdk"].filter((m) => m).join("/")}@21eab27`
493
493
  };
494
494
  return t.apiKey && (g["REB-APIKEY"] = t.apiKey), g;
495
495
  }
@@ -551,7 +551,7 @@ function O({ options: t }) {
551
551
  N(v.response, c);
552
552
  }
553
553
  function w({ request: c, isCollection: g, config: m }) {
554
- const p = z(m), { id: R, cancelToken: $e } = q.save();
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 {
@@ -564,10 +564,10 @@ function O({ options: t }) {
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
572
  function oe({ response: c, isCollection: g, config: m }) {
573
573
  return g ? new ye(c, m) : new ee(c, m);
@@ -616,7 +616,7 @@ function O({ options: t }) {
616
616
  function V(c, g, 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, g, b),
620
620
  config: p
621
621
  });
622
622
  }
@@ -652,10 +652,10 @@ function O({ options: t }) {
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
661
  async function fe(c, g) {
@@ -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(
@@ -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
@@ -3353,7 +3351,7 @@ function Wt({ apiHandler: t }) {
3353
3351
  },
3354
3352
  downloadPDF({ id: e }) {
3355
3353
  const s = {
3356
- headers: b,
3354
+ headers: R,
3357
3355
  responseType: "arraybuffer"
3358
3356
  };
3359
3357
  return t.download(`quotes/${e}`, s);
@@ -4081,7 +4079,7 @@ function is({ apiHandler: t }) {
4081
4079
  },
4082
4080
  downloadPDF({ id: e }) {
4083
4081
  const s = {
4084
- headers: b,
4082
+ headers: R,
4085
4083
  responseType: "arraybuffer"
4086
4084
  };
4087
4085
  return t.download(`transactions/${e}`, s);
@@ -4243,7 +4241,7 @@ class $s {
4243
4241
  apiHandler: e
4244
4242
  }), 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({
4245
4243
  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({
4244
+ }), 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
4245
  apiHandler: e
4248
4246
  }), 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
4247
  apiHandler: e
@@ -4823,7 +4821,7 @@ function As({ apiHandler: t }) {
4823
4821
  }
4824
4822
  };
4825
4823
  }
4826
- function Rs({ apiHandler: t }) {
4824
+ function bs({ apiHandler: t }) {
4827
4825
  return {
4828
4826
  /**
4829
4827
  * @returns { rebilly.GetSubscriptionSummaryMetricReportResponsePromise } response
@@ -4833,7 +4831,7 @@ function Rs({ apiHandler: t }) {
4833
4831
  }
4834
4832
  };
4835
4833
  }
4836
- function bs({ apiHandler: t }) {
4834
+ function Rs({ apiHandler: t }) {
4837
4835
  return {
4838
4836
  getActivityFeed({ eventTypes: e = null, limit: s = 1e3, offset: r = 0 }) {
4839
4837
  const n = {
@@ -4873,8 +4871,8 @@ const k = {
4873
4871
  DataExportsResource: hs,
4874
4872
  HistogramsResource: ys,
4875
4873
  ReportsResource: As,
4876
- SubscriptionsResource: Rs,
4877
- TimelinesResource: bs,
4874
+ SubscriptionsResource: bs,
4875
+ TimelinesResource: Rs,
4878
4876
  LocationResource: ws
4879
4877
  };
4880
4878
  class ks {
@@ -5030,7 +5028,7 @@ function Cs({ apiHandler: t }) {
5030
5028
  },
5031
5029
  downloadPDF({ id: e }) {
5032
5030
  const s = {
5033
- headers: b,
5031
+ headers: R,
5034
5032
  responseType: "arraybuffer"
5035
5033
  };
5036
5034
  return t.download(`invoices/${e}`, s);
@@ -5286,7 +5284,7 @@ function zs({ apiHandler: t }) {
5286
5284
  },
5287
5285
  downloadPDF({ id: e }) {
5288
5286
  const s = {
5289
- headers: b,
5287
+ headers: R,
5290
5288
  responseType: "arraybuffer"
5291
5289
  };
5292
5290
  return t.download(`quotes/${e}`, s);
@@ -5356,7 +5354,7 @@ function Ws({ apiHandler: t }) {
5356
5354
  },
5357
5355
  downloadPDF({ id: e }) {
5358
5356
  const s = {
5359
- headers: b,
5357
+ headers: R,
5360
5358
  responseType: "arraybuffer"
5361
5359
  };
5362
5360
  return t.download(`transactions/${e}`, s);