rebilly-js-sdk 62.248.0 → 62.248.2
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 +4 -2
- package/dist/rebilly-js-sdk.d.cts +240 -0
- package/dist/rebilly-js-sdk.d.mts +240 -0
- package/dist/rebilly-js-sdk.d.ts +240 -0
- package/dist/rebilly-js-sdk.es.mjs +127 -116
- package/dist/rebilly-js-sdk.umd.js +1 -1
- package/package.json +2 -2
- package/src/resources/api-instance.js +2 -0
- package/src/resources/organization-api-keys-resource.js +17 -0
|
@@ -173,7 +173,7 @@ var J = class {
|
|
|
173
173
|
for (const e of v.getAll())
|
|
174
174
|
await e.cancel(t), v.deleteById(e.id);
|
|
175
175
|
};
|
|
176
|
-
},
|
|
176
|
+
}, Ys = { cancelAll: async (...t) => await W.cancelAll(...t) }, be = /* @__PURE__ */ new Set(["links"]);
|
|
177
177
|
function ve(t) {
|
|
178
178
|
if (Object.prototype.toString.call(t) !== "[object Object]") return !1;
|
|
179
179
|
const e = Object.getPrototypeOf(t);
|
|
@@ -217,7 +217,7 @@ function C({ options: t }) {
|
|
|
217
217
|
"Rebilly",
|
|
218
218
|
t.appName,
|
|
219
219
|
"js-sdk"
|
|
220
|
-
].filter((i) => i).join("/")}@
|
|
220
|
+
].filter((i) => i).join("/")}@21044d5` };
|
|
221
221
|
return t.apiKey && (c["REB-APIKEY"] = t.apiKey), c;
|
|
222
222
|
}
|
|
223
223
|
function o() {
|
|
@@ -324,7 +324,7 @@ function C({ options: t }) {
|
|
|
324
324
|
function F(c = {}) {
|
|
325
325
|
return { ...Z(c) };
|
|
326
326
|
}
|
|
327
|
-
function
|
|
327
|
+
function K(c, i = {}) {
|
|
328
328
|
return b({
|
|
329
329
|
request: (a) => e.get(c, a),
|
|
330
330
|
config: { params: i }
|
|
@@ -337,14 +337,14 @@ function C({ options: t }) {
|
|
|
337
337
|
isCollection: !0
|
|
338
338
|
});
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function N(c, i, a = {}) {
|
|
341
341
|
let m = {};
|
|
342
342
|
return a.authenticate === !1 && (m = { headers: o() }, delete m.headers.common["REB-APIKEY"], delete m.headers.common.Authorization), a.params && (m.params = { ...a.params }), b({
|
|
343
343
|
request: (f) => e.post(c, i, f),
|
|
344
344
|
config: m
|
|
345
345
|
});
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function B(c, i, a = {}) {
|
|
348
348
|
return b({
|
|
349
349
|
request: (m) => e.put(c, i, m),
|
|
350
350
|
config: { params: a }
|
|
@@ -366,11 +366,11 @@ function C({ options: t }) {
|
|
|
366
366
|
return L(c, i);
|
|
367
367
|
}
|
|
368
368
|
async function se(c, i, a, m = {}) {
|
|
369
|
-
if (i === "") return
|
|
369
|
+
if (i === "") return N(c, a, { params: m });
|
|
370
370
|
try {
|
|
371
|
-
if ((await
|
|
371
|
+
if ((await K(c)).response.status === 200) throw new h.RebillyConflictError({ message: "A resource already exists with this ID. Please use a different ID." });
|
|
372
372
|
} catch (f) {
|
|
373
|
-
if (f.name === "RebillyNotFoundError") return
|
|
373
|
+
if (f.name === "RebillyNotFoundError") return B(c, a, m);
|
|
374
374
|
throw f;
|
|
375
375
|
}
|
|
376
376
|
}
|
|
@@ -397,10 +397,10 @@ function C({ options: t }) {
|
|
|
397
397
|
setSessionToken: $,
|
|
398
398
|
setPublishableKey: w,
|
|
399
399
|
setEndpoints: T,
|
|
400
|
-
get:
|
|
400
|
+
get: K,
|
|
401
401
|
getAll: H,
|
|
402
|
-
post:
|
|
403
|
-
put:
|
|
402
|
+
post: N,
|
|
403
|
+
put: B,
|
|
404
404
|
patch: ee,
|
|
405
405
|
delete: L,
|
|
406
406
|
deleteAll: te,
|
|
@@ -801,7 +801,7 @@ function Fe({ apiHandler: t }) {
|
|
|
801
801
|
}
|
|
802
802
|
};
|
|
803
803
|
}
|
|
804
|
-
function
|
|
804
|
+
function Ke({ apiHandler: t }) {
|
|
805
805
|
return {
|
|
806
806
|
getAll({ resource: e, limit: s = null, offset: n = null }) {
|
|
807
807
|
const r = {
|
|
@@ -821,7 +821,7 @@ function Ne({ apiHandler: t }) {
|
|
|
821
821
|
}
|
|
822
822
|
};
|
|
823
823
|
}
|
|
824
|
-
function
|
|
824
|
+
function Ne({ apiHandler: t }) {
|
|
825
825
|
return {
|
|
826
826
|
getAuthOptions() {
|
|
827
827
|
return t.get("authentication-options");
|
|
@@ -885,7 +885,7 @@ function Be({ apiHandler: t }) {
|
|
|
885
885
|
}
|
|
886
886
|
};
|
|
887
887
|
}
|
|
888
|
-
function
|
|
888
|
+
function Be({ apiHandler: t }) {
|
|
889
889
|
return {
|
|
890
890
|
getAll({ limit: e = null, offset: s = null, filter: n = null, q: r = null, expand: u = null, fields: l = null, sort: o = null, links: g = null } = {}) {
|
|
891
891
|
const $ = {
|
|
@@ -1885,6 +1885,17 @@ function $t({ apiHandler: t }) {
|
|
|
1885
1885
|
};
|
|
1886
1886
|
}
|
|
1887
1887
|
function ht({ apiHandler: t }) {
|
|
1888
|
+
return { getAll({ filter: e = null, sort: s = null, limit: n = null, offset: r = null } = {}) {
|
|
1889
|
+
const u = {
|
|
1890
|
+
filter: e,
|
|
1891
|
+
sort: s,
|
|
1892
|
+
limit: n,
|
|
1893
|
+
offset: r
|
|
1894
|
+
};
|
|
1895
|
+
return t.getAll("organization-api-keys", u);
|
|
1896
|
+
} };
|
|
1897
|
+
}
|
|
1898
|
+
function pt({ apiHandler: t }) {
|
|
1888
1899
|
return {
|
|
1889
1900
|
getAll({ limit: e = null, offset: s = null, filter: n = null, q: r = null, sort: u = null } = {}) {
|
|
1890
1901
|
const l = {
|
|
@@ -1904,7 +1915,7 @@ function ht({ apiHandler: t }) {
|
|
|
1904
1915
|
}
|
|
1905
1916
|
};
|
|
1906
1917
|
}
|
|
1907
|
-
function
|
|
1918
|
+
function ft({ apiHandler: t }) {
|
|
1908
1919
|
return {
|
|
1909
1920
|
getAll({ limit: e = null, offset: s = null, filter: n = null, sort: r = null, q: u = null } = {}) {
|
|
1910
1921
|
const l = {
|
|
@@ -1927,7 +1938,7 @@ function pt({ apiHandler: t }) {
|
|
|
1927
1938
|
}
|
|
1928
1939
|
};
|
|
1929
1940
|
}
|
|
1930
|
-
function
|
|
1941
|
+
function yt({ apiHandler: t }) {
|
|
1931
1942
|
return { getAll({ limit: e = null, q: s = null } = {}) {
|
|
1932
1943
|
const n = {
|
|
1933
1944
|
limit: e,
|
|
@@ -1936,7 +1947,7 @@ function ft({ apiHandler: t }) {
|
|
|
1936
1947
|
return t.getAll("payment-cards-bank-names", n);
|
|
1937
1948
|
} };
|
|
1938
1949
|
}
|
|
1939
|
-
function
|
|
1950
|
+
function Rt({ apiHandler: t }) {
|
|
1940
1951
|
return {
|
|
1941
1952
|
getAll({ filter: e = null, sort: s = null, limit: n = null, offset: r = null, q: u = null, expand: l = null } = {}) {
|
|
1942
1953
|
const o = {
|
|
@@ -1966,7 +1977,7 @@ function yt({ apiHandler: t }) {
|
|
|
1966
1977
|
}
|
|
1967
1978
|
};
|
|
1968
1979
|
}
|
|
1969
|
-
function
|
|
1980
|
+
function At({ apiHandler: t }) {
|
|
1970
1981
|
return {
|
|
1971
1982
|
getAll({ limit: e = null, offset: s = null } = {}) {
|
|
1972
1983
|
const n = {
|
|
@@ -1980,7 +1991,7 @@ function Rt({ apiHandler: t }) {
|
|
|
1980
1991
|
}
|
|
1981
1992
|
};
|
|
1982
1993
|
}
|
|
1983
|
-
function
|
|
1994
|
+
function bt({ apiHandler: t }) {
|
|
1984
1995
|
return {
|
|
1985
1996
|
getAll({ limit: e = null, offset: s = null } = {}) {
|
|
1986
1997
|
const n = {
|
|
@@ -1997,12 +2008,12 @@ function At({ apiHandler: t }) {
|
|
|
1997
2008
|
}
|
|
1998
2009
|
};
|
|
1999
2010
|
}
|
|
2000
|
-
function
|
|
2011
|
+
function vt({ apiHandler: t }) {
|
|
2001
2012
|
return { create({ data: e }) {
|
|
2002
2013
|
return t.post("payout-request-allocation-operations", e);
|
|
2003
2014
|
} };
|
|
2004
2015
|
}
|
|
2005
|
-
function
|
|
2016
|
+
function wt({ apiHandler: t }) {
|
|
2006
2017
|
return {
|
|
2007
2018
|
getAll({ limit: e = null, offset: s = null, filter: n = null, sort: r = null } = {}) {
|
|
2008
2019
|
const u = {
|
|
@@ -2024,22 +2035,22 @@ function vt({ apiHandler: t }) {
|
|
|
2024
2035
|
}
|
|
2025
2036
|
};
|
|
2026
2037
|
}
|
|
2027
|
-
function
|
|
2038
|
+
function kt({ apiHandler: t }) {
|
|
2028
2039
|
return { create({ data: e }) {
|
|
2029
2040
|
return t.post("payout-request-auto-allocations", e);
|
|
2030
2041
|
} };
|
|
2031
2042
|
}
|
|
2032
|
-
function
|
|
2043
|
+
function qt({ apiHandler: t }) {
|
|
2033
2044
|
return { create({ data: e }) {
|
|
2034
2045
|
return t.post("payout-request-batch-operations", e);
|
|
2035
2046
|
} };
|
|
2036
2047
|
}
|
|
2037
|
-
function
|
|
2048
|
+
function dt({ apiHandler: t }) {
|
|
2038
2049
|
return { create({ data: e }) {
|
|
2039
2050
|
return t.post("payout-request-batch-previews", e);
|
|
2040
2051
|
} };
|
|
2041
2052
|
}
|
|
2042
|
-
function
|
|
2053
|
+
function Tt({ apiHandler: t }) {
|
|
2043
2054
|
return {
|
|
2044
2055
|
getAll({ limit: e = null, offset: s = null, q: n = null, filter: r = null, sort: u = null } = {}) {
|
|
2045
2056
|
const l = {
|
|
@@ -2065,12 +2076,12 @@ function dt({ apiHandler: t }) {
|
|
|
2065
2076
|
}
|
|
2066
2077
|
};
|
|
2067
2078
|
}
|
|
2068
|
-
function
|
|
2079
|
+
function Et({ apiHandler: t }) {
|
|
2069
2080
|
return { create({ data: e }) {
|
|
2070
2081
|
return t.post("payout-request-splits", e);
|
|
2071
2082
|
} };
|
|
2072
2083
|
}
|
|
2073
|
-
function
|
|
2084
|
+
function It({ apiHandler: t }) {
|
|
2074
2085
|
return {
|
|
2075
2086
|
getAll({ limit: e = null, offset: s = null, filter: n = null, sort: r = null } = {}) {
|
|
2076
2087
|
const u = {
|
|
@@ -2117,12 +2128,12 @@ function Et({ apiHandler: t }) {
|
|
|
2117
2128
|
}
|
|
2118
2129
|
};
|
|
2119
2130
|
}
|
|
2120
|
-
function
|
|
2131
|
+
function St({ apiHandler: t }) {
|
|
2121
2132
|
return { create({ data: e }) {
|
|
2122
2133
|
return t.post("payouts", e);
|
|
2123
2134
|
} };
|
|
2124
2135
|
}
|
|
2125
|
-
function
|
|
2136
|
+
function Pt({ apiHandler: t }) {
|
|
2126
2137
|
return {
|
|
2127
2138
|
getAll({ filter: e = null, sort: s = null, limit: n = null, offset: r = null, q: u = null } = {}) {
|
|
2128
2139
|
const l = {
|
|
@@ -2148,7 +2159,7 @@ function St({ apiHandler: t }) {
|
|
|
2148
2159
|
}
|
|
2149
2160
|
};
|
|
2150
2161
|
}
|
|
2151
|
-
function
|
|
2162
|
+
function Ct({ apiHandler: t }) {
|
|
2152
2163
|
return {
|
|
2153
2164
|
order({ data: e }) {
|
|
2154
2165
|
return t.post("previews/orders", e);
|
|
@@ -2161,7 +2172,7 @@ function Pt({ apiHandler: t }) {
|
|
|
2161
2172
|
}
|
|
2162
2173
|
};
|
|
2163
2174
|
}
|
|
2164
|
-
function
|
|
2175
|
+
function xt({ apiHandler: t }) {
|
|
2165
2176
|
return {
|
|
2166
2177
|
getAll({ filter: e = null, sort: s = null, limit: n = null, offset: r = null, q: u = null } = {}) {
|
|
2167
2178
|
const l = {
|
|
@@ -2187,7 +2198,7 @@ function Ct({ apiHandler: t }) {
|
|
|
2187
2198
|
}
|
|
2188
2199
|
};
|
|
2189
2200
|
}
|
|
2190
|
-
function
|
|
2201
|
+
function Dt({ apiHandler: t }) {
|
|
2191
2202
|
return {
|
|
2192
2203
|
startPermissionsEmulation({ data: e }) {
|
|
2193
2204
|
return t.post("permissions-emulation", e);
|
|
@@ -2216,12 +2227,12 @@ function xt({ apiHandler: t }) {
|
|
|
2216
2227
|
}
|
|
2217
2228
|
};
|
|
2218
2229
|
}
|
|
2219
|
-
function
|
|
2230
|
+
function Mt({ apiHandler: t }) {
|
|
2220
2231
|
return { readyToPay({ data: e }) {
|
|
2221
2232
|
return t.post("ready-to-pay", e);
|
|
2222
2233
|
} };
|
|
2223
2234
|
}
|
|
2224
|
-
function
|
|
2235
|
+
function jt({ apiHandler: t }) {
|
|
2225
2236
|
return {
|
|
2226
2237
|
getAll({ filter: e = null, sort: s = null, limit: n = null, offset: r = null, expand: u = null } = {}) {
|
|
2227
2238
|
const l = {
|
|
@@ -2292,12 +2303,12 @@ function Mt({ apiHandler: t }) {
|
|
|
2292
2303
|
}
|
|
2293
2304
|
};
|
|
2294
2305
|
}
|
|
2295
|
-
function
|
|
2306
|
+
function Ot({ apiHandler: t }) {
|
|
2296
2307
|
return { getEnabled() {
|
|
2297
2308
|
return t.get("release-flags");
|
|
2298
2309
|
} };
|
|
2299
2310
|
}
|
|
2300
|
-
function
|
|
2311
|
+
function Ft({ apiHandler: t }) {
|
|
2301
2312
|
return {
|
|
2302
2313
|
get({ resource: e, resourceId: s, service: n }) {
|
|
2303
2314
|
return t.get(`${e}/${s}/external-identifiers/${n}`);
|
|
@@ -2313,7 +2324,7 @@ function Ot({ apiHandler: t }) {
|
|
|
2313
2324
|
}
|
|
2314
2325
|
};
|
|
2315
2326
|
}
|
|
2316
|
-
function
|
|
2327
|
+
function Kt({ apiHandler: t }) {
|
|
2317
2328
|
return {
|
|
2318
2329
|
getAll() {
|
|
2319
2330
|
return t.get("risk-score-rules");
|
|
@@ -2368,7 +2379,7 @@ function Bt({ apiHandler: t }) {
|
|
|
2368
2379
|
return t.get("search", u);
|
|
2369
2380
|
} };
|
|
2370
2381
|
}
|
|
2371
|
-
function
|
|
2382
|
+
function Lt({ apiHandler: t }) {
|
|
2372
2383
|
return {
|
|
2373
2384
|
get() {
|
|
2374
2385
|
return t.get("security-settings");
|
|
@@ -2378,7 +2389,7 @@ function Kt({ apiHandler: t }) {
|
|
|
2378
2389
|
}
|
|
2379
2390
|
};
|
|
2380
2391
|
}
|
|
2381
|
-
function
|
|
2392
|
+
function zt({ apiHandler: t }) {
|
|
2382
2393
|
return {
|
|
2383
2394
|
getAll({ limit: e = null, offset: s = null, sort: n = null, filter: r = null, q: u = null } = {}) {
|
|
2384
2395
|
const l = {
|
|
@@ -2404,12 +2415,12 @@ function Lt({ apiHandler: t }) {
|
|
|
2404
2415
|
}
|
|
2405
2416
|
};
|
|
2406
2417
|
}
|
|
2407
|
-
function
|
|
2418
|
+
function Vt({ apiHandler: t }) {
|
|
2408
2419
|
return { getAll({ eventType: e }) {
|
|
2409
2420
|
return t.getAll(`send-through-attribution/${e}`);
|
|
2410
2421
|
} };
|
|
2411
2422
|
}
|
|
2412
|
-
function
|
|
2423
|
+
function Ut({ apiHandler: t }) {
|
|
2413
2424
|
return {
|
|
2414
2425
|
getAll({ type: e, filter: s = null, limit: n = null, offset: r = null, sort: u = null, q: l = null }) {
|
|
2415
2426
|
const o = {
|
|
@@ -2443,7 +2454,7 @@ function Vt({ apiHandler: t }) {
|
|
|
2443
2454
|
}
|
|
2444
2455
|
};
|
|
2445
2456
|
}
|
|
2446
|
-
function
|
|
2457
|
+
function Jt({ apiHandler: t }) {
|
|
2447
2458
|
return {
|
|
2448
2459
|
getAll({ limit: e = null, offset: s = null, filter: n = null, sort: r = null, q: u = null } = {}) {
|
|
2449
2460
|
const l = {
|
|
@@ -2469,12 +2480,12 @@ function Ut({ apiHandler: t }) {
|
|
|
2469
2480
|
}
|
|
2470
2481
|
};
|
|
2471
2482
|
}
|
|
2472
|
-
function
|
|
2483
|
+
function Wt({ apiHandler: t }) {
|
|
2473
2484
|
return { get() {
|
|
2474
2485
|
return t.get("status");
|
|
2475
2486
|
} };
|
|
2476
2487
|
}
|
|
2477
|
-
function
|
|
2488
|
+
function _t({ apiHandler: t }) {
|
|
2478
2489
|
return {
|
|
2479
2490
|
getAll({ limit: e = null, offset: s = null, filter: n = null, sort: r = null } = {}) {
|
|
2480
2491
|
const u = {
|
|
@@ -2499,7 +2510,7 @@ function Wt({ apiHandler: t }) {
|
|
|
2499
2510
|
}
|
|
2500
2511
|
};
|
|
2501
2512
|
}
|
|
2502
|
-
function
|
|
2513
|
+
function Yt({ apiHandler: t }) {
|
|
2503
2514
|
return {
|
|
2504
2515
|
getAll({ limit: e = null, offset: s = null, filter: n = null, sort: r = null } = {}) {
|
|
2505
2516
|
const u = {
|
|
@@ -2524,7 +2535,7 @@ function _t({ apiHandler: t }) {
|
|
|
2524
2535
|
}
|
|
2525
2536
|
};
|
|
2526
2537
|
}
|
|
2527
|
-
function
|
|
2538
|
+
function Qt({ apiHandler: t }) {
|
|
2528
2539
|
return {
|
|
2529
2540
|
getAll({ limit: e = null, offset: s = null, filter: n = null, sort: r = null } = {}) {
|
|
2530
2541
|
const u = {
|
|
@@ -2543,7 +2554,7 @@ function Yt({ apiHandler: t }) {
|
|
|
2543
2554
|
}
|
|
2544
2555
|
};
|
|
2545
2556
|
}
|
|
2546
|
-
function
|
|
2557
|
+
function Gt({ apiHandler: t }) {
|
|
2547
2558
|
return {
|
|
2548
2559
|
getAll({ filter: e = null, sort: s = null, limit: n = null, offset: r = null, q: u = null, expand: l = null, links: o = null } = {}) {
|
|
2549
2560
|
const g = {
|
|
@@ -2620,7 +2631,7 @@ function Qt({ apiHandler: t }) {
|
|
|
2620
2631
|
}
|
|
2621
2632
|
};
|
|
2622
2633
|
}
|
|
2623
|
-
function
|
|
2634
|
+
function Xt({ apiHandler: t }) {
|
|
2624
2635
|
return {
|
|
2625
2636
|
getAll({ limit: e = null, offset: s = null, filter: n = null, q: r = null, sort: u = null } = {}) {
|
|
2626
2637
|
const l = {
|
|
@@ -2682,7 +2693,7 @@ function Gt({ apiHandler: t }) {
|
|
|
2682
2693
|
}
|
|
2683
2694
|
};
|
|
2684
2695
|
}
|
|
2685
|
-
function
|
|
2696
|
+
function Zt({ apiHandler: t }) {
|
|
2686
2697
|
return {
|
|
2687
2698
|
getAll({ limit: e = null, offset: s = null, sort: n = null, filter: r = null, q: u = null } = {}) {
|
|
2688
2699
|
const l = {
|
|
@@ -2708,7 +2719,7 @@ function Xt({ apiHandler: t }) {
|
|
|
2708
2719
|
}
|
|
2709
2720
|
};
|
|
2710
2721
|
}
|
|
2711
|
-
function
|
|
2722
|
+
function Ht({ apiHandler: t }) {
|
|
2712
2723
|
return {
|
|
2713
2724
|
getAllApiLogs({ limit: e = null, offset: s = null, sort: n = null, filter: r = null, q: u = null, expand: l = null } = {}) {
|
|
2714
2725
|
const o = {
|
|
@@ -2764,7 +2775,7 @@ function Zt({ apiHandler: t }) {
|
|
|
2764
2775
|
}
|
|
2765
2776
|
};
|
|
2766
2777
|
}
|
|
2767
|
-
function
|
|
2778
|
+
function es({ apiHandler: t }) {
|
|
2768
2779
|
return {
|
|
2769
2780
|
getAll({ limit: e = null, offset: s = null, filter: n = null, q: r = null, sort: u = null, expand: l = null, fields: o = null, links: g = null } = {}) {
|
|
2770
2781
|
const $ = {
|
|
@@ -2828,7 +2839,7 @@ function Ht({ apiHandler: t }) {
|
|
|
2828
2839
|
}
|
|
2829
2840
|
};
|
|
2830
2841
|
}
|
|
2831
|
-
function
|
|
2842
|
+
function ts({ apiHandler: t }) {
|
|
2832
2843
|
return {
|
|
2833
2844
|
getAll({ filter: e = null, sort: s = null, limit: n = null, offset: r = null, q: u = null } = {}) {
|
|
2834
2845
|
const l = {
|
|
@@ -2851,7 +2862,7 @@ function es({ apiHandler: t }) {
|
|
|
2851
2862
|
}
|
|
2852
2863
|
};
|
|
2853
2864
|
}
|
|
2854
|
-
function
|
|
2865
|
+
function ss({ apiHandler: t }) {
|
|
2855
2866
|
return {
|
|
2856
2867
|
deleteUserMembership({ organizationId: e, userId: s }) {
|
|
2857
2868
|
return t.delete(`memberships/${e}/${s}`);
|
|
@@ -2880,7 +2891,7 @@ function ts({ apiHandler: t }) {
|
|
|
2880
2891
|
}
|
|
2881
2892
|
};
|
|
2882
2893
|
}
|
|
2883
|
-
function
|
|
2894
|
+
function ns({ apiHandler: t }) {
|
|
2884
2895
|
return { getAll({ limit: e = null, offset: s = null, filter: n = null, q: r = null } = {}) {
|
|
2885
2896
|
const u = {
|
|
2886
2897
|
limit: e,
|
|
@@ -2891,7 +2902,7 @@ function ss({ apiHandler: t }) {
|
|
|
2891
2902
|
return t.getAll("webhook-events", u);
|
|
2892
2903
|
} };
|
|
2893
2904
|
}
|
|
2894
|
-
function
|
|
2905
|
+
function rs({ apiHandler: t }) {
|
|
2895
2906
|
return {
|
|
2896
2907
|
getAll({ limit: e = null, offset: s = null, filter: n = null } = {}) {
|
|
2897
2908
|
const r = {
|
|
@@ -2915,7 +2926,7 @@ function ns({ apiHandler: t }) {
|
|
|
2915
2926
|
}
|
|
2916
2927
|
};
|
|
2917
2928
|
}
|
|
2918
|
-
function
|
|
2929
|
+
function us({ apiHandler: t }) {
|
|
2919
2930
|
return {
|
|
2920
2931
|
getAll({ limit: e = null, offset: s = null, q: n = null, filter: r = null, sort: u = null } = {}) {
|
|
2921
2932
|
const l = {
|
|
@@ -2941,17 +2952,17 @@ function rs({ apiHandler: t }) {
|
|
|
2941
2952
|
}
|
|
2942
2953
|
};
|
|
2943
2954
|
}
|
|
2944
|
-
var
|
|
2955
|
+
var ls = class {
|
|
2945
2956
|
constructor({ apiHandler: t }) {
|
|
2946
|
-
this.account = we({ apiHandler: t }), this.allowlists = ke({ apiHandler: t }), this.amlChecks = qe({ apiHandler: t }), this.amlSettings = de({ apiHandler: t }), this.apiKeys = Te({ apiHandler: t }), this.applicationInstances = Ee({ apiHandler: t }), this.applications = Ie({ apiHandler: t }), this.balanceTransactions = Se({ apiHandler: t }), this.billingPortals = Pe({ apiHandler: t }), this.blocklists = Ce({ apiHandler: t }), this.broadcastMessages = xe({ apiHandler: t }), this.cashiers = De({ apiHandler: t }), this.checkoutForms = Me({ apiHandler: t }), this.coupons = je({ apiHandler: t }), this.creditMemos = Oe({ apiHandler: t }), this.customDomains = Fe({ apiHandler: t }), this.customFields =
|
|
2957
|
+
this.account = we({ apiHandler: t }), this.allowlists = ke({ apiHandler: t }), this.amlChecks = qe({ apiHandler: t }), this.amlSettings = de({ apiHandler: t }), this.apiKeys = Te({ apiHandler: t }), this.applicationInstances = Ee({ apiHandler: t }), this.applications = Ie({ apiHandler: t }), this.balanceTransactions = Se({ apiHandler: t }), this.billingPortals = Pe({ apiHandler: t }), this.blocklists = Ce({ apiHandler: t }), this.broadcastMessages = xe({ apiHandler: t }), this.cashiers = De({ apiHandler: t }), this.checkoutForms = Me({ apiHandler: t }), this.coupons = je({ apiHandler: t }), this.creditMemos = Oe({ apiHandler: t }), this.customDomains = Fe({ apiHandler: t }), this.customFields = Ke({ apiHandler: t }), this.customerAuthentication = Ne({ apiHandler: t }), this.customers = Be({ apiHandler: t }), this.depositRequests = Le({ apiHandler: t }), this.depositStrategies = ze({ apiHandler: t }), this.digitalWallets = Ve({ apiHandler: t }), this.disputes = Ue({ apiHandler: t }), this.emailDeliverySettings = Je({ apiHandler: t }), this.emailMessages = We({ apiHandler: t }), this.emailNotifications = _e({ apiHandler: t }), this.events = Ye({ apiHandler: t }), this.externalIdentifiers = Qe({ apiHandler: t }), this.externalServicesSettings = Ge({ apiHandler: t }), this.fees = Xe({ apiHandler: t }), this.files = Ze({ apiHandler: t }), this.gatewayAccounts = He({ apiHandler: t }), this.integrations = et({ apiHandler: t }), this.invoices = tt({ apiHandler: t }), this.journalAccounts = st({ apiHandler: t }), this.journalEntries = nt({ apiHandler: t }), this.journalRecords = rt({ apiHandler: t }), this.kycDocuments = ut({ apiHandler: t }), this.kycRequests = lt({ apiHandler: t }), this.kycSettings = ot({ apiHandler: t }), this.lists = ct({ apiHandler: t }), this.orderCancellations = it({ apiHandler: t }), this.orderChanges = gt({ apiHandler: t }), this.orderPauses = at({ apiHandler: t }), this.orderReactivations = mt({ apiHandler: t }), this.orders = $t({ apiHandler: t }), this.organizationApiKeys = ht({ apiHandler: t }), this.organizationExports = pt({ apiHandler: t }), this.organizations = ft({ apiHandler: t }), this.paymentCardsBankNames = yt({ apiHandler: t }), this.paymentInstruments = Rt({ apiHandler: t }), this.paymentMethods = At({ apiHandler: t }), this.paymentTokens = bt({ apiHandler: t }), this.payoutRequestAllocationOperations = vt({ apiHandler: t }), this.payoutRequestAllocations = wt({ apiHandler: t }), this.payoutRequestAutoAllocations = kt({ apiHandler: t }), this.payoutRequestBatchOperations = qt({ apiHandler: t }), this.payoutRequestBatchPreviews = dt({ apiHandler: t }), this.payoutRequestBatches = Tt({ apiHandler: t }), this.payoutRequestSplits = Et({ apiHandler: t }), this.payoutRequests = It({ apiHandler: t }), this.payouts = St({ apiHandler: t }), this.plans = Pt({ apiHandler: t }), this.previews = Ct({ apiHandler: t }), this.products = xt({ apiHandler: t }), this.profile = Dt({ apiHandler: t }), this.purchase = Mt({ apiHandler: t }), this.quotes = jt({ apiHandler: t }), this.releaseFlags = Ot({ apiHandler: t }), this.resource = Ft({ apiHandler: t }), this.riskScoreRules = Kt({ apiHandler: t }), this.roles = Nt({ apiHandler: t }), this.search = Bt({ apiHandler: t }), this.securitySettings = Lt({ apiHandler: t }), this.segments = zt({ apiHandler: t }), this.sendThroughAttribution = Vt({ apiHandler: t }), this.serviceCredentials = Ut({ apiHandler: t }), this.shippingRates = Jt({ apiHandler: t }), this.status = Wt({ apiHandler: t }), this.subscriptionCancellations = _t({ apiHandler: t }), this.subscriptionPauses = Yt({ apiHandler: t }), this.subscriptionReactivations = Qt({ apiHandler: t }), this.subscriptions = Gt({ apiHandler: t }), this.tags = Xt({ apiHandler: t }), this.tagsRules = Zt({ apiHandler: t }), this.tracking = Ht({ apiHandler: t }), this.transactions = es({ apiHandler: t }), this.usages = ts({ apiHandler: t }), this.users = ss({ apiHandler: t }), this.webhookEvents = ns({ apiHandler: t }), this.webhooks = rs({ apiHandler: t }), this.websites = us({ 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;
|
|
2947
2958
|
}
|
|
2948
2959
|
};
|
|
2949
|
-
function
|
|
2960
|
+
function os({ apiHandler: t }) {
|
|
2950
2961
|
return { getCustomerLifetimeSummaryMetrics({ customerId: e }) {
|
|
2951
2962
|
return t.get(`customers/${e}/summary-metrics`);
|
|
2952
2963
|
} };
|
|
2953
2964
|
}
|
|
2954
|
-
function
|
|
2965
|
+
function cs({ apiHandler: t }) {
|
|
2955
2966
|
return {
|
|
2956
2967
|
getAll({ limit: e = null, offset: s = null, sort: n = null, expand: r = null, filter: u = null, q: l = null, criteria: o = null } = {}) {
|
|
2957
2968
|
const g = {
|
|
@@ -2982,7 +2993,7 @@ function os({ apiHandler: t }) {
|
|
|
2982
2993
|
}
|
|
2983
2994
|
};
|
|
2984
2995
|
}
|
|
2985
|
-
function
|
|
2996
|
+
function is({ apiHandler: t }) {
|
|
2986
2997
|
return {
|
|
2987
2998
|
getAmlCheckHistogramReport({ periodStart: e = null, periodEnd: s = null, aggregationPeriod: n = null, metric: r = null, includePropagatedResults: u = null, filter: l = null }) {
|
|
2988
2999
|
const o = {
|
|
@@ -3007,7 +3018,7 @@ function cs({ apiHandler: t }) {
|
|
|
3007
3018
|
}
|
|
3008
3019
|
};
|
|
3009
3020
|
}
|
|
3010
|
-
function
|
|
3021
|
+
function gs({ apiHandler: t }) {
|
|
3011
3022
|
return {
|
|
3012
3023
|
getApiLogSummary({ periodStart: e = null, periodEnd: s = null, filter: n = null, limit: r = null, offset: u = null }) {
|
|
3013
3024
|
const l = {
|
|
@@ -3326,12 +3337,12 @@ function is({ apiHandler: t }) {
|
|
|
3326
3337
|
}
|
|
3327
3338
|
};
|
|
3328
3339
|
}
|
|
3329
|
-
function
|
|
3340
|
+
function as({ apiHandler: t }) {
|
|
3330
3341
|
return { getSubscriptionSummaryMetrics({ subscriptionId: e }) {
|
|
3331
3342
|
return t.get(`subscriptions/${e}/summary-metrics`);
|
|
3332
3343
|
} };
|
|
3333
3344
|
}
|
|
3334
|
-
function
|
|
3345
|
+
function ms({ apiHandler: t }) {
|
|
3335
3346
|
return {
|
|
3336
3347
|
getActivityFeed({ eventTypes: e = null, limit: s = 1e3, offset: n = 0 }) {
|
|
3337
3348
|
const r = {
|
|
@@ -3359,25 +3370,25 @@ function as({ apiHandler: t }) {
|
|
|
3359
3370
|
}
|
|
3360
3371
|
};
|
|
3361
3372
|
}
|
|
3362
|
-
function
|
|
3373
|
+
function $s({ apiHandler: t }) {
|
|
3363
3374
|
return { query() {
|
|
3364
3375
|
return t.get("location");
|
|
3365
3376
|
} };
|
|
3366
3377
|
}
|
|
3367
3378
|
var y = {
|
|
3368
|
-
CustomersResource:
|
|
3369
|
-
DataExportsResource:
|
|
3370
|
-
HistogramsResource:
|
|
3371
|
-
ReportsResource:
|
|
3372
|
-
SubscriptionsResource:
|
|
3373
|
-
TimelinesResource:
|
|
3374
|
-
LocationResource:
|
|
3375
|
-
},
|
|
3379
|
+
CustomersResource: os,
|
|
3380
|
+
DataExportsResource: cs,
|
|
3381
|
+
HistogramsResource: is,
|
|
3382
|
+
ReportsResource: gs,
|
|
3383
|
+
SubscriptionsResource: as,
|
|
3384
|
+
TimelinesResource: ms,
|
|
3385
|
+
LocationResource: $s
|
|
3386
|
+
}, hs = class {
|
|
3376
3387
|
constructor({ apiHandler: t }) {
|
|
3377
3388
|
this.customers = y.CustomersResource({ apiHandler: t }), this.dataExports = y.DataExportsResource({ apiHandler: t }), this.histograms = y.HistogramsResource({ apiHandler: t }), this.reports = y.ReportsResource({ apiHandler: t }), this.subscriptions = y.SubscriptionsResource({ apiHandler: t }), this.timelines = y.TimelinesResource({ apiHandler: t }), this.location = y.LocationResource({ 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.setEndpoints = t.setEndpoints, this.getCancellationToken = t.getCancellationToken;
|
|
3378
3389
|
}
|
|
3379
3390
|
};
|
|
3380
|
-
function
|
|
3391
|
+
function ps({ apiHandler: t }) {
|
|
3381
3392
|
return {
|
|
3382
3393
|
get({ expand: e = null } = {}) {
|
|
3383
3394
|
const s = { expand: e };
|
|
@@ -3406,7 +3417,7 @@ function hs({ apiHandler: t }) {
|
|
|
3406
3417
|
}
|
|
3407
3418
|
};
|
|
3408
3419
|
}
|
|
3409
|
-
function
|
|
3420
|
+
function fs({ apiHandler: t }) {
|
|
3410
3421
|
return {
|
|
3411
3422
|
login({ data: e }) {
|
|
3412
3423
|
return t.post("login", e);
|
|
@@ -3416,22 +3427,22 @@ function ps({ apiHandler: t }) {
|
|
|
3416
3427
|
}
|
|
3417
3428
|
};
|
|
3418
3429
|
}
|
|
3419
|
-
function
|
|
3430
|
+
function ys({ apiHandler: t }) {
|
|
3420
3431
|
return { get({ slug: e }) {
|
|
3421
3432
|
return t.get(`billing-portals/${e}`);
|
|
3422
3433
|
} };
|
|
3423
3434
|
}
|
|
3424
|
-
function
|
|
3435
|
+
function Rs({ apiHandler: t }) {
|
|
3425
3436
|
return { get({ id: e }) {
|
|
3426
3437
|
return t.get(`cashiers/${e}`);
|
|
3427
3438
|
} };
|
|
3428
3439
|
}
|
|
3429
|
-
function
|
|
3440
|
+
function As({ apiHandler: t }) {
|
|
3430
3441
|
return { get({ id: e }) {
|
|
3431
3442
|
return t.get(`checkout-forms/${e}`);
|
|
3432
3443
|
} };
|
|
3433
3444
|
}
|
|
3434
|
-
function
|
|
3445
|
+
function bs({ apiHandler: t }) {
|
|
3435
3446
|
return { getAll({ resource: e, limit: s = null, offset: n = null }) {
|
|
3436
3447
|
const r = {
|
|
3437
3448
|
limit: s,
|
|
@@ -3440,23 +3451,23 @@ function As({ apiHandler: t }) {
|
|
|
3440
3451
|
return t.getAll(`custom-fields/${e}`, r);
|
|
3441
3452
|
} };
|
|
3442
3453
|
}
|
|
3443
|
-
function
|
|
3454
|
+
function vs({ apiHandler: t }) {
|
|
3444
3455
|
return { get({ id: e, expand: s = null }) {
|
|
3445
3456
|
const n = { expand: s };
|
|
3446
3457
|
return t.get(`deposit-requests/${e}`, n);
|
|
3447
3458
|
} };
|
|
3448
3459
|
}
|
|
3449
|
-
function
|
|
3460
|
+
function ws({ apiHandler: t }) {
|
|
3450
3461
|
return { create({ data: e }) {
|
|
3451
3462
|
return t.post("deposit", e);
|
|
3452
3463
|
} };
|
|
3453
3464
|
}
|
|
3454
|
-
function
|
|
3465
|
+
function ks({ apiHandler: t }) {
|
|
3455
3466
|
return { get({ id: e }) {
|
|
3456
3467
|
return t.get(`deposit-strategies/${e}`);
|
|
3457
3468
|
} };
|
|
3458
3469
|
}
|
|
3459
|
-
function
|
|
3470
|
+
function qs({ apiHandler: t }) {
|
|
3460
3471
|
return {
|
|
3461
3472
|
getAll({ filter: e = null, sort: s = null, limit: n = null, offset: r = null, q: u = null, expand: l = null } = {}) {
|
|
3462
3473
|
const o = {
|
|
@@ -3485,7 +3496,7 @@ function ks({ apiHandler: t }) {
|
|
|
3485
3496
|
}
|
|
3486
3497
|
};
|
|
3487
3498
|
}
|
|
3488
|
-
function
|
|
3499
|
+
function ds({ apiHandler: t }) {
|
|
3489
3500
|
return {
|
|
3490
3501
|
create({ data: e }) {
|
|
3491
3502
|
return t.post("kyc-documents", e);
|
|
@@ -3498,7 +3509,7 @@ function qs({ apiHandler: t }) {
|
|
|
3498
3509
|
}
|
|
3499
3510
|
};
|
|
3500
3511
|
}
|
|
3501
|
-
function
|
|
3512
|
+
function Ts({ apiHandler: t }) {
|
|
3502
3513
|
return {
|
|
3503
3514
|
create({ data: e }) {
|
|
3504
3515
|
return t.post("kyc-liveness-sessions", e);
|
|
@@ -3511,13 +3522,13 @@ function ds({ apiHandler: t }) {
|
|
|
3511
3522
|
}
|
|
3512
3523
|
};
|
|
3513
3524
|
}
|
|
3514
|
-
function
|
|
3525
|
+
function Es({ apiHandler: t }) {
|
|
3515
3526
|
return { get({ id: e, expand: s = null }) {
|
|
3516
3527
|
const n = { expand: s };
|
|
3517
3528
|
return t.get(`kyc-requests/${e}`, n);
|
|
3518
3529
|
} };
|
|
3519
3530
|
}
|
|
3520
|
-
function
|
|
3531
|
+
function Is({ apiHandler: t }) {
|
|
3521
3532
|
return {
|
|
3522
3533
|
getAll({ limit: e = null, offset: s = null, filter: n = null } = {}) {
|
|
3523
3534
|
const r = {
|
|
@@ -3532,7 +3543,7 @@ function Es({ apiHandler: t }) {
|
|
|
3532
3543
|
}
|
|
3533
3544
|
};
|
|
3534
3545
|
}
|
|
3535
|
-
function
|
|
3546
|
+
function Ss({ apiHandler: t }) {
|
|
3536
3547
|
return {
|
|
3537
3548
|
getUpcomingInvoice({ id: e, expand: s = null }) {
|
|
3538
3549
|
const n = { expand: s };
|
|
@@ -3564,7 +3575,7 @@ function Is({ apiHandler: t }) {
|
|
|
3564
3575
|
}
|
|
3565
3576
|
};
|
|
3566
3577
|
}
|
|
3567
|
-
function
|
|
3578
|
+
function Ps({ apiHandler: t }) {
|
|
3568
3579
|
return {
|
|
3569
3580
|
getAll({ filter: e = null, sort: s = null, limit: n = null, offset: r = null, q: u = null } = {}) {
|
|
3570
3581
|
const l = {
|
|
@@ -3600,12 +3611,12 @@ function Ss({ apiHandler: t }) {
|
|
|
3600
3611
|
}
|
|
3601
3612
|
};
|
|
3602
3613
|
}
|
|
3603
|
-
function
|
|
3614
|
+
function Cs({ apiHandler: t }) {
|
|
3604
3615
|
return { create({ data: e }) {
|
|
3605
3616
|
return t.post("payout-request-cancellations", e);
|
|
3606
3617
|
} };
|
|
3607
3618
|
}
|
|
3608
|
-
function
|
|
3619
|
+
function xs({ apiHandler: t }) {
|
|
3609
3620
|
return {
|
|
3610
3621
|
getAll({ filter: e = null, sort: s = null, limit: n = null, offset: r = null, q: u = null } = {}) {
|
|
3611
3622
|
const l = {
|
|
@@ -3628,7 +3639,7 @@ function Cs({ apiHandler: t }) {
|
|
|
3628
3639
|
}
|
|
3629
3640
|
};
|
|
3630
3641
|
}
|
|
3631
|
-
function
|
|
3642
|
+
function Ds({ apiHandler: t }) {
|
|
3632
3643
|
return {
|
|
3633
3644
|
getAll({ filter: e = null, sort: s = null, limit: n = null, offset: r = null, q: u = null, expand: l = null } = {}) {
|
|
3634
3645
|
const o = {
|
|
@@ -3647,7 +3658,7 @@ function xs({ apiHandler: t }) {
|
|
|
3647
3658
|
}
|
|
3648
3659
|
};
|
|
3649
3660
|
}
|
|
3650
|
-
function
|
|
3661
|
+
function Ms({ apiHandler: t }) {
|
|
3651
3662
|
return {
|
|
3652
3663
|
getAll({ filter: e = null, sort: s = null, limit: n = null, offset: r = null, q: u = null } = {}) {
|
|
3653
3664
|
const l = {
|
|
@@ -3664,7 +3675,7 @@ function Ds({ apiHandler: t }) {
|
|
|
3664
3675
|
}
|
|
3665
3676
|
};
|
|
3666
3677
|
}
|
|
3667
|
-
function
|
|
3678
|
+
function js({ apiHandler: t }) {
|
|
3668
3679
|
return {
|
|
3669
3680
|
payment({ data: e }) {
|
|
3670
3681
|
return t.post("payment", e);
|
|
@@ -3680,7 +3691,7 @@ function Ms({ apiHandler: t }) {
|
|
|
3680
3691
|
}
|
|
3681
3692
|
};
|
|
3682
3693
|
}
|
|
3683
|
-
function
|
|
3694
|
+
function Os({ apiHandler: t }) {
|
|
3684
3695
|
return {
|
|
3685
3696
|
get({ id: e, expand: s = null }) {
|
|
3686
3697
|
const n = { expand: s };
|
|
@@ -3701,12 +3712,12 @@ function js({ apiHandler: t }) {
|
|
|
3701
3712
|
}
|
|
3702
3713
|
};
|
|
3703
3714
|
}
|
|
3704
|
-
function
|
|
3715
|
+
function Fs({ apiHandler: t }) {
|
|
3705
3716
|
return { readyToPayout({ data: e }) {
|
|
3706
3717
|
return t.post("ready-to-payout", e);
|
|
3707
3718
|
} };
|
|
3708
3719
|
}
|
|
3709
|
-
function
|
|
3720
|
+
function Ks({ apiHandler: t }) {
|
|
3710
3721
|
return { reactivation({ data: e }) {
|
|
3711
3722
|
return t.post("subscription-reactivations", e);
|
|
3712
3723
|
} };
|
|
@@ -3760,30 +3771,30 @@ function Bs({ apiHandler: t }) {
|
|
|
3760
3771
|
}
|
|
3761
3772
|
};
|
|
3762
3773
|
}
|
|
3763
|
-
function
|
|
3774
|
+
function Ls({ apiHandler: t }) {
|
|
3764
3775
|
return { get({ id: e }) {
|
|
3765
3776
|
return t.get(`websites/${e}`);
|
|
3766
3777
|
} };
|
|
3767
3778
|
}
|
|
3768
|
-
var
|
|
3779
|
+
var zs = class {
|
|
3769
3780
|
constructor({ apiHandler: t }) {
|
|
3770
|
-
this.account =
|
|
3781
|
+
this.account = ps({ apiHandler: t }), this.authorization = fs({ apiHandler: t }), this.billingPortals = ys({ apiHandler: t }), this.cashiers = Rs({ apiHandler: t }), this.checkoutForms = As({ apiHandler: t }), this.customFields = bs({ apiHandler: t }), this.depositRequests = vs({ apiHandler: t }), this.deposit = ws({ apiHandler: t }), this.depositStrategies = ks({ apiHandler: t }), this.invoices = qs({ apiHandler: t }), this.kycDocuments = ds({ apiHandler: t }), this.kycLivenessSessions = Ts({ apiHandler: t }), this.kycRequests = Es({ apiHandler: t }), this.orderChanges = Is({ apiHandler: t }), this.orders = Ss({ apiHandler: t }), this.paymentInstruments = Ps({ apiHandler: t }), this.payoutRequestCancellations = Cs({ apiHandler: t }), this.payoutRequests = xs({ apiHandler: t }), this.plans = Ds({ apiHandler: t }), this.products = Ms({ apiHandler: t }), this.purchase = js({ apiHandler: t }), this.quotes = Os({ apiHandler: t }), this.readyToPayout = Fs({ apiHandler: t }), this.subscriptionReactivations = Ks({ apiHandler: t }), this.subscriptions = Ns({ apiHandler: t }), this.transactions = Bs({ apiHandler: t }), this.websites = Ls({ apiHandler: t }), this.checkoutForm = this.checkoutForms, this.billingPortal = this.billingPortals, 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;
|
|
3771
3782
|
}
|
|
3772
3783
|
};
|
|
3773
|
-
function zs({ apiHandler: t }) {
|
|
3774
|
-
return new us({ apiHandler: t });
|
|
3775
|
-
}
|
|
3776
3784
|
function Vs({ apiHandler: t }) {
|
|
3777
|
-
return new
|
|
3785
|
+
return new ls({ apiHandler: t });
|
|
3778
3786
|
}
|
|
3779
3787
|
function Us({ apiHandler: t }) {
|
|
3780
|
-
return new
|
|
3788
|
+
return new hs({ apiHandler: t });
|
|
3789
|
+
}
|
|
3790
|
+
function Js({ apiHandler: t }) {
|
|
3791
|
+
return new zs({ apiHandler: t });
|
|
3781
3792
|
}
|
|
3782
3793
|
var x = {
|
|
3783
3794
|
live: "https://api.rebilly.com",
|
|
3784
3795
|
sandbox: "https://api-sandbox.rebilly.com"
|
|
3785
3796
|
}, D = 6e3;
|
|
3786
|
-
function
|
|
3797
|
+
function Qs({ apiKey: t = null, sandbox: e = !1, timeout: s = D, organizationId: n = null, urls: r = x, internalOptions: u = null } = {}) {
|
|
3787
3798
|
if (!r.live || !r.sandbox) throw new Error("RebillyAPI urls config must include a key for both `live` and `sandbox`");
|
|
3788
3799
|
if (typeof r.live != "string" || typeof r.sandbox != "string") throw new Error("RebillyAPI urls config `live` and `sandbox` must be strings");
|
|
3789
3800
|
const l = {
|
|
@@ -3796,9 +3807,9 @@ function Ys({ apiKey: t = null, sandbox: e = !1, timeout: s = D, organizationId:
|
|
|
3796
3807
|
organizationId: n,
|
|
3797
3808
|
appName: u?.appName ?? null
|
|
3798
3809
|
}, o = C({ options: l });
|
|
3799
|
-
return
|
|
3810
|
+
return Vs({ apiHandler: o });
|
|
3800
3811
|
}
|
|
3801
|
-
function
|
|
3812
|
+
function Gs({ apiKey: t = null, sandbox: e = !1, timeout: s = D, organizationId: n = null, urls: r = x, internalOptions: u = null } = {}) {
|
|
3802
3813
|
if (!r.live || !r.sandbox) throw new Error("RebillyAPI urls config must include a key for both `live` and `sandbox`");
|
|
3803
3814
|
if (typeof r.live != "string" || typeof r.sandbox != "string") throw new Error("RebillyAPI urls config `live` and `sandbox` must be strings");
|
|
3804
3815
|
const l = {
|
|
@@ -3811,9 +3822,9 @@ function Qs({ apiKey: t = null, sandbox: e = !1, timeout: s = D, organizationId:
|
|
|
3811
3822
|
organizationId: n,
|
|
3812
3823
|
appName: u?.appName ?? null
|
|
3813
3824
|
}, o = C({ options: l });
|
|
3814
|
-
return
|
|
3825
|
+
return Us({ apiHandler: o });
|
|
3815
3826
|
}
|
|
3816
|
-
function
|
|
3827
|
+
function Xs({ publishableKey: t = null, jwt: e = null, sandbox: s = !1, timeout: n = D, organizationId: r = null, urls: u = x, internalOptions: l = null } = {}) {
|
|
3817
3828
|
if (!u.live || !u.sandbox) throw new Error("RebillyAPI urls config must include a key for both `live` and `sandbox`");
|
|
3818
3829
|
if (typeof u.live != "string" || typeof u.sandbox != "string") throw new Error("RebillyAPI urls config `live` and `sandbox` must be strings");
|
|
3819
3830
|
const o = {
|
|
@@ -3826,13 +3837,13 @@ function Gs({ publishableKey: t = null, jwt: e = null, sandbox: s = !1, timeout:
|
|
|
3826
3837
|
organizationId: r,
|
|
3827
3838
|
appName: l?.appName ?? null
|
|
3828
3839
|
}, g = C({ options: o });
|
|
3829
|
-
return g.setSessionToken(o.jwt),
|
|
3840
|
+
return g.setSessionToken(o.jwt), Js({ apiHandler: g });
|
|
3830
3841
|
}
|
|
3831
3842
|
export {
|
|
3832
|
-
|
|
3843
|
+
Qs as RebillyAPI,
|
|
3833
3844
|
h as RebillyErrors,
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3845
|
+
Gs as RebillyExperimentalAPI,
|
|
3846
|
+
Xs as RebillyStorefrontAPI,
|
|
3847
|
+
Ys as cancellation,
|
|
3848
|
+
Qs as default
|
|
3838
3849
|
};
|