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
refactor(connector): [ACI] Use verbose names for `InstructionSource` variants (#1575)
Sakil Mostakdf01f8f382ef
diff --git a/crates/router/src/connector/aci/transformers.rs b/crates/router/src/connector/aci/transformers.rsindex c88fc2b83a..3ea0bce92e 100644--- a/crates/router/src/connector/aci/transformers.rs+++ b/crates/router/src/connector/aci/transformers.rs@@ -300,12 +300,11 @@ pub enum InstructionType {}#[derive(Debug, Clone, Serialize)]-#[serde(rename_all = "UPPERCASE")]pub enum InstructionSource {- // Cardholder initiated transaction- Cit,- // Merchant initiated transaction- Mit,+ #[serde(rename = "CIT")]+ CardholderInitiatedTransaction,+ #[serde(rename = "MIT")]+ MerchantInitiatedTransaction,}#[derive(Debug, Clone, Serialize)]@@ -520,14 +519,14 @@ fn get_instruction_details(item: &types::PaymentsAuthorizeRouterData) -> Option<return Some(Instruction {mode: InstructionMode::Initial,transaction_type: InstructionType::Unscheduled,- source: InstructionSource::Cit,+ source: InstructionSource::CardholderInitiatedTransaction,create_registration: Some(true),});} else if item.request.mandate_id.is_some() {return Some(Instruction {mode: InstructionMode::Repeated,transaction_type: InstructionType::Unscheduled,- source: InstructionSource::Mit,+ source: InstructionSource::MerchantInitiatedTransaction,create_registration: None,});}