mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 12:15:40 +08:00
refactor(gsm): add error_category column to gsm table (#6648)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
use common_enums::ErrorCategory;
|
||||
use utoipa::ToSchema;
|
||||
|
||||
use crate::enums::Connector;
|
||||
@ -26,6 +27,8 @@ pub struct GsmCreateRequest {
|
||||
pub unified_code: Option<String>,
|
||||
/// error message unified across the connectors
|
||||
pub unified_message: Option<String>,
|
||||
/// category in which error belongs to
|
||||
pub error_category: Option<ErrorCategory>,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Deserialize, serde::Serialize, ToSchema)]
|
||||
@ -88,6 +91,8 @@ pub struct GsmUpdateRequest {
|
||||
pub unified_code: Option<String>,
|
||||
/// error message unified across the connectors
|
||||
pub unified_message: Option<String>,
|
||||
/// category in which error belongs to
|
||||
pub error_category: Option<ErrorCategory>,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Deserialize, serde::Serialize, ToSchema)]
|
||||
@ -141,4 +146,6 @@ pub struct GsmResponse {
|
||||
pub unified_code: Option<String>,
|
||||
/// error message unified across the connectors
|
||||
pub unified_message: Option<String>,
|
||||
/// category in which error belongs to
|
||||
pub error_category: Option<ErrorCategory>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user