mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 05:17:02 +08:00
fix(connector): Remove set_body method for connectors implementing default get_request_body (#3182)
This commit is contained in:
@ -214,9 +214,6 @@ impl
|
|||||||
.url(&types::PaymentsSyncType::get_url(self, req, connectors)?)
|
.url(&types::PaymentsSyncType::get_url(self, req, connectors)?)
|
||||||
.attach_default_headers()
|
.attach_default_headers()
|
||||||
.headers(types::PaymentsSyncType::get_headers(self, req, connectors)?)
|
.headers(types::PaymentsSyncType::get_headers(self, req, connectors)?)
|
||||||
.set_body(types::PaymentsSyncType::get_request_body(
|
|
||||||
self, req, connectors,
|
|
||||||
)?)
|
|
||||||
.build(),
|
.build(),
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|||||||
@ -197,9 +197,6 @@ impl ConnectorIntegration<api::AccessTokenAuth, types::AccessTokenRequestData, t
|
|||||||
.attach_default_headers()
|
.attach_default_headers()
|
||||||
.headers(types::RefreshTokenType::get_headers(self, req, connectors)?)
|
.headers(types::RefreshTokenType::get_headers(self, req, connectors)?)
|
||||||
.url(&types::RefreshTokenType::get_url(self, req, connectors)?)
|
.url(&types::RefreshTokenType::get_url(self, req, connectors)?)
|
||||||
.set_body(types::RefreshTokenType::get_request_body(
|
|
||||||
self, req, connectors,
|
|
||||||
)?)
|
|
||||||
.build(),
|
.build(),
|
||||||
);
|
);
|
||||||
logger::debug!(payu_access_token_request=?req);
|
logger::debug!(payu_access_token_request=?req);
|
||||||
@ -919,9 +916,6 @@ impl ConnectorIntegration<api::RSync, types::RefundsData, types::RefundsResponse
|
|||||||
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
|
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
|
||||||
.attach_default_headers()
|
.attach_default_headers()
|
||||||
.headers(types::RefundSyncType::get_headers(self, req, connectors)?)
|
.headers(types::RefundSyncType::get_headers(self, req, connectors)?)
|
||||||
.set_body(types::RefundSyncType::get_request_body(
|
|
||||||
self, req, connectors,
|
|
||||||
)?)
|
|
||||||
.build(),
|
.build(),
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|||||||
@ -630,9 +630,6 @@ impl ConnectorIntegration<api::RSync, types::RefundsData, types::RefundsResponse
|
|||||||
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
|
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
|
||||||
.attach_default_headers()
|
.attach_default_headers()
|
||||||
.headers(types::RefundSyncType::get_headers(self, req, connectors)?)
|
.headers(types::RefundSyncType::get_headers(self, req, connectors)?)
|
||||||
.set_body(types::RefundSyncType::get_request_body(
|
|
||||||
self, req, connectors,
|
|
||||||
)?)
|
|
||||||
.build(),
|
.build(),
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|||||||
@ -839,9 +839,6 @@ impl ConnectorIntegration<api::RSync, types::RefundsData, types::RefundsResponse
|
|||||||
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
|
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
|
||||||
.attach_default_headers()
|
.attach_default_headers()
|
||||||
.headers(types::RefundSyncType::get_headers(self, req, connectors)?)
|
.headers(types::RefundSyncType::get_headers(self, req, connectors)?)
|
||||||
.set_body(types::RefundSyncType::get_request_body(
|
|
||||||
self, req, connectors,
|
|
||||||
)?)
|
|
||||||
.build(),
|
.build(),
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|||||||
@ -429,9 +429,6 @@ impl ConnectorIntegration<api::PSync, types::PaymentsSyncData, types::PaymentsRe
|
|||||||
.url(&types::PaymentsSyncType::get_url(self, req, connectors)?)
|
.url(&types::PaymentsSyncType::get_url(self, req, connectors)?)
|
||||||
.attach_default_headers()
|
.attach_default_headers()
|
||||||
.headers(types::PaymentsSyncType::get_headers(self, req, connectors)?)
|
.headers(types::PaymentsSyncType::get_headers(self, req, connectors)?)
|
||||||
.set_body(types::PaymentsSyncType::get_request_body(
|
|
||||||
self, req, connectors,
|
|
||||||
)?)
|
|
||||||
.build(),
|
.build(),
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
@ -781,9 +778,6 @@ impl ConnectorIntegration<api::RSync, types::RefundsData, types::RefundsResponse
|
|||||||
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
|
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
|
||||||
.attach_default_headers()
|
.attach_default_headers()
|
||||||
.headers(types::RefundSyncType::get_headers(self, req, connectors)?)
|
.headers(types::RefundSyncType::get_headers(self, req, connectors)?)
|
||||||
.set_body(types::RefundSyncType::get_request_body(
|
|
||||||
self, req, connectors,
|
|
||||||
)?)
|
|
||||||
.build(),
|
.build(),
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|||||||
@ -534,9 +534,6 @@ impl<const T: u8> ConnectorIntegration<api::RSync, types::RefundsData, types::Re
|
|||||||
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
|
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
|
||||||
.attach_default_headers()
|
.attach_default_headers()
|
||||||
.headers(types::RefundSyncType::get_headers(self, req, connectors)?)
|
.headers(types::RefundSyncType::get_headers(self, req, connectors)?)
|
||||||
.set_body(types::RefundSyncType::get_request_body(
|
|
||||||
self, req, connectors,
|
|
||||||
)?)
|
|
||||||
.build(),
|
.build(),
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|||||||
@ -816,9 +816,6 @@ impl ConnectorIntegration<api::RSync, types::RefundsData, types::RefundsResponse
|
|||||||
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
|
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
|
||||||
.attach_default_headers()
|
.attach_default_headers()
|
||||||
.headers(types::RefundSyncType::get_headers(self, req, connectors)?)
|
.headers(types::RefundSyncType::get_headers(self, req, connectors)?)
|
||||||
.set_body(types::RefundSyncType::get_request_body(
|
|
||||||
self, req, connectors,
|
|
||||||
)?)
|
|
||||||
.build(),
|
.build(),
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|||||||
@ -703,9 +703,6 @@ impl ConnectorIntegration<api::RSync, types::RefundsData, types::RefundsResponse
|
|||||||
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
|
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
|
||||||
.attach_default_headers()
|
.attach_default_headers()
|
||||||
.headers(types::RefundSyncType::get_headers(self, req, connectors)?)
|
.headers(types::RefundSyncType::get_headers(self, req, connectors)?)
|
||||||
.set_body(types::RefundSyncType::get_request_body(
|
|
||||||
self, req, connectors,
|
|
||||||
)?)
|
|
||||||
.build(),
|
.build(),
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|||||||
@ -570,9 +570,6 @@ impl ConnectorIntegration<api::RSync, types::RefundsData, types::RefundsResponse
|
|||||||
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
|
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
|
||||||
.attach_default_headers()
|
.attach_default_headers()
|
||||||
.headers(types::RefundSyncType::get_headers(self, req, connectors)?)
|
.headers(types::RefundSyncType::get_headers(self, req, connectors)?)
|
||||||
.set_body(types::RefundSyncType::get_request_body(
|
|
||||||
self, req, connectors,
|
|
||||||
)?)
|
|
||||||
.build(),
|
.build(),
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|||||||
@ -478,9 +478,6 @@ impl ConnectorIntegration<api::RSync, types::RefundsData, types::RefundsResponse
|
|||||||
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
|
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
|
||||||
.attach_default_headers()
|
.attach_default_headers()
|
||||||
.headers(types::RefundSyncType::get_headers(self, req, connectors)?)
|
.headers(types::RefundSyncType::get_headers(self, req, connectors)?)
|
||||||
.set_body(types::RefundSyncType::get_request_body(
|
|
||||||
self, req, connectors,
|
|
||||||
)?)
|
|
||||||
.build(),
|
.build(),
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|||||||
@ -601,9 +601,6 @@ impl ConnectorIntegration<api::RSync, types::RefundsData, types::RefundsResponse
|
|||||||
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
|
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
|
||||||
.attach_default_headers()
|
.attach_default_headers()
|
||||||
.headers(types::RefundSyncType::get_headers(self, req, connectors)?)
|
.headers(types::RefundSyncType::get_headers(self, req, connectors)?)
|
||||||
.set_body(types::RefundSyncType::get_request_body(
|
|
||||||
self, req, connectors,
|
|
||||||
)?)
|
|
||||||
.build(),
|
.build(),
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|||||||
@ -489,9 +489,6 @@ impl ConnectorIntegration<api::RSync, types::RefundsData, types::RefundsResponse
|
|||||||
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
|
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
|
||||||
.attach_default_headers()
|
.attach_default_headers()
|
||||||
.headers(types::RefundSyncType::get_headers(self, req, connectors)?)
|
.headers(types::RefundSyncType::get_headers(self, req, connectors)?)
|
||||||
.set_body(types::RefundSyncType::get_request_body(
|
|
||||||
self, req, connectors,
|
|
||||||
)?)
|
|
||||||
.build(),
|
.build(),
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|||||||
@ -734,9 +734,6 @@ impl
|
|||||||
.headers(types::PaymentsCompleteAuthorizeType::get_headers(
|
.headers(types::PaymentsCompleteAuthorizeType::get_headers(
|
||||||
self, req, connectors,
|
self, req, connectors,
|
||||||
)?)
|
)?)
|
||||||
.set_body(types::PaymentsCompleteAuthorizeType::get_request_body(
|
|
||||||
self, req, connectors,
|
|
||||||
)?)
|
|
||||||
.build(),
|
.build(),
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|||||||
@ -730,9 +730,6 @@ impl ConnectorIntegration<api::RSync, types::RefundsData, types::RefundsResponse
|
|||||||
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
|
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
|
||||||
.attach_default_headers()
|
.attach_default_headers()
|
||||||
.headers(types::RefundSyncType::get_headers(self, req, connectors)?)
|
.headers(types::RefundSyncType::get_headers(self, req, connectors)?)
|
||||||
.set_body(types::RefundSyncType::get_request_body(
|
|
||||||
self, req, connectors,
|
|
||||||
)?)
|
|
||||||
.build(),
|
.build(),
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|||||||
@ -666,9 +666,6 @@ impl
|
|||||||
.url(&types::PaymentsSyncType::get_url(self, req, connectors)?)
|
.url(&types::PaymentsSyncType::get_url(self, req, connectors)?)
|
||||||
.attach_default_headers()
|
.attach_default_headers()
|
||||||
.headers(types::PaymentsSyncType::get_headers(self, req, connectors)?)
|
.headers(types::PaymentsSyncType::get_headers(self, req, connectors)?)
|
||||||
.set_body(types::PaymentsSyncType::get_request_body(
|
|
||||||
self, req, connectors,
|
|
||||||
)?)
|
|
||||||
.build(),
|
.build(),
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
@ -1335,9 +1332,6 @@ impl services::ConnectorIntegration<api::RSync, types::RefundsData, types::Refun
|
|||||||
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
|
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
|
||||||
.attach_default_headers()
|
.attach_default_headers()
|
||||||
.headers(types::RefundSyncType::get_headers(self, req, connectors)?)
|
.headers(types::RefundSyncType::get_headers(self, req, connectors)?)
|
||||||
.set_body(types::RefundSyncType::get_request_body(
|
|
||||||
self, req, connectors,
|
|
||||||
)?)
|
|
||||||
.build(),
|
.build(),
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|||||||
@ -291,9 +291,6 @@ impl ConnectorIntegration<api::PSync, types::PaymentsSyncData, types::PaymentsRe
|
|||||||
.url(&types::PaymentsSyncType::get_url(self, req, connectors)?)
|
.url(&types::PaymentsSyncType::get_url(self, req, connectors)?)
|
||||||
.attach_default_headers()
|
.attach_default_headers()
|
||||||
.headers(types::PaymentsSyncType::get_headers(self, req, connectors)?)
|
.headers(types::PaymentsSyncType::get_headers(self, req, connectors)?)
|
||||||
.set_body(types::PaymentsSyncType::get_request_body(
|
|
||||||
self, req, connectors,
|
|
||||||
)?)
|
|
||||||
.build(),
|
.build(),
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
@ -638,9 +635,6 @@ impl ConnectorIntegration<api::RSync, types::RefundsData, types::RefundsResponse
|
|||||||
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
|
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
|
||||||
.attach_default_headers()
|
.attach_default_headers()
|
||||||
.headers(types::RefundSyncType::get_headers(self, req, connectors)?)
|
.headers(types::RefundSyncType::get_headers(self, req, connectors)?)
|
||||||
.set_body(types::RefundSyncType::get_request_body(
|
|
||||||
self, req, connectors,
|
|
||||||
)?)
|
|
||||||
.build(),
|
.build(),
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|||||||
@ -515,9 +515,6 @@ impl ConnectorIntegration<api::RSync, types::RefundsData, types::RefundsResponse
|
|||||||
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
|
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
|
||||||
.attach_default_headers()
|
.attach_default_headers()
|
||||||
.headers(types::RefundSyncType::get_headers(self, req, connectors)?)
|
.headers(types::RefundSyncType::get_headers(self, req, connectors)?)
|
||||||
.set_body(types::RefundSyncType::get_request_body(
|
|
||||||
self, req, connectors,
|
|
||||||
)?)
|
|
||||||
.build(),
|
.build(),
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user