# coding: utf-8

"""
    Xero AppStore API

    These endpoints are for Xero Partners to interact with the App Store Billing platform  # noqa: E501

    Contact: api@xero.com
    Generated by: https://openapi-generator.tech
"""


import re  # noqa: F401

from xero_python.models import BaseModel


class UsageRecordsList(BaseModel):
    """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 = {"usage_records": "list[UsageRecord]"}

    attribute_map = {"usage_records": "usageRecords"}

    def __init__(self, usage_records=None):  # noqa: E501
        """UsageRecordsList - a model defined in OpenAPI"""  # noqa: E501

        self._usage_records = None
        self.discriminator = None

        self.usage_records = usage_records

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

        A collection of usage records  # noqa: E501

        :return: The usage_records of this UsageRecordsList.  # noqa: E501
        :rtype: list[UsageRecord]
        """
        return self._usage_records

    @usage_records.setter
    def usage_records(self, usage_records):
        """Sets the usage_records of this UsageRecordsList.

        A collection of usage records  # noqa: E501

        :param usage_records: The usage_records of this UsageRecordsList.  # noqa: E501
        :type: list[UsageRecord]
        """
        if usage_records is None:
            raise ValueError(
                "Invalid value for `usage_records`, must not be `None`"
            )  # noqa: E501

        self._usage_records = usage_records
