From 44be881050719a4a104776db44b349ba74bc4c07 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Mon, 11 Jul 2016 15:17:19 -0400 Subject: [PATCH] Initial insurance package This will evolve as needed and is currently very primitive. --- core/insurance.xml | 133 +++++++++++++++++++++++++++++++++++ core/test/core/insurance.xml | 132 ++++++++++++++++++++++++++++++++++ core/test/core/suite.xml | 1 + 3 files changed, 266 insertions(+) create mode 100644 core/insurance.xml create mode 100644 core/test/core/insurance.xml diff --git a/core/insurance.xml b/core/insurance.xml new file mode 100644 index 00000000..83a5da05 --- /dev/null +++ b/core/insurance.xml @@ -0,0 +1,133 @@ + + + + + + + + + These are primitive abstractions for insurance that will be + improved upon over time. + + Some notable TODOs: + + \begin{enumerate} + \item Enforce naming convention; + \item Support scalar results; + \item Fail on zero premium unless explicitly stated; + \item Fail on negative premium (use a credit template); + \item Rounding direction (currently only nearest); and + \item Credit, surcharge, and factor templates. + \end{enumerate} + + \todo{Template to abstract these {\tt rate-each} generation + templates.} + + + + + + + + diff --git a/core/test/core/insurance.xml b/core/test/core/insurance.xml new file mode 100644 index 00000000..386a6aba --- /dev/null +++ b/core/test/core/insurance.xml @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/core/test/core/suite.xml b/core/test/core/suite.xml index 6e5d3c00..2c59274a 100644 --- a/core/test/core/suite.xml +++ b/core/test/core/suite.xml @@ -26,6 +26,7 @@ +