final changes

This commit is contained in:
Katie Kroell 2024-02-26 12:01:38 -05:00
parent 96c8206088
commit ca10097f40
2 changed files with 10 additions and 8 deletions

View file

@ -161,22 +161,21 @@ export default {
isVerified() {
return useMainStore().order.payment.insuranceCoverage.isVerified;
},
carrierPhoneNumber() {
const accountInfo = useMainStore().getClientAccountInfo();
const { phoneNumber } = accountInfo;
return phoneNumber;
},
carrierName() {
return this.mainStore.issConfig.clientName;
},
carrierUrl() {
return this.mainStore.issConfig.successReturnURL;
},
carrierPhoneNumber() {
return this.toDisplayPhoneNumber(useMainStore().order.carrierPhoneNumber);
}
},
mounted() {
if (this.carrierUrl) {
this.$refs.siteFooter.updateButtonText(`Go back to ${this.carrierName}`);
}
useMainStore().getCarrierAccountInfo();
},
methods:
{

View file

@ -175,7 +175,8 @@ const getDefaultState = () => ({
eon: null,
workOrderNumber: null,
originalDeductible: null,
currentDeductible: null
currentDeductible: null,
carrierPhoneNumber: null
},
applicationUser: {
experiments: [],
@ -925,11 +926,13 @@ export const useMainStore = defineStore({
});
},
getClientAccountInfo() {
return globalMethods.callHttpClient({
async getCarrierAccountInfo() {
const response = await globalMethods.callHttpClient({
method: endpoints.GetAccountInfo.method,
endpoint: endpoints.GetAccountInfo.url + this.issConfig.parentAccountNumber
});
this.order.carrierPhoneNumber = response.data.phoneNumber;
return response;
},
async getSupportingItems() {