# coding: utf-8

"""
    Lotus API

    Lotus is an open-core pricing and billing engine. We enable API companies to automate and optimize their custom usage-based pricing for any metric.  # noqa: E501

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

import pprint
import re  # noqa: F401

import six

class SubscriptionCustomerSummary(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 = {
        'billing_plan_name': 'str',
        'plan_version': 'int',
        'end_date': 'datetime',
        'auto_renew': 'bool'
    }

    attribute_map = {
        'billing_plan_name': 'billing_plan_name',
        'plan_version': 'plan_version',
        'end_date': 'end_date',
        'auto_renew': 'auto_renew'
    }

    def __init__(self, billing_plan_name=None, plan_version=None, end_date=None, auto_renew=None):  # noqa: E501
        """SubscriptionCustomerSummary - a model defined in Swagger"""  # noqa: E501
        self._billing_plan_name = None
        self._plan_version = None
        self._end_date = None
        self._auto_renew = None
        self.discriminator = None
        self.billing_plan_name = billing_plan_name
        self.plan_version = plan_version
        self.end_date = end_date
        if auto_renew is not None:
            self.auto_renew = auto_renew

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


        :return: The billing_plan_name of this SubscriptionCustomerSummary.  # noqa: E501
        :rtype: str
        """
        return self._billing_plan_name

    @billing_plan_name.setter
    def billing_plan_name(self, billing_plan_name):
        """Sets the billing_plan_name of this SubscriptionCustomerSummary.


        :param billing_plan_name: The billing_plan_name of this SubscriptionCustomerSummary.  # noqa: E501
        :type: str
        """
        if billing_plan_name is None:
            raise ValueError("Invalid value for `billing_plan_name`, must not be `None`")  # noqa: E501

        self._billing_plan_name = billing_plan_name

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


        :return: The plan_version of this SubscriptionCustomerSummary.  # noqa: E501
        :rtype: int
        """
        return self._plan_version

    @plan_version.setter
    def plan_version(self, plan_version):
        """Sets the plan_version of this SubscriptionCustomerSummary.


        :param plan_version: The plan_version of this SubscriptionCustomerSummary.  # noqa: E501
        :type: int
        """
        if plan_version is None:
            raise ValueError("Invalid value for `plan_version`, must not be `None`")  # noqa: E501

        self._plan_version = plan_version

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

        The time the subscription starts. This will be a string in yyyy-mm-dd HH:mm:ss format in UTC time.  # noqa: E501

        :return: The end_date of this SubscriptionCustomerSummary.  # noqa: E501
        :rtype: datetime
        """
        return self._end_date

    @end_date.setter
    def end_date(self, end_date):
        """Sets the end_date of this SubscriptionCustomerSummary.

        The time the subscription starts. This will be a string in yyyy-mm-dd HH:mm:ss format in UTC time.  # noqa: E501

        :param end_date: The end_date of this SubscriptionCustomerSummary.  # noqa: E501
        :type: datetime
        """
        if end_date is None:
            raise ValueError("Invalid value for `end_date`, must not be `None`")  # noqa: E501

        self._end_date = end_date

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

        Whether the subscription automatically renews. Defaults to true.  # noqa: E501

        :return: The auto_renew of this SubscriptionCustomerSummary.  # noqa: E501
        :rtype: bool
        """
        return self._auto_renew

    @auto_renew.setter
    def auto_renew(self, auto_renew):
        """Sets the auto_renew of this SubscriptionCustomerSummary.

        Whether the subscription automatically renews. Defaults to true.  # noqa: E501

        :param auto_renew: The auto_renew of this SubscriptionCustomerSummary.  # noqa: E501
        :type: bool
        """

        self._auto_renew = auto_renew

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

        return self.__dict__ == other.__dict__

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