From e6b296b3a1a080011d1c0e97ba7a739fabc98620 Mon Sep 17 00:00:00 2001 From: Leah Schumann Date: Fri, 28 Jun 2024 08:20:38 -0400 Subject: [PATCH 1/6] Updated logic for displaying PIA options or alert for time of service --- src/layouts/payment-method/payment-method.vue | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/src/layouts/payment-method/payment-method.vue b/src/layouts/payment-method/payment-method.vue index 32a6185a7..2bc25609e 100644 --- a/src/layouts/payment-method/payment-method.vue +++ b/src/layouts/payment-method/payment-method.vue @@ -22,6 +22,7 @@
0; + return piaInsurance === "true"; } else { - isEnabled = piaExperience === "PIA Optional" || piaExperience === "PIA Required"; + return piaExperience === "PIA Optional" || piaExperience === "PIA Required"; } + // if (this.totalAmountDue > 0.00) { - return !isEnabled; + // } + + //return false; }, paymentMethod() { if (this.isPiaDisabled) { @@ -643,7 +651,7 @@ export default { }, }, components: { - funnelHeader, + funnelHeader, navbar, funnelSubHeader, Form, From c428852f4b11ed61e4c2c3f3a56c9629667396ca Mon Sep 17 00:00:00 2001 From: Leah Schumann Date: Fri, 28 Jun 2024 08:23:01 -0400 Subject: [PATCH 2/6] Removed unwanted comment --- src/layouts/payment-method/payment-method.vue | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/layouts/payment-method/payment-method.vue b/src/layouts/payment-method/payment-method.vue index 2bc25609e..b351c0d23 100644 --- a/src/layouts/payment-method/payment-method.vue +++ b/src/layouts/payment-method/payment-method.vue @@ -586,11 +586,6 @@ export default { } else { return piaExperience === "PIA Optional" || piaExperience === "PIA Required"; } - // if (this.totalAmountDue > 0.00) { - - // } - - //return false; }, paymentMethod() { if (this.isPiaDisabled) { From 1a1575ad4313f0f5dd20edce20dc25110f6161cd Mon Sep 17 00:00:00 2001 From: Leah Schumann Date: Fri, 28 Jun 2024 08:24:35 -0400 Subject: [PATCH 3/6] Prettified --- src/layouts/payment-method/payment-method.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/layouts/payment-method/payment-method.vue b/src/layouts/payment-method/payment-method.vue index b351c0d23..bb12cf8ef 100644 --- a/src/layouts/payment-method/payment-method.vue +++ b/src/layouts/payment-method/payment-method.vue @@ -47,12 +47,12 @@ Date: Mon, 1 Jul 2024 06:22:34 -0400 Subject: [PATCH 4/6] Temp to merge develop --- src/layouts/payment-method/payment-method.spec.js | 8 ++++++++ src/layouts/payment-method/payment-method.vue | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/layouts/payment-method/payment-method.spec.js b/src/layouts/payment-method/payment-method.spec.js index ab0a0df99..16b64a58b 100644 --- a/src/layouts/payment-method/payment-method.spec.js +++ b/src/layouts/payment-method/payment-method.spec.js @@ -51,6 +51,14 @@ function setupMocks() { order: { payment: { isPia: false, + insuranceCoverage: { + isVerified: true, + }, + }, + policy: { + currentDeductible: 123, + isNoComp: false, + isItac: false, }, }, policy: { diff --git a/src/layouts/payment-method/payment-method.vue b/src/layouts/payment-method/payment-method.vue index bb12cf8ef..b1563b424 100644 --- a/src/layouts/payment-method/payment-method.vue +++ b/src/layouts/payment-method/payment-method.vue @@ -581,7 +581,7 @@ export default { var isEnabled = false; if (this.isInsurance) { - return piaInsurance === "true"; + return piaInsurance === "true" && this.currentDeductible > 0; } else { return piaExperience === "PIA Optional" || piaExperience === "PIA Required"; } From fc9fd857efe59615ebb9560f710262a4a03eae61 Mon Sep 17 00:00:00 2001 From: Leah Schumann Date: Tue, 2 Jul 2024 06:15:32 -0400 Subject: [PATCH 5/6] Restored check for current deductable for ins PIA availability --- src/layouts/payment-method/payment-method.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/layouts/payment-method/payment-method.vue b/src/layouts/payment-method/payment-method.vue index b1563b424..89867b5da 100644 --- a/src/layouts/payment-method/payment-method.vue +++ b/src/layouts/payment-method/payment-method.vue @@ -47,12 +47,12 @@ 0; } else { @@ -587,7 +586,7 @@ export default { } }, paymentMethod() { - if (this.isPiaDisabled) { + if (!this.isPiaEnabled) { return paymentMethods.LATER; } From d5b600a8c0136c126a68cc4d8713a045c7fabc23 Mon Sep 17 00:00:00 2001 From: Leah Schumann Date: Tue, 2 Jul 2024 06:17:52 -0400 Subject: [PATCH 6/6] Prettified --- src/layouts/payment-method/payment-method.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/payment-method/payment-method.vue b/src/layouts/payment-method/payment-method.vue index 89867b5da..d423525ab 100644 --- a/src/layouts/payment-method/payment-method.vue +++ b/src/layouts/payment-method/payment-method.vue @@ -578,7 +578,7 @@ export default { isPiaEnabled() { const piaExperience = this.getSettingValue(experimentSettings.PIA_EXPERIENCE); const piaInsurance = this.getSettingValue(experimentSettings.PIA_INSURANCE); - + if (this.isInsurance) { return piaInsurance === "true" && this.currentDeductible > 0; } else {