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() { isVerified() {
return useMainStore().order.payment.insuranceCoverage.isVerified; return useMainStore().order.payment.insuranceCoverage.isVerified;
}, },
carrierPhoneNumber() {
const accountInfo = useMainStore().getClientAccountInfo();
const { phoneNumber } = accountInfo;
return phoneNumber;
},
carrierName() { carrierName() {
return this.mainStore.issConfig.clientName; return this.mainStore.issConfig.clientName;
}, },
carrierUrl() { carrierUrl() {
return this.mainStore.issConfig.successReturnURL; return this.mainStore.issConfig.successReturnURL;
},
carrierPhoneNumber() {
return this.toDisplayPhoneNumber(useMainStore().order.carrierPhoneNumber);
} }
}, },
mounted() { mounted() {
if (this.carrierUrl) { if (this.carrierUrl) {
this.$refs.siteFooter.updateButtonText(`Go back to ${this.carrierName}`); this.$refs.siteFooter.updateButtonText(`Go back to ${this.carrierName}`);
} }
useMainStore().getCarrierAccountInfo();
}, },
methods: methods:
{ {

View file

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