refactor(api_models): shrink Amount (#140)

This commit is contained in:
kos-for-juspay
2022-12-14 14:03:30 +01:00
committed by GitHub
parent 8b8ff8188f
commit a4d64eba7c
25 changed files with 149 additions and 114 deletions

View File

@ -8,7 +8,7 @@ pub struct RefundRequest {
pub refund_id: Option<String>,
pub payment_id: String,
pub merchant_id: Option<String>,
pub amount: Option<i32>,
pub amount: Option<i64>,
pub reason: Option<String>,
pub refund_type: Option<RefundType>,
pub metadata: Option<serde_json::Value>,
@ -26,7 +26,7 @@ pub enum RefundType {
pub struct RefundResponse {
pub refund_id: String,
pub payment_id: String,
pub amount: i32,
pub amount: i64,
pub currency: String,
pub reason: Option<String>,
pub status: RefundStatus,