/*
 * Ethereal Exchange API
 *
 * Ethereal HTTP API for real-time trading, order management, and market data access.
 *
 * The version of the OpenAPI document: 0.1.0
 *
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TotalPointsDto {
    /// Total points distributed (precision: 9)
    #[serde(rename = "totalPoints")]
    pub total_points: String,
    /// Total referral points distributed (precision: 9)
    #[serde(rename = "referralPoints")]
    pub referral_points: String,
    /// Last update timestamp of the aggregated points periods (ms since Unix Epoch)
    #[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
    pub updated_at: Option<i64>,
}

impl TotalPointsDto {
    pub fn new(total_points: String, referral_points: String) -> TotalPointsDto {
        TotalPointsDto {
            total_points,
            referral_points,
            updated_at: None,
        }
    }
}
