mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
feat(core): add surcharge_details field to ResponsePaymentMethodTypes struct (#2435)
This commit is contained in:
@ -23,3 +23,6 @@ pub static FRM_CONFIGS_EG: &str = r#"
|
||||
pub const PAYMENTS_LIST_MAX_LIMIT_V1: u32 = 100;
|
||||
/// Maximum limit for payments list post api with filters
|
||||
pub const PAYMENTS_LIST_MAX_LIMIT_V2: u32 = 20;
|
||||
|
||||
/// surcharge percentage maximum precision length
|
||||
pub const SURCHARGE_PERCENTAGE_PRECISION_LENGTH: u8 = 2;
|
||||
|
||||
@ -76,6 +76,14 @@ pub enum QrCodeError {
|
||||
FailedToCreateQrCode,
|
||||
}
|
||||
|
||||
/// Api Models construction error
|
||||
#[derive(Debug, Clone, thiserror::Error, PartialEq, Eq)]
|
||||
pub enum ApiModelsError {
|
||||
/// Percentage Value provided was invalid
|
||||
#[error("Invalid Percentage value")]
|
||||
InvalidPercentageValue,
|
||||
}
|
||||
|
||||
/// Allows [error_stack::Report] to change between error contexts
|
||||
/// using the dependent [ErrorSwitch] trait to define relations & mappings between traits
|
||||
pub trait ReportSwitchExt<T, U> {
|
||||
|
||||
Reference in New Issue
Block a user