1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* 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,
}
}
}