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 OppReq {
    /// Amount is the deal value in minor units (cents) of Currency.
    #[serde(rename = "amount", skip_serializing_if = "Option::is_none")]
    pub amount: Option<i32>,
    /// CloseDate is the expected close, as a unix second (0 = unset).
    #[serde(rename = "closeDate", skip_serializing_if = "Option::is_none")]
    pub close_date: Option<i32>,
    /// CompanyID links the deal to one of the org's companies.
    #[serde(rename = "companyId", skip_serializing_if = "Option::is_none")]
    pub company_id: Option<String>,
    /// Currency is the ISO code Amount is denominated in; empty defaults to USD.
    #[serde(rename = "currency", skip_serializing_if = "Option::is_none")]
    pub currency: Option<String>,
    /// ID names the opportunity to update and comes from the path. A create ignores it: the server mints the id.
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// Name is the deal name. Required.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// PointOfContact links the deal to one of the org's contacts.
    #[serde(rename = "pointOfContactId", skip_serializing_if = "Option::is_none")]
    pub point_of_contact_id: Option<String>,
    /// Stage is the pipeline stage: NEW, SCREENING, MEETING, PROPOSAL or CUSTOMER (case-insensitive). Empty defaults to NEW.
    #[serde(rename = "stage", skip_serializing_if = "Option::is_none")]
    pub stage: Option<String>,
}

impl OppReq {
    pub fn new() -> OppReq {
        OppReq {
            amount: None,
            close_date: None,
            company_id: None,
            currency: None,
            id: None,
            name: None,
            point_of_contact_id: None,
            stage: None,
        }
    }
}