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

18468 - EFT Credits / Model updates #1315

Merged
merged 9 commits into from
Nov 6, 2023
Merged

Conversation

ochiu
Copy link
Collaborator

@ochiu ochiu commented Nov 1, 2023

Issue #:
bcgov/entity#18468

Description of changes:

  • Remove old EFT and WIRE cfs invoice creation job calls
  • Add eft_credits table to track overpayment
  • Add eft_short_names versioning table
  • Implementation usage of eft_credits similar to existing cfs credits
  • Refactor to separate CFS and EFT credits + feature flag
  • EFT Credit test for applying credits fully, partially and remaining credit balance

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the sbc-pay license (Apache 2.0).

Copy link

codecov bot commented Nov 1, 2023

Codecov Report

Merging #1315 (7312047) into main (79924ce) will increase coverage by 0.57%.
Report is 37 commits behind head on main.
The diff coverage is 96.02%.

@@            Coverage Diff             @@
##             main    #1315      +/-   ##
==========================================
+ Coverage   91.45%   92.02%   +0.57%     
==========================================
  Files         186      180       -6     
  Lines       11319    11491     +172     
==========================================
+ Hits        10352    10575     +223     
+ Misses        967      916      -51     
Flag Coverage Δ
bcolapi ?
eventlistenerqueue 82.00% <100.00%> (+0.18%) ⬆️
payadmin ∅ <ø> (?)
paymentjobs 82.97% <93.54%> (+2.75%) ⬆️
paymentreconciliationsqueue 92.71% <97.50%> (+1.26%) ⬆️
reportapi ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
jobs/payment-jobs/tasks/cfs_create_invoice_task.py 71.03% <ø> (-1.42%) ⬇️
jobs/payment-jobs/tasks/common/dataclasses.py 100.00% <100.00%> (ø)
jobs/payment-jobs/tasks/common/enums.py 100.00% <ø> (ø)
...ent-jobs/tasks/direct_pay_automated_refund_task.py 85.71% <100.00%> (-0.34%) ⬇️
jobs/payment-jobs/tasks/distribution_task.py 97.75% <100.00%> (ø)
.../payment-jobs/tasks/statement_notification_task.py 79.74% <100.00%> (+47.92%) ⬆️
pay-api/src/pay_api/models/__init__.py 100.00% <100.00%> (ø)
pay-api/src/pay_api/models/eft_credit.py 100.00% <100.00%> (ø)
pay-api/src/pay_api/models/eft_file.py 100.00% <100.00%> (ø)
...-api/src/pay_api/models/eft_process_status_code.py 100.00% <100.00%> (ø)
... and 31 more

... and 23 files with indirect coverage changes

@ochiu ochiu marked this pull request as ready for review November 1, 2023 17:00
@ochiu ochiu requested review from seeker25 and Jxio as code owners November 1, 2023 17:00
@seeker25 seeker25 changed the title 17829 - EFT Credits / Model updates 18468 - EFT Credits / Model updates Nov 3, 2023
@seeker25
Copy link
Collaborator

seeker25 commented Nov 3, 2023

I've remade the issue as a ticket instead of the epic, I've repointed the title and description at it.

Copy link

sonarqubecloud bot commented Nov 6, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@seeker25 seeker25 merged commit 1a1cb0c into bcgov:main Nov 6, 2023
23 checks passed
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.

2 participants