rebilly-js-sdk 62.220.2 → 62.220.3
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 +1 -1
- package/dist/rebilly-js-sdk.d.cts +30 -54
- package/dist/rebilly-js-sdk.d.mts +30 -54
- package/dist/rebilly-js-sdk.d.ts +30 -54
- package/dist/rebilly-js-sdk.es.mjs +69 -72
- package/dist/rebilly-js-sdk.umd.js +1 -1
- package/package.json +1 -1
- package/src/resources/files-resource.js +5 -8
|
@@ -33,7 +33,7 @@ var J = class {
|
|
|
33
33
|
limit: "pagination-limit",
|
|
34
34
|
offset: "pagination-offset",
|
|
35
35
|
total: "pagination-total"
|
|
36
|
-
},
|
|
36
|
+
}, fe = class {
|
|
37
37
|
constructor({ data: t, status: e, statusText: r, headers: s }, n = {}) {
|
|
38
38
|
this.limit = null, this.offset = null, this.total = null, Object.keys(L).forEach((u) => {
|
|
39
39
|
const o = s[L[u]];
|
|
@@ -52,7 +52,7 @@ var J = class {
|
|
|
52
52
|
getJSON() {
|
|
53
53
|
return JSON.parse(JSON.stringify({ items: this.items }));
|
|
54
54
|
}
|
|
55
|
-
},
|
|
55
|
+
}, pe = class {
|
|
56
56
|
constructor({ data: t, status: e, statusText: r, headers: s }, n = {}) {
|
|
57
57
|
this.response = {
|
|
58
58
|
status: e,
|
|
@@ -180,7 +180,7 @@ var J = class {
|
|
|
180
180
|
case "Float64Array":
|
|
181
181
|
return "float64array";
|
|
182
182
|
}
|
|
183
|
-
if (
|
|
183
|
+
if (p(y)) return "generator";
|
|
184
184
|
switch (A = r.call(y), A) {
|
|
185
185
|
case "[object Object]":
|
|
186
186
|
return "object";
|
|
@@ -213,7 +213,7 @@ var J = class {
|
|
|
213
213
|
function i(m, y) {
|
|
214
214
|
return s(m) === "GeneratorFunction";
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function p(m) {
|
|
217
217
|
return typeof m.throw == "function" && typeof m.return == "function" && typeof m.next == "function";
|
|
218
218
|
}
|
|
219
219
|
function g(m) {
|
|
@@ -244,7 +244,7 @@ var J = class {
|
|
|
244
244
|
case "buffer":
|
|
245
245
|
return i(g);
|
|
246
246
|
case "symbol":
|
|
247
|
-
return
|
|
247
|
+
return p(g);
|
|
248
248
|
case "arraybuffer":
|
|
249
249
|
return o(g);
|
|
250
250
|
case "float32array":
|
|
@@ -280,7 +280,7 @@ var J = class {
|
|
|
280
280
|
const h = g.length, m = Buffer.allocUnsafe ? Buffer.allocUnsafe(h) : Buffer.from(h);
|
|
281
281
|
return g.copy(m), m;
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function p(g) {
|
|
284
284
|
return r ? Object(r.call(g)) : {};
|
|
285
285
|
}
|
|
286
286
|
e.exports = n;
|
|
@@ -299,28 +299,28 @@ var J = class {
|
|
|
299
299
|
};
|
|
300
300
|
})), Te = /* @__PURE__ */ I(((t, e) => {
|
|
301
301
|
var r = ke(), s = W(), n = de();
|
|
302
|
-
function u(i,
|
|
302
|
+
function u(i, p) {
|
|
303
303
|
switch (s(i)) {
|
|
304
304
|
case "object":
|
|
305
|
-
return o(i,
|
|
305
|
+
return o(i, p);
|
|
306
306
|
case "array":
|
|
307
|
-
return l(i,
|
|
307
|
+
return l(i, p);
|
|
308
308
|
default:
|
|
309
309
|
return r(i);
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
|
-
function o(i,
|
|
313
|
-
if (typeof
|
|
314
|
-
if (
|
|
312
|
+
function o(i, p) {
|
|
313
|
+
if (typeof p == "function") return p(i);
|
|
314
|
+
if (p || n(i)) {
|
|
315
315
|
const g = new i.constructor();
|
|
316
|
-
for (let h in i) g[h] = u(i[h],
|
|
316
|
+
for (let h in i) g[h] = u(i[h], p);
|
|
317
317
|
return g;
|
|
318
318
|
}
|
|
319
319
|
return i;
|
|
320
320
|
}
|
|
321
|
-
function l(i,
|
|
321
|
+
function l(i, p) {
|
|
322
322
|
const g = new i.constructor(i.length);
|
|
323
|
-
for (let h = 0; h < i.length; h++) g[h] = u(i[h],
|
|
323
|
+
for (let h = 0; h < i.length; h++) g[h] = u(i[h], p);
|
|
324
324
|
return g;
|
|
325
325
|
}
|
|
326
326
|
e.exports = u;
|
|
@@ -399,7 +399,7 @@ function C({ options: t }) {
|
|
|
399
399
|
"Rebilly",
|
|
400
400
|
t.appName,
|
|
401
401
|
"js-sdk"
|
|
402
|
-
].filter((a) => a).join("/")}@
|
|
402
|
+
].filter((a) => a).join("/")}@71b5e98` };
|
|
403
403
|
return t.apiKey && (c["REB-APIKEY"] = t.apiKey), c;
|
|
404
404
|
}
|
|
405
405
|
function l() {
|
|
@@ -408,7 +408,7 @@ function C({ options: t }) {
|
|
|
408
408
|
function i(c) {
|
|
409
409
|
t.requestTimeout = Number(c), e.defaults.timeout = t.requestTimeout;
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function p(c = t.jwt) {
|
|
412
412
|
const a = l();
|
|
413
413
|
t.apiKey = null, t.jwt = c, delete a.common["REB-APIKEY"], a.common.Authorization = `Bearer ${c}`, e.defaults.headers = a;
|
|
414
414
|
}
|
|
@@ -416,19 +416,19 @@ function C({ options: t }) {
|
|
|
416
416
|
const a = l();
|
|
417
417
|
t.publishableKey = c, a.common.Authorization = `${c}`, e.defaults.headers = a;
|
|
418
418
|
}
|
|
419
|
-
function h({ host: c, port: a, auth:
|
|
419
|
+
function h({ host: c, port: a, auth: f }) {
|
|
420
420
|
e.defaults.proxy = {
|
|
421
421
|
host: c,
|
|
422
422
|
port: a,
|
|
423
|
-
auth:
|
|
423
|
+
auth: f
|
|
424
424
|
};
|
|
425
425
|
}
|
|
426
426
|
function m({ live: c = null, sandbox: a = null }) {
|
|
427
427
|
c && (t.apiEndpoints.live = c), a && (t.apiEndpoints.sandbox = a), e.defaults.baseURL = u();
|
|
428
428
|
}
|
|
429
|
-
function y(c, { thenDelegate: a, catchDelegate:
|
|
429
|
+
function y(c, { thenDelegate: a, catchDelegate: f = () => {
|
|
430
430
|
} }) {
|
|
431
|
-
return U(c) && e.interceptors[k[c]].use(a,
|
|
431
|
+
return U(c) && e.interceptors[k[c]].use(a, f);
|
|
432
432
|
}
|
|
433
433
|
function A(c, a) {
|
|
434
434
|
return U(c) && e.interceptors[k[c]].eject(a);
|
|
@@ -453,8 +453,8 @@ function C({ options: t }) {
|
|
|
453
453
|
function Z(c) {
|
|
454
454
|
A(k.response, c);
|
|
455
455
|
}
|
|
456
|
-
function d({ request: c, isCollection: a, config:
|
|
457
|
-
const $ = M(
|
|
456
|
+
function d({ request: c, isCollection: a, config: f }) {
|
|
457
|
+
const $ = M(f), { id: w, cancelToken: oe } = T.save();
|
|
458
458
|
$.cancelToken = oe;
|
|
459
459
|
const K = async function() {
|
|
460
460
|
try {
|
|
@@ -474,8 +474,8 @@ function C({ options: t }) {
|
|
|
474
474
|
}();
|
|
475
475
|
return K.cancel = (E) => G.cancelById(w, E), K;
|
|
476
476
|
}
|
|
477
|
-
function H({ response: c, isCollection: a, config:
|
|
478
|
-
return a ? new
|
|
477
|
+
function H({ response: c, isCollection: a, config: f }) {
|
|
478
|
+
return a ? new fe(c, f) : new J(c, f);
|
|
479
479
|
}
|
|
480
480
|
function D({ error: c }) {
|
|
481
481
|
if (P.isCancel(c)) throw new R.RebillyCanceledError(c);
|
|
@@ -496,9 +496,9 @@ function C({ options: t }) {
|
|
|
496
496
|
throw c.code === "ECONNABORTED" ? new R.RebillyTimeoutError(c) : new R.RebillyRequestError(c);
|
|
497
497
|
}
|
|
498
498
|
function ee(c) {
|
|
499
|
-
return c.params !== void 0 && (c.params = Object.keys(c.params).filter((a) => c.params[a] !== null && (Ce.has(a) || c.params[a] !== "") && !(a === "sort" && c.params[a]?.length === 0)).reduce((a,
|
|
500
|
-
const $ = c.params[
|
|
501
|
-
return a[
|
|
499
|
+
return c.params !== void 0 && (c.params = Object.keys(c.params).filter((a) => c.params[a] !== null && (Ce.has(a) || c.params[a] !== "") && !(a === "sort" && c.params[a]?.length === 0)).reduce((a, f) => {
|
|
500
|
+
const $ = c.params[f];
|
|
501
|
+
return a[f] = f === "sort" && Array.isArray($) ? $.join(",") : $, a;
|
|
502
502
|
}, {})), c;
|
|
503
503
|
}
|
|
504
504
|
function M(c = {}) {
|
|
@@ -506,63 +506,63 @@ function C({ options: t }) {
|
|
|
506
506
|
}
|
|
507
507
|
function F(c, a = {}) {
|
|
508
508
|
return d({
|
|
509
|
-
request: (
|
|
509
|
+
request: (f) => e.get(c, f),
|
|
510
510
|
config: { params: a }
|
|
511
511
|
});
|
|
512
512
|
}
|
|
513
513
|
function te(c, a) {
|
|
514
514
|
return d({
|
|
515
|
-
request: (
|
|
515
|
+
request: (f) => e.get(c, f),
|
|
516
516
|
config: { params: a },
|
|
517
517
|
isCollection: !0
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
|
-
function B(c, a,
|
|
520
|
+
function B(c, a, f = {}) {
|
|
521
521
|
let $ = {};
|
|
522
|
-
return
|
|
522
|
+
return f.authenticate === !1 && ($ = { headers: l() }, delete $.headers.common["REB-APIKEY"], delete $.headers.common.Authorization), f.params && ($.params = { ...f.params }), d({
|
|
523
523
|
request: (w) => e.post(c, a, w),
|
|
524
524
|
config: $
|
|
525
525
|
});
|
|
526
526
|
}
|
|
527
|
-
function N(c, a,
|
|
527
|
+
function N(c, a, f = {}) {
|
|
528
528
|
return d({
|
|
529
529
|
request: ($) => e.put(c, a, $),
|
|
530
|
-
config: { params:
|
|
530
|
+
config: { params: f }
|
|
531
531
|
});
|
|
532
532
|
}
|
|
533
533
|
function re(c, a) {
|
|
534
534
|
return d({
|
|
535
|
-
request: (
|
|
535
|
+
request: (f) => e.patch(c, a, f),
|
|
536
536
|
config: {}
|
|
537
537
|
});
|
|
538
538
|
}
|
|
539
539
|
function _(c, a = null) {
|
|
540
540
|
return d({
|
|
541
|
-
request: (
|
|
541
|
+
request: (f) => e.delete(c, f),
|
|
542
542
|
config: a != null ? { data: a } : {}
|
|
543
543
|
});
|
|
544
544
|
}
|
|
545
545
|
function se(c, a) {
|
|
546
546
|
return _(c, a);
|
|
547
547
|
}
|
|
548
|
-
async function ne(c, a,
|
|
549
|
-
if (a === "") return B(c,
|
|
548
|
+
async function ne(c, a, f, $ = {}) {
|
|
549
|
+
if (a === "") return B(c, f, { params: $ });
|
|
550
550
|
try {
|
|
551
551
|
if ((await F(c)).response.status === 200) throw new R.RebillyConflictError({ message: "A resource already exists with this ID. Please use a different ID." });
|
|
552
552
|
} catch (w) {
|
|
553
|
-
if (w.name === "RebillyNotFoundError") return N(c,
|
|
553
|
+
if (w.name === "RebillyNotFoundError") return N(c, f, $);
|
|
554
554
|
throw w;
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
557
|
async function ue(c, a) {
|
|
558
|
-
const
|
|
558
|
+
const f = M(a);
|
|
559
559
|
try {
|
|
560
|
-
const $ = await e.get(c,
|
|
561
|
-
return new
|
|
560
|
+
const $ = await e.get(c, f);
|
|
561
|
+
return new pe($, f);
|
|
562
562
|
} catch ($) {
|
|
563
563
|
return D({
|
|
564
564
|
error: $,
|
|
565
|
-
config:
|
|
565
|
+
config: f
|
|
566
566
|
});
|
|
567
567
|
}
|
|
568
568
|
}
|
|
@@ -574,7 +574,7 @@ function C({ options: t }) {
|
|
|
574
574
|
removeResponseInterceptor: Z,
|
|
575
575
|
setTimeout: i,
|
|
576
576
|
setProxyAgent: h,
|
|
577
|
-
setSessionToken:
|
|
577
|
+
setSessionToken: p,
|
|
578
578
|
setPublishableKey: g,
|
|
579
579
|
setEndpoints: m,
|
|
580
580
|
get: F,
|
|
@@ -1434,28 +1434,25 @@ function ct({ apiHandler: t }) {
|
|
|
1434
1434
|
}
|
|
1435
1435
|
function it({ apiHandler: t }) {
|
|
1436
1436
|
return {
|
|
1437
|
-
getAllAttachments({ limit: e = null, offset: r = null, filter: s = null, q: n = null,
|
|
1438
|
-
const
|
|
1437
|
+
getAllAttachments({ limit: e = null, offset: r = null, filter: s = null, q: n = null, fields: u = null, sort: o = null } = {}) {
|
|
1438
|
+
const l = {
|
|
1439
1439
|
limit: e,
|
|
1440
1440
|
offset: r,
|
|
1441
1441
|
filter: s,
|
|
1442
1442
|
q: n,
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
sort: l
|
|
1443
|
+
fields: u,
|
|
1444
|
+
sort: o
|
|
1446
1445
|
};
|
|
1447
|
-
return t.getAll("attachments",
|
|
1446
|
+
return t.getAll("attachments", l);
|
|
1448
1447
|
},
|
|
1449
|
-
attach({ id: e = "", data: r
|
|
1450
|
-
|
|
1451
|
-
return t.create(`attachments/${e}`, e, r, n);
|
|
1448
|
+
attach({ id: e = "", data: r }) {
|
|
1449
|
+
return t.create(`attachments/${e}`, e, r);
|
|
1452
1450
|
},
|
|
1453
1451
|
getAttachment({ id: e }) {
|
|
1454
1452
|
return t.get(`attachments/${e}`);
|
|
1455
1453
|
},
|
|
1456
|
-
updateAttachment({ id: e, data: r
|
|
1457
|
-
|
|
1458
|
-
return t.put(`attachments/${e}`, r, n);
|
|
1454
|
+
updateAttachment({ id: e, data: r }) {
|
|
1455
|
+
return t.put(`attachments/${e}`, r);
|
|
1459
1456
|
},
|
|
1460
1457
|
detach({ id: e }) {
|
|
1461
1458
|
return t.delete(`attachments/${e}`);
|
|
@@ -1492,7 +1489,7 @@ function it({ apiHandler: t }) {
|
|
|
1492
1489
|
const u = (async () => {
|
|
1493
1490
|
const o = this.getAllAttachments(r);
|
|
1494
1491
|
s.push(o);
|
|
1495
|
-
const l = (await o).items.map((
|
|
1492
|
+
const l = (await o).items.map((p) => this.detach({ id: p.fields.id }));
|
|
1496
1493
|
s = [...s, l], await Promise.all(l);
|
|
1497
1494
|
const i = t.delete(`files/${e}`);
|
|
1498
1495
|
return s.push(i), i;
|
|
@@ -1739,7 +1736,7 @@ function mt({ apiHandler: t }) {
|
|
|
1739
1736
|
}
|
|
1740
1737
|
};
|
|
1741
1738
|
}
|
|
1742
|
-
function
|
|
1739
|
+
function ft({ apiHandler: t }) {
|
|
1743
1740
|
return {
|
|
1744
1741
|
getAllAccounts({ limit: e = null, offset: r = null, filter: s = null, sort: n = null } = {}) {
|
|
1745
1742
|
const u = {
|
|
@@ -1761,7 +1758,7 @@ function pt({ apiHandler: t }) {
|
|
|
1761
1758
|
}
|
|
1762
1759
|
};
|
|
1763
1760
|
}
|
|
1764
|
-
function
|
|
1761
|
+
function pt({ apiHandler: t }) {
|
|
1765
1762
|
return {
|
|
1766
1763
|
getAllEntries({ limit: e = null, offset: r = null, filter: s = null, sort: n = null } = {}) {
|
|
1767
1764
|
const u = {
|
|
@@ -2597,7 +2594,7 @@ function Ht({ apiHandler: t }) {
|
|
|
2597
2594
|
return t.patch(`service-credentials/${e}/${r}`, s);
|
|
2598
2595
|
},
|
|
2599
2596
|
getItems({ type: e, id: r, limit: s = null, offset: n = null, filter: u = null, q: o = null, fields: l = null, sort: i = null }) {
|
|
2600
|
-
const
|
|
2597
|
+
const p = {
|
|
2601
2598
|
limit: s,
|
|
2602
2599
|
offset: n,
|
|
2603
2600
|
filter: u,
|
|
@@ -2605,7 +2602,7 @@ function Ht({ apiHandler: t }) {
|
|
|
2605
2602
|
fields: l,
|
|
2606
2603
|
sort: i
|
|
2607
2604
|
};
|
|
2608
|
-
return t.getAll(`service-credentials/${e}/${r}/items`,
|
|
2605
|
+
return t.getAll(`service-credentials/${e}/${r}/items`, p);
|
|
2609
2606
|
}
|
|
2610
2607
|
};
|
|
2611
2608
|
}
|
|
@@ -2932,7 +2929,7 @@ function cr({ apiHandler: t }) {
|
|
|
2932
2929
|
function ir({ apiHandler: t }) {
|
|
2933
2930
|
return {
|
|
2934
2931
|
getAll({ limit: e = null, offset: r = null, filter: s = null, q: n = null, sort: u = null, expand: o = null, fields: l = null, links: i = null } = {}) {
|
|
2935
|
-
const
|
|
2932
|
+
const p = {
|
|
2936
2933
|
limit: e,
|
|
2937
2934
|
offset: r,
|
|
2938
2935
|
filter: s,
|
|
@@ -2942,7 +2939,7 @@ function ir({ apiHandler: t }) {
|
|
|
2942
2939
|
fields: l,
|
|
2943
2940
|
links: i
|
|
2944
2941
|
};
|
|
2945
|
-
return t.getAll("transactions",
|
|
2942
|
+
return t.getAll("transactions", p);
|
|
2946
2943
|
},
|
|
2947
2944
|
create({ data: e, expand: r = null }) {
|
|
2948
2945
|
const s = { expand: r };
|
|
@@ -3053,7 +3050,7 @@ function mr({ apiHandler: t }) {
|
|
|
3053
3050
|
return t.getAll("webhook-events", u);
|
|
3054
3051
|
} };
|
|
3055
3052
|
}
|
|
3056
|
-
function
|
|
3053
|
+
function fr({ apiHandler: t }) {
|
|
3057
3054
|
return {
|
|
3058
3055
|
getAll({ limit: e = null, offset: r = null, filter: s = null } = {}) {
|
|
3059
3056
|
const n = {
|
|
@@ -3077,7 +3074,7 @@ function pr({ apiHandler: t }) {
|
|
|
3077
3074
|
}
|
|
3078
3075
|
};
|
|
3079
3076
|
}
|
|
3080
|
-
function
|
|
3077
|
+
function pr({ apiHandler: t }) {
|
|
3081
3078
|
return {
|
|
3082
3079
|
getAll({ limit: e = null, offset: r = null, q: s = null, filter: n = null, sort: u = null } = {}) {
|
|
3083
3080
|
const o = {
|
|
@@ -3105,7 +3102,7 @@ function fr({ apiHandler: t }) {
|
|
|
3105
3102
|
}
|
|
3106
3103
|
var hr = class {
|
|
3107
3104
|
constructor({ apiHandler: t }) {
|
|
3108
|
-
this.account = Oe({ apiHandler: t }), this.allowlists = je({ apiHandler: t }), this.amlChecks = De({ apiHandler: t }), this.amlSettings = Me({ apiHandler: t }), this.apiKeys = Fe({ apiHandler: t }), this.applicationInstances = Be({ apiHandler: t }), this.applications = Ne({ apiHandler: t }), this.balanceTransactions = _e({ apiHandler: t }), this.billingPortals = Ke({ apiHandler: t }), this.blocklists = Le({ apiHandler: t }), this.broadcastMessages = Ue({ apiHandler: t }), this.cashiers = ze({ apiHandler: t }), this.checkoutForms = Ve({ apiHandler: t }), this.coupons = Je({ apiHandler: t }), this.creditMemos = We({ apiHandler: t }), this.customDomains = Ge({ apiHandler: t }), this.customFields = Ye({ apiHandler: t }), this.customerAuthentication = Qe({ apiHandler: t }), this.customers = Xe({ apiHandler: t }), this.depositRequests = Ze({ apiHandler: t }), this.depositStrategies = He({ apiHandler: t }), this.digitalWallets = et({ apiHandler: t }), this.disputes = tt({ apiHandler: t }), this.emailDeliverySettings = rt({ apiHandler: t }), this.emailMessages = st({ apiHandler: t }), this.emailNotifications = nt({ apiHandler: t }), this.events = ut({ apiHandler: t }), this.externalIdentifiers = ot({ apiHandler: t }), this.externalServicesSettings = lt({ apiHandler: t }), this.fees = ct({ apiHandler: t }), this.files = it({ apiHandler: t }), this.gatewayAccounts = at({ apiHandler: t }), this.integrations = gt({ apiHandler: t }), this.invoices = mt({ apiHandler: t }), this.journalAccounts =
|
|
3105
|
+
this.account = Oe({ apiHandler: t }), this.allowlists = je({ apiHandler: t }), this.amlChecks = De({ apiHandler: t }), this.amlSettings = Me({ apiHandler: t }), this.apiKeys = Fe({ apiHandler: t }), this.applicationInstances = Be({ apiHandler: t }), this.applications = Ne({ apiHandler: t }), this.balanceTransactions = _e({ apiHandler: t }), this.billingPortals = Ke({ apiHandler: t }), this.blocklists = Le({ apiHandler: t }), this.broadcastMessages = Ue({ apiHandler: t }), this.cashiers = ze({ apiHandler: t }), this.checkoutForms = Ve({ apiHandler: t }), this.coupons = Je({ apiHandler: t }), this.creditMemos = We({ apiHandler: t }), this.customDomains = Ge({ apiHandler: t }), this.customFields = Ye({ apiHandler: t }), this.customerAuthentication = Qe({ apiHandler: t }), this.customers = Xe({ apiHandler: t }), this.depositRequests = Ze({ apiHandler: t }), this.depositStrategies = He({ apiHandler: t }), this.digitalWallets = et({ apiHandler: t }), this.disputes = tt({ apiHandler: t }), this.emailDeliverySettings = rt({ apiHandler: t }), this.emailMessages = st({ apiHandler: t }), this.emailNotifications = nt({ apiHandler: t }), this.events = ut({ apiHandler: t }), this.externalIdentifiers = ot({ apiHandler: t }), this.externalServicesSettings = lt({ apiHandler: t }), this.fees = ct({ apiHandler: t }), this.files = it({ apiHandler: t }), this.gatewayAccounts = at({ apiHandler: t }), this.integrations = gt({ apiHandler: t }), this.invoices = mt({ apiHandler: t }), this.journalAccounts = ft({ apiHandler: t }), this.journalEntries = pt({ apiHandler: t }), this.journalRecords = ht({ apiHandler: t }), this.kycDocuments = $t({ apiHandler: t }), this.kycRequests = yt({ apiHandler: t }), this.kycSettings = At({ apiHandler: t }), this.lists = Rt({ apiHandler: t }), this.orderCancellations = bt({ apiHandler: t }), this.orderChanges = wt({ apiHandler: t }), this.orderPauses = vt({ apiHandler: t }), this.orderReactivations = kt({ apiHandler: t }), this.orders = qt({ apiHandler: t }), this.organizationExports = dt({ apiHandler: t }), this.organizations = Tt({ apiHandler: t }), this.paymentCardsBankNames = It({ apiHandler: t }), this.paymentInstruments = St({ apiHandler: t }), this.paymentMethods = xt({ apiHandler: t }), this.paymentTokens = Et({ apiHandler: t }), this.payoutRequestAllocationOperations = Pt({ apiHandler: t }), this.payoutRequestAllocations = Ct({ apiHandler: t }), this.payoutRequestAutoAllocations = Ot({ apiHandler: t }), this.payoutRequestBatchOperations = jt({ apiHandler: t }), this.payoutRequestBatchPreviews = Dt({ apiHandler: t }), this.payoutRequestBatches = Mt({ apiHandler: t }), this.payoutRequestSplits = Ft({ apiHandler: t }), this.payoutRequests = Bt({ apiHandler: t }), this.payouts = Nt({ apiHandler: t }), this.plans = _t({ apiHandler: t }), this.previews = Kt({ apiHandler: t }), this.products = Lt({ apiHandler: t }), this.profile = Ut({ apiHandler: t }), this.purchase = zt({ apiHandler: t }), this.quotes = Vt({ apiHandler: t }), this.releaseFlags = Jt({ apiHandler: t }), this.resource = Wt({ apiHandler: t }), this.riskScoreRules = Gt({ apiHandler: t }), this.roles = Yt({ apiHandler: t }), this.search = Qt({ apiHandler: t }), this.segments = Xt({ apiHandler: t }), this.sendThroughAttribution = Zt({ apiHandler: t }), this.serviceCredentials = Ht({ apiHandler: t }), this.shippingRates = er({ apiHandler: t }), this.status = tr({ apiHandler: t }), this.subscriptionCancellations = rr({ apiHandler: t }), this.subscriptionPauses = sr({ apiHandler: t }), this.subscriptionReactivations = nr({ apiHandler: t }), this.subscriptions = ur({ apiHandler: t }), this.tags = or({ apiHandler: t }), this.tagsRules = lr({ apiHandler: t }), this.tracking = cr({ apiHandler: t }), this.transactions = ir({ apiHandler: t }), this.usages = ar({ apiHandler: t }), this.users = gr({ apiHandler: t }), this.webhookEvents = mr({ apiHandler: t }), this.webhooks = fr({ apiHandler: t }), this.websites = pr({ apiHandler: t }), this.addRequestInterceptor = t.addRequestInterceptor, this.removeRequestInterceptor = t.removeRequestInterceptor, this.addResponseInterceptor = t.addResponseInterceptor, this.removeResponseInterceptor = t.removeResponseInterceptor, this.setTimeout = t.setTimeout, this.setProxyAgent = t.setProxyAgent, this.setSessionToken = t.setSessionToken, this.setPublishableKey = t.setPublishableKey, this.setEndpoints = t.setEndpoints, this.getCancellationToken = t.getCancellationToken, this.generateSignature = t.generateSignature;
|
|
3109
3106
|
}
|
|
3110
3107
|
};
|
|
3111
3108
|
function $r({ apiHandler: t }) {
|
|
@@ -3298,7 +3295,7 @@ function Rr({ apiHandler: t }) {
|
|
|
3298
3295
|
return t.get("reports/future-renewals", u);
|
|
3299
3296
|
},
|
|
3300
3297
|
getJournal({ currency: e = null, bookedFrom: r = null, bookedTo: s = null, recognizedAt: n = null, aggregationField: u = null, limit: o = null, offset: l = null, filter: i = null }) {
|
|
3301
|
-
const
|
|
3298
|
+
const p = {
|
|
3302
3299
|
currency: e,
|
|
3303
3300
|
bookedFrom: r,
|
|
3304
3301
|
bookedTo: s,
|
|
@@ -3308,7 +3305,7 @@ function Rr({ apiHandler: t }) {
|
|
|
3308
3305
|
offset: l,
|
|
3309
3306
|
filter: i
|
|
3310
3307
|
};
|
|
3311
|
-
return t.get("reports/journal",
|
|
3308
|
+
return t.get("reports/journal", p);
|
|
3312
3309
|
},
|
|
3313
3310
|
getJournalSummary({ periodStart: e = null, periodEnd: r = null, currency: s = null, aggregationField: n = null, amountField: u = null, journalAccountIds: o = null }) {
|
|
3314
3311
|
const l = {
|
|
@@ -3371,7 +3368,7 @@ function Rr({ apiHandler: t }) {
|
|
|
3371
3368
|
};
|
|
3372
3369
|
return t.get("reports/renewal-sales", u);
|
|
3373
3370
|
},
|
|
3374
|
-
getRetentionPercentage({ aggregationField: e = null, aggregationPeriod: r = null, includeSwitchedSubscriptions: s = null, periodStart: n = null, periodEnd: u = null, limit: o = null, offset: l = null, filter: i = null, criteria:
|
|
3371
|
+
getRetentionPercentage({ aggregationField: e = null, aggregationPeriod: r = null, includeSwitchedSubscriptions: s = null, periodStart: n = null, periodEnd: u = null, limit: o = null, offset: l = null, filter: i = null, criteria: p = null }) {
|
|
3375
3372
|
const g = {
|
|
3376
3373
|
aggregationField: e,
|
|
3377
3374
|
aggregationPeriod: r,
|
|
@@ -3381,11 +3378,11 @@ function Rr({ apiHandler: t }) {
|
|
|
3381
3378
|
limit: o,
|
|
3382
3379
|
offset: l,
|
|
3383
3380
|
filter: i,
|
|
3384
|
-
criteria:
|
|
3381
|
+
criteria: p
|
|
3385
3382
|
};
|
|
3386
3383
|
return t.get("reports/retention-percentage", g);
|
|
3387
3384
|
},
|
|
3388
|
-
getRetentionValue({ aggregationField: e = null, aggregationPeriod: r = null, includeRefunds: s = null, includeDisputes: n = null, periodStart: u = null, periodEnd: o = null, limit: l = null, offset: i = null, filter:
|
|
3385
|
+
getRetentionValue({ aggregationField: e = null, aggregationPeriod: r = null, includeRefunds: s = null, includeDisputes: n = null, periodStart: u = null, periodEnd: o = null, limit: l = null, offset: i = null, filter: p = null, sort: g = null, criteria: h = null }) {
|
|
3389
3386
|
const m = {
|
|
3390
3387
|
aggregationField: e,
|
|
3391
3388
|
aggregationPeriod: r,
|
|
@@ -3395,7 +3392,7 @@ function Rr({ apiHandler: t }) {
|
|
|
3395
3392
|
periodEnd: o,
|
|
3396
3393
|
limit: l,
|
|
3397
3394
|
offset: i,
|
|
3398
|
-
filter:
|
|
3395
|
+
filter: p,
|
|
3399
3396
|
sort: g,
|
|
3400
3397
|
criteria: h
|
|
3401
3398
|
};
|