mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
fix: return nick name for each card while listing saved cards (#1391)
Co-authored-by: Narayan Bhat <48803246+Narayanbhat166@users.noreply.github.com>
This commit is contained in:
@ -86,6 +86,10 @@ pub struct CardDetail {
|
||||
/// Card Holder Name
|
||||
#[schema(value_type = String,example = "John Doe")]
|
||||
pub card_holder_name: Option<masking::Secret<String>>,
|
||||
|
||||
/// Card Holder's Nick Name
|
||||
#[schema(value_type = Option<String>,example = "John Doe")]
|
||||
pub nick_name: Option<masking::Secret<String>>,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Deserialize, serde::Serialize, ToSchema)]
|
||||
@ -159,6 +163,9 @@ pub struct CardDetailFromLocker {
|
||||
|
||||
#[schema(value_type=Option<String>)]
|
||||
pub card_fingerprint: Option<masking::Secret<String>>,
|
||||
|
||||
#[schema(value_type=Option<String>)]
|
||||
pub nick_name: Option<masking::Secret<String>>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, ToSchema, PartialEq, Eq)]
|
||||
|
||||
Reference in New Issue
Block a user