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

added reversals #250

Merged
merged 6 commits into from
May 27, 2024
Merged

added reversals #250

merged 6 commits into from
May 27, 2024

Conversation

ankitdas13
Copy link
Contributor

@ankitdas13 ankitdas13 requested a review from bhavyay May 2, 2024 06:20
@@ -73,5 +73,12 @@ def test_transfer_direct_transfer
assert_equal transfer.id, @transfer_id , 'Transfer transfer_id is accessible'
refute transfer.on_hold
end

def test_fetch_reversals
stub_get(%r{/transfers/#{@transfer_id}/reversals$}, 'reversals_collection')
Copy link
Contributor

Choose a reason for hiding this comment

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

please add test case for 5xx response.

Copy link
Contributor Author

@ankitdas13 ankitdas13 May 24, 2024

Choose a reason for hiding this comment

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

Added test cases

def test_fetch_reversals_exception

@ankitdas13 ankitdas13 requested a review from bhavyay May 24, 2024 11:57
### Fetch Reversals for a Transfer
```rb
transferId = "trf_JhemwjNekar9Za"
Razorpay::Transfer.fetch(transferId).reversals
Copy link
Contributor

Choose a reason for hiding this comment

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

please remove the method chaining

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed chaining , also updated in doc and unit test

def self.reversals(id)

@ankitdas13 ankitdas13 requested a review from bhavyay May 27, 2024 07:15
@ankitdas13 ankitdas13 added the TestingNotRequired TestingNotRequired label for BVT label May 27, 2024
@ankitdas13 ankitdas13 merged commit 1003883 into master May 27, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TestingNotRequired TestingNotRequired label for BVT
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants