mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(business_profile): add business_profile config to enable external vault (#7876)
This commit is contained in:
@ -281,6 +281,13 @@ pub struct AuthenticationConnectorDetails {
|
||||
pub three_ds_requestor_app_url: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Deserialize, Serialize, ToSchema)]
|
||||
pub struct ExternalVaultConnectorDetails {
|
||||
/// Merchant Connector id to be stored for vault connector
|
||||
#[schema(value_type = Option<String>)]
|
||||
pub vault_connector_id: id_type::MerchantConnectorAccountId,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Deserialize, Serialize, ToSchema)]
|
||||
pub struct MerchantAccountMetadata {
|
||||
pub compatible_connector: Option<api_enums::Connector>,
|
||||
@ -2124,6 +2131,12 @@ pub struct ProfileCreate {
|
||||
//Merchant country for the profile
|
||||
#[schema(value_type = Option<CountryAlpha2>, example = "US")]
|
||||
pub merchant_business_country: Option<api_enums::CountryAlpha2>,
|
||||
|
||||
/// Indicates if external vault is enabled or not.
|
||||
pub is_external_vault_enabled: Option<bool>,
|
||||
|
||||
/// External Vault Connector Details
|
||||
pub external_vault_connector_details: Option<ExternalVaultConnectorDetails>,
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1")]
|
||||
@ -2423,6 +2436,12 @@ pub struct ProfileResponse {
|
||||
//Merchant country for the profile
|
||||
#[schema(value_type = Option<CountryAlpha2>, example = "US")]
|
||||
pub merchant_business_country: Option<api_enums::CountryAlpha2>,
|
||||
|
||||
/// Indicates if external vault is enabled or not.
|
||||
pub is_external_vault_enabled: Option<bool>,
|
||||
|
||||
/// External Vault Connector Details
|
||||
pub external_vault_connector_details: Option<ExternalVaultConnectorDetails>,
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1")]
|
||||
@ -2697,6 +2716,12 @@ pub struct ProfileUpdate {
|
||||
//Merchant country for the profile
|
||||
#[schema(value_type = Option<CountryAlpha2>, example = "US")]
|
||||
pub merchant_business_country: Option<api_enums::CountryAlpha2>,
|
||||
|
||||
/// Indicates if external vault is enabled or not.
|
||||
pub is_external_vault_enabled: Option<bool>,
|
||||
|
||||
/// External Vault Connector Details
|
||||
pub external_vault_connector_details: Option<ExternalVaultConnectorDetails>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize, ToSchema)]
|
||||
|
||||
Reference in New Issue
Block a user