# 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 BalanceSheetAccountGroup(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 = {"account_types": "list[BalanceSheetAccountType]", "total": "float"}

    attribute_map = {"account_types": "accountTypes", "total": "total"}

    def __init__(self, account_types=None, total=None):  # noqa: E501
        """BalanceSheetAccountGroup - a model defined in OpenAPI"""  # noqa: E501

        self._account_types = None
        self._total = None
        self.discriminator = None

        if account_types is not None:
            self.account_types = account_types
        if total is not None:
            self.total = total

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


        :return: The account_types of this BalanceSheetAccountGroup.  # noqa: E501
        :rtype: list[BalanceSheetAccountType]
        """
        return self._account_types

    @account_types.setter
    def account_types(self, account_types):
        """Sets the account_types of this BalanceSheetAccountGroup.


        :param account_types: The account_types of this BalanceSheetAccountGroup.  # noqa: E501
        :type: list[BalanceSheetAccountType]
        """

        self._account_types = account_types

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

        Total value of all the accounts in this type  # noqa: E501

        :return: The total of this BalanceSheetAccountGroup.  # noqa: E501
        :rtype: float
        """
        return self._total

    @total.setter
    def total(self, total):
        """Sets the total of this BalanceSheetAccountGroup.

        Total value of all the accounts in this type  # noqa: E501

        :param total: The total of this BalanceSheetAccountGroup.  # noqa: E501
        :type: float
        """

        self._total = total
