From e6ae82780aeac09a0c1ba30346a55b2476c8db67 Mon Sep 17 00:00:00 2001 From: brydon1 Date: Fri, 9 Jun 2023 09:55:04 -0400 Subject: [PATCH] Partial register claim method added to store --- src/store/index.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/store/index.js b/src/store/index.js index 7b7d4dd0..ca36e9a3 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -347,6 +347,28 @@ export const useMainStore = defineStore({ }; } }, + // TODO determine what inputs are required to get a response + registerClaim() { + try { + const response = globalMethods.callHttpClient({ + method: endpoints.RegisterClaim.method, + endpoint: endpoints.RegisterClaim.url, + payload: { + // accountNumber: accountNumber, + // policyNumber: policyNumber, + // dateOfLoss: dateOfLoss, + // zipCode: zipCode + } + }); + return response; + } catch (responseError) { + return { + error: { + status: responseError.status + } + }; + } + }, async lookupVinByPlate(licensePlate, licenseState) { try { const response = await globalMethods.callHttpClient({