mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 12:15:40 +08:00
feat: add support for updating surcharge_applicable field intent (#2647)
This commit is contained in:
@ -77,11 +77,20 @@ pub enum QrCodeError {
|
||||
}
|
||||
|
||||
/// Api Models construction error
|
||||
#[derive(Debug, Clone, thiserror::Error, PartialEq, Eq)]
|
||||
pub enum ApiModelsError {
|
||||
#[derive(Debug, Clone, thiserror::Error, PartialEq)]
|
||||
pub enum PercentageError {
|
||||
/// Percentage Value provided was invalid
|
||||
#[error("Invalid Percentage value")]
|
||||
InvalidPercentageValue,
|
||||
|
||||
/// Error occurred while calculating percentage
|
||||
#[error("Failed apply percentage of {percentage} on {amount}")]
|
||||
UnableToApplyPercentage {
|
||||
/// percentage value
|
||||
percentage: f32,
|
||||
/// amount value
|
||||
amount: i64,
|
||||
},
|
||||
}
|
||||
|
||||
/// Allows [error_stack::Report] to change between error contexts
|
||||
|
||||
Reference in New Issue
Block a user