-
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 dispute #247
added dispute #247
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #247 +/- ##
==========================================
+ Coverage 96.83% 96.89% +0.06%
==========================================
Files 35 39 +4
Lines 631 773 +142
==========================================
+ Hits 611 749 +138
- Misses 20 24 +4 ☔ View full report in Codecov by Sentry. |
### Fetch All Disputes | ||
|
||
```rb | ||
Razorpay::Dispute.all() |
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.
Do we allow any params for pagination ?
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.
No params according to this doc https://razorpay.com/docs/api/disputes/fetch-all
documents/dispute.md
Outdated
|
||
**Parameters:** | ||
|
||
| Name | Type | Description | |
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 format the table
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.
Done
documents/dispute.md
Outdated
**Parameters:** | ||
|
||
| Name | Type | Description | | ||
|-------|-----------|--------------------------------------------------| |
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 format the table
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.
Done
documents/dispute.md
Outdated
``` | ||
------------------------------------------------------------------------------------------------------- | ||
|
||
### Fetch a Dispute |
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.
can you update the title for this section ?
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.
updated
razorpay-ruby/documents/dispute.md
Line 97 in e9c6f0c
### Accept a Dispute |
documents/dispute.md
Outdated
|
||
**Response:** | ||
```json | ||
// Draft |
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.
Not clear on why this is added. Can you add more details if this is a specific case of 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.
Separated both code snippets submit
or draft
razorpay-ruby/documents/dispute.md
Line 144 in ec847c6
### Contest a Dispute (Draft) |
razorpay-ruby/documents/dispute.md
Line 227 in ec847c6
### Contest a Dispute (Submit) |
refute_empty dispute.items, 'Dispute should be more than one' | ||
end | ||
|
||
def test_dispute_accept |
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 cases for failure cases of these APIs.
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 failure test cases
def test_dispute_contest_failure |
documents/dispute.md
Outdated
```rb | ||
# Use this API sample code for submit | ||
|
||
Razorpay::Dispute.fetch(disputeId).contest({ |
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.
can you update this ?
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.
updated
razorpay-ruby/documents/dispute.md
Line 234 in 2e0b54f
Razorpay::Dispute.contest(disputeId, { |
Doc reference
Fetch All Disputes
Fetch a Dispute
Accept a Dispute
Contest a Dispute