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(connector): make few fields optional in struct NetceteraErrorDetails (#4827)
Hrithikesh69b2f76be7a2
diff --git a/crates/router/src/connector/netcetera.rs b/crates/router/src/connector/netcetera.rsindex 43df87db40..714873cfb5 100644--- a/crates/router/src/connector/netcetera.rs+++ b/crates/router/src/connector/netcetera.rs@@ -107,7 +107,7 @@ impl ConnectorCommon for Netcetera {status_code: res.status_code,code: response.error_details.error_code,message: response.error_details.error_description,- reason: Some(response.error_details.error_detail),+ reason: response.error_details.error_detail,attempt_status: None,connector_transaction_id: None,})diff --git a/crates/router/src/connector/netcetera/transformers.rs b/crates/router/src/connector/netcetera/transformers.rsindex 66813716fb..0fcecadef2 100644--- a/crates/router/src/connector/netcetera/transformers.rs+++ b/crates/router/src/connector/netcetera/transformers.rs@@ -105,8 +105,8 @@ implNetceteraPreAuthenticationResponse::Failure(error_response) => {Err(types::ErrorResponse {code: error_response.error_details.error_code,- message: error_response.error_details.error_detail,- reason: Some(error_response.error_details.error_description),+ message: error_response.error_details.error_description,+ reason: error_response.error_details.error_detail,status_code: item.http_code,attempt_status: None,connector_transaction_id: None,@@ -174,8 +174,8 @@ impl}NetceteraAuthenticationResponse::Error(error_response) => Err(types::ErrorResponse {code: error_response.error_details.error_code,- message: error_response.error_details.error_detail,- reason: Some(error_response.error_details.error_description),+ message: error_response.error_details.error_description,+ reason: error_response.error_details.error_detail,status_code: item.http_code,attempt_status: None,connector_transaction_id: None,@@ -235,20 +235,20 @@ pub struct NetceteraErrorDetails {pub error_code: String,/// Code indicating the 3-D Secure component that identified the error.- pub error_component: String,+ pub error_component: Option<String>,/// Text describing the problem identified.pub error_description: String,/// Additional detail regarding the problem identified.- pub error_detail: String,+ pub error_detail: Option<String>,/// Universally unique identifier for the transaction assigned by the 3DS SDK.#[serde(rename = "sdkTransID")]pub sdk_trans_id: Option<String>,/// The Message Type that was identified as erroneous.- pub error_message_type: String,+ pub error_message_type: Option<String>,}#[derive(Debug, Serialize, Deserialize)]