mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 09:38:33 +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,10 +1,10 @@
|
||||
use common_utils::events::ApiEventMetric;
|
||||
use common_utils::{events::ApiEventMetric, types::MinorUnit};
|
||||
|
||||
/// QueryParams to be send to convert the amount -> from_currency -> to_currency
|
||||
#[derive(Debug, serde::Deserialize)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub struct CurrencyConversionParams {
|
||||
pub amount: i64,
|
||||
pub amount: MinorUnit,
|
||||
pub to_currency: String,
|
||||
pub from_currency: String,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user