mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(core): Add first_name and last_name as Secret<String> Types. (#9326)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -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"
|
||||
|
||||
@ -874,8 +874,10 @@ impl ForeignTryFrom<hyperswitch_domain_models::payment_address::PaymentAddress>
|
||||
});
|
||||
|
||||
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<hyperswitch_domain_models::payment_address::PaymentAddress>
|
||||
|
||||
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<hyperswitch_domain_models::payment_address::PaymentAddress>
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user