comdirect ingest: some code structurerefinement

This commit is contained in:
2026-09-11 10:16:51 +02:00
parent f50b28a387
commit d502e9ef0d
11 changed files with 83 additions and 40 deletions
+32
View File
@@ -0,0 +1,32 @@
from faker import Faker
from src.models import ComdirectCreditCard, ComdirectDepot, ComdirectGiro
from src.settings.constants import Currency
from src.settings.models import AccountInfo
fake = Faker()
BANK_ACCOUNTS = {
"comdirect": {
"Girokonto": AccountInfo(
iban=fake.iban(),
ingestion_function=lambda x: ComdirectGiro.model_validate(x),
currency=Currency.EUR,
),
"Visa-Karte (Kreditkarte)": AccountInfo(
iban=fake.iban(),
ingestion_function=lambda x: ComdirectCreditCard.model_validate(x),
currency=Currency.EUR,
),
"Tagesgeld PLUS-Konto": AccountInfo(
iban=fake.iban(),
ingestion_function=lambda x: ComdirectGiro.model_validate(x),
currency=Currency.EUR,
),
"Depot": AccountInfo(
iban=fake.iban(),
ingestion_function=lambda x: ComdirectDepot.model_validate(x),
currency=Currency.EUR,
),
}
}