fix(router): make payment type optional in payments request (#2465)

This commit is contained in:
ItsMeShashank
2023-10-05 23:15:35 +05:30
committed by GitHub
parent bb2ba08153
commit b5cc7483f9
2 changed files with 2 additions and 3 deletions

View File

@ -301,8 +301,7 @@ pub struct PaymentsRequest {
/// 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,
pub payment_type: Option<api_enums::PaymentType>,
}
#[derive(Default, Debug, Clone, Copy)]