-
-
Notifications
You must be signed in to change notification settings - Fork 725
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
Bring in payment model #5678
Closed
sauloperez
wants to merge
30
commits into
openfoodfoundation:master
from
coopdevs:bring-in-payment-model
Closed
Bring in payment model #5678
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
06aa561
Bring in Payment model from Spree
sauloperez abacd06
Fix credit card instance in specs
sauloperez e1ea5db
Fix all but the 7 last payment specs
sauloperez 34de219
Bring in missing translation
sauloperez a01f601
Fix yet another spec
sauloperez 0ad8dcc
Fix payment log entries specs
sauloperez 9935df9
Move Pin payment method from decorator into model
sauloperez 31d0d4b
Fix error "no parent is saved"
sauloperez eafaa97
Temporarily skip spec
sauloperez 322c4d0
Move decorator's callbacks to model
sauloperez 6d9a518
Move method from decorator to model
sauloperez 48910ae
Move #refund! to the processing.rb
sauloperez 8617262
Move localize_number from decorator to model
sauloperez 3fb6193
Move adjustments logic from decorator into model
sauloperez cf6138d
Replace model method with its decorated version
sauloperez d49068c
Move method delegation from decorator to model
sauloperez d8b748a
Merge alias_method method and its original version
sauloperez 8fbbb0b
Bring back our card factory modification
sauloperez 562f397
Isolate Spree's specs into their own context
sauloperez 2f46483
Merge decorator specs with Spree's ones
sauloperez 6837946
Rename spec file
sauloperez 55d52b8
Run rubocop autocorrect on payment model
sauloperez cf64d3a
Merge skipped callback from decorator into model
sauloperez 3435d5a
Fix Rubocop non-metrics issues in payment model
sauloperez 66dbd85
Run rubocop autocorrect on payment/processing.rb
sauloperez 42658b5
Refactor `#process!` nested ifs to guard clauses
sauloperez a8af3a2
Fix all but Metrics Rubocop cops in processing.rb
sauloperez 3a64cc4
Reuse #calculate_refund_amount method
sauloperez 70afcee
Fix Spree's spec clashing with a customization
sauloperez dd5e679
Address code review comments
sauloperez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌