paymentlib/dto/
payment_plan_request.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20




use serde::{Deserialize, Serialize};
use uuid::Uuid;


use crate::jsonb::discount::Discount;


#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(rename_all = "camelCase")]
pub struct PaymentPlanRequest {
    pub id: Option<Uuid>,
    pub payee: Option<Uuid>,
    pub amount: f64,
    pub title: Option<String>,
    pub discounts: Option<Vec<Discount>>,
}