# 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 CustomerBalanceAdjustmentCreateRequest(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 = {
        'customer_id': 'str',
        'amount': 'float',
        'currency_code': 'str',
        'description': 'str',
        'effective_at': 'datetime',
        'expires_at': 'datetime',
        'amount_paid': 'float',
        'amount_paid_currency_code': 'str'
    }

    attribute_map = {
        'customer_id': 'customer_id',
        'amount': 'amount',
        'currency_code': 'currency_code',
        'description': 'description',
        'effective_at': 'effective_at',
        'expires_at': 'expires_at',
        'amount_paid': 'amount_paid',
        'amount_paid_currency_code': 'amount_paid_currency_code'
    }

    def __init__(self, customer_id=None, amount=None, currency_code=None, description=None, effective_at=None, expires_at=None, amount_paid=None, amount_paid_currency_code=None):  # noqa: E501
        """CustomerBalanceAdjustmentCreateRequest - a model defined in Swagger"""  # noqa: E501
        self._customer_id = None
        self._amount = None
        self._currency_code = None
        self._description = None
        self._effective_at = None
        self._expires_at = None
        self._amount_paid = None
        self._amount_paid_currency_code = None
        self.discriminator = None
        self.customer_id = customer_id
        self.amount = amount
        self.currency_code = currency_code
        if description is not None:
            self.description = description
        if effective_at is not None:
            self.effective_at = effective_at
        if expires_at is not None:
            self.expires_at = expires_at
        if amount_paid is not None:
            self.amount_paid = amount_paid
        if amount_paid_currency_code is not None:
            self.amount_paid_currency_code = amount_paid_currency_code

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

        The id provided when creating the customer, we suggest matching with your internal customer id in your backend  # noqa: E501

        :return: The customer_id of this CustomerBalanceAdjustmentCreateRequest.  # noqa: E501
        :rtype: str
        """
        return self._customer_id

    @customer_id.setter
    def customer_id(self, customer_id):
        """Sets the customer_id of this CustomerBalanceAdjustmentCreateRequest.

        The id provided when creating the customer, we suggest matching with your internal customer id in your backend  # noqa: E501

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

        self._customer_id = customer_id

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


        :return: The amount of this CustomerBalanceAdjustmentCreateRequest.  # noqa: E501
        :rtype: float
        """
        return self._amount

    @amount.setter
    def amount(self, amount):
        """Sets the amount of this CustomerBalanceAdjustmentCreateRequest.


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

        self._amount = amount

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


        :return: The currency_code of this CustomerBalanceAdjustmentCreateRequest.  # noqa: E501
        :rtype: str
        """
        return self._currency_code

    @currency_code.setter
    def currency_code(self, currency_code):
        """Sets the currency_code of this CustomerBalanceAdjustmentCreateRequest.


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

        self._currency_code = currency_code

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


        :return: The description of this CustomerBalanceAdjustmentCreateRequest.  # noqa: E501
        :rtype: str
        """
        return self._description

    @description.setter
    def description(self, description):
        """Sets the description of this CustomerBalanceAdjustmentCreateRequest.


        :param description: The description of this CustomerBalanceAdjustmentCreateRequest.  # noqa: E501
        :type: str
        """

        self._description = description

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


        :return: The effective_at of this CustomerBalanceAdjustmentCreateRequest.  # noqa: E501
        :rtype: datetime
        """
        return self._effective_at

    @effective_at.setter
    def effective_at(self, effective_at):
        """Sets the effective_at of this CustomerBalanceAdjustmentCreateRequest.


        :param effective_at: The effective_at of this CustomerBalanceAdjustmentCreateRequest.  # noqa: E501
        :type: datetime
        """

        self._effective_at = effective_at

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


        :return: The expires_at of this CustomerBalanceAdjustmentCreateRequest.  # noqa: E501
        :rtype: datetime
        """
        return self._expires_at

    @expires_at.setter
    def expires_at(self, expires_at):
        """Sets the expires_at of this CustomerBalanceAdjustmentCreateRequest.


        :param expires_at: The expires_at of this CustomerBalanceAdjustmentCreateRequest.  # noqa: E501
        :type: datetime
        """

        self._expires_at = expires_at

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


        :return: The amount_paid of this CustomerBalanceAdjustmentCreateRequest.  # noqa: E501
        :rtype: float
        """
        return self._amount_paid

    @amount_paid.setter
    def amount_paid(self, amount_paid):
        """Sets the amount_paid of this CustomerBalanceAdjustmentCreateRequest.


        :param amount_paid: The amount_paid of this CustomerBalanceAdjustmentCreateRequest.  # noqa: E501
        :type: float
        """

        self._amount_paid = amount_paid

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


        :return: The amount_paid_currency_code of this CustomerBalanceAdjustmentCreateRequest.  # noqa: E501
        :rtype: str
        """
        return self._amount_paid_currency_code

    @amount_paid_currency_code.setter
    def amount_paid_currency_code(self, amount_paid_currency_code):
        """Sets the amount_paid_currency_code of this CustomerBalanceAdjustmentCreateRequest.


        :param amount_paid_currency_code: The amount_paid_currency_code of this CustomerBalanceAdjustmentCreateRequest.  # noqa: E501
        :type: str
        """

        self._amount_paid_currency_code = amount_paid_currency_code

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

        return self.__dict__ == other.__dict__

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