Answer a named premium amount query¶
Any consumer needs a named premium figure (standard, discounted, estimated, NEAP, …)
| Field | Value |
|---|---|
| Operation ID | OP-005 |
| Trigger | Any consumer needs a named premium figure (standard, discounted, estimated, NEAP, …) |
| Inputs | An IPremiumAmountProvider (e.g. clsPremiumSet) and a PremiumAmountTypes value (26 members) |
| Outputs | A decimal premium amount |
| Primary components | PremiumAmountProviderExtensions.PremiumAmount(provider, type) (iPremiumAmountProvider.vb) |
| Entry point | Business\SAIF.Business.Policy.Premium\iPremiumAmountProvider.vb |
Steps¶
- Obtain the provider's sub-total list (OP-004).
- Select the sub-totals whose type matches the requested
PremiumAmountTypesvalue. - Sum
DifferenceAmountacross the matches — except for the NEAP type, whereBaseAmountis summed instead (BR-016). - For the
Discountamount, return Discounted amount − Standard amount (BR-017). - Return zero when no sub-totals match.*
Process flow¶
The following diagram visualizes this operation's control flow.
flowchart TD
Start([Trigger]) --> S1[Step 1]
S1 --> S2[Step 2]
S2 --> EndOk([Outputs returned])
Failure and edge-case behavior¶
- See the linked rules and SQL references above for validation failures, null-handling, and persistence contention behavior.
Related documentation¶
Sources¶
Business\SAIF.Business.Policy.Premium\iPremiumAmountProvider.vb