feat(router): add support for payment_type field in payment intent (#2448)

This commit is contained in:
ItsMeShashank
2023-10-05 16:30:47 +05:30
committed by GitHub
parent db7f9fa801
commit f116728d1c
16 changed files with 126 additions and 2 deletions

View File

@ -298,6 +298,11 @@ pub struct PaymentsRequest {
/// The business profile to use for this payment, if not passed the default business profile
/// associated with the merchant account will be used.
pub profile_id: Option<String>,
/// The type of the payment that differentiates between normal and various types of mandate payments
#[schema(value_type = Option<PaymentType>)]
#[serde(default)]
pub payment_type: api_enums::PaymentType,
}
#[derive(Default, Debug, Clone, Copy)]