mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 21:07:58 +08:00
feat(address): add email field to address (#3682)
This commit is contained in:
@ -39,6 +39,7 @@ impl From<StripeBillingDetails> for payments::Address {
|
||||
address.country.as_ref().map(|country| country.to_string())
|
||||
}),
|
||||
}),
|
||||
email: details.email,
|
||||
address: details.address.map(|address| payments::AddressDetails {
|
||||
city: address.city,
|
||||
country: address.country,
|
||||
@ -184,6 +185,7 @@ impl From<Shipping> for payments::Address {
|
||||
number: details.phone,
|
||||
country_code: details.address.country.map(|country| country.to_string()),
|
||||
}),
|
||||
email: None,
|
||||
address: Some(payments::AddressDetails {
|
||||
city: details.address.city,
|
||||
country: details.address.country,
|
||||
|
||||
@ -37,6 +37,7 @@ impl From<StripeBillingDetails> for payments::Address {
|
||||
number: details.phone,
|
||||
country_code: None,
|
||||
}),
|
||||
email: details.email,
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -143,6 +144,7 @@ impl From<Shipping> for payments::Address {
|
||||
number: details.phone,
|
||||
country_code: None,
|
||||
}),
|
||||
email: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user