# coding: utf-8

"""
    Pinterest REST API

    Pinterest's REST API

    The version of the OpenAPI document: 5.23.0
    Contact: blah+oapicf@cliffano.com
    Generated by OpenAPI Generator (https://openapi-generator.tech)

    Do not edit the class manually.
"""  # noqa: E501


import unittest

from pinterestsdk.models.template_response import TemplateResponse

class TestTemplateResponse(unittest.TestCase):
    """TemplateResponse unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional) -> TemplateResponse:
        """Test TemplateResponse
            include_optional is a boolean, when False only required
            params are included, when True both required and
            optional params are included """
        # uncomment below to create an instance of `TemplateResponse`
        """
        model = TemplateResponse()
        if include_optional:
            return TemplateResponse(
                ad_account_id = '547664674848',
                ad_account_ids = ["547664674848"],
                click_window_days = 7,
                columns = ["SPEND_IN_DOLLAR"],
                conversion_report_time_type = 'TIME_OF_AD_ACTION',
                creation_source = 'ADS_MANAGER_REPORT_BUILDER',
                custom_column_ids = ["1597252063"],
                date_range = pinterestsdk.models.template_response_date_range.TemplateResponse_date_range(
                    absolute_date_range = {"end_date":6.027456183070403,"type":"absolute","start_date":0.8008281904610115}, 
                    dynamic_date_range = {"range":"YEAR_TO_DATE","type":"dynamic"}, 
                    relative_date_range = {"end_days_in_past":7,"type":"relative","start_days_in_past":14}, ),
                engagement_window_days = 7,
                filters_json = '[{"field": "SPEND_IN_DOLLAR", "operator": "=", "value": 100}]',
                granularity = 'TOTAL',
                id = '6739202847590',
                ingestion_sources = [
                    'CONVERSIONS_API'
                    ],
                is_deleted = False,
                is_owned_by_user = True,
                is_scheduled = True,
                name = 'Week over week spend',
                report_end_relative_days_in_past = 7,
                report_format = 'JSON',
                report_level = 'CAMPAIGN',
                report_start_relative_days_in_past = 7,
                type = 'BULK',
                updated_time = 1432744744,
                user_id = '784762938748396',
                view_window_days = 7
            )
        else:
            return TemplateResponse(
        )
        """

    def testTemplateResponse(self):
        """Test TemplateResponse"""
        # inst_req_only = self.make_instance(include_optional=False)
        # inst_req_and_optional = self.make_instance(include_optional=True)

if __name__ == '__main__':
    unittest.main()
