Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
fix(core): drop three_dsserver_trans_id from authentication table (#4587)
Hrithikeshec3b60e37c0b
diff --git a/crates/diesel_models/src/authentication.rs b/crates/diesel_models/src/authentication.rsindex 8840d287e5..ce2f02d087 100644--- a/crates/diesel_models/src/authentication.rs+++ b/crates/diesel_models/src/authentication.rs@@ -38,7 +38,6 @@ pub struct Authentication {pub challenge_request: Option<String>,pub acs_reference_number: Option<String>,pub acs_trans_id: Option<String>,- pub three_ds_server_trans_id: Option<String>,pub acs_signed_content: Option<String>,pub profile_id: String,pub payment_id: Option<String>,@@ -83,7 +82,6 @@ pub struct AuthenticationNew {pub challenge_request: Option<String>,pub acs_reference_number: Option<String>,pub acs_trans_id: Option<String>,- pub three_dsserver_trans_id: Option<String>,pub acs_signed_content: Option<String>,pub profile_id: String,pub payment_id: Option<String>,@@ -160,7 +158,6 @@ pub struct AuthenticationUpdateInternal {pub challenge_request: Option<String>,pub acs_reference_number: Option<String>,pub acs_trans_id: Option<String>,- pub three_dsserver_trans_id: Option<String>,pub acs_signed_content: Option<String>,}@@ -191,7 +188,6 @@ impl Default for AuthenticationUpdateInternal {challenge_request: Default::default(),acs_reference_number: Default::default(),acs_trans_id: Default::default(),- three_dsserver_trans_id: Default::default(),acs_signed_content: Default::default(),}}@@ -224,7 +220,6 @@ impl AuthenticationUpdateInternal {challenge_request,acs_reference_number,acs_trans_id,- three_dsserver_trans_id,acs_signed_content,} = self;Authentication {@@ -256,7 +251,6 @@ impl AuthenticationUpdateInternal {challenge_request: challenge_request.or(source.challenge_request),acs_reference_number: acs_reference_number.or(source.acs_reference_number),acs_trans_id: acs_trans_id.or(source.acs_trans_id),- three_ds_server_trans_id: three_dsserver_trans_id.or(source.three_ds_server_trans_id),acs_signed_content: acs_signed_content.or(source.acs_signed_content),..source}diff --git a/crates/diesel_models/src/schema.rs b/crates/diesel_models/src/schema.rsindex 20296adb65..0bea0402b5 100644--- a/crates/diesel_models/src/schema.rs+++ b/crates/diesel_models/src/schema.rs@@ -108,7 +108,6 @@ diesel::table! {challenge_request -> Nullable<Varchar>,acs_reference_number -> Nullable<Varchar>,acs_trans_id -> Nullable<Varchar>,- three_dsserver_trans_id -> Nullable<Varchar>,acs_signed_content -> Nullable<Varchar>,#[max_length = 64]profile_id -> Varchar,diff --git a/crates/router/src/core/authentication/utils.rs b/crates/router/src/core/authentication/utils.rsindex bece545923..e29c8b1023 100644--- a/crates/router/src/core/authentication/utils.rs+++ b/crates/router/src/core/authentication/utils.rs@@ -177,7 +177,6 @@ pub async fn create_new_authentication(challenge_request: None,acs_reference_number: None,acs_trans_id: None,- three_dsserver_trans_id: None,acs_signed_content: None,profile_id,payment_id,diff --git a/crates/router/src/db/authentication.rs b/crates/router/src/db/authentication.rsindex 0f4aef679c..398af72f8b 100644--- a/crates/router/src/db/authentication.rs+++ b/crates/router/src/db/authentication.rs@@ -143,7 +143,6 @@ impl AuthenticationInterface for MockDb {challenge_request: authentication.challenge_request,acs_reference_number: authentication.acs_reference_number,acs_trans_id: authentication.acs_trans_id,- three_ds_server_trans_id: authentication.three_dsserver_trans_id,acs_signed_content: authentication.acs_signed_content,profile_id: authentication.profile_id,payment_id: authentication.payment_id,diff --git a/crates/router/src/types/api/authentication.rs b/crates/router/src/types/api/authentication.rsindex 92bcd1ae73..3e4a494f65 100644--- a/crates/router/src/types/api/authentication.rs+++ b/crates/router/src/types/api/authentication.rs@@ -50,7 +50,7 @@ impl TryFrom<storage::Authentication> for AuthenticationResponse {challenge_request: authentication.challenge_request,acs_reference_number: authentication.acs_reference_number,acs_trans_id: authentication.acs_trans_id,- three_dsserver_trans_id: authentication.three_ds_server_trans_id,+ three_dsserver_trans_id: authentication.threeds_server_transaction_id,acs_signed_content: authentication.acs_signed_content,})}diff --git a/migrations/2024-05-08-111348_delete_unused_column_from_authentication/down.sql b/migrations/2024-05-08-111348_delete_unused_column_from_authentication/down.sqlnew file mode 100644index 0000000000..8459dd79c5--- /dev/null+++ b/migrations/2024-05-08-111348_delete_unused_column_from_authentication/down.sql@@ -0,0 +1,2 @@+-- This file should undo anything in `up.sql`+ALTER TABLE authentication ADD COLUMN three_dsserver_trans_id VARCHAR;\ No newline at end of filediff --git a/migrations/2024-05-08-111348_delete_unused_column_from_authentication/up.sql b/migrations/2024-05-08-111348_delete_unused_column_from_authentication/up.sqlnew file mode 100644index 0000000000..fdbe2332b3--- /dev/null+++ b/migrations/2024-05-08-111348_delete_unused_column_from_authentication/up.sql@@ -0,0 +1,2 @@+-- Your SQL goes here+ALTER TABLE authentication DROP COLUMN three_dsserver_trans_id;\ No newline at end of file