paymentlib/dto/payment_plan_request.rs
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>>,
}