mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 12:15:40 +08:00
refactor(ui_tests): move ui_tests to test_utils crate to reduce development time (#1822)
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
use std::{collections::HashMap, env};
|
||||
|
||||
use masking::Secret;
|
||||
use router::types::ConnectorAuthType;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||
@ -289,3 +288,28 @@ pub struct AutomationConfigs {
|
||||
pub adyen_bancontact_username: Option<String>,
|
||||
pub adyen_bancontact_pass: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Default, Debug, Clone, serde::Deserialize)]
|
||||
#[serde(tag = "auth_type")]
|
||||
pub enum ConnectorAuthType {
|
||||
HeaderKey {
|
||||
api_key: Secret<String>,
|
||||
},
|
||||
BodyKey {
|
||||
api_key: Secret<String>,
|
||||
key1: Secret<String>,
|
||||
},
|
||||
SignatureKey {
|
||||
api_key: Secret<String>,
|
||||
key1: Secret<String>,
|
||||
api_secret: Secret<String>,
|
||||
},
|
||||
MultiAuthKey {
|
||||
api_key: Secret<String>,
|
||||
key1: Secret<String>,
|
||||
api_secret: Secret<String>,
|
||||
key2: Secret<String>,
|
||||
},
|
||||
#[default]
|
||||
NoKey,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user