mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
feat(core): add surcharge_details field to ResponsePaymentMethodTypes struct (#2435)
This commit is contained in:
@ -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