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

@ -88,3 +88,21 @@ pub struct AcquirerConfig {
pub struct AcquirerConfigMap(pub HashMap<common_utils::id_type::ProfileAcquirerId, AcquirerConfig>);
impl_to_sql_from_sql_json!(AcquirerConfigMap);
/// Merchant connector details
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, ToSchema)]
#[cfg(feature = "v2")]
pub struct MerchantConnectorAuthDetails {
/// The connector used for the payment
#[schema(value_type = Connector)]
pub connector_name: common_enums::connector_enums::Connector,
/// The merchant connector credentials used for the payment
#[schema(value_type = Object, example = r#"{
"merchant_connector_creds": {
"auth_type": "HeaderKey",
"api_key":"sk_test_xxxxxexamplexxxxxx12345"
},
}"#)]
pub merchant_connector_creds: common_utils::pii::SecretSerdeValue,
}