/*
 * 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 ClaimReferralCodeDtoData {
    /// Address that signed this message
    #[serde(rename = "sender")]
    pub sender: String,
    #[serde(rename = "intent")]
    pub intent: models::IntentEnum,
    /// Message signedAt current timestamp (seconds since Unix Epoch)
    #[serde(rename = "signedAt")]
    pub signed_at: i64,
    /// The referral code to claim
    #[serde(rename = "code")]
    pub code: String,
}

impl ClaimReferralCodeDtoData {
    pub fn new(
        sender: String,
        intent: models::IntentEnum,
        signed_at: i64,
        code: String,
    ) -> ClaimReferralCodeDtoData {
        ClaimReferralCodeDtoData {
            sender,
            intent,
            signed_at,
            code,
        }
    }
}
