@@ -30,11 +30,8 @@ use hyperswitch_domain_models::{
30
30
} ;
31
31
use hyperswitch_interfaces:: {
32
32
api:: {
33
-
34
- self , ConnectorCommon , ConnectorCommonExt , ConnectorIntegration , ConnectorSpecifications ,
35
- ConnectorRedirectResponse ,
36
- ConnectorValidation ,
37
- ,
33
+ self , ConnectorCommon , ConnectorCommonExt , ConnectorIntegration , ConnectorRedirectResponse ,
34
+ ConnectorSpecifications , ConnectorValidation ,
38
35
} ,
39
36
configs:: Connectors ,
40
37
errors,
@@ -165,9 +162,10 @@ impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Xe
165
162
}
166
163
167
164
impl ConnectorValidation for Xendit {
168
- fn validate_capture_method (
165
+ fn validate_connector_against_payment_request (
169
166
& self ,
170
167
capture_method : Option < CaptureMethod > ,
168
+ _payment_method : enums:: PaymentMethod ,
171
169
_pmt : Option < PaymentMethodType > ,
172
170
) -> CustomResult < ( ) , errors:: ConnectorError > {
173
171
let capture_method = capture_method. unwrap_or_default ( ) ;
@@ -176,7 +174,7 @@ impl ConnectorValidation for Xendit {
176
174
| CaptureMethod :: Manual
177
175
| CaptureMethod :: SequentialAutomatic => Ok ( ( ) ) ,
178
176
CaptureMethod :: ManualMultiple | CaptureMethod :: Scheduled => Err (
179
- utils:: construct_not_implemented_error_report ( capture_method, self . id ( ) ) ,
177
+ utils:: construct_not_supported_error_report ( capture_method, self . id ( ) ) ,
180
178
) ,
181
179
}
182
180
}
0 commit comments