Skip to content

updates to issue 475: build insurance claims management from drips#509

Merged
truthixify merged 2 commits intoDistinctCodes:mainfrom
winnpxl:drip-issue-soln-
Feb 23, 2026
Merged

updates to issue 475: build insurance claims management from drips#509
truthixify merged 2 commits intoDistinctCodes:mainfrom
winnpxl:drip-issue-soln-

Conversation

@winnpxl
Copy link
Contributor

@winnpxl winnpxl commented Feb 23, 2026

Here’s a much tighter PR description with just the essentials:


🛡️ #475 — Insurance Claims Management

Implements full lifecycle management for insurance claims filed against active policies.

What’s Included

InsuranceClaim

  • claim_id, policy_id, asset_id
  • claimant
  • claim_type (Damage, Theft, Loss, Liability)
  • amount
  • status (Submitted → UnderReview → Approved/Rejected → Disputed → Paid)
  • filed_at
  • approved_amount

Core Functions

  • file_insurance_claim

    • Requires claimant auth
    • Policy must be Active
    • Indexed by asset_id
  • mark_insurance_claim_under_review

    • Submitted → UnderReview (insurer only)
  • approve_insurance_claim

    • UnderReview → Approved
    • approved_amount <= coverage_amount
  • reject_insurance_claim

    • Submitted/UnderReview → Rejected
  • dispute_insurance_claim

    • Rejected → Disputed (claimant only)
  • pay_insurance_claim

    • Approved → Paid
  • Getters:

    • get_insurance_claim
    • get_asset_insurance_claims

Acceptance Criteria

  • ✔ Only Active policies can file claims
  • ✔ Strict status transition enforcement
  • ✔ Cannot approve or pay invalid states
  • ✔ Approved amount cannot exceed coverage

Closes #475

@vercel
Copy link

vercel bot commented Feb 23, 2026

@winnpxl is attempting to deploy a commit to the naijabuz's projects Team on Vercel.

A member of the Team first needs to authorize it.

…ed ClaimType::Damage to create_test_claim funciton
@truthixify truthixify merged commit 3211613 into DistinctCodes:main Feb 23, 2026
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Contract] Build Insurance Claims Management

2 participants