File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -301,8 +301,7 @@ pub struct PaymentsRequest {
301
301
302
302
/// The type of the payment that differentiates between normal and various types of mandate payments
303
303
#[ schema( value_type = Option <PaymentType >) ]
304
- #[ serde( default ) ]
305
- pub payment_type : api_enums:: PaymentType ,
304
+ pub payment_type : Option < api_enums:: PaymentType > ,
306
305
}
307
306
308
307
#[ derive( Default , Debug , Clone , Copy ) ]
Original file line number Diff line number Diff line change @@ -871,7 +871,7 @@ where
871
871
// the operation are flow agnostic, and the flow is only required in the post_update_tracker
872
872
// Thus the flow can be generated just before calling the connector instead of explicitly passing it here.
873
873
874
- match req. payment_type {
874
+ match req. payment_type . unwrap_or_default ( ) {
875
875
api_models:: enums:: PaymentType :: Normal
876
876
| api_models:: enums:: PaymentType :: RecurringMandate
877
877
| api_models:: enums:: PaymentType :: NewMandate => payments:: payments_core :: <
You can’t perform that action at this time.
0 commit comments