<filename>apteco_api/models/licensing_info.py
# coding: utf-8

"""
    Apteco API

    An API to allow access to Apteco Marketing Suite resources  # noqa: E501

    The version of the OpenAPI document: v2
    Contact: <EMAIL>
    Generated by: https://openapi-generator.tech
"""


import pprint
import re  # noqa: F401

import six


class LicensingInfo(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 = {
        'credit_remaining': 'float',
        'grand_total_cost': 'float',
        'number_of_records_to_license': 'int',
        'query_id': 'str'
    }

    attribute_map = {
        'credit_remaining': 'creditRemaining',
        'grand_total_cost': 'grandTotalCost',
        'number_of_records_to_license': 'numberOfRecordsToLicense',
        'query_id': 'queryId'
    }

    def __init__(self, credit_remaining=None, grand_total_cost=None, number_of_records_to_license=None, query_id=None):  # noqa: E501
        """LicensingInfo - a model defined in OpenAPI"""  # noqa: E501

        self._credit_remaining = None
        self._grand_total_cost = None
        self._number_of_records_to_license = None
        self._query_id = None
        self.discriminator = None

        self.credit_remaining = credit_remaining
        self.grand_total_cost = grand_total_cost
        self.number_of_records_to_license = number_of_records_to_license
        self.query_id = query_id

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

        The remaining money available to license records  # noqa: E501

        :return: The credit_remaining of this LicensingInfo.  # noqa: E501
        :rtype: float
        """
        return self._credit_remaining

    @credit_remaining.setter
    def credit_remaining(self, credit_remaining):
        """Sets the credit_remaining of this LicensingInfo.

        The remaining money available to license records  # noqa: E501

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

        self._credit_remaining = credit_remaining

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

        The total cost to license the records  # noqa: E501

        :return: The grand_total_cost of this LicensingInfo.  # noqa: E501
        :rtype: float
        """
        return self._grand_total_cost

    @grand_total_cost.setter
    def grand_total_cost(self, grand_total_cost):
        """Sets the grand_total_cost of this LicensingInfo.

        The total cost to license the records  # noqa: E501

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

        self._grand_total_cost = grand_total_cost

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

        The number of records from the given query that have not yet been licensed  # noqa: E501

        :return: The number_of_records_to_license of this LicensingInfo.  # noqa: E501
        :rtype: int
        """
        return self._number_of_records_to_license

    @number_of_records_to_license.setter
    def number_of_records_to_license(self, number_of_records_to_license):
        """Sets the number_of_records_to_license of this LicensingInfo.

        The number of records from the given query that have not yet been licensed  # noqa: E501

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

        self._number_of_records_to_license = number_of_records_to_license

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

        The unique id of an audience data licensing query  # noqa: E501

        :return: The query_id of this LicensingInfo.  # noqa: E501
        :rtype: str
        """
        return self._query_id

    @query_id.setter
    def query_id(self, query_id):
        """Sets the query_id of this LicensingInfo.

        The unique id of an audience data licensing query  # noqa: E501

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

        self._query_id = query_id

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

        return self.__dict__ == other.__dict__

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

<filename>apteco_api/models/licensing_info.py
# coding: utf-8

"""
    Apteco API

    An API to allow access to Apteco Marketing Suite resources  # noqa: E501

    The version of the OpenAPI document: v2
    Contact: <EMAIL>
    Generated by: https://openapi-generator.tech
"""


import pprint
import re  # noqa: F401

import six


class LicensingInfo(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 = {
        'credit_remaining': 'float',
        'grand_total_cost': 'float',
        'number_of_records_to_license': 'int',
        'query_id': 'str'
    }

    attribute_map = {
        'credit_remaining': 'creditRemaining',
        'grand_total_cost': 'grandTotalCost',
        'number_of_records_to_license': 'numberOfRecordsToLicense',
        'query_id': 'queryId'
    }

    def __init__(self, credit_remaining=None, grand_total_cost=None, number_of_records_to_license=None, query_id=None):  # noqa: E501
        """LicensingInfo - a model defined in OpenAPI"""  # noqa: E501

        self._credit_remaining = None
        self._grand_total_cost = None
        self._number_of_records_to_license = None
        self._query_id = None
        self.discriminator = None

        self.credit_remaining = credit_remaining
        self.grand_total_cost = grand_total_cost
        self.number_of_records_to_license = number_of_records_to_license
        self.query_id = query_id

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

        The remaining money available to license records  # noqa: E501

        :return: The credit_remaining of this LicensingInfo.  # noqa: E501
        :rtype: float
        """
        return self._credit_remaining

    @credit_remaining.setter
    def credit_remaining(self, credit_remaining):
        """Sets the credit_remaining of this LicensingInfo.

        The remaining money available to license records  # noqa: E501

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

        self._credit_remaining = credit_remaining

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

        The total cost to license the records  # noqa: E501

        :return: The grand_total_cost of this LicensingInfo.  # noqa: E501
        :rtype: float
        """
        return self._grand_total_cost

    @grand_total_cost.setter
    def grand_total_cost(self, grand_total_cost):
        """Sets the grand_total_cost of this LicensingInfo.

        The total cost to license the records  # noqa: E501

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

        self._grand_total_cost = grand_total_cost

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

        The number of records from the given query that have not yet been licensed  # noqa: E501

        :return: The number_of_records_to_license of this LicensingInfo.  # noqa: E501
        :rtype: int
        """
        return self._number_of_records_to_license

    @number_of_records_to_license.setter
    def number_of_records_to_license(self, number_of_records_to_license):
        """Sets the number_of_records_to_license of this LicensingInfo.

        The number of records from the given query that have not yet been licensed  # noqa: E501

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

        self._number_of_records_to_license = number_of_records_to_license

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

        The unique id of an audience data licensing query  # noqa: E501

        :return: The query_id of this LicensingInfo.  # noqa: E501
        :rtype: str
        """
        return self._query_id

    @query_id.setter
    def query_id(self, query_id):
        """Sets the query_id of this LicensingInfo.

        The unique id of an audience data licensing query  # noqa: E501

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

        self._query_id = query_id

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

        return self.__dict__ == other.__dict__

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

# coding: utf-8 Apteco API      An API to allow access to Apteco Marketing Suite resources  # noqa: E501      The version of the OpenAPI document: v2     Contact: <EMAIL>     Generated by: https://openapi-generator.tech # noqa: F401 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. # noqa: E501 LicensingInfo - a model defined in OpenAPI # noqa: E501 Gets the credit_remaining of this LicensingInfo.  # noqa: E501          The remaining money available to license records  # noqa: E501          :return: The credit_remaining of this LicensingInfo.  # noqa: E501         :rtype: float Sets the credit_remaining of this LicensingInfo.          The remaining money available to license records  # noqa: E501          :param credit_remaining: The credit_remaining of this LicensingInfo.  # noqa: E501         :type: float # noqa: E501 Gets the grand_total_cost of this LicensingInfo.  # noqa: E501          The total cost to license the records  # noqa: E501          :return: The grand_total_cost of this LicensingInfo.  # noqa: E501         :rtype: float Sets the grand_total_cost of this LicensingInfo.          The total cost to license the records  # noqa: E501          :param grand_total_cost: The grand_total_cost of this LicensingInfo.  # noqa: E501         :type: float # noqa: E501 Gets the number_of_records_to_license of this LicensingInfo.  # noqa: E501          The number of records from the given query that have not yet been licensed  # noqa: E501          :return: The number_of_records_to_license of this LicensingInfo.  # noqa: E501         :rtype: int Sets the number_of_records_to_license of this LicensingInfo.          The number of records from the given query that have not yet been licensed  # noqa: E501          :param number_of_records_to_license: The number_of_records_to_license of this LicensingInfo.  # noqa: E501         :type: int # noqa: E501 Gets the query_id of this LicensingInfo.  # noqa: E501          The unique id of an audience data licensing query  # noqa: E501          :return: The query_id of this LicensingInfo.  # noqa: E501         :rtype: str Sets the query_id of this LicensingInfo.          The unique id of an audience data licensing query  # noqa: E501          :param query_id: The query_id of this LicensingInfo.  # noqa: E501         :type: str # noqa: E501 Returns the model properties as a dict Returns the string representation of the model For `print` and `pprint` Returns true if both objects are equal Returns true if both objects are not equal