/*
 * Zernio API
 *
 * API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
 *
 * The version of the OpenAPI document: 1.0.4
 * Contact: support@zernio.com
 * Generated by: https://openapi-generator.tech
 */

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

/// OnWhatsAppAutomaticEventRequestCustomData : Purchase events may carry the detected amount.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct OnWhatsAppAutomaticEventRequestCustomData {
    #[serde(rename = "currency", skip_serializing_if = "Option::is_none")]
    pub currency: Option<String>,
    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
    pub value: Option<f64>,
}

impl OnWhatsAppAutomaticEventRequestCustomData {
    /// Purchase events may carry the detected amount.
    pub fn new() -> OnWhatsAppAutomaticEventRequestCustomData {
        OnWhatsAppAutomaticEventRequestCustomData {
            currency: None,
            value: None,
        }
    }
}
