Merge pull request #3121 from Safelite/feature/CASH-1689
Feature/CASH 1689
This commit is contained in:
commit
1231fcbb11
5 changed files with 22 additions and 2 deletions
|
|
@ -23,6 +23,7 @@ const experimentSettings = {
|
||||||
INSURANCE_TAB_TO_DISPLAY_THRESHOLD_INTERNAL: "NextGen_InternalInsuranceTabDisplayThreshold",
|
INSURANCE_TAB_TO_DISPLAY_THRESHOLD_INTERNAL: "NextGen_InternalInsuranceTabDisplayThreshold",
|
||||||
INSURANCE_TAB_TO_DISPLAY_THRESHOLD_EXTERNAL: "NextGen_ExternalInsuranceTabDisplayThreshold",
|
INSURANCE_TAB_TO_DISPLAY_THRESHOLD_EXTERNAL: "NextGen_ExternalInsuranceTabDisplayThreshold",
|
||||||
DISPLAY_MSR: "DisplayMSR",
|
DISPLAY_MSR: "DisplayMSR",
|
||||||
|
ENABLE_MSR_SPLIT_PAY: "EnableMSRSplitPay",
|
||||||
DISPLAY_WAITLIST: "DisplayWaitlist2.0",
|
DISPLAY_WAITLIST: "DisplayWaitlist2.0",
|
||||||
WAITLIST_THRESHOLD_DAYS: "Waitlist_Threshold_Days",
|
WAITLIST_THRESHOLD_DAYS: "Waitlist_Threshold_Days",
|
||||||
PRICING_BY_DAY: "DisplayPricingByDay",
|
PRICING_BY_DAY: "DisplayPricingByDay",
|
||||||
|
|
|
||||||
|
|
@ -981,6 +981,7 @@ export default {
|
||||||
let cartItem = null;
|
let cartItem = null;
|
||||||
const msrFeeLineItem = this.getMsrFeeLineItem;
|
const msrFeeLineItem = this.getMsrFeeLineItem;
|
||||||
const shouldCreateMsrFeeCartItem =
|
const shouldCreateMsrFeeCartItem =
|
||||||
|
this.isMSRFeeApplicable &&
|
||||||
this.isInsurance &&
|
this.isInsurance &&
|
||||||
!this.IsMSRFeeCoveredByInsurance &&
|
!this.IsMSRFeeCoveredByInsurance &&
|
||||||
msrFeeLineItem &&
|
msrFeeLineItem &&
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@
|
||||||
:insuranceDeductible="currentDeductible"
|
:insuranceDeductible="currentDeductible"
|
||||||
:insuranceCompanyName="insuranceCompanyName"
|
:insuranceCompanyName="insuranceCompanyName"
|
||||||
:showInsuranceCoverageAs="showInsuranceCoverageAs"
|
:showInsuranceCoverageAs="showInsuranceCoverageAs"
|
||||||
|
:isMSRFeeApplicable="isMSRFeeApplicable"
|
||||||
:isItac="isItac"
|
:isItac="isItac"
|
||||||
:isNoComp="isNoComp"
|
:isNoComp="isNoComp"
|
||||||
:isCollapsible="false" />
|
:isCollapsible="false" />
|
||||||
|
|
@ -569,6 +570,9 @@ export default {
|
||||||
insuranceCompanyName() {
|
insuranceCompanyName() {
|
||||||
return this.$store.getters.policy.insuranceCompanyName;
|
return this.$store.getters.policy.insuranceCompanyName;
|
||||||
},
|
},
|
||||||
|
isMSRFeeApplicable() {
|
||||||
|
return this.$store.getters.order.isMSRFeeApplicable;
|
||||||
|
},
|
||||||
lineItems() {
|
lineItems() {
|
||||||
return deepClone(this.$store.getters.lineItems);
|
return deepClone(this.$store.getters.lineItems);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,7 @@
|
||||||
:insuranceDeductible="currentDeductible"
|
:insuranceDeductible="currentDeductible"
|
||||||
:insuranceCompanyName="insuranceCompanyName"
|
:insuranceCompanyName="insuranceCompanyName"
|
||||||
:showInsuranceCoverageAs="showInsuranceCoverageAs"
|
:showInsuranceCoverageAs="showInsuranceCoverageAs"
|
||||||
|
:isMSRFeeApplicable="isMSRFeeApplicable"
|
||||||
:isItac="isItac"
|
:isItac="isItac"
|
||||||
:isNoComp="isNoComp"
|
:isNoComp="isNoComp"
|
||||||
:isCollapsible="false" />
|
:isCollapsible="false" />
|
||||||
|
|
@ -411,6 +412,9 @@ export default {
|
||||||
insuranceCompanyName() {
|
insuranceCompanyName() {
|
||||||
return this.$store.getters.policy.insuranceCompanyName;
|
return this.$store.getters.policy.insuranceCompanyName;
|
||||||
},
|
},
|
||||||
|
isMSRFeeApplicable() {
|
||||||
|
return this.$store.getters.order.isMSRFeeApplicable;
|
||||||
|
},
|
||||||
isPaypal() {
|
isPaypal() {
|
||||||
if (this.paymentType == "pp") {
|
if (this.paymentType == "pp") {
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
|
|
@ -704,8 +704,11 @@ export default {
|
||||||
},
|
},
|
||||||
isMobileStaticRecalibrationApplicable() {
|
isMobileStaticRecalibrationApplicable() {
|
||||||
return (
|
return (
|
||||||
this.displayMSR &&
|
(this.displayMSR &&
|
||||||
this.mobileFeePart?.partNumber == partNumberStrings.MOBILE_STATIC_RECAL_FEE
|
this.mobileFeePart?.partNumber == partNumberStrings.MOBILE_STATIC_RECAL_FEE &&
|
||||||
|
this.enableMSRSplitPay) ||
|
||||||
|
this.isCashItacNoComp ||
|
||||||
|
this.mobileFeePart?.isInsurable
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
displayMSR() {
|
displayMSR() {
|
||||||
|
|
@ -715,6 +718,13 @@ export default {
|
||||||
?.toLowerCase() === "true"
|
?.toLowerCase() === "true"
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
enableMSRSplitPay() {
|
||||||
|
return (
|
||||||
|
experimentMixin.methods
|
||||||
|
.getSettingValue(experimentSettings.ENABLE_MSR_SPLIT_PAY)
|
||||||
|
?.toLowerCase() === "true"
|
||||||
|
);
|
||||||
|
},
|
||||||
isMSRFeeNotCoveredByInsurance() {
|
isMSRFeeNotCoveredByInsurance() {
|
||||||
return (
|
return (
|
||||||
this.isMobileSelected &&
|
this.isMobileSelected &&
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue