-
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): Implement 3ds decision manger for V2 #7022
base: main
Are you sure you want to change the base?
Conversation
|
||
let new_algo = common_types::payments::DecisionManagerRecord { | ||
name, | ||
program: program.clone(), |
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.
why do we need to clone this?
created_at: timestamp, | ||
}; | ||
|
||
update_merchant_active_algorithm_ref(&state, &key_store, new_algo.clone(), profile) |
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.
this function is not performing as its name, this is updating the routing algorithm ref in business profile, so you can call the db interface function directly
@@ -199,13 +199,30 @@ pub async fn update_merchant_active_algorithm_ref( | |||
|
|||
#[cfg(feature = "v2")] | |||
pub async fn update_merchant_active_algorithm_ref( |
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.
remove this function
impl ProfileId { | ||
#[cfg(feature = "v2")] | ||
/// get_payment_config_routing_id | ||
pub fn get_payment_config_routing_id(&self) -> 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.
remove this unused function
crates/common_types/src/payments.rs
Outdated
#[serde(rename_all = "snake_case")] | ||
#[strum(serialize_all = "snake_case")] | ||
/// AuthenticationType | ||
pub enum AuthenticationType { |
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 do not need this here, this is already declared in common enums right? we can impl these methods on the AuthenticationType in common enums
Type of Change
Description
Additional Changes
Motivation and Context
How did you test it?
Response
Response
Checklist
cargo +nightly fmt --all
cargo clippy