mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(payments): add support for connector testing (Adyen) (#7874)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -6729,6 +6729,7 @@ pub struct ConnectorMetadata {
|
||||
pub airwallex: Option<AirwallexData>,
|
||||
pub noon: Option<NoonData>,
|
||||
pub braintree: Option<BraintreeData>,
|
||||
pub adyen: Option<AdyenConnectorMetadata>,
|
||||
}
|
||||
|
||||
impl ConnectorMetadata {
|
||||
@ -6779,6 +6780,18 @@ pub struct BraintreeData {
|
||||
pub merchant_config_currency: Option<api_enums::Currency>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, ToSchema)]
|
||||
pub struct AdyenConnectorMetadata {
|
||||
pub testing: AdyenTestingData,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, ToSchema)]
|
||||
pub struct AdyenTestingData {
|
||||
/// Holder name to be sent to Adyen for a card payment(CIT) or a generic payment(MIT). This value overrides the values for card.card_holder_name and applies during both CIT and MIT payment transactions.
|
||||
#[schema(value_type = String)]
|
||||
pub holder_name: Option<Secret<String>>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, ToSchema)]
|
||||
pub struct ApplepayConnectorMetadataRequest {
|
||||
pub session_token_data: Option<SessionTokenInfo>,
|
||||
|
||||
Reference in New Issue
Block a user