# coding: utf-8

"""
    Coinbase Developer Platform APIs

    The Coinbase Developer Platform APIs - leading the world's transition onchain.

    The version of the OpenAPI document: 2.0.0
    Contact: cdp@coinbase.com
    Generated by OpenAPI Generator (https://openapi-generator.tech)

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


import unittest

from cdp.openapi_client.models.list_spend_permissions200_response import ListSpendPermissions200Response

class TestListSpendPermissions200Response(unittest.TestCase):
    """ListSpendPermissions200Response unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional) -> ListSpendPermissions200Response:
        """Test ListSpendPermissions200Response
            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 `ListSpendPermissions200Response`
        """
        model = ListSpendPermissions200Response()
        if include_optional:
            return ListSpendPermissions200Response(
                next_page_token = 'eyJsYXN0X2lkIjogImFiYzEyMyIsICJ0aW1lc3RhbXAiOiAxNzA3ODIzNzAxfQ==',
                spend_permissions = [
                    cdp.openapi_client.models.spend_permission_response_object.SpendPermissionResponseObject(
                        permission = {account=0xd53Ee96438383Bb1eff07958D110B81363E9Ab47, spender=0x9Fb909eA400c2b8D99Be292DADf07e63B814527c, token=0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE, allowance=1000000000000000000, period=86400, start=0, end=281474976710655, salt=0, extraData=0x}, 
                        permission_hash = '0x62bc94756bb6221a7913beab6024171fc60d3380fdc06759bfac76e8ccb3f63d', 
                        revoked = False, 
                        revoked_at = '2025-03-25T12:00:00Z', 
                        created_at = '2025-03-25T12:00:00Z', 
                        network = 'base', )
                    ]
            )
        else:
            return ListSpendPermissions200Response(
                spend_permissions = [
                    cdp.openapi_client.models.spend_permission_response_object.SpendPermissionResponseObject(
                        permission = {account=0xd53Ee96438383Bb1eff07958D110B81363E9Ab47, spender=0x9Fb909eA400c2b8D99Be292DADf07e63B814527c, token=0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE, allowance=1000000000000000000, period=86400, start=0, end=281474976710655, salt=0, extraData=0x}, 
                        permission_hash = '0x62bc94756bb6221a7913beab6024171fc60d3380fdc06759bfac76e8ccb3f63d', 
                        revoked = False, 
                        revoked_at = '2025-03-25T12:00:00Z', 
                        created_at = '2025-03-25T12:00:00Z', 
                        network = 'base', )
                    ],
        )
        """

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

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