RTIX / src /domain /models /settlement.rs
github-actions
deploy: clean backend production release
7856e60
Raw
History Blame Contribute Delete
512 Bytes
use chrono::NaiveDateTime;
use serde::{Deserialize, Serialize};
use uuid::Uuid;
#[derive(Serialize, Deserialize, sqlx::FromRow, Debug, Clone)]
pub struct SettlementRecord {
pub settlement_id: Uuid,
pub transaction_id: String,
pub merchant_id: String,
pub gross_amount_inr: f64,
pub platform_fee_inr: f64,
pub delivery_fee_inr: f64,
pub tax_amount_inr: f64,
pub net_payout_inr: f64,
pub utr_number: Option<String>,
pub settled_at: NaiveDateTime,
pub status: String,
}