mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 17:19:15 +08:00
refactor(router): added a new type minor unit to amount (#4629)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Hrithikesh <61539176+hrithikesh026@users.noreply.github.com>
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
//! Errors and error specific types for universal use
|
||||
|
||||
use crate::types::MinorUnit;
|
||||
|
||||
/// Custom Result
|
||||
/// A custom datatype that wraps the error variant <E> into a report, allowing
|
||||
/// error_stack::Report<E> specific extendability
|
||||
@ -89,7 +91,7 @@ pub enum PercentageError {
|
||||
/// percentage value
|
||||
percentage: f32,
|
||||
/// amount value
|
||||
amount: i64,
|
||||
amount: MinorUnit,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user