@alma/widgets 2.3.1 → 2.3.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 +7 -0
- package/dist/raw/widgets.js +6 -0
- package/dist/raw/widgets.js.map +1 -1
- package/dist/raw/widgets.m.js +6 -0
- package/dist/raw/widgets.m.js.map +1 -1
- package/dist/raw/widgets.modern.js +3 -1
- package/dist/raw/widgets.modern.js.map +1 -1
- package/dist/raw/widgets.umd.js +6 -0
- package/dist/raw/widgets.umd.js.map +1 -1
- package/dist/types/types.d.ts +1 -0
- package/dist/widgets.js +1 -1
- package/dist/widgets.js.map +1 -1
- package/dist/widgets.m.js +1 -1
- package/dist/widgets.m.js.map +1 -1
- package/dist/widgets.modern.js +1 -1
- package/dist/widgets.modern.js.map +1 -1
- package/dist/widgets.umd.js +1 -1
- package/dist/widgets.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/raw/widgets.m.js
CHANGED
|
@@ -1735,6 +1735,12 @@ var filterELigibility = function filterELigibility(eligibilities, configPlans) {
|
|
|
1735
1735
|
// Remove p1x
|
|
1736
1736
|
var filteredEligibilityPlans = eligibilities.filter(function (plan) {
|
|
1737
1737
|
return !(plan.installments_count === 1 && plan.deferred_days === 0 && plan.deferred_months === 0);
|
|
1738
|
+
}) // Keeps the plans that have a payment_plan property
|
|
1739
|
+
.filter(function (plan) {
|
|
1740
|
+
return plan.payment_plan;
|
|
1741
|
+
}) // Remove plans that have a reasons property
|
|
1742
|
+
.filter(function (plan) {
|
|
1743
|
+
return !plan.reasons;
|
|
1738
1744
|
}); // If no configPlans was provided, return eligibility response
|
|
1739
1745
|
|
|
1740
1746
|
if (!configPlans) {
|