feat(address): add email field to address (#3682)

This commit is contained in:
Narayan Bhat
2024-02-22 16:18:27 +05:30
committed by GitHub
parent d000847b93
commit 863e380cf2
39 changed files with 112 additions and 5 deletions

View File

@ -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,

View File

@ -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,
}
}
}