# coding: utf-8

"""
    Carbon API (Draft)

    An API to interact with Carbon's Manufacturing Cloud including 3D model upload, automated order processing and part history.  Getting started ---------------  - [Generate and download an API key](https://carbon3d.print.carbon3d.com/api_keys)   - Your API key and client secret will be downloaded into a secret.json file.  - [Use generated API key to generate a JWT token](/token_generator) from the api key.   - If your API key is revoked, this token will no longer work.  - Authorize with generated token  - Upload mesh files  - Create orders  - Monitor order status   # noqa: E501

    The version of the OpenAPI document: 0.0.1
    Contact: api-list@carbon3d.com
    Generated by: https://openapi-generator.tech
"""


from __future__ import absolute_import

import unittest
import datetime

import carbon3d
from carbon3d.models.orders_response import OrdersResponse  # noqa: E501
from carbon3d.rest import ApiException

class TestOrdersResponse(unittest.TestCase):
    """OrdersResponse unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional):
        """Test OrdersResponse
            include_option is a boolean, when False only required
            params are included, when True both required and
            optional params are included """
        # model = carbon3d.models.orders_response.OrdersResponse()  # noqa: E501
        if include_optional :
            return OrdersResponse(
                limit = 56, 
                offset = 56, 
                total_count = 56, 
                orders = [
                    {"uuid":"261bfc3a-1644-4b78-80be-264d3c85dc15","order_number":"SO_12345","printed_parts":[{"uuid":"4962b034-e64b-4f81-a40d-26b885239a58","part_uuid":"75e4811b-0f54-4ce0-a93a-511668b08b49","status":"printing"}],"due_date":"2020-03-28T12:25:00.000Z","route_to":["production"]}
                    ]
            )
        else :
            return OrdersResponse(
        )

    def testOrdersResponse(self):
        """Test OrdersResponse"""
        inst_req_only = self.make_instance(include_optional=False)
        inst_req_and_optional = self.make_instance(include_optional=True)


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