import { CostTypeVariant } from '@prisma/client';
import { endOfDay, startOfDay } from 'date-fns';

export const TSW_DAK_VDEK_TARIFFS = [
  {
    description: 'DAK + VDEK TSW',
    validFrom: startOfDay(new Date('2021-01-01')),
    validTo: endOfDay(new Date('2023-05-31')),
    costTypes: [
      {
        description: 'Grundpauschale je Fahrt',
        variant: CostTypeVariant.GRUNDPREIS,
        costAmount: 4922,
      },
      {
        description: 'ab dem 22. km',
        variant: CostTypeVariant.KILOMETERZUSCHLAG,
        costAmount: 159,
        kmInclusive: 21,
      },
    ],
  },
  {
    description: 'DAK + VDEK TSW',
    validFrom: startOfDay(new Date('2023-06-01')),
    validTo: endOfDay(new Date('2024-08-31')),
    costTypes: [
      {
        description: 'Grundpauschale je Fahrt',
        variant: CostTypeVariant.GRUNDPREIS,
        costAmount: 5880,
      },
      // {
      //   description: 'Grundpauschale je Fahrt (TSW 1)',
      //   variant: CostTypeVariant.TSWDIFFERENZIERUNG,
      //   costAmount: 4380,
      // },
      {
        description: 'ab dem 22. km',
        variant: CostTypeVariant.KILOMETERZUSCHLAG,
        costAmount: 166,
        kmInclusive: 21,
      },
      {
        description: 'Morgenzuschlag 06:00-07:00',
        variant: CostTypeVariant.NACHTZUSCHLAG,
        costAmount: 407,
        timeRange: '06:00-07:00',
      },
      {
        description: 'Abendzuschlag 18:30-20:00',
        variant: CostTypeVariant.NACHTZUSCHLAG,
        costAmount: 407,
        timeRange: '18:30-20:00',
      },
    ],
  },
  {
    description: 'DAK + VDEK TSW',
    validFrom: startOfDay(new Date('2024-09-01')),
    validTo: null,
    costTypes: [
      {
        description: 'Grundpauschale je Fahrt (TS 2)',
        variant: CostTypeVariant.TSWDIFFERENZIERUNG,
        costAmount: 6434,
      },
      {
        description: 'Grundpauschale je Fahrt (TS 1)',
        variant: CostTypeVariant.TSWDIFFERENZIERUNG,
        costAmount: 4793,
      },
      {
        description: 'Grundpauschale je Fahrt (TS+R)',
        variant: CostTypeVariant.TSWDIFFERENZIERUNG,
        costAmount: 5793,
      },
      {
        description: 'Fallmanagementzuschlag',
        variant: CostTypeVariant.NACHTZUSCHLAG,
        costAmount: 750,
        timeRange: '14:30-18:00',
      },
      {
        description: 'Morgenzuschlag 05:00-07:00',
        variant: CostTypeVariant.NACHTZUSCHLAG,
        costAmount: 445,
        timeRange: '05:00-07:00',
      },
      {
        description: 'Abendzuschlag 19:00-23:00',
        variant: CostTypeVariant.NACHTZUSCHLAG,
        costAmount: 750,
        timeRange: '19:00-23:00',
      },
      {
        description: 'ab dem 22. km',
        variant: CostTypeVariant.KILOMETERZUSCHLAG,
        costAmount: 180,
        kmInclusive: 21,
      },
    ],
  },
];
