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

feat(router): added dispute accept api, file module apis and dispute evidence submission api #900

Merged
merged 71 commits into from
Apr 24, 2023

Conversation

sai-harsha-vardhan
Copy link
Contributor

@sai-harsha-vardhan sai-harsha-vardhan commented Apr 17, 2023

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates

Description

Added support for following APIs

  1. Dispute Accept API - To accept the dispute with connector.
  2. File Upload API - Validate and Upload a file.
  3. File Retrieve API - Download a file using file id.
  4. File Delete API - Delete a file using file id.
  5. Dispute Evidence Submission API - Submitting the evidences to connector using file ids.

Additional Changes

  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

How did you test it?

Tested Manually

Dispute Accept API - 2xx
image

Dispute Accept API - 4xx
image

File Upload API
image

File Retrieve API
image

File Delete API
image

File Metadata Schema in DB
image

Submit Evidence API - 2xx
image

Submit Evidence API - 4xx
image

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed submitted code
  • I added unit tests for my changes where possible
  • I added a CHANGELOG entry if applicable

Sangamesh26 and others added 30 commits February 9, 2023 16:02
vspecky
vspecky previously approved these changes Apr 21, 2023
migrations/2023-04-04-061926_add_dispute_api_schema/up.sql Outdated Show resolved Hide resolved
crates/router/src/routes/files/transformers.rs Outdated Show resolved Hide resolved
crates/router/src/core/files/s3_utils.rs Outdated Show resolved Hide resolved
crates/router/src/core/files/s3_utils.rs Outdated Show resolved Hide resolved
crates/router/src/core/files/helpers.rs Outdated Show resolved Hide resolved
crates/router/src/core/files.rs Outdated Show resolved Hide resolved
crates/router/src/core/disputes.rs Outdated Show resolved Hide resolved
crates/router/src/core/disputes.rs Outdated Show resolved Hide resolved
crates/router/src/core/disputes.rs Outdated Show resolved Hide resolved
crates/router/src/core/disputes.rs Outdated Show resolved Hide resolved
@jarnura jarnura added S-waiting-on-author Status: This PR is incomplete or needs to address review comments and removed S-waiting-on-review Status: This PR has been implemented and needs to be reviewed labels Apr 21, 2023
@sai-harsha-vardhan sai-harsha-vardhan added S-waiting-on-review Status: This PR has been implemented and needs to be reviewed and removed S-waiting-on-author Status: This PR is incomplete or needs to address review comments labels Apr 21, 2023
crates/router/src/routes/files/transformers.rs Outdated Show resolved Hide resolved
crates/router/src/routes/files/transformers.rs Outdated Show resolved Hide resolved
crates/router/src/core/files/fs_utils.rs Outdated Show resolved Hide resolved
@jarnura jarnura added S-waiting-on-author Status: This PR is incomplete or needs to address review comments and removed S-waiting-on-review Status: This PR has been implemented and needs to be reviewed labels Apr 24, 2023
@sai-harsha-vardhan sai-harsha-vardhan added S-waiting-on-review Status: This PR has been implemented and needs to be reviewed and removed S-waiting-on-author Status: This PR is incomplete or needs to address review comments labels Apr 24, 2023
@jarnura jarnura added S-ready-for-merge and removed S-waiting-on-review Status: This PR has been implemented and needs to be reviewed labels Apr 24, 2023
@jarnura jarnura added this pull request to the merge queue Apr 24, 2023
Merged via the queue into main with commit bdf1e51 Apr 24, 2023
@SanchithHegde SanchithHegde deleted the feat/dispute-evidence-apis branch April 24, 2023 20:04
Comment on lines +189 to +192
[file_upload_config]
bucket_name = ""
region = ""

Copy link
Member

Choose a reason for hiding this comment

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

Also add this fields to other config.example.toml & docker_compose.toml

@sai-harsha-vardhan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-core Area: Core flows C-feature Category: Feature request or enhancement M-api-contract-changes Metadata: This PR involves API contract changes M-configuration-changes Metadata: This PR involves configuration changes M-database-changes Metadata: This PR involves database schema changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants