47 lines
1.1 KiB
Python
47 lines
1.1 KiB
Python
from dataclasses import dataclass, field
|
|
from datetime import date
|
|
from typing import List, Optional, Dict, Any
|
|
|
|
@dataclass
|
|
class CostItem:
|
|
name: str
|
|
category: str
|
|
total_amount: float
|
|
allocation_key: str
|
|
tenant_ratio: float
|
|
tenant_claimed: float
|
|
|
|
@dataclass
|
|
class AuditViolation:
|
|
item_name: str
|
|
violation_type: str
|
|
overcharge_amount: float
|
|
legal_basis: str
|
|
bgh_citation: Optional[str]
|
|
explanation: str
|
|
|
|
@dataclass
|
|
class LeaseContext:
|
|
tenant_name: str = "Marisa & Marc Mintel"
|
|
landlord_name: str = "Thorsten Krämer"
|
|
rental_object: str = "Wohnung 1. OG, Georg-Meistermann-Str. 7, 54586 Schüller"
|
|
start_date: str = "2024-01-01"
|
|
end_date: str = "2026-04-01"
|
|
base_rent_monthly: float = 400.0
|
|
garage_rent_monthly: float = 25.0
|
|
advance_operating_costs_monthly: float = 0.0
|
|
separate_heating_agreement: bool = True
|
|
units_in_building: int = 2
|
|
|
|
@dataclass
|
|
class BillPeriod:
|
|
year: int
|
|
period_start: str
|
|
period_end: str
|
|
bill_date: str
|
|
claimed_total: float
|
|
items: List[CostItem]
|
|
advance_payments_credited: float = 0.0
|
|
is_paid: bool = False
|
|
amount_paid: float = 0.0
|