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:
Hrithikesh
2023-07-04 11:42:00 +05:30
committed by GitHub
parent d5b3f7c030
commit 4808af3750
20 changed files with 37 additions and 1 deletions

View File

@ -489,6 +489,10 @@ pub struct Card {
/// The card network for the card
#[schema(value_type = Option<CardNetwork>, example = "Visa")]
pub card_network: Option<api_enums::CardNetwork>,
/// The card holder's nick name
#[schema(value_type = Option<String>, example = "John Test")]
pub nick_name: Option<Secret<String>>,
}
#[derive(Eq, PartialEq, Clone, Debug, serde::Deserialize, serde::Serialize, ToSchema)]