# 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.create_onramp_order201_response import CreateOnrampOrder201Response

class TestCreateOnrampOrder201Response(unittest.TestCase):
    """CreateOnrampOrder201Response unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional) -> CreateOnrampOrder201Response:
        """Test CreateOnrampOrder201Response
            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 `CreateOnrampOrder201Response`
        """
        model = CreateOnrampOrder201Response()
        if include_optional:
            return CreateOnrampOrder201Response(
                order = cdp.openapi_client.models.onramp_order.OnrampOrder(
                    order_id = '123e4567-e89b-12d3-a456-426614174000', 
                    payment_total = '100.75', 
                    payment_subtotal = '100', 
                    payment_currency = 'USD', 
                    payment_method = 'GUEST_CHECKOUT_APPLE_PAY', 
                    purchase_amount = '100.000000', 
                    purchase_currency = 'USDC', 
                    fees = [{"type":"FEE_TYPE_EXCHANGE","amount":"0.5","currency":"USD"},{"type":"FEE_TYPE_NETWORK","amount":"0.25","currency":"USD"}], 
                    exchange_rate = '1', 
                    destination_address = '0x71C7656EC7ab88b098defB751B7401B5f6d8976F', 
                    destination_network = 'base', 
                    status = 'ONRAMP_ORDER_STATUS_COMPLETED', 
                    tx_hash = '0x363cd3b3d4f49497cf5076150cd709307b90e9fc897fdd623546ea7b9313cecb', 
                    created_at = '2025-04-24T00:00:00Z', 
                    updated_at = '2025-04-24T00:00:00Z', ),
                payment_link = cdp.openapi_client.models.onramp_payment_link.OnrampPaymentLink(
                    url = 'https://pay.coinbase.com/v2/api-onramp/apple-pay?sessionToken=MWYwNWQwODktZTZlYy02OTdlLTgzZTYtMTI3NzcyOWJhNjM3', 
                    payment_link_type = 'PAYMENT_LINK_TYPE_APPLE_PAY_BUTTON', )
            )
        else:
            return CreateOnrampOrder201Response(
                order = cdp.openapi_client.models.onramp_order.OnrampOrder(
                    order_id = '123e4567-e89b-12d3-a456-426614174000', 
                    payment_total = '100.75', 
                    payment_subtotal = '100', 
                    payment_currency = 'USD', 
                    payment_method = 'GUEST_CHECKOUT_APPLE_PAY', 
                    purchase_amount = '100.000000', 
                    purchase_currency = 'USDC', 
                    fees = [{"type":"FEE_TYPE_EXCHANGE","amount":"0.5","currency":"USD"},{"type":"FEE_TYPE_NETWORK","amount":"0.25","currency":"USD"}], 
                    exchange_rate = '1', 
                    destination_address = '0x71C7656EC7ab88b098defB751B7401B5f6d8976F', 
                    destination_network = 'base', 
                    status = 'ONRAMP_ORDER_STATUS_COMPLETED', 
                    tx_hash = '0x363cd3b3d4f49497cf5076150cd709307b90e9fc897fdd623546ea7b9313cecb', 
                    created_at = '2025-04-24T00:00:00Z', 
                    updated_at = '2025-04-24T00:00:00Z', ),
        )
        """

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

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