Skip to content

Add in-app car purchase flow and cross-sell URL routing (RND-1965)#2943

Draft
hugokallstrom wants to merge 1 commit into
eng/extract-purchase-commonfrom
feat/in-app-car-purchase
Draft

Add in-app car purchase flow and cross-sell URL routing (RND-1965)#2943
hugokallstrom wants to merge 1 commit into
eng/extract-purchase-commonfrom
feat/in-app-car-purchase

Conversation

@hugokallstrom
Copy link
Copy Markdown
Contributor

Summary

  • Adds feature-purchase-car module: form, session/intent creation, offer submission, navigation graph, Koin DI
  • Cross-sell click handler in feature-insurances now parses the storeUrl and routes to the in-app flow when the URL matches a known product
  • The car form only collects fields not already on the member entity — SSN and email are fetched during session setup via CarMemberContactInfo and submitted server-side
  • Stacked on top of #2942, which is stacked on #2912

URL → product mapping

URL contains Routes to
car-insurance / bilforsakring in-app car (SE_CAR)
bostadsratt / home-insurance/homeowner in-app apartment (SE_APARTMENT_BRF)
hyresratt / home-insurance / hemforsakring in-app apartment (SE_APARTMENT_RENT)
anything else (e.g. pet-insurance) openUrl fallback (web flow)

Test plan

  • Tap car cross-sell in Insurances tab → in-app car form opens
  • Car form has registreringsnummer / miltal / adress / postnummer (no personnummer or e-post)
  • Tap Swedish & English home cross-sells → in-app apartment form opens
  • Tap pet (or other unknown) cross-sell → web browser opens
  • Complete car flow end-to-end: form → tier → summary → signing → success

🤖 Generated with Claude Code

Adds the car insurance purchase flow built on top of purchase-common.
Includes a new feature-purchase-car module with form, session/intent
creation, offer submission, navigation graph, and Koin DI.

Cross-sell routing in feature-insurances now inspects the storeUrl and
routes to the in-app flow when the URL matches a known product:
- car-insurance / bilforsakring -> SE_CAR (in-app car flow)
- bostadsratt / home-insurance/homeowner -> SE_APARTMENT_BRF (apartment)
- hyresratt / home-insurance / hemforsakring -> SE_APARTMENT_RENT
- anything else -> openUrl fallback (web flow)

The car form only collects fields not already known about the member.
SSN and email are fetched as part of session setup via a new
CarMemberContactInfo query and submitted server-side; they are no longer
displayed as form fields.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@hugokallstrom hugokallstrom changed the title Add in-app car purchase flow and cross-sell URL routing Add in-app car purchase flow and cross-sell URL routing (RND-1965) May 21, 2026
@notion-workspace
Copy link
Copy Markdown

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.

1 participant