paymentlib/jsonb/discount.rs
use serde::{Deserialize, Serialize};
use uuid::Uuid;
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct Discount {
pub id: Uuid,
pub title: String,
pub discount_type: String, //todo enum
pub discount_amount: Option<f64>,
pub discount_percent: Option<f64>,
}