CASH-1072: Offer PIA for $0 deductible with VAPS. Only show afterpay breakout with PIA

This commit is contained in:
Chris Redelinghuys 2025-10-03 08:54:45 -04:00
parent 8fff43c2bc
commit ac64aa0ed7

View file

@ -805,7 +805,10 @@ export default {
const piaInsurance = this.getSettingValue(experimentSettings.PIA_INSURANCE); const piaInsurance = this.getSettingValue(experimentSettings.PIA_INSURANCE);
if (this.isInsurance) { if (this.isInsurance) {
return piaInsurance === "true" && this.currentDeductible > 0; return (
piaInsurance === "true" &&
(this.currentDeductible > 0 || +this.totalAmountDue > 0)
);
} else { } else {
return piaExperience === "PIA Optional" || piaExperience === "PIA Required"; return piaExperience === "PIA Optional" || piaExperience === "PIA Required";
} }
@ -837,6 +840,7 @@ export default {
return ( return (
this.showInsuranceCoverageAs !== coverageStatus.PENDING && this.showInsuranceCoverageAs !== coverageStatus.PENDING &&
!this.isRecalPriceRemove && !this.isRecalPriceRemove &&
this.isPiaEnabled &&
this.hasSettingEqualTo(experimentSettings.DISPLAY_AFTERPAY_BREAKOUT_DISPLAY, "true") this.hasSettingEqualTo(experimentSettings.DISPLAY_AFTERPAY_BREAKOUT_DISPLAY, "true")
); );
}, },