# 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: <EMAIL>
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


from pprint import pformat
from six import iteritems
import re


class CartAddBySeatsResponse(object):
    """
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    """
    def __init__(self, success=None, entries_id=None):
        """
        CartAddBySeatsResponse - 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 = {
            'success': 'bool',
            'entries_id': 'list[int]'
        }

        self.attribute_map = {
            'success': 'success',
            'entries_id': 'entriesId'
        }

        self._success = success
        self._entries_id = entries_id

    @property
    def success(self):
        """
        Gets the success of this CartAddBySeatsResponse.

        :return: The success of this CartAddBySeatsResponse.
        :rtype: bool
        """
        return self._success

    @success.setter
    def success(self, success):
        """
        Sets the success of this CartAddBySeatsResponse.

        :param success: The success of this CartAddBySeatsResponse.
        :type: bool
        """

        self._success = success

    @property
    def entries_id(self):
        """
        Gets the entries_id of this CartAddBySeatsResponse.

        :return: The entries_id of this CartAddBySeatsResponse.
        :rtype: list[int]
        """
        return self._entries_id

    @entries_id.setter
    def entries_id(self, entries_id):
        """
        Sets the entries_id of this CartAddBySeatsResponse.

        :param entries_id: The entries_id of this CartAddBySeatsResponse.
        :type: list[int]
        """

        self._entries_id = entries_id

    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, CartAddBySeatsResponse):
            return False

        return self.__dict__ == other.__dict__

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

# 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: <EMAIL>
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


from pprint import pformat
from six import iteritems
import re


class CartAddBySeatsResponse(object):
    """
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    """
    def __init__(self, success=None, entries_id=None):
        """
        CartAddBySeatsResponse - 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 = {
            'success': 'bool',
            'entries_id': 'list[int]'
        }

        self.attribute_map = {
            'success': 'success',
            'entries_id': 'entriesId'
        }

        self._success = success
        self._entries_id = entries_id

    @property
    def success(self):
        """
        Gets the success of this CartAddBySeatsResponse.

        :return: The success of this CartAddBySeatsResponse.
        :rtype: bool
        """
        return self._success

    @success.setter
    def success(self, success):
        """
        Sets the success of this CartAddBySeatsResponse.

        :param success: The success of this CartAddBySeatsResponse.
        :type: bool
        """

        self._success = success

    @property
    def entries_id(self):
        """
        Gets the entries_id of this CartAddBySeatsResponse.

        :return: The entries_id of this CartAddBySeatsResponse.
        :rtype: list[int]
        """
        return self._entries_id

    @entries_id.setter
    def entries_id(self, entries_id):
        """
        Sets the entries_id of this CartAddBySeatsResponse.

        :param entries_id: The entries_id of this CartAddBySeatsResponse.
        :type: list[int]
        """

        self._entries_id = entries_id

    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, CartAddBySeatsResponse):
            return False

        return self.__dict__ == other.__dict__

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

# 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: <EMAIL>     Generated by: https://github.com/swagger-api/swagger-codegen.git NOTE: This class is auto generated by the swagger code generator program.     Do not edit the class manually. CartAddBySeatsResponse - 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. Gets the success of this CartAddBySeatsResponse.          :return: The success of this CartAddBySeatsResponse.         :rtype: bool Sets the success of this CartAddBySeatsResponse.          :param success: The success of this CartAddBySeatsResponse.         :type: bool Gets the entries_id of this CartAddBySeatsResponse.          :return: The entries_id of this CartAddBySeatsResponse.         :rtype: list[int] Sets the entries_id of this CartAddBySeatsResponse.          :param entries_id: The entries_id of this CartAddBySeatsResponse.         :type: list[int] Returns the model properties as a dict Returns the string representation of the model For `print` and `pprint` Returns true if both objects are equal Returns true if both objects are not equal