/*
* 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.104.0
* Contact: support@zernio.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// GoogleBusinessPlatformData : Text and single image only (no videos). Supports STANDARD, EVENT, OFFER, and ALERT post types. Posts appear on Google Business Profile, Google Search, and Maps. Use locationId for multi-location posting. Schedule dates accept both ISO 8601 strings (e.g. '2026-04-15T09:00:00Z') and Google's native {year, month, day} objects.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GoogleBusinessPlatformData {
/// Target Google Business Profile location ID (e.g. \"locations/123456789\"). If omitted, uses the default location. Use GET /v1/accounts/{id}/gmb-locations to list locations.
#[serde(rename = "locationId", skip_serializing_if = "Option::is_none")]
pub location_id: Option<String>,
/// BCP 47 language code (e.g. \"en\", \"de\", \"es\"). Auto-detected if omitted. Set explicitly for short or mixed-language posts.
#[serde(rename = "languageCode", skip_serializing_if = "Option::is_none")]
pub language_code: Option<String>,
/// Post type. STANDARD is a regular update. EVENT requires the event object. OFFER requires the offer object. Defaults to STANDARD if omitted.
#[serde(rename = "topicType", skip_serializing_if = "Option::is_none")]
pub topic_type: Option<TopicType>,
#[serde(rename = "callToAction", skip_serializing_if = "Option::is_none")]
pub call_to_action: Option<Box<models::GoogleBusinessPlatformDataCallToAction>>,
#[serde(rename = "event", skip_serializing_if = "Option::is_none")]
pub event: Option<Box<models::GoogleBusinessPlatformDataEvent>>,
#[serde(rename = "offer", skip_serializing_if = "Option::is_none")]
pub offer: Option<Box<models::GoogleBusinessPlatformDataOffer>>,
}
impl GoogleBusinessPlatformData {
/// Text and single image only (no videos). Supports STANDARD, EVENT, OFFER, and ALERT post types. Posts appear on Google Business Profile, Google Search, and Maps. Use locationId for multi-location posting. Schedule dates accept both ISO 8601 strings (e.g. '2026-04-15T09:00:00Z') and Google's native {year, month, day} objects.
pub fn new() -> GoogleBusinessPlatformData {
GoogleBusinessPlatformData {
location_id: None,
language_code: None,
topic_type: None,
call_to_action: None,
event: None,
offer: None,
}
}
}
/// Post type. STANDARD is a regular update. EVENT requires the event object. OFFER requires the offer object. Defaults to STANDARD if omitted.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum TopicType {
#[serde(rename = "STANDARD")]
Standard,
#[serde(rename = "EVENT")]
Event,
#[serde(rename = "OFFER")]
Offer,
}
impl Default for TopicType {
fn default() -> TopicType {
Self::Standard
}
}