generated from Hochfrequenz/tmdsclient.py
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Add method to get a list of Ermittlungsauftraege with limit&offset (#3
- Loading branch information
Showing
10 changed files
with
243 additions
and
711 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,6 @@ openend | |
adresse | ||
objekt | ||
oder | ||
prozess | ||
autor | ||
titel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
""" | ||
models for Ermittlungsauftrag/Investigation Order | ||
""" | ||
|
||
from typing import Literal | ||
from uuid import UUID | ||
|
||
from pydantic import AwareDatetime, BaseModel, ConfigDict, Field, RootModel | ||
|
||
from bssclient.models.prozess import Prozess | ||
|
||
|
||
class Notiz(BaseModel): | ||
""" | ||
Notiz am Ermittlungsauftrag | ||
""" | ||
|
||
autor: str | ||
zeitpunkt: AwareDatetime | None = None | ||
inhalt: str | ||
timestamp: AwareDatetime | ||
guid: UUID | ||
|
||
|
||
class Ermittlungsauftrag(BaseModel): | ||
""" | ||
an investigation order | ||
""" | ||
|
||
model_config = ConfigDict(extra="allow", populate_by_name=True) | ||
id: UUID | ||
flat_id: str = Field(alias="flatId") | ||
""" | ||
the external ID of the respective Wohneinheit | ||
""" | ||
marktloaktion_id: str = Field(alias="marktlokationId") | ||
""" | ||
malo id | ||
""" | ||
messlokation_id: str = Field(alias="messlokationId") | ||
""" | ||
melo id | ||
""" | ||
zaehlernummer: str = Field(alias="zaehlernummer") | ||
vertrag_id: UUID = Field(alias="vertragId") | ||
""" | ||
ID of the respective netzvertrag | ||
""" | ||
lieferbeginn: AwareDatetime | ||
lieferende: AwareDatetime | None | ||
notizen: list[Notiz] | ||
kategorie: Literal["Ermittlungsauftrag"] | ||
prozess: Prozess | ||
|
||
|
||
class _ListOfErmittlungsauftraege(RootModel[list[Ermittlungsauftrag]]): | ||
pass |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
""" | ||
models for BSS Prozess | ||
""" | ||
|
||
from uuid import UUID | ||
|
||
from pydantic import BaseModel, Field | ||
|
||
|
||
class Prozess(BaseModel): | ||
""" | ||
a bss prozess | ||
""" | ||
|
||
id: UUID | ||
status: str | ||
status_text: str = Field(alias="statusText") | ||
typ: str | ||
ausloeser: str | ||
externe_id: str = Field(alias="externeId") | ||
marktlokation: str | ||
ide_referenz: str = Field(alias="ideReferenz") | ||
transaktionsgrund: str | ||
ausloeser_daten: str = Field(alias="ausloeserDaten") | ||
antwort_status: str = Field(alias="antwortStatus") | ||
einheit: str | ||
messlokation: str | ||
zaehlernummer: str |
Oops, something went wrong.