# coding: utf-8

"""
    Yahoo!広告 検索広告 API リファレンス / Yahoo! JAPAN Ads Search Ads API Reference

    <div lang=\"ja\">Yahoo!広告 検索広告 APIのWebサービスについて説明します。</div> <div lang=\"en\">Search Ads API Web Services supported in Yahoo! JAPAN Ads API.</div> <div><a target=\"_blank\" href=\"https://github.com/yahoojp-marketing/ads-search-api-documents/blob/master/design/v6/Route.yaml\">OpenAPI Specification</a></div> <div lang=\"ja\"><a target=\"_blank\" href=\"https://github.com/yahoojp-marketing/ads-search-api-documents/blob/master/bestpractice/ja\">Best Practice</a></div> <div lang=\"en\"><a target=\"_blank\" href=\"https://github.com/yahoojp-marketing/ads-search-api-documents/blob/master/bestpractice/en\">Best Practice</a></div>   # noqa: E501

    The version of the OpenAPI document: v6
    Generated by: https://openapi-generator.tech
"""


import pprint
import re  # noqa: F401

import six

from yahoo_search_api.configuration import Configuration


class AccountManagementServiceInvoice(object):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """

    """
    Attributes:
      openapi_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.
    """
    openapi_types = {
        'budget_amount': 'int',
        'end_date': 'str',
        'start_date': 'str'
    }

    attribute_map = {
        'budget_amount': 'budgetAmount',
        'end_date': 'endDate',
        'start_date': 'startDate'
    }

    def __init__(self, budget_amount=None, end_date=None, start_date=None, local_vars_configuration=None):  # noqa: E501
        """AccountManagementServiceInvoice - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._budget_amount = None
        self._end_date = None
        self._start_date = None
        self.discriminator = None

        self.budget_amount = budget_amount
        self.end_date = end_date
        self.start_date = start_date

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

        <div lang=\"ja\">金額です。<br> ※1,000単位、3,000以上999,999,999,999,000以内です。<br> このフィールドは、ADD時に必須となり、SET時に省略可能となります。</div> <div lang=\"en\">Budget Amount.<br> * Amount must be more than 3,000 and less than 999,999,999,999,000. The unit is 1,000.<br> This field is required in ADD operation, and will be optional in SET operation.</div>   # noqa: E501

        :return: The budget_amount of this AccountManagementServiceInvoice.  # noqa: E501
        :rtype: int
        """
        return self._budget_amount

    @budget_amount.setter
    def budget_amount(self, budget_amount):
        """Sets the budget_amount of this AccountManagementServiceInvoice.

        <div lang=\"ja\">金額です。<br> ※1,000単位、3,000以上999,999,999,999,000以内です。<br> このフィールドは、ADD時に必須となり、SET時に省略可能となります。</div> <div lang=\"en\">Budget Amount.<br> * Amount must be more than 3,000 and less than 999,999,999,999,000. The unit is 1,000.<br> This field is required in ADD operation, and will be optional in SET operation.</div>   # noqa: E501

        :param budget_amount: The budget_amount of this AccountManagementServiceInvoice.  # noqa: E501
        :type: int
        """

        self._budget_amount = budget_amount

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

        <div lang=\"ja\">終了日です。※YYYYMMDD形式です。<br> ADDおよびSET時、このフィールドは省略可能となります。その際、ADD時のデフォルト設定値は20371231となり、『設定なし』と同義となります。<br> 20371231を指定した場合も『設定なし』となります。<br>SET時に『設定なし』に設定する場合は、20371231を指定してください。</div> <div lang=\"en\">End Date (YYYYMMDD).<br> This field is optional in ADD and SET operation. The default value in ADD operation will be 20371231. 20371231 will be considered as \"No setting\".<br> In order to reset the endDate in SET operation, specify 20371231.</div>   # noqa: E501

        :return: The end_date of this AccountManagementServiceInvoice.  # noqa: E501
        :rtype: str
        """
        return self._end_date

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

        <div lang=\"ja\">終了日です。※YYYYMMDD形式です。<br> ADDおよびSET時、このフィールドは省略可能となります。その際、ADD時のデフォルト設定値は20371231となり、『設定なし』と同義となります。<br> 20371231を指定した場合も『設定なし』となります。<br>SET時に『設定なし』に設定する場合は、20371231を指定してください。</div> <div lang=\"en\">End Date (YYYYMMDD).<br> This field is optional in ADD and SET operation. The default value in ADD operation will be 20371231. 20371231 will be considered as \"No setting\".<br> In order to reset the endDate in SET operation, specify 20371231.</div>   # noqa: E501

        :param end_date: The end_date of this AccountManagementServiceInvoice.  # noqa: E501
        :type: str
        """

        self._end_date = end_date

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

        <div lang=\"ja\">開始日です。※YYYYMMDD形式です。<br> このフィールドは、レスポンスの際に返却されますが、リクエストの際には無視されます。※自動でADD時の日付が登録されます。</div> <div lang=\"en\">Start Date (YYYYMMDD).<br> Although this field will be returned in the response, it will be ignored on input. * This field will be automatically registered in ADD operation.</div>   # noqa: E501

        :return: The start_date of this AccountManagementServiceInvoice.  # noqa: E501
        :rtype: str
        """
        return self._start_date

    @start_date.setter
    def start_date(self, start_date):
        """Sets the start_date of this AccountManagementServiceInvoice.

        <div lang=\"ja\">開始日です。※YYYYMMDD形式です。<br> このフィールドは、レスポンスの際に返却されますが、リクエストの際には無視されます。※自動でADD時の日付が登録されます。</div> <div lang=\"en\">Start Date (YYYYMMDD).<br> Although this field will be returned in the response, it will be ignored on input. * This field will be automatically registered in ADD operation.</div>   # noqa: E501

        :param start_date: The start_date of this AccountManagementServiceInvoice.  # noqa: E501
        :type: str
        """

        self._start_date = start_date

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

        for attr, _ in six.iteritems(self.openapi_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 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, AccountManagementServiceInvoice):
            return False

        return self.to_dict() == other.to_dict()

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

        return self.to_dict() != other.to_dict()
