Price provider¶
A component responsible for fetching, aggregating and computing prices and costs.
This component's only responsibility is to compute prices and costs
It is not currently responsible for modifying and storing prices.
What is the difference between prices & costs ?¶
Prices are the contractual amounts displayed in Alan offers. They may contain indefinite amounts: ranges based on conditions, amounts expressed as percentage of income, etc... Costs are the concrete and finite amounts: the result of applying prices to the context of a given member.
Example
The monthly price of a subscription for members between 25 and 50 years old is 70€ + 0.5% of their monhtly income. The monthly cost for member A who is 30 years old and earns 2000€ is 80€.
Intended use-cases and consumers¶
- For admins to preview insurance prices before registering to an Alan offer
- For members to preview insurance costs before registering/upgrading to an Alan offer
- Computing insurance premiums
Use-cases currently supported¶
TODO: extact feature list (discounts, nth child free, pricing as salary %, etc ...)
WIP
Active development, don't use this component without asking the owners first.
| Country | Insurance | Non-insurance use-cases (flex contracts, occ. health, etc...) |
|---|---|---|
| 🇫🇷 | ❌ | ❌ |
| 🇧🇪 | 🕣 | ❌ |
| 🇪🇸 | ❌ | ❌ |
| 🇨🇦 | ❌ | ❌ |
Legend: - 🕣 = In progress/Partial support - ❌ = Not supported
At the moment 🇧🇪 only has very simple price structures and therefore it represents the smallest possible scope of features. The component is shallow: it exposes types and interfaces that local components are responsible for implementing.