paymentlib/dto/
installment_request.rsuse chrono::naive::serde::ts_milliseconds;
use chrono::NaiveDateTime;
use common::enums::payment_gateway::PaymentGateway;
use serde::{Deserialize, Serialize};
use uuid::Uuid;
#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(rename_all = "camelCase")]
pub struct InstallmentRequest {
pub id: Option<Uuid>,
pub paying_user: Option<Uuid>,
pub payer: Option<Uuid>,
pub invoice: Option<Uuid>,
pub parent_installment: Option<Uuid>,
pub amount: f64,
#[serde(with = "ts_milliseconds")]
pub due_date: NaiveDateTime,
pub payment_gateway: Option<PaymentGateway>,
}