mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-26 19:04:36 +08:00
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:
committed by
GitHub
parent
d2740f0322
commit
b185d85f6b
@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user