/** * Pipedrive API v2 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface UpdateDealRequest */ export interface UpdateDealRequest { /** * The title of the deal * @type {string} */ 'title'?: string; /** * The ID of the user who owns the deal * @type {number} */ 'owner_id'?: number; /** * The ID of the person linked to the deal * @type {number} */ 'person_id'?: number; /** * The ID of the organization linked to the deal * @type {number} */ 'org_id'?: number; /** * The ID of the pipeline associated with the deal * @type {number} */ 'pipeline_id'?: number; /** * The ID of the deal stage * @type {number} */ 'stage_id'?: number; /** * The value of the deal * @type {number} */ 'value'?: number; /** * The currency associated with the deal * @type {string} */ 'currency'?: string; /** * Whether the deal is deleted or not * @type {boolean} */ 'is_deleted'?: boolean; /** * Whether the deal is archived or not * @type {boolean} */ 'is_archived'?: boolean; /** * The optional date and time of archiving the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. If omitted and `is_archived` is true, it will be set to the current date and time. * @type {string} */ 'archive_time'?: string; /** * The status of the deal * @type {string} */ 'status'?: string; /** * The success probability percentage of the deal * @type {number} */ 'probability'?: number | null; /** * The reason for losing the deal. Can only be set if deal status is lost. * @type {string} */ 'lost_reason'?: string | null; /** * The visibility of the deal * @type {number} */ 'visible_to'?: number; /** * The date and time of closing the deal. Can only be set if deal status is won or lost. * @type {string} */ 'close_time'?: string | null; /** * The date and time of changing the deal status as won. Can only be set if deal status is won. * @type {string} */ 'won_time'?: string; /** * The date and time of changing the deal status as lost. Can only be set if deal status is lost. * @type {string} */ 'lost_time'?: string; /** * The expected close date of the deal * @type {string} */ 'expected_close_date'?: string; /** * The IDs of labels assigned to the deal * @type {Array} */ 'label_ids'?: Array; /** * An object where each key represents a custom field. All custom fields are referenced as randomly generated 40-character hashes. To clear a custom field value, set it to `null`. For multi-option fields (field type `set`), use `null` to clear the selection — sending an empty array `[]` is not supported and will result in a validation error. * @type {{ [key: string]: any | undefined; }} */ 'custom_fields'?: { [key: string]: any | undefined; }; }