@rebilly/instruments 9.89.0 → 9.89.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -3
- package/dist/index.js +25 -5
- package/dist/index.min.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [9.89.
|
|
1
|
+
## [9.89.2](https://github.com/Rebilly/rebilly/compare/instruments/core-v9.89.1...instruments/core-v9.89.2) (2024-10-30)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
###
|
|
4
|
+
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
* **
|
|
6
|
+
* **instruments:** Framepay create token issue with proxies ([#8306](https://github.com/Rebilly/rebilly/issues/8306)) ([2eac7d5](https://github.com/Rebilly/rebilly/commit/2eac7d500e1071df9a4f4b713e72cd88e1c55594))
|
package/dist/index.js
CHANGED
|
@@ -6262,7 +6262,7 @@ function C$1({ options: e2 }) {
|
|
|
6262
6262
|
}
|
|
6263
6263
|
function o2() {
|
|
6264
6264
|
const i = {
|
|
6265
|
-
"REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@
|
|
6265
|
+
"REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@2eac7d5`
|
|
6266
6266
|
};
|
|
6267
6267
|
return e2.apiKey && (i["REB-APIKEY"] = e2.apiKey), i;
|
|
6268
6268
|
}
|
|
@@ -16322,7 +16322,13 @@ class ReadyToPayModel {
|
|
|
16322
16322
|
}
|
|
16323
16323
|
function filterReadyToPay(readyToPay) {
|
|
16324
16324
|
const paymentMethodsMetadata = [...paymentMethods];
|
|
16325
|
-
const EXPRESS_METHODS = [
|
|
16325
|
+
const EXPRESS_METHODS = [
|
|
16326
|
+
"Google Pay",
|
|
16327
|
+
"Apple Pay",
|
|
16328
|
+
"paypal",
|
|
16329
|
+
"Samsung Pay"
|
|
16330
|
+
];
|
|
16331
|
+
const BLOCKED_EXPRESS_METHODS = ["Samsung Pay"];
|
|
16326
16332
|
const BLOCKED_METHODS = [
|
|
16327
16333
|
// Requires implementation.
|
|
16328
16334
|
"echeck",
|
|
@@ -16353,10 +16359,14 @@ function filterReadyToPay(readyToPay) {
|
|
|
16353
16359
|
];
|
|
16354
16360
|
const isExpressMethod = ({ method, feature }) => EXPRESS_METHODS.includes(method) || EXPRESS_METHODS.includes(feature == null ? void 0 : feature.name);
|
|
16355
16361
|
return readyToPay.filter((readyData) => {
|
|
16362
|
+
var _a;
|
|
16356
16363
|
const isOldPayPal = readyData.method === "paypal" && !readyData.feature;
|
|
16357
16364
|
const isPlaid = readyData.method === "ach" && readyData.feature;
|
|
16358
16365
|
const isBlocked = BLOCKED_METHODS.includes(readyData.method);
|
|
16359
|
-
|
|
16366
|
+
const isExpressBlocked = BLOCKED_EXPRESS_METHODS.includes(
|
|
16367
|
+
(_a = readyData.feature) == null ? void 0 : _a.name
|
|
16368
|
+
);
|
|
16369
|
+
return !isOldPayPal && !isPlaid && !isBlocked && !isExpressBlocked;
|
|
16360
16370
|
}).map((fields, index2) => {
|
|
16361
16371
|
const metadata = paymentMethodsMetadata.find(
|
|
16362
16372
|
(methodMetadata) => methodMetadata.apiName === fields.method
|
|
@@ -16402,7 +16412,13 @@ async function fetchReadyToPay() {
|
|
|
16402
16412
|
}
|
|
16403
16413
|
function filterReadyToPayout(readyToPayout) {
|
|
16404
16414
|
const paymentMethodsMetadata = [...paymentMethods];
|
|
16405
|
-
const EXPRESS_METHODS = [
|
|
16415
|
+
const EXPRESS_METHODS = [
|
|
16416
|
+
"Google Pay",
|
|
16417
|
+
"Apple Pay",
|
|
16418
|
+
"paypal",
|
|
16419
|
+
"Samsung Pay"
|
|
16420
|
+
];
|
|
16421
|
+
const BLOCKED_EXPRESS_METHODS = ["Samsung Pay"];
|
|
16406
16422
|
const BLOCKED_METHODS = [
|
|
16407
16423
|
// account number, routing number, and account type required
|
|
16408
16424
|
"echeck",
|
|
@@ -16418,10 +16434,14 @@ function filterReadyToPayout(readyToPayout) {
|
|
|
16418
16434
|
];
|
|
16419
16435
|
const isExpressMethod = ({ method, feature }) => EXPRESS_METHODS.includes(method) || EXPRESS_METHODS.includes(feature == null ? void 0 : feature.name);
|
|
16420
16436
|
return readyToPayout.filter((readyData) => {
|
|
16437
|
+
var _a;
|
|
16421
16438
|
const isOldPayPal = readyData.method === "paypal" && !readyData.feature;
|
|
16422
16439
|
const isPlaid = readyData.method === "ach" && readyData.feature;
|
|
16423
16440
|
const isBlocked = BLOCKED_METHODS.includes(readyData.method);
|
|
16424
|
-
|
|
16441
|
+
const isExpressBlocked = BLOCKED_EXPRESS_METHODS.includes(
|
|
16442
|
+
(_a = readyData.feature) == null ? void 0 : _a.name
|
|
16443
|
+
);
|
|
16444
|
+
return !isOldPayPal && !isPlaid && !isBlocked && !isExpressBlocked;
|
|
16425
16445
|
}).map((fields, index2) => {
|
|
16426
16446
|
const metadata = paymentMethodsMetadata.find(
|
|
16427
16447
|
(methodMetadata) => methodMetadata.apiName === fields.method
|