hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * Hanzo Cloud API
 *
 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
 *
 * The version of the OpenAPI document: v1
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Offer {
    /// whether it can be bought right now
    #[serde(rename = "available", skip_serializing_if = "Option::is_none")]
    pub available: Option<bool>,
    /// the currency both prices are in
    #[serde(rename = "currency", skip_serializing_if = "Option::is_none")]
    pub currency: Option<String>,
    /// the name this quote prices
    #[serde(rename = "domain", skip_serializing_if = "Option::is_none")]
    pub domain: Option<String>,
    /// whether the registry prices it above the standard rate
    #[serde(rename = "premium", skip_serializing_if = "Option::is_none")]
    pub premium: Option<bool>,
    /// sell (first-term registration)
    #[serde(rename = "priceCents", skip_serializing_if = "Option::is_none")]
    pub price_cents: Option<i32>,
    /// sell (renewal)
    #[serde(rename = "renewalPriceCents", skip_serializing_if = "Option::is_none")]
    pub renewal_price_cents: Option<i32>,
    /// the top-level domain the name sits under
    #[serde(rename = "tld", skip_serializing_if = "Option::is_none")]
    pub tld: Option<String>,
}

impl Offer {
    pub fn new() -> Offer {
        Offer {
            available: None,
            currency: None,
            domain: None,
            premium: None,
            price_cents: None,
            renewal_price_cents: None,
            tld: None,
        }
    }
}