@rebilly/instruments 14.1.1 → 14.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -6
- package/dist/index.js +130 -90
- package/dist/index.min.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
## [14.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### Bug Fixes
|
|
5
|
-
|
|
6
|
-
* **framepay:** customer field validations ([#13781](https://github.com/Rebilly/rebilly/issues/13781)) ([899883f](https://github.com/Rebilly/rebilly/commit/899883fc6e7727f5c523d321cdccab7058a982dc))
|
|
1
|
+
## [14.2.1](https://github.com/Rebilly/rebilly/compare/instruments/core-v14.2.0...instruments/core-v14.2.1) (2025-07-25)
|
package/dist/index.js
CHANGED
|
@@ -6110,16 +6110,16 @@ let Ae$1 = class Ae extends p {
|
|
|
6110
6110
|
super({ error: e2, name: "RebillyMethodNotAllowedError" });
|
|
6111
6111
|
}
|
|
6112
6112
|
};
|
|
6113
|
-
class
|
|
6113
|
+
let Re$1 = class Re extends p {
|
|
6114
6114
|
constructor(e2) {
|
|
6115
6115
|
super({ error: e2, name: "RebillyTimeoutError" });
|
|
6116
6116
|
}
|
|
6117
|
-
}
|
|
6118
|
-
|
|
6117
|
+
};
|
|
6118
|
+
class be extends p {
|
|
6119
6119
|
constructor(e2) {
|
|
6120
6120
|
super({ error: e2, name: "RebillyCanceledError" });
|
|
6121
6121
|
}
|
|
6122
|
-
}
|
|
6122
|
+
}
|
|
6123
6123
|
const $$1 = {
|
|
6124
6124
|
RebillyError: p,
|
|
6125
6125
|
RebillyRequestError: fe$1,
|
|
@@ -6128,8 +6128,8 @@ const $$1 = {
|
|
|
6128
6128
|
RebillyConflictError: he$1,
|
|
6129
6129
|
RebillyForbiddenError: ye$1,
|
|
6130
6130
|
RebillyMethodNotAllowedError: Ae$1,
|
|
6131
|
-
RebillyTimeoutError:
|
|
6132
|
-
RebillyCanceledError:
|
|
6131
|
+
RebillyTimeoutError: Re$1,
|
|
6132
|
+
RebillyCanceledError: be
|
|
6133
6133
|
};
|
|
6134
6134
|
function we$1(t2) {
|
|
6135
6135
|
return t2 && t2.__esModule && Object.prototype.hasOwnProperty.call(t2, "default") ? t2.default : t2;
|
|
@@ -6144,11 +6144,11 @@ var ke$1 = Object.prototype.toString, Y$1 = function(e2) {
|
|
|
6144
6144
|
if (s === "symbol") return "symbol";
|
|
6145
6145
|
if (s === "function")
|
|
6146
6146
|
return Ie$1(e2) ? "generatorfunction" : "function";
|
|
6147
|
-
if (
|
|
6147
|
+
if (de$1(e2)) return "array";
|
|
6148
6148
|
if (xe$1(e2)) return "buffer";
|
|
6149
6149
|
if (qe$1(e2)) return "arguments";
|
|
6150
6150
|
if (Te$1(e2)) return "date";
|
|
6151
|
-
if (
|
|
6151
|
+
if (ve$1(e2)) return "error";
|
|
6152
6152
|
if (Se$1(e2)) return "regexp";
|
|
6153
6153
|
switch (Q$1(e2)) {
|
|
6154
6154
|
case "Symbol":
|
|
@@ -6201,10 +6201,10 @@ var ke$1 = Object.prototype.toString, Y$1 = function(e2) {
|
|
|
6201
6201
|
function Q$1(t2) {
|
|
6202
6202
|
return typeof t2.constructor == "function" ? t2.constructor.name : null;
|
|
6203
6203
|
}
|
|
6204
|
-
function
|
|
6204
|
+
function de$1(t2) {
|
|
6205
6205
|
return Array.isArray ? Array.isArray(t2) : t2 instanceof Array;
|
|
6206
6206
|
}
|
|
6207
|
-
function
|
|
6207
|
+
function ve$1(t2) {
|
|
6208
6208
|
return t2 instanceof Error || typeof t2.message == "string" && t2.constructor && typeof t2.constructor.stackTraceLimit == "number";
|
|
6209
6209
|
}
|
|
6210
6210
|
function Te$1(t2) {
|
|
@@ -6238,9 +6238,9 @@ function xe$1(t2) {
|
|
|
6238
6238
|
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
6239
6239
|
* Released under the MIT License.
|
|
6240
6240
|
*/
|
|
6241
|
-
const V$1 = Symbol.prototype.valueOf,
|
|
6242
|
-
function
|
|
6243
|
-
switch (
|
|
6241
|
+
const V$1 = Symbol.prototype.valueOf, Ce$1 = Y$1;
|
|
6242
|
+
function Pe$1(t2, e2) {
|
|
6243
|
+
switch (Ce$1(t2)) {
|
|
6244
6244
|
case "array":
|
|
6245
6245
|
return t2.slice();
|
|
6246
6246
|
case "object":
|
|
@@ -6293,14 +6293,14 @@ function Fe$1(t2) {
|
|
|
6293
6293
|
function Oe$1(t2) {
|
|
6294
6294
|
return V$1 ? Object(V$1.call(t2)) : {};
|
|
6295
6295
|
}
|
|
6296
|
-
var
|
|
6296
|
+
var Be$1 = Pe$1;
|
|
6297
6297
|
/*!
|
|
6298
6298
|
* isobject <https://github.com/jonschlinkert/isobject>
|
|
6299
6299
|
*
|
|
6300
6300
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
6301
6301
|
* Released under the MIT License.
|
|
6302
6302
|
*/
|
|
6303
|
-
var
|
|
6303
|
+
var Ke$1 = function(e2) {
|
|
6304
6304
|
return e2 != null && typeof e2 == "object" && Array.isArray(e2) === false;
|
|
6305
6305
|
};
|
|
6306
6306
|
/*!
|
|
@@ -6309,16 +6309,16 @@ var Ne$1 = function(e2) {
|
|
|
6309
6309
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
6310
6310
|
* Released under the MIT License.
|
|
6311
6311
|
*/
|
|
6312
|
-
var
|
|
6312
|
+
var Ne$1 = Ke$1;
|
|
6313
6313
|
function J$1(t2) {
|
|
6314
|
-
return
|
|
6314
|
+
return Ne$1(t2) === true && Object.prototype.toString.call(t2) === "[object Object]";
|
|
6315
6315
|
}
|
|
6316
6316
|
var Le$1 = function(e2) {
|
|
6317
6317
|
var s, r2;
|
|
6318
6318
|
return !(J$1(e2) === false || (s = e2.constructor, typeof s != "function") || (r2 = s.prototype, J$1(r2) === false) || r2.hasOwnProperty("isPrototypeOf") === false);
|
|
6319
6319
|
};
|
|
6320
|
-
const ze$1 =
|
|
6321
|
-
function
|
|
6320
|
+
const ze$1 = Be$1, Ue$1 = Y$1, Ve$1 = Le$1;
|
|
6321
|
+
function C$1(t2, e2) {
|
|
6322
6322
|
switch (Ue$1(t2)) {
|
|
6323
6323
|
case "object":
|
|
6324
6324
|
return Je$1(t2, e2);
|
|
@@ -6334,7 +6334,7 @@ function Je$1(t2, e2) {
|
|
|
6334
6334
|
if (e2 || Ve$1(t2)) {
|
|
6335
6335
|
const s = new t2.constructor();
|
|
6336
6336
|
for (let r2 in t2)
|
|
6337
|
-
s[r2] =
|
|
6337
|
+
s[r2] = C$1(t2[r2], e2);
|
|
6338
6338
|
return s;
|
|
6339
6339
|
}
|
|
6340
6340
|
return t2;
|
|
@@ -6342,10 +6342,10 @@ function Je$1(t2, e2) {
|
|
|
6342
6342
|
function We$1(t2, e2) {
|
|
6343
6343
|
const s = new t2.constructor(t2.length);
|
|
6344
6344
|
for (let r2 = 0; r2 < t2.length; r2++)
|
|
6345
|
-
s[r2] =
|
|
6345
|
+
s[r2] = C$1(t2[r2], e2);
|
|
6346
6346
|
return s;
|
|
6347
6347
|
}
|
|
6348
|
-
var Ge$1 =
|
|
6348
|
+
var Ge$1 = C$1;
|
|
6349
6349
|
const Ye$1 = /* @__PURE__ */ we$1(Ge$1);
|
|
6350
6350
|
let Qe$1 = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Xe$1 = (t2 = 21) => {
|
|
6351
6351
|
let e2 = "", s = t2 | 0;
|
|
@@ -6360,11 +6360,11 @@ let Ze$1 = class Ze {
|
|
|
6360
6360
|
});
|
|
6361
6361
|
}
|
|
6362
6362
|
};
|
|
6363
|
-
class
|
|
6363
|
+
class d {
|
|
6364
6364
|
constructor() {
|
|
6365
|
-
if (
|
|
6366
|
-
return
|
|
6367
|
-
this.requests = {},
|
|
6365
|
+
if (d.instance)
|
|
6366
|
+
return d.instance;
|
|
6367
|
+
this.requests = {}, d.instance = this;
|
|
6368
6368
|
}
|
|
6369
6369
|
/**
|
|
6370
6370
|
* Returns Array with all CachedRequest from the cache.
|
|
@@ -6402,10 +6402,10 @@ class v {
|
|
|
6402
6402
|
return this.requests[e2.id] = e2, { id: e2.id, cancelToken: e2.cancelToken };
|
|
6403
6403
|
}
|
|
6404
6404
|
}
|
|
6405
|
-
const w = new
|
|
6406
|
-
class
|
|
6405
|
+
const w = new d();
|
|
6406
|
+
class v {
|
|
6407
6407
|
}
|
|
6408
|
-
q$1(
|
|
6408
|
+
q$1(v, "cancelById", (e2, s) => {
|
|
6409
6409
|
try {
|
|
6410
6410
|
w.getById(e2).cancel(s), w.deleteById(e2);
|
|
6411
6411
|
} catch {
|
|
@@ -6425,7 +6425,7 @@ q$1(d, "cancelById", (e2, s) => {
|
|
|
6425
6425
|
* // cancel all active requests
|
|
6426
6426
|
* await cancellation.cancelAll();
|
|
6427
6427
|
*/
|
|
6428
|
-
q$1(
|
|
6428
|
+
q$1(v, "cancelAll", async (e2) => {
|
|
6429
6429
|
for (const s of w.getAll())
|
|
6430
6430
|
await s.cancel(e2), w.deleteById(s.id);
|
|
6431
6431
|
});
|
|
@@ -6433,16 +6433,16 @@ const lr = {
|
|
|
6433
6433
|
/**
|
|
6434
6434
|
* @type Cancellation.cancelAll
|
|
6435
6435
|
*/
|
|
6436
|
-
cancelAll: async (...t2) => await
|
|
6437
|
-
},
|
|
6436
|
+
cancelAll: async (...t2) => await v.cancelAll(...t2)
|
|
6437
|
+
}, b$1 = {
|
|
6438
6438
|
request: "request",
|
|
6439
6439
|
response: "response"
|
|
6440
6440
|
}, W$1 = (t2) => {
|
|
6441
|
-
if (!Object.values(
|
|
6441
|
+
if (!Object.values(b$1).includes(t2))
|
|
6442
6442
|
throw new Error(`There is no such interceptor type as "${t2}"`);
|
|
6443
6443
|
return true;
|
|
6444
6444
|
};
|
|
6445
|
-
function
|
|
6445
|
+
function P({ options: t2 }) {
|
|
6446
6446
|
const e2 = s();
|
|
6447
6447
|
function s() {
|
|
6448
6448
|
return axios.create(n2());
|
|
@@ -6463,7 +6463,7 @@ function C$1({ options: t2 }) {
|
|
|
6463
6463
|
}
|
|
6464
6464
|
function o2() {
|
|
6465
6465
|
const i = {
|
|
6466
|
-
"REB-API-CONSUMER": `${["Rebilly", t2.appName, "js-sdk"].filter((g) => g).join("/")}@
|
|
6466
|
+
"REB-API-CONSUMER": `${["Rebilly", t2.appName, "js-sdk"].filter((g) => g).join("/")}@a2d55b2`
|
|
6467
6467
|
};
|
|
6468
6468
|
return t2.apiKey && (i["REB-APIKEY"] = t2.apiKey), i;
|
|
6469
6469
|
}
|
|
@@ -6493,39 +6493,39 @@ function C$1({ options: t2 }) {
|
|
|
6493
6493
|
}
|
|
6494
6494
|
function M2(c, { thenDelegate: i, catchDelegate: g = () => {
|
|
6495
6495
|
} }) {
|
|
6496
|
-
return W$1(c) && e2.interceptors[
|
|
6496
|
+
return W$1(c) && e2.interceptors[b$1[c]].use(
|
|
6497
6497
|
i,
|
|
6498
6498
|
g
|
|
6499
6499
|
);
|
|
6500
6500
|
}
|
|
6501
6501
|
function F2(c, i) {
|
|
6502
|
-
return W$1(c) && e2.interceptors[
|
|
6502
|
+
return W$1(c) && e2.interceptors[b$1[c]].eject(i);
|
|
6503
6503
|
}
|
|
6504
6504
|
function X2({ thenDelegate: c, catchDelegate: i = () => {
|
|
6505
6505
|
} }) {
|
|
6506
|
-
return M2(
|
|
6506
|
+
return M2(b$1.request, {
|
|
6507
6507
|
thenDelegate: c,
|
|
6508
6508
|
catchDelegate: i
|
|
6509
6509
|
});
|
|
6510
6510
|
}
|
|
6511
6511
|
function Z2(c) {
|
|
6512
|
-
F2(
|
|
6512
|
+
F2(b$1.request, c);
|
|
6513
6513
|
}
|
|
6514
6514
|
function _2({
|
|
6515
6515
|
thenDelegate: c,
|
|
6516
6516
|
catchDelegate: i = () => {
|
|
6517
6517
|
}
|
|
6518
6518
|
}) {
|
|
6519
|
-
return M2(
|
|
6519
|
+
return M2(b$1.response, {
|
|
6520
6520
|
thenDelegate: c,
|
|
6521
6521
|
catchDelegate: i
|
|
6522
6522
|
});
|
|
6523
6523
|
}
|
|
6524
6524
|
function H2(c) {
|
|
6525
|
-
F2(
|
|
6525
|
+
F2(b$1.response, c);
|
|
6526
6526
|
}
|
|
6527
6527
|
function A2({ request: c, isCollection: i, config: g }) {
|
|
6528
|
-
const m2 =
|
|
6528
|
+
const m2 = B2(g), { id: h, cancelToken: ce2 } = w.save();
|
|
6529
6529
|
m2.cancelToken = ce2;
|
|
6530
6530
|
const z2 = async function() {
|
|
6531
6531
|
try {
|
|
@@ -6541,7 +6541,7 @@ function C$1({ options: t2 }) {
|
|
|
6541
6541
|
w.deleteById(h);
|
|
6542
6542
|
}
|
|
6543
6543
|
}();
|
|
6544
|
-
return z2.cancel = (k2) =>
|
|
6544
|
+
return z2.cancel = (k2) => v.cancelById(h, k2), z2;
|
|
6545
6545
|
}
|
|
6546
6546
|
function ee2({ response: c, isCollection: i, config: g }) {
|
|
6547
6547
|
return i ? new ae$1(c, g) : new G$1(c, g);
|
|
@@ -6571,10 +6571,10 @@ function C$1({ options: t2 }) {
|
|
|
6571
6571
|
(i) => c.params[i] !== null && c.params[i] !== ""
|
|
6572
6572
|
).reduce((i, g) => (i[g] = c.params[g], i), {})), c;
|
|
6573
6573
|
}
|
|
6574
|
-
function
|
|
6574
|
+
function B2(c = {}) {
|
|
6575
6575
|
return { ...te2(c) };
|
|
6576
6576
|
}
|
|
6577
|
-
function
|
|
6577
|
+
function K2(c, i = {}) {
|
|
6578
6578
|
return A2({
|
|
6579
6579
|
request: (g) => e2.get(c, g),
|
|
6580
6580
|
config: { params: i }
|
|
@@ -6587,7 +6587,7 @@ function C$1({ options: t2 }) {
|
|
|
6587
6587
|
isCollection: true
|
|
6588
6588
|
});
|
|
6589
6589
|
}
|
|
6590
|
-
function
|
|
6590
|
+
function N2(c, i, g = {}) {
|
|
6591
6591
|
let m2 = {};
|
|
6592
6592
|
return g.authenticate === false && (m2 = { headers: l() }, delete m2.headers.common["REB-APIKEY"], delete m2.headers.common.Authorization), g.params && (m2.params = { ...g.params }), A2({
|
|
6593
6593
|
request: (h) => e2.post(c, i, h),
|
|
@@ -6620,9 +6620,9 @@ function C$1({ options: t2 }) {
|
|
|
6620
6620
|
}
|
|
6621
6621
|
async function oe2(c, i, g, m2 = {}) {
|
|
6622
6622
|
if (i === "")
|
|
6623
|
-
return
|
|
6623
|
+
return N2(c, g, { params: m2 });
|
|
6624
6624
|
try {
|
|
6625
|
-
if ((await
|
|
6625
|
+
if ((await K2(c)).response.status === 200)
|
|
6626
6626
|
throw new $$1.RebillyConflictError({
|
|
6627
6627
|
message: "A resource already exists with this ID. Please use a different ID."
|
|
6628
6628
|
});
|
|
@@ -6633,7 +6633,7 @@ function C$1({ options: t2 }) {
|
|
|
6633
6633
|
}
|
|
6634
6634
|
}
|
|
6635
6635
|
async function le2(c, i) {
|
|
6636
|
-
const g =
|
|
6636
|
+
const g = B2(i);
|
|
6637
6637
|
try {
|
|
6638
6638
|
const m2 = await e2.get(c, g);
|
|
6639
6639
|
return new me$1(m2, g);
|
|
@@ -6652,9 +6652,9 @@ function C$1({ options: t2 }) {
|
|
|
6652
6652
|
setSessionToken: f,
|
|
6653
6653
|
setPublishableKey: y,
|
|
6654
6654
|
setEndpoints: E2,
|
|
6655
|
-
get:
|
|
6655
|
+
get: K2,
|
|
6656
6656
|
getAll: se2,
|
|
6657
|
-
post:
|
|
6657
|
+
post: N2,
|
|
6658
6658
|
put: L2,
|
|
6659
6659
|
patch: re2,
|
|
6660
6660
|
delete: ne2,
|
|
@@ -7097,10 +7097,11 @@ function at$1({ apiHandler: t2 }) {
|
|
|
7097
7097
|
sort: s = null,
|
|
7098
7098
|
limit: r2 = null,
|
|
7099
7099
|
offset: n2 = null,
|
|
7100
|
-
q: u = null
|
|
7100
|
+
q: u = null,
|
|
7101
|
+
expand: o2 = null
|
|
7101
7102
|
} = {}) {
|
|
7102
|
-
const
|
|
7103
|
-
return t2.getAll("credit-memos",
|
|
7103
|
+
const l = { filter: e2, sort: s, limit: r2, offset: n2, q: u, expand: o2 };
|
|
7104
|
+
return t2.getAll("credit-memos", l);
|
|
7104
7105
|
},
|
|
7105
7106
|
/**
|
|
7106
7107
|
* @param { rebilly.CreateCreditMemoRequest } request
|
|
@@ -7547,7 +7548,7 @@ function At$1({ apiHandler: t2 }) {
|
|
|
7547
7548
|
}
|
|
7548
7549
|
};
|
|
7549
7550
|
}
|
|
7550
|
-
function
|
|
7551
|
+
function Rt$1({ apiHandler: t2 }) {
|
|
7551
7552
|
return {
|
|
7552
7553
|
validate({ data: e2 }) {
|
|
7553
7554
|
return t2.post("digital-wallets/validation", e2);
|
|
@@ -7557,7 +7558,7 @@ function bt$1({ apiHandler: t2 }) {
|
|
|
7557
7558
|
}
|
|
7558
7559
|
};
|
|
7559
7560
|
}
|
|
7560
|
-
function
|
|
7561
|
+
function bt$1({ apiHandler: t2 }) {
|
|
7561
7562
|
return {
|
|
7562
7563
|
/**
|
|
7563
7564
|
* @param { rebilly.GetDisputeCollectionRequest } request
|
|
@@ -7674,7 +7675,7 @@ function kt$1({ apiHandler: t2 }) {
|
|
|
7674
7675
|
}
|
|
7675
7676
|
};
|
|
7676
7677
|
}
|
|
7677
|
-
function
|
|
7678
|
+
function dt$1({ apiHandler: t2 }) {
|
|
7678
7679
|
return {
|
|
7679
7680
|
/**
|
|
7680
7681
|
* @param { rebilly.GetEmailNotificationCollectionRequest } request
|
|
@@ -7686,7 +7687,7 @@ function vt$1({ apiHandler: t2 }) {
|
|
|
7686
7687
|
}
|
|
7687
7688
|
};
|
|
7688
7689
|
}
|
|
7689
|
-
function
|
|
7690
|
+
function vt$1({ apiHandler: t2 }) {
|
|
7690
7691
|
return {
|
|
7691
7692
|
/**
|
|
7692
7693
|
* @param { rebilly.GetEventCollectionRequest } request
|
|
@@ -8195,7 +8196,7 @@ function xt$1({ apiHandler: t2 }) {
|
|
|
8195
8196
|
};
|
|
8196
8197
|
}
|
|
8197
8198
|
const S$1 = { Accept: "application/pdf" };
|
|
8198
|
-
function
|
|
8199
|
+
function Ct$1({ apiHandler: t2 }) {
|
|
8199
8200
|
return {
|
|
8200
8201
|
/**
|
|
8201
8202
|
* @param { rebilly.GetInvoiceCollectionRequest } request
|
|
@@ -8323,7 +8324,7 @@ function Pt$1({ apiHandler: t2 }) {
|
|
|
8323
8324
|
}
|
|
8324
8325
|
};
|
|
8325
8326
|
}
|
|
8326
|
-
function
|
|
8327
|
+
function Pt$1({ apiHandler: t2 }) {
|
|
8327
8328
|
return {
|
|
8328
8329
|
/**
|
|
8329
8330
|
* @param { rebilly.GetJournalAccountCollectionRequest } request
|
|
@@ -8393,6 +8394,43 @@ function jt$1({ apiHandler: t2 }) {
|
|
|
8393
8394
|
updateEntry({ id: e2, data: s }) {
|
|
8394
8395
|
return t2.put(`journal-entries/${e2}`, s);
|
|
8395
8396
|
},
|
|
8397
|
+
/**
|
|
8398
|
+
* @returns { rebilly.GetJournalRecordCollectionBCResponsePromise } response
|
|
8399
|
+
*/
|
|
8400
|
+
getAllRecordsBC({
|
|
8401
|
+
id: e2,
|
|
8402
|
+
limit: s = null,
|
|
8403
|
+
offset: r2 = null,
|
|
8404
|
+
filter: n2 = null,
|
|
8405
|
+
sort: u = null,
|
|
8406
|
+
expand: o2 = null
|
|
8407
|
+
}) {
|
|
8408
|
+
const l = { limit: s, offset: r2, filter: n2, sort: u, expand: o2 };
|
|
8409
|
+
return t2.get(`journal-entries/${e2}/records`, l);
|
|
8410
|
+
},
|
|
8411
|
+
createRecordBC({ id: e2, data: s }) {
|
|
8412
|
+
return t2.post(`journal-entries/${e2}/records`, s);
|
|
8413
|
+
},
|
|
8414
|
+
/**
|
|
8415
|
+
* @returns { rebilly.GetJournalRecordBCResponsePromise } response
|
|
8416
|
+
*/
|
|
8417
|
+
getRecordBC({ id: e2, journalRecordId: s }) {
|
|
8418
|
+
return t2.get(`journal-entries/${e2}/records/${s}`);
|
|
8419
|
+
},
|
|
8420
|
+
/**
|
|
8421
|
+
* @returns { rebilly.PutJournalRecordBCResponsePromise } response
|
|
8422
|
+
*/
|
|
8423
|
+
updateRecordBC({ id: e2, journalRecordId: s, data: r2 }) {
|
|
8424
|
+
return t2.put(
|
|
8425
|
+
`journal-entries/${e2}/records/${s}`,
|
|
8426
|
+
r2
|
|
8427
|
+
);
|
|
8428
|
+
},
|
|
8429
|
+
deleteRecordBC({ id: e2, journalRecordId: s }) {
|
|
8430
|
+
return t2.delete(
|
|
8431
|
+
`journal-entries/${e2}/records/${s}`
|
|
8432
|
+
);
|
|
8433
|
+
},
|
|
8396
8434
|
/**
|
|
8397
8435
|
* @param { rebilly.GetJournalRecordCollectionRequest } request
|
|
8398
8436
|
* @returns { rebilly.GetJournalRecordCollectionResponsePromise } response
|
|
@@ -8406,29 +8444,31 @@ function jt$1({ apiHandler: t2 }) {
|
|
|
8406
8444
|
expand: o2 = null
|
|
8407
8445
|
}) {
|
|
8408
8446
|
const l = { limit: s, offset: r2, filter: n2, sort: u, expand: o2 };
|
|
8409
|
-
return t2.getAll(`journal-entries/${e2}/records
|
|
8447
|
+
return t2.getAll(`journal-entries/${e2}/records/`, l);
|
|
8410
8448
|
},
|
|
8411
8449
|
createRecord({ id: e2, data: s }) {
|
|
8412
|
-
return t2.post(`journal-entries/${e2}/records
|
|
8450
|
+
return t2.post(`journal-entries/${e2}/records/`, s);
|
|
8413
8451
|
},
|
|
8414
8452
|
/**
|
|
8415
8453
|
* @returns { rebilly.GetJournalRecordResponsePromise } response
|
|
8416
8454
|
*/
|
|
8417
8455
|
getRecord({ id: e2, journalRecordId: s }) {
|
|
8418
|
-
return t2.get(
|
|
8456
|
+
return t2.get(
|
|
8457
|
+
`journal-entries/${e2}/records/${s}/`
|
|
8458
|
+
);
|
|
8419
8459
|
},
|
|
8420
8460
|
/**
|
|
8421
8461
|
* @returns { rebilly.PutJournalRecordResponsePromise } response
|
|
8422
8462
|
*/
|
|
8423
8463
|
updateRecord({ id: e2, journalRecordId: s, data: r2 }) {
|
|
8424
8464
|
return t2.put(
|
|
8425
|
-
`journal-entries/${e2}/records/${s}
|
|
8465
|
+
`journal-entries/${e2}/records/${s}/`,
|
|
8426
8466
|
r2
|
|
8427
8467
|
);
|
|
8428
8468
|
},
|
|
8429
8469
|
deleteRecord({ id: e2, journalRecordId: s }) {
|
|
8430
8470
|
return t2.delete(
|
|
8431
|
-
`journal-entries/${e2}/records/${s}
|
|
8471
|
+
`journal-entries/${e2}/records/${s}/`
|
|
8432
8472
|
);
|
|
8433
8473
|
}
|
|
8434
8474
|
};
|
|
@@ -8584,7 +8624,7 @@ function Ot$1({ apiHandler: t2 }) {
|
|
|
8584
8624
|
}
|
|
8585
8625
|
};
|
|
8586
8626
|
}
|
|
8587
|
-
function
|
|
8627
|
+
function Bt$1({ apiHandler: t2 }) {
|
|
8588
8628
|
return {
|
|
8589
8629
|
/**
|
|
8590
8630
|
* @param { rebilly.GetMembershipCollectionRequest } request
|
|
@@ -8611,7 +8651,7 @@ function Kt$1({ apiHandler: t2 }) {
|
|
|
8611
8651
|
}
|
|
8612
8652
|
};
|
|
8613
8653
|
}
|
|
8614
|
-
function
|
|
8654
|
+
function Kt$1({ apiHandler: t2 }) {
|
|
8615
8655
|
return {
|
|
8616
8656
|
/**
|
|
8617
8657
|
* @param { rebilly.GetOrganizationExportCollectionRequest } request
|
|
@@ -8638,7 +8678,7 @@ function Nt$1({ apiHandler: t2 }) {
|
|
|
8638
8678
|
}
|
|
8639
8679
|
};
|
|
8640
8680
|
}
|
|
8641
|
-
function
|
|
8681
|
+
function Nt$1({ apiHandler: t2 }) {
|
|
8642
8682
|
return {
|
|
8643
8683
|
/**
|
|
8644
8684
|
* @param { rebilly.GetOrganizationCollectionRequest } request
|
|
@@ -9856,7 +9896,7 @@ function As({ apiHandler: t2 }) {
|
|
|
9856
9896
|
}
|
|
9857
9897
|
};
|
|
9858
9898
|
}
|
|
9859
|
-
function
|
|
9899
|
+
function Rs({ apiHandler: t2 }) {
|
|
9860
9900
|
return {
|
|
9861
9901
|
/**
|
|
9862
9902
|
* @param { rebilly.GetWebhookCollectionRequest } request
|
|
@@ -9890,7 +9930,7 @@ function bs({ apiHandler: t2 }) {
|
|
|
9890
9930
|
}
|
|
9891
9931
|
};
|
|
9892
9932
|
}
|
|
9893
|
-
function
|
|
9933
|
+
function bs({ apiHandler: t2 }) {
|
|
9894
9934
|
return {
|
|
9895
9935
|
/**
|
|
9896
9936
|
* @param { rebilly.GetWebsiteCollectionRequest } request
|
|
@@ -9934,15 +9974,15 @@ class ws {
|
|
|
9934
9974
|
constructor({ apiHandler: e2 }) {
|
|
9935
9975
|
this.account = _e$1({ apiHandler: e2 }), this.allowlists = He$1({ apiHandler: e2 }), this.amlChecks = et$1({ apiHandler: e2 }), this.amlSettings = tt$1({ apiHandler: e2 }), this.apiKeys = st$1({ apiHandler: e2 }), this.applicationInstances = rt$1({ apiHandler: e2 }), this.applications = nt$1({ apiHandler: e2 }), this.balanceTransactions = ut$1({ apiHandler: e2 }), this.billingPortals = ot$1({ apiHandler: e2 }), this.blocklists = lt$1({ apiHandler: e2 }), this.broadcastMessages = ct$1({ apiHandler: e2 }), this.checkoutForms = it$1({ apiHandler: e2 }), this.coupons = gt$1({ apiHandler: e2 }), this.creditMemos = at$1({ apiHandler: e2 }), this.customDomains = mt$1({ apiHandler: e2 }), this.customFields = ft$1({ apiHandler: e2 }), this.customerAuthentication = $t$1({ apiHandler: e2 }), this.customers = pt$1({ apiHandler: e2 }), this.depositCustomPropertySets = ht$1({
|
|
9936
9976
|
apiHandler: e2
|
|
9937
|
-
}), this.depositRequests = yt$1({ apiHandler: e2 }), this.depositStrategies = At$1({ apiHandler: e2 }), this.digitalWallets =
|
|
9977
|
+
}), this.depositRequests = yt$1({ apiHandler: e2 }), this.depositStrategies = At$1({ apiHandler: e2 }), this.digitalWallets = Rt$1({ apiHandler: e2 }), this.disputes = bt$1({ apiHandler: e2 }), this.emailDeliverySettings = wt$1({ apiHandler: e2 }), this.emailMessages = kt$1({ apiHandler: e2 }), this.emailNotifications = dt$1({ apiHandler: e2 }), this.events = vt$1({ apiHandler: e2 }), this.externalIdentifiers = Tt$1({ apiHandler: e2 }), this.externalServicesSettings = St$1({
|
|
9938
9978
|
apiHandler: e2
|
|
9939
|
-
}), this.fees = It$1({ apiHandler: e2 }), this.files = Et$1({ apiHandler: e2 }), this.gatewayAccounts = qt$1({ apiHandler: e2 }), this.integrations = xt$1({ apiHandler: e2 }), this.invoices =
|
|
9979
|
+
}), this.fees = It$1({ apiHandler: e2 }), this.files = Et$1({ apiHandler: e2 }), this.gatewayAccounts = qt$1({ apiHandler: e2 }), this.integrations = xt$1({ apiHandler: e2 }), this.invoices = Ct$1({ apiHandler: e2 }), this.journalAccounts = Pt$1({ apiHandler: e2 }), this.journalEntries = jt$1({ apiHandler: e2 }), this.kycDocuments = Dt$1({ apiHandler: e2 }), this.kycRequests = Mt$1({ apiHandler: e2 }), this.kycSettings = Ft$1({ apiHandler: e2 }), this.lists = Ot$1({ apiHandler: e2 }), this.memberships = Bt$1({ apiHandler: e2 }), this.organizationExports = Kt$1({ apiHandler: e2 }), this.organizations = Nt$1({ apiHandler: e2 }), this.paymentCardsBankNames = Lt$1({ apiHandler: e2 }), this.paymentInstruments = zt$1({ apiHandler: e2 }), this.paymentMethods = Ut$1({ apiHandler: e2 }), this.paymentTokens = Vt$1({ apiHandler: e2 }), this.payoutRequests = Jt$1({ apiHandler: e2 }), this.payouts = Wt$1({ apiHandler: e2 }), this.plans = Gt$1({ apiHandler: e2 }), this.previews = Yt$1({ apiHandler: e2 }), this.products = Qt$1({ apiHandler: e2 }), this.profile = Xt$1({ apiHandler: e2 }), this.purchase = Zt$1({ apiHandler: e2 }), this.quotes = _t$1({ apiHandler: e2 }), this.resource = Ht$1({ apiHandler: e2 }), this.riskScoreRules = es({ apiHandler: e2 }), this.riskScoreSimulationJobs = ts({
|
|
9940
9980
|
apiHandler: e2
|
|
9941
9981
|
}), this.roles = ss({ apiHandler: e2 }), this.search = rs({ apiHandler: e2 }), this.segments = ns({ apiHandler: e2 }), this.sendThroughAttribution = us({ apiHandler: e2 }), this.serviceCredentials = os({ apiHandler: e2 }), this.shippingRates = ls({ apiHandler: e2 }), this.status = cs({ apiHandler: e2 }), this.subscriptionCancellations = is({
|
|
9942
9982
|
apiHandler: e2
|
|
9943
9983
|
}), this.subscriptionPauses = gs({ apiHandler: e2 }), this.subscriptionReactivations = as({
|
|
9944
9984
|
apiHandler: e2
|
|
9945
|
-
}), this.subscriptions = ms({ apiHandler: e2 }), this.tags = fs({ apiHandler: e2 }), this.tagsRules = $s({ apiHandler: e2 }), this.tracking = ps({ apiHandler: e2 }), this.transactions = hs({ apiHandler: e2 }), this.usages = ys({ apiHandler: e2 }), this.users = As({ apiHandler: e2 }), this.webhooks =
|
|
9985
|
+
}), this.subscriptions = ms({ apiHandler: e2 }), this.tags = fs({ apiHandler: e2 }), this.tagsRules = $s({ apiHandler: e2 }), this.tracking = ps({ apiHandler: e2 }), this.transactions = hs({ apiHandler: e2 }), this.usages = ys({ apiHandler: e2 }), this.users = As({ apiHandler: e2 }), this.webhooks = Rs({ apiHandler: e2 }), this.websites = bs({ apiHandler: e2 }), this.addRequestInterceptor = e2.addRequestInterceptor, this.removeRequestInterceptor = e2.removeRequestInterceptor, this.addResponseInterceptor = e2.addResponseInterceptor, this.removeResponseInterceptor = e2.removeResponseInterceptor, this.setTimeout = e2.setTimeout, this.setProxyAgent = e2.setProxyAgent, this.setSessionToken = e2.setSessionToken, this.setPublishableKey = e2.setPublishableKey, this.setEndpoints = e2.setEndpoints, this.getCancellationToken = e2.getCancellationToken, this.generateSignature = e2.generateSignature;
|
|
9946
9986
|
}
|
|
9947
9987
|
}
|
|
9948
9988
|
function ks({ apiHandler: t2 }) {
|
|
@@ -9955,7 +9995,7 @@ function ks({ apiHandler: t2 }) {
|
|
|
9955
9995
|
}
|
|
9956
9996
|
};
|
|
9957
9997
|
}
|
|
9958
|
-
function
|
|
9998
|
+
function ds({ apiHandler: t2 }) {
|
|
9959
9999
|
return {
|
|
9960
10000
|
/**
|
|
9961
10001
|
* @param { rebilly.GetDataExportCollectionRequest } request
|
|
@@ -10000,7 +10040,7 @@ function vs({ apiHandler: t2 }) {
|
|
|
10000
10040
|
}
|
|
10001
10041
|
};
|
|
10002
10042
|
}
|
|
10003
|
-
function
|
|
10043
|
+
function vs({ apiHandler: t2 }) {
|
|
10004
10044
|
return {
|
|
10005
10045
|
/**
|
|
10006
10046
|
* @returns { rebilly.GetHistogramTransactionReportResponsePromise } response
|
|
@@ -10456,10 +10496,10 @@ function Es({ apiHandler: t2 }) {
|
|
|
10456
10496
|
}
|
|
10457
10497
|
};
|
|
10458
10498
|
}
|
|
10459
|
-
const
|
|
10499
|
+
const R = {
|
|
10460
10500
|
CustomersResource: ks,
|
|
10461
|
-
DataExportsResource:
|
|
10462
|
-
HistogramsResource:
|
|
10501
|
+
DataExportsResource: ds,
|
|
10502
|
+
HistogramsResource: vs,
|
|
10463
10503
|
ReportsResource: Ts,
|
|
10464
10504
|
SubscriptionsResource: Ss,
|
|
10465
10505
|
TimelinesResource: Is,
|
|
@@ -10467,11 +10507,11 @@ const b$1 = {
|
|
|
10467
10507
|
};
|
|
10468
10508
|
class qs {
|
|
10469
10509
|
constructor({ apiHandler: e2 }) {
|
|
10470
|
-
this.customers =
|
|
10510
|
+
this.customers = R.CustomersResource({ apiHandler: e2 }), this.dataExports = R.DataExportsResource({
|
|
10471
10511
|
apiHandler: e2
|
|
10472
|
-
}), this.histograms =
|
|
10512
|
+
}), this.histograms = R.HistogramsResource({ apiHandler: e2 }), this.reports = R.ReportsResource({ apiHandler: e2 }), this.subscriptions = R.SubscriptionsResource({
|
|
10473
10513
|
apiHandler: e2
|
|
10474
|
-
}), this.timelines =
|
|
10514
|
+
}), this.timelines = R.TimelinesResource({ apiHandler: e2 }), this.location = R.LocationResource({ apiHandler: e2 }), this.addRequestInterceptor = e2.addRequestInterceptor, this.removeRequestInterceptor = e2.removeRequestInterceptor, this.addResponseInterceptor = e2.addResponseInterceptor, this.removeResponseInterceptor = e2.removeResponseInterceptor, this.setTimeout = e2.setTimeout, this.setProxyAgent = e2.setProxyAgent, this.setSessionToken = e2.setSessionToken, this.setEndpoints = e2.setEndpoints, this.getCancellationToken = e2.getCancellationToken;
|
|
10475
10515
|
}
|
|
10476
10516
|
}
|
|
10477
10517
|
function xs({ apiHandler: t2 }) {
|
|
@@ -10506,7 +10546,7 @@ function xs({ apiHandler: t2 }) {
|
|
|
10506
10546
|
}
|
|
10507
10547
|
};
|
|
10508
10548
|
}
|
|
10509
|
-
function
|
|
10549
|
+
function Cs({ apiHandler: t2 }) {
|
|
10510
10550
|
return {
|
|
10511
10551
|
login({ data: e2 }) {
|
|
10512
10552
|
return t2.post("login", e2);
|
|
@@ -10516,7 +10556,7 @@ function Ps({ apiHandler: t2 }) {
|
|
|
10516
10556
|
}
|
|
10517
10557
|
};
|
|
10518
10558
|
}
|
|
10519
|
-
function
|
|
10559
|
+
function Ps({ apiHandler: t2 }) {
|
|
10520
10560
|
return {
|
|
10521
10561
|
/**
|
|
10522
10562
|
* @returns { rebilly.StorefrontGetBillingPortalResponsePromise } response
|
|
@@ -10576,7 +10616,7 @@ function Os({ apiHandler: t2 }) {
|
|
|
10576
10616
|
}
|
|
10577
10617
|
};
|
|
10578
10618
|
}
|
|
10579
|
-
function
|
|
10619
|
+
function Bs({ apiHandler: t2 }) {
|
|
10580
10620
|
return {
|
|
10581
10621
|
/**
|
|
10582
10622
|
* @param { rebilly.StorefrontGetInvoiceCollectionRequest } request
|
|
@@ -10612,7 +10652,7 @@ function Ks({ apiHandler: t2 }) {
|
|
|
10612
10652
|
}
|
|
10613
10653
|
};
|
|
10614
10654
|
}
|
|
10615
|
-
function
|
|
10655
|
+
function Ks({ apiHandler: t2 }) {
|
|
10616
10656
|
return {
|
|
10617
10657
|
/**
|
|
10618
10658
|
* @param { rebilly.StorefrontGetKycDocumentCollectionRequest } request
|
|
@@ -10636,7 +10676,7 @@ function Ns({ apiHandler: t2 }) {
|
|
|
10636
10676
|
}
|
|
10637
10677
|
};
|
|
10638
10678
|
}
|
|
10639
|
-
function
|
|
10679
|
+
function Ns({ apiHandler: t2 }) {
|
|
10640
10680
|
return {
|
|
10641
10681
|
create({ data: e2 }) {
|
|
10642
10682
|
return t2.post("kyc-liveness-sessions", e2);
|
|
@@ -10934,7 +10974,7 @@ function Hs({ apiHandler: t2 }) {
|
|
|
10934
10974
|
}
|
|
10935
10975
|
class er {
|
|
10936
10976
|
constructor({ apiHandler: e2 }) {
|
|
10937
|
-
this.account = xs({ apiHandler: e2 }), this.authorization =
|
|
10977
|
+
this.account = xs({ apiHandler: e2 }), this.authorization = Cs({ apiHandler: e2 }), this.billingPortals = Ps({ apiHandler: e2 }), this.checkoutForms = js({ apiHandler: e2 }), this.customFields = Ds({ apiHandler: e2 }), this.depositRequests = Ms({ apiHandler: e2 }), this.deposit = Fs({ apiHandler: e2 }), this.depositStrategies = Os({ apiHandler: e2 }), this.invoices = Bs({ apiHandler: e2 }), this.kycDocuments = Ks({ apiHandler: e2 }), this.kycLivenessSessions = Ns({ apiHandler: e2 }), this.kycRequests = Ls({ apiHandler: e2 }), this.orders = zs({ apiHandler: e2 }), this.paymentInstruments = Us({ apiHandler: e2 }), this.payoutRequests = Vs({ apiHandler: e2 }), this.plans = Js({ apiHandler: e2 }), this.products = Ws({ apiHandler: e2 }), this.purchase = Gs({ apiHandler: e2 }), this.quotes = Ys({ apiHandler: e2 }), this.readyToPayout = Qs({ apiHandler: e2 }), this.subscriptionReactivations = Xs({
|
|
10938
10978
|
apiHandler: e2
|
|
10939
10979
|
}), this.subscriptions = Zs({ apiHandler: e2 }), this.transactions = _s({ apiHandler: e2 }), this.websites = Hs({ apiHandler: e2 }), this.checkoutForm = this.checkoutForms, this.billingPortal = this.billingPortals, this.addRequestInterceptor = e2.addRequestInterceptor, this.removeRequestInterceptor = e2.removeRequestInterceptor, this.addResponseInterceptor = e2.addResponseInterceptor, this.removeResponseInterceptor = e2.removeResponseInterceptor, this.setTimeout = e2.setTimeout, this.setProxyAgent = e2.setProxyAgent, this.setSessionToken = e2.setSessionToken, this.setPublishableKey = e2.setPublishableKey, this.setEndpoints = e2.setEndpoints, this.getCancellationToken = e2.getCancellationToken, this.generateSignature = e2.generateSignature;
|
|
10940
10980
|
}
|
|
@@ -10977,7 +11017,7 @@ function cr({
|
|
|
10977
11017
|
jwt: null,
|
|
10978
11018
|
organizationId: r2,
|
|
10979
11019
|
appName: (u == null ? void 0 : u.appName) ?? null
|
|
10980
|
-
}, l =
|
|
11020
|
+
}, l = P({ options: o2 });
|
|
10981
11021
|
return tr({ apiHandler: l });
|
|
10982
11022
|
}
|
|
10983
11023
|
function ir({
|
|
@@ -11005,7 +11045,7 @@ function ir({
|
|
|
11005
11045
|
jwt: null,
|
|
11006
11046
|
organizationId: r2,
|
|
11007
11047
|
appName: (u == null ? void 0 : u.appName) ?? null
|
|
11008
|
-
}, l =
|
|
11048
|
+
}, l = P({ options: o2 });
|
|
11009
11049
|
return sr({ apiHandler: l });
|
|
11010
11050
|
}
|
|
11011
11051
|
function gr({
|
|
@@ -11034,7 +11074,7 @@ function gr({
|
|
|
11034
11074
|
requestTimeout: r2,
|
|
11035
11075
|
organizationId: n2,
|
|
11036
11076
|
appName: (o2 == null ? void 0 : o2.appName) ?? null
|
|
11037
|
-
}, a =
|
|
11077
|
+
}, a = P({ options: l });
|
|
11038
11078
|
return a.setSessionToken(l.jwt), rr({ apiHandler: a });
|
|
11039
11079
|
}
|
|
11040
11080
|
const TIMEOUT = 6e4;
|