fix settings template
This commit is contained in:
@@ -3,13 +3,12 @@ from pathlib import Path
|
|||||||
from faker import Faker
|
from faker import Faker
|
||||||
|
|
||||||
from src.constants import Currency
|
from src.constants import Currency
|
||||||
from src.ingest.b4w import ingest_b4w, reader_b4w
|
|
||||||
from src.ingest.comdirect import reader_comdirect
|
|
||||||
from src.models import (
|
from src.models import (
|
||||||
ComdirectCreditCard,
|
ComdirectCreditCard,
|
||||||
ComdirectDepot,
|
ComdirectDepot,
|
||||||
ComdirectGiro,
|
ComdirectGiro,
|
||||||
)
|
)
|
||||||
|
from src.models.b4w import B4wExport
|
||||||
from src.models.settings import Account, Source
|
from src.models.settings import Account, Source
|
||||||
|
|
||||||
fake = Faker()
|
fake = Faker()
|
||||||
@@ -18,11 +17,10 @@ BANK_ACCOUNTS = {
|
|||||||
"b4w": Source(
|
"b4w": Source(
|
||||||
name="b4w",
|
name="b4w",
|
||||||
source_path=Path(""),
|
source_path=Path(""),
|
||||||
reader_function=reader_b4w,
|
|
||||||
accounts=[
|
accounts=[
|
||||||
Account(
|
Account(
|
||||||
name="b4w",
|
name="b4w",
|
||||||
ingestion_function=ingest_b4w,
|
model=B4wExport,
|
||||||
iban=fake.iban(),
|
iban=fake.iban(),
|
||||||
currency=Currency.EUR,
|
currency=Currency.EUR,
|
||||||
)
|
)
|
||||||
@@ -31,29 +29,28 @@ BANK_ACCOUNTS = {
|
|||||||
"comdirect": Source(
|
"comdirect": Source(
|
||||||
name="comdirect",
|
name="comdirect",
|
||||||
source_path=Path(""),
|
source_path=Path(""),
|
||||||
reader_function=reader_comdirect,
|
|
||||||
accounts=[
|
accounts=[
|
||||||
Account(
|
Account(
|
||||||
name="Girokonto",
|
name="Girokonto",
|
||||||
ingestion_function=lambda x: ComdirectGiro.model_validate(x),
|
model=ComdirectGiro,
|
||||||
iban=fake.iban(),
|
iban=fake.iban(),
|
||||||
currency=Currency.EUR,
|
currency=Currency.EUR,
|
||||||
),
|
),
|
||||||
Account(
|
Account(
|
||||||
name="Visa-Karte (Kreditkarte)",
|
name="Visa-Karte (Kreditkarte)",
|
||||||
ingestion_function=lambda x: ComdirectCreditCard.model_validate(x),
|
model=ComdirectCreditCard,
|
||||||
iban=fake.iban(),
|
iban=fake.iban(),
|
||||||
currency=Currency.EUR,
|
currency=Currency.EUR,
|
||||||
),
|
),
|
||||||
Account(
|
Account(
|
||||||
name="Tagesgeld PLUS-Konto",
|
name="Tagesgeld PLUS-Konto",
|
||||||
ingestion_function=lambda x: ComdirectGiro.model_validate(x),
|
model=ComdirectGiro,
|
||||||
iban=fake.iban(),
|
iban=fake.iban(),
|
||||||
currency=Currency.EUR,
|
currency=Currency.EUR,
|
||||||
),
|
),
|
||||||
Account(
|
Account(
|
||||||
name="Depot",
|
name="Depot",
|
||||||
ingestion_function=lambda x: ComdirectDepot.model_validate(x),
|
model=ComdirectDepot,
|
||||||
iban=fake.iban(),
|
iban=fake.iban(),
|
||||||
currency=Currency.EUR,
|
currency=Currency.EUR,
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user