Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ [#158] added rekeningnummer endpoint #161

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

bart-maykin
Copy link
Contributor

fixes #158

  • added rekeningnummer model
  • added rekeningnummer api endpoint
  • added inline rekeningnummer on partij endpoint
  • added inline rekeningnummer for partij in admin
  • added iban validator
  • added unittests

@codecov-commenter
Copy link

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (ce71bdd) 97.05% compared to head (42c6b6c) 97.09%.
Report is 10 commits behind head on master.

Files Patch % Lines
...ant/components/klantinteracties/models/partijen.py 25.00% 3 Missing ⚠️
...lant/components/klantinteracties/api/validators.py 66.66% 2 Missing ⚠️
...ponents/klantinteracties/models/rekeningnummers.py 93.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #161      +/-   ##
==========================================
+ Coverage   97.05%   97.09%   +0.03%     
==========================================
  Files         180      186       +6     
  Lines        7940     8253     +313     
==========================================
+ Hits         7706     8013     +307     
- Misses        234      240       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -597,6 +616,75 @@ def update(self, instance, validated_data):

validated_data["voorkeurs_digitaal_adres"] = voorkeurs_digitaal_adres

if "rekeningnummer_set" in validated_data:
Copy link
Member

Choose a reason for hiding this comment

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

Ik dacht dat we hier alleen lezen van hadden gemaakt zodat dit soort constructies niet meer hoefde. Maar ik ga er nog eenmaal geheel door heen.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Dit is voor de gemak van de gebruiker. Omdat we forceren dat de voorkeurs rekkeningnummer een gekoppelde rekkeningnummer is heb ik dit toegevoegd. Als we dit niet doen dan kan je niet in 1 keer een partij toevoegen met een voorkeurs rekkeningnummer.

@joeribekker joeribekker merged commit f707516 into master Feb 16, 2024
14 checks passed
@joeribekker joeribekker deleted the feature/158-rekening-nummer branch February 16, 2024 16:31
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.

Toevoegen van een aantal attributen
3 participants