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

chore: move RouterData Request types to hyperswitch_domain_models crate #4723

Merged

Conversation

hrithikesh026
Copy link
Contributor

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

Moved RouterData::Request types to hyperswitch domain models crate.

Other changes:
Moved enum ApiErrorResponse to hyperswitch domain models as well

Additional Changes

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

Motivation and Context

How did you test it?

Checked if the code compiles successfully.

Checklist

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

@hrithikesh026 hrithikesh026 self-assigned this May 22, 2024
@hrithikesh026 hrithikesh026 requested review from a team as code owners May 22, 2024 06:21
@hrithikesh026 hrithikesh026 added C-refactor Category: Refactor S-waiting-on-review Status: This PR has been implemented and needs to be reviewed labels May 22, 2024
@hrithikesh026 hrithikesh026 added this to the May 2024 Release milestone May 22, 2024
jarnura
jarnura previously approved these changes May 22, 2024
crates/common_utils/src/custom_serde.rs Outdated Show resolved Hide resolved
crates/hyperswitch_domain_models/Cargo.toml Outdated Show resolved Hide resolved
crates/router/src/compatibility/stripe/errors.rs Outdated Show resolved Hide resolved
crates/router/src/core/errors.rs Outdated Show resolved Hide resolved
crates/router/src/services/api.rs Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

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

Remove this file and the mod declaration here:

pub mod custom_serde;

}
}
}
pub use hyperswitch_domain_models::payment_method_data::*;
Copy link
Member

Choose a reason for hiding this comment

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

If it isn't asking for too much, can we avoid the wildcard import here?

@likhinbopanna likhinbopanna added this pull request to the merge queue May 23, 2024
Merged via the queue into main with commit ae77373 May 23, 2024
10 checks passed
@likhinbopanna likhinbopanna deleted the move-router-data-request-models-to-hyperswitch-domain-models branch May 23, 2024 10:33
@SanchithHegde SanchithHegde removed the S-waiting-on-review Status: This PR has been implemented and needs to be reviewed label May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-refactor Category: Refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants