mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 21:37:41 +08:00
chore: refined the code
This commit is contained in:
@ -158,10 +158,13 @@ pub const APPLEPAY_VALIDATION_URL: &str =
|
||||
pub const X_REQUEST_ID: &str = "x-request-id";
|
||||
|
||||
/// Flow name
|
||||
pub const X_FLOW: &str = "x-flow";
|
||||
pub const X_FLOW_NAME: &str = "x-flow";
|
||||
|
||||
/// Connector name
|
||||
pub const X_CONNECTOR: &str = "x-connector";
|
||||
pub const X_CONNECTOR_NAME: &str = "x-connector";
|
||||
|
||||
/// Shadow Mode
|
||||
pub const X_SHADOW_MODE: &str = "x-shadow-mode";
|
||||
|
||||
/// Chat Session ID
|
||||
pub const X_CHAT_SESSION_ID: &str = "x-chat-session-id";
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
//! Errors and error specific types for universal use
|
||||
|
||||
use crate::types::MinorUnit;
|
||||
use serde::Serialize;
|
||||
|
||||
/// Custom Result
|
||||
/// A custom datatype that wraps the error variant <E> into a report, allowing
|
||||
@ -78,7 +79,7 @@ pub enum ValidationError {
|
||||
}
|
||||
|
||||
/// Integrity check errors.
|
||||
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize)]
|
||||
#[derive(Debug, Clone, PartialEq, Default, Serialize)]
|
||||
pub struct IntegrityCheckError {
|
||||
/// Field names for which integrity check failed!
|
||||
pub field_names: String,
|
||||
|
||||
Reference in New Issue
Block a user