|
| 1 | +# {CC}.{RegulationName} — Provider Stubs |
| 2 | + |
| 3 | +> Version 1.0 · {Month} {YYYY} |
| 4 | +
|
| 5 | +--- |
| 6 | + |
| 7 | +## What Is a Stub? |
| 8 | + |
| 9 | +A **stub** is a WageType in the base regulation that returns `0` (or a safe default) |
| 10 | +by design. It signals to providers and employers: *"this business rule is |
| 11 | +yours to implement — we give you the correct number, collector, and execution |
| 12 | +position; you supply the logic."* |
| 13 | + |
| 14 | +`{CC}.{RegulationName}` uses stubs for: |
| 15 | + |
| 16 | +1. **Employer-specific rules** — calculations that depend on company agreements |
| 17 | + (pension scheme, CAO, HR policy) that cannot be standardized in a national base regulation. |
| 18 | +2. **Approximations** — working implementations that cover the common case, but |
| 19 | + a more exact calculation requires employer data. |
| 20 | + |
| 21 | +--- |
| 22 | + |
| 23 | +## How to Override a Stub |
| 24 | + |
| 25 | +PE supports **regulation layering**: a provider or employer regulation can override |
| 26 | +any WageType from the base regulation without modifying it. |
| 27 | + |
| 28 | +**Minimal override structure:** |
| 29 | + |
| 30 | +```json |
| 31 | +{ |
| 32 | + "regulations": [ |
| 33 | + { |
| 34 | + "name": "Employer.MyCompany.{CC}", |
| 35 | + "baseRegulations": [ |
| 36 | + "{CC}.{RegulationName}", |
| 37 | + "{CC}.{RegulationName}.Data.{Source1}.{YYYY}" |
| 38 | + ], |
| 39 | + "cases": [...], |
| 40 | + "wageTypes": [ |
| 41 | + { |
| 42 | + "wageTypeNumber": {nr}, |
| 43 | + "name": "{StubWageTypeName}", |
| 44 | + "valueExpression": "{expression or valueActions reference}" |
| 45 | + } |
| 46 | + ] |
| 47 | + } |
| 48 | + ] |
| 49 | +} |
| 50 | +``` |
| 51 | + |
| 52 | +--- |
| 53 | + |
| 54 | +## Stub Overview |
| 55 | + |
| 56 | +| WT | Name | Default | Override required? | Notes | |
| 57 | +|:---:|:---|:---:|:---:|:---| |
| 58 | +| {nr} | {StubName1} | 0 | Optional | {Short description} | |
| 59 | +| {nr} | {StubName2} | 0 | **Required for {scenario}** | {Short description} | |
| 60 | + |
| 61 | +**Approximations:** |
| 62 | + |
| 63 | +| WT | Name | Approximation | Override for | |
| 64 | +|:---:|:---|:---|:---| |
| 65 | +| {nr} | {ApproxName} | {What the base regulation does} | {When to override for precision} | |
| 66 | + |
| 67 | +--- |
| 68 | + |
| 69 | +## Stub Details |
| 70 | + |
| 71 | +### WT {nr} — {StubName1} |
| 72 | + |
| 73 | +**Default:** `0` (no `valueActions`). |
| 74 | + |
| 75 | +**Override when:** {Describe the business scenario that requires implementation.} |
| 76 | + |
| 77 | +**Implementation notes:** |
| 78 | +- {Step 1} |
| 79 | +- {Step 2} |
| 80 | + |
| 81 | +**Feeds:** `{CC}.{Collector}` ✓ |
| 82 | + |
| 83 | +**Source:** {Statutory reference — law, article, authority publication.} |
| 84 | + |
| 85 | +--- |
| 86 | + |
| 87 | +### WT {nr} — {StubName2} ⚠️ {e.g. FiscaalLoon adjustment required} |
| 88 | + |
| 89 | +**Default:** `0` (no `valueActions`). |
| 90 | + |
| 91 | +**Override required when:** {Describe when this stub must be implemented.} |
| 92 | + |
| 93 | +**Implementation steps:** |
| 94 | +1. {Step 1} |
| 95 | +2. {Step 2} |
| 96 | + |
| 97 | +**Feeds:** `{CC}.{Collector}` ✓ |
| 98 | + |
| 99 | +**Source:** {Statutory reference.} |
| 100 | + |
| 101 | +--- |
| 102 | + |
| 103 | +## Approximation Details |
| 104 | + |
| 105 | +### WT {nr} — {ApproxName} |
| 106 | + |
| 107 | +**Base approximation:** {What the regulation does by default.} |
| 108 | + |
| 109 | +**Limitation:** {What the approximation misses or where it diverges from exact statutory calculation.} |
| 110 | + |
| 111 | +**Override when:** {Describe when the employer needs an exact calculation.} |
| 112 | + |
| 113 | +--- |
| 114 | + |
| 115 | +*Version 1.0 · {Month} {YYYY}* |
0 commit comments