mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(router): Add support for retries with clear pan and network token payment method data (#6905)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -1960,6 +1960,9 @@ pub struct ProfileCreate {
|
||||
|
||||
/// Card Testing Guard Configs
|
||||
pub card_testing_guard_config: Option<CardTestingGuardConfig>,
|
||||
|
||||
///Indicates if clear pan retries is enabled or not.
|
||||
pub is_clear_pan_retries_enabled: Option<bool>,
|
||||
}
|
||||
|
||||
#[nutype::nutype(
|
||||
@ -2081,6 +2084,9 @@ pub struct ProfileCreate {
|
||||
|
||||
/// Card Testing Guard Configs
|
||||
pub card_testing_guard_config: Option<CardTestingGuardConfig>,
|
||||
|
||||
///Indicates if clear pan retries is enabled or not.
|
||||
pub is_clear_pan_retries_enabled: Option<bool>,
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1")]
|
||||
@ -2225,6 +2231,9 @@ pub struct ProfileResponse {
|
||||
|
||||
/// Card Testing Guard Configs
|
||||
pub card_testing_guard_config: Option<CardTestingGuardConfig>,
|
||||
|
||||
///Indicates if clear pan retries is enabled or not.
|
||||
pub is_clear_pan_retries_enabled: bool,
|
||||
}
|
||||
|
||||
#[cfg(feature = "v2")]
|
||||
@ -2352,6 +2361,9 @@ pub struct ProfileResponse {
|
||||
|
||||
/// Card Testing Guard Configs
|
||||
pub card_testing_guard_config: Option<CardTestingGuardConfig>,
|
||||
|
||||
///Indicates if clear pan retries is enabled or not.
|
||||
pub is_clear_pan_retries_enabled: bool,
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1")]
|
||||
@ -2486,6 +2498,9 @@ pub struct ProfileUpdate {
|
||||
|
||||
/// Card Testing Guard Configs
|
||||
pub card_testing_guard_config: Option<CardTestingGuardConfig>,
|
||||
|
||||
///Indicates if clear pan retries is enabled or not.
|
||||
pub is_clear_pan_retries_enabled: Option<bool>,
|
||||
}
|
||||
|
||||
#[cfg(feature = "v2")]
|
||||
@ -2601,6 +2616,9 @@ pub struct ProfileUpdate {
|
||||
|
||||
/// Card Testing Guard Configs
|
||||
pub card_testing_guard_config: Option<CardTestingGuardConfig>,
|
||||
|
||||
///Indicates if clear pan retries is enabled or not.
|
||||
pub is_clear_pan_retries_enabled: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize, ToSchema)]
|
||||
|
||||
@ -29,6 +29,8 @@ pub struct GsmCreateRequest {
|
||||
pub unified_message: Option<String>,
|
||||
/// category in which error belongs to
|
||||
pub error_category: Option<ErrorCategory>,
|
||||
/// indicates if retry with pan is possible
|
||||
pub clear_pan_possible: bool,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Deserialize, serde::Serialize, ToSchema)]
|
||||
@ -93,6 +95,8 @@ pub struct GsmUpdateRequest {
|
||||
pub unified_message: Option<String>,
|
||||
/// category in which error belongs to
|
||||
pub error_category: Option<ErrorCategory>,
|
||||
/// indicates if retry with pan is possible
|
||||
pub clear_pan_possible: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Deserialize, serde::Serialize, ToSchema)]
|
||||
@ -148,4 +152,6 @@ pub struct GsmResponse {
|
||||
pub unified_message: Option<String>,
|
||||
/// category in which error belongs to
|
||||
pub error_category: Option<ErrorCategory>,
|
||||
/// indicates if retry with pan is possible
|
||||
pub clear_pan_possible: bool,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user