# coding: utf-8

"""
    Xero Finance API

    The Finance API is a collection of endpoints which customers can use in the course of a loan application, which may assist lenders to gain the confidence they need to provide capital.  # noqa: E501

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


import re  # noqa: F401

from xero_python.models import BaseModel


class TrialBalanceResponse(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 = {
        "start_date": "date",
        "end_date": "date",
        "accounts": "list[TrialBalanceAccount]",
    }

    attribute_map = {
        "start_date": "startDate",
        "end_date": "endDate",
        "accounts": "accounts",
    }

    def __init__(self, start_date=None, end_date=None, accounts=None):  # noqa: E501
        """TrialBalanceResponse - a model defined in OpenAPI"""  # noqa: E501

        self._start_date = None
        self._end_date = None
        self._accounts = None
        self.discriminator = None

        if start_date is not None:
            self.start_date = start_date
        if end_date is not None:
            self.end_date = end_date
        if accounts is not None:
            self.accounts = accounts

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

        Start date of the report  # noqa: E501

        :return: The start_date of this TrialBalanceResponse.  # noqa: E501
        :rtype: date
        """
        return self._start_date

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

        Start date of the report  # noqa: E501

        :param start_date: The start_date of this TrialBalanceResponse.  # noqa: E501
        :type: date
        """

        self._start_date = start_date

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

        End date of the report  # noqa: E501

        :return: The end_date of this TrialBalanceResponse.  # noqa: E501
        :rtype: date
        """
        return self._end_date

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

        End date of the report  # noqa: E501

        :param end_date: The end_date of this TrialBalanceResponse.  # noqa: E501
        :type: date
        """

        self._end_date = end_date

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

        Refer to the accounts section below  # noqa: E501

        :return: The accounts of this TrialBalanceResponse.  # noqa: E501
        :rtype: list[TrialBalanceAccount]
        """
        return self._accounts

    @accounts.setter
    def accounts(self, accounts):
        """Sets the accounts of this TrialBalanceResponse.

        Refer to the accounts section below  # noqa: E501

        :param accounts: The accounts of this TrialBalanceResponse.  # noqa: E501
        :type: list[TrialBalanceAccount]
        """

        self._accounts = accounts
