/*
 * Mithril
 *
 * Mithril Compute API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CurrentPricesResponse {
    #[serde(rename = "spot_price_cents", skip_serializing_if = "Option::is_none")]
    pub spot_price_cents: Option<i32>,
    #[serde(
        rename = "reserved_price_cents",
        skip_serializing_if = "Option::is_none"
    )]
    pub reserved_price_cents: Option<i32>,
    #[serde(
        rename = "minimum_price_cents",
        skip_serializing_if = "Option::is_none"
    )]
    pub minimum_price_cents: Option<i32>,
    #[serde(
        rename = "lowest_allocated_bid_cents",
        skip_serializing_if = "Option::is_none"
    )]
    pub lowest_allocated_bid_cents: Option<i32>,
    #[serde(
        rename = "dynamic_win_price_cents",
        skip_serializing_if = "Option::is_none"
    )]
    pub dynamic_win_price_cents: Option<i32>,
    #[serde(rename = "available_capacity", skip_serializing_if = "Option::is_none")]
    pub available_capacity: Option<i32>,
    #[serde(rename = "total_capacity", skip_serializing_if = "Option::is_none")]
    pub total_capacity: Option<i32>,
}

impl CurrentPricesResponse {
    pub fn new() -> CurrentPricesResponse {
        CurrentPricesResponse {
            spot_price_cents: None,
            reserved_price_cents: None,
            minimum_price_cents: None,
            lowest_allocated_bid_cents: None,
            dynamic_win_price_cents: None,
            available_capacity: None,
            total_capacity: None,
        }
    }
}
