/*
 * 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.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 GetGoogleBusinessLocationDetails200ResponseRegularHoursPeriodsInner {
    #[serde(rename = "openDay", skip_serializing_if = "Option::is_none")]
    pub open_day: Option<OpenDay>,
    /// Opening time in HH:MM format
    #[serde(rename = "openTime", skip_serializing_if = "Option::is_none")]
    pub open_time: Option<String>,
    #[serde(rename = "closeDay", skip_serializing_if = "Option::is_none")]
    pub close_day: Option<String>,
    #[serde(rename = "closeTime", skip_serializing_if = "Option::is_none")]
    pub close_time: Option<String>,
}

impl GetGoogleBusinessLocationDetails200ResponseRegularHoursPeriodsInner {
    pub fn new() -> GetGoogleBusinessLocationDetails200ResponseRegularHoursPeriodsInner {
        GetGoogleBusinessLocationDetails200ResponseRegularHoursPeriodsInner {
            open_day: None,
            open_time: None,
            close_day: None,
            close_time: None,
        }
    }
}
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum OpenDay {
    #[serde(rename = "MONDAY")]
    Monday,
    #[serde(rename = "TUESDAY")]
    Tuesday,
    #[serde(rename = "WEDNESDAY")]
    Wednesday,
    #[serde(rename = "THURSDAY")]
    Thursday,
    #[serde(rename = "FRIDAY")]
    Friday,
    #[serde(rename = "SATURDAY")]
    Saturday,
    #[serde(rename = "SUNDAY")]
    Sunday,
}

impl Default for OpenDay {
    fn default() -> OpenDay {
        Self::Monday
    }
}
