Dry-Run Wage Type Computation
Checks a candidate computation for the type as a PUT dated valid_from would be, explains it, and runs it against context when one is sent. Nothing is written; validation and execution failures come back in errors.
Authorizations
Get token from Auth0 and paste it here
Body
A candidate computation for the type, checked as a write dated valid_from
would be, and run against context when one is sent.
- FixedSpec
- PercentOfSpec
- PercentOfParamSpec
- LookupParamSpec
- WageTypeRefSpec
- TieredSpec
- CappedSpec
- ConditionalSpec
- SumSpec
- SubtractSpec
- MultiplySpec
- DivideSpec
- MinSpec
- MaxSpec
- RoundSpec
The date the candidate would take effect
Codes whose amounts the computation reads
Decimal places the result is rounded to; null leaves rounding to the computation itself
0 <= x <= 6The eight rounding modes from Python's decimal module.
A closed mathematical set: every value maps 1:1 to a decimal.ROUND_*
constant, exposed via :attr:decimal_mode. Exposing all eight once keeps
the set stable — a country needing e.g. HALF_DOWN never forces a
library release. (Nearest-multiple rounding — Swiss 0.05, Swedish öre — is
not a decimal mode and needs a richer Round, not a new member.)
HALF_UP, HALF_DOWN, HALF_EVEN, UP, DOWN, CEILING, FLOOR, ZERO_FIVE_UP The mock payrun a dry run executes against.