-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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(core): Move RouterData to crate hyperswitch_domain_models #4524
Conversation
|
||
#[derive(Debug, Clone, serde::Deserialize)] | ||
pub enum PaymentMethodToken { | ||
Token(String), |
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.
We can consider making this a Secret<String>
.
Token(String), | |
Token(Secret<String>), |
And make corresponding changes for the usages.
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
code: "HE_00".to_string(), | ||
message: "Something went wrong".to_string(), | ||
reason: None, | ||
status_code: 500, |
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.
status_code: 500, | |
status_code: http::StatusCode::INTERNAL_SERVER_ERROR.as_u16(), |
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
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.
Other than that, looks good to me!
Type of Change
Description
RouterData moved to crate
hyperswitch_domain_models
.Additional Changes
Motivation and Context
#4514
#4523
How did you test it?
Basic testing is required for all the production connectors(and payment methods) on sandbox.
Checklist
cargo +nightly fmt --all
cargo clippy