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 dispute #247

Merged
merged 7 commits into from
May 27, 2024
Merged

added dispute #247

merged 7 commits into from
May 27, 2024

Conversation

ankitdas13
Copy link
Contributor

@ankitdas13 ankitdas13 commented Apr 25, 2024

@ankitdas13 ankitdas13 requested a review from bhavyay May 2, 2024 06:19
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.89%. Comparing base (9423e2b) to head (53f13c7).
Report is 2 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

documents/dispute.md Show resolved Hide resolved
### Fetch All Disputes

```rb
Razorpay::Dispute.all()
Copy link
Contributor

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 ?

Copy link
Contributor Author

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


**Parameters:**

| Name | Type | Description |
Copy link
Contributor

Choose a reason for hiding this comment

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

please format the table

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

**Parameters:**

| Name | Type | Description |
|-------|-----------|--------------------------------------------------|
Copy link
Contributor

Choose a reason for hiding this comment

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

please format the table

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

```
-------------------------------------------------------------------------------------------------------

### Fetch a Dispute
Copy link
Contributor

@bhavyay bhavyay May 22, 2024

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 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

### Accept a Dispute


**Response:**
```json
// Draft
Copy link
Contributor

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

Copy link
Contributor Author

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

### Contest a Dispute (Draft)

### Contest a Dispute (Submit)

refute_empty dispute.items, 'Dispute should be more than one'
end

def test_dispute_accept
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 cases for failure cases of these APIs.

Copy link
Contributor Author

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

@ankitdas13 ankitdas13 requested a review from bhavyay May 24, 2024 08:25
```rb
# Use this API sample code for submit

Razorpay::Dispute.fetch(disputeId).contest({
Copy link
Contributor

Choose a reason for hiding this comment

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

can you update this ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

Razorpay::Dispute.contest(disputeId, {

@ankitdas13 ankitdas13 requested a review from bhavyay May 27, 2024 07:16
@ankitdas13 ankitdas13 added the TestingNotRequired TestingNotRequired label for BVT label May 27, 2024
@ankitdas13 ankitdas13 merged commit 829f1f4 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.

None yet

3 participants