# coding: utf-8

"""
    Digitick REST API

    The Digitick REST API is a set of methods giving access to catalog, user and cart management.

    OpenAPI spec version: v1.0
    Contact: contact@digitick.com
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


from pprint import pformat
from six import iteritems
import re


class Show(object):
    """
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    """
    def __init__(self, id=None, start=None, end=None, stock_availability_status=None, sales_status=None):
        """
        Show - a model defined in Swagger

        :param dict swaggerTypes: The key is attribute name
                                  and the value is attribute type.
        :param dict attributeMap: The key is attribute name
                                  and the value is json key in definition.
        """
        self.swagger_types = {
            'id': 'int',
            'start': 'str',
            'end': 'str',
            'stock_availability_status': 'str',
            'sales_status': 'str'
        }

        self.attribute_map = {
            'id': 'id',
            'start': 'start',
            'end': 'end',
            'stock_availability_status': 'stockAvailabilityStatus',
            'sales_status': 'salesStatus'
        }

        self._id = id
        self._start = start
        self._end = end
        self._stock_availability_status = stock_availability_status
        self._sales_status = sales_status

    @property
    def id(self):
        """
        Gets the id of this Show.

        :return: The id of this Show.
        :rtype: int
        """
        return self._id

    @id.setter
    def id(self, id):
        """
        Sets the id of this Show.

        :param id: The id of this Show.
        :type: int
        """

        self._id = id

    @property
    def start(self):
        """
        Gets the start of this Show.

        :return: The start of this Show.
        :rtype: str
        """
        return self._start

    @start.setter
    def start(self, start):
        """
        Sets the start of this Show.

        :param start: The start of this Show.
        :type: str
        """

        self._start = start

    @property
    def end(self):
        """
        Gets the end of this Show.

        :return: The end of this Show.
        :rtype: str
        """
        return self._end

    @end.setter
    def end(self, end):
        """
        Sets the end of this Show.

        :param end: The end of this Show.
        :type: str
        """

        self._end = end

    @property
    def stock_availability_status(self):
        """
        Gets the stock_availability_status of this Show.

        :return: The stock_availability_status of this Show.
        :rtype: str
        """
        return self._stock_availability_status

    @stock_availability_status.setter
    def stock_availability_status(self, stock_availability_status):
        """
        Sets the stock_availability_status of this Show.

        :param stock_availability_status: The stock_availability_status of this Show.
        :type: str
        """

        self._stock_availability_status = stock_availability_status

    @property
    def sales_status(self):
        """
        Gets the sales_status of this Show.

        :return: The sales_status of this Show.
        :rtype: str
        """
        return self._sales_status

    @sales_status.setter
    def sales_status(self, sales_status):
        """
        Sets the sales_status of this Show.

        :param sales_status: The sales_status of this Show.
        :type: str
        """

        self._sales_status = sales_status

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

        for attr, _ in 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

        return result

    def to_str(self):
        """
        Returns the string representation of the model
        """
        return 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, Show):
            return False

        return self.__dict__ == other.__dict__

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