mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 21:07:58 +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:
@ -174,7 +174,7 @@ pub async fn generate_sample_data(
|
||||
true => common_enums::IntentStatus::Failed,
|
||||
_ => common_enums::IntentStatus::Succeeded,
|
||||
},
|
||||
amount: amount * 100,
|
||||
amount: common_utils::types::MinorUnit::new(amount * 100),
|
||||
currency: Some(
|
||||
*currency_vec
|
||||
.get((num - 1) % currency_vec_len)
|
||||
@ -192,7 +192,7 @@ pub async fn generate_sample_data(
|
||||
),
|
||||
attempt_count: 1,
|
||||
customer_id: Some("hs-dashboard-user".to_string()),
|
||||
amount_captured: Some(amount * 100),
|
||||
amount_captured: Some(common_utils::types::MinorUnit::new(amount * 100)),
|
||||
profile_id: Some(profile_id.clone()),
|
||||
return_url: Default::default(),
|
||||
metadata: Default::default(),
|
||||
|
||||
Reference in New Issue
Block a user