pub struct AddDealRequest {Show 14 fields
pub title: String,
pub value: Option<String>,
pub currency: Option<String>,
pub user_id: Option<i32>,
pub person_id: Option<i32>,
pub org_id: Option<i32>,
pub pipeline_id: Option<i32>,
pub stage_id: Option<i32>,
pub status: Option<Status>,
pub add_time: Option<String>,
pub expected_close_date: Option<String>,
pub probability: Option<f32>,
pub lost_reason: Option<String>,
pub visible_to: Option<VisibleTo>,
}
Fields§
§title: String
The title of the deal
value: Option<String>
The value of the deal. If omitted, value will be set to 0.
currency: Option<String>
The currency of the deal. Accepts a 3-character currency code. If omitted, currency will be set to the default currency of the authorized user.
user_id: Option<i32>
The ID of the user which will be the owner of the created deal. If not provided, the user making the request will be used.
person_id: Option<i32>
The ID of a person which this deal will be linked to. If the person does not exist yet, it needs to be created first. This property is required unless org_id
is specified.
org_id: Option<i32>
The ID of an organization which this deal will be linked to. If the organization does not exist yet, it needs to be created first. This property is required unless person_id
is specified.
pipeline_id: Option<i32>
The ID of the pipeline this deal will be added to. By default, the deal will be added to the first stage of the specified pipeline. Please note that pipeline_id
and stage_id
should not be used together as pipeline_id
will be ignored.
stage_id: Option<i32>
The ID of the stage this deal will be added to. Please note that a pipeline will be assigned automatically based on the stage_id
. If omitted, the deal will be placed in the first stage of the default pipeline.
status: Option<Status>
open = Open, won = Won, lost = Lost, deleted = Deleted. If omitted, status will be set to open.
add_time: Option<String>
The optional creation date & time of the deal in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
expected_close_date: Option<String>
The expected close date of the deal. In ISO 8601 format: YYYY-MM-DD.
probability: Option<f32>
The success probability percentage of the deal. Used/shown only when deal_probability
for the pipeline of the deal is enabled.
lost_reason: Option<String>
The optional message about why the deal was lost (to be used when status = lost)
visible_to: Option<VisibleTo>
Implementations§
Source§impl AddDealRequest
impl AddDealRequest
pub fn new(title: String) -> AddDealRequest
Trait Implementations§
Source§impl Clone for AddDealRequest
impl Clone for AddDealRequest
Source§fn clone(&self) -> AddDealRequest
fn clone(&self) -> AddDealRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more