chore: refined the code

This commit is contained in:
Amitsingh Tanwar
2025-10-07 01:23:33 +05:30
parent 907c27b9db
commit 940221de78
18 changed files with 250 additions and 210 deletions

View File

@ -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";

View File

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