zernio 0.0.445

API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
Documentation
/*
 * 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};

/// UsageMeteringTotals : Sum of each product over the whole window (USD), plus `total`. Unaffected by `granularity`.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UsageMeteringTotals {
    #[serde(rename = "accounts", skip_serializing_if = "Option::is_none")]
    pub accounts: Option<f64>,
    #[serde(rename = "numbers", skip_serializing_if = "Option::is_none")]
    pub numbers: Option<f64>,
    #[serde(rename = "calls", skip_serializing_if = "Option::is_none")]
    pub calls: Option<f64>,
    #[serde(rename = "sms", skip_serializing_if = "Option::is_none")]
    pub sms: Option<f64>,
    #[serde(rename = "dlc", skip_serializing_if = "Option::is_none")]
    pub dlc: Option<f64>,
    #[serde(rename = "xApi", skip_serializing_if = "Option::is_none")]
    pub x_api: Option<f64>,
    #[serde(rename = "credits", skip_serializing_if = "Option::is_none")]
    pub credits: Option<f64>,
    #[serde(rename = "other", skip_serializing_if = "Option::is_none")]
    pub other: Option<f64>,
    #[serde(rename = "total", skip_serializing_if = "Option::is_none")]
    pub total: Option<f64>,
}

impl UsageMeteringTotals {
    /// Sum of each product over the whole window (USD), plus `total`. Unaffected by `granularity`.
    pub fn new() -> UsageMeteringTotals {
        UsageMeteringTotals {
            accounts: None,
            numbers: None,
            calls: None,
            sms: None,
            dlc: None,
            x_api: None,
            credits: None,
            other: None,
            total: None,
        }
    }
}