From 02e76fa9158b60f6968e1322b9f307edfa6504ef Mon Sep 17 00:00:00 2001 From: kerem-acer Date: Fri, 23 Oct 2026 03:03:44 +0300 Subject: [PATCH] fix: rename FAIL_INSURER_DENIED to FAIL_INSURANCE_COMPANY_DENIED Core renames the case sub-state: in InsurUp "insurer" is the customer who buys the policy, and this sub-state is the insurance company declining. The policy received event's doc said "insurer" for the insurance company too. Co-Authored-By: Claude Opus 5.5 --- src/enums.ts | 2 +- src/events.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/enums.ts b/src/enums.ts index e12cfdb..ae62553 100644 --- a/src/enums.ts +++ b/src/enums.ts @@ -379,7 +379,7 @@ export type CaseSubState = | 'FAIL_REFERRED_TO_LEGAL' | 'FAIL_CUSTOMER_UNSATISFIED' | 'FAIL_MISSING_DOCUMENTS' - | 'FAIL_INSURER_DENIED' + | 'FAIL_INSURANCE_COMPANY_DENIED' | 'FAIL_CONDITIONS_NOT_MET' | 'OPEN_INITIAL' | 'OPEN_COLLECTING_INFORMATION' diff --git a/src/events.ts b/src/events.ts index d9a9249..b96ac7b 100644 --- a/src/events.ts +++ b/src/events.ts @@ -71,7 +71,7 @@ export interface EventPayloads { startDate: string; endDate: string; }; - /** A policy was received from the insurer. */ + /** A policy was received from the insurance company. */ onPolicyReceived: { success: boolean; errorMessage: string | null;