# coding: utf-8

"""
    Selling Partner API for Supply Sources

    Manage configurations and capabilities of seller supply sources.

    The version of the OpenAPI document: 2020-07-01
    Generated by OpenAPI Generator (https://openapi-generator.tech)

    Do not edit the class manually.
"""  # noqa: E501


import pprint
import re  # noqa: F401

import six

from spapi.configuration import Configuration


class OperatingHoursByDay(object):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    """

    """
    Attributes:
      swagger_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    """
    swagger_types = {
        'monday': 'List[OperatingHour]',
        'tuesday': 'List[OperatingHour]',
        'wednesday': 'List[OperatingHour]',
        'thursday': 'List[OperatingHour]',
        'friday': 'List[OperatingHour]',
        'saturday': 'List[OperatingHour]',
        'sunday': 'List[OperatingHour]',
    }

    attribute_map = {
        'monday': 'monday',
        'tuesday': 'tuesday',
        'wednesday': 'wednesday',
        'thursday': 'thursday',
        'friday': 'friday',
        'saturday': 'saturday',
        'sunday': 'sunday',
    }

    def __init__(self, monday=None, tuesday=None, wednesday=None, thursday=None, friday=None, saturday=None, sunday=None, _configuration=None):  # noqa: E501
        """OperatingHoursByDay - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._monday = None
        self._tuesday = None
        self._wednesday = None
        self._thursday = None
        self._friday = None
        self._saturday = None
        self._sunday = None
        self.discriminator = None

        if monday is not None:
            self.monday = monday
        if tuesday is not None:
            self.tuesday = tuesday
        if wednesday is not None:
            self.wednesday = wednesday
        if thursday is not None:
            self.thursday = thursday
        if friday is not None:
            self.friday = friday
        if saturday is not None:
            self.saturday = saturday
        if sunday is not None:
            self.sunday = sunday

    @property
    def monday(self):
        """Gets the monday of this OperatingHoursByDay.  # noqa: E501

        A list of Operating Hours.  # noqa: E501

        :return: The monday of this OperatingHoursByDay.  # noqa: E501
        :rtype: List[OperatingHour]
        """
        return self._monday

    @monday.setter
    def monday(self, monday):
        """Sets the monday of this OperatingHoursByDay.

        A list of Operating Hours.  # noqa: E501

        :param monday: The monday of this OperatingHoursByDay.  # noqa: E501
        :type: List[OperatingHour]
        """

        self._monday = monday

    @property
    def tuesday(self):
        """Gets the tuesday of this OperatingHoursByDay.  # noqa: E501

        A list of Operating Hours.  # noqa: E501

        :return: The tuesday of this OperatingHoursByDay.  # noqa: E501
        :rtype: List[OperatingHour]
        """
        return self._tuesday

    @tuesday.setter
    def tuesday(self, tuesday):
        """Sets the tuesday of this OperatingHoursByDay.

        A list of Operating Hours.  # noqa: E501

        :param tuesday: The tuesday of this OperatingHoursByDay.  # noqa: E501
        :type: List[OperatingHour]
        """

        self._tuesday = tuesday

    @property
    def wednesday(self):
        """Gets the wednesday of this OperatingHoursByDay.  # noqa: E501

        A list of Operating Hours.  # noqa: E501

        :return: The wednesday of this OperatingHoursByDay.  # noqa: E501
        :rtype: List[OperatingHour]
        """
        return self._wednesday

    @wednesday.setter
    def wednesday(self, wednesday):
        """Sets the wednesday of this OperatingHoursByDay.

        A list of Operating Hours.  # noqa: E501

        :param wednesday: The wednesday of this OperatingHoursByDay.  # noqa: E501
        :type: List[OperatingHour]
        """

        self._wednesday = wednesday

    @property
    def thursday(self):
        """Gets the thursday of this OperatingHoursByDay.  # noqa: E501

        A list of Operating Hours.  # noqa: E501

        :return: The thursday of this OperatingHoursByDay.  # noqa: E501
        :rtype: List[OperatingHour]
        """
        return self._thursday

    @thursday.setter
    def thursday(self, thursday):
        """Sets the thursday of this OperatingHoursByDay.

        A list of Operating Hours.  # noqa: E501

        :param thursday: The thursday of this OperatingHoursByDay.  # noqa: E501
        :type: List[OperatingHour]
        """

        self._thursday = thursday

    @property
    def friday(self):
        """Gets the friday of this OperatingHoursByDay.  # noqa: E501

        A list of Operating Hours.  # noqa: E501

        :return: The friday of this OperatingHoursByDay.  # noqa: E501
        :rtype: List[OperatingHour]
        """
        return self._friday

    @friday.setter
    def friday(self, friday):
        """Sets the friday of this OperatingHoursByDay.

        A list of Operating Hours.  # noqa: E501

        :param friday: The friday of this OperatingHoursByDay.  # noqa: E501
        :type: List[OperatingHour]
        """

        self._friday = friday

    @property
    def saturday(self):
        """Gets the saturday of this OperatingHoursByDay.  # noqa: E501

        A list of Operating Hours.  # noqa: E501

        :return: The saturday of this OperatingHoursByDay.  # noqa: E501
        :rtype: List[OperatingHour]
        """
        return self._saturday

    @saturday.setter
    def saturday(self, saturday):
        """Sets the saturday of this OperatingHoursByDay.

        A list of Operating Hours.  # noqa: E501

        :param saturday: The saturday of this OperatingHoursByDay.  # noqa: E501
        :type: List[OperatingHour]
        """

        self._saturday = saturday

    @property
    def sunday(self):
        """Gets the sunday of this OperatingHoursByDay.  # noqa: E501

        A list of Operating Hours.  # noqa: E501

        :return: The sunday of this OperatingHoursByDay.  # noqa: E501
        :rtype: List[OperatingHour]
        """
        return self._sunday

    @sunday.setter
    def sunday(self, sunday):
        """Sets the sunday of this OperatingHoursByDay.

        A list of Operating Hours.  # noqa: E501

        :param sunday: The sunday of this OperatingHoursByDay.  # noqa: E501
        :type: List[OperatingHour]
        """

        self._sunday = sunday

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.swagger_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], item[1].to_dict())
                    if hasattr(item[1], "to_dict") else item,
                    value.items()
                ))
            else:
                result[attr] = value
        if issubclass(OperatingHoursByDay, dict):
            for key, value in self.items():
                result[key] = value

        return result

    def to_str(self):
        """Returns the string representation of the model"""
        return pprint.pformat(self.to_dict())

    def __repr__(self):
        """For `print` and `pprint`"""
        return self.to_str()

    def __eq__(self, other):
        """Returns true if both objects are equal"""
        if not isinstance(other, OperatingHoursByDay):
            return False

        return self.to_dict() == other.to_dict()

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        if not isinstance(other, OperatingHoursByDay):
            return True

        return self.to_dict() != other.to_dict()
