rebilly-js-sdk 62.262.1 → 62.262.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 +3 -3
- package/dist/rebilly-js-sdk.es.mjs +232 -229
- package/dist/rebilly-js-sdk.umd.js +1 -1
- package/package.json +1 -1
- package/src/api-handler.spec.js +48 -18
- package/src/create-api-handler.js +19 -1
- package/vite.config.js +6 -0
|
@@ -21,7 +21,7 @@ var J = class {
|
|
|
21
21
|
limit: "pagination-limit",
|
|
22
22
|
offset: "pagination-offset",
|
|
23
23
|
total: "pagination-total"
|
|
24
|
-
},
|
|
24
|
+
}, le = class {
|
|
25
25
|
constructor({ data: t, status: e, statusText: s, headers: n }, r = {}) {
|
|
26
26
|
this.limit = null, this.offset = null, this.total = null, Object.keys(V).forEach((u) => {
|
|
27
27
|
const l = n[V[u]];
|
|
@@ -40,7 +40,7 @@ var J = class {
|
|
|
40
40
|
getJSON() {
|
|
41
41
|
return JSON.parse(JSON.stringify({ items: this.items }));
|
|
42
42
|
}
|
|
43
|
-
},
|
|
43
|
+
}, oe = class {
|
|
44
44
|
constructor({ data: t, status: e, statusText: s, headers: n }, r = {}) {
|
|
45
45
|
this.response = {
|
|
46
46
|
status: e,
|
|
@@ -60,57 +60,57 @@ var J = class {
|
|
|
60
60
|
name: "RebillyRequestError"
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
},
|
|
63
|
+
}, ce = class extends P {
|
|
64
64
|
constructor(t) {
|
|
65
65
|
super(t), this.name = "RebillyMfaRequiredError";
|
|
66
66
|
}
|
|
67
|
-
},
|
|
67
|
+
}, ie = class extends P {
|
|
68
68
|
constructor(t) {
|
|
69
69
|
super(t), this.name = "RebillyIpNotAllowedError";
|
|
70
70
|
}
|
|
71
|
-
},
|
|
71
|
+
}, ge = class extends p {
|
|
72
72
|
constructor(t) {
|
|
73
73
|
super({
|
|
74
74
|
error: t,
|
|
75
75
|
name: "RebillyValidationError"
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
|
-
},
|
|
78
|
+
}, ae = class extends p {
|
|
79
79
|
constructor(t) {
|
|
80
80
|
super({
|
|
81
81
|
error: t,
|
|
82
82
|
name: "RebillyNotFoundError"
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
|
-
},
|
|
85
|
+
}, me = class extends p {
|
|
86
86
|
constructor(t) {
|
|
87
87
|
super({
|
|
88
88
|
error: t,
|
|
89
89
|
name: "RebillyConflictError"
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
|
-
},
|
|
92
|
+
}, $e = class extends p {
|
|
93
93
|
constructor(t) {
|
|
94
94
|
super({
|
|
95
95
|
error: t,
|
|
96
96
|
name: "RebillyForbiddenError"
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
},
|
|
99
|
+
}, he = class extends p {
|
|
100
100
|
constructor(t) {
|
|
101
101
|
super({
|
|
102
102
|
error: t,
|
|
103
103
|
name: "RebillyMethodNotAllowedError"
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
-
},
|
|
106
|
+
}, pe = class extends p {
|
|
107
107
|
constructor(t) {
|
|
108
108
|
super({
|
|
109
109
|
error: t,
|
|
110
110
|
name: "RebillyTimeoutError"
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
|
-
},
|
|
113
|
+
}, fe = class extends p {
|
|
114
114
|
constructor(t) {
|
|
115
115
|
super({
|
|
116
116
|
error: t,
|
|
@@ -120,28 +120,28 @@ var J = class {
|
|
|
120
120
|
}, h = {
|
|
121
121
|
RebillyError: p,
|
|
122
122
|
RebillyRequestError: P,
|
|
123
|
-
RebillyMfaRequiredError:
|
|
124
|
-
RebillyIpNotAllowedError:
|
|
125
|
-
RebillyValidationError:
|
|
126
|
-
RebillyNotFoundError:
|
|
127
|
-
RebillyConflictError:
|
|
128
|
-
RebillyForbiddenError:
|
|
129
|
-
RebillyMethodNotAllowedError:
|
|
130
|
-
RebillyTimeoutError:
|
|
131
|
-
RebillyCanceledError:
|
|
132
|
-
},
|
|
123
|
+
RebillyMfaRequiredError: ce,
|
|
124
|
+
RebillyIpNotAllowedError: ie,
|
|
125
|
+
RebillyValidationError: ge,
|
|
126
|
+
RebillyNotFoundError: ae,
|
|
127
|
+
RebillyConflictError: me,
|
|
128
|
+
RebillyForbiddenError: $e,
|
|
129
|
+
RebillyMethodNotAllowedError: he,
|
|
130
|
+
RebillyTimeoutError: pe,
|
|
131
|
+
RebillyCanceledError: fe
|
|
132
|
+
}, ye = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Re = (t = 21) => {
|
|
133
133
|
let e = "", s = t | 0;
|
|
134
|
-
for (; s-- > 0; ) e +=
|
|
134
|
+
for (; s-- > 0; ) e += ye[Math.random() * 64 | 0];
|
|
135
135
|
return e;
|
|
136
|
-
},
|
|
136
|
+
}, Ae = class {
|
|
137
137
|
constructor({ id: t = null, created: e = null } = {}) {
|
|
138
|
-
this.id = t ||
|
|
138
|
+
this.id = t || Re(), this.created = e || (/* @__PURE__ */ new Date()).getTime(), this.cancelSource = I.CancelToken.source(), this.cancel = this.cancelSource.cancel, this.cancelToken = this.cancelSource.token, q(this, { exclude: [
|
|
139
139
|
"cancelSource",
|
|
140
140
|
"cancelToken",
|
|
141
141
|
"cancel"
|
|
142
142
|
] });
|
|
143
143
|
}
|
|
144
|
-
},
|
|
144
|
+
}, be = class k {
|
|
145
145
|
constructor() {
|
|
146
146
|
if (k.instance) return k.instance;
|
|
147
147
|
this.requests = {}, k.instance = this;
|
|
@@ -156,13 +156,13 @@ var J = class {
|
|
|
156
156
|
this.requests[e] && delete this.requests[e];
|
|
157
157
|
}
|
|
158
158
|
save() {
|
|
159
|
-
const e = new
|
|
159
|
+
const e = new Ae();
|
|
160
160
|
return this.requests[e.id] = e, {
|
|
161
161
|
id: e.id,
|
|
162
162
|
cancelToken: e.cancelToken
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
|
-
}, v = new
|
|
165
|
+
}, v = new be(), W = class {
|
|
166
166
|
static cancelById = (t, e) => {
|
|
167
167
|
try {
|
|
168
168
|
v.getById(t).cancel(e), v.deleteById(t);
|
|
@@ -173,15 +173,15 @@ var J = class {
|
|
|
173
173
|
for (const e of v.getAll())
|
|
174
174
|
await e.cancel(t), v.deleteById(e.id);
|
|
175
175
|
};
|
|
176
|
-
},
|
|
177
|
-
function
|
|
176
|
+
}, Qs = { cancelAll: async (...t) => await W.cancelAll(...t) }, ve = /* @__PURE__ */ new Set(["links"]);
|
|
177
|
+
function we(t) {
|
|
178
178
|
if (Object.prototype.toString.call(t) !== "[object Object]") return !1;
|
|
179
179
|
const e = Object.getPrototypeOf(t);
|
|
180
180
|
return e === null || e === Object.prototype;
|
|
181
181
|
}
|
|
182
182
|
function S(t) {
|
|
183
183
|
if (Array.isArray(t)) return t.map((s) => S(s));
|
|
184
|
-
if (!
|
|
184
|
+
if (!we(t)) return t;
|
|
185
185
|
const e = {};
|
|
186
186
|
for (const s of Object.keys(t)) e[s] = S(t[s]);
|
|
187
187
|
return e;
|
|
@@ -205,7 +205,7 @@ function C({ options: t }) {
|
|
|
205
205
|
return {
|
|
206
206
|
baseURL: u(),
|
|
207
207
|
timeout: t.requestTimeout,
|
|
208
|
-
headers:
|
|
208
|
+
headers: o()
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
211
|
function u() {
|
|
@@ -213,35 +213,38 @@ function C({ options: t }) {
|
|
|
213
213
|
return t.apiVersion && (c = `${c}/${t.apiVersion}`), t.organizationId && (c = `${c}/organizations/${t.organizationId}`), `${c}`;
|
|
214
214
|
}
|
|
215
215
|
function l() {
|
|
216
|
-
|
|
216
|
+
return "f7c04b5";
|
|
217
|
+
}
|
|
218
|
+
function o() {
|
|
219
|
+
const c = [
|
|
217
220
|
"Rebilly",
|
|
218
221
|
t.appName,
|
|
219
222
|
"js-sdk"
|
|
220
|
-
].filter((
|
|
221
|
-
return t.apiKey && (
|
|
223
|
+
].filter((m) => m).join("/"), i = l(), a = { "REB-API-CONSUMER": i ? `${c}@${i}` : c };
|
|
224
|
+
return t.apiKey && (a["REB-APIKEY"] = t.apiKey), a;
|
|
222
225
|
}
|
|
223
|
-
function
|
|
226
|
+
function g() {
|
|
224
227
|
return S(e.defaults.headers);
|
|
225
228
|
}
|
|
226
|
-
function
|
|
229
|
+
function $(c) {
|
|
227
230
|
t.requestTimeout = Number(c), e.defaults.timeout = t.requestTimeout;
|
|
228
231
|
}
|
|
229
|
-
function
|
|
230
|
-
const i =
|
|
232
|
+
function w(c = t.jwt) {
|
|
233
|
+
const i = g();
|
|
231
234
|
t.apiKey = null, t.jwt = c, delete i.common["REB-APIKEY"], i.common.Authorization = `Bearer ${c}`, e.defaults.headers = i;
|
|
232
235
|
}
|
|
233
|
-
function
|
|
234
|
-
const i =
|
|
236
|
+
function d(c = t.publishableKey) {
|
|
237
|
+
const i = g();
|
|
235
238
|
t.publishableKey = c, i.common.Authorization = `${c}`, e.defaults.headers = i;
|
|
236
239
|
}
|
|
237
|
-
function
|
|
240
|
+
function T({ host: c, port: i, auth: a }) {
|
|
238
241
|
e.defaults.proxy = {
|
|
239
242
|
host: c,
|
|
240
243
|
port: i,
|
|
241
244
|
auth: a
|
|
242
245
|
};
|
|
243
246
|
}
|
|
244
|
-
function
|
|
247
|
+
function _({ live: c = null, sandbox: i = null }) {
|
|
245
248
|
c && (t.apiEndpoints.live = c), i && (t.apiEndpoints.sandbox = i), e.defaults.baseURL = u();
|
|
246
249
|
}
|
|
247
250
|
function M(c, { thenDelegate: i, catchDelegate: a = () => {
|
|
@@ -251,32 +254,32 @@ function C({ options: t }) {
|
|
|
251
254
|
function j(c, i) {
|
|
252
255
|
return U(c) && e.interceptors[R[c]].eject(i);
|
|
253
256
|
}
|
|
254
|
-
function
|
|
257
|
+
function Y({ thenDelegate: c, catchDelegate: i = () => {
|
|
255
258
|
} }) {
|
|
256
259
|
return M(R.request, {
|
|
257
260
|
thenDelegate: c,
|
|
258
261
|
catchDelegate: i
|
|
259
262
|
});
|
|
260
263
|
}
|
|
261
|
-
function
|
|
264
|
+
function Q(c) {
|
|
262
265
|
j(R.request, c);
|
|
263
266
|
}
|
|
264
|
-
function
|
|
267
|
+
function G({ thenDelegate: c, catchDelegate: i = () => {
|
|
265
268
|
} }) {
|
|
266
269
|
return M(R.response, {
|
|
267
270
|
thenDelegate: c,
|
|
268
271
|
catchDelegate: i
|
|
269
272
|
});
|
|
270
273
|
}
|
|
271
|
-
function
|
|
274
|
+
function X(c) {
|
|
272
275
|
j(R.response, c);
|
|
273
276
|
}
|
|
274
277
|
function b({ request: c, isCollection: i, config: a }) {
|
|
275
|
-
const m = F(a), { id: f, cancelToken:
|
|
276
|
-
m.cancelToken =
|
|
278
|
+
const m = F(a), { id: f, cancelToken: ue } = v.save();
|
|
279
|
+
m.cancelToken = ue;
|
|
277
280
|
const z = async function() {
|
|
278
281
|
try {
|
|
279
|
-
return
|
|
282
|
+
return Z({
|
|
280
283
|
response: await c(m),
|
|
281
284
|
isCollection: i,
|
|
282
285
|
config: m
|
|
@@ -292,8 +295,8 @@ function C({ options: t }) {
|
|
|
292
295
|
}();
|
|
293
296
|
return z.cancel = (E) => W.cancelById(f, E), z;
|
|
294
297
|
}
|
|
295
|
-
function
|
|
296
|
-
return i ? new
|
|
298
|
+
function Z({ response: c, isCollection: i, config: a }) {
|
|
299
|
+
return i ? new le(c, a) : new J(c, a);
|
|
297
300
|
}
|
|
298
301
|
function O({ error: c }) {
|
|
299
302
|
if (I.isCancel(c)) throw new h.RebillyCanceledError(c);
|
|
@@ -315,14 +318,14 @@ function C({ options: t }) {
|
|
|
315
318
|
}
|
|
316
319
|
throw c.code === "ECONNABORTED" ? new h.RebillyTimeoutError(c) : new h.RebillyRequestError(c);
|
|
317
320
|
}
|
|
318
|
-
function
|
|
319
|
-
return c.params !== void 0 && (c.params = Object.keys(c.params).filter((i) => c.params[i] !== null && (
|
|
321
|
+
function H(c) {
|
|
322
|
+
return c.params !== void 0 && (c.params = Object.keys(c.params).filter((i) => c.params[i] !== null && (ve.has(i) || c.params[i] !== "") && !(i === "sort" && c.params[i]?.length === 0)).reduce((i, a) => {
|
|
320
323
|
const m = c.params[a];
|
|
321
324
|
return i[a] = a === "sort" && Array.isArray(m) ? m.join(",") : m, i;
|
|
322
325
|
}, {})), c;
|
|
323
326
|
}
|
|
324
327
|
function F(c = {}) {
|
|
325
|
-
return { ...
|
|
328
|
+
return { ...H(c) };
|
|
326
329
|
}
|
|
327
330
|
function K(c, i = {}) {
|
|
328
331
|
return b({
|
|
@@ -330,7 +333,7 @@ function C({ options: t }) {
|
|
|
330
333
|
config: { params: i }
|
|
331
334
|
});
|
|
332
335
|
}
|
|
333
|
-
function
|
|
336
|
+
function ee(c, i) {
|
|
334
337
|
return b({
|
|
335
338
|
request: (a) => e.get(c, a),
|
|
336
339
|
config: { params: i },
|
|
@@ -339,7 +342,7 @@ function C({ options: t }) {
|
|
|
339
342
|
}
|
|
340
343
|
function N(c, i, a = {}) {
|
|
341
344
|
let m = {};
|
|
342
|
-
return a.authenticate === !1 && (m = { headers:
|
|
345
|
+
return a.authenticate === !1 && (m = { headers: g() }, delete m.headers.common["REB-APIKEY"], delete m.headers.common.Authorization), a.params && (m.params = { ...a.params }), b({
|
|
343
346
|
request: (f) => e.post(c, i, f),
|
|
344
347
|
config: m
|
|
345
348
|
});
|
|
@@ -350,7 +353,7 @@ function C({ options: t }) {
|
|
|
350
353
|
config: { params: a }
|
|
351
354
|
});
|
|
352
355
|
}
|
|
353
|
-
function
|
|
356
|
+
function te(c, i) {
|
|
354
357
|
return b({
|
|
355
358
|
request: (a) => e.patch(c, i, a),
|
|
356
359
|
config: {}
|
|
@@ -362,10 +365,10 @@ function C({ options: t }) {
|
|
|
362
365
|
config: i != null ? { data: i } : {}
|
|
363
366
|
});
|
|
364
367
|
}
|
|
365
|
-
function
|
|
368
|
+
function se(c, i) {
|
|
366
369
|
return L(c, i);
|
|
367
370
|
}
|
|
368
|
-
async function
|
|
371
|
+
async function ne(c, i, a, m = {}) {
|
|
369
372
|
if (i === "") return N(c, a, { params: m });
|
|
370
373
|
try {
|
|
371
374
|
if ((await K(c)).response.status === 200) throw new h.RebillyConflictError({ message: "A resource already exists with this ID. Please use a different ID." });
|
|
@@ -374,11 +377,11 @@ function C({ options: t }) {
|
|
|
374
377
|
throw f;
|
|
375
378
|
}
|
|
376
379
|
}
|
|
377
|
-
async function
|
|
380
|
+
async function re(c, i) {
|
|
378
381
|
const a = F(i);
|
|
379
382
|
try {
|
|
380
383
|
const m = await e.get(c, a);
|
|
381
|
-
return new
|
|
384
|
+
return new oe(m, a);
|
|
382
385
|
} catch (m) {
|
|
383
386
|
return O({
|
|
384
387
|
error: m,
|
|
@@ -388,32 +391,32 @@ function C({ options: t }) {
|
|
|
388
391
|
}
|
|
389
392
|
return {
|
|
390
393
|
getInstance: n,
|
|
391
|
-
addRequestInterceptor:
|
|
392
|
-
removeRequestInterceptor:
|
|
393
|
-
addResponseInterceptor:
|
|
394
|
-
removeResponseInterceptor:
|
|
395
|
-
setTimeout:
|
|
396
|
-
setProxyAgent:
|
|
397
|
-
setSessionToken:
|
|
398
|
-
setPublishableKey:
|
|
399
|
-
setEndpoints:
|
|
394
|
+
addRequestInterceptor: Y,
|
|
395
|
+
removeRequestInterceptor: Q,
|
|
396
|
+
addResponseInterceptor: G,
|
|
397
|
+
removeResponseInterceptor: X,
|
|
398
|
+
setTimeout: $,
|
|
399
|
+
setProxyAgent: T,
|
|
400
|
+
setSessionToken: w,
|
|
401
|
+
setPublishableKey: d,
|
|
402
|
+
setEndpoints: _,
|
|
400
403
|
get: K,
|
|
401
|
-
getAll:
|
|
404
|
+
getAll: ee,
|
|
402
405
|
post: N,
|
|
403
406
|
put: B,
|
|
404
|
-
patch:
|
|
407
|
+
patch: te,
|
|
405
408
|
delete: L,
|
|
406
|
-
deleteAll:
|
|
407
|
-
create:
|
|
408
|
-
download:
|
|
409
|
+
deleteAll: se,
|
|
410
|
+
create: ne,
|
|
411
|
+
download: re
|
|
409
412
|
};
|
|
410
413
|
}
|
|
411
|
-
function
|
|
414
|
+
function ke({ apiHandler: t }) {
|
|
412
415
|
return { forgotPassword({ data: e }) {
|
|
413
416
|
return t.post("forgot-password", e, { authenticate: !1 });
|
|
414
417
|
} };
|
|
415
418
|
}
|
|
416
|
-
function
|
|
419
|
+
function qe({ apiHandler: t }) {
|
|
417
420
|
return {
|
|
418
421
|
getAllowlistCollection({ filter: e = null, sort: s = null, limit: n = null, offset: r = null } = {}) {
|
|
419
422
|
const u = {
|
|
@@ -435,7 +438,7 @@ function ke({ apiHandler: t }) {
|
|
|
435
438
|
}
|
|
436
439
|
};
|
|
437
440
|
}
|
|
438
|
-
function
|
|
441
|
+
function de({ apiHandler: t }) {
|
|
439
442
|
return {
|
|
440
443
|
getAll({ limit: e = null, offset: s = null, sort: n = null, filter: r = null, q: u = null } = {}) {
|
|
441
444
|
const l = {
|
|
@@ -461,7 +464,7 @@ function qe({ apiHandler: t }) {
|
|
|
461
464
|
}
|
|
462
465
|
};
|
|
463
466
|
}
|
|
464
|
-
function
|
|
467
|
+
function Te({ apiHandler: t }) {
|
|
465
468
|
return {
|
|
466
469
|
getAmlSettings() {
|
|
467
470
|
return t.get("aml-settings");
|
|
@@ -471,7 +474,7 @@ function de({ apiHandler: t }) {
|
|
|
471
474
|
}
|
|
472
475
|
};
|
|
473
476
|
}
|
|
474
|
-
function
|
|
477
|
+
function Ee({ apiHandler: t }) {
|
|
475
478
|
return {
|
|
476
479
|
getAll({ filter: e = null, sort: s = null, limit: n = null, offset: r = null } = {}) {
|
|
477
480
|
const u = {
|
|
@@ -496,7 +499,7 @@ function Te({ apiHandler: t }) {
|
|
|
496
499
|
}
|
|
497
500
|
};
|
|
498
501
|
}
|
|
499
|
-
function
|
|
502
|
+
function Ie({ apiHandler: t }) {
|
|
500
503
|
return {
|
|
501
504
|
get({ applicationId: e }) {
|
|
502
505
|
return t.get(`application-instances/${e}`);
|
|
@@ -515,7 +518,7 @@ function Ee({ apiHandler: t }) {
|
|
|
515
518
|
}
|
|
516
519
|
};
|
|
517
520
|
}
|
|
518
|
-
function
|
|
521
|
+
function Se({ apiHandler: t }) {
|
|
519
522
|
return {
|
|
520
523
|
getAll({ limit: e = null, offset: s = null, filter: n = null, q: r = null, expand: u = null, fields: l = null, sort: o = null } = {}) {
|
|
521
524
|
const g = {
|
|
@@ -547,7 +550,7 @@ function Ie({ apiHandler: t }) {
|
|
|
547
550
|
}
|
|
548
551
|
};
|
|
549
552
|
}
|
|
550
|
-
function
|
|
553
|
+
function Pe({ apiHandler: t }) {
|
|
551
554
|
return {
|
|
552
555
|
getAll({ limit: e = null, offset: s = null, filter: n = null, sort: r = null } = {}) {
|
|
553
556
|
const u = {
|
|
@@ -563,7 +566,7 @@ function Se({ apiHandler: t }) {
|
|
|
563
566
|
}
|
|
564
567
|
};
|
|
565
568
|
}
|
|
566
|
-
function
|
|
569
|
+
function Ce({ apiHandler: t }) {
|
|
567
570
|
return {
|
|
568
571
|
getAll({ limit: e = null, offset: s = null, sort: n = null, filter: r = null, q: u = null } = {}) {
|
|
569
572
|
const l = {
|
|
@@ -589,7 +592,7 @@ function Pe({ apiHandler: t }) {
|
|
|
589
592
|
}
|
|
590
593
|
};
|
|
591
594
|
}
|
|
592
|
-
function
|
|
595
|
+
function xe({ apiHandler: t }) {
|
|
593
596
|
return {
|
|
594
597
|
getAll({ limit: e = null, offset: s = null, sort: n = null, filter: r = null, q: u = null } = {}) {
|
|
595
598
|
const l = {
|
|
@@ -612,7 +615,7 @@ function Ce({ apiHandler: t }) {
|
|
|
612
615
|
}
|
|
613
616
|
};
|
|
614
617
|
}
|
|
615
|
-
function
|
|
618
|
+
function De({ apiHandler: t }) {
|
|
616
619
|
return {
|
|
617
620
|
getAll({ limit: e = null, offset: s = null, sort: n = null, filter: r = null } = {}) {
|
|
618
621
|
const u = {
|
|
@@ -637,7 +640,7 @@ function xe({ apiHandler: t }) {
|
|
|
637
640
|
}
|
|
638
641
|
};
|
|
639
642
|
}
|
|
640
|
-
function
|
|
643
|
+
function Me({ apiHandler: t }) {
|
|
641
644
|
return {
|
|
642
645
|
create({ data: e }) {
|
|
643
646
|
return t.post("cashiers", e);
|
|
@@ -647,7 +650,7 @@ function De({ apiHandler: t }) {
|
|
|
647
650
|
}
|
|
648
651
|
};
|
|
649
652
|
}
|
|
650
|
-
function
|
|
653
|
+
function je({ apiHandler: t }) {
|
|
651
654
|
return {
|
|
652
655
|
getAll({ limit: e = null, offset: s = null, sort: n = null, filter: r = null, q: u = null } = {}) {
|
|
653
656
|
const l = {
|
|
@@ -673,7 +676,7 @@ function Me({ apiHandler: t }) {
|
|
|
673
676
|
}
|
|
674
677
|
};
|
|
675
678
|
}
|
|
676
|
-
function
|
|
679
|
+
function Oe({ apiHandler: t }) {
|
|
677
680
|
return {
|
|
678
681
|
getAllRedemptions({ limit: e = null, offset: s = null, filter: n = null, q: r = null, sort: u = null } = {}) {
|
|
679
682
|
const l = {
|
|
@@ -719,7 +722,7 @@ function je({ apiHandler: t }) {
|
|
|
719
722
|
};
|
|
720
723
|
}
|
|
721
724
|
var A = { Accept: "application/pdf" };
|
|
722
|
-
function
|
|
725
|
+
function Fe({ apiHandler: t }) {
|
|
723
726
|
return {
|
|
724
727
|
getAll({ filter: e = null, sort: s = null, limit: n = null, offset: r = null, q: u = null, expand: l = null } = {}) {
|
|
725
728
|
const o = {
|
|
@@ -778,7 +781,7 @@ function Oe({ apiHandler: t }) {
|
|
|
778
781
|
}
|
|
779
782
|
};
|
|
780
783
|
}
|
|
781
|
-
function
|
|
784
|
+
function Ke({ apiHandler: t }) {
|
|
782
785
|
return {
|
|
783
786
|
getAll({ limit: e = null, offset: s = null, sort: n = null, filter: r = null, q: u = null } = {}) {
|
|
784
787
|
const l = {
|
|
@@ -801,7 +804,7 @@ function Fe({ apiHandler: t }) {
|
|
|
801
804
|
}
|
|
802
805
|
};
|
|
803
806
|
}
|
|
804
|
-
function
|
|
807
|
+
function Ne({ apiHandler: t }) {
|
|
805
808
|
return {
|
|
806
809
|
getAll({ resource: e, limit: s = null, offset: n = null }) {
|
|
807
810
|
const r = {
|
|
@@ -821,7 +824,7 @@ function Ke({ apiHandler: t }) {
|
|
|
821
824
|
}
|
|
822
825
|
};
|
|
823
826
|
}
|
|
824
|
-
function
|
|
827
|
+
function Be({ apiHandler: t }) {
|
|
825
828
|
return {
|
|
826
829
|
getAuthOptions() {
|
|
827
830
|
return t.get("authentication-options");
|
|
@@ -885,7 +888,7 @@ function Ne({ apiHandler: t }) {
|
|
|
885
888
|
}
|
|
886
889
|
};
|
|
887
890
|
}
|
|
888
|
-
function
|
|
891
|
+
function Le({ apiHandler: t }) {
|
|
889
892
|
return {
|
|
890
893
|
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
894
|
const $ = {
|
|
@@ -957,7 +960,7 @@ function Be({ apiHandler: t }) {
|
|
|
957
960
|
}
|
|
958
961
|
};
|
|
959
962
|
}
|
|
960
|
-
function
|
|
963
|
+
function ze({ apiHandler: t }) {
|
|
961
964
|
return {
|
|
962
965
|
getAll({ limit: e = null, offset: s = null, filter: n = null, sort: r = null, expand: u = null } = {}) {
|
|
963
966
|
const l = {
|
|
@@ -978,7 +981,7 @@ function Le({ apiHandler: t }) {
|
|
|
978
981
|
}
|
|
979
982
|
};
|
|
980
983
|
}
|
|
981
|
-
function
|
|
984
|
+
function Ve({ apiHandler: t }) {
|
|
982
985
|
return {
|
|
983
986
|
getAll({ limit: e = null, offset: s = null, filter: n = null, sort: r = null } = {}) {
|
|
984
987
|
const u = {
|
|
@@ -1003,7 +1006,7 @@ function ze({ apiHandler: t }) {
|
|
|
1003
1006
|
}
|
|
1004
1007
|
};
|
|
1005
1008
|
}
|
|
1006
|
-
function
|
|
1009
|
+
function Ue({ apiHandler: t }) {
|
|
1007
1010
|
return {
|
|
1008
1011
|
validate({ data: e }) {
|
|
1009
1012
|
return t.post("digital-wallets/validation", e);
|
|
@@ -1019,7 +1022,7 @@ function Ve({ apiHandler: t }) {
|
|
|
1019
1022
|
}
|
|
1020
1023
|
};
|
|
1021
1024
|
}
|
|
1022
|
-
function
|
|
1025
|
+
function Je({ apiHandler: t }) {
|
|
1023
1026
|
return {
|
|
1024
1027
|
getAll({ filter: e = null, sort: s = null, limit: n = null, offset: r = null, q: u = null, expand: l = null } = {}) {
|
|
1025
1028
|
const o = {
|
|
@@ -1045,7 +1048,7 @@ function Ue({ apiHandler: t }) {
|
|
|
1045
1048
|
}
|
|
1046
1049
|
};
|
|
1047
1050
|
}
|
|
1048
|
-
function
|
|
1051
|
+
function We({ apiHandler: t }) {
|
|
1049
1052
|
return {
|
|
1050
1053
|
verify({ token: e }) {
|
|
1051
1054
|
return t.put(`email-delivery-setting-verifications/${e}`);
|
|
@@ -1077,7 +1080,7 @@ function Je({ apiHandler: t }) {
|
|
|
1077
1080
|
}
|
|
1078
1081
|
};
|
|
1079
1082
|
}
|
|
1080
|
-
function
|
|
1083
|
+
function _e({ apiHandler: t }) {
|
|
1081
1084
|
return {
|
|
1082
1085
|
getAll({ limit: e = null, offset: s = null, q: n = null, sort: r = null, filter: u = null } = {}) {
|
|
1083
1086
|
const l = {
|
|
@@ -1103,7 +1106,7 @@ function We({ apiHandler: t }) {
|
|
|
1103
1106
|
}
|
|
1104
1107
|
};
|
|
1105
1108
|
}
|
|
1106
|
-
function
|
|
1109
|
+
function Ye({ apiHandler: t }) {
|
|
1107
1110
|
return { getAll({ limit: e = null, offset: s = null } = {}) {
|
|
1108
1111
|
const n = {
|
|
1109
1112
|
limit: e,
|
|
@@ -1112,7 +1115,7 @@ function _e({ apiHandler: t }) {
|
|
|
1112
1115
|
return t.getAll("email-notifications", n);
|
|
1113
1116
|
} };
|
|
1114
1117
|
}
|
|
1115
|
-
function
|
|
1118
|
+
function Qe({ apiHandler: t }) {
|
|
1116
1119
|
return {
|
|
1117
1120
|
getAll({ limit: e = null, offset: s = null, filter: n = null, q: r = null } = {}) {
|
|
1118
1121
|
const u = {
|
|
@@ -1199,7 +1202,7 @@ function Ye({ apiHandler: t }) {
|
|
|
1199
1202
|
}
|
|
1200
1203
|
};
|
|
1201
1204
|
}
|
|
1202
|
-
function
|
|
1205
|
+
function Ge({ apiHandler: t }) {
|
|
1203
1206
|
return {
|
|
1204
1207
|
get({ resource: e, resourceId: s, service: n }) {
|
|
1205
1208
|
return t.get(`${e}/${s}/external-identifiers/${n}`);
|
|
@@ -1215,7 +1218,7 @@ function Qe({ apiHandler: t }) {
|
|
|
1215
1218
|
}
|
|
1216
1219
|
};
|
|
1217
1220
|
}
|
|
1218
|
-
function
|
|
1221
|
+
function Xe({ apiHandler: t }) {
|
|
1219
1222
|
return {
|
|
1220
1223
|
getExternalServiceSettings() {
|
|
1221
1224
|
return t.get("external-services-settings");
|
|
@@ -1225,7 +1228,7 @@ function Ge({ apiHandler: t }) {
|
|
|
1225
1228
|
}
|
|
1226
1229
|
};
|
|
1227
1230
|
}
|
|
1228
|
-
function
|
|
1231
|
+
function Ze({ apiHandler: t }) {
|
|
1229
1232
|
return {
|
|
1230
1233
|
getAll({ limit: e = null, offset: s = null, filter: n = null, sort: r = null } = {}) {
|
|
1231
1234
|
const u = {
|
|
@@ -1253,7 +1256,7 @@ function Xe({ apiHandler: t }) {
|
|
|
1253
1256
|
}
|
|
1254
1257
|
};
|
|
1255
1258
|
}
|
|
1256
|
-
function
|
|
1259
|
+
function He({ apiHandler: t }) {
|
|
1257
1260
|
return {
|
|
1258
1261
|
getAllAttachments({ limit: e = null, offset: s = null, filter: n = null, q: r = null, fields: u = null, sort: l = null } = {}) {
|
|
1259
1262
|
const o = {
|
|
@@ -1344,7 +1347,7 @@ function Ze({ apiHandler: t }) {
|
|
|
1344
1347
|
}
|
|
1345
1348
|
};
|
|
1346
1349
|
}
|
|
1347
|
-
function
|
|
1350
|
+
function et({ apiHandler: t }) {
|
|
1348
1351
|
return {
|
|
1349
1352
|
getAll({ limit: e = null, offset: s = null, sort: n = null, filter: r = null, q: u = null, fields: l = null } = {}) {
|
|
1350
1353
|
const o = {
|
|
@@ -1444,7 +1447,7 @@ function He({ apiHandler: t }) {
|
|
|
1444
1447
|
}
|
|
1445
1448
|
};
|
|
1446
1449
|
}
|
|
1447
|
-
function
|
|
1450
|
+
function tt({ apiHandler: t }) {
|
|
1448
1451
|
return {
|
|
1449
1452
|
getAll({ limit: e = null, offset: s = null } = {}) {
|
|
1450
1453
|
const n = {
|
|
@@ -1458,7 +1461,7 @@ function et({ apiHandler: t }) {
|
|
|
1458
1461
|
}
|
|
1459
1462
|
};
|
|
1460
1463
|
}
|
|
1461
|
-
function
|
|
1464
|
+
function st({ apiHandler: t }) {
|
|
1462
1465
|
return {
|
|
1463
1466
|
getAll({ filter: e = null, sort: s = null, limit: n = null, offset: r = null, q: u = null, expand: l = null, links: o = null } = {}) {
|
|
1464
1467
|
const g = {
|
|
@@ -1558,7 +1561,7 @@ function tt({ apiHandler: t }) {
|
|
|
1558
1561
|
}
|
|
1559
1562
|
};
|
|
1560
1563
|
}
|
|
1561
|
-
function
|
|
1564
|
+
function nt({ apiHandler: t }) {
|
|
1562
1565
|
return {
|
|
1563
1566
|
getAllAccounts({ limit: e = null, offset: s = null, filter: n = null, sort: r = null } = {}) {
|
|
1564
1567
|
const u = {
|
|
@@ -1580,7 +1583,7 @@ function st({ apiHandler: t }) {
|
|
|
1580
1583
|
}
|
|
1581
1584
|
};
|
|
1582
1585
|
}
|
|
1583
|
-
function
|
|
1586
|
+
function rt({ apiHandler: t }) {
|
|
1584
1587
|
return {
|
|
1585
1588
|
getAllEntries({ limit: e = null, offset: s = null, filter: n = null, sort: r = null } = {}) {
|
|
1586
1589
|
const u = {
|
|
@@ -1602,7 +1605,7 @@ function nt({ apiHandler: t }) {
|
|
|
1602
1605
|
}
|
|
1603
1606
|
};
|
|
1604
1607
|
}
|
|
1605
|
-
function
|
|
1608
|
+
function ut({ apiHandler: t }) {
|
|
1606
1609
|
return {
|
|
1607
1610
|
getAll({ limit: e = null, offset: s = null, filter: n = null, sort: r = null, expand: u = null } = {}) {
|
|
1608
1611
|
const l = {
|
|
@@ -1628,7 +1631,7 @@ function rt({ apiHandler: t }) {
|
|
|
1628
1631
|
}
|
|
1629
1632
|
};
|
|
1630
1633
|
}
|
|
1631
|
-
function
|
|
1634
|
+
function lt({ apiHandler: t }) {
|
|
1632
1635
|
return {
|
|
1633
1636
|
getAll({ limit: e = null, offset: s = null, filter: n = null, sort: r = null, expand: u = null, links: l = null } = {}) {
|
|
1634
1637
|
const o = {
|
|
@@ -1670,7 +1673,7 @@ function ut({ apiHandler: t }) {
|
|
|
1670
1673
|
}
|
|
1671
1674
|
};
|
|
1672
1675
|
}
|
|
1673
|
-
function
|
|
1676
|
+
function ot({ apiHandler: t }) {
|
|
1674
1677
|
return {
|
|
1675
1678
|
getAll({ limit: e = null, offset: s = null, filter: n = null, sort: r = null, expand: u = null } = {}) {
|
|
1676
1679
|
const l = {
|
|
@@ -1696,7 +1699,7 @@ function lt({ apiHandler: t }) {
|
|
|
1696
1699
|
}
|
|
1697
1700
|
};
|
|
1698
1701
|
}
|
|
1699
|
-
function
|
|
1702
|
+
function ct({ apiHandler: t }) {
|
|
1700
1703
|
return {
|
|
1701
1704
|
getKycSettings() {
|
|
1702
1705
|
return t.get("kyc-settings");
|
|
@@ -1709,7 +1712,7 @@ function ot({ apiHandler: t }) {
|
|
|
1709
1712
|
}
|
|
1710
1713
|
};
|
|
1711
1714
|
}
|
|
1712
|
-
function
|
|
1715
|
+
function it({ apiHandler: t }) {
|
|
1713
1716
|
return {
|
|
1714
1717
|
getAll({ limit: e = null, offset: s = null, filter: n = null, sort: r = null, fields: u = null, q: l = null } = {}) {
|
|
1715
1718
|
const o = {
|
|
@@ -1739,7 +1742,7 @@ function ct({ apiHandler: t }) {
|
|
|
1739
1742
|
}
|
|
1740
1743
|
};
|
|
1741
1744
|
}
|
|
1742
|
-
function
|
|
1745
|
+
function gt({ apiHandler: t }) {
|
|
1743
1746
|
return {
|
|
1744
1747
|
getAll({ limit: e = null, offset: s = null, filter: n = null, sort: r = null } = {}) {
|
|
1745
1748
|
const u = {
|
|
@@ -1767,7 +1770,7 @@ function it({ apiHandler: t }) {
|
|
|
1767
1770
|
}
|
|
1768
1771
|
};
|
|
1769
1772
|
}
|
|
1770
|
-
function
|
|
1773
|
+
function at({ apiHandler: t }) {
|
|
1771
1774
|
return {
|
|
1772
1775
|
getAll({ limit: e = null, offset: s = null, filter: n = null, sort: r = null } = {}) {
|
|
1773
1776
|
const u = {
|
|
@@ -1792,7 +1795,7 @@ function gt({ apiHandler: t }) {
|
|
|
1792
1795
|
}
|
|
1793
1796
|
};
|
|
1794
1797
|
}
|
|
1795
|
-
function
|
|
1798
|
+
function mt({ apiHandler: t }) {
|
|
1796
1799
|
return {
|
|
1797
1800
|
getAll({ limit: e = null, offset: s = null, filter: n = null, sort: r = null } = {}) {
|
|
1798
1801
|
const u = {
|
|
@@ -1817,7 +1820,7 @@ function at({ apiHandler: t }) {
|
|
|
1817
1820
|
}
|
|
1818
1821
|
};
|
|
1819
1822
|
}
|
|
1820
|
-
function
|
|
1823
|
+
function $t({ apiHandler: t }) {
|
|
1821
1824
|
return {
|
|
1822
1825
|
getAll({ limit: e = null, offset: s = null, filter: n = null, sort: r = null } = {}) {
|
|
1823
1826
|
const u = {
|
|
@@ -1836,7 +1839,7 @@ function mt({ apiHandler: t }) {
|
|
|
1836
1839
|
}
|
|
1837
1840
|
};
|
|
1838
1841
|
}
|
|
1839
|
-
function
|
|
1842
|
+
function ht({ apiHandler: t }) {
|
|
1840
1843
|
return {
|
|
1841
1844
|
getAll({ filter: e = null, sort: s = null, limit: n = null, offset: r = null, q: u = null, expand: l = null, links: o = null } = {}) {
|
|
1842
1845
|
const g = {
|
|
@@ -1884,7 +1887,7 @@ function $t({ apiHandler: t }) {
|
|
|
1884
1887
|
}
|
|
1885
1888
|
};
|
|
1886
1889
|
}
|
|
1887
|
-
function
|
|
1890
|
+
function pt({ apiHandler: t }) {
|
|
1888
1891
|
return { getAll({ filter: e = null, sort: s = null, limit: n = null, offset: r = null } = {}) {
|
|
1889
1892
|
const u = {
|
|
1890
1893
|
filter: e,
|
|
@@ -1895,7 +1898,7 @@ function ht({ apiHandler: t }) {
|
|
|
1895
1898
|
return t.getAll("organization-api-keys", u);
|
|
1896
1899
|
} };
|
|
1897
1900
|
}
|
|
1898
|
-
function
|
|
1901
|
+
function ft({ apiHandler: t }) {
|
|
1899
1902
|
return {
|
|
1900
1903
|
getAll({ limit: e = null, offset: s = null, filter: n = null, q: r = null, sort: u = null } = {}) {
|
|
1901
1904
|
const l = {
|
|
@@ -1915,7 +1918,7 @@ function pt({ apiHandler: t }) {
|
|
|
1915
1918
|
}
|
|
1916
1919
|
};
|
|
1917
1920
|
}
|
|
1918
|
-
function
|
|
1921
|
+
function yt({ apiHandler: t }) {
|
|
1919
1922
|
return {
|
|
1920
1923
|
getAll({ limit: e = null, offset: s = null, filter: n = null, sort: r = null, q: u = null } = {}) {
|
|
1921
1924
|
const l = {
|
|
@@ -1938,7 +1941,7 @@ function ft({ apiHandler: t }) {
|
|
|
1938
1941
|
}
|
|
1939
1942
|
};
|
|
1940
1943
|
}
|
|
1941
|
-
function
|
|
1944
|
+
function Rt({ apiHandler: t }) {
|
|
1942
1945
|
return { getAll({ limit: e = null, q: s = null } = {}) {
|
|
1943
1946
|
const n = {
|
|
1944
1947
|
limit: e,
|
|
@@ -1947,7 +1950,7 @@ function yt({ apiHandler: t }) {
|
|
|
1947
1950
|
return t.getAll("payment-cards-bank-names", n);
|
|
1948
1951
|
} };
|
|
1949
1952
|
}
|
|
1950
|
-
function
|
|
1953
|
+
function At({ apiHandler: t }) {
|
|
1951
1954
|
return {
|
|
1952
1955
|
getAll({ filter: e = null, sort: s = null, limit: n = null, offset: r = null, q: u = null, expand: l = null } = {}) {
|
|
1953
1956
|
const o = {
|
|
@@ -1977,7 +1980,7 @@ function Rt({ apiHandler: t }) {
|
|
|
1977
1980
|
}
|
|
1978
1981
|
};
|
|
1979
1982
|
}
|
|
1980
|
-
function
|
|
1983
|
+
function bt({ apiHandler: t }) {
|
|
1981
1984
|
return {
|
|
1982
1985
|
getAll({ limit: e = null, offset: s = null } = {}) {
|
|
1983
1986
|
const n = {
|
|
@@ -1991,7 +1994,7 @@ function At({ apiHandler: t }) {
|
|
|
1991
1994
|
}
|
|
1992
1995
|
};
|
|
1993
1996
|
}
|
|
1994
|
-
function
|
|
1997
|
+
function vt({ apiHandler: t }) {
|
|
1995
1998
|
return {
|
|
1996
1999
|
create({ data: e }) {
|
|
1997
2000
|
return t.post("tokens", e);
|
|
@@ -2001,12 +2004,12 @@ function bt({ apiHandler: t }) {
|
|
|
2001
2004
|
}
|
|
2002
2005
|
};
|
|
2003
2006
|
}
|
|
2004
|
-
function
|
|
2007
|
+
function wt({ apiHandler: t }) {
|
|
2005
2008
|
return { create({ data: e }) {
|
|
2006
2009
|
return t.post("payout-request-allocation-operations", e);
|
|
2007
2010
|
} };
|
|
2008
2011
|
}
|
|
2009
|
-
function
|
|
2012
|
+
function kt({ apiHandler: t }) {
|
|
2010
2013
|
return {
|
|
2011
2014
|
getAll({ limit: e = null, offset: s = null, filter: n = null, sort: r = null } = {}) {
|
|
2012
2015
|
const u = {
|
|
@@ -2028,22 +2031,22 @@ function wt({ apiHandler: t }) {
|
|
|
2028
2031
|
}
|
|
2029
2032
|
};
|
|
2030
2033
|
}
|
|
2031
|
-
function
|
|
2034
|
+
function qt({ apiHandler: t }) {
|
|
2032
2035
|
return { create({ data: e }) {
|
|
2033
2036
|
return t.post("payout-request-auto-allocations", e);
|
|
2034
2037
|
} };
|
|
2035
2038
|
}
|
|
2036
|
-
function
|
|
2039
|
+
function dt({ apiHandler: t }) {
|
|
2037
2040
|
return { create({ data: e }) {
|
|
2038
2041
|
return t.post("payout-request-batch-operations", e);
|
|
2039
2042
|
} };
|
|
2040
2043
|
}
|
|
2041
|
-
function
|
|
2044
|
+
function Tt({ apiHandler: t }) {
|
|
2042
2045
|
return { create({ data: e }) {
|
|
2043
2046
|
return t.post("payout-request-batch-previews", e);
|
|
2044
2047
|
} };
|
|
2045
2048
|
}
|
|
2046
|
-
function
|
|
2049
|
+
function Et({ apiHandler: t }) {
|
|
2047
2050
|
return {
|
|
2048
2051
|
getAll({ limit: e = null, offset: s = null, q: n = null, filter: r = null, sort: u = null } = {}) {
|
|
2049
2052
|
const l = {
|
|
@@ -2069,12 +2072,12 @@ function Tt({ apiHandler: t }) {
|
|
|
2069
2072
|
}
|
|
2070
2073
|
};
|
|
2071
2074
|
}
|
|
2072
|
-
function
|
|
2075
|
+
function It({ apiHandler: t }) {
|
|
2073
2076
|
return { create({ data: e }) {
|
|
2074
2077
|
return t.post("payout-request-splits", e);
|
|
2075
2078
|
} };
|
|
2076
2079
|
}
|
|
2077
|
-
function
|
|
2080
|
+
function St({ apiHandler: t }) {
|
|
2078
2081
|
return {
|
|
2079
2082
|
getAll({ limit: e = null, offset: s = null, filter: n = null, sort: r = null } = {}) {
|
|
2080
2083
|
const u = {
|
|
@@ -2121,12 +2124,12 @@ function It({ apiHandler: t }) {
|
|
|
2121
2124
|
}
|
|
2122
2125
|
};
|
|
2123
2126
|
}
|
|
2124
|
-
function
|
|
2127
|
+
function Pt({ apiHandler: t }) {
|
|
2125
2128
|
return { create({ data: e }) {
|
|
2126
2129
|
return t.post("payouts", e);
|
|
2127
2130
|
} };
|
|
2128
2131
|
}
|
|
2129
|
-
function
|
|
2132
|
+
function Ct({ apiHandler: t }) {
|
|
2130
2133
|
return {
|
|
2131
2134
|
getAll({ filter: e = null, sort: s = null, limit: n = null, offset: r = null, q: u = null } = {}) {
|
|
2132
2135
|
const l = {
|
|
@@ -2152,7 +2155,7 @@ function Pt({ apiHandler: t }) {
|
|
|
2152
2155
|
}
|
|
2153
2156
|
};
|
|
2154
2157
|
}
|
|
2155
|
-
function
|
|
2158
|
+
function xt({ apiHandler: t }) {
|
|
2156
2159
|
return {
|
|
2157
2160
|
order({ data: e }) {
|
|
2158
2161
|
return t.post("previews/orders", e);
|
|
@@ -2165,7 +2168,7 @@ function Ct({ apiHandler: t }) {
|
|
|
2165
2168
|
}
|
|
2166
2169
|
};
|
|
2167
2170
|
}
|
|
2168
|
-
function
|
|
2171
|
+
function Dt({ apiHandler: t }) {
|
|
2169
2172
|
return {
|
|
2170
2173
|
getAll({ filter: e = null, sort: s = null, limit: n = null, offset: r = null, q: u = null } = {}) {
|
|
2171
2174
|
const l = {
|
|
@@ -2191,7 +2194,7 @@ function xt({ apiHandler: t }) {
|
|
|
2191
2194
|
}
|
|
2192
2195
|
};
|
|
2193
2196
|
}
|
|
2194
|
-
function
|
|
2197
|
+
function Mt({ apiHandler: t }) {
|
|
2195
2198
|
return {
|
|
2196
2199
|
startPermissionsEmulation({ data: e }) {
|
|
2197
2200
|
return t.post("permissions-emulation", e);
|
|
@@ -2220,12 +2223,12 @@ function Dt({ apiHandler: t }) {
|
|
|
2220
2223
|
}
|
|
2221
2224
|
};
|
|
2222
2225
|
}
|
|
2223
|
-
function
|
|
2226
|
+
function jt({ apiHandler: t }) {
|
|
2224
2227
|
return { readyToPay({ data: e }) {
|
|
2225
2228
|
return t.post("ready-to-pay", e);
|
|
2226
2229
|
} };
|
|
2227
2230
|
}
|
|
2228
|
-
function
|
|
2231
|
+
function Ot({ apiHandler: t }) {
|
|
2229
2232
|
return {
|
|
2230
2233
|
getAll({ filter: e = null, sort: s = null, limit: n = null, offset: r = null, expand: u = null } = {}) {
|
|
2231
2234
|
const l = {
|
|
@@ -2296,12 +2299,12 @@ function jt({ apiHandler: t }) {
|
|
|
2296
2299
|
}
|
|
2297
2300
|
};
|
|
2298
2301
|
}
|
|
2299
|
-
function
|
|
2302
|
+
function Ft({ apiHandler: t }) {
|
|
2300
2303
|
return { getEnabled() {
|
|
2301
2304
|
return t.get("release-flags");
|
|
2302
2305
|
} };
|
|
2303
2306
|
}
|
|
2304
|
-
function
|
|
2307
|
+
function Kt({ apiHandler: t }) {
|
|
2305
2308
|
return {
|
|
2306
2309
|
get({ resource: e, resourceId: s, service: n }) {
|
|
2307
2310
|
return t.get(`${e}/${s}/external-identifiers/${n}`);
|
|
@@ -2317,7 +2320,7 @@ function Ft({ apiHandler: t }) {
|
|
|
2317
2320
|
}
|
|
2318
2321
|
};
|
|
2319
2322
|
}
|
|
2320
|
-
function
|
|
2323
|
+
function Nt({ apiHandler: t }) {
|
|
2321
2324
|
return {
|
|
2322
2325
|
getAll() {
|
|
2323
2326
|
return t.get("risk-score-rules");
|
|
@@ -2333,7 +2336,7 @@ function Kt({ apiHandler: t }) {
|
|
|
2333
2336
|
}
|
|
2334
2337
|
};
|
|
2335
2338
|
}
|
|
2336
|
-
function
|
|
2339
|
+
function Bt({ apiHandler: t }) {
|
|
2337
2340
|
return {
|
|
2338
2341
|
getAll({ limit: e = null, offset: s = null, filter: n = null, sort: r = null, q: u = null, expand: l = null } = {}) {
|
|
2339
2342
|
const o = {
|
|
@@ -2361,7 +2364,7 @@ function Nt({ apiHandler: t }) {
|
|
|
2361
2364
|
}
|
|
2362
2365
|
};
|
|
2363
2366
|
}
|
|
2364
|
-
function
|
|
2367
|
+
function Lt({ apiHandler: t }) {
|
|
2365
2368
|
return { get({ sort: e = null, limit: s = null, offset: n = null, q: r }) {
|
|
2366
2369
|
const u = {
|
|
2367
2370
|
sort: e,
|
|
@@ -2372,7 +2375,7 @@ function Bt({ apiHandler: t }) {
|
|
|
2372
2375
|
return t.get("search", u);
|
|
2373
2376
|
} };
|
|
2374
2377
|
}
|
|
2375
|
-
function
|
|
2378
|
+
function zt({ apiHandler: t }) {
|
|
2376
2379
|
return {
|
|
2377
2380
|
get() {
|
|
2378
2381
|
return t.get("security-settings");
|
|
@@ -2382,7 +2385,7 @@ function Lt({ apiHandler: t }) {
|
|
|
2382
2385
|
}
|
|
2383
2386
|
};
|
|
2384
2387
|
}
|
|
2385
|
-
function
|
|
2388
|
+
function Vt({ apiHandler: t }) {
|
|
2386
2389
|
return {
|
|
2387
2390
|
getAll({ limit: e = null, offset: s = null, sort: n = null, filter: r = null, q: u = null } = {}) {
|
|
2388
2391
|
const l = {
|
|
@@ -2408,12 +2411,12 @@ function zt({ apiHandler: t }) {
|
|
|
2408
2411
|
}
|
|
2409
2412
|
};
|
|
2410
2413
|
}
|
|
2411
|
-
function
|
|
2414
|
+
function Ut({ apiHandler: t }) {
|
|
2412
2415
|
return { getAll({ eventType: e }) {
|
|
2413
2416
|
return t.getAll(`send-through-attribution/${e}`);
|
|
2414
2417
|
} };
|
|
2415
2418
|
}
|
|
2416
|
-
function
|
|
2419
|
+
function Jt({ apiHandler: t }) {
|
|
2417
2420
|
return {
|
|
2418
2421
|
getAll({ type: e, filter: s = null, limit: n = null, offset: r = null, sort: u = null, q: l = null }) {
|
|
2419
2422
|
const o = {
|
|
@@ -2447,7 +2450,7 @@ function Ut({ apiHandler: t }) {
|
|
|
2447
2450
|
}
|
|
2448
2451
|
};
|
|
2449
2452
|
}
|
|
2450
|
-
function
|
|
2453
|
+
function Wt({ apiHandler: t }) {
|
|
2451
2454
|
return {
|
|
2452
2455
|
getAll({ limit: e = null, offset: s = null, filter: n = null, sort: r = null, q: u = null } = {}) {
|
|
2453
2456
|
const l = {
|
|
@@ -2473,12 +2476,12 @@ function Jt({ apiHandler: t }) {
|
|
|
2473
2476
|
}
|
|
2474
2477
|
};
|
|
2475
2478
|
}
|
|
2476
|
-
function
|
|
2479
|
+
function _t({ apiHandler: t }) {
|
|
2477
2480
|
return { get() {
|
|
2478
2481
|
return t.get("status");
|
|
2479
2482
|
} };
|
|
2480
2483
|
}
|
|
2481
|
-
function
|
|
2484
|
+
function Yt({ apiHandler: t }) {
|
|
2482
2485
|
return {
|
|
2483
2486
|
getAll({ limit: e = null, offset: s = null, filter: n = null, sort: r = null } = {}) {
|
|
2484
2487
|
const u = {
|
|
@@ -2503,7 +2506,7 @@ function _t({ apiHandler: t }) {
|
|
|
2503
2506
|
}
|
|
2504
2507
|
};
|
|
2505
2508
|
}
|
|
2506
|
-
function
|
|
2509
|
+
function Qt({ apiHandler: t }) {
|
|
2507
2510
|
return {
|
|
2508
2511
|
getAll({ limit: e = null, offset: s = null, filter: n = null, sort: r = null } = {}) {
|
|
2509
2512
|
const u = {
|
|
@@ -2528,7 +2531,7 @@ function Yt({ apiHandler: t }) {
|
|
|
2528
2531
|
}
|
|
2529
2532
|
};
|
|
2530
2533
|
}
|
|
2531
|
-
function
|
|
2534
|
+
function Gt({ apiHandler: t }) {
|
|
2532
2535
|
return {
|
|
2533
2536
|
getAll({ limit: e = null, offset: s = null, filter: n = null, sort: r = null } = {}) {
|
|
2534
2537
|
const u = {
|
|
@@ -2547,7 +2550,7 @@ function Qt({ apiHandler: t }) {
|
|
|
2547
2550
|
}
|
|
2548
2551
|
};
|
|
2549
2552
|
}
|
|
2550
|
-
function
|
|
2553
|
+
function Xt({ apiHandler: t }) {
|
|
2551
2554
|
return {
|
|
2552
2555
|
getAll({ filter: e = null, sort: s = null, limit: n = null, offset: r = null, q: u = null, expand: l = null, links: o = null } = {}) {
|
|
2553
2556
|
const g = {
|
|
@@ -2617,7 +2620,7 @@ function Gt({ apiHandler: t }) {
|
|
|
2617
2620
|
}
|
|
2618
2621
|
};
|
|
2619
2622
|
}
|
|
2620
|
-
function
|
|
2623
|
+
function Zt({ apiHandler: t }) {
|
|
2621
2624
|
return {
|
|
2622
2625
|
getAll({ limit: e = null, offset: s = null, filter: n = null, q: r = null, sort: u = null } = {}) {
|
|
2623
2626
|
const l = {
|
|
@@ -2679,7 +2682,7 @@ function Xt({ apiHandler: t }) {
|
|
|
2679
2682
|
}
|
|
2680
2683
|
};
|
|
2681
2684
|
}
|
|
2682
|
-
function
|
|
2685
|
+
function Ht({ apiHandler: t }) {
|
|
2683
2686
|
return {
|
|
2684
2687
|
getAll({ limit: e = null, offset: s = null, sort: n = null, filter: r = null, q: u = null } = {}) {
|
|
2685
2688
|
const l = {
|
|
@@ -2705,7 +2708,7 @@ function Zt({ apiHandler: t }) {
|
|
|
2705
2708
|
}
|
|
2706
2709
|
};
|
|
2707
2710
|
}
|
|
2708
|
-
function
|
|
2711
|
+
function es({ apiHandler: t }) {
|
|
2709
2712
|
return {
|
|
2710
2713
|
getAllApiLogs({ limit: e = null, offset: s = null, sort: n = null, filter: r = null, q: u = null, expand: l = null } = {}) {
|
|
2711
2714
|
const o = {
|
|
@@ -2761,7 +2764,7 @@ function Ht({ apiHandler: t }) {
|
|
|
2761
2764
|
}
|
|
2762
2765
|
};
|
|
2763
2766
|
}
|
|
2764
|
-
function
|
|
2767
|
+
function ts({ apiHandler: t }) {
|
|
2765
2768
|
return {
|
|
2766
2769
|
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 } = {}) {
|
|
2767
2770
|
const $ = {
|
|
@@ -2825,7 +2828,7 @@ function es({ apiHandler: t }) {
|
|
|
2825
2828
|
}
|
|
2826
2829
|
};
|
|
2827
2830
|
}
|
|
2828
|
-
function
|
|
2831
|
+
function ss({ apiHandler: t }) {
|
|
2829
2832
|
return {
|
|
2830
2833
|
getAll({ filter: e = null, sort: s = null, limit: n = null, offset: r = null, q: u = null } = {}) {
|
|
2831
2834
|
const l = {
|
|
@@ -2848,7 +2851,7 @@ function ts({ apiHandler: t }) {
|
|
|
2848
2851
|
}
|
|
2849
2852
|
};
|
|
2850
2853
|
}
|
|
2851
|
-
function
|
|
2854
|
+
function ns({ apiHandler: t }) {
|
|
2852
2855
|
return {
|
|
2853
2856
|
deleteUserMembership({ organizationId: e, userId: s }) {
|
|
2854
2857
|
return t.delete(`memberships/${e}/${s}`);
|
|
@@ -2877,7 +2880,7 @@ function ss({ apiHandler: t }) {
|
|
|
2877
2880
|
}
|
|
2878
2881
|
};
|
|
2879
2882
|
}
|
|
2880
|
-
function
|
|
2883
|
+
function rs({ apiHandler: t }) {
|
|
2881
2884
|
return { getAll({ limit: e = null, offset: s = null, filter: n = null, q: r = null } = {}) {
|
|
2882
2885
|
const u = {
|
|
2883
2886
|
limit: e,
|
|
@@ -2888,7 +2891,7 @@ function ns({ apiHandler: t }) {
|
|
|
2888
2891
|
return t.getAll("webhook-events", u);
|
|
2889
2892
|
} };
|
|
2890
2893
|
}
|
|
2891
|
-
function
|
|
2894
|
+
function us({ apiHandler: t }) {
|
|
2892
2895
|
return {
|
|
2893
2896
|
getAll({ limit: e = null, offset: s = null, filter: n = null } = {}) {
|
|
2894
2897
|
const r = {
|
|
@@ -2912,7 +2915,7 @@ function rs({ apiHandler: t }) {
|
|
|
2912
2915
|
}
|
|
2913
2916
|
};
|
|
2914
2917
|
}
|
|
2915
|
-
function
|
|
2918
|
+
function ls({ apiHandler: t }) {
|
|
2916
2919
|
return {
|
|
2917
2920
|
getAll({ limit: e = null, offset: s = null, q: n = null, filter: r = null, sort: u = null } = {}) {
|
|
2918
2921
|
const l = {
|
|
@@ -2938,17 +2941,17 @@ function us({ apiHandler: t }) {
|
|
|
2938
2941
|
}
|
|
2939
2942
|
};
|
|
2940
2943
|
}
|
|
2941
|
-
var
|
|
2944
|
+
var os = class {
|
|
2942
2945
|
constructor({ apiHandler: t }) {
|
|
2943
|
-
this.account =
|
|
2946
|
+
this.account = ke({ apiHandler: t }), this.allowlists = qe({ apiHandler: t }), this.amlChecks = de({ apiHandler: t }), this.amlSettings = Te({ apiHandler: t }), this.apiKeys = Ee({ apiHandler: t }), this.applicationInstances = Ie({ apiHandler: t }), this.applications = Se({ apiHandler: t }), this.balanceTransactions = Pe({ apiHandler: t }), this.billingPortals = Ce({ apiHandler: t }), this.blocklists = xe({ apiHandler: t }), this.broadcastMessages = De({ apiHandler: t }), this.cashiers = Me({ apiHandler: t }), this.checkoutForms = je({ apiHandler: t }), this.coupons = Oe({ apiHandler: t }), this.creditMemos = Fe({ apiHandler: t }), this.customDomains = Ke({ apiHandler: t }), this.customFields = Ne({ apiHandler: t }), this.customerAuthentication = Be({ apiHandler: t }), this.customers = Le({ apiHandler: t }), this.depositRequests = ze({ apiHandler: t }), this.depositStrategies = Ve({ apiHandler: t }), this.digitalWallets = Ue({ apiHandler: t }), this.disputes = Je({ apiHandler: t }), this.emailDeliverySettings = We({ apiHandler: t }), this.emailMessages = _e({ apiHandler: t }), this.emailNotifications = Ye({ apiHandler: t }), this.events = Qe({ apiHandler: t }), this.externalIdentifiers = Ge({ apiHandler: t }), this.externalServicesSettings = Xe({ apiHandler: t }), this.fees = Ze({ apiHandler: t }), this.files = He({ apiHandler: t }), this.gatewayAccounts = et({ apiHandler: t }), this.integrations = tt({ apiHandler: t }), this.invoices = st({ apiHandler: t }), this.journalAccounts = nt({ apiHandler: t }), this.journalEntries = rt({ apiHandler: t }), this.journalRecords = ut({ apiHandler: t }), this.kycDocuments = lt({ apiHandler: t }), this.kycRequests = ot({ apiHandler: t }), this.kycSettings = ct({ apiHandler: t }), this.lists = it({ apiHandler: t }), this.orderCancellations = gt({ apiHandler: t }), this.orderChanges = at({ apiHandler: t }), this.orderPauses = mt({ apiHandler: t }), this.orderReactivations = $t({ apiHandler: t }), this.orders = ht({ apiHandler: t }), this.organizationApiKeys = pt({ apiHandler: t }), this.organizationExports = ft({ apiHandler: t }), this.organizations = yt({ apiHandler: t }), this.paymentCardsBankNames = Rt({ apiHandler: t }), this.paymentInstruments = At({ apiHandler: t }), this.paymentMethods = bt({ apiHandler: t }), this.paymentTokens = vt({ apiHandler: t }), this.payoutRequestAllocationOperations = wt({ apiHandler: t }), this.payoutRequestAllocations = kt({ apiHandler: t }), this.payoutRequestAutoAllocations = qt({ apiHandler: t }), this.payoutRequestBatchOperations = dt({ apiHandler: t }), this.payoutRequestBatchPreviews = Tt({ apiHandler: t }), this.payoutRequestBatches = Et({ apiHandler: t }), this.payoutRequestSplits = It({ apiHandler: t }), this.payoutRequests = St({ apiHandler: t }), this.payouts = Pt({ apiHandler: t }), this.plans = Ct({ apiHandler: t }), this.previews = xt({ apiHandler: t }), this.products = Dt({ apiHandler: t }), this.profile = Mt({ apiHandler: t }), this.purchase = jt({ apiHandler: t }), this.quotes = Ot({ apiHandler: t }), this.releaseFlags = Ft({ apiHandler: t }), this.resource = Kt({ apiHandler: t }), this.riskScoreRules = Nt({ apiHandler: t }), this.roles = Bt({ apiHandler: t }), this.search = Lt({ apiHandler: t }), this.securitySettings = zt({ apiHandler: t }), this.segments = Vt({ apiHandler: t }), this.sendThroughAttribution = Ut({ apiHandler: t }), this.serviceCredentials = Jt({ apiHandler: t }), this.shippingRates = Wt({ apiHandler: t }), this.status = _t({ apiHandler: t }), this.subscriptionCancellations = Yt({ apiHandler: t }), this.subscriptionPauses = Qt({ apiHandler: t }), this.subscriptionReactivations = Gt({ apiHandler: t }), this.subscriptions = Xt({ apiHandler: t }), this.tags = Zt({ apiHandler: t }), this.tagsRules = Ht({ apiHandler: t }), this.tracking = es({ apiHandler: t }), this.transactions = ts({ apiHandler: t }), this.usages = ss({ apiHandler: t }), this.users = ns({ apiHandler: t }), this.webhookEvents = rs({ apiHandler: t }), this.webhooks = us({ apiHandler: t }), this.websites = ls({ 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;
|
|
2944
2947
|
}
|
|
2945
2948
|
};
|
|
2946
|
-
function
|
|
2949
|
+
function cs({ apiHandler: t }) {
|
|
2947
2950
|
return { getCustomerLifetimeSummaryMetrics({ customerId: e }) {
|
|
2948
2951
|
return t.get(`customers/${e}/summary-metrics`);
|
|
2949
2952
|
} };
|
|
2950
2953
|
}
|
|
2951
|
-
function
|
|
2954
|
+
function is({ apiHandler: t }) {
|
|
2952
2955
|
return {
|
|
2953
2956
|
getAll({ limit: e = null, offset: s = null, sort: n = null, expand: r = null, filter: u = null, q: l = null, criteria: o = null } = {}) {
|
|
2954
2957
|
const g = {
|
|
@@ -2979,7 +2982,7 @@ function cs({ apiHandler: t }) {
|
|
|
2979
2982
|
}
|
|
2980
2983
|
};
|
|
2981
2984
|
}
|
|
2982
|
-
function
|
|
2985
|
+
function gs({ apiHandler: t }) {
|
|
2983
2986
|
return {
|
|
2984
2987
|
getAmlCheckHistogramReport({ periodStart: e = null, periodEnd: s = null, aggregationPeriod: n = null, metric: r = null, includePropagatedResults: u = null, filter: l = null }) {
|
|
2985
2988
|
const o = {
|
|
@@ -3004,7 +3007,7 @@ function is({ apiHandler: t }) {
|
|
|
3004
3007
|
}
|
|
3005
3008
|
};
|
|
3006
3009
|
}
|
|
3007
|
-
function
|
|
3010
|
+
function as({ apiHandler: t }) {
|
|
3008
3011
|
return {
|
|
3009
3012
|
getApiLogSummary({ periodStart: e = null, periodEnd: s = null, filter: n = null, limit: r = null, offset: u = null }) {
|
|
3010
3013
|
const l = {
|
|
@@ -3323,12 +3326,12 @@ function gs({ apiHandler: t }) {
|
|
|
3323
3326
|
}
|
|
3324
3327
|
};
|
|
3325
3328
|
}
|
|
3326
|
-
function
|
|
3329
|
+
function ms({ apiHandler: t }) {
|
|
3327
3330
|
return { getSubscriptionSummaryMetrics({ subscriptionId: e }) {
|
|
3328
3331
|
return t.get(`subscriptions/${e}/summary-metrics`);
|
|
3329
3332
|
} };
|
|
3330
3333
|
}
|
|
3331
|
-
function
|
|
3334
|
+
function $s({ apiHandler: t }) {
|
|
3332
3335
|
return {
|
|
3333
3336
|
getActivityFeed({ eventTypes: e = null, limit: s = 1e3, offset: n = 0 }) {
|
|
3334
3337
|
const r = {
|
|
@@ -3356,25 +3359,25 @@ function ms({ apiHandler: t }) {
|
|
|
3356
3359
|
}
|
|
3357
3360
|
};
|
|
3358
3361
|
}
|
|
3359
|
-
function
|
|
3362
|
+
function hs({ apiHandler: t }) {
|
|
3360
3363
|
return { query() {
|
|
3361
3364
|
return t.get("location");
|
|
3362
3365
|
} };
|
|
3363
3366
|
}
|
|
3364
3367
|
var y = {
|
|
3365
|
-
CustomersResource:
|
|
3366
|
-
DataExportsResource:
|
|
3367
|
-
HistogramsResource:
|
|
3368
|
-
ReportsResource:
|
|
3369
|
-
SubscriptionsResource:
|
|
3370
|
-
TimelinesResource:
|
|
3371
|
-
LocationResource:
|
|
3372
|
-
},
|
|
3368
|
+
CustomersResource: cs,
|
|
3369
|
+
DataExportsResource: is,
|
|
3370
|
+
HistogramsResource: gs,
|
|
3371
|
+
ReportsResource: as,
|
|
3372
|
+
SubscriptionsResource: ms,
|
|
3373
|
+
TimelinesResource: $s,
|
|
3374
|
+
LocationResource: hs
|
|
3375
|
+
}, ps = class {
|
|
3373
3376
|
constructor({ apiHandler: t }) {
|
|
3374
3377
|
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;
|
|
3375
3378
|
}
|
|
3376
3379
|
};
|
|
3377
|
-
function
|
|
3380
|
+
function fs({ apiHandler: t }) {
|
|
3378
3381
|
return {
|
|
3379
3382
|
get({ expand: e = null } = {}) {
|
|
3380
3383
|
const s = { expand: e };
|
|
@@ -3403,7 +3406,7 @@ function ps({ apiHandler: t }) {
|
|
|
3403
3406
|
}
|
|
3404
3407
|
};
|
|
3405
3408
|
}
|
|
3406
|
-
function
|
|
3409
|
+
function ys({ apiHandler: t }) {
|
|
3407
3410
|
return {
|
|
3408
3411
|
login({ data: e }) {
|
|
3409
3412
|
return t.post("login", e);
|
|
@@ -3413,12 +3416,12 @@ function fs({ apiHandler: t }) {
|
|
|
3413
3416
|
}
|
|
3414
3417
|
};
|
|
3415
3418
|
}
|
|
3416
|
-
function
|
|
3419
|
+
function Rs({ apiHandler: t }) {
|
|
3417
3420
|
return { get({ slug: e }) {
|
|
3418
3421
|
return t.get(`billing-portals/${e}`);
|
|
3419
3422
|
} };
|
|
3420
3423
|
}
|
|
3421
|
-
function
|
|
3424
|
+
function As({ apiHandler: t }) {
|
|
3422
3425
|
return {
|
|
3423
3426
|
create({ data: e }) {
|
|
3424
3427
|
return t.post("cashiers", e);
|
|
@@ -3428,12 +3431,12 @@ function Rs({ apiHandler: t }) {
|
|
|
3428
3431
|
}
|
|
3429
3432
|
};
|
|
3430
3433
|
}
|
|
3431
|
-
function
|
|
3434
|
+
function bs({ apiHandler: t }) {
|
|
3432
3435
|
return { get({ id: e }) {
|
|
3433
3436
|
return t.get(`checkout-forms/${e}`);
|
|
3434
3437
|
} };
|
|
3435
3438
|
}
|
|
3436
|
-
function
|
|
3439
|
+
function vs({ apiHandler: t }) {
|
|
3437
3440
|
return { getAll({ resource: e, limit: s = null, offset: n = null }) {
|
|
3438
3441
|
const r = {
|
|
3439
3442
|
limit: s,
|
|
@@ -3442,23 +3445,23 @@ function bs({ apiHandler: t }) {
|
|
|
3442
3445
|
return t.getAll(`custom-fields/${e}`, r);
|
|
3443
3446
|
} };
|
|
3444
3447
|
}
|
|
3445
|
-
function
|
|
3448
|
+
function ws({ apiHandler: t }) {
|
|
3446
3449
|
return { get({ id: e, expand: s = null }) {
|
|
3447
3450
|
const n = { expand: s };
|
|
3448
3451
|
return t.get(`deposit-requests/${e}`, n);
|
|
3449
3452
|
} };
|
|
3450
3453
|
}
|
|
3451
|
-
function
|
|
3454
|
+
function ks({ apiHandler: t }) {
|
|
3452
3455
|
return { create({ data: e }) {
|
|
3453
3456
|
return t.post("deposit", e);
|
|
3454
3457
|
} };
|
|
3455
3458
|
}
|
|
3456
|
-
function
|
|
3459
|
+
function qs({ apiHandler: t }) {
|
|
3457
3460
|
return { get({ id: e }) {
|
|
3458
3461
|
return t.get(`deposit-strategies/${e}`);
|
|
3459
3462
|
} };
|
|
3460
3463
|
}
|
|
3461
|
-
function
|
|
3464
|
+
function ds({ apiHandler: t }) {
|
|
3462
3465
|
return {
|
|
3463
3466
|
getAll({ filter: e = null, sort: s = null, limit: n = null, offset: r = null, q: u = null, expand: l = null } = {}) {
|
|
3464
3467
|
const o = {
|
|
@@ -3487,7 +3490,7 @@ function qs({ apiHandler: t }) {
|
|
|
3487
3490
|
}
|
|
3488
3491
|
};
|
|
3489
3492
|
}
|
|
3490
|
-
function
|
|
3493
|
+
function Ts({ apiHandler: t }) {
|
|
3491
3494
|
return {
|
|
3492
3495
|
create({ data: e }) {
|
|
3493
3496
|
return t.post("kyc-documents", e);
|
|
@@ -3500,7 +3503,7 @@ function ds({ apiHandler: t }) {
|
|
|
3500
3503
|
}
|
|
3501
3504
|
};
|
|
3502
3505
|
}
|
|
3503
|
-
function
|
|
3506
|
+
function Es({ apiHandler: t }) {
|
|
3504
3507
|
return {
|
|
3505
3508
|
create({ data: e }) {
|
|
3506
3509
|
return t.post("kyc-liveness-sessions", e);
|
|
@@ -3513,13 +3516,13 @@ function Ts({ apiHandler: t }) {
|
|
|
3513
3516
|
}
|
|
3514
3517
|
};
|
|
3515
3518
|
}
|
|
3516
|
-
function
|
|
3519
|
+
function Is({ apiHandler: t }) {
|
|
3517
3520
|
return { get({ id: e, expand: s = null }) {
|
|
3518
3521
|
const n = { expand: s };
|
|
3519
3522
|
return t.get(`kyc-requests/${e}`, n);
|
|
3520
3523
|
} };
|
|
3521
3524
|
}
|
|
3522
|
-
function
|
|
3525
|
+
function Ss({ apiHandler: t }) {
|
|
3523
3526
|
return {
|
|
3524
3527
|
getAll({ limit: e = null, offset: s = null, filter: n = null } = {}) {
|
|
3525
3528
|
const r = {
|
|
@@ -3534,7 +3537,7 @@ function Is({ apiHandler: t }) {
|
|
|
3534
3537
|
}
|
|
3535
3538
|
};
|
|
3536
3539
|
}
|
|
3537
|
-
function
|
|
3540
|
+
function Ps({ apiHandler: t }) {
|
|
3538
3541
|
return {
|
|
3539
3542
|
getUpcomingInvoice({ id: e, expand: s = null }) {
|
|
3540
3543
|
const n = { expand: s };
|
|
@@ -3566,7 +3569,7 @@ function Ss({ apiHandler: t }) {
|
|
|
3566
3569
|
}
|
|
3567
3570
|
};
|
|
3568
3571
|
}
|
|
3569
|
-
function
|
|
3572
|
+
function Cs({ apiHandler: t }) {
|
|
3570
3573
|
return {
|
|
3571
3574
|
getAll({ filter: e = null, sort: s = null, limit: n = null, offset: r = null, q: u = null } = {}) {
|
|
3572
3575
|
const l = {
|
|
@@ -3602,12 +3605,12 @@ function Ps({ apiHandler: t }) {
|
|
|
3602
3605
|
}
|
|
3603
3606
|
};
|
|
3604
3607
|
}
|
|
3605
|
-
function
|
|
3608
|
+
function xs({ apiHandler: t }) {
|
|
3606
3609
|
return { create({ data: e }) {
|
|
3607
3610
|
return t.post("payout-request-cancellations", e);
|
|
3608
3611
|
} };
|
|
3609
3612
|
}
|
|
3610
|
-
function
|
|
3613
|
+
function Ds({ apiHandler: t }) {
|
|
3611
3614
|
return {
|
|
3612
3615
|
getAll({ filter: e = null, sort: s = null, limit: n = null, offset: r = null, q: u = null } = {}) {
|
|
3613
3616
|
const l = {
|
|
@@ -3630,7 +3633,7 @@ function xs({ apiHandler: t }) {
|
|
|
3630
3633
|
}
|
|
3631
3634
|
};
|
|
3632
3635
|
}
|
|
3633
|
-
function
|
|
3636
|
+
function Ms({ apiHandler: t }) {
|
|
3634
3637
|
return {
|
|
3635
3638
|
getAll({ filter: e = null, sort: s = null, limit: n = null, offset: r = null, q: u = null, expand: l = null } = {}) {
|
|
3636
3639
|
const o = {
|
|
@@ -3649,7 +3652,7 @@ function Ds({ apiHandler: t }) {
|
|
|
3649
3652
|
}
|
|
3650
3653
|
};
|
|
3651
3654
|
}
|
|
3652
|
-
function
|
|
3655
|
+
function js({ apiHandler: t }) {
|
|
3653
3656
|
return {
|
|
3654
3657
|
getAll({ filter: e = null, sort: s = null, limit: n = null, offset: r = null, q: u = null } = {}) {
|
|
3655
3658
|
const l = {
|
|
@@ -3666,7 +3669,7 @@ function Ms({ apiHandler: t }) {
|
|
|
3666
3669
|
}
|
|
3667
3670
|
};
|
|
3668
3671
|
}
|
|
3669
|
-
function
|
|
3672
|
+
function Os({ apiHandler: t }) {
|
|
3670
3673
|
return {
|
|
3671
3674
|
payment({ data: e }) {
|
|
3672
3675
|
return t.post("payment", e);
|
|
@@ -3682,7 +3685,7 @@ function js({ apiHandler: t }) {
|
|
|
3682
3685
|
}
|
|
3683
3686
|
};
|
|
3684
3687
|
}
|
|
3685
|
-
function
|
|
3688
|
+
function Fs({ apiHandler: t }) {
|
|
3686
3689
|
return {
|
|
3687
3690
|
get({ id: e, expand: s = null }) {
|
|
3688
3691
|
const n = { expand: s };
|
|
@@ -3703,17 +3706,17 @@ function Os({ apiHandler: t }) {
|
|
|
3703
3706
|
}
|
|
3704
3707
|
};
|
|
3705
3708
|
}
|
|
3706
|
-
function
|
|
3709
|
+
function Ks({ apiHandler: t }) {
|
|
3707
3710
|
return { readyToPayout({ data: e }) {
|
|
3708
3711
|
return t.post("ready-to-payout", e);
|
|
3709
3712
|
} };
|
|
3710
3713
|
}
|
|
3711
|
-
function
|
|
3714
|
+
function Ns({ apiHandler: t }) {
|
|
3712
3715
|
return { reactivation({ data: e }) {
|
|
3713
3716
|
return t.post("subscription-reactivations", e);
|
|
3714
3717
|
} };
|
|
3715
3718
|
}
|
|
3716
|
-
function
|
|
3719
|
+
function Bs({ apiHandler: t }) {
|
|
3717
3720
|
return {
|
|
3718
3721
|
changeItems({ id: e, data: s }) {
|
|
3719
3722
|
return t.post(`subscriptions/${e}/change-items`, s);
|
|
@@ -3723,7 +3726,7 @@ function Ns({ apiHandler: t }) {
|
|
|
3723
3726
|
}
|
|
3724
3727
|
};
|
|
3725
3728
|
}
|
|
3726
|
-
function
|
|
3729
|
+
function Ls({ apiHandler: t }) {
|
|
3727
3730
|
return {
|
|
3728
3731
|
getAll({ limit: e = null, offset: s = null, filter: n = null, q: r = null, sort: u = null } = {}) {
|
|
3729
3732
|
const l = {
|
|
@@ -3762,30 +3765,30 @@ function Bs({ apiHandler: t }) {
|
|
|
3762
3765
|
}
|
|
3763
3766
|
};
|
|
3764
3767
|
}
|
|
3765
|
-
function
|
|
3768
|
+
function zs({ apiHandler: t }) {
|
|
3766
3769
|
return { get({ id: e }) {
|
|
3767
3770
|
return t.get(`websites/${e}`);
|
|
3768
3771
|
} };
|
|
3769
3772
|
}
|
|
3770
|
-
var
|
|
3773
|
+
var Vs = class {
|
|
3771
3774
|
constructor({ apiHandler: t }) {
|
|
3772
|
-
this.account =
|
|
3775
|
+
this.account = fs({ apiHandler: t }), this.authorization = ys({ apiHandler: t }), this.billingPortals = Rs({ apiHandler: t }), this.cashiers = As({ apiHandler: t }), this.checkoutForms = bs({ apiHandler: t }), this.customFields = vs({ apiHandler: t }), this.depositRequests = ws({ apiHandler: t }), this.deposit = ks({ apiHandler: t }), this.depositStrategies = qs({ apiHandler: t }), this.invoices = ds({ apiHandler: t }), this.kycDocuments = Ts({ apiHandler: t }), this.kycLivenessSessions = Es({ apiHandler: t }), this.kycRequests = Is({ apiHandler: t }), this.orderChanges = Ss({ apiHandler: t }), this.orders = Ps({ apiHandler: t }), this.paymentInstruments = Cs({ apiHandler: t }), this.payoutRequestCancellations = xs({ apiHandler: t }), this.payoutRequests = Ds({ apiHandler: t }), this.plans = Ms({ apiHandler: t }), this.products = js({ apiHandler: t }), this.purchase = Os({ apiHandler: t }), this.quotes = Fs({ apiHandler: t }), this.readyToPayout = Ks({ apiHandler: t }), this.subscriptionReactivations = Ns({ apiHandler: t }), this.subscriptions = Bs({ apiHandler: t }), this.transactions = Ls({ apiHandler: t }), this.websites = zs({ 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;
|
|
3773
3776
|
}
|
|
3774
3777
|
};
|
|
3775
|
-
function Vs({ apiHandler: t }) {
|
|
3776
|
-
return new ls({ apiHandler: t });
|
|
3777
|
-
}
|
|
3778
3778
|
function Us({ apiHandler: t }) {
|
|
3779
|
-
return new
|
|
3779
|
+
return new os({ apiHandler: t });
|
|
3780
3780
|
}
|
|
3781
3781
|
function Js({ apiHandler: t }) {
|
|
3782
|
-
return new
|
|
3782
|
+
return new ps({ apiHandler: t });
|
|
3783
|
+
}
|
|
3784
|
+
function Ws({ apiHandler: t }) {
|
|
3785
|
+
return new Vs({ apiHandler: t });
|
|
3783
3786
|
}
|
|
3784
3787
|
var x = {
|
|
3785
3788
|
live: "https://api.rebilly.com",
|
|
3786
3789
|
sandbox: "https://api-sandbox.rebilly.com"
|
|
3787
3790
|
}, D = 6e3;
|
|
3788
|
-
function
|
|
3791
|
+
function Gs({ apiKey: t = null, sandbox: e = !1, timeout: s = D, organizationId: n = null, urls: r = x, internalOptions: u = null } = {}) {
|
|
3789
3792
|
if (!r.live || !r.sandbox) throw new Error("RebillyAPI urls config must include a key for both `live` and `sandbox`");
|
|
3790
3793
|
if (typeof r.live != "string" || typeof r.sandbox != "string") throw new Error("RebillyAPI urls config `live` and `sandbox` must be strings");
|
|
3791
3794
|
const l = {
|
|
@@ -3798,9 +3801,9 @@ function Qs({ apiKey: t = null, sandbox: e = !1, timeout: s = D, organizationId:
|
|
|
3798
3801
|
organizationId: n,
|
|
3799
3802
|
appName: u?.appName ?? null
|
|
3800
3803
|
}, o = C({ options: l });
|
|
3801
|
-
return
|
|
3804
|
+
return Us({ apiHandler: o });
|
|
3802
3805
|
}
|
|
3803
|
-
function
|
|
3806
|
+
function Xs({ apiKey: t = null, sandbox: e = !1, timeout: s = D, organizationId: n = null, urls: r = x, internalOptions: u = null } = {}) {
|
|
3804
3807
|
if (!r.live || !r.sandbox) throw new Error("RebillyAPI urls config must include a key for both `live` and `sandbox`");
|
|
3805
3808
|
if (typeof r.live != "string" || typeof r.sandbox != "string") throw new Error("RebillyAPI urls config `live` and `sandbox` must be strings");
|
|
3806
3809
|
const l = {
|
|
@@ -3813,9 +3816,9 @@ function Gs({ apiKey: t = null, sandbox: e = !1, timeout: s = D, organizationId:
|
|
|
3813
3816
|
organizationId: n,
|
|
3814
3817
|
appName: u?.appName ?? null
|
|
3815
3818
|
}, o = C({ options: l });
|
|
3816
|
-
return
|
|
3819
|
+
return Js({ apiHandler: o });
|
|
3817
3820
|
}
|
|
3818
|
-
function
|
|
3821
|
+
function Zs({ publishableKey: t = null, jwt: e = null, sandbox: s = !1, timeout: n = D, organizationId: r = null, urls: u = x, internalOptions: l = null } = {}) {
|
|
3819
3822
|
if (!u.live || !u.sandbox) throw new Error("RebillyAPI urls config must include a key for both `live` and `sandbox`");
|
|
3820
3823
|
if (typeof u.live != "string" || typeof u.sandbox != "string") throw new Error("RebillyAPI urls config `live` and `sandbox` must be strings");
|
|
3821
3824
|
const o = {
|
|
@@ -3828,13 +3831,13 @@ function Xs({ publishableKey: t = null, jwt: e = null, sandbox: s = !1, timeout:
|
|
|
3828
3831
|
organizationId: r,
|
|
3829
3832
|
appName: l?.appName ?? null
|
|
3830
3833
|
}, g = C({ options: o });
|
|
3831
|
-
return g.setSessionToken(o.jwt),
|
|
3834
|
+
return g.setSessionToken(o.jwt), Ws({ apiHandler: g });
|
|
3832
3835
|
}
|
|
3833
3836
|
export {
|
|
3834
|
-
|
|
3837
|
+
Gs as RebillyAPI,
|
|
3835
3838
|
h as RebillyErrors,
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3839
|
+
Xs as RebillyExperimentalAPI,
|
|
3840
|
+
Zs as RebillyStorefrontAPI,
|
|
3841
|
+
Qs as cancellation,
|
|
3842
|
+
Gs as default
|
|
3840
3843
|
};
|