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:
Sayak Bhattacharya
2025-05-30 19:56:08 +05:30
committed by GitHub
parent 25dfa0ef60
commit 0476361251
37 changed files with 356 additions and 126 deletions

View File

@ -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,