refactor(open_banking): Refactored to consume and use headers from SDK (#5884)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Sarthak Soni
2024-09-20 21:21:17 +05:30
committed by GitHub
parent c0cac8d913
commit d9270ace8d
44 changed files with 250 additions and 58 deletions

View File

@ -38,6 +38,7 @@ pub trait ConstructFlowSpecificData<F, Req, Res> {
customer: &Option<domain::Customer>,
merchant_connector_account: &helpers::MerchantConnectorAccountType,
merchant_recipient_data: Option<types::MerchantRecipientData>,
header_payload: Option<api_models::payments::HeaderPayload>,
) -> RouterResult<types::RouterData<F, Req, Res>>;
#[cfg(all(feature = "v2", feature = "customer_v2"))]
@ -50,6 +51,7 @@ pub trait ConstructFlowSpecificData<F, Req, Res> {
_customer: &Option<domain::Customer>,
_merchant_connector_account: &helpers::MerchantConnectorAccountType,
_merchant_recipient_data: Option<types::MerchantRecipientData>,
_header_payload: Option<api_models::payments::HeaderPayload>,
) -> RouterResult<types::RouterData<F, Req, Res>>;
async fn get_merchant_recipient_data<'a>(