/*
* Zernio API
*
* API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema). Request ids: responses carry an X-Request-Id header with the id we log the request under. Quote it when reporting a problem. A valid x-request-id you send is reused as that id.
*
* The version of the OpenAPI document: 1.603.1
* Contact: support@zernio.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdateHubSpotSettingsRequest {
/// Create a HubSpot contact for an inbox contact that matches none by email or phone. A match is linked as it is and never updated.
#[serde(rename = "syncContacts", skip_serializing_if = "Option::is_none")]
pub sync_contacts: Option<bool>,
/// Log inbound and outbound inbox messages on the contact's HubSpot timeline.
#[serde(rename = "logMessages", skip_serializing_if = "Option::is_none")]
pub log_messages: Option<bool>,
/// Send each deal that becomes closed won as a Purchase to the profile's event destinations, about once an hour. Requires the portal to have granted `crm.objects.deals.read`; otherwise 400. Deals closed before it was turned on are not sent.
#[serde(rename = "reportDeals", skip_serializing_if = "Option::is_none")]
pub report_deals: Option<bool>,
/// Count each closed-won deal as a sale with its amount on the ad campaign that brought its contact, in `GET /v1/ads/campaign-results` and ad rules. Requires `crm.objects.deals.read`; otherwise 400. Turning it on fills in the deals of the last 90 days, never sent to the ad platforms.
#[serde(rename = "useDealsAsResults", skip_serializing_if = "Option::is_none")]
pub use_deals_as_results: Option<bool>,
}
impl UpdateHubSpotSettingsRequest {
pub fn new() -> UpdateHubSpotSettingsRequest {
UpdateHubSpotSettingsRequest {
sync_contacts: None,
log_messages: None,
report_deals: None,
use_deals_as_results: None,
}
}
}