paymentlib/dto/
refund_request_request.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::enums::payment_status::PaymentStatus;
use serde::{Deserialize, Serialize};
use uuid::Uuid;

#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(rename_all = "camelCase")]
pub struct RefundRequestRequest {
    pub id: Option<Uuid>,
    pub user_id: Uuid,
    pub payee: Uuid,
    pub receipt: Uuid,
    pub payer : Uuid,
    pub amount: f64,
    pub comment: Option<String>,
    pub text: String,
    pub is_partial: Option<bool>,
    pub status: PaymentStatus,
}