-
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
refactor: [CYBERSOURCE, BANKOFAMERICA, WELLSFARGO] Move code to crate hyperswitch_connectors #6908
base: main
Are you sure you want to change the base?
Conversation
37ec9b0
to
deb2edb
Compare
1e0ba96
to
1ec7b93
Compare
fn is_auto_capture(&self) -> Result<bool, Error>; | ||
fn get_order_details(&self) -> Result<Vec<OrderDetailsWithAmount>, Error>; | ||
fn get_webhook_url(&self) -> Result<String, Error>; | ||
fn get_return_url(&self) -> Result<String, Error>; |
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.
Rename function to get_router_return_url
6a5c99d
to
616296f
Compare
616296f
to
15d646b
Compare
/// Error message for Authentication Error from the connector | ||
pub const CONNECTOR_UNAUTHORIZED_ERROR: &str = "Authentication Error from the connector"; | ||
|
||
/// Error message when Refund request has been voided. | ||
pub const REFUND_VOIDED: &str = "Refund request has been voided."; |
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 we move these 2 consts to the hyperswitch_connectors
crate itself?
@@ -41,7 +41,6 @@ pub const DEFAULT_LIST_API_LIMIT: u16 = 10; | |||
pub(crate) const UNSUPPORTED_ERROR_MESSAGE: &str = "Unsupported response type"; | |||
pub(crate) const LOW_BALANCE_ERROR_MESSAGE: &str = "Insufficient balance in the payment method"; | |||
pub(crate) const CONNECTOR_UNAUTHORIZED_ERROR: &str = "Authentication Error from the connector"; |
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.
Aren't we removing the const from here, since it would be moved to the hyperswitch_connectors
crate?
Type of Change
Description
Move cybersource, bankofamerica, wellsfargo code to crate hyperswitch_connectors.
Additional Changes
Motivation and Context
How did you test it?
Checklist
cargo +nightly fmt --all
cargo clippy