# coding: utf-8

"""
    DUPR Backend APIs

    Internal RESTful APIs to access DUPR ratings, users and provide matches.

    The version of the OpenAPI document: v1.0.0
    Generated by OpenAPI Generator (https://openapi-generator.tech)

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


import unittest

from dupr_backend.models.bracket_response import BracketResponse

class TestBracketResponse(unittest.TestCase):
    """BracketResponse unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional) -> BracketResponse:
        """Test BracketResponse
            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 `BracketResponse`
        """
        model = BracketResponse()
        if include_optional:
            return BracketResponse(
                bracket_id = 4684651981,
                league_id = 4684651981,
                name = 'Stillwater Pickleball',
                custom_code = 'BRACKET123',
                duration = ['yyyy-mm-dd','yyyy-mm-dd'],
                format = 'SINGLES/DOUBLES',
                elimination = 'SINGLE/DOUBLE/DOUBLE_PREVENTED/ROUND_ROBIN',
                player_group = 'MEN/WOMEN/MIXED/COED',
                rating_bracket = [3.1, 4.5],
                age_bracket = [27, 35],
                description = dupr_backend.models.league_content_response.LeagueContentResponse(
                    content_id = 45785789, 
                    header = '<h1>header</h1>', 
                    header_type = 'text/html', 
                    content = '<h1>content</h1>', 
                    content_type = 'text/html', 
                    footer = '<h1>footer</h1>', 
                    footer_type = 'text/html', ),
                match_bonus_points = 8,
                registration_date = ['yyyy-mm-dd','yyyy-mm-dd'],
                score_format = '1',
                member_fee = 500,
                non_member_fee = 500,
                max_team = 500,
                wait_list = 500,
                status = 'ACTIVE/IN_PROGRESS/COMPLETE/CANCELLED',
                score_format_id = 4684651981,
                registration_status = 'OPEN/CLOSED',
                duration_status = 'IN_PROGRESS/UPCOMING',
                registration_details = dupr_backend.models.registration_response.RegistrationResponse(
                    registration_id = 4684651981, 
                    player1 = dupr_backend.models.participant.Participant(
                        id = 26518181881, 
                        full_name = 'Brian Lara', 
                        username = 'X AE A-XII', 
                        display_username = True, 
                        partner_status = 'NOT_ADDED/CONFIRMED/NOT_CONFIRMED/PAYMENT_DUE', 
                        status = 'NOT_ADDED/CONFIRMED/NOT_CONFIRMED/PAYMENT_DUE', 
                        payment_due = '2021-12-01', 
                        payment_status = 'PENDING/COMPLETE', 
                        is_registered = False, 
                        is_wait_listed = True, 
                        is_c_lub_member = True, 
                        payment_refunded = True, 
                        refund_amount = true, 
                        is_substitute = True, 
                        substitute = True, 
                        registered = True, 
                        wait_listed = True, 
                        club_member = True, ), 
                    player2 = dupr_backend.models.participant.Participant(
                        id = 26518181881, 
                        full_name = 'Brian Lara', 
                        username = 'X AE A-XII', 
                        display_username = True, 
                        partner_status = 'NOT_ADDED/CONFIRMED/NOT_CONFIRMED/PAYMENT_DUE', 
                        status = 'NOT_ADDED/CONFIRMED/NOT_CONFIRMED/PAYMENT_DUE', 
                        payment_due = '2021-12-01', 
                        payment_status = 'PENDING/COMPLETE', 
                        is_registered = False, 
                        is_wait_listed = True, 
                        is_c_lub_member = True, 
                        payment_refunded = True, 
                        refund_amount = true, 
                        is_substitute = True, 
                        substitute = True, 
                        registered = True, 
                        wait_listed = True, 
                        club_member = True, ), 
                    is_participant1 = True, 
                    is_wait_listed = True, 
                    event_refunded_amount = true, 
                    wait_listed = True, 
                    participant1 = True, ),
                league_name = 'Stillwater Pickleball',
                league_address = dupr_backend.models.address_response.AddressResponse(
                    id = 12385789, 
                    address_line = 'Apartment, Room, PO Box numbers (optional)', 
                    short_address = 'Center Valley, PA, US', 
                    formatted_address = '5800', 
                    latitude = 33.194791, 
                    longitude = -117.048582, 
                    place_id = '', 
                    precision = '', 
                    status = '', 
                    types = '', 
                    create = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ),
                media_url = 'www.url.com/image.jpg',
                total_rounds = 1,
                contact_details = [
                    dupr_backend.models.league_contact_detail_response.LeagueContactDetailResponse(
                        name = 'Dreamland pickalball', 
                        email = 'hisenberg@yopmail.com', 
                        phone = '18022214966', 
                        address = 'PA 18034, United States', 
                        type = 'person/club', 
                        priority = 1, )
                    ],
                is_registered = True,
                club_name = 'Stillwater Pickleball',
                registered_members = 56,
                is_match_seeded = True,
                club_id = 45785789,
                is_wait_list_full = True,
                display_status = 'Draft/Upcoming/Open/Ongoing',
                has_confirm_match = False,
                has_queue = True,
                is_queue_complete = True,
                can_show_standings = True,
                courts = 5,
                registration_date_time = ['yyyy-mm-ddTHH:mm:ss','yyyy-mm-ddTHH:mm:ss'],
                duration_date_time = ['yyyy-mm-ddTHH:mm:ss','yyyy-mm-ddTHH:mm:ss'],
                time_zone = 'IST',
                zone_name = 'IST',
                is_player_eligible = True,
                draw_impacted = True,
                payment_details = dupr_backend.models.payment_details_response.PaymentDetailsResponse(
                    payment_status = 'ACTIVE', 
                    is_club_member = True, 
                    is_wait_listed = True, 
                    refunded_amount = 10, 
                    amount_paid = 100, 
                    payment_capture = True, 
                    player_status = 'ACTIVE', 
                    is_registered = True, 
                    event_fee = 1.337, ),
                reg_user_id = 56,
                payment_status = 'ACTIVE',
                currency_details = dupr_backend.models.currency_details_response.CurrencyDetailsResponse(
                    currency_code = 'USD', 
                    currency_symbol = '$', 
                    currency_name = 'US Dollar', 
                    min_limit = 100, ),
                match_seeded = True,
                registered = True,
                wait_list_full = True,
                queue_complete = True,
                player_eligible = True
            )
        else:
            return BracketResponse(
                bracket_id = 4684651981,
                league_id = 4684651981,
                duration = ['yyyy-mm-dd','yyyy-mm-dd'],
                score_format = '1',
                non_member_fee = 500,
                wait_list = 500,
                score_format_id = 4684651981,
                league_name = 'Stillwater Pickleball',
                is_registered = True,
                club_name = 'Stillwater Pickleball',
                club_id = 45785789,
                is_wait_list_full = True,
                payment_status = 'ACTIVE',
        )
        """

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

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