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(ucs): adapt to optional mandate fields (#14312)
Pa1c1d7b1ee0fb2
diff --git a/Cargo.lock b/Cargo.lockindex f9d02bfc7b..fb1a7fc2c0 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -2288,7 +2288,7 @@ dependencies = [[[package]]name = "config_patch_derive"version = "0.1.0"-source = "git+https://github.com/juspay/connector-service?tag=2026.09.18.1#b46095d39ffc88bb0e1e16be7951aa1d1105e0c5"+source = "git+https://github.com/juspay/connector-service?tag=2026.09.21.0#79f23cfd93ed0a4058cb5954a3a5eb7e0cb99b59"dependencies = ["proc-macro2","quote",@@ -4262,7 +4262,7 @@ checksum = "32619942b8be646939eaf3db0602b39f5229b74575b67efc897811ded1db4e57"[[package]]name = "grpc-api-types"version = "0.1.0"-source = "git+https://github.com/juspay/connector-service?tag=2026.09.18.1#b46095d39ffc88bb0e1e16be7951aa1d1105e0c5"+source = "git+https://github.com/juspay/connector-service?tag=2026.09.21.0#79f23cfd93ed0a4058cb5954a3a5eb7e0cb99b59"dependencies = ["axum 0.8.4","bytes 1.10.1",@@ -4271,10 +4271,14 @@ dependencies = ["heck 0.5.0","http 1.3.1","hyperswitch_masking",+ "prettyplease",+ "proc-macro2","prost 0.14.3","prost-build","prost-types 0.14.3",+ "quote","serde",+ "syn 2.0.101","tonic 0.14.5","tonic-build","tonic-prost",@@ -8584,7 +8588,7 @@ dependencies = [[[package]]name = "rust-grpc-client"version = "0.1.0"-source = "git+https://github.com/juspay/connector-service?tag=2026.09.18.1#b46095d39ffc88bb0e1e16be7951aa1d1105e0c5"+source = "git+https://github.com/juspay/connector-service?tag=2026.09.21.0#79f23cfd93ed0a4058cb5954a3a5eb7e0cb99b59"dependencies = ["grpc-api-types",]@@ -11425,7 +11429,7 @@ checksum = "ed646292ffc8188ef8ea4d1e0e0150fb15a5c2e12ad9b8fc191ae7a8a7f3c4b9"[[package]]name = "ucs_cards"version = "0.1.0"-source = "git+https://github.com/juspay/connector-service?tag=2026.09.18.1#b46095d39ffc88bb0e1e16be7951aa1d1105e0c5"+source = "git+https://github.com/juspay/connector-service?tag=2026.09.21.0#79f23cfd93ed0a4058cb5954a3a5eb7e0cb99b59"dependencies = ["bytes 1.10.1","error-stack 0.4.1",@@ -11441,7 +11445,7 @@ dependencies = [[[package]]name = "ucs_common_enums"version = "0.1.0"-source = "git+https://github.com/juspay/connector-service?tag=2026.09.18.1#b46095d39ffc88bb0e1e16be7951aa1d1105e0c5"+source = "git+https://github.com/juspay/connector-service?tag=2026.09.21.0#79f23cfd93ed0a4058cb5954a3a5eb7e0cb99b59"dependencies = ["serde","strum 0.26.3",@@ -11452,7 +11456,7 @@ dependencies = [[[package]]name = "ucs_common_utils"version = "0.1.0"-source = "git+https://github.com/juspay/connector-service?tag=2026.09.18.1#b46095d39ffc88bb0e1e16be7951aa1d1105e0c5"+source = "git+https://github.com/juspay/connector-service?tag=2026.09.21.0#79f23cfd93ed0a4058cb5954a3a5eb7e0cb99b59"dependencies = ["anyhow","base64 0.21.7",diff --git a/crates/external_services/Cargo.toml b/crates/external_services/Cargo.tomlindex a480fc33d9..3908a9de07 100644--- a/crates/external_services/Cargo.toml+++ b/crates/external_services/Cargo.toml@@ -94,7 +94,7 @@ http = "0.2.12"url = { version = "2.5.4", features = ["serde"] }quick-xml = { version = "0.31.0", features = ["serialize"] }-unified-connector-service-client = { git = "https://github.com/juspay/connector-service", tag = "2026.09.18.1", package = "rust-grpc-client" }+unified-connector-service-client = { git = "https://github.com/juspay/connector-service", tag = "2026.09.21.0", package = "rust-grpc-client" }open-feature = { version = "0.2.5", optional = true }bytes = { version = "1.10.1", optional = true }superposition_provider = { version = "0.115.5", optional = true }diff --git a/crates/hyperswitch_interfaces/Cargo.toml b/crates/hyperswitch_interfaces/Cargo.tomlindex f42ed195ea..0946814596 100644--- a/crates/hyperswitch_interfaces/Cargo.toml+++ b/crates/hyperswitch_interfaces/Cargo.toml@@ -35,7 +35,7 @@ time = "0.3.41"tonic = "0.14"url = { version = "2.5.4", features = ["serde"] }-unified-connector-service-client = { git = "https://github.com/juspay/connector-service", tag = "2026.09.18.1", package = "rust-grpc-client" }+unified-connector-service-client = { git = "https://github.com/juspay/connector-service", tag = "2026.09.21.0", package = "rust-grpc-client" }tokio = { version = "1.45.1", features = ["macros", "rt-multi-thread"] }# First party cratesdiff --git a/crates/router/Cargo.toml b/crates/router/Cargo.tomlindex 4f54829bb8..86910de06d 100644--- a/crates/router/Cargo.toml+++ b/crates/router/Cargo.toml@@ -243,8 +243,8 @@ rust_decimal = { version = "1.37.1", features = [] }rust-i18n = { git = "https://github.com/kashif-m/rust-i18n", rev = "f2d8096aaaff7a87a847c35a5394c269f75e077a" }-unified-connector-service-client = { git = "https://github.com/juspay/connector-service", tag = "2026.09.18.1", package = "rust-grpc-client" }-unified-connector-service-cards = { git = "https://github.com/juspay/connector-service", tag = "2026.09.18.1", package = "ucs_cards" }+unified-connector-service-client = { git = "https://github.com/juspay/connector-service", tag = "2026.09.21.0", package = "rust-grpc-client" }+unified-connector-service-cards = { git = "https://github.com/juspay/connector-service", tag = "2026.09.21.0", package = "ucs_cards" }rustc-hash = "1.1.0"rustls = { version = "0.23", default-features = false, features = ["aws-lc-rs",diff --git a/crates/router/src/core/unified_connector_service/transformers.rs b/crates/router/src/core/unified_connector_service/transformers.rsindex f6cce2a1fb..70d4d58855 100644--- a/crates/router/src/core/unified_connector_service/transformers.rs+++ b/crates/router/src/core/unified_connector_service/transformers.rs@@ -7476,7 +7476,7 @@ impl transformers::ForeignTryFrom<&MandateData> for payments_grpc::SetupMandateDpayments_grpc::mandate_type::MandateType::SingleUse(#[allow(deprecated)]payments_grpc::MandateAmountData {- amount: amount_data.amount.get_amount_as_i64(),+ amount: Some(amount_data.amount.get_amount_as_i64()),amount_type: None,amount_money: Some(payments_grpc::Money {minor_amount: amount_data@@ -7485,7 +7485,7 @@ impl transformers::ForeignTryFrom<&MandateData> for payments_grpc::SetupMandateDcurrency: currency.into(),}),frequency: None,- currency: currency.into(),+ currency: Some(currency.into()),start_date: amount_data.start_date.map(|dt: time::PrimitiveDateTime| {dt.assume_utc().unix_timestamp()@@ -7520,7 +7520,7 @@ impl transformers::ForeignTryFrom<&MandateData> for payments_grpc::SetupMandateDpayments_grpc::mandate_type::MandateType::MultiUse(#[allow(deprecated)]payments_grpc::MandateAmountData {- amount: amount_data.amount.get_amount_as_i64(),+ amount: Some(amount_data.amount.get_amount_as_i64()),amount_type: None,amount_money: Some(payments_grpc::Money {minor_amount: amount_data@@ -7529,7 +7529,7 @@ impl transformers::ForeignTryFrom<&MandateData> for payments_grpc::SetupMandateDcurrency: currency.into(),}),frequency: None,- currency: currency.into(),+ currency: Some(currency.into()),start_date: amount_data.start_date.map(|dt: time::PrimitiveDateTime| {dt.assume_utc().unix_timestamp()