mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
feat(router): add merchant_category_code in business profile (#8296)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -2121,6 +2121,10 @@ pub struct ProfileCreate {
|
||||
|
||||
/// Indicates if pre network tokenization is enabled or not
|
||||
pub is_pre_network_tokenization_enabled: Option<bool>,
|
||||
|
||||
/// Four-digit code assigned based on business type to determine processing fees and risk level
|
||||
#[schema(value_type = Option<MerchantCategoryCode>, example = "5411")]
|
||||
pub merchant_category_code: Option<api_enums::MerchantCategoryCode>,
|
||||
}
|
||||
|
||||
#[nutype::nutype(
|
||||
@ -2263,6 +2267,10 @@ pub struct ProfileCreate {
|
||||
|
||||
/// External Vault Connector Details
|
||||
pub external_vault_connector_details: Option<ExternalVaultConnectorDetails>,
|
||||
|
||||
/// Four-digit code assigned based on business type to determine processing fees and risk level
|
||||
#[schema(value_type = Option<MerchantCategoryCode>, example = "5411")]
|
||||
pub merchant_category_code: Option<api_enums::MerchantCategoryCode>,
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1")]
|
||||
@ -2434,6 +2442,10 @@ pub struct ProfileResponse {
|
||||
/// Indicates if the redirection has to open in the iframe
|
||||
#[schema(example = false)]
|
||||
pub is_iframe_redirection_enabled: Option<bool>,
|
||||
|
||||
/// Four-digit code assigned based on business type to determine processing fees and risk level
|
||||
#[schema(value_type = Option<MerchantCategoryCode>, example = "5411")]
|
||||
pub merchant_category_code: Option<api_enums::MerchantCategoryCode>,
|
||||
}
|
||||
|
||||
#[cfg(feature = "v2")]
|
||||
@ -2584,6 +2596,10 @@ pub struct ProfileResponse {
|
||||
|
||||
/// External Vault Connector Details
|
||||
pub external_vault_connector_details: Option<ExternalVaultConnectorDetails>,
|
||||
|
||||
/// Four-digit code assigned based on business type to determine processing fees and risk level
|
||||
#[schema(value_type = Option<MerchantCategoryCode>, example = "5411")]
|
||||
pub merchant_category_code: Option<api_enums::MerchantCategoryCode>,
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1")]
|
||||
@ -2740,6 +2756,10 @@ pub struct ProfileUpdate {
|
||||
/// Indicates if pre network tokenization is enabled or not
|
||||
#[schema(default = false, example = false)]
|
||||
pub is_pre_network_tokenization_enabled: Option<bool>,
|
||||
|
||||
/// Four-digit code assigned based on business type to determine processing fees and risk level
|
||||
#[schema(value_type = Option<MerchantCategoryCode>, example = "5411")]
|
||||
pub merchant_category_code: Option<api_enums::MerchantCategoryCode>,
|
||||
}
|
||||
|
||||
#[cfg(feature = "v2")]
|
||||
@ -2872,6 +2892,10 @@ pub struct ProfileUpdate {
|
||||
|
||||
/// External Vault Connector Details
|
||||
pub external_vault_connector_details: Option<ExternalVaultConnectorDetails>,
|
||||
|
||||
/// Four-digit code assigned based on business type to determine processing fees and risk level
|
||||
#[schema(value_type = Option<MerchantCategoryCode>, example = "5411")]
|
||||
pub merchant_category_code: Option<api_enums::MerchantCategoryCode>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize, ToSchema)]
|
||||
|
||||
@ -107,7 +107,7 @@ impl TryFrom<(payment_methods::CoBadgedCardData, String)> for DebitRoutingReques
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct CoBadgedCardRequest {
|
||||
pub merchant_category_code: common_enums::MerchantCategoryCode,
|
||||
pub merchant_category_code: common_enums::DecisionEngineMerchantCategoryCode,
|
||||
pub acquirer_country: common_enums::CountryAlpha2,
|
||||
pub co_badged_card_data: Option<DebitRoutingRequestData>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user