feat: implement new costTypes

Grundpreis auf Zeit, sowie Privat Versicherung
This commit is contained in:
Marcel Arndt
2025-06-12 17:14:51 +02:00
parent 068fa9519c
commit 0fa97c53b1
12 changed files with 69 additions and 41 deletions
@@ -0,0 +1,8 @@
-- AlterEnum
ALTER TYPE "CostTypeVariant" ADD VALUE 'GRUNDPREIS_ZEIT';
-- AlterTable
ALTER TABLE "_AvicennaTenantToTariffGroup" ADD CONSTRAINT "_AvicennaTenantToTariffGroup_AB_pkey" PRIMARY KEY ("A", "B");
-- DropIndex
DROP INDEX "_AvicennaTenantToTariffGroup_AB_unique";
@@ -0,0 +1,2 @@
-- AlterEnum
ALTER TYPE "CostTypeVariant" ADD VALUE 'PRIVATVERSICHERUNG';
@@ -1,3 +1,3 @@
# Please do not edit this file manually
# It should be added in your version-control system (i.e. Git)
provider = "postgresql"
# It should be added in your version-control system (e.g., Git)
provider = "postgresql"
@@ -526,6 +526,8 @@ enum CostTypeVariant {
FAHRZEUGZUSCHLAG
TSWDIFFERENZIERUNG
GRUNDPREIS
GRUNDPREIS_ZEIT
PRIVATVERSICHERUNG
}
model AvicennaTenant {
@@ -192,19 +192,19 @@ export const BTW_AOK_TARIFFS = [
costTypes: [
{
description: 'Grundpauschale je Fahrt',
variant: CostTypeVariant.NACHTZUSCHLAG,
variant: CostTypeVariant.GRUNDPREIS_ZEIT,
costAmount: 4250,
timeRange: '00:00-14:29',
},
{
description: 'Grundpauschale je Fahrt',
variant: CostTypeVariant.NACHTZUSCHLAG,
variant: CostTypeVariant.GRUNDPREIS_ZEIT,
costAmount: 4250,
timeRange: '18:01-23:59',
},
{
description: 'Grundpauschale je Fahrt (14:30-18:00)',
variant: CostTypeVariant.NACHTZUSCHLAG,
variant: CostTypeVariant.GRUNDPREIS_ZEIT,
costAmount: 5000,
timeRange: '14:30-18:00',
},
@@ -239,19 +239,19 @@ export const BTW_AOK_TARIFFS = [
costTypes: [
{
description: 'Grundpauschale je Fahrt',
variant: CostTypeVariant.NACHTZUSCHLAG,
variant: CostTypeVariant.GRUNDPREIS_ZEIT,
costAmount: 4500,
timeRange: '00:00-14:29',
},
{
description: 'Grundpauschale je Fahrt',
variant: CostTypeVariant.NACHTZUSCHLAG,
variant: CostTypeVariant.GRUNDPREIS_ZEIT,
costAmount: 4500,
timeRange: '18:01-23:59',
},
{
description: 'Grundpauschale je Fahrt (14:30-18:00)',
variant: CostTypeVariant.NACHTZUSCHLAG,
variant: CostTypeVariant.GRUNDPREIS_ZEIT,
costAmount: 5000,
timeRange: '14:30-18:00',
},
@@ -358,7 +358,7 @@ export const KTW_AOK_TARIFFS = [
costAmount: 940,
},
{
description: 'Desinfektionszuschlag pauschal',
description: 'Desinfektionpauschale',
variant: CostTypeVariant.GRUNDPREIS,
costAmount: 2610,
},
@@ -369,10 +369,10 @@ export const KTW_AOK_TARIFFS = [
kmInclusive: 18,
},
{
description: 'Nachtzuschlag 19:00-07:00',
description: 'Nachtzuschlag 18:30-06:30',
variant: CostTypeVariant.NACHTZUSCHLAG,
costAmount: 8875,
timeRange: '19:00-07:00',
timeRange: '18:30-06:30',
},
{
description: 'Wochenendzuschlag',
@@ -77,13 +77,13 @@ export const KTW_PRIVAT_TARIFFS = [
},
{
description: 'QMS Zuschlag',
variant: CostTypeVariant.GRUNDPREIS,
variant: CostTypeVariant.PRIVATVERSICHERUNG,
costAmount: 3300,
},
{
description: 'Hygienemaßnahmen',
variant: CostTypeVariant.GRUNDPREIS,
costAmount: 1500,
variant: CostTypeVariant.PRIVATVERSICHERUNG,
costAmount: 2000,
},
{
description: 'ab dem 16. km',
@@ -185,19 +185,19 @@ export const TSW_AOK_TARIFFS = [
costTypes: [
{
description: 'Grundpauschale je Fahrt',
variant: CostTypeVariant.NACHTZUSCHLAG,
variant: CostTypeVariant.GRUNDPREIS_ZEIT,
costAmount: 6250,
timeRange: '00:00-14:29',
},
{
description: 'Grundpauschale je Fahrt',
variant: CostTypeVariant.NACHTZUSCHLAG,
variant: CostTypeVariant.GRUNDPREIS_ZEIT,
costAmount: 6250,
timeRange: '18:01-23:59',
},
{
description: 'Nachmittagspauschale 14:30-18:00',
variant: CostTypeVariant.NACHTZUSCHLAG,
variant: CostTypeVariant.GRUNDPREIS_ZEIT,
costAmount: 7500,
timeRange: '14:30-18:00',
},
@@ -232,13 +232,19 @@ export const TSW_AOK_TARIFFS = [
costTypes: [
{
description: 'Grundpauschale je Fahrt',
variant: CostTypeVariant.NACHTZUSCHLAG,
variant: CostTypeVariant.GRUNDPREIS_ZEIT,
costAmount: 6500,
timeRange: '00:00-14:29',
},
{
description: 'Nachmittagspauschale 14:30-18:00',
variant: CostTypeVariant.GRUNDPREIS_ZEIT,
costAmount: 7500,
timeRange: '14:30-18:00',
},
{
description: 'Grundpauschale je Fahrt',
variant: CostTypeVariant.NACHTZUSCHLAG,
variant: CostTypeVariant.GRUNDPREIS_ZEIT,
costAmount: 6500,
timeRange: '18:01-23:59',
},
@@ -248,12 +254,6 @@ export const TSW_AOK_TARIFFS = [
costAmount: 200,
kmInclusive: 20,
},
{
description: 'Nachmittagszuschlag 14:30-18:00',
variant: CostTypeVariant.NACHTZUSCHLAG,
costAmount: 7500,
timeRange: '14:30-18:00',
},
{
description: 'Nachtzuschlag 18:00-07:30',
variant: CostTypeVariant.NACHTZUSCHLAG,
@@ -77,13 +77,14 @@ export const TSW_DAK_VDEK_TARIFFS = [
},
{
description: 'Fallmanagementzuschlag',
variant: CostTypeVariant.GRUNDPREIS,
variant: CostTypeVariant.NACHTZUSCHLAG,
costAmount: 750,
timeRange: '14:30-18:00',
},
{
description: 'Morgenzuschlag 05:00-07:00',
variant: CostTypeVariant.NACHTZUSCHLAG,
costAmount: 450,
costAmount: 445,
timeRange: '05:00-07:00',
},
{