diff --git a/Cargo.lock b/Cargo.lock index 8c33b993dd..196c7b9820 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3388,8 +3388,7 @@ dependencies = [ [[package]] name = "g2h" version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d843f7c70cdae8a2452e0b2f463b7e483a57cece7687da89371d952d44e0445d" +source = "git+https://github.com/juspay/g2h?rev=ebe5d2c38716abd7b1def43a6a0123a5e4193489#ebe5d2c38716abd7b1def43a6a0123a5e4193489" dependencies = [ "cargo_metadata 0.19.2", "heck 0.5.0", @@ -3551,7 +3550,7 @@ dependencies = [ [[package]] name = "grpc-api-types" version = "0.1.0" -source = "git+https://github.com/juspay/connector-service?rev=a56de0a4ee393af5c401f02b6b4344cb263f4cac#a56de0a4ee393af5c401f02b6b4344cb263f4cac" +source = "git+https://github.com/juspay/connector-service?rev=142cb5a23d302e5d39c4da8d280edababe0691fe#142cb5a23d302e5d39c4da8d280edababe0691fe" dependencies = [ "axum 0.8.4", "error-stack 0.5.0", @@ -6986,7 +6985,7 @@ dependencies = [ [[package]] name = "rust-grpc-client" version = "0.1.0" -source = "git+https://github.com/juspay/connector-service?rev=a56de0a4ee393af5c401f02b6b4344cb263f4cac#a56de0a4ee393af5c401f02b6b4344cb263f4cac" +source = "git+https://github.com/juspay/connector-service?rev=142cb5a23d302e5d39c4da8d280edababe0691fe#142cb5a23d302e5d39c4da8d280edababe0691fe" dependencies = [ "grpc-api-types", ] @@ -9393,7 +9392,7 @@ checksum = "ed646292ffc8188ef8ea4d1e0e0150fb15a5c2e12ad9b8fc191ae7a8a7f3c4b9" [[package]] name = "ucs_cards" version = "0.1.0" -source = "git+https://github.com/juspay/connector-service?rev=a56de0a4ee393af5c401f02b6b4344cb263f4cac#a56de0a4ee393af5c401f02b6b4344cb263f4cac" +source = "git+https://github.com/juspay/connector-service?rev=142cb5a23d302e5d39c4da8d280edababe0691fe#142cb5a23d302e5d39c4da8d280edababe0691fe" dependencies = [ "bytes 1.10.1", "error-stack 0.4.1", @@ -9409,7 +9408,7 @@ dependencies = [ [[package]] name = "ucs_common_enums" version = "0.1.0" -source = "git+https://github.com/juspay/connector-service?rev=a56de0a4ee393af5c401f02b6b4344cb263f4cac#a56de0a4ee393af5c401f02b6b4344cb263f4cac" +source = "git+https://github.com/juspay/connector-service?rev=142cb5a23d302e5d39c4da8d280edababe0691fe#142cb5a23d302e5d39c4da8d280edababe0691fe" dependencies = [ "serde", "strum 0.26.3", @@ -9420,7 +9419,7 @@ dependencies = [ [[package]] name = "ucs_common_utils" version = "0.1.0" -source = "git+https://github.com/juspay/connector-service?rev=a56de0a4ee393af5c401f02b6b4344cb263f4cac#a56de0a4ee393af5c401f02b6b4344cb263f4cac" +source = "git+https://github.com/juspay/connector-service?rev=142cb5a23d302e5d39c4da8d280edababe0691fe#142cb5a23d302e5d39c4da8d280edababe0691fe" dependencies = [ "anyhow", "blake3", diff --git a/crates/external_services/Cargo.toml b/crates/external_services/Cargo.toml index 9f206743bd..eb9fcd61d9 100644 --- a/crates/external_services/Cargo.toml +++ b/crates/external_services/Cargo.toml @@ -68,7 +68,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 = "a56de0a4ee393af5c401f02b6b4344cb263f4cac", package = "rust-grpc-client" } +unified-connector-service-client = { git = "https://github.com/juspay/connector-service", rev = "142cb5a23d302e5d39c4da8d280edababe0691fe", package = "rust-grpc-client" } # First party crates diff --git a/crates/router/Cargo.toml b/crates/router/Cargo.toml index 8d3a139c1f..2190ebae52 100644 --- a/crates/router/Cargo.toml +++ b/crates/router/Cargo.toml @@ -89,8 +89,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 = "a56de0a4ee393af5c401f02b6b4344cb263f4cac", package = "rust-grpc-client" } -unified-connector-service-cards = { git = "https://github.com/juspay/connector-service", rev = "a56de0a4ee393af5c401f02b6b4344cb263f4cac", package = "ucs_cards" } +unified-connector-service-client = { git = "https://github.com/juspay/connector-service", rev = "142cb5a23d302e5d39c4da8d280edababe0691fe", package = "rust-grpc-client" } +unified-connector-service-cards = { git = "https://github.com/juspay/connector-service", rev = "142cb5a23d302e5d39c4da8d280edababe0691fe", package = "ucs_cards" } rustc-hash = "1.1.0" rustls = "0.22" rustls-pemfile = "2" diff --git a/crates/router/src/core/unified_connector_service/transformers.rs b/crates/router/src/core/unified_connector_service/transformers.rs index 9cc94c4a86..6590186234 100644 --- a/crates/router/src/core/unified_connector_service/transformers.rs +++ b/crates/router/src/core/unified_connector_service/transformers.rs @@ -874,8 +874,10 @@ impl ForeignTryFrom }); payments_grpc::Address { - first_name: details.and_then(|d| d.first_name.as_ref().map(|s| s.clone().expose())), - last_name: details.and_then(|d| d.last_name.as_ref().map(|s| s.clone().expose())), + first_name: details + .and_then(|d| d.first_name.as_ref().map(|s| s.clone().expose().into())), + last_name: details + .and_then(|d| d.last_name.as_ref().map(|s| s.clone().expose().into())), line1: details.and_then(|d| d.line1.as_ref().map(|s| s.clone().expose().into())), line2: details.and_then(|d| d.line2.as_ref().map(|s| s.clone().expose().into())), line3: details.and_then(|d| d.line3.as_ref().map(|s| s.clone().expose().into())), @@ -908,8 +910,9 @@ impl ForeignTryFrom payments_grpc::Address { first_name: details - .and_then(|d| d.first_name.as_ref().map(|s| s.peek().to_string())), - last_name: details.and_then(|d| d.last_name.as_ref().map(|s| s.peek().to_string())), + .and_then(|d| d.first_name.as_ref().map(|s| s.peek().to_string().into())), + last_name: details + .and_then(|d| d.last_name.as_ref().map(|s| s.peek().to_string().into())), line1: details.and_then(|d| d.line1.as_ref().map(|s| s.peek().to_string().into())), line2: details.and_then(|d| d.line2.as_ref().map(|s| s.peek().to_string().into())), line3: details.and_then(|d| d.line3.as_ref().map(|s| s.peek().to_string().into())), @@ -940,9 +943,9 @@ impl ForeignTryFrom payments_grpc::Address { first_name: details - .and_then(|d| d.first_name.as_ref().map(|s| s.peek().to_string())), + .and_then(|d| d.first_name.as_ref().map(|s| s.peek().to_string().into())), last_name: details - .and_then(|d| d.last_name.as_ref().map(|s| s.peek().to_string())), + .and_then(|d| d.last_name.as_ref().map(|s| s.peek().to_string().into())), line1: details .and_then(|d| d.line1.as_ref().map(|s| s.peek().to_string().into())), line2: details