mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 17:47:54 +08:00
refactor: use newtype pattern for email addresses (#819)
Co-authored-by: Sanchith Hegde <22217505+SanchithHegde@users.noreply.github.com>
This commit is contained in:
@ -228,7 +228,7 @@ pub struct MerchantDetails {
|
||||
|
||||
/// The merchant's primary email address
|
||||
#[schema(value_type = Option<String>, max_length = 255, example = "johndoe@test.com")]
|
||||
pub primary_email: Option<Secret<String, pii::Email>>,
|
||||
pub primary_email: Option<pii::Email>,
|
||||
|
||||
/// The merchant's secondary contact name
|
||||
#[schema(value_type = Option<String>, max_length= 255, example = "John Doe2")]
|
||||
@ -240,7 +240,7 @@ pub struct MerchantDetails {
|
||||
|
||||
/// The merchant's secondary email address
|
||||
#[schema(value_type = Option<String>, max_length = 255, example = "johndoe2@test.com")]
|
||||
pub secondary_email: Option<Secret<String, pii::Email>>,
|
||||
pub secondary_email: Option<pii::Email>,
|
||||
|
||||
/// The business website of the merchant
|
||||
#[schema(max_length = 255, example = "www.example.com")]
|
||||
|
||||
Reference in New Issue
Block a user