@rebilly/instruments 16.223.0 → 16.223.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 +5 -3
- package/dist/index.d.ts +0 -16
- package/dist/index.js +267 -498
- package/dist/index.min.js +6 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1180,15 +1180,15 @@ function camelCase(str) {
|
|
|
1180
1180
|
function kebabCase(str) {
|
|
1181
1181
|
return words(str).map((word) => word.toLowerCase()).join("-");
|
|
1182
1182
|
}
|
|
1183
|
-
const en$1 = { "summary": { "subTotal": "Subtotal", "discounts": "Discounts", "taxes": "Taxes", "shipping": "Shipping", "total": "Total" }, "
|
|
1183
|
+
const en$1 = { "summary": { "subTotal": "Subtotal", "discounts": "Discounts", "taxes": "Taxes", "shipping": "Shipping", "total": "Total" }, "form": { "expressCheckout": "Express checkout", "or": "Or", "popupOverlayText": "Click here to show popup window", "andMore": "and more", "error": { "noPaymentMethods": "No payment methods available for this transaction, please contact support.", "invoiceIsPaid": "The invoice has been fully paid.", "invoiceIsVoid": "The invoice has been voided.", "invoiceIsAbandoned": "The invoice has been abandoned.", "invoiceIsRefunded": "The invoice has been refunded.", "transactionIsCompleted": "The transaction is completed and cannot be updated.", "payoutCannotSelectPaymentInstrument": "The payout request cannot be updated." }, "loaderMessages": { "processingPayment": "Processing payment instrument." }, "bumpOffer": { "title": "Yes, I want to upgrade!", "startingAt": "Starting at {basePrice}" } }, "paymentMethods": { "payment-card": "Payment card", "ach": "Bank account" } };
|
|
1184
1184
|
const en$2 = {
|
|
1185
1185
|
en: en$1
|
|
1186
1186
|
};
|
|
1187
|
-
const es$1 = { "summary": { "subTotal": "Subtotal", "discounts": "Descuentos", "taxes": "Impuestos", "shipping": "Envío", "total": "Total" }, "
|
|
1187
|
+
const es$1 = { "summary": { "subTotal": "Subtotal", "discounts": "Descuentos", "taxes": "Impuestos", "shipping": "Envío", "total": "Total" }, "form": { "expressCheckout": "Chequeo rápido", "or": "O pague con", "popupOverlayText": "Haga clic aquí para mostrar la ventana emergente", "andMore": "y más", "error": { "noPaymentMethods": "No hay métodos de pago disponibles para esta transacción, por favor, póngase en contacto con el servicio de asistencia.", "invoiceIsPaid": "La factura ha sido completamente pagada.", "invoiceIsVoid": "La factura ha sido anulada.", "invoiceIsAbandoned": "La factura ha sido abandonada.", "invoiceIsRefunded": "La factura ha reembolsada.", "transactionIsCompleted": "La transacción está finalizada y no se puede actualizar.", "payoutCannotSelectPaymentInstrument": "La solicitud de pago no se puede actualizar." }, "loaderMessages": { "processingPayment": "Procesamiento de instrumento de pago." }, "bumpOffer": { "title": "¡Sí, me gustaría actualizar!", "startingAt": "A partir de {basePrice}" } }, "paymentMethods": { "payment-card": "Tarjeta de crédito", "ach": "Cuenta bancaria" } };
|
|
1188
1188
|
const es$2 = {
|
|
1189
1189
|
es: es$1
|
|
1190
1190
|
};
|
|
1191
|
-
const ja = { "summary": { "subTotal": "Subtotal", "discounts": "Discounts", "taxes": "Taxes", "shipping": "Shipping", "total": "Total" }, "
|
|
1191
|
+
const ja = { "summary": { "subTotal": "Subtotal", "discounts": "Discounts", "taxes": "Taxes", "shipping": "Shipping", "total": "Total" }, "form": { "expressCheckout": "Express checkout", "or": "Or", "popupOverlayText": "Click here to show popup window", "andMore": "and more", "error": { "noPaymentMethods": "No payment methods available for this transaction, please contact support.", "invoiceIsPaid": "The invoice has been fully paid.", "invoiceIsVoid": "The invoice has been voided.", "invoiceIsAbandoned": "The invoice has been abandoned.", "invoiceIsRefunded": "The invoice has been refunded.", "transactionIsCompleted": "The transaction is completed and cannot be updated.", "payoutCannotSelectPaymentInstrument": "The payout request cannot be updated." }, "loaderMessages": { "processingPayment": "Processing payment instrument." }, "bumpOffer": { "title": "Yes, I want to upgrade!", "startingAt": "Starting at {basePrice}" } }, "paymentMethods": { "payment-card": "Payment card", "ach": "Bank account" } };
|
|
1192
1192
|
const ja$1 = {
|
|
1193
1193
|
ja
|
|
1194
1194
|
};
|
|
@@ -5934,9 +5934,9 @@ const {
|
|
|
5934
5934
|
mergeConfig,
|
|
5935
5935
|
create
|
|
5936
5936
|
} = axios;
|
|
5937
|
-
var $
|
|
5938
|
-
var
|
|
5939
|
-
var E$1 = (t, e, s) =>
|
|
5937
|
+
var he$1 = Object.defineProperty;
|
|
5938
|
+
var pe$1 = (t, e, s) => e in t ? he$1(t, e, { enumerable: true, configurable: true, writable: true, value: s }) : t[e] = s;
|
|
5939
|
+
var E$1 = (t, e, s) => pe$1(t, typeof e != "symbol" ? e + "" : e, s);
|
|
5940
5940
|
function S$1(t, { exclude: e = [] } = {}) {
|
|
5941
5941
|
Object.freeze(t);
|
|
5942
5942
|
const s = typeof t == "function";
|
|
@@ -6057,28 +6057,28 @@ const y = {
|
|
|
6057
6057
|
function Ie$1(t) {
|
|
6058
6058
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
6059
6059
|
}
|
|
6060
|
-
var
|
|
6060
|
+
var x$1, Q$1;
|
|
6061
6061
|
function se$1() {
|
|
6062
|
-
if (Q$1) return
|
|
6062
|
+
if (Q$1) return x$1;
|
|
6063
6063
|
Q$1 = 1;
|
|
6064
6064
|
var t = Object.prototype.toString;
|
|
6065
|
-
|
|
6066
|
-
if (
|
|
6067
|
-
if (
|
|
6068
|
-
var
|
|
6069
|
-
if (
|
|
6070
|
-
if (
|
|
6071
|
-
if (
|
|
6072
|
-
if (
|
|
6073
|
-
if (
|
|
6074
|
-
return o(
|
|
6075
|
-
if (s(
|
|
6076
|
-
if (f(
|
|
6077
|
-
if (i(
|
|
6078
|
-
if (n(
|
|
6079
|
-
if (r(
|
|
6080
|
-
if (u(
|
|
6081
|
-
switch (e(
|
|
6065
|
+
x$1 = function(h2) {
|
|
6066
|
+
if (h2 === void 0) return "undefined";
|
|
6067
|
+
if (h2 === null) return "null";
|
|
6068
|
+
var p = typeof h2;
|
|
6069
|
+
if (p === "boolean") return "boolean";
|
|
6070
|
+
if (p === "string") return "string";
|
|
6071
|
+
if (p === "number") return "number";
|
|
6072
|
+
if (p === "symbol") return "symbol";
|
|
6073
|
+
if (p === "function")
|
|
6074
|
+
return o(h2) ? "generatorfunction" : "function";
|
|
6075
|
+
if (s(h2)) return "array";
|
|
6076
|
+
if (f(h2)) return "buffer";
|
|
6077
|
+
if (i(h2)) return "arguments";
|
|
6078
|
+
if (n(h2)) return "date";
|
|
6079
|
+
if (r(h2)) return "error";
|
|
6080
|
+
if (u(h2)) return "regexp";
|
|
6081
|
+
switch (e(h2)) {
|
|
6082
6082
|
case "Symbol":
|
|
6083
6083
|
return "symbol";
|
|
6084
6084
|
case "Promise":
|
|
@@ -6114,9 +6114,9 @@ function se$1() {
|
|
|
6114
6114
|
case "Float64Array":
|
|
6115
6115
|
return "float64array";
|
|
6116
6116
|
}
|
|
6117
|
-
if (l(
|
|
6117
|
+
if (l(h2))
|
|
6118
6118
|
return "generator";
|
|
6119
|
-
switch (
|
|
6119
|
+
switch (p = t.call(h2), p) {
|
|
6120
6120
|
case "[object Object]":
|
|
6121
6121
|
return "object";
|
|
6122
6122
|
// iterators
|
|
@@ -6129,7 +6129,7 @@ function se$1() {
|
|
|
6129
6129
|
case "[object Array Iterator]":
|
|
6130
6130
|
return "arrayiterator";
|
|
6131
6131
|
}
|
|
6132
|
-
return
|
|
6132
|
+
return p.slice(8, -1).toLowerCase().replace(/\s/g, "");
|
|
6133
6133
|
};
|
|
6134
6134
|
function e(g) {
|
|
6135
6135
|
return typeof g.constructor == "function" ? g.constructor.name : null;
|
|
@@ -6146,7 +6146,7 @@ function se$1() {
|
|
|
6146
6146
|
function u(g) {
|
|
6147
6147
|
return g instanceof RegExp ? true : typeof g.flags == "string" && typeof g.ignoreCase == "boolean" && typeof g.multiline == "boolean" && typeof g.global == "boolean";
|
|
6148
6148
|
}
|
|
6149
|
-
function o(g,
|
|
6149
|
+
function o(g, h2) {
|
|
6150
6150
|
return e(g) === "GeneratorFunction";
|
|
6151
6151
|
}
|
|
6152
6152
|
function l(g) {
|
|
@@ -6156,8 +6156,8 @@ function se$1() {
|
|
|
6156
6156
|
try {
|
|
6157
6157
|
if (typeof g.length == "number" && typeof g.callee == "function")
|
|
6158
6158
|
return true;
|
|
6159
|
-
} catch (
|
|
6160
|
-
if (
|
|
6159
|
+
} catch (h2) {
|
|
6160
|
+
if (h2.message.indexOf("callee") !== -1)
|
|
6161
6161
|
return true;
|
|
6162
6162
|
}
|
|
6163
6163
|
return false;
|
|
@@ -6165,7 +6165,7 @@ function se$1() {
|
|
|
6165
6165
|
function f(g) {
|
|
6166
6166
|
return g.constructor && typeof g.constructor.isBuffer == "function" ? g.constructor.isBuffer(g) : false;
|
|
6167
6167
|
}
|
|
6168
|
-
return
|
|
6168
|
+
return x$1;
|
|
6169
6169
|
}
|
|
6170
6170
|
/*!
|
|
6171
6171
|
* shallow-clone <https://github.com/jonschlinkert/shallow-clone>
|
|
@@ -6173,9 +6173,9 @@ function se$1() {
|
|
|
6173
6173
|
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
6174
6174
|
* Released under the MIT License.
|
|
6175
6175
|
*/
|
|
6176
|
-
var
|
|
6176
|
+
var P, X$1;
|
|
6177
6177
|
function Se$1() {
|
|
6178
|
-
if (X$1) return
|
|
6178
|
+
if (X$1) return P;
|
|
6179
6179
|
X$1 = 1;
|
|
6180
6180
|
const t = Symbol.prototype.valueOf, e = se$1();
|
|
6181
6181
|
function s(i, f) {
|
|
@@ -6232,7 +6232,7 @@ function Se$1() {
|
|
|
6232
6232
|
function l(i) {
|
|
6233
6233
|
return t ? Object(t.call(i)) : {};
|
|
6234
6234
|
}
|
|
6235
|
-
return
|
|
6235
|
+
return P = s, P;
|
|
6236
6236
|
}
|
|
6237
6237
|
/*!
|
|
6238
6238
|
* isobject <https://github.com/jonschlinkert/isobject>
|
|
@@ -6253,7 +6253,7 @@ function Ee$1() {
|
|
|
6253
6253
|
* Released under the MIT License.
|
|
6254
6254
|
*/
|
|
6255
6255
|
var D, _$1;
|
|
6256
|
-
function
|
|
6256
|
+
function xe$1() {
|
|
6257
6257
|
if (_$1) return D;
|
|
6258
6258
|
_$1 = 1;
|
|
6259
6259
|
var t = Ee$1();
|
|
@@ -6266,10 +6266,10 @@ function Pe$1() {
|
|
|
6266
6266
|
}, D;
|
|
6267
6267
|
}
|
|
6268
6268
|
var j$1, H$1;
|
|
6269
|
-
function
|
|
6269
|
+
function Pe$1() {
|
|
6270
6270
|
if (H$1) return j$1;
|
|
6271
6271
|
H$1 = 1;
|
|
6272
|
-
const t = Se$1(), e = se$1(), s =
|
|
6272
|
+
const t = Se$1(), e = se$1(), s = xe$1();
|
|
6273
6273
|
function r(o, l) {
|
|
6274
6274
|
switch (e(o)) {
|
|
6275
6275
|
case "object":
|
|
@@ -6299,7 +6299,7 @@ function xe$1() {
|
|
|
6299
6299
|
}
|
|
6300
6300
|
return j$1 = r, j$1;
|
|
6301
6301
|
}
|
|
6302
|
-
var Ce$1 =
|
|
6302
|
+
var Ce$1 = Pe$1();
|
|
6303
6303
|
const De$1 = /* @__PURE__ */ Ie$1(Ce$1);
|
|
6304
6304
|
let je$1 = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Me$1 = (t = 21) => {
|
|
6305
6305
|
let e = "", s = t | 0;
|
|
@@ -6383,7 +6383,7 @@ E$1(I$1, "cancelAll", async (e) => {
|
|
|
6383
6383
|
for (const s of q$1.getAll())
|
|
6384
6384
|
await s.cancel(e), q$1.deleteById(s.id);
|
|
6385
6385
|
});
|
|
6386
|
-
const
|
|
6386
|
+
const ur = {
|
|
6387
6387
|
/**
|
|
6388
6388
|
* @type Cancellation.cancelAll
|
|
6389
6389
|
*/
|
|
@@ -6417,7 +6417,7 @@ function O$1({ options: t }) {
|
|
|
6417
6417
|
}
|
|
6418
6418
|
function o() {
|
|
6419
6419
|
const a = {
|
|
6420
|
-
"REB-API-CONSUMER": `${["Rebilly", t.appName, "js-sdk"].filter((m2) => m2).join("/")}@
|
|
6420
|
+
"REB-API-CONSUMER": `${["Rebilly", t.appName, "js-sdk"].filter((m2) => m2).join("/")}@a547fe0`
|
|
6421
6421
|
};
|
|
6422
6422
|
return t.apiKey && (a["REB-APIKEY"] = t.apiKey), a;
|
|
6423
6423
|
}
|
|
@@ -6435,14 +6435,14 @@ function O$1({ options: t }) {
|
|
|
6435
6435
|
const a = l();
|
|
6436
6436
|
t.publishableKey = c, a.common.Authorization = `${c}`, e.defaults.headers = a;
|
|
6437
6437
|
}
|
|
6438
|
-
function
|
|
6438
|
+
function h2({ host: c, port: a, auth: m2 }) {
|
|
6439
6439
|
e.defaults.proxy = {
|
|
6440
6440
|
host: c,
|
|
6441
6441
|
port: a,
|
|
6442
6442
|
auth: m2
|
|
6443
6443
|
};
|
|
6444
6444
|
}
|
|
6445
|
-
function
|
|
6445
|
+
function p({ live: c = null, sandbox: a = null }) {
|
|
6446
6446
|
c && (t.apiEndpoints.live = c), a && (t.apiEndpoints.sandbox = a), e.defaults.baseURL = u();
|
|
6447
6447
|
}
|
|
6448
6448
|
function K2(c, { thenDelegate: a, catchDelegate: m2 = () => {
|
|
@@ -6479,15 +6479,15 @@ function O$1({ options: t }) {
|
|
|
6479
6479
|
N2(w.response, c);
|
|
6480
6480
|
}
|
|
6481
6481
|
function v({ request: c, isCollection: a, config: m2 }) {
|
|
6482
|
-
const
|
|
6483
|
-
|
|
6482
|
+
const $2 = z2(m2), { id: R, cancelToken: $e2 } = q$1.save();
|
|
6483
|
+
$2.cancelToken = $e2;
|
|
6484
6484
|
const G2 = (async function() {
|
|
6485
6485
|
try {
|
|
6486
|
-
const d = await c(
|
|
6486
|
+
const d = await c($2);
|
|
6487
6487
|
return le2({
|
|
6488
6488
|
response: d,
|
|
6489
6489
|
isCollection: a,
|
|
6490
|
-
config:
|
|
6490
|
+
config: $2
|
|
6491
6491
|
});
|
|
6492
6492
|
} catch (d) {
|
|
6493
6493
|
return L2({ error: d });
|
|
@@ -6527,8 +6527,8 @@ function O$1({ options: t }) {
|
|
|
6527
6527
|
return c.params[a] !== null && c.params[a] !== "" && !(a === "sort" && ((m2 = c.params[a]) == null ? void 0 : m2.length) === 0);
|
|
6528
6528
|
}
|
|
6529
6529
|
).reduce((a, m2) => {
|
|
6530
|
-
const
|
|
6531
|
-
return a[m2] = m2 === "sort" && Array.isArray(
|
|
6530
|
+
const $2 = c.params[m2];
|
|
6531
|
+
return a[m2] = m2 === "sort" && Array.isArray($2) ? $2.join(",") : $2, a;
|
|
6532
6532
|
}, {})), c;
|
|
6533
6533
|
}
|
|
6534
6534
|
function z2(c = {}) {
|
|
@@ -6548,15 +6548,15 @@ function O$1({ options: t }) {
|
|
|
6548
6548
|
});
|
|
6549
6549
|
}
|
|
6550
6550
|
function V2(c, a, m2 = {}) {
|
|
6551
|
-
let
|
|
6552
|
-
return m2.authenticate === false && (
|
|
6551
|
+
let $2 = {};
|
|
6552
|
+
return m2.authenticate === false && ($2 = { headers: l() }, delete $2.headers.common["REB-APIKEY"], delete $2.headers.common.Authorization), m2.params && ($2.params = { ...m2.params }), v({
|
|
6553
6553
|
request: (R) => e.post(c, a, R),
|
|
6554
|
-
config:
|
|
6554
|
+
config: $2
|
|
6555
6555
|
});
|
|
6556
6556
|
}
|
|
6557
6557
|
function J2(c, a, m2 = {}) {
|
|
6558
6558
|
return v({
|
|
6559
|
-
request: (
|
|
6559
|
+
request: ($2) => e.put(c, a, $2),
|
|
6560
6560
|
config: { params: m2 }
|
|
6561
6561
|
});
|
|
6562
6562
|
}
|
|
@@ -6575,9 +6575,9 @@ function O$1({ options: t }) {
|
|
|
6575
6575
|
function ge(c, a) {
|
|
6576
6576
|
return W2(c, a);
|
|
6577
6577
|
}
|
|
6578
|
-
async function me2(c, a, m2,
|
|
6578
|
+
async function me2(c, a, m2, $2 = {}) {
|
|
6579
6579
|
if (a === "")
|
|
6580
|
-
return V2(c, m2, { params:
|
|
6580
|
+
return V2(c, m2, { params: $2 });
|
|
6581
6581
|
try {
|
|
6582
6582
|
if ((await U2(c)).response.status === 200)
|
|
6583
6583
|
throw new y.RebillyConflictError({
|
|
@@ -6585,17 +6585,17 @@ function O$1({ options: t }) {
|
|
|
6585
6585
|
});
|
|
6586
6586
|
} catch (R) {
|
|
6587
6587
|
if (R.name === "RebillyNotFoundError")
|
|
6588
|
-
return J2(c, m2,
|
|
6588
|
+
return J2(c, m2, $2);
|
|
6589
6589
|
throw R;
|
|
6590
6590
|
}
|
|
6591
6591
|
}
|
|
6592
6592
|
async function fe2(c, a) {
|
|
6593
6593
|
const m2 = z2(a);
|
|
6594
6594
|
try {
|
|
6595
|
-
const
|
|
6596
|
-
return new Ae$1(
|
|
6597
|
-
} catch (
|
|
6598
|
-
return L2({ error:
|
|
6595
|
+
const $2 = await e.get(c, m2);
|
|
6596
|
+
return new Ae$1($2, m2);
|
|
6597
|
+
} catch ($2) {
|
|
6598
|
+
return L2({ error: $2 });
|
|
6599
6599
|
}
|
|
6600
6600
|
}
|
|
6601
6601
|
return {
|
|
@@ -6605,10 +6605,10 @@ function O$1({ options: t }) {
|
|
|
6605
6605
|
addResponseInterceptor: ue2,
|
|
6606
6606
|
removeResponseInterceptor: oe2,
|
|
6607
6607
|
setTimeout: i,
|
|
6608
|
-
setProxyAgent:
|
|
6608
|
+
setProxyAgent: h2,
|
|
6609
6609
|
setSessionToken: f,
|
|
6610
6610
|
setPublishableKey: g,
|
|
6611
|
-
setEndpoints:
|
|
6611
|
+
setEndpoints: p,
|
|
6612
6612
|
get: U2,
|
|
6613
6613
|
getAll: ie2,
|
|
6614
6614
|
post: V2,
|
|
@@ -7391,40 +7391,6 @@ function tt$1({ apiHandler: t }) {
|
|
|
7391
7391
|
};
|
|
7392
7392
|
}
|
|
7393
7393
|
function st$1({ apiHandler: t }) {
|
|
7394
|
-
return {
|
|
7395
|
-
/**
|
|
7396
|
-
* @param { rebilly.GetDepositCustomPropertySetCollectionRequest } request
|
|
7397
|
-
* @returns { rebilly.GetDepositCustomPropertySetCollectionResponsePromise } response
|
|
7398
|
-
*/
|
|
7399
|
-
getAll({ limit: e = null, offset: s = null, filter: r = null, sort: n = null } = {}) {
|
|
7400
|
-
const u = { limit: e, offset: s, filter: r, sort: n };
|
|
7401
|
-
return t.getAll("deposit-custom-property-sets", u);
|
|
7402
|
-
},
|
|
7403
|
-
/**
|
|
7404
|
-
* @param { rebilly.CreateDepositCustomPropertySetRequest } request
|
|
7405
|
-
* @returns { rebilly.PostDepositCustomPropertySetResponsePromise } response
|
|
7406
|
-
*/
|
|
7407
|
-
create({ id: e = "", data: s }) {
|
|
7408
|
-
return t.create(`deposit-custom-property-sets/${e}`, e, s);
|
|
7409
|
-
},
|
|
7410
|
-
/**
|
|
7411
|
-
* @returns { rebilly.GetDepositCustomPropertySetResponsePromise } response
|
|
7412
|
-
*/
|
|
7413
|
-
get({ id: e }) {
|
|
7414
|
-
return t.get(`deposit-custom-property-sets/${e}`);
|
|
7415
|
-
},
|
|
7416
|
-
/**
|
|
7417
|
-
* @returns { rebilly.PutDepositCustomPropertySetResponsePromise } response
|
|
7418
|
-
*/
|
|
7419
|
-
update({ id: e, data: s }) {
|
|
7420
|
-
return t.put(`deposit-custom-property-sets/${e}`, s);
|
|
7421
|
-
},
|
|
7422
|
-
delete({ id: e }) {
|
|
7423
|
-
return t.delete(`deposit-custom-property-sets/${e}`);
|
|
7424
|
-
}
|
|
7425
|
-
};
|
|
7426
|
-
}
|
|
7427
|
-
function rt$1({ apiHandler: t }) {
|
|
7428
7394
|
return {
|
|
7429
7395
|
/**
|
|
7430
7396
|
* @param { rebilly.GetDepositRequestCollectionRequest } request
|
|
@@ -7452,7 +7418,7 @@ function rt$1({ apiHandler: t }) {
|
|
|
7452
7418
|
}
|
|
7453
7419
|
};
|
|
7454
7420
|
}
|
|
7455
|
-
function
|
|
7421
|
+
function rt$1({ apiHandler: t }) {
|
|
7456
7422
|
return {
|
|
7457
7423
|
/**
|
|
7458
7424
|
* @param { rebilly.GetDepositStrategyCollectionRequest } request
|
|
@@ -7486,7 +7452,7 @@ function nt$1({ apiHandler: t }) {
|
|
|
7486
7452
|
}
|
|
7487
7453
|
};
|
|
7488
7454
|
}
|
|
7489
|
-
function
|
|
7455
|
+
function nt$1({ apiHandler: t }) {
|
|
7490
7456
|
return {
|
|
7491
7457
|
validate({ data: e }) {
|
|
7492
7458
|
return t.post("digital-wallets/validation", e);
|
|
@@ -7496,7 +7462,7 @@ function ut$1({ apiHandler: t }) {
|
|
|
7496
7462
|
}
|
|
7497
7463
|
};
|
|
7498
7464
|
}
|
|
7499
|
-
function
|
|
7465
|
+
function ut$1({ apiHandler: t }) {
|
|
7500
7466
|
return {
|
|
7501
7467
|
/**
|
|
7502
7468
|
* @param { rebilly.GetDisputeCollectionRequest } request
|
|
@@ -7536,7 +7502,7 @@ function ot$1({ apiHandler: t }) {
|
|
|
7536
7502
|
}
|
|
7537
7503
|
};
|
|
7538
7504
|
}
|
|
7539
|
-
function
|
|
7505
|
+
function ot$1({ apiHandler: t }) {
|
|
7540
7506
|
return {
|
|
7541
7507
|
/**
|
|
7542
7508
|
* @returns { rebilly.PutEmailDeliverySettingsVerificationResponsePromise } response
|
|
@@ -7580,7 +7546,7 @@ function lt$1({ apiHandler: t }) {
|
|
|
7580
7546
|
}
|
|
7581
7547
|
};
|
|
7582
7548
|
}
|
|
7583
|
-
function
|
|
7549
|
+
function lt$1({ apiHandler: t }) {
|
|
7584
7550
|
return {
|
|
7585
7551
|
/**
|
|
7586
7552
|
* @param { rebilly.GetEmailMessageCollectionRequest } request
|
|
@@ -7613,7 +7579,7 @@ function ct$1({ apiHandler: t }) {
|
|
|
7613
7579
|
}
|
|
7614
7580
|
};
|
|
7615
7581
|
}
|
|
7616
|
-
function
|
|
7582
|
+
function ct$1({ apiHandler: t }) {
|
|
7617
7583
|
return {
|
|
7618
7584
|
/**
|
|
7619
7585
|
* @param { rebilly.GetEmailNotificationCollectionRequest } request
|
|
@@ -7625,7 +7591,7 @@ function it$1({ apiHandler: t }) {
|
|
|
7625
7591
|
}
|
|
7626
7592
|
};
|
|
7627
7593
|
}
|
|
7628
|
-
function
|
|
7594
|
+
function it$1({ apiHandler: t }) {
|
|
7629
7595
|
return {
|
|
7630
7596
|
/**
|
|
7631
7597
|
* @param { rebilly.GetEventCollectionRequest } request
|
|
@@ -7757,7 +7723,7 @@ function at$1({ apiHandler: t }) {
|
|
|
7757
7723
|
}
|
|
7758
7724
|
};
|
|
7759
7725
|
}
|
|
7760
|
-
function
|
|
7726
|
+
function at$1({ apiHandler: t }) {
|
|
7761
7727
|
return {
|
|
7762
7728
|
/**
|
|
7763
7729
|
* @returns { rebilly.GetExternalIdentifierResponsePromise } response
|
|
@@ -7788,7 +7754,7 @@ function gt$1({ apiHandler: t }) {
|
|
|
7788
7754
|
}
|
|
7789
7755
|
};
|
|
7790
7756
|
}
|
|
7791
|
-
function
|
|
7757
|
+
function gt$1({ apiHandler: t }) {
|
|
7792
7758
|
return {
|
|
7793
7759
|
/**
|
|
7794
7760
|
* @returns { rebilly.GetExternalServiceSettingsResponsePromise } response
|
|
@@ -7804,7 +7770,7 @@ function mt$1({ apiHandler: t }) {
|
|
|
7804
7770
|
}
|
|
7805
7771
|
};
|
|
7806
7772
|
}
|
|
7807
|
-
function
|
|
7773
|
+
function mt$1({ apiHandler: t }) {
|
|
7808
7774
|
return {
|
|
7809
7775
|
/**
|
|
7810
7776
|
* @param { rebilly.GetFeeCollectionRequest } request
|
|
@@ -7841,7 +7807,7 @@ function ft$1({ apiHandler: t }) {
|
|
|
7841
7807
|
}
|
|
7842
7808
|
};
|
|
7843
7809
|
}
|
|
7844
|
-
function
|
|
7810
|
+
function ft$1({ apiHandler: t }) {
|
|
7845
7811
|
return {
|
|
7846
7812
|
/**
|
|
7847
7813
|
* @param { rebilly.GetAttachmentCollectionRequest } request
|
|
@@ -8133,7 +8099,7 @@ function ht$1({ apiHandler: t }) {
|
|
|
8133
8099
|
}
|
|
8134
8100
|
};
|
|
8135
8101
|
}
|
|
8136
|
-
function
|
|
8102
|
+
function pt$1({ apiHandler: t }) {
|
|
8137
8103
|
return {
|
|
8138
8104
|
/**
|
|
8139
8105
|
* @param { rebilly.GetInvoiceCollectionRequest } request
|
|
@@ -8264,7 +8230,7 @@ function yt$1({ apiHandler: t }) {
|
|
|
8264
8230
|
}
|
|
8265
8231
|
};
|
|
8266
8232
|
}
|
|
8267
|
-
function
|
|
8233
|
+
function yt$1({ apiHandler: t }) {
|
|
8268
8234
|
return {
|
|
8269
8235
|
/**
|
|
8270
8236
|
* @param { rebilly.GetJournalAccountCollectionRequest } request
|
|
@@ -8300,7 +8266,7 @@ function At$1({ apiHandler: t }) {
|
|
|
8300
8266
|
}
|
|
8301
8267
|
};
|
|
8302
8268
|
}
|
|
8303
|
-
function
|
|
8269
|
+
function At$1({ apiHandler: t }) {
|
|
8304
8270
|
return {
|
|
8305
8271
|
/**
|
|
8306
8272
|
* @param { rebilly.GetJournalEntryCollectionRequest } request
|
|
@@ -8336,7 +8302,7 @@ function Rt$1({ apiHandler: t }) {
|
|
|
8336
8302
|
}
|
|
8337
8303
|
};
|
|
8338
8304
|
}
|
|
8339
|
-
function
|
|
8305
|
+
function Rt$1({ apiHandler: t }) {
|
|
8340
8306
|
return {
|
|
8341
8307
|
/**
|
|
8342
8308
|
* @param { rebilly.GetJournalRecordCollectionRequest } request
|
|
@@ -8376,7 +8342,7 @@ function bt$1({ apiHandler: t }) {
|
|
|
8376
8342
|
}
|
|
8377
8343
|
};
|
|
8378
8344
|
}
|
|
8379
|
-
function
|
|
8345
|
+
function bt$1({ apiHandler: t }) {
|
|
8380
8346
|
return {
|
|
8381
8347
|
/**
|
|
8382
8348
|
* @param { rebilly.GetKycDocumentCollectionRequest } request
|
|
@@ -8431,7 +8397,7 @@ function wt$1({ apiHandler: t }) {
|
|
|
8431
8397
|
}
|
|
8432
8398
|
};
|
|
8433
8399
|
}
|
|
8434
|
-
function
|
|
8400
|
+
function wt$1({ apiHandler: t }) {
|
|
8435
8401
|
return {
|
|
8436
8402
|
/**
|
|
8437
8403
|
* @param { rebilly.GetKycRequestCollectionRequest } request
|
|
@@ -8464,7 +8430,7 @@ function kt$1({ apiHandler: t }) {
|
|
|
8464
8430
|
}
|
|
8465
8431
|
};
|
|
8466
8432
|
}
|
|
8467
|
-
function
|
|
8433
|
+
function kt$1({ apiHandler: t }) {
|
|
8468
8434
|
return {
|
|
8469
8435
|
/**
|
|
8470
8436
|
* @returns { rebilly.GetKycSettingsResponsePromise } response
|
|
@@ -8480,7 +8446,7 @@ function vt$1({ apiHandler: t }) {
|
|
|
8480
8446
|
}
|
|
8481
8447
|
};
|
|
8482
8448
|
}
|
|
8483
|
-
function
|
|
8449
|
+
function vt$1({ apiHandler: t }) {
|
|
8484
8450
|
return {
|
|
8485
8451
|
/**
|
|
8486
8452
|
* @param { rebilly.GetListCollectionRequest } request
|
|
@@ -8527,7 +8493,7 @@ function qt$1({ apiHandler: t }) {
|
|
|
8527
8493
|
}
|
|
8528
8494
|
};
|
|
8529
8495
|
}
|
|
8530
|
-
function
|
|
8496
|
+
function qt$1({ apiHandler: t }) {
|
|
8531
8497
|
return {
|
|
8532
8498
|
/**
|
|
8533
8499
|
* @param { rebilly.GetOrderCancellationCollectionRequest } request
|
|
@@ -8564,7 +8530,7 @@ function dt$1({ apiHandler: t }) {
|
|
|
8564
8530
|
}
|
|
8565
8531
|
};
|
|
8566
8532
|
}
|
|
8567
|
-
function
|
|
8533
|
+
function dt$1({ apiHandler: t }) {
|
|
8568
8534
|
return {
|
|
8569
8535
|
/**
|
|
8570
8536
|
* @param { rebilly.GetOrderChangeCollectionRequest } request
|
|
@@ -8598,7 +8564,7 @@ function Tt$1({ apiHandler: t }) {
|
|
|
8598
8564
|
}
|
|
8599
8565
|
};
|
|
8600
8566
|
}
|
|
8601
|
-
function
|
|
8567
|
+
function Tt$1({ apiHandler: t }) {
|
|
8602
8568
|
return {
|
|
8603
8569
|
/**
|
|
8604
8570
|
* @param { rebilly.GetOrderPauseCollectionRequest } request
|
|
@@ -8632,7 +8598,7 @@ function It$1({ apiHandler: t }) {
|
|
|
8632
8598
|
}
|
|
8633
8599
|
};
|
|
8634
8600
|
}
|
|
8635
|
-
function
|
|
8601
|
+
function It$1({ apiHandler: t }) {
|
|
8636
8602
|
return {
|
|
8637
8603
|
/**
|
|
8638
8604
|
* @param { rebilly.GetOrderReactivationCollectionRequest } request
|
|
@@ -8653,7 +8619,7 @@ function St$1({ apiHandler: t }) {
|
|
|
8653
8619
|
}
|
|
8654
8620
|
};
|
|
8655
8621
|
}
|
|
8656
|
-
function
|
|
8622
|
+
function St$1({ apiHandler: t }) {
|
|
8657
8623
|
return {
|
|
8658
8624
|
/**
|
|
8659
8625
|
* @param { rebilly.GetOrderCollectionRequest } request
|
|
@@ -8717,7 +8683,7 @@ function Et$1({ apiHandler: t }) {
|
|
|
8717
8683
|
}
|
|
8718
8684
|
};
|
|
8719
8685
|
}
|
|
8720
|
-
function
|
|
8686
|
+
function Et$1({ apiHandler: t }) {
|
|
8721
8687
|
return {
|
|
8722
8688
|
/**
|
|
8723
8689
|
* @param { rebilly.GetOrganizationExportCollectionRequest } request
|
|
@@ -8774,7 +8740,7 @@ function xt$1({ apiHandler: t }) {
|
|
|
8774
8740
|
}
|
|
8775
8741
|
};
|
|
8776
8742
|
}
|
|
8777
|
-
function
|
|
8743
|
+
function Pt$1({ apiHandler: t }) {
|
|
8778
8744
|
return {
|
|
8779
8745
|
/**
|
|
8780
8746
|
* @param { rebilly.GetPaymentCardBankNameCollectionRequest } request
|
|
@@ -8786,7 +8752,7 @@ function Ct$1({ apiHandler: t }) {
|
|
|
8786
8752
|
}
|
|
8787
8753
|
};
|
|
8788
8754
|
}
|
|
8789
|
-
function
|
|
8755
|
+
function Ct$1({ apiHandler: t }) {
|
|
8790
8756
|
return {
|
|
8791
8757
|
/**
|
|
8792
8758
|
* @param { rebilly.GetPaymentInstrumentCollectionRequest } request
|
|
@@ -8823,7 +8789,7 @@ function Dt$1({ apiHandler: t }) {
|
|
|
8823
8789
|
}
|
|
8824
8790
|
};
|
|
8825
8791
|
}
|
|
8826
|
-
function
|
|
8792
|
+
function Dt$1({ apiHandler: t }) {
|
|
8827
8793
|
return {
|
|
8828
8794
|
/**
|
|
8829
8795
|
* @param { rebilly.GetPaymentMethodCollectionRequest } request
|
|
@@ -8841,7 +8807,7 @@ function jt$1({ apiHandler: t }) {
|
|
|
8841
8807
|
}
|
|
8842
8808
|
};
|
|
8843
8809
|
}
|
|
8844
|
-
function
|
|
8810
|
+
function jt$1({ apiHandler: t }) {
|
|
8845
8811
|
return {
|
|
8846
8812
|
/**
|
|
8847
8813
|
* @param { rebilly.GetTokenCollectionRequest } request
|
|
@@ -8862,7 +8828,7 @@ function Mt$1({ apiHandler: t }) {
|
|
|
8862
8828
|
}
|
|
8863
8829
|
};
|
|
8864
8830
|
}
|
|
8865
|
-
function
|
|
8831
|
+
function Mt$1({ apiHandler: t }) {
|
|
8866
8832
|
return {
|
|
8867
8833
|
/**
|
|
8868
8834
|
* @param { rebilly.GetPayoutRequestAllocationCollectionRequest } request
|
|
@@ -8889,28 +8855,28 @@ function Ot$1({ apiHandler: t }) {
|
|
|
8889
8855
|
}
|
|
8890
8856
|
};
|
|
8891
8857
|
}
|
|
8892
|
-
function
|
|
8858
|
+
function Ot$1({ apiHandler: t }) {
|
|
8893
8859
|
return {
|
|
8894
8860
|
create({ data: e }) {
|
|
8895
8861
|
return t.post("payout-request-auto-allocations", e);
|
|
8896
8862
|
}
|
|
8897
8863
|
};
|
|
8898
8864
|
}
|
|
8899
|
-
function
|
|
8865
|
+
function Ft$1({ apiHandler: t }) {
|
|
8900
8866
|
return {
|
|
8901
8867
|
create({ data: e }) {
|
|
8902
8868
|
return t.post("payout-request-batch-operations", e);
|
|
8903
8869
|
}
|
|
8904
8870
|
};
|
|
8905
8871
|
}
|
|
8906
|
-
function
|
|
8872
|
+
function Bt$1({ apiHandler: t }) {
|
|
8907
8873
|
return {
|
|
8908
8874
|
create({ data: e }) {
|
|
8909
8875
|
return t.post("payout-request-batch-previews", e);
|
|
8910
8876
|
}
|
|
8911
8877
|
};
|
|
8912
8878
|
}
|
|
8913
|
-
function
|
|
8879
|
+
function Kt$1({ apiHandler: t }) {
|
|
8914
8880
|
return {
|
|
8915
8881
|
/**
|
|
8916
8882
|
* @param { rebilly.GetPayoutRequestBatchCollectionRequest } request
|
|
@@ -8967,14 +8933,14 @@ function Nt$1({ apiHandler: t }) {
|
|
|
8967
8933
|
}
|
|
8968
8934
|
};
|
|
8969
8935
|
}
|
|
8970
|
-
function
|
|
8936
|
+
function Nt$1({ apiHandler: t }) {
|
|
8971
8937
|
return {
|
|
8972
8938
|
create({ data: e }) {
|
|
8973
8939
|
return t.post("payout-request-splits", e);
|
|
8974
8940
|
}
|
|
8975
8941
|
};
|
|
8976
8942
|
}
|
|
8977
|
-
function
|
|
8943
|
+
function Lt$1({ apiHandler: t }) {
|
|
8978
8944
|
return {
|
|
8979
8945
|
/**
|
|
8980
8946
|
* @param { rebilly.GetPayoutRequestCollectionRequest } request
|
|
@@ -9041,14 +9007,14 @@ function zt$1({ apiHandler: t }) {
|
|
|
9041
9007
|
}
|
|
9042
9008
|
};
|
|
9043
9009
|
}
|
|
9044
|
-
function
|
|
9010
|
+
function zt$1({ apiHandler: t }) {
|
|
9045
9011
|
return {
|
|
9046
9012
|
create({ data: e }) {
|
|
9047
9013
|
return t.post("payouts", e);
|
|
9048
9014
|
}
|
|
9049
9015
|
};
|
|
9050
9016
|
}
|
|
9051
|
-
function
|
|
9017
|
+
function Ut$1({ apiHandler: t }) {
|
|
9052
9018
|
return {
|
|
9053
9019
|
/**
|
|
9054
9020
|
* @param { rebilly.GetPlanCollectionRequest } request
|
|
@@ -9088,7 +9054,7 @@ function Vt$1({ apiHandler: t }) {
|
|
|
9088
9054
|
}
|
|
9089
9055
|
};
|
|
9090
9056
|
}
|
|
9091
|
-
function
|
|
9057
|
+
function Vt$1({ apiHandler: t }) {
|
|
9092
9058
|
return {
|
|
9093
9059
|
order({ data: e }) {
|
|
9094
9060
|
return t.post("previews/orders", e);
|
|
@@ -9101,7 +9067,7 @@ function Jt$1({ apiHandler: t }) {
|
|
|
9101
9067
|
}
|
|
9102
9068
|
};
|
|
9103
9069
|
}
|
|
9104
|
-
function
|
|
9070
|
+
function Jt$1({ apiHandler: t }) {
|
|
9105
9071
|
return {
|
|
9106
9072
|
/**
|
|
9107
9073
|
* @param { rebilly.GetProductCollectionRequest } request
|
|
@@ -9141,7 +9107,7 @@ function Wt$1({ apiHandler: t }) {
|
|
|
9141
9107
|
}
|
|
9142
9108
|
};
|
|
9143
9109
|
}
|
|
9144
|
-
function
|
|
9110
|
+
function Wt$1({ apiHandler: t }) {
|
|
9145
9111
|
return {
|
|
9146
9112
|
startPermissionsEmulation({ data: e }) {
|
|
9147
9113
|
return t.post("permissions-emulation", e);
|
|
@@ -9182,14 +9148,14 @@ function Gt$1({ apiHandler: t }) {
|
|
|
9182
9148
|
}
|
|
9183
9149
|
};
|
|
9184
9150
|
}
|
|
9185
|
-
function
|
|
9151
|
+
function Gt$1({ apiHandler: t }) {
|
|
9186
9152
|
return {
|
|
9187
9153
|
readyToPay({ data: e }) {
|
|
9188
9154
|
return t.post("ready-to-pay", e);
|
|
9189
9155
|
}
|
|
9190
9156
|
};
|
|
9191
9157
|
}
|
|
9192
|
-
function
|
|
9158
|
+
function Yt$1({ apiHandler: t }) {
|
|
9193
9159
|
return {
|
|
9194
9160
|
/**
|
|
9195
9161
|
* @param { rebilly.GetQuoteCollectionRequest } request
|
|
@@ -9282,7 +9248,7 @@ function Qt$1({ apiHandler: t }) {
|
|
|
9282
9248
|
}
|
|
9283
9249
|
};
|
|
9284
9250
|
}
|
|
9285
|
-
function
|
|
9251
|
+
function Qt$1({ apiHandler: t }) {
|
|
9286
9252
|
return {
|
|
9287
9253
|
/**
|
|
9288
9254
|
* @returns { rebilly.GetReleaseFlagsResponsePromise } response
|
|
@@ -9292,7 +9258,7 @@ function Xt$1({ apiHandler: t }) {
|
|
|
9292
9258
|
}
|
|
9293
9259
|
};
|
|
9294
9260
|
}
|
|
9295
|
-
function
|
|
9261
|
+
function Xt$1({ apiHandler: t }) {
|
|
9296
9262
|
return {
|
|
9297
9263
|
/**
|
|
9298
9264
|
* @returns { rebilly.GetExternalIdentifierResponsePromise } response
|
|
@@ -9323,7 +9289,7 @@ function Zt$1({ apiHandler: t }) {
|
|
|
9323
9289
|
}
|
|
9324
9290
|
};
|
|
9325
9291
|
}
|
|
9326
|
-
function
|
|
9292
|
+
function Zt$1({ apiHandler: t }) {
|
|
9327
9293
|
return {
|
|
9328
9294
|
/**
|
|
9329
9295
|
* @returns { rebilly.GetRiskScoreRulesResponsePromise } response
|
|
@@ -9351,7 +9317,7 @@ function _t$1({ apiHandler: t }) {
|
|
|
9351
9317
|
}
|
|
9352
9318
|
};
|
|
9353
9319
|
}
|
|
9354
|
-
function
|
|
9320
|
+
function _t$1({ apiHandler: t }) {
|
|
9355
9321
|
return {
|
|
9356
9322
|
/**
|
|
9357
9323
|
* @param { rebilly.GetRoleCollectionRequest } request
|
|
@@ -9393,7 +9359,7 @@ function Ht$1({ apiHandler: t }) {
|
|
|
9393
9359
|
}
|
|
9394
9360
|
};
|
|
9395
9361
|
}
|
|
9396
|
-
function
|
|
9362
|
+
function Ht$1({ apiHandler: t }) {
|
|
9397
9363
|
return {
|
|
9398
9364
|
/**
|
|
9399
9365
|
* @returns { rebilly.GetSearchResponsePromise } response
|
|
@@ -9404,7 +9370,7 @@ function es({ apiHandler: t }) {
|
|
|
9404
9370
|
}
|
|
9405
9371
|
};
|
|
9406
9372
|
}
|
|
9407
|
-
function
|
|
9373
|
+
function es({ apiHandler: t }) {
|
|
9408
9374
|
return {
|
|
9409
9375
|
/**
|
|
9410
9376
|
* @param { rebilly.GetGridSegmentCollectionRequest } request
|
|
@@ -9444,7 +9410,7 @@ function ts({ apiHandler: t }) {
|
|
|
9444
9410
|
}
|
|
9445
9411
|
};
|
|
9446
9412
|
}
|
|
9447
|
-
function
|
|
9413
|
+
function ts({ apiHandler: t }) {
|
|
9448
9414
|
return {
|
|
9449
9415
|
/**
|
|
9450
9416
|
* @returns { rebilly.GetSendThroughAttributionCollectionResponsePromise } response
|
|
@@ -9454,7 +9420,7 @@ function ss({ apiHandler: t }) {
|
|
|
9454
9420
|
}
|
|
9455
9421
|
};
|
|
9456
9422
|
}
|
|
9457
|
-
function
|
|
9423
|
+
function ss({ apiHandler: t }) {
|
|
9458
9424
|
return {
|
|
9459
9425
|
/**
|
|
9460
9426
|
* @param { rebilly.GetServiceCredentialCollectionRequest } request
|
|
@@ -9505,7 +9471,7 @@ function rs({ apiHandler: t }) {
|
|
|
9505
9471
|
}
|
|
9506
9472
|
};
|
|
9507
9473
|
}
|
|
9508
|
-
function
|
|
9474
|
+
function rs({ apiHandler: t }) {
|
|
9509
9475
|
return {
|
|
9510
9476
|
/**
|
|
9511
9477
|
* @param { rebilly.GetShippingRateCollectionRequest } request
|
|
@@ -9545,7 +9511,7 @@ function ns({ apiHandler: t }) {
|
|
|
9545
9511
|
}
|
|
9546
9512
|
};
|
|
9547
9513
|
}
|
|
9548
|
-
function
|
|
9514
|
+
function ns({ apiHandler: t }) {
|
|
9549
9515
|
return {
|
|
9550
9516
|
/**
|
|
9551
9517
|
* @returns { rebilly.GetStatusResponsePromise } response
|
|
@@ -9555,7 +9521,7 @@ function us({ apiHandler: t }) {
|
|
|
9555
9521
|
}
|
|
9556
9522
|
};
|
|
9557
9523
|
}
|
|
9558
|
-
function
|
|
9524
|
+
function us({ apiHandler: t }) {
|
|
9559
9525
|
return {
|
|
9560
9526
|
/**
|
|
9561
9527
|
* @param { rebilly.GetSubscriptionCancellationCollectionRequest } request
|
|
@@ -9586,7 +9552,7 @@ function os({ apiHandler: t }) {
|
|
|
9586
9552
|
}
|
|
9587
9553
|
};
|
|
9588
9554
|
}
|
|
9589
|
-
function
|
|
9555
|
+
function os({ apiHandler: t }) {
|
|
9590
9556
|
return {
|
|
9591
9557
|
/**
|
|
9592
9558
|
* @param { rebilly.GetSubscriptionPauseCollectionRequest } request
|
|
@@ -9620,7 +9586,7 @@ function ls({ apiHandler: t }) {
|
|
|
9620
9586
|
}
|
|
9621
9587
|
};
|
|
9622
9588
|
}
|
|
9623
|
-
function
|
|
9589
|
+
function ls({ apiHandler: t }) {
|
|
9624
9590
|
return {
|
|
9625
9591
|
/**
|
|
9626
9592
|
* @param { rebilly.GetSubscriptionReactivationCollectionRequest } request
|
|
@@ -9641,7 +9607,7 @@ function cs({ apiHandler: t }) {
|
|
|
9641
9607
|
}
|
|
9642
9608
|
};
|
|
9643
9609
|
}
|
|
9644
|
-
function
|
|
9610
|
+
function cs({ apiHandler: t }) {
|
|
9645
9611
|
return {
|
|
9646
9612
|
/**
|
|
9647
9613
|
* @param { rebilly.GetSubscriptionCollectionRequest } request
|
|
@@ -9752,7 +9718,7 @@ function is({ apiHandler: t }) {
|
|
|
9752
9718
|
}
|
|
9753
9719
|
};
|
|
9754
9720
|
}
|
|
9755
|
-
function
|
|
9721
|
+
function is({ apiHandler: t }) {
|
|
9756
9722
|
return {
|
|
9757
9723
|
/**
|
|
9758
9724
|
* @param { rebilly.GetTagCollectionRequest } request
|
|
@@ -9821,7 +9787,7 @@ function as({ apiHandler: t }) {
|
|
|
9821
9787
|
}
|
|
9822
9788
|
};
|
|
9823
9789
|
}
|
|
9824
|
-
function
|
|
9790
|
+
function as({ apiHandler: t }) {
|
|
9825
9791
|
return {
|
|
9826
9792
|
/**
|
|
9827
9793
|
* @param { rebilly.GetTagRuleCollectionRequest } request
|
|
@@ -9861,7 +9827,7 @@ function gs({ apiHandler: t }) {
|
|
|
9861
9827
|
}
|
|
9862
9828
|
};
|
|
9863
9829
|
}
|
|
9864
|
-
function
|
|
9830
|
+
function gs({ apiHandler: t }) {
|
|
9865
9831
|
return {
|
|
9866
9832
|
/**
|
|
9867
9833
|
* @param { rebilly.GetTrackingApiCollectionRequest } request
|
|
@@ -9943,7 +9909,7 @@ function ms({ apiHandler: t }) {
|
|
|
9943
9909
|
}
|
|
9944
9910
|
};
|
|
9945
9911
|
}
|
|
9946
|
-
function
|
|
9912
|
+
function ms({ apiHandler: t }) {
|
|
9947
9913
|
return {
|
|
9948
9914
|
/**
|
|
9949
9915
|
* @param { rebilly.GetTransactionCollectionRequest } request
|
|
@@ -10020,7 +9986,7 @@ function fs({ apiHandler: t }) {
|
|
|
10020
9986
|
}
|
|
10021
9987
|
};
|
|
10022
9988
|
}
|
|
10023
|
-
function
|
|
9989
|
+
function fs({ apiHandler: t }) {
|
|
10024
9990
|
return {
|
|
10025
9991
|
/**
|
|
10026
9992
|
* @param { rebilly.GetUsageCollectionRequest } request
|
|
@@ -10124,7 +10090,7 @@ function hs({ apiHandler: t }) {
|
|
|
10124
10090
|
}
|
|
10125
10091
|
};
|
|
10126
10092
|
}
|
|
10127
|
-
function
|
|
10093
|
+
function ps({ apiHandler: t }) {
|
|
10128
10094
|
return {
|
|
10129
10095
|
/**
|
|
10130
10096
|
* @param { rebilly.GetWebsiteCollectionRequest } request
|
|
@@ -10164,28 +10130,26 @@ function ys({ apiHandler: t }) {
|
|
|
10164
10130
|
}
|
|
10165
10131
|
};
|
|
10166
10132
|
}
|
|
10167
|
-
class
|
|
10133
|
+
class ys {
|
|
10168
10134
|
constructor({ apiHandler: e }) {
|
|
10169
|
-
this.account = Fe$1({ apiHandler: e }), this.allowlists = Be$1({ apiHandler: e }), this.amlChecks = Ke$1({ apiHandler: e }), this.amlSettings = Ne$1({ apiHandler: e }), this.apiKeys = Le$1({ apiHandler: e }), this.applicationInstances = ze$1({ apiHandler: e }), this.applications = Ue$1({ apiHandler: e }), this.balanceTransactions = Ve$1({ apiHandler: e }), this.billingPortals = Je$1({ apiHandler: e }), this.blocklists = We$1({ apiHandler: e }), this.broadcastMessages = Ge$1({ apiHandler: e }), this.cashiers = Ye$1({ apiHandler: e }), this.checkoutForms = Qe$1({ apiHandler: e }), this.coupons = Xe$1({ apiHandler: e }), this.creditMemos = Ze$1({ apiHandler: e }), this.customDomains = _e$1({ apiHandler: e }), this.customFields = He$1({ apiHandler: e }), this.customerAuthentication = et$1({ apiHandler: e }), this.customers = tt$1({ apiHandler: e }), this.
|
|
10170
|
-
apiHandler: e
|
|
10171
|
-
}), this.depositRequests = rt$1({ apiHandler: e }), this.depositStrategies = nt$1({ apiHandler: e }), this.digitalWallets = ut$1({ apiHandler: e }), this.disputes = ot$1({ apiHandler: e }), this.emailDeliverySettings = lt$1({ apiHandler: e }), this.emailMessages = ct$1({ apiHandler: e }), this.emailNotifications = it$1({ apiHandler: e }), this.events = at$1({ apiHandler: e }), this.externalIdentifiers = gt$1({ apiHandler: e }), this.externalServicesSettings = mt$1({
|
|
10135
|
+
this.account = Fe$1({ apiHandler: e }), this.allowlists = Be$1({ apiHandler: e }), this.amlChecks = Ke$1({ apiHandler: e }), this.amlSettings = Ne$1({ apiHandler: e }), this.apiKeys = Le$1({ apiHandler: e }), this.applicationInstances = ze$1({ apiHandler: e }), this.applications = Ue$1({ apiHandler: e }), this.balanceTransactions = Ve$1({ apiHandler: e }), this.billingPortals = Je$1({ apiHandler: e }), this.blocklists = We$1({ apiHandler: e }), this.broadcastMessages = Ge$1({ apiHandler: e }), this.cashiers = Ye$1({ apiHandler: e }), this.checkoutForms = Qe$1({ apiHandler: e }), this.coupons = Xe$1({ apiHandler: e }), this.creditMemos = Ze$1({ apiHandler: e }), this.customDomains = _e$1({ apiHandler: e }), this.customFields = He$1({ apiHandler: e }), this.customerAuthentication = et$1({ apiHandler: e }), this.customers = tt$1({ apiHandler: e }), this.depositRequests = st$1({ apiHandler: e }), this.depositStrategies = rt$1({ apiHandler: e }), this.digitalWallets = nt$1({ apiHandler: e }), this.disputes = ut$1({ apiHandler: e }), this.emailDeliverySettings = ot$1({ apiHandler: e }), this.emailMessages = lt$1({ apiHandler: e }), this.emailNotifications = ct$1({ apiHandler: e }), this.events = it$1({ apiHandler: e }), this.externalIdentifiers = at$1({ apiHandler: e }), this.externalServicesSettings = gt$1({
|
|
10172
10136
|
apiHandler: e
|
|
10173
|
-
}), this.fees =
|
|
10137
|
+
}), this.fees = mt$1({ apiHandler: e }), this.files = ft$1({ apiHandler: e }), this.gatewayAccounts = $t$1({ apiHandler: e }), this.integrations = ht$1({ apiHandler: e }), this.invoices = pt$1({ apiHandler: e }), this.journalAccounts = yt$1({ apiHandler: e }), this.journalEntries = At$1({ apiHandler: e }), this.journalRecords = Rt$1({ apiHandler: e }), this.kycDocuments = bt$1({ apiHandler: e }), this.kycRequests = wt$1({ apiHandler: e }), this.kycSettings = kt$1({ apiHandler: e }), this.lists = vt$1({ apiHandler: e }), this.orderCancellations = qt$1({ apiHandler: e }), this.orderChanges = dt$1({ apiHandler: e }), this.orderPauses = Tt$1({ apiHandler: e }), this.orderReactivations = It$1({ apiHandler: e }), this.orders = St$1({ apiHandler: e }), this.organizationExports = Et$1({ apiHandler: e }), this.organizations = xt$1({ apiHandler: e }), this.paymentCardsBankNames = Pt$1({ apiHandler: e }), this.paymentInstruments = Ct$1({ apiHandler: e }), this.paymentMethods = Dt$1({ apiHandler: e }), this.paymentTokens = jt$1({ apiHandler: e }), this.payoutRequestAllocations = Mt$1({
|
|
10174
10138
|
apiHandler: e
|
|
10175
|
-
}), this.payoutRequestAutoAllocations =
|
|
10139
|
+
}), this.payoutRequestAutoAllocations = Ot$1({
|
|
10176
10140
|
apiHandler: e
|
|
10177
|
-
}), this.payoutRequestBatchOperations =
|
|
10141
|
+
}), this.payoutRequestBatchOperations = Ft$1({
|
|
10178
10142
|
apiHandler: e
|
|
10179
|
-
}), this.payoutRequestBatchPreviews =
|
|
10143
|
+
}), this.payoutRequestBatchPreviews = Bt$1({
|
|
10180
10144
|
apiHandler: e
|
|
10181
|
-
}), this.payoutRequestBatches =
|
|
10145
|
+
}), this.payoutRequestBatches = Kt$1({ apiHandler: e }), this.payoutRequestSplits = Nt$1({ apiHandler: e }), this.payoutRequests = Lt$1({ apiHandler: e }), this.payouts = zt$1({ apiHandler: e }), this.plans = Ut$1({ apiHandler: e }), this.previews = Vt$1({ apiHandler: e }), this.products = Jt$1({ apiHandler: e }), this.profile = Wt$1({ apiHandler: e }), this.purchase = Gt$1({ apiHandler: e }), this.quotes = Yt$1({ apiHandler: e }), this.releaseFlags = Qt$1({ apiHandler: e }), this.resource = Xt$1({ apiHandler: e }), this.riskScoreRules = Zt$1({ apiHandler: e }), this.roles = _t$1({ apiHandler: e }), this.search = Ht$1({ apiHandler: e }), this.segments = es({ apiHandler: e }), this.sendThroughAttribution = ts({ apiHandler: e }), this.serviceCredentials = ss({ apiHandler: e }), this.shippingRates = rs({ apiHandler: e }), this.status = ns({ apiHandler: e }), this.subscriptionCancellations = us({
|
|
10182
10146
|
apiHandler: e
|
|
10183
|
-
}), this.subscriptionPauses =
|
|
10147
|
+
}), this.subscriptionPauses = os({ apiHandler: e }), this.subscriptionReactivations = ls({
|
|
10184
10148
|
apiHandler: e
|
|
10185
|
-
}), this.subscriptions =
|
|
10149
|
+
}), this.subscriptions = cs({ apiHandler: e }), this.tags = is({ apiHandler: e }), this.tagsRules = as({ apiHandler: e }), this.tracking = gs({ apiHandler: e }), this.transactions = ms({ apiHandler: e }), this.usages = fs({ apiHandler: e }), this.users = $s({ apiHandler: e }), this.webhooks = hs({ apiHandler: e }), this.websites = ps({ apiHandler: e }), this.addRequestInterceptor = e.addRequestInterceptor, this.removeRequestInterceptor = e.removeRequestInterceptor, this.addResponseInterceptor = e.addResponseInterceptor, this.removeResponseInterceptor = e.removeResponseInterceptor, this.setTimeout = e.setTimeout, this.setProxyAgent = e.setProxyAgent, this.setSessionToken = e.setSessionToken, this.setPublishableKey = e.setPublishableKey, this.setEndpoints = e.setEndpoints, this.getCancellationToken = e.getCancellationToken, this.generateSignature = e.generateSignature;
|
|
10186
10150
|
}
|
|
10187
10151
|
}
|
|
10188
|
-
function
|
|
10152
|
+
function As({ apiHandler: t }) {
|
|
10189
10153
|
return {
|
|
10190
10154
|
/**
|
|
10191
10155
|
* @returns { rebilly.GetCustomerSummaryMetricReportResponsePromise } response
|
|
@@ -10195,7 +10159,7 @@ function Rs({ apiHandler: t }) {
|
|
|
10195
10159
|
}
|
|
10196
10160
|
};
|
|
10197
10161
|
}
|
|
10198
|
-
function
|
|
10162
|
+
function Rs({ apiHandler: t }) {
|
|
10199
10163
|
return {
|
|
10200
10164
|
/**
|
|
10201
10165
|
* @param { rebilly.GetDataExportCollectionRequest } request
|
|
@@ -10240,7 +10204,7 @@ function bs({ apiHandler: t }) {
|
|
|
10240
10204
|
}
|
|
10241
10205
|
};
|
|
10242
10206
|
}
|
|
10243
|
-
function
|
|
10207
|
+
function bs({ apiHandler: t }) {
|
|
10244
10208
|
return {
|
|
10245
10209
|
/**
|
|
10246
10210
|
* @returns { rebilly.GetHistogramAmlCheckReportResponsePromise } response
|
|
@@ -10284,7 +10248,7 @@ function ws({ apiHandler: t }) {
|
|
|
10284
10248
|
}
|
|
10285
10249
|
};
|
|
10286
10250
|
}
|
|
10287
|
-
function
|
|
10251
|
+
function ws({ apiHandler: t }) {
|
|
10288
10252
|
return {
|
|
10289
10253
|
/**
|
|
10290
10254
|
* @returns { rebilly.GetApiLogSummaryReportResponsePromise } response
|
|
@@ -10628,9 +10592,9 @@ function ks({ apiHandler: t }) {
|
|
|
10628
10592
|
offset: i = null,
|
|
10629
10593
|
filter: f = null,
|
|
10630
10594
|
sort: g = null,
|
|
10631
|
-
criteria:
|
|
10595
|
+
criteria: h2 = null
|
|
10632
10596
|
}) {
|
|
10633
|
-
const
|
|
10597
|
+
const p = {
|
|
10634
10598
|
aggregationField: e,
|
|
10635
10599
|
aggregationPeriod: s,
|
|
10636
10600
|
includeRefunds: r,
|
|
@@ -10641,9 +10605,9 @@ function ks({ apiHandler: t }) {
|
|
|
10641
10605
|
offset: i,
|
|
10642
10606
|
filter: f,
|
|
10643
10607
|
sort: g,
|
|
10644
|
-
criteria:
|
|
10608
|
+
criteria: h2
|
|
10645
10609
|
};
|
|
10646
|
-
return t.get("reports/retention-value",
|
|
10610
|
+
return t.get("reports/retention-value", p);
|
|
10647
10611
|
},
|
|
10648
10612
|
/**
|
|
10649
10613
|
* @returns { rebilly.GetRevenueWaterfallReportResponsePromise } response
|
|
@@ -10783,7 +10747,7 @@ function ks({ apiHandler: t }) {
|
|
|
10783
10747
|
}
|
|
10784
10748
|
};
|
|
10785
10749
|
}
|
|
10786
|
-
function
|
|
10750
|
+
function ks({ apiHandler: t }) {
|
|
10787
10751
|
return {
|
|
10788
10752
|
/**
|
|
10789
10753
|
* @returns { rebilly.GetSubscriptionSummaryMetricReportResponsePromise } response
|
|
@@ -10793,7 +10757,7 @@ function vs({ apiHandler: t }) {
|
|
|
10793
10757
|
}
|
|
10794
10758
|
};
|
|
10795
10759
|
}
|
|
10796
|
-
function
|
|
10760
|
+
function vs({ apiHandler: t }) {
|
|
10797
10761
|
return {
|
|
10798
10762
|
getActivityFeed({ eventTypes: e = null, limit: s = 1e3, offset: r = 0 }) {
|
|
10799
10763
|
const n = {
|
|
@@ -10826,7 +10790,7 @@ function qs({ apiHandler: t }) {
|
|
|
10826
10790
|
}
|
|
10827
10791
|
};
|
|
10828
10792
|
}
|
|
10829
|
-
function
|
|
10793
|
+
function qs({ apiHandler: t }) {
|
|
10830
10794
|
return {
|
|
10831
10795
|
query() {
|
|
10832
10796
|
return t.get("location");
|
|
@@ -10834,15 +10798,15 @@ function ds({ apiHandler: t }) {
|
|
|
10834
10798
|
};
|
|
10835
10799
|
}
|
|
10836
10800
|
const b = {
|
|
10837
|
-
CustomersResource:
|
|
10838
|
-
DataExportsResource:
|
|
10839
|
-
HistogramsResource:
|
|
10840
|
-
ReportsResource:
|
|
10841
|
-
SubscriptionsResource:
|
|
10842
|
-
TimelinesResource:
|
|
10843
|
-
LocationResource:
|
|
10801
|
+
CustomersResource: As,
|
|
10802
|
+
DataExportsResource: Rs,
|
|
10803
|
+
HistogramsResource: bs,
|
|
10804
|
+
ReportsResource: ws,
|
|
10805
|
+
SubscriptionsResource: ks,
|
|
10806
|
+
TimelinesResource: vs,
|
|
10807
|
+
LocationResource: qs
|
|
10844
10808
|
};
|
|
10845
|
-
class
|
|
10809
|
+
class ds {
|
|
10846
10810
|
constructor({ apiHandler: e }) {
|
|
10847
10811
|
this.customers = b.CustomersResource({
|
|
10848
10812
|
apiHandler: e
|
|
@@ -10857,7 +10821,7 @@ class Ts {
|
|
|
10857
10821
|
}), this.location = b.LocationResource({ apiHandler: e }), this.addRequestInterceptor = e.addRequestInterceptor, this.removeRequestInterceptor = e.removeRequestInterceptor, this.addResponseInterceptor = e.addResponseInterceptor, this.removeResponseInterceptor = e.removeResponseInterceptor, this.setTimeout = e.setTimeout, this.setProxyAgent = e.setProxyAgent, this.setSessionToken = e.setSessionToken, this.setEndpoints = e.setEndpoints, this.getCancellationToken = e.getCancellationToken;
|
|
10858
10822
|
}
|
|
10859
10823
|
}
|
|
10860
|
-
function
|
|
10824
|
+
function Ts({ apiHandler: t }) {
|
|
10861
10825
|
return {
|
|
10862
10826
|
/**
|
|
10863
10827
|
* @returns { rebilly.StorefrontGetAccountResponsePromise } response
|
|
@@ -10889,7 +10853,7 @@ function Is({ apiHandler: t }) {
|
|
|
10889
10853
|
}
|
|
10890
10854
|
};
|
|
10891
10855
|
}
|
|
10892
|
-
function
|
|
10856
|
+
function Is({ apiHandler: t }) {
|
|
10893
10857
|
return {
|
|
10894
10858
|
login({ data: e }) {
|
|
10895
10859
|
return t.post("login", e);
|
|
@@ -10899,7 +10863,7 @@ function Ss({ apiHandler: t }) {
|
|
|
10899
10863
|
}
|
|
10900
10864
|
};
|
|
10901
10865
|
}
|
|
10902
|
-
function
|
|
10866
|
+
function Ss({ apiHandler: t }) {
|
|
10903
10867
|
return {
|
|
10904
10868
|
/**
|
|
10905
10869
|
* @returns { rebilly.StorefrontGetBillingPortalResponsePromise } response
|
|
@@ -10909,7 +10873,7 @@ function Es({ apiHandler: t }) {
|
|
|
10909
10873
|
}
|
|
10910
10874
|
};
|
|
10911
10875
|
}
|
|
10912
|
-
function
|
|
10876
|
+
function Es({ apiHandler: t }) {
|
|
10913
10877
|
return {
|
|
10914
10878
|
/**
|
|
10915
10879
|
* @returns { rebilly.StorefrontGetCashierResponsePromise } response
|
|
@@ -10929,7 +10893,7 @@ function xs({ apiHandler: t }) {
|
|
|
10929
10893
|
}
|
|
10930
10894
|
};
|
|
10931
10895
|
}
|
|
10932
|
-
function
|
|
10896
|
+
function Ps({ apiHandler: t }) {
|
|
10933
10897
|
return {
|
|
10934
10898
|
/**
|
|
10935
10899
|
* @param { rebilly.StorefrontGetCustomFieldCollectionRequest } request
|
|
@@ -10941,7 +10905,7 @@ function Cs({ apiHandler: t }) {
|
|
|
10941
10905
|
}
|
|
10942
10906
|
};
|
|
10943
10907
|
}
|
|
10944
|
-
function
|
|
10908
|
+
function Cs({ apiHandler: t }) {
|
|
10945
10909
|
return {
|
|
10946
10910
|
/**
|
|
10947
10911
|
* @returns { rebilly.StorefrontGetDepositRequestResponsePromise } response
|
|
@@ -10952,14 +10916,14 @@ function Ds({ apiHandler: t }) {
|
|
|
10952
10916
|
}
|
|
10953
10917
|
};
|
|
10954
10918
|
}
|
|
10955
|
-
function
|
|
10919
|
+
function Ds({ apiHandler: t }) {
|
|
10956
10920
|
return {
|
|
10957
10921
|
create({ data: e }) {
|
|
10958
10922
|
return t.post("deposit", e);
|
|
10959
10923
|
}
|
|
10960
10924
|
};
|
|
10961
10925
|
}
|
|
10962
|
-
function
|
|
10926
|
+
function js({ apiHandler: t }) {
|
|
10963
10927
|
return {
|
|
10964
10928
|
/**
|
|
10965
10929
|
* @returns { rebilly.StorefrontGetDepositStrategyResponsePromise } response
|
|
@@ -10969,7 +10933,7 @@ function Ms({ apiHandler: t }) {
|
|
|
10969
10933
|
}
|
|
10970
10934
|
};
|
|
10971
10935
|
}
|
|
10972
|
-
function
|
|
10936
|
+
function Ms({ apiHandler: t }) {
|
|
10973
10937
|
return {
|
|
10974
10938
|
/**
|
|
10975
10939
|
* @param { rebilly.StorefrontGetInvoiceCollectionRequest } request
|
|
@@ -11005,7 +10969,7 @@ function Os({ apiHandler: t }) {
|
|
|
11005
10969
|
}
|
|
11006
10970
|
};
|
|
11007
10971
|
}
|
|
11008
|
-
function
|
|
10972
|
+
function Os({ apiHandler: t }) {
|
|
11009
10973
|
return {
|
|
11010
10974
|
create({ data: e }) {
|
|
11011
10975
|
return t.post("kyc-documents", e);
|
|
@@ -11021,7 +10985,7 @@ function Fs({ apiHandler: t }) {
|
|
|
11021
10985
|
}
|
|
11022
10986
|
};
|
|
11023
10987
|
}
|
|
11024
|
-
function
|
|
10988
|
+
function Fs({ apiHandler: t }) {
|
|
11025
10989
|
return {
|
|
11026
10990
|
create({ data: e }) {
|
|
11027
10991
|
return t.post("kyc-liveness-sessions", e);
|
|
@@ -11037,7 +11001,7 @@ function Bs({ apiHandler: t }) {
|
|
|
11037
11001
|
}
|
|
11038
11002
|
};
|
|
11039
11003
|
}
|
|
11040
|
-
function
|
|
11004
|
+
function Bs({ apiHandler: t }) {
|
|
11041
11005
|
return {
|
|
11042
11006
|
/**
|
|
11043
11007
|
* @returns { rebilly.StorefrontGetKycRequestResponsePromise } response
|
|
@@ -11048,7 +11012,7 @@ function Ks({ apiHandler: t }) {
|
|
|
11048
11012
|
}
|
|
11049
11013
|
};
|
|
11050
11014
|
}
|
|
11051
|
-
function
|
|
11015
|
+
function Ks({ apiHandler: t }) {
|
|
11052
11016
|
return {
|
|
11053
11017
|
/**
|
|
11054
11018
|
* @returns { rebilly.StorefrontGetOrderUpcomingInvoiceResponsePromise } response
|
|
@@ -11090,7 +11054,7 @@ function Ns({ apiHandler: t }) {
|
|
|
11090
11054
|
}
|
|
11091
11055
|
};
|
|
11092
11056
|
}
|
|
11093
|
-
function
|
|
11057
|
+
function Ns({ apiHandler: t }) {
|
|
11094
11058
|
return {
|
|
11095
11059
|
/**
|
|
11096
11060
|
* @param { rebilly.StorefrontGetPaymentInstrumentCollectionRequest } request
|
|
@@ -11133,14 +11097,14 @@ function Ls({ apiHandler: t }) {
|
|
|
11133
11097
|
}
|
|
11134
11098
|
};
|
|
11135
11099
|
}
|
|
11136
|
-
function
|
|
11100
|
+
function Ls({ apiHandler: t }) {
|
|
11137
11101
|
return {
|
|
11138
11102
|
create({ data: e }) {
|
|
11139
11103
|
return t.post("payout-request-cancellations", e);
|
|
11140
11104
|
}
|
|
11141
11105
|
};
|
|
11142
11106
|
}
|
|
11143
|
-
function
|
|
11107
|
+
function zs({ apiHandler: t }) {
|
|
11144
11108
|
return {
|
|
11145
11109
|
/**
|
|
11146
11110
|
* @param { rebilly.StorefrontGetPayoutRequestCollectionRequest } request
|
|
@@ -11170,7 +11134,7 @@ function Us({ apiHandler: t }) {
|
|
|
11170
11134
|
}
|
|
11171
11135
|
};
|
|
11172
11136
|
}
|
|
11173
|
-
function
|
|
11137
|
+
function Us({ apiHandler: t }) {
|
|
11174
11138
|
return {
|
|
11175
11139
|
/**
|
|
11176
11140
|
* @param { rebilly.StorefrontGetPlanCollectionRequest } request
|
|
@@ -11196,7 +11160,7 @@ function Vs({ apiHandler: t }) {
|
|
|
11196
11160
|
}
|
|
11197
11161
|
};
|
|
11198
11162
|
}
|
|
11199
|
-
function
|
|
11163
|
+
function Vs({ apiHandler: t }) {
|
|
11200
11164
|
return {
|
|
11201
11165
|
/**
|
|
11202
11166
|
* @param { rebilly.StorefrontGetProductCollectionRequest } request
|
|
@@ -11220,7 +11184,7 @@ function Js({ apiHandler: t }) {
|
|
|
11220
11184
|
}
|
|
11221
11185
|
};
|
|
11222
11186
|
}
|
|
11223
|
-
function
|
|
11187
|
+
function Js({ apiHandler: t }) {
|
|
11224
11188
|
return {
|
|
11225
11189
|
payment({ data: e }) {
|
|
11226
11190
|
return t.post("payment", e);
|
|
@@ -11236,7 +11200,7 @@ function Ws({ apiHandler: t }) {
|
|
|
11236
11200
|
}
|
|
11237
11201
|
};
|
|
11238
11202
|
}
|
|
11239
|
-
function
|
|
11203
|
+
function Ws({ apiHandler: t }) {
|
|
11240
11204
|
return {
|
|
11241
11205
|
/**
|
|
11242
11206
|
* @returns { rebilly.StorefrontGetQuoteResponsePromise } response
|
|
@@ -11260,21 +11224,21 @@ function Gs({ apiHandler: t }) {
|
|
|
11260
11224
|
}
|
|
11261
11225
|
};
|
|
11262
11226
|
}
|
|
11263
|
-
function
|
|
11227
|
+
function Gs({ apiHandler: t }) {
|
|
11264
11228
|
return {
|
|
11265
11229
|
readyToPayout({ data: e }) {
|
|
11266
11230
|
return t.post("ready-to-payout", e);
|
|
11267
11231
|
}
|
|
11268
11232
|
};
|
|
11269
11233
|
}
|
|
11270
|
-
function
|
|
11234
|
+
function Ys({ apiHandler: t }) {
|
|
11271
11235
|
return {
|
|
11272
11236
|
reactivation({ data: e }) {
|
|
11273
11237
|
return t.post("subscription-reactivations", e);
|
|
11274
11238
|
}
|
|
11275
11239
|
};
|
|
11276
11240
|
}
|
|
11277
|
-
function
|
|
11241
|
+
function Qs({ apiHandler: t }) {
|
|
11278
11242
|
return {
|
|
11279
11243
|
changeItems({ id: e, data: s }) {
|
|
11280
11244
|
return t.post(`subscriptions/${e}/change-items`, s);
|
|
@@ -11284,7 +11248,7 @@ function Xs({ apiHandler: t }) {
|
|
|
11284
11248
|
}
|
|
11285
11249
|
};
|
|
11286
11250
|
}
|
|
11287
|
-
function
|
|
11251
|
+
function Xs({ apiHandler: t }) {
|
|
11288
11252
|
return {
|
|
11289
11253
|
/**
|
|
11290
11254
|
* @param { rebilly.StorefrontGetTransactionCollectionRequest } request
|
|
@@ -11333,7 +11297,7 @@ function Zs({ apiHandler: t }) {
|
|
|
11333
11297
|
}
|
|
11334
11298
|
};
|
|
11335
11299
|
}
|
|
11336
|
-
function
|
|
11300
|
+
function Zs({ apiHandler: t }) {
|
|
11337
11301
|
return {
|
|
11338
11302
|
/**
|
|
11339
11303
|
* @returns { rebilly.StorefrontGetWebsiteResponsePromise } response
|
|
@@ -11343,29 +11307,29 @@ function _s({ apiHandler: t }) {
|
|
|
11343
11307
|
}
|
|
11344
11308
|
};
|
|
11345
11309
|
}
|
|
11346
|
-
class
|
|
11310
|
+
class _s {
|
|
11347
11311
|
constructor({ apiHandler: e }) {
|
|
11348
|
-
this.account =
|
|
11312
|
+
this.account = Ts({ apiHandler: e }), this.authorization = Is({ apiHandler: e }), this.billingPortals = Ss({ apiHandler: e }), this.cashiers = Es({ apiHandler: e }), this.checkoutForms = xs({ apiHandler: e }), this.customFields = Ps({ apiHandler: e }), this.depositRequests = Cs({ apiHandler: e }), this.deposit = Ds({ apiHandler: e }), this.depositStrategies = js({ apiHandler: e }), this.invoices = Ms({ apiHandler: e }), this.kycDocuments = Os({ apiHandler: e }), this.kycLivenessSessions = Fs({ apiHandler: e }), this.kycRequests = Bs({ apiHandler: e }), this.orders = Ks({ apiHandler: e }), this.paymentInstruments = Ns({ apiHandler: e }), this.payoutRequestCancellations = Ls({
|
|
11349
11313
|
apiHandler: e
|
|
11350
|
-
}), this.payoutRequests =
|
|
11314
|
+
}), this.payoutRequests = zs({ apiHandler: e }), this.plans = Us({ apiHandler: e }), this.products = Vs({ apiHandler: e }), this.purchase = Js({ apiHandler: e }), this.quotes = Ws({ apiHandler: e }), this.readyToPayout = Gs({ apiHandler: e }), this.subscriptionReactivations = Ys({
|
|
11351
11315
|
apiHandler: e
|
|
11352
|
-
}), this.subscriptions =
|
|
11316
|
+
}), this.subscriptions = Qs({ apiHandler: e }), this.transactions = Xs({ apiHandler: e }), this.websites = Zs({ apiHandler: e }), this.checkoutForm = this.checkoutForms, this.billingPortal = this.billingPortals, this.addRequestInterceptor = e.addRequestInterceptor, this.removeRequestInterceptor = e.removeRequestInterceptor, this.addResponseInterceptor = e.addResponseInterceptor, this.removeResponseInterceptor = e.removeResponseInterceptor, this.setTimeout = e.setTimeout, this.setProxyAgent = e.setProxyAgent, this.setSessionToken = e.setSessionToken, this.setPublishableKey = e.setPublishableKey, this.setEndpoints = e.setEndpoints, this.getCancellationToken = e.getCancellationToken, this.generateSignature = e.generateSignature;
|
|
11353
11317
|
}
|
|
11354
11318
|
}
|
|
11319
|
+
function Hs({ apiHandler: t }) {
|
|
11320
|
+
return new ys({ apiHandler: t });
|
|
11321
|
+
}
|
|
11355
11322
|
function er({ apiHandler: t }) {
|
|
11356
|
-
return new
|
|
11323
|
+
return new ds({ apiHandler: t });
|
|
11357
11324
|
}
|
|
11358
11325
|
function tr({ apiHandler: t }) {
|
|
11359
|
-
return new
|
|
11360
|
-
}
|
|
11361
|
-
function sr({ apiHandler: t }) {
|
|
11362
|
-
return new Hs({ apiHandler: t });
|
|
11326
|
+
return new _s({ apiHandler: t });
|
|
11363
11327
|
}
|
|
11364
11328
|
const F$1 = {
|
|
11365
11329
|
live: "https://api.rebilly.com",
|
|
11366
11330
|
sandbox: "https://api-sandbox.rebilly.com"
|
|
11367
11331
|
}, B$1 = 6e3;
|
|
11368
|
-
function
|
|
11332
|
+
function or({
|
|
11369
11333
|
apiKey: t = null,
|
|
11370
11334
|
sandbox: e = false,
|
|
11371
11335
|
timeout: s = B$1,
|
|
@@ -11391,9 +11355,9 @@ function lr({
|
|
|
11391
11355
|
organizationId: r,
|
|
11392
11356
|
appName: (u == null ? void 0 : u.appName) ?? null
|
|
11393
11357
|
}, l = O$1({ options: o });
|
|
11394
|
-
return
|
|
11358
|
+
return Hs({ apiHandler: l });
|
|
11395
11359
|
}
|
|
11396
|
-
function
|
|
11360
|
+
function lr({
|
|
11397
11361
|
apiKey: t = null,
|
|
11398
11362
|
sandbox: e = false,
|
|
11399
11363
|
timeout: s = B$1,
|
|
@@ -11419,9 +11383,9 @@ function cr({
|
|
|
11419
11383
|
organizationId: r,
|
|
11420
11384
|
appName: (u == null ? void 0 : u.appName) ?? null
|
|
11421
11385
|
}, l = O$1({ options: o });
|
|
11422
|
-
return
|
|
11386
|
+
return er({ apiHandler: l });
|
|
11423
11387
|
}
|
|
11424
|
-
function
|
|
11388
|
+
function cr({
|
|
11425
11389
|
publishableKey: t = null,
|
|
11426
11390
|
jwt: e = null,
|
|
11427
11391
|
sandbox: s = false,
|
|
@@ -11448,7 +11412,7 @@ function ir({
|
|
|
11448
11412
|
organizationId: n,
|
|
11449
11413
|
appName: (o == null ? void 0 : o.appName) ?? null
|
|
11450
11414
|
}, i = O$1({ options: l });
|
|
11451
|
-
return i.setSessionToken(l.jwt),
|
|
11415
|
+
return i.setSessionToken(l.jwt), tr({ apiHandler: i });
|
|
11452
11416
|
}
|
|
11453
11417
|
const TIMEOUT = 6e4;
|
|
11454
11418
|
function validateStateForStorefront() {
|
|
@@ -11489,15 +11453,15 @@ class StorefrontInstance {
|
|
|
11489
11453
|
appName: appName ? `${appName}/instruments` : "instruments"
|
|
11490
11454
|
}
|
|
11491
11455
|
};
|
|
11492
|
-
const api =
|
|
11456
|
+
const api = cr(config);
|
|
11493
11457
|
const rebilly = (
|
|
11494
11458
|
// @ts-expect-error refactor with above todo
|
|
11495
|
-
typeof
|
|
11459
|
+
typeof or.default === "function" ? (
|
|
11496
11460
|
// @ts-expect-error refactor with above todo
|
|
11497
|
-
|
|
11498
|
-
) :
|
|
11461
|
+
or.default(config)
|
|
11462
|
+
) : or(config)
|
|
11499
11463
|
);
|
|
11500
|
-
const experimental =
|
|
11464
|
+
const experimental = lr(config);
|
|
11501
11465
|
api.setSessionToken(publishableKey || jwt);
|
|
11502
11466
|
rebilly.setSessionToken(publishableKey || jwt);
|
|
11503
11467
|
experimental.setSessionToken(publishableKey || jwt);
|
|
@@ -11719,6 +11683,46 @@ async function updateSummary({ instrument } = {}) {
|
|
|
11719
11683
|
await fetchSummary({ data: instrument });
|
|
11720
11684
|
state.updateModel();
|
|
11721
11685
|
}
|
|
11686
|
+
const baseMethodSelectorHTML = () => `
|
|
11687
|
+
<div data-rebilly-instruments="content" class="rebilly-instruments-content">
|
|
11688
|
+
<div data-rebilly-instruments="content-error" id="rebilly-instruments-error"></div>
|
|
11689
|
+
<div data-rebilly-instruments="form"></div>
|
|
11690
|
+
</div>
|
|
11691
|
+
`;
|
|
11692
|
+
async function mountForm() {
|
|
11693
|
+
var _a;
|
|
11694
|
+
state.form.innerHTML += baseMethodSelectorHTML();
|
|
11695
|
+
const container = state.form.querySelector(
|
|
11696
|
+
'[data-rebilly-instruments="form"]'
|
|
11697
|
+
);
|
|
11698
|
+
const { paymentMethodsUrl: url } = ((_a = state == null ? void 0 : state.options) == null ? void 0 : _a._computed) || {};
|
|
11699
|
+
const name = "rebilly-instruments-form";
|
|
11700
|
+
const modelSafeState = state.toModel();
|
|
11701
|
+
const model = {
|
|
11702
|
+
options: modelSafeState.options,
|
|
11703
|
+
data: modelSafeState.data,
|
|
11704
|
+
mainStyleVars: modelSafeState.mainStyleVars
|
|
11705
|
+
};
|
|
11706
|
+
const args = {
|
|
11707
|
+
name,
|
|
11708
|
+
url: `${url}?name=${name}`,
|
|
11709
|
+
container,
|
|
11710
|
+
model
|
|
11711
|
+
};
|
|
11712
|
+
const iframe = await new ViewIframe2(args);
|
|
11713
|
+
iframe.bindEventListeners({ loader: state.loader });
|
|
11714
|
+
iframes.form = iframe;
|
|
11715
|
+
state.loader.stopLoading({ id: "rebilly-instruments-form" });
|
|
11716
|
+
return {
|
|
11717
|
+
then: (callback) => callback()
|
|
11718
|
+
};
|
|
11719
|
+
}
|
|
11720
|
+
function removeForm() {
|
|
11721
|
+
const container = state.form.querySelector(
|
|
11722
|
+
'[data-rebilly-instruments="form"]'
|
|
11723
|
+
);
|
|
11724
|
+
container.remove();
|
|
11725
|
+
}
|
|
11722
11726
|
var define_process_env_default = { NODE_ENV: "production" };
|
|
11723
11727
|
var z = function() {
|
|
11724
11728
|
return z = Object.assign || function(t) {
|
|
@@ -13784,7 +13788,7 @@ function filterReadyToPay(readyToPay) {
|
|
|
13784
13788
|
}
|
|
13785
13789
|
async function fetchReadyToPay() {
|
|
13786
13790
|
return Endpoint(async () => {
|
|
13787
|
-
var _a, _b, _c, _d, _e2, _f, _g, _h
|
|
13791
|
+
var _a, _b, _c, _d, _e2, _f, _g, _h;
|
|
13788
13792
|
if (!state.data.riskMetadata) {
|
|
13789
13793
|
const { riskMetadata: data2 } = await un();
|
|
13790
13794
|
state.data.riskMetadata = data2;
|
|
@@ -13804,10 +13808,6 @@ async function fetchReadyToPay() {
|
|
|
13804
13808
|
if ((_h = (_g = state.data) == null ? void 0 : _g.account) == null ? void 0 : _h.address) {
|
|
13805
13809
|
data.billingAddress = state.data.account.address;
|
|
13806
13810
|
}
|
|
13807
|
-
if ((_i = state.data) == null ? void 0 : _i.deposit) {
|
|
13808
|
-
data.amount = state.data.deposit.amount;
|
|
13809
|
-
data.currency = state.data.deposit.currency;
|
|
13810
|
-
}
|
|
13811
13811
|
const { fields: readyToPayFields } = await state.storefront.purchase.readyToPay({ data });
|
|
13812
13812
|
const readyToPay = Object.values(readyToPayFields);
|
|
13813
13813
|
return filterReadyToPay(readyToPay);
|
|
@@ -14049,42 +14049,6 @@ async function createPaymentInstrument({
|
|
|
14049
14049
|
return instrument;
|
|
14050
14050
|
});
|
|
14051
14051
|
}
|
|
14052
|
-
class DepositRequestModel extends BaseModel {
|
|
14053
|
-
constructor(fields) {
|
|
14054
|
-
super(fields);
|
|
14055
|
-
this.amount = Array.isArray(fields.amounts) ? fields.amounts[0] : fields.amount;
|
|
14056
|
-
if (fields.buttons) {
|
|
14057
|
-
this.buttons = fields.buttons;
|
|
14058
|
-
} else if (fields.amounts) {
|
|
14059
|
-
this.buttons = [...fields.amounts];
|
|
14060
|
-
} else {
|
|
14061
|
-
this.buttons = [];
|
|
14062
|
-
}
|
|
14063
|
-
this.editable = typeof fields.editable === "boolean" ? fields.editable : Boolean(fields.customAmount);
|
|
14064
|
-
this.customAmount = merge$1(
|
|
14065
|
-
{
|
|
14066
|
-
minimum: 1,
|
|
14067
|
-
maximum: 1e12,
|
|
14068
|
-
multipleOf: 1
|
|
14069
|
-
},
|
|
14070
|
-
fields.customAmount || {}
|
|
14071
|
-
);
|
|
14072
|
-
}
|
|
14073
|
-
}
|
|
14074
|
-
async function fetchDepositRequest({
|
|
14075
|
-
data = null
|
|
14076
|
-
}) {
|
|
14077
|
-
return Endpoint(async () => {
|
|
14078
|
-
validateStorefront(state.storefront);
|
|
14079
|
-
validateOptions$1(state.options);
|
|
14080
|
-
if (data == null) {
|
|
14081
|
-
throw new Error("Invalid payload.");
|
|
14082
|
-
}
|
|
14083
|
-
state.storefront.setSessionToken(state.options.jwt);
|
|
14084
|
-
const { fields } = await state.storefront.depositRequests.get(data);
|
|
14085
|
-
return new DepositRequestModel(fields);
|
|
14086
|
-
});
|
|
14087
|
-
}
|
|
14088
14052
|
const _PayoutRequestModel = class _PayoutRequestModel extends BaseModel {
|
|
14089
14053
|
constructor(fields = {}) {
|
|
14090
14054
|
super(fields);
|
|
@@ -14122,9 +14086,6 @@ async function updatePayoutRequest(data) {
|
|
|
14122
14086
|
return new PayoutRequestModel(fields);
|
|
14123
14087
|
});
|
|
14124
14088
|
}
|
|
14125
|
-
function isDepositRequest(deposit) {
|
|
14126
|
-
return deposit != null && "depositRequestId" in deposit && typeof deposit.depositRequestId === "string";
|
|
14127
|
-
}
|
|
14128
14089
|
const collectedProperties = [
|
|
14129
14090
|
// Google UTM fields
|
|
14130
14091
|
"utm_source",
|
|
@@ -14206,10 +14167,6 @@ class DataInstance {
|
|
|
14206
14167
|
get isPayment() {
|
|
14207
14168
|
return Boolean(this.invoice || this.transaction || this.money);
|
|
14208
14169
|
}
|
|
14209
|
-
get isDepositTransaction() {
|
|
14210
|
-
var _a;
|
|
14211
|
-
return Boolean((_a = this.transaction) == null ? void 0 : _a.depositRequestId);
|
|
14212
|
-
}
|
|
14213
14170
|
get isInvoice() {
|
|
14214
14171
|
return Boolean(this.invoice);
|
|
14215
14172
|
}
|
|
@@ -14254,9 +14211,9 @@ class DataInstance {
|
|
|
14254
14211
|
);
|
|
14255
14212
|
}
|
|
14256
14213
|
get hasPurchaseData() {
|
|
14257
|
-
var _a
|
|
14214
|
+
var _a;
|
|
14258
14215
|
return Boolean(
|
|
14259
|
-
this.isPayment || this.inPurchase || ((_a = state.options) == null ? void 0 : _a.
|
|
14216
|
+
this.isPayment || this.inPurchase || ((_a = state.options) == null ? void 0 : _a.payout)
|
|
14260
14217
|
);
|
|
14261
14218
|
}
|
|
14262
14219
|
toPostmatesModel() {
|
|
@@ -14268,7 +14225,6 @@ class DataInstance {
|
|
|
14268
14225
|
isPayment: this.isPayment,
|
|
14269
14226
|
isInvoice: this.isInvoice,
|
|
14270
14227
|
isPurchase: this.isPurchase,
|
|
14271
|
-
isDepositTransaction: this.isDepositTransaction,
|
|
14272
14228
|
hasAmountDue: this.hasAmountDue,
|
|
14273
14229
|
summaryItems: this.summaryItems,
|
|
14274
14230
|
summaryLineItems: this.summaryLineItems,
|
|
@@ -14285,11 +14241,10 @@ async function fetchData({
|
|
|
14285
14241
|
fetchTransaction: fetchTransaction$1 = fetchTransaction,
|
|
14286
14242
|
fetchAccountAndWebsite: fetchAccountAndWebsite$1 = fetchAccountAndWebsite,
|
|
14287
14243
|
fetchInstruments = fetchPaymentInstrument,
|
|
14288
|
-
fetchDepositRequest: fetchDepositRequest$1 = fetchDepositRequest,
|
|
14289
14244
|
fetchPayoutRequest: fetchPayoutRequest$1 = fetchPayoutRequest,
|
|
14290
14245
|
fetchPlansFromAddonsBumpOffer: fetchPlansFromAddonsBumpOffer$1 = fetchPlansFromAddonsBumpOffer
|
|
14291
14246
|
} = {}) {
|
|
14292
|
-
var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s2, _t2
|
|
14247
|
+
var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s2, _t2;
|
|
14293
14248
|
try {
|
|
14294
14249
|
state.data = new DataInstance();
|
|
14295
14250
|
if (state.storefront && ((_a = state.options) == null ? void 0 : _a.jwt)) {
|
|
@@ -14301,26 +14256,12 @@ async function fetchData({
|
|
|
14301
14256
|
} else {
|
|
14302
14257
|
state.data.riskMetadata = riskMetadata;
|
|
14303
14258
|
}
|
|
14304
|
-
if ((_b = state.options) == null ? void 0 : _b.
|
|
14305
|
-
if (isDepositRequest(state.options.deposit)) {
|
|
14306
|
-
state.data.deposit = await fetchDepositRequest$1({
|
|
14307
|
-
data: {
|
|
14308
|
-
id: state.options.deposit.depositRequestId
|
|
14309
|
-
}
|
|
14310
|
-
});
|
|
14311
|
-
} else {
|
|
14312
|
-
state.data.deposit = new DepositRequestModel(
|
|
14313
|
-
// @ts-expect-error TODO: refactor - customAmounts optional modifier not present in api-definitions.
|
|
14314
|
-
state.options.deposit
|
|
14315
|
-
);
|
|
14316
|
-
}
|
|
14317
|
-
}
|
|
14318
|
-
if ((_c = state.options) == null ? void 0 : _c.payout) {
|
|
14259
|
+
if ((_b = state.options) == null ? void 0 : _b.payout) {
|
|
14319
14260
|
state.data.payout = await fetchPayoutRequest$1({
|
|
14320
14261
|
id: state.options.payout.payoutRequestId
|
|
14321
14262
|
});
|
|
14322
14263
|
}
|
|
14323
|
-
if ((
|
|
14264
|
+
if ((_c = state.options) == null ? void 0 : _c.transactionId) {
|
|
14324
14265
|
state.data.transaction = await fetchTransaction$1({
|
|
14325
14266
|
data: {
|
|
14326
14267
|
id: state.options.transactionId
|
|
@@ -14329,7 +14270,7 @@ async function fetchData({
|
|
|
14329
14270
|
}
|
|
14330
14271
|
let productsPromise;
|
|
14331
14272
|
let invoicePlans;
|
|
14332
|
-
const invoiceId = ((
|
|
14273
|
+
const invoiceId = ((_d = state.options) == null ? void 0 : _d.invoiceId) || ((_f = (_e2 = state.data) == null ? void 0 : _e2.transaction) == null ? void 0 : _f.invoiceId);
|
|
14333
14274
|
if (invoiceId) {
|
|
14334
14275
|
const { invoice, products: products2, plans: plans2 } = await fetchInvoiceAndProducts$1({
|
|
14335
14276
|
data: {
|
|
@@ -14341,15 +14282,15 @@ async function fetchData({
|
|
|
14341
14282
|
invoicePlans = plans2;
|
|
14342
14283
|
}
|
|
14343
14284
|
const isManageInstruments = [
|
|
14344
|
-
(
|
|
14345
|
-
(
|
|
14346
|
-
(
|
|
14285
|
+
(_h = (_g = state.options) == null ? void 0 : _g.paymentInstruments) == null ? void 0 : _h.allowDeactivate,
|
|
14286
|
+
(_j = (_i = state.options) == null ? void 0 : _i.paymentInstruments) == null ? void 0 : _j.allowUpdate,
|
|
14287
|
+
(_l = (_k = state.options) == null ? void 0 : _k.paymentInstruments) == null ? void 0 : _l.allowMakeDefault
|
|
14347
14288
|
].some((v) => v);
|
|
14348
14289
|
let readyToPayPromise = Promise.resolve(null);
|
|
14349
14290
|
let readyToPayoutPromise = Promise.resolve(null);
|
|
14350
14291
|
let fetchAccountAndWebsitePromise = Promise.resolve();
|
|
14351
14292
|
let availableInstrumentsPromise = null;
|
|
14352
|
-
if ((
|
|
14293
|
+
if ((_m = state.options) == null ? void 0 : _m.jwt) {
|
|
14353
14294
|
fetchAccountAndWebsitePromise = fetchAccountAndWebsite$1().then(
|
|
14354
14295
|
({ account, website }) => {
|
|
14355
14296
|
if (state.data == null) {
|
|
@@ -14359,29 +14300,29 @@ async function fetchData({
|
|
|
14359
14300
|
state.data.website = website;
|
|
14360
14301
|
}
|
|
14361
14302
|
);
|
|
14362
|
-
if ((
|
|
14303
|
+
if ((_n = state.options) == null ? void 0 : _n.payout) {
|
|
14363
14304
|
readyToPayoutPromise = fetchAccountAndWebsitePromise.then(
|
|
14364
14305
|
() => fetchReadyToPayout()
|
|
14365
14306
|
);
|
|
14366
|
-
} else if (state.data.money || state.data.invoice || state.data.transaction || state.data.payout
|
|
14307
|
+
} else if (state.data.money || state.data.invoice || state.data.transaction || state.data.payout) {
|
|
14367
14308
|
readyToPayPromise = fetchAccountAndWebsitePromise.then(
|
|
14368
14309
|
() => fetchReadyToPay()
|
|
14369
14310
|
);
|
|
14370
14311
|
}
|
|
14371
14312
|
availableInstrumentsPromise = fetchInstruments();
|
|
14372
|
-
} else if ((
|
|
14313
|
+
} else if ((_o = state.options) == null ? void 0 : _o.payout) {
|
|
14373
14314
|
readyToPayoutPromise = fetchReadyToPayout();
|
|
14374
14315
|
} else {
|
|
14375
14316
|
readyToPayPromise = fetchReadyToPay();
|
|
14376
14317
|
}
|
|
14377
|
-
const previewPurchasePromise = ((
|
|
14378
|
-
if (!((
|
|
14318
|
+
const previewPurchasePromise = ((_p = state.options) == null ? void 0 : _p.items) ? fetchSummary() : null;
|
|
14319
|
+
if (!((_q = state.options) == null ? void 0 : _q.jwt)) {
|
|
14379
14320
|
productsPromise = fetchProductsFromPlans();
|
|
14380
14321
|
}
|
|
14381
14322
|
let plansPromise = new Promise((resolve) => {
|
|
14382
14323
|
resolve([]);
|
|
14383
14324
|
});
|
|
14384
|
-
if (((
|
|
14325
|
+
if (((_r = state.options) == null ? void 0 : _r.addons) || ((_s2 = state.options) == null ? void 0 : _s2.bumpOffer)) {
|
|
14385
14326
|
plansPromise = fetchPlansFromAddonsBumpOffer$1();
|
|
14386
14327
|
}
|
|
14387
14328
|
let [
|
|
@@ -14399,7 +14340,7 @@ async function fetchData({
|
|
|
14399
14340
|
plansPromise,
|
|
14400
14341
|
availableInstrumentsPromise
|
|
14401
14342
|
]);
|
|
14402
|
-
if (isManageInstruments && availableInstruments && !readyToPay && !((
|
|
14343
|
+
if (isManageInstruments && availableInstruments && !readyToPay && !((_t2 = state.options) == null ? void 0 : _t2.payout)) {
|
|
14403
14344
|
const set = /* @__PURE__ */ new Set();
|
|
14404
14345
|
availableInstruments.forEach((instrument) => {
|
|
14405
14346
|
set.add(instrument.method);
|
|
@@ -14771,20 +14712,6 @@ function generateDigitalWallet({ expressMethods = [] }) {
|
|
|
14771
14712
|
});
|
|
14772
14713
|
return output;
|
|
14773
14714
|
}
|
|
14774
|
-
async function createDeposit({
|
|
14775
|
-
data
|
|
14776
|
-
}) {
|
|
14777
|
-
return Endpoint(async () => {
|
|
14778
|
-
validateStorefront(state.storefront);
|
|
14779
|
-
validateOptions$1(state.options);
|
|
14780
|
-
if (data == null) {
|
|
14781
|
-
throw new Error("Invalid payload.");
|
|
14782
|
-
}
|
|
14783
|
-
state.storefront.setSessionToken(state.options.jwt);
|
|
14784
|
-
const { fields } = await state.storefront.deposit.create({ data });
|
|
14785
|
-
return new TransactionModel(fields);
|
|
14786
|
-
});
|
|
14787
|
-
}
|
|
14788
14715
|
function getElement(id, rootElement = state.form) {
|
|
14789
14716
|
return rootElement.querySelector(`[data-rebilly-instruments="${id}"]`);
|
|
14790
14717
|
}
|
|
@@ -14795,15 +14722,8 @@ const getBumpOfferElement = () => {
|
|
|
14795
14722
|
return rootDiv;
|
|
14796
14723
|
};
|
|
14797
14724
|
function hideExtraUI() {
|
|
14798
|
-
var _a, _b
|
|
14725
|
+
var _a, _b;
|
|
14799
14726
|
const { expressMethods } = getPaymentMethods();
|
|
14800
|
-
if ((_a = state.options) == null ? void 0 : _a.deposit) {
|
|
14801
|
-
const linkElement = getElement("deposit-back");
|
|
14802
|
-
if (linkElement) {
|
|
14803
|
-
linkElement.style.height = "0px";
|
|
14804
|
-
linkElement.style.overflow = "hidden";
|
|
14805
|
-
}
|
|
14806
|
-
}
|
|
14807
14727
|
if (expressMethods.length) {
|
|
14808
14728
|
const expressMethodsElement2 = getElement("express-methods");
|
|
14809
14729
|
if (expressMethodsElement2) {
|
|
@@ -14811,7 +14731,7 @@ function hideExtraUI() {
|
|
|
14811
14731
|
expressMethodsElement2.style.overflow = "hidden";
|
|
14812
14732
|
}
|
|
14813
14733
|
}
|
|
14814
|
-
if ((
|
|
14734
|
+
if ((_b = (_a = state.options) == null ? void 0 : _a.bumpOffer) == null ? void 0 : _b.length) {
|
|
14815
14735
|
const bumpOfferElement = getElement("bump-offer");
|
|
14816
14736
|
if (bumpOfferElement) {
|
|
14817
14737
|
bumpOfferElement.style.height = "0px";
|
|
@@ -14898,19 +14818,7 @@ async function mountMethodSelector() {
|
|
|
14898
14818
|
});
|
|
14899
14819
|
(_d = iframe == null ? void 0 : iframe.component) == null ? void 0 : _d.call("update", model);
|
|
14900
14820
|
if (!((_f = (_e2 = iframe == null ? void 0 : iframe.component) == null ? void 0 : _e2.events) == null ? void 0 : _f["restart-payment-flow"])) {
|
|
14901
|
-
(_g = iframe == null ? void 0 : iframe.component) == null ? void 0 : _g.on("restart-payment-flow",
|
|
14902
|
-
if (payload == null ? void 0 : payload.createNewDeposit) {
|
|
14903
|
-
const transaction = await createDeposit({
|
|
14904
|
-
data: {
|
|
14905
|
-
depositRequestId: payload.depositRequestId,
|
|
14906
|
-
amount: payload.amount
|
|
14907
|
-
}
|
|
14908
|
-
});
|
|
14909
|
-
if (transaction.approvalUrl) {
|
|
14910
|
-
window.location.assign(transaction.approvalUrl);
|
|
14911
|
-
return;
|
|
14912
|
-
}
|
|
14913
|
-
}
|
|
14821
|
+
(_g = iframe == null ? void 0 : iframe.component) == null ? void 0 : _g.on("restart-payment-flow", () => {
|
|
14914
14822
|
if (state.data.isPurchase) {
|
|
14915
14823
|
updateSummary();
|
|
14916
14824
|
}
|
|
@@ -14928,97 +14836,6 @@ async function mountMethodSelector() {
|
|
|
14928
14836
|
}
|
|
14929
14837
|
state.translate.translateItems();
|
|
14930
14838
|
}
|
|
14931
|
-
async function mountAmountSelector() {
|
|
14932
|
-
var _a, _b, _c;
|
|
14933
|
-
if (state.data.money) {
|
|
14934
|
-
state.data.money.amount = null;
|
|
14935
|
-
state.data.money.currency = null;
|
|
14936
|
-
state.updateModel();
|
|
14937
|
-
}
|
|
14938
|
-
const iframe = iframes.form;
|
|
14939
|
-
if (!iframe) {
|
|
14940
|
-
await mountForm();
|
|
14941
|
-
}
|
|
14942
|
-
const modelSafeState = state.toModel();
|
|
14943
|
-
const model = {
|
|
14944
|
-
options: modelSafeState.options,
|
|
14945
|
-
data: modelSafeState.data
|
|
14946
|
-
};
|
|
14947
|
-
(_a = iframe.component) == null ? void 0 : _a.call("route", {
|
|
14948
|
-
name: "amount-selector"
|
|
14949
|
-
});
|
|
14950
|
-
(_b = iframe.component) == null ? void 0 : _b.call("update", model);
|
|
14951
|
-
(_c = iframe == null ? void 0 : iframe.component) == null ? void 0 : _c.on("confirm-amount", async (data) => {
|
|
14952
|
-
const { amount, currency } = data;
|
|
14953
|
-
const { depositRequestId } = state.options.deposit;
|
|
14954
|
-
state.data.money = {
|
|
14955
|
-
amount,
|
|
14956
|
-
currency
|
|
14957
|
-
};
|
|
14958
|
-
const transaction = await createDeposit({
|
|
14959
|
-
data: {
|
|
14960
|
-
depositRequestId,
|
|
14961
|
-
amount
|
|
14962
|
-
}
|
|
14963
|
-
});
|
|
14964
|
-
if (transaction) {
|
|
14965
|
-
state.data.transaction = transaction;
|
|
14966
|
-
state.options.transactionId = transaction.id;
|
|
14967
|
-
}
|
|
14968
|
-
const readyToPayUpdated = await fetchReadyToPay();
|
|
14969
|
-
state.data.readyToPay = readyToPayUpdated;
|
|
14970
|
-
state.updateModel();
|
|
14971
|
-
mountMethodSelector();
|
|
14972
|
-
});
|
|
14973
|
-
}
|
|
14974
|
-
const baseMethodSelectorHTML = () => `
|
|
14975
|
-
<div data-rebilly-instruments="content" class="rebilly-instruments-content">
|
|
14976
|
-
<div data-rebilly-instruments="content-error" id="rebilly-instruments-error"></div>
|
|
14977
|
-
<div data-rebilly-instruments="form"></div>
|
|
14978
|
-
</div>
|
|
14979
|
-
`;
|
|
14980
|
-
async function mountForm() {
|
|
14981
|
-
var _a;
|
|
14982
|
-
state.form.innerHTML += baseMethodSelectorHTML();
|
|
14983
|
-
const container = state.form.querySelector(
|
|
14984
|
-
'[data-rebilly-instruments="form"]'
|
|
14985
|
-
);
|
|
14986
|
-
const { paymentMethodsUrl: url } = ((_a = state == null ? void 0 : state.options) == null ? void 0 : _a._computed) || {};
|
|
14987
|
-
const name = "rebilly-instruments-form";
|
|
14988
|
-
const modelSafeState = state.toModel();
|
|
14989
|
-
const model = {
|
|
14990
|
-
options: modelSafeState.options,
|
|
14991
|
-
data: modelSafeState.data,
|
|
14992
|
-
mainStyleVars: modelSafeState.mainStyleVars
|
|
14993
|
-
};
|
|
14994
|
-
const args = {
|
|
14995
|
-
name,
|
|
14996
|
-
url: `${url}?name=${name}`,
|
|
14997
|
-
container,
|
|
14998
|
-
model
|
|
14999
|
-
};
|
|
15000
|
-
const iframe = await new ViewIframe2(args);
|
|
15001
|
-
iframe.bindEventListeners({ loader: state.loader });
|
|
15002
|
-
iframes.form = iframe;
|
|
15003
|
-
state.loader.stopLoading({ id: "rebilly-instruments-form" });
|
|
15004
|
-
return {
|
|
15005
|
-
then: (callback) => callback()
|
|
15006
|
-
};
|
|
15007
|
-
}
|
|
15008
|
-
function determineFirstView() {
|
|
15009
|
-
var _a;
|
|
15010
|
-
if ((_a = state.options) == null ? void 0 : _a.deposit) {
|
|
15011
|
-
mountAmountSelector();
|
|
15012
|
-
} else {
|
|
15013
|
-
mountMethodSelector();
|
|
15014
|
-
}
|
|
15015
|
-
}
|
|
15016
|
-
function removeForm() {
|
|
15017
|
-
const container = state.form.querySelector(
|
|
15018
|
-
'[data-rebilly-instruments="form"]'
|
|
15019
|
-
);
|
|
15020
|
-
container.remove();
|
|
15021
|
-
}
|
|
15022
14839
|
function addDOMElement({
|
|
15023
14840
|
element = "div",
|
|
15024
14841
|
attributes = {},
|
|
@@ -15280,43 +15097,12 @@ function handleComputedProperty(options) {
|
|
|
15280
15097
|
var _a;
|
|
15281
15098
|
return Object.assign({}, options, {
|
|
15282
15099
|
_computed: {
|
|
15283
|
-
version: "16.223.
|
|
15100
|
+
version: "16.223.2",
|
|
15284
15101
|
paymentMethodsUrl: ((_a = options._dev) == null ? void 0 : _a.paymentMethodsUrl) ?? "https://forms.secure-payments.app"
|
|
15285
15102
|
}
|
|
15286
15103
|
});
|
|
15287
15104
|
}
|
|
15288
15105
|
function handleNestedPropertiesDefaultValues(options) {
|
|
15289
|
-
var _a;
|
|
15290
|
-
if (!isDepositRequest(options.deposit) && ((_a = options.deposit) == null ? void 0 : _a.currency)) {
|
|
15291
|
-
options.deposit = merge$1(
|
|
15292
|
-
{
|
|
15293
|
-
editable: true,
|
|
15294
|
-
buttons: [],
|
|
15295
|
-
customAmount: {
|
|
15296
|
-
minimum: 1,
|
|
15297
|
-
maximum: 1e12,
|
|
15298
|
-
multipleOf: 1
|
|
15299
|
-
}
|
|
15300
|
-
},
|
|
15301
|
-
options.deposit || {}
|
|
15302
|
-
);
|
|
15303
|
-
if (options.deposit.amount == null) {
|
|
15304
|
-
if (options.deposit.buttons && options.deposit.buttons.length > 0) {
|
|
15305
|
-
[options.deposit.amount] = options.deposit.buttons;
|
|
15306
|
-
}
|
|
15307
|
-
}
|
|
15308
|
-
} else if (isDepositRequest(options.deposit)) {
|
|
15309
|
-
options.deposit = merge$1(
|
|
15310
|
-
{
|
|
15311
|
-
customAmount: {
|
|
15312
|
-
minimum: 1,
|
|
15313
|
-
maximum: 1e12,
|
|
15314
|
-
multipleOf: 1
|
|
15315
|
-
}
|
|
15316
|
-
},
|
|
15317
|
-
options.deposit || {}
|
|
15318
|
-
);
|
|
15319
|
-
}
|
|
15320
15106
|
if (options.items) {
|
|
15321
15107
|
options.items = options.items.map((item) => ({
|
|
15322
15108
|
...item,
|
|
@@ -15329,7 +15115,7 @@ function handleJwtDestructuring(options) {
|
|
|
15329
15115
|
if (options.jwt && !options.publishableKey) {
|
|
15330
15116
|
const {
|
|
15331
15117
|
merchant: organizationId,
|
|
15332
|
-
claims: { transactionId, invoiceId, websiteId
|
|
15118
|
+
claims: { transactionId, invoiceId, websiteId }
|
|
15333
15119
|
} = jwtDecode(options.jwt);
|
|
15334
15120
|
Object.entries({
|
|
15335
15121
|
organizationId,
|
|
@@ -15341,14 +15127,6 @@ function handleJwtDestructuring(options) {
|
|
|
15341
15127
|
options[key] = value;
|
|
15342
15128
|
}
|
|
15343
15129
|
});
|
|
15344
|
-
if (cashierRequestId && !options.deposit) {
|
|
15345
|
-
options.deposit = Object.assign(
|
|
15346
|
-
{},
|
|
15347
|
-
{
|
|
15348
|
-
depositRequestId: cashierRequestId
|
|
15349
|
-
}
|
|
15350
|
-
);
|
|
15351
|
-
}
|
|
15352
15130
|
}
|
|
15353
15131
|
return options;
|
|
15354
15132
|
}
|
|
@@ -17217,10 +16995,6 @@ const vars = (theme2) => `
|
|
|
17217
16995
|
padding-top: var(--rebilly-spacingS);
|
|
17218
16996
|
}
|
|
17219
16997
|
|
|
17220
|
-
.rebilly-instruments-amount-selector {
|
|
17221
|
-
padding: 2px;
|
|
17222
|
-
}
|
|
17223
|
-
|
|
17224
16998
|
/* Express Methods
|
|
17225
16999
|
------------------------------------------------------------ */
|
|
17226
17000
|
@-webkit-keyframes rebillyExpressShine {
|
|
@@ -18417,7 +18191,7 @@ async function makePurchase({ payload }) {
|
|
|
18417
18191
|
return fields;
|
|
18418
18192
|
}
|
|
18419
18193
|
async function makePayment({ payload }) {
|
|
18420
|
-
var _a, _b, _c, _d, _e2
|
|
18194
|
+
var _a, _b, _c, _d, _e2;
|
|
18421
18195
|
const {
|
|
18422
18196
|
_raw: { id },
|
|
18423
18197
|
isExistingInstrument
|
|
@@ -18443,15 +18217,10 @@ async function makePayment({ payload }) {
|
|
|
18443
18217
|
data.amount = state.options.money.amount;
|
|
18444
18218
|
data.currency = state.options.money.currency;
|
|
18445
18219
|
}
|
|
18446
|
-
if ((_d = state.
|
|
18447
|
-
data.websiteId = state.options.websiteId;
|
|
18448
|
-
data.amount = state.data.amountAndCurrency.amount;
|
|
18449
|
-
data.currency = state.data.amountAndCurrency.currency;
|
|
18450
|
-
}
|
|
18451
|
-
if (((_e2 = state.data) == null ? void 0 : _e2.couponIds) && Array.isArray(state.data.couponIds)) {
|
|
18220
|
+
if (((_d = state.data) == null ? void 0 : _d.couponIds) && Array.isArray(state.data.couponIds)) {
|
|
18452
18221
|
data.couponIds = state.data.couponIds;
|
|
18453
18222
|
}
|
|
18454
|
-
if ((
|
|
18223
|
+
if ((_e2 = state.data) == null ? void 0 : _e2.riskMetadata) {
|
|
18455
18224
|
data.riskMetadata = state.data.riskMetadata;
|
|
18456
18225
|
}
|
|
18457
18226
|
let { fields } = await postPayment({ data });
|
|
@@ -18822,7 +18591,7 @@ async function mount({ ...options } = {}) {
|
|
|
18822
18591
|
state.options.transactionType = "setup";
|
|
18823
18592
|
}
|
|
18824
18593
|
if (state.form) {
|
|
18825
|
-
mountForm().then(() =>
|
|
18594
|
+
mountForm().then(() => mountMethodSelector());
|
|
18826
18595
|
}
|
|
18827
18596
|
if (state.summary) {
|
|
18828
18597
|
mountSummary();
|
|
@@ -18891,7 +18660,7 @@ async function destroy() {
|
|
|
18891
18660
|
if (state.form instanceof HTMLElement) {
|
|
18892
18661
|
state.form.textContent = "";
|
|
18893
18662
|
}
|
|
18894
|
-
await
|
|
18663
|
+
await ur.cancelAll();
|
|
18895
18664
|
state.loader.clearAll();
|
|
18896
18665
|
}
|
|
18897
18666
|
async function update({ newOptions = {} } = {}) {
|
|
@@ -18932,7 +18701,7 @@ class RebillyInstrumentsInstance {
|
|
|
18932
18701
|
await show({ componentName, payload });
|
|
18933
18702
|
}
|
|
18934
18703
|
get version() {
|
|
18935
|
-
return `RebillyInstruments Ver.${"16.223.
|
|
18704
|
+
return `RebillyInstruments Ver.${"16.223.2"}`;
|
|
18936
18705
|
}
|
|
18937
18706
|
on(eventName, callback) {
|
|
18938
18707
|
on({ eventName, callback });
|