fix(connector): [PowerTranz] fix rsync not implemented error (#1734)

This commit is contained in:
Arjun Karthik
2023-07-18 19:29:50 +05:30
committed by GitHub
parent 5c2a9da6f8
commit d52b564f09

View File

@ -332,16 +332,7 @@ impl
impl ConnectorIntegration<api::PSync, types::PaymentsSyncData, types::PaymentsResponseData>
for Powertranz
{
fn build_request(
&self,
_req: &types::PaymentsSyncRouterData,
_connectors: &settings::Connectors,
) -> CustomResult<Option<services::Request>, errors::ConnectorError> {
Err(errors::ConnectorError::FlowNotSupported {
flow: "Payment Sync".to_string(),
connector: "PowerTranz".to_string(),
})?
}
// default implementation of build_request method will be executed
}
impl ConnectorIntegration<api::Capture, types::PaymentsCaptureData, types::PaymentsResponseData>
@ -574,16 +565,7 @@ impl ConnectorIntegration<api::Execute, types::RefundsData, types::RefundsRespon
impl ConnectorIntegration<api::RSync, types::RefundsData, types::RefundsResponseData>
for Powertranz
{
fn build_request(
&self,
_req: &types::RefundSyncRouterData,
_connectors: &settings::Connectors,
) -> CustomResult<Option<services::Request>, errors::ConnectorError> {
Err(errors::ConnectorError::FlowNotSupported {
flow: "Refund Sync".to_string(),
connector: "PowerTranz".to_string(),
})?
}
// default implementation of build_request method will be executed
}
#[async_trait::async_trait]