# coding: utf-8

"""
    EVE Swagger Interface

    An OpenAPI for EVE Online  # noqa: E501

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


import pprint
import re  # noqa: F401

import six


class GetCorporationsCorporationIdContracts200Ok(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 = {
        'contract_id': 'int',
        'issuer_id': 'int',
        'issuer_corporation_id': 'int',
        'assignee_id': 'int',
        'acceptor_id': 'int',
        'start_location_id': 'int',
        'end_location_id': 'int',
        'type': 'str',
        'status': 'str',
        'title': 'str',
        'for_corporation': 'bool',
        'availability': 'str',
        'date_issued': 'datetime',
        'date_expired': 'datetime',
        'date_accepted': 'datetime',
        'days_to_complete': 'int',
        'date_completed': 'datetime',
        'price': 'float',
        'reward': 'float',
        'collateral': 'float',
        'buyout': 'float',
        'volume': 'float'
    }

    attribute_map = {
        'contract_id': 'contract_id',
        'issuer_id': 'issuer_id',
        'issuer_corporation_id': 'issuer_corporation_id',
        'assignee_id': 'assignee_id',
        'acceptor_id': 'acceptor_id',
        'start_location_id': 'start_location_id',
        'end_location_id': 'end_location_id',
        'type': 'type',
        'status': 'status',
        'title': 'title',
        'for_corporation': 'for_corporation',
        'availability': 'availability',
        'date_issued': 'date_issued',
        'date_expired': 'date_expired',
        'date_accepted': 'date_accepted',
        'days_to_complete': 'days_to_complete',
        'date_completed': 'date_completed',
        'price': 'price',
        'reward': 'reward',
        'collateral': 'collateral',
        'buyout': 'buyout',
        'volume': 'volume'
    }

    def __init__(self, contract_id=None, issuer_id=None, issuer_corporation_id=None, assignee_id=None, acceptor_id=None, start_location_id=None, end_location_id=None, type=None, status=None, title=None, for_corporation=None, availability=None, date_issued=None, date_expired=None, date_accepted=None, days_to_complete=None, date_completed=None, price=None, reward=None, collateral=None, buyout=None, volume=None):  # noqa: E501
        """GetCorporationsCorporationIdContracts200Ok - a model defined in Swagger"""  # noqa: E501

        self._contract_id = None
        self._issuer_id = None
        self._issuer_corporation_id = None
        self._assignee_id = None
        self._acceptor_id = None
        self._start_location_id = None
        self._end_location_id = None
        self._type = None
        self._status = None
        self._title = None
        self._for_corporation = None
        self._availability = None
        self._date_issued = None
        self._date_expired = None
        self._date_accepted = None
        self._days_to_complete = None
        self._date_completed = None
        self._price = None
        self._reward = None
        self._collateral = None
        self._buyout = None
        self._volume = None
        self.discriminator = None

        self.contract_id = contract_id
        self.issuer_id = issuer_id
        self.issuer_corporation_id = issuer_corporation_id
        self.assignee_id = assignee_id
        self.acceptor_id = acceptor_id
        if start_location_id is not None:
            self.start_location_id = start_location_id
        if end_location_id is not None:
            self.end_location_id = end_location_id
        self.type = type
        self.status = status
        if title is not None:
            self.title = title
        self.for_corporation = for_corporation
        self.availability = availability
        self.date_issued = date_issued
        self.date_expired = date_expired
        if date_accepted is not None:
            self.date_accepted = date_accepted
        if days_to_complete is not None:
            self.days_to_complete = days_to_complete
        if date_completed is not None:
            self.date_completed = date_completed
        if price is not None:
            self.price = price
        if reward is not None:
            self.reward = reward
        if collateral is not None:
            self.collateral = collateral
        if buyout is not None:
            self.buyout = buyout
        if volume is not None:
            self.volume = volume

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

        contract_id integer  # noqa: E501

        :return: The contract_id of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :rtype: int
        """
        return self._contract_id

    @contract_id.setter
    def contract_id(self, contract_id):
        """Sets the contract_id of this GetCorporationsCorporationIdContracts200Ok.

        contract_id integer  # noqa: E501

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

        self._contract_id = contract_id

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

        Character ID for the issuer  # noqa: E501

        :return: The issuer_id of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :rtype: int
        """
        return self._issuer_id

    @issuer_id.setter
    def issuer_id(self, issuer_id):
        """Sets the issuer_id of this GetCorporationsCorporationIdContracts200Ok.

        Character ID for the issuer  # noqa: E501

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

        self._issuer_id = issuer_id

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

        Character's corporation ID for the issuer  # noqa: E501

        :return: The issuer_corporation_id of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :rtype: int
        """
        return self._issuer_corporation_id

    @issuer_corporation_id.setter
    def issuer_corporation_id(self, issuer_corporation_id):
        """Sets the issuer_corporation_id of this GetCorporationsCorporationIdContracts200Ok.

        Character's corporation ID for the issuer  # noqa: E501

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

        self._issuer_corporation_id = issuer_corporation_id

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

        ID to whom the contract is assigned, can be corporation or character ID  # noqa: E501

        :return: The assignee_id of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :rtype: int
        """
        return self._assignee_id

    @assignee_id.setter
    def assignee_id(self, assignee_id):
        """Sets the assignee_id of this GetCorporationsCorporationIdContracts200Ok.

        ID to whom the contract is assigned, can be corporation or character ID  # noqa: E501

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

        self._assignee_id = assignee_id

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

        Who will accept the contract  # noqa: E501

        :return: The acceptor_id of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :rtype: int
        """
        return self._acceptor_id

    @acceptor_id.setter
    def acceptor_id(self, acceptor_id):
        """Sets the acceptor_id of this GetCorporationsCorporationIdContracts200Ok.

        Who will accept the contract  # noqa: E501

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

        self._acceptor_id = acceptor_id

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

        Start location ID (for Couriers contract)  # noqa: E501

        :return: The start_location_id of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :rtype: int
        """
        return self._start_location_id

    @start_location_id.setter
    def start_location_id(self, start_location_id):
        """Sets the start_location_id of this GetCorporationsCorporationIdContracts200Ok.

        Start location ID (for Couriers contract)  # noqa: E501

        :param start_location_id: The start_location_id of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :type: int
        """

        self._start_location_id = start_location_id

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

        End location ID (for Couriers contract)  # noqa: E501

        :return: The end_location_id of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :rtype: int
        """
        return self._end_location_id

    @end_location_id.setter
    def end_location_id(self, end_location_id):
        """Sets the end_location_id of this GetCorporationsCorporationIdContracts200Ok.

        End location ID (for Couriers contract)  # noqa: E501

        :param end_location_id: The end_location_id of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :type: int
        """

        self._end_location_id = end_location_id

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

        Type of the contract  # noqa: E501

        :return: The type of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :rtype: str
        """
        return self._type

    @type.setter
    def type(self, type):
        """Sets the type of this GetCorporationsCorporationIdContracts200Ok.

        Type of the contract  # noqa: E501

        :param type: The type of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :type: str
        """
        if type is None:
            raise ValueError("Invalid value for `type`, must not be `None`")  # noqa: E501
        allowed_values = ["unknown", "item_exchange", "auction", "courier", "loan"]  # noqa: E501
        if type not in allowed_values:
            raise ValueError(
                "Invalid value for `type` ({0}), must be one of {1}"  # noqa: E501
                .format(type, allowed_values)
            )

        self._type = type

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

        Status of the the contract  # noqa: E501

        :return: The status of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :rtype: str
        """
        return self._status

    @status.setter
    def status(self, status):
        """Sets the status of this GetCorporationsCorporationIdContracts200Ok.

        Status of the the contract  # noqa: E501

        :param status: The status of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :type: str
        """
        if status is None:
            raise ValueError("Invalid value for `status`, must not be `None`")  # noqa: E501
        allowed_values = ["outstanding", "in_progress", "finished_issuer", "finished_contractor", "finished", "cancelled", "rejected", "failed", "deleted", "reversed"]  # noqa: E501
        if status not in allowed_values:
            raise ValueError(
                "Invalid value for `status` ({0}), must be one of {1}"  # noqa: E501
                .format(status, allowed_values)
            )

        self._status = status

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

        Title of the contract  # noqa: E501

        :return: The title of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :rtype: str
        """
        return self._title

    @title.setter
    def title(self, title):
        """Sets the title of this GetCorporationsCorporationIdContracts200Ok.

        Title of the contract  # noqa: E501

        :param title: The title of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :type: str
        """

        self._title = title

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

        true if the contract was issued on behalf of the issuer's corporation  # noqa: E501

        :return: The for_corporation of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :rtype: bool
        """
        return self._for_corporation

    @for_corporation.setter
    def for_corporation(self, for_corporation):
        """Sets the for_corporation of this GetCorporationsCorporationIdContracts200Ok.

        true if the contract was issued on behalf of the issuer's corporation  # noqa: E501

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

        self._for_corporation = for_corporation

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

        To whom the contract is available  # noqa: E501

        :return: The availability of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :rtype: str
        """
        return self._availability

    @availability.setter
    def availability(self, availability):
        """Sets the availability of this GetCorporationsCorporationIdContracts200Ok.

        To whom the contract is available  # noqa: E501

        :param availability: The availability of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :type: str
        """
        if availability is None:
            raise ValueError("Invalid value for `availability`, must not be `None`")  # noqa: E501
        allowed_values = ["public", "personal", "corporation", "alliance"]  # noqa: E501
        if availability not in allowed_values:
            raise ValueError(
                "Invalid value for `availability` ({0}), must be one of {1}"  # noqa: E501
                .format(availability, allowed_values)
            )

        self._availability = availability

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

        Сreation date of the contract  # noqa: E501

        :return: The date_issued of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :rtype: datetime
        """
        return self._date_issued

    @date_issued.setter
    def date_issued(self, date_issued):
        """Sets the date_issued of this GetCorporationsCorporationIdContracts200Ok.

        Сreation date of the contract  # noqa: E501

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

        self._date_issued = date_issued

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

        Expiration date of the contract  # noqa: E501

        :return: The date_expired of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :rtype: datetime
        """
        return self._date_expired

    @date_expired.setter
    def date_expired(self, date_expired):
        """Sets the date_expired of this GetCorporationsCorporationIdContracts200Ok.

        Expiration date of the contract  # noqa: E501

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

        self._date_expired = date_expired

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

        Date of confirmation of contract  # noqa: E501

        :return: The date_accepted of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :rtype: datetime
        """
        return self._date_accepted

    @date_accepted.setter
    def date_accepted(self, date_accepted):
        """Sets the date_accepted of this GetCorporationsCorporationIdContracts200Ok.

        Date of confirmation of contract  # noqa: E501

        :param date_accepted: The date_accepted of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :type: datetime
        """

        self._date_accepted = date_accepted

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

        Number of days to perform the contract  # noqa: E501

        :return: The days_to_complete of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :rtype: int
        """
        return self._days_to_complete

    @days_to_complete.setter
    def days_to_complete(self, days_to_complete):
        """Sets the days_to_complete of this GetCorporationsCorporationIdContracts200Ok.

        Number of days to perform the contract  # noqa: E501

        :param days_to_complete: The days_to_complete of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :type: int
        """

        self._days_to_complete = days_to_complete

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

        Date of completed of contract  # noqa: E501

        :return: The date_completed of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :rtype: datetime
        """
        return self._date_completed

    @date_completed.setter
    def date_completed(self, date_completed):
        """Sets the date_completed of this GetCorporationsCorporationIdContracts200Ok.

        Date of completed of contract  # noqa: E501

        :param date_completed: The date_completed of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :type: datetime
        """

        self._date_completed = date_completed

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

        Price of contract (for ItemsExchange and Auctions)  # noqa: E501

        :return: The price of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :rtype: float
        """
        return self._price

    @price.setter
    def price(self, price):
        """Sets the price of this GetCorporationsCorporationIdContracts200Ok.

        Price of contract (for ItemsExchange and Auctions)  # noqa: E501

        :param price: The price of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :type: float
        """

        self._price = price

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

        Remuneration for contract (for Couriers only)  # noqa: E501

        :return: The reward of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :rtype: float
        """
        return self._reward

    @reward.setter
    def reward(self, reward):
        """Sets the reward of this GetCorporationsCorporationIdContracts200Ok.

        Remuneration for contract (for Couriers only)  # noqa: E501

        :param reward: The reward of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :type: float
        """

        self._reward = reward

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

        Collateral price (for Couriers only)  # noqa: E501

        :return: The collateral of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :rtype: float
        """
        return self._collateral

    @collateral.setter
    def collateral(self, collateral):
        """Sets the collateral of this GetCorporationsCorporationIdContracts200Ok.

        Collateral price (for Couriers only)  # noqa: E501

        :param collateral: The collateral of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :type: float
        """

        self._collateral = collateral

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

        Buyout price (for Auctions only)  # noqa: E501

        :return: The buyout of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :rtype: float
        """
        return self._buyout

    @buyout.setter
    def buyout(self, buyout):
        """Sets the buyout of this GetCorporationsCorporationIdContracts200Ok.

        Buyout price (for Auctions only)  # noqa: E501

        :param buyout: The buyout of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :type: float
        """

        self._buyout = buyout

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

        Volume of items in the contract  # noqa: E501

        :return: The volume of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :rtype: float
        """
        return self._volume

    @volume.setter
    def volume(self, volume):
        """Sets the volume of this GetCorporationsCorporationIdContracts200Ok.

        Volume of items in the contract  # noqa: E501

        :param volume: The volume of this GetCorporationsCorporationIdContracts200Ok.  # noqa: E501
        :type: float
        """

        self._volume = volume

    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

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

        return self.__dict__ == other.__dict__

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