refactor(mandate): allow merchant to pass the mandate details and customer acceptance separately (#1188)

This commit is contained in:
Nishant Joshi
2023-05-19 12:19:19 +05:30
committed by GitHub
parent f394c4abc0
commit 6c41cdb1c9
20 changed files with 220 additions and 47 deletions

View File

@ -429,6 +429,9 @@ 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>,
}
#[derive(Eq, PartialEq, Hash, Debug, serde::Deserialize, ToSchema)]