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(router): fixed backward compatibility issue with profile acquirer config while fetching business profile (#12418)
Sahkal Poddarf537ad4654bb
diff --git a/crates/diesel_models/src/business_profile.rs b/crates/diesel_models/src/business_profile.rsindex 3f2a6b35b5..429564eb05 100644--- a/crates/diesel_models/src/business_profile.rs+++ b/crates/diesel_models/src/business_profile.rs@@ -886,12 +886,7 @@ common_utils::impl_to_sql_from_sql_json!(WebhookDetails);#[serde(untagged)]pub enum AcquirerConfigBucket {New(common_types::domain::AcquirerConfigBucket),- Old(- HashMap<- common_utils::id_type::ProfileAcquirerId,- Vec<common_types::domain::AcquirerConfig>,- >,- ),+ Old(HashMap<common_utils::id_type::ProfileAcquirerId, common_types::domain::AcquirerConfig>),}common_utils::impl_to_sql_from_sql_json!(AcquirerConfigBucket);@@ -902,7 +897,7 @@ impl From<AcquirerConfigBucket> for common_types::domain::AcquirerConfigBucket {AcquirerConfigBucket::New(new) => new,AcquirerConfigBucket::Old(old) => Self {default_acquirer_config: None,- configs: old,+ configs: old.into_iter().map(|(k, v)| (k, vec![v])).collect(),},}}