Skip to main content

Crate haima_insurance

Crate haima_insurance 

Source
Expand description

Agent insurance facilitation marketplace.

Re-exports the core marketplace logic from haima-core::marketplace and adds the higher-level orchestration layer with Autonomic integration.

§Architecture

Autonomic (trust scores) ──┐
                           ├──▶ Risk Engine ──▶ Pricing ──▶ Policy Issuance
Lago (event history) ──────┘                                    │
                                                                ▼
Claims ◀── Verification (Lago events) ◀── Claim Submission ◀── Agent
  │
  ▼
Pool Management ──▶ Payout ──▶ Agent

Modules§

claims
Claims submission, verification, and processing.
marketplace
Insurance marketplace — connects agents with insurance providers.
pool
Self-insurance pool management.
pricing
Premium calculation engine for agent insurance.
risk
Risk assessment engine powered by Autonomic trust scores and Lago event history.

Structs§

ClaimsHistory
Claims history summary used for risk assessment.
InsuranceDashboard
Insurance marketplace dashboard summary.

Functions§

assess_risk
Compute a risk assessment for an agent.
bind_policy
Bind a quote into an active policy.
calculate_premium
Calculate the premium for a coverage request.
contribute_to_pool
Process a contribution to the pool.
create_claim
Create a claim from a request and look up the associated policy.
create_pool
Create a new self-insurance pool.
default_pool_provider
Create the default self-insurance pool provider.
default_products
Create the default insurance product catalog.
generate_quote
Generate an insurance quote for an agent.
pool_payout
Process a payout from the pool for an approved claim.
pool_register_policy
Register a new policy against the pool.
verify_claim
Verify a claim against Lago event evidence.