Skip to content

Implement BO Tarif & COM TarifpreispositionProOrt & COM TarifpreisstaffelProOrt#348

Merged
hf-kklein merged 23 commits intomasterfrom
tarif
Jan 23, 2022
Merged

Implement BO Tarif & COM TarifpreispositionProOrt & COM TarifpreisstaffelProOrt#348
hf-kklein merged 23 commits intomasterfrom
tarif

Conversation

@hf-kklein
Copy link
Copy Markdown
Contributor

@hf-kklein hf-kklein commented Jan 22, 2022

fixes #211
review #342 first

@hf-kklein hf-kklein self-assigned this Jan 22, 2022
@hf-kklein hf-kklein requested a review from a team January 22, 2022 09:31
@hf-kklein hf-kklein linked an issue Jan 22, 2022 that may be closed by this pull request
Base automatically changed from bo-regionaltarif to master January 23, 2022 08:33
@hf-kklein hf-kklein marked this pull request as ready for review January 23, 2022 10:10
)
# todo: fix inconsistency with regionaltarif https://github.com/Hochfrequenz/BO4E-python/issues/346
#: Die Bedingungen und Einschränkungen unter denen ein Tarif angewendet werden kann
tarifeinschraenkung: Optional[Tarifeinschraenkung] = attr.ib(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
tarifeinschraenkung: Optional[Tarifeinschraenkung] = attr.ib(
tarifeinschraenkungen: Optional[Tarifeinschraenkung] = attr.ib(

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Das ist absicht. Da ist die bestehende Doku glaube ich Quatsch. Wir sollten nichts als Plural benennen, was kein Plural ist.

# optional attributes
tarif_auf_abschlaege = fields.List(fields.Nested(AufAbschlagRegionalSchema), allow_none=True)
preisgarantie = fields.Nested(PreisgarantieSchema, allow_none=True)
tarifeinschraenkung = fields.Nested(TarifeinschraenkungSchema, allow_none=True)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
tarifeinschraenkung = fields.Nested(TarifeinschraenkungSchema, allow_none=True)
tarifeinschraenkungen = fields.Nested(TarifeinschraenkungSchema, allow_none=True)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tarif_auf_abschlaege=[example_aufabschlagregional],
tarifpreise=[example_tarifpreispositionproort],
preisgarantie=example_preisgarantie,
tarifeinschraenkung=example_tarifeinschraenkung,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
tarifeinschraenkung=example_tarifeinschraenkung,
tarifeinschraenkungen=example_tarifeinschraenkung,

hf-kklein and others added 11 commits January 23, 2022 17:27
Co-authored-by: Franziska <73471037+hf-fvesely@users.noreply.github.com>
Co-authored-by: Franziska <73471037+hf-fvesely@users.noreply.github.com>
Co-authored-by: Franziska <73471037+hf-fvesely@users.noreply.github.com>
Co-authored-by: Franziska <73471037+hf-fvesely@users.noreply.github.com>
Co-authored-by: Franziska <73471037+hf-fvesely@users.noreply.github.com>
Co-authored-by: Franziska <73471037+hf-fvesely@users.noreply.github.com>
Co-authored-by: Franziska <73471037+hf-fvesely@users.noreply.github.com>
Co-authored-by: Franziska <73471037+hf-fvesely@users.noreply.github.com>
Co-authored-by: Franziska <73471037+hf-fvesely@users.noreply.github.com>
Co-authored-by: Franziska <73471037+hf-fvesely@users.noreply.github.com>
Co-authored-by: Franziska <73471037+hf-fvesely@users.noreply.github.com>
@hf-kklein
Copy link
Copy Markdown
Contributor Author

oh man @hf-fvesely : wie lange hast du dich abgequält diese 20(?) änderungen in einzelne suggestions zu verpacken 😀
aber respekt, dass am ende doch alles kompiliert, die tests laufen und sogar der formatter passt 💪

nächstes mal aber ruhig einfach drüber commiten oder einfach einen eigenen PR aufmachen ;)

@hf-kklein hf-kklein merged commit 3ccef16 into master Jan 23, 2022
@hf-kklein hf-kklein deleted the tarif branch January 23, 2022 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement BO Tarif

4 participants