feat(core): accept merchant_connector_details in Refunds create and retrieve flow (#8441)

Co-authored-by: Aishwariyaa Anand <aishwariyaa.anand@Aishwariyaa-Anand-C3PGW02T6Y.local>
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Aishwariyaa Anand
2025-06-26 19:20:00 +05:30
committed by GitHub
parent d2740f0322
commit b185d85f6b
13 changed files with 439 additions and 92 deletions

View File

@ -95,7 +95,7 @@ impl MerchantConnectorAccount {
#[derive(Clone, Debug)]
pub enum MerchantConnectorAccountTypeDetails {
MerchantConnectorAccount(Box<MerchantConnectorAccount>),
MerchantConnectorDetails(api_models::payments::MerchantConnectorDetails),
MerchantConnectorDetails(common_types::domain::MerchantConnectorAuthDetails),
}
#[cfg(feature = "v2")]

View File

@ -2,7 +2,7 @@
use std::marker::PhantomData;
#[cfg(feature = "v2")]
use api_models::payments::{MerchantConnectorDetails, SessionToken, VaultSessionDetails};
use api_models::payments::{SessionToken, VaultSessionDetails};
#[cfg(feature = "v1")]
use common_types::primitive_wrappers::{
AlwaysRequestExtendedAuthorization, RequestExtendedAuthorizationBool,
@ -865,7 +865,7 @@ where
pub payment_address: payment_address::PaymentAddress,
pub mandate_data: Option<api_models::payments::MandateIds>,
pub payment_method: Option<payment_methods::PaymentMethod>,
pub merchant_connector_details: Option<MerchantConnectorDetails>,
pub merchant_connector_details: Option<common_types::domain::MerchantConnectorAuthDetails>,
}
#[cfg(feature = "v2")]
@ -918,7 +918,7 @@ where
/// Should the payment status be synced with connector
/// This will depend on the payment status and the force sync flag in the request
pub should_sync_with_connector: bool,
pub merchant_connector_details: Option<MerchantConnectorDetails>,
pub merchant_connector_details: Option<common_types::domain::MerchantConnectorAuthDetails>,
}
#[cfg(feature = "v2")]