feat(core): implement NameType for name validation (#6734)

This commit is contained in:
Sakil Mostak
2025-04-01 14:58:54 +05:30
committed by GitHub
parent 1a7804ea89
commit 1100dcc605
72 changed files with 734 additions and 364 deletions

View File

@ -18,7 +18,7 @@ pub struct CustomerRequest {
pub merchant_id: id_type::MerchantId,
/// The customer's name
#[schema(max_length = 255, value_type = Option<String>, example = "Jon Test")]
pub name: Option<Secret<String>>,
pub name: Option<common_utils::types::NameType>,
/// The customer's email address
#[schema(value_type = Option<String>, max_length = 255, example = "JonTest@test.com")]
pub email: Option<pii::Email>,