# coding: utf-8

"""
    Compliance API

    <span class=\"tablenote\"><b>Note:</b> The <a href=\"https://developer.ebay.com/api-docs/sell/compliance/types/com:ComplianceTypeEnum\" target=\"_blank\" rel=\"noopener\">ASPECTS_ADOPTION</a> compliance type has been deprecated and will be decommissioned on September 9th, 2025.</span><br>Service for providing information to sellers about their listings being non-compliant, or at risk for becoming non-compliant, against eBay listing policies.  # noqa: E501

    OpenAPI spec version: 1.4.4
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import pprint
import re  # noqa: F401

import six

class ComplianceSummary(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 = {
        'violation_summaries': 'list[ComplianceSummaryInfo]'
    }

    attribute_map = {
        'violation_summaries': 'violationSummaries'
    }

    def __init__(self, violation_summaries=None):  # noqa: E501
        """ComplianceSummary - a model defined in Swagger"""  # noqa: E501
        self._violation_summaries = None
        self.discriminator = None
        if violation_summaries is not None:
            self.violation_summaries = violation_summaries

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

        This container is an array of one or more policy violation counts. A policy violation count is returned for each unique eBay marketplace and compliance type violation. As long as there is at least one non-compliant listing for the specified compliance type(s), this container will be returned. If no non-compliant listings are found for the specified compliance type(s), an HTTP status code of <code>204 No Content</code> is returned, and there is no response body.  # noqa: E501

        :return: The violation_summaries of this ComplianceSummary.  # noqa: E501
        :rtype: list[ComplianceSummaryInfo]
        """
        return self._violation_summaries

    @violation_summaries.setter
    def violation_summaries(self, violation_summaries):
        """Sets the violation_summaries of this ComplianceSummary.

        This container is an array of one or more policy violation counts. A policy violation count is returned for each unique eBay marketplace and compliance type violation. As long as there is at least one non-compliant listing for the specified compliance type(s), this container will be returned. If no non-compliant listings are found for the specified compliance type(s), an HTTP status code of <code>204 No Content</code> is returned, and there is no response body.  # noqa: E501

        :param violation_summaries: The violation_summaries of this ComplianceSummary.  # noqa: E501
        :type: list[ComplianceSummaryInfo]
        """

        self._violation_summaries = violation_summaries

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

        return self.__dict__ == other.__dict__

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