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:
Chethan Rao
2024-12-04 15:03:27 +05:30
committed by GitHub
parent 938b2a898e
commit fd82cf610a
13 changed files with 129 additions and 9 deletions

View File

@ -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>,
}