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

Simetrik: Fix integer and float types #4405

Merged
merged 1 commit into from
Apr 29, 2022
Merged

Conversation

rachelkirk
Copy link
Contributor

@rachelkirk rachelkirk commented Apr 25, 2022

CE-2407

This PR does some refactoring and updates some value types that were being passed incorrectly. The scrub method has also been updated.

Remote tests:
12 tests, 24 assertions, 0 failures, 8 errors, 0 pendings, 0 omissions, 0 notifications
33.3333% passed

Unit tests:
12 tests, 82 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

@rachelkirk rachelkirk requested a review from a team April 25, 2022 13:58
Copy link
Contributor

@dsmcclain dsmcclain left a comment

Choose a reason for hiding this comment

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

I am requesting a change relating to the scrubbing (see comment below).

The rest of the changes look good and make sense. I am currently getting all tests passing.

amount: {
currency: 'USD',
vat: 19
}
Copy link
Contributor

Choose a reason for hiding this comment

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

big improvement considering we don't want customers to have to pass a rich object for amount 👍

lib/active_merchant/billing/gateways/simetrik.rb Outdated Show resolved Hide resolved
Copy link
Contributor

@dsmcclain dsmcclain left a comment

Choose a reason for hiding this comment

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

Nice work puzzling through this @rachelkirk. All tests are passing for me.

It would be nice if you update your PR description to indicate that the remote tests are currently passing on this branch.

Also don't forget a changelog entry.

Rubocop:
739 files inspected, no offenses detected

Unit:
5173 tests, 75674 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

Remote:
12 tests, 63 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

CE-2407

This PR does some refactoring and updates some value types that were being passed incorrectly. The scrub method has also been updated.

Remote Tests:
12 tests, 64 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

Unit Tests:
12 tests, 83 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

Local Tests:
5167 tests, 75646 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
RuboCop:
739 files inspected, no offenses detected
@rachelkirk rachelkirk marked this pull request as ready for review April 29, 2022 13:58
@rachelkirk rachelkirk merged commit 42a1553 into master Apr 29, 2022
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