Skip to content

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

feat(core): voucher-support-ucs-hs-tunnel (#11247)

Sayak Basak820ace0df6ff
diff --git a/Cargo.lock b/Cargo.lock
index f57c614702..cd1493339b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2183,7 +2183,7 @@ dependencies = [
[[package]]
name = "config_patch_derive"
version = "0.1.0"
-source = "git+https://github.com/juspay/connector-service?rev=50bf11c04e0158e6e0b425b22d0695df380b9522#50bf11c04e0158e6e0b425b22d0695df380b9522"
+source = "git+https://github.com/juspay/connector-service?rev=95144b0829b8b3d8c4b0914921b43540abb6ac50#95144b0829b8b3d8c4b0914921b43540abb6ac50"
dependencies = [
"proc-macro2",
"quote",
@@ -3854,7 +3854,7 @@ dependencies = [
[[package]]
name = "grpc-api-types"
version = "0.1.0"
-source = "git+https://github.com/juspay/connector-service?rev=50bf11c04e0158e6e0b425b22d0695df380b9522#50bf11c04e0158e6e0b425b22d0695df380b9522"
+source = "git+https://github.com/juspay/connector-service?rev=95144b0829b8b3d8c4b0914921b43540abb6ac50#95144b0829b8b3d8c4b0914921b43540abb6ac50"
dependencies = [
"axum 0.8.4",
"error-stack 0.5.0",
@@ -7561,7 +7561,7 @@ dependencies = [
[[package]]
name = "rust-grpc-client"
version = "0.1.0"
-source = "git+https://github.com/juspay/connector-service?rev=50bf11c04e0158e6e0b425b22d0695df380b9522#50bf11c04e0158e6e0b425b22d0695df380b9522"
+source = "git+https://github.com/juspay/connector-service?rev=95144b0829b8b3d8c4b0914921b43540abb6ac50#95144b0829b8b3d8c4b0914921b43540abb6ac50"
dependencies = [
"grpc-api-types",
]
@@ -10362,7 +10362,7 @@ checksum = "ed646292ffc8188ef8ea4d1e0e0150fb15a5c2e12ad9b8fc191ae7a8a7f3c4b9"
[[package]]
name = "ucs_cards"
version = "0.1.0"
-source = "git+https://github.com/juspay/connector-service?rev=50bf11c04e0158e6e0b425b22d0695df380b9522#50bf11c04e0158e6e0b425b22d0695df380b9522"
+source = "git+https://github.com/juspay/connector-service?rev=95144b0829b8b3d8c4b0914921b43540abb6ac50#95144b0829b8b3d8c4b0914921b43540abb6ac50"
dependencies = [
"bytes 1.10.1",
"error-stack 0.4.1",
@@ -10378,7 +10378,7 @@ dependencies = [
[[package]]
name = "ucs_common_enums"
version = "0.1.0"
-source = "git+https://github.com/juspay/connector-service?rev=50bf11c04e0158e6e0b425b22d0695df380b9522#50bf11c04e0158e6e0b425b22d0695df380b9522"
+source = "git+https://github.com/juspay/connector-service?rev=95144b0829b8b3d8c4b0914921b43540abb6ac50#95144b0829b8b3d8c4b0914921b43540abb6ac50"
dependencies = [
"serde",
"strum 0.26.3",
@@ -10389,7 +10389,7 @@ dependencies = [
[[package]]
name = "ucs_common_utils"
version = "0.1.0"
-source = "git+https://github.com/juspay/connector-service?rev=50bf11c04e0158e6e0b425b22d0695df380b9522#50bf11c04e0158e6e0b425b22d0695df380b9522"
+source = "git+https://github.com/juspay/connector-service?rev=95144b0829b8b3d8c4b0914921b43540abb6ac50#95144b0829b8b3d8c4b0914921b43540abb6ac50"
dependencies = [
"anyhow",
"base64 0.21.7",
diff --git a/crates/external_services/Cargo.toml b/crates/external_services/Cargo.toml
index 136de79fe2..d67567ed36 100644
--- a/crates/external_services/Cargo.toml
+++ b/crates/external_services/Cargo.toml
@@ -69,7 +69,7 @@ reqwest = { version = "0.11.27", features = ["rustls-tls"] }
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", rev = "50bf11c04e0158e6e0b425b22d0695df380b9522", package = "rust-grpc-client" }
+unified-connector-service-client = { git = "https://github.com/juspay/connector-service", rev = "95144b0829b8b3d8c4b0914921b43540abb6ac50", package = "rust-grpc-client" }
open-feature = { version = "0.2.5", optional = true }
superposition_provider = { version = "0.97.0", optional = true }
diff --git a/crates/hyperswitch_interfaces/Cargo.toml b/crates/hyperswitch_interfaces/Cargo.toml
index 86c31beedd..549b23e406 100644
--- a/crates/hyperswitch_interfaces/Cargo.toml
+++ b/crates/hyperswitch_interfaces/Cargo.toml
@@ -30,7 +30,7 @@ strum = { version = "0.26", features = ["derive"] }
thiserror = "1.0.69"
time = "0.3.41"
url = { version = "2.5.4", features = ["serde"] }
-unified-connector-service-client = { git = "https://github.com/juspay/connector-service", rev = "50bf11c04e0158e6e0b425b22d0695df380b9522", package = "rust-grpc-client" }
+unified-connector-service-client = { git = "https://github.com/juspay/connector-service", rev = "95144b0829b8b3d8c4b0914921b43540abb6ac50", package = "rust-grpc-client" }
unified-connector-service-masking = { git = "https://github.com/juspay/hyperswitch", tag = "2025.11.24.0", package = "masking" }
tokio = { version = "1.45.1", features = ["macros", "rt-multi-thread"] }
diff --git a/crates/router/Cargo.toml b/crates/router/Cargo.toml
index 01c88dcf00..9ec719ceab 100644
--- a/crates/router/Cargo.toml
+++ b/crates/router/Cargo.toml
@@ -90,8 +90,8 @@ reqwest = { version = "0.11.27", features = ["json", "rustls-tls", "gzip", "mult
ring = "0.17.14"
rust_decimal = { version = "1.37.1", features = ["serde-with-float", "serde-with-str"] }
rust-i18n = { git = "https://github.com/kashif-m/rust-i18n", rev = "f2d8096aaaff7a87a847c35a5394c269f75e077a" }
-unified-connector-service-client = { git = "https://github.com/juspay/connector-service", rev = "50bf11c04e0158e6e0b425b22d0695df380b9522", package = "rust-grpc-client" }
-unified-connector-service-cards = { git = "https://github.com/juspay/connector-service", rev = "50bf11c04e0158e6e0b425b22d0695df380b9522", package = "ucs_cards" }
+unified-connector-service-client = { git = "https://github.com/juspay/connector-service", rev = "95144b0829b8b3d8c4b0914921b43540abb6ac50", package = "rust-grpc-client" }
+unified-connector-service-cards = { git = "https://github.com/juspay/connector-service", rev = "95144b0829b8b3d8c4b0914921b43540abb6ac50", package = "ucs_cards" }
unified-connector-service-masking = { git = "https://github.com/juspay/hyperswitch", tag = "2025.11.24.0", package = "masking" }
rustc-hash = "1.1.0"
rustls = "0.22"
diff --git a/crates/router/src/core/unified_connector_service.rs b/crates/router/src/core/unified_connector_service.rs
index 61bb801cb3..e3c4472118 100644
--- a/crates/router/src/core/unified_connector_service.rs
+++ b/crates/router/src/core/unified_connector_service.rs
@@ -1504,6 +1504,88 @@ pub fn build_unified_connector_service_payment_method(
})
}
},
+ hyperswitch_domain_models::payment_method_data::PaymentMethodData::Voucher(voucher_data) => {
+ match voucher_data {
+ hyperswitch_domain_models::payment_method_data::VoucherData::Boleto(boleto_data) => {
+ Ok(payments_grpc::PaymentMethod {
+ payment_method: Some(PaymentMethod::Boleto(
+ payments_grpc::Boleto {
+ social_security_number: boleto_data
+ .social_security_number
+ .map(|ssn| ssn.expose()),
+ },
+ )),
+ })
+ }
+ hyperswitch_domain_models::payment_method_data::VoucherData::Alfamart(_) => {
+ Ok(payments_grpc::PaymentMethod {
+ payment_method: Some(PaymentMethod::Alfamart(
+ payments_grpc::Alfamart {},
+ )),
+ })
+ }
+ hyperswitch_domain_models::payment_method_data::VoucherData::Indomaret(_) => {
+ Ok(payments_grpc::PaymentMethod {
+ payment_method: Some(PaymentMethod::Indomaret(
+ payments_grpc::Indomaret {},
+ )),
+ })
+ }
+ hyperswitch_domain_models::payment_method_data::VoucherData::Oxxo => {
+ Ok(payments_grpc::PaymentMethod {
+ payment_method: Some(PaymentMethod::Oxxo(
+ payments_grpc::Oxxo {},
+ )),
+ })
+ }
+ hyperswitch_domain_models::payment_method_data::VoucherData::SevenEleven(_) => {
+ Ok(payments_grpc::PaymentMethod {
+ payment_method: Some(PaymentMethod::SevenEleven(
+ payments_grpc::SevenEleven {},
+ )),
+ })
+ }
+ hyperswitch_domain_models::payment_method_data::VoucherData::Lawson(_) => {
+ Ok(payments_grpc::PaymentMethod {
+ payment_method: Some(PaymentMethod::Lawson(
+ payments_grpc::Lawson {},
+ )),
+ })
+ }
+ hyperswitch_domain_models::payment_method_data::VoucherData::MiniStop(_) => {
+ Ok(payments_grpc::PaymentMethod {
+ payment_method: Some(PaymentMethod::MiniStop(
+ payments_grpc::MiniStop {},
+ )),
+ })
+ }
+ hyperswitch_domain_models::payment_method_data::VoucherData::FamilyMart(_) => {
+ Ok(payments_grpc::PaymentMethod {
+ payment_method: Some(PaymentMethod::FamilyMart(
+ payments_grpc::FamilyMart {},
+ )),
+ })
+ }
+ hyperswitch_domain_models::payment_method_data::VoucherData::Seicomart(_) => {
+ Ok(payments_grpc::PaymentMethod {
+ payment_method: Some(PaymentMethod::Seicomart(
+ payments_grpc::Seicomart {},
+ )),
+ })
+ }
+ hyperswitch_domain_models::payment_method_data::VoucherData::PayEasy(_) => {
+ Ok(payments_grpc::PaymentMethod {
+ payment_method: Some(PaymentMethod::PayEasy(
+ payments_grpc::PayEasy {},
+ )),
+ })
+ }
+ _ => Err(UnifiedConnectorServiceError::NotImplemented(format!(
+ "Unimplemented payment method subtype: {payment_method_type:?}"
+ ))
+ .into()),
+ }
+ }
_ => Err(UnifiedConnectorServiceError::NotImplemented(format!(
"Unimplemented payment method: {payment_method_data:?}"
))