/*
* 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).
*
* The version of the OpenAPI document: 1.66.0
* 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 CreateLeadFormRequest {
#[serde(rename = "accountId")]
pub account_id: String,
#[serde(rename = "name")]
pub name: String,
/// Deprecated (Meta legacy shape): use platformSpecificData.questions.
#[serde(rename = "questions", skip_serializing_if = "Option::is_none")]
pub questions: Option<Vec<models::CreateLeadFormRequestQuestionsInner>>,
#[serde(rename = "privacyPolicyUrl")]
pub privacy_policy_url: String,
/// Deprecated: use platformSpecificData.privacyPolicyLinkText.
#[serde(
rename = "privacyPolicyLinkText",
skip_serializing_if = "Option::is_none"
)]
pub privacy_policy_link_text: Option<String>,
/// Deprecated: use platformSpecificData.followUpActionUrl.
#[serde(rename = "followUpActionUrl", skip_serializing_if = "Option::is_none")]
pub follow_up_action_url: Option<String>,
/// Deprecated: use platformSpecificData.locale.
#[serde(rename = "locale", skip_serializing_if = "Option::is_none")]
pub locale: Option<String>,
/// Deprecated: use platformSpecificData.thankYouTitle.
#[serde(rename = "thankYouTitle", skip_serializing_if = "Option::is_none")]
pub thank_you_title: Option<String>,
/// Deprecated: use platformSpecificData.thankYouBody.
#[serde(rename = "thankYouBody", skip_serializing_if = "Option::is_none")]
pub thank_you_body: Option<String>,
/// Deprecated: use platformSpecificData.thankYouButtonText.
#[serde(rename = "thankYouButtonText", skip_serializing_if = "Option::is_none")]
pub thank_you_button_text: Option<String>,
/// Deprecated: use platformSpecificData.thankYouButtonType.
#[serde(rename = "thankYouButtonType", skip_serializing_if = "Option::is_none")]
pub thank_you_button_type: Option<String>,
/// Deprecated: use platformSpecificData.thankYouWebsiteUrl.
#[serde(rename = "thankYouWebsiteUrl", skip_serializing_if = "Option::is_none")]
pub thank_you_website_url: Option<String>,
/// Deprecated: use platformSpecificData.isOptimizedForQuality.
#[serde(
rename = "isOptimizedForQuality",
skip_serializing_if = "Option::is_none"
)]
pub is_optimized_for_quality: Option<bool>,
#[serde(
rename = "platformSpecificData",
skip_serializing_if = "Option::is_none"
)]
pub platform_specific_data: Option<Box<models::CreateLeadFormRequestPlatformSpecificData>>,
}
impl CreateLeadFormRequest {
pub fn new(
account_id: String,
name: String,
privacy_policy_url: String,
) -> CreateLeadFormRequest {
CreateLeadFormRequest {
account_id,
name,
questions: None,
privacy_policy_url,
privacy_policy_link_text: None,
follow_up_action_url: None,
locale: None,
thank_you_title: None,
thank_you_body: None,
thank_you_button_text: None,
thank_you_button_type: None,
thank_you_website_url: None,
is_optimized_for_quality: None,
platform_specific_data: None,
}
}
}