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

17829 - EFT Service updates #1293

Merged
merged 4 commits into from
Oct 19, 2023
Merged

Conversation

ochiu
Copy link
Collaborator

@ochiu ochiu commented Oct 19, 2023

Issue #:
bcgov/entity#17829

Description of changes:

  • feature flag invoice creation for EFT payment method
  • add eft short names mapping table for TDI17 short names to accounts
  • updated FF service to align with version 8.x usage

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).

@@ -24,3 +28,8 @@ class EftService(DepositService):
def get_payment_method_code(self):
"""Return EFT as the system code."""
return PaymentMethod.EFT.value

def create_invoice(self, payment_account: PaymentAccount, line_items: [PaymentLineItem], invoice: Invoice,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The base deposit service class already has an implementation of the required methods. I added create_invoice with a comment so it is clear that the Invoice references will be created later via the TDI17 processing.

@codecov
Copy link

codecov bot commented Oct 19, 2023

Codecov Report

Merging #1293 (a3dada3) into main (79924ce) will increase coverage by 0.24%.
Report is 24 commits behind head on main.
The diff coverage is 98.19%.

@@            Coverage Diff             @@
##             main    #1293      +/-   ##
==========================================
+ Coverage   91.45%   91.69%   +0.24%     
==========================================
  Files         186      198      +12     
  Lines       11319    11636     +317     
==========================================
+ Hits        10352    10670     +318     
+ Misses        967      966       -1     
Flag Coverage Δ
eventlistenerqueue 81.81% <ø> (ø)
payadmin ∅ <ø> (?)
payapi 93.83% <99.24%> (+0.10%) ⬆️
paymentreconciliationsqueue 92.71% <97.50%> (+1.26%) ⬆️

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

Files Coverage Δ
.../payment-jobs/tasks/statement_notification_task.py 32.78% <ø> (+0.96%) ⬆️
pay-api/src/pay_api/models/__init__.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%> (ø)
pay-api/src/pay_api/models/eft_short_names.py 100.00% <100.00%> (ø)
pay-api/src/pay_api/models/eft_transaction.py 100.00% <100.00%> (ø)
pay-api/src/pay_api/models/invoice.py 100.00% <100.00%> (ø)
pay-api/src/pay_api/models/payment.py 95.87% <ø> (ø)
pay-api/src/pay_api/models/statement.py 97.67% <100.00%> (+0.05%) ⬆️
...api/src/pay_api/resources/v1/account_statements.py 100.00% <100.00%> (ø)
... and 18 more

@sonarqubecloud
Copy link

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

@ochiu
Copy link
Collaborator Author

ochiu commented Oct 19, 2023

Payments Job CI failing currently since it also needs the LD FF service update. A second PR will be submitted to update the payment job requirements.txt dependency

@seeker25 seeker25 changed the title 17829-EFT Service updates 17829 - EFT Service updates Oct 19, 2023
@ochiu ochiu marked this pull request as ready for review October 19, 2023 17:49
@ochiu ochiu requested a review from Jxio as a code owner October 19, 2023 17:49
@ochiu ochiu merged commit f528537 into bcgov:main Oct 19, 2023
22 of 23 checks passed
AbrahamRostampoor pushed a commit to AbrahamRostampoor/sbc-pay that referenced this pull request Oct 26, 2023
* eft_short_names table

* 17829 - eft feature flagging, eft short names tables

* version bump

* update flags service for LD 8.x
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