fix(list): add mandate type in payment_method_list (#1238)

This commit is contained in:
Nishant Joshi
2023-05-23 16:30:58 +05:30
committed by GitHub
parent ea6bce663d
commit 9341191e39
3 changed files with 8 additions and 10 deletions

View File

@ -439,8 +439,8 @@ pub struct PaymentMethodListResponse {
))]
pub payment_methods: Vec<ResponsePaymentMethodsEnabled>,
/// Value indicating if the current payment is a mandate payment
#[schema(example = "new_mandate_txn")]
pub mandate_payment: Option<payments::MandateTxnType>,
#[schema(value_type = MandateType)]
pub mandate_payment: Option<payments::MandateType>,
}
#[derive(Eq, PartialEq, Hash, Debug, serde::Deserialize, ToSchema)]