/*
 * Zernio API
 *
 * API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
 *
 * The version of the OpenAPI document: 1.0.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 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>>,
}

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,
        }
    }
}
