feat: add merchant_name field in the response body (#1280)

Co-authored-by: Prajjwal Kumar <prajjwal.kumar@juspay.in>
Co-authored-by: Sanchith Hegde <sanchith.hegde@juspay.in>
This commit is contained in:
Amisha Prabhat
2023-07-01 16:40:46 +05:30
committed by GitHub
parent 2136326166
commit dd4ba63cc4
3 changed files with 296 additions and 321 deletions

View File

@ -1,5 +1,5 @@
use cards::CardNumber;
use common_utils::pii;
use common_utils::{crypto::OptionalEncryptableName, pii};
use serde::de;
use utoipa::ToSchema;
@ -441,6 +441,9 @@ pub struct PaymentMethodListResponse {
/// Value indicating if the current payment is a mandate payment
#[schema(value_type = MandateType)]
pub mandate_payment: Option<payments::MandateType>,
#[schema(value_type = Option<String>)]
pub merchant_name: OptionalEncryptableName,
}
#[derive(Eq, PartialEq, Hash, Debug, serde::Deserialize, ToSchema)]