late 0.0.899

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).
Documentation
/*
 * 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.0.4
 * 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 UpdateGoogleBusinessLocationDetailsRequest {
    /// Required. Comma-separated fields to update (e.g. 'regularHours', 'specialHours', 'profile.description', 'categories', 'serviceItems'). Any valid Google Business Information API updateMask field is supported.
    #[serde(rename = "updateMask")]
    pub update_mask: String,
    #[serde(rename = "regularHours", skip_serializing_if = "Option::is_none")]
    pub regular_hours: Option<Box<models::UpdateGoogleBusinessLocationDetailsRequestRegularHours>>,
    #[serde(rename = "specialHours", skip_serializing_if = "Option::is_none")]
    pub special_hours: Option<Box<models::GetGoogleBusinessLocationDetails200ResponseSpecialHours>>,
    #[serde(rename = "profile", skip_serializing_if = "Option::is_none")]
    pub profile: Option<Box<models::UpdateGoogleBusinessLocationDetailsRequestProfile>>,
    #[serde(rename = "websiteUri", skip_serializing_if = "Option::is_none")]
    pub website_uri: Option<String>,
    #[serde(rename = "phoneNumbers", skip_serializing_if = "Option::is_none")]
    pub phone_numbers: Option<Box<models::GetGoogleBusinessLocationDetails200ResponsePhoneNumbers>>,
    #[serde(rename = "categories", skip_serializing_if = "Option::is_none")]
    pub categories: Option<Box<models::UpdateGoogleBusinessLocationDetailsRequestCategories>>,
    /// Services offered by the business. Use updateMask='serviceItems' to update.
    #[serde(rename = "serviceItems", skip_serializing_if = "Option::is_none")]
    pub service_items:
        Option<Vec<models::UpdateGoogleBusinessLocationDetailsRequestServiceItemsInner>>,
    /// Business name. Use updateMask='title'.
    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
    pub title: Option<String>,
    /// External store identifier, unique within the account. Use updateMask='storeCode'.
    #[serde(rename = "storeCode", skip_serializing_if = "Option::is_none")]
    pub store_code: Option<String>,
    /// Free-form, internal-only labels for grouping (1-255 characters each). Use updateMask='labels'.
    #[serde(rename = "labels", skip_serializing_if = "Option::is_none")]
    pub labels: Option<Vec<String>>,
    #[serde(rename = "storefrontAddress", skip_serializing_if = "Option::is_none")]
    pub storefront_address:
        Option<Box<models::UpdateGoogleBusinessLocationDetailsRequestStorefrontAddress>>,
    #[serde(rename = "serviceArea", skip_serializing_if = "Option::is_none")]
    pub service_area: Option<Box<models::UpdateGoogleBusinessLocationDetailsRequestServiceArea>>,
    #[serde(rename = "openInfo", skip_serializing_if = "Option::is_none")]
    pub open_info: Option<Box<models::UpdateGoogleBusinessLocationDetailsRequestOpenInfo>>,
    /// Additional hours for specific services (delivery, drive-through, etc.). Use updateMask='moreHours'.
    #[serde(rename = "moreHours", skip_serializing_if = "Option::is_none")]
    pub more_hours: Option<Vec<models::UpdateGoogleBusinessLocationDetailsRequestMoreHoursInner>>,
    #[serde(rename = "latlng", skip_serializing_if = "Option::is_none")]
    pub latlng: Option<Box<models::UpdateGoogleBusinessLocationDetailsRequestLatlng>>,
    #[serde(
        rename = "adWordsLocationExtensions",
        skip_serializing_if = "Option::is_none"
    )]
    pub ad_words_location_extensions:
        Option<Box<models::UpdateGoogleBusinessLocationDetailsRequestAdWordsLocationExtensions>>,
}

impl UpdateGoogleBusinessLocationDetailsRequest {
    pub fn new(update_mask: String) -> UpdateGoogleBusinessLocationDetailsRequest {
        UpdateGoogleBusinessLocationDetailsRequest {
            update_mask,
            regular_hours: None,
            special_hours: None,
            profile: None,
            website_uri: None,
            phone_numbers: None,
            categories: None,
            service_items: None,
            title: None,
            store_code: None,
            labels: None,
            storefront_address: None,
            service_area: None,
            open_info: None,
            more_hours: None,
            latlng: None,
            ad_words_location_extensions: None,
        }
    }
}