-
Notifications
You must be signed in to change notification settings - Fork 59
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
added reversals #250
Conversation
@@ -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') |
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.
please add test case for 5xx response.
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.
Added test cases
def test_fetch_reversals_exception |
documents/transfers.md
Outdated
### Fetch Reversals for a Transfer | ||
```rb | ||
transferId = "trf_JhemwjNekar9Za" | ||
Razorpay::Transfer.fetch(transferId).reversals |
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.
please remove the method chaining
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.
Removed chaining , also updated in doc and unit test
razorpay-ruby/lib/razorpay/transfer.rb
Line 35 in 3eaf6ba
def self.reversals(id) |
Doc reference
Fetch Reversals for a Transfer