mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
feat(core): Altered the amount field in DisputePayload to StringMinorUnit (#8131)
Co-authored-by: Sayak Bhattacharya <sayak.b@Sayak-Bhattacharya-G092THXJ34.local>
This commit is contained in:
committed by
GitHub
parent
25dfa0ef60
commit
0476361251
@ -1,6 +1,6 @@
|
||||
use std::collections::HashMap;
|
||||
|
||||
use common_utils::types::TimeRange;
|
||||
use common_utils::types::{StringMinorUnit, TimeRange};
|
||||
use masking::{Deserialize, Serialize};
|
||||
use serde::de::Error;
|
||||
use time::PrimitiveDateTime;
|
||||
@ -19,7 +19,7 @@ pub struct DisputeResponse {
|
||||
/// The identifier for payment_attempt
|
||||
pub attempt_id: String,
|
||||
/// The dispute amount
|
||||
pub amount: String,
|
||||
pub amount: StringMinorUnit,
|
||||
/// The three-letter ISO currency code
|
||||
#[schema(value_type = Currency)]
|
||||
pub currency: Currency,
|
||||
|
||||
Reference in New Issue
Block a user