# 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.conversion_events import ConversionEvents

class TestConversionEvents(unittest.TestCase):
    """ConversionEvents unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional) -> ConversionEvents:
        """Test ConversionEvents
            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 `ConversionEvents`
        """
        model = ConversionEvents()
        if include_optional:
            return ConversionEvents(
                data = [
                    pinterestsdk.models.conversion_events_data_inner.ConversionEvents_data_inner(
                        action_source = 'app_ios', 
                        app_id = '429047995', 
                        app_info = pinterestsdk.models.conversion_event_app_info.ConversionEventAppInfo(
                            app_id = '429047995', 
                            app_name = 'MyAwesomeApp', 
                            app_package_name = 'com.company.myawesomeapp', 
                            app_store = 'Google Play Store', 
                            app_version = '7.9', 
                            install_time = 1739222269, 
                            user_agent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36', 
                            window_height = 900, 
                            window_width = 1678, ), 
                        app_name = 'Pinterest', 
                        app_version = '7.9', 
                        custom_data = pinterestsdk.models.conversion_events_data_inner_custom_data.ConversionEvents_data_inner_custom_data(
                            content_brand = 'pinterest-brand', 
                            content_category = 'shirts', 
                            content_ids = ["product-id-001","product-id-002"], 
                            content_name = 'pinterest-themed-clothing', 
                            contents = [{"id":"product-id-001","item_price":"14.99","quantity":3,"item_name":"pinterest-shirt-girl","item_category":"pinterest-clothing-shirts","item_brand":"pinterest"},{"id":"product-id-002","item_price":"13.71","quantity":2,"item_name":"pinterest-shirt-men","item_category":"pinterest-clothing-shirts","item_brand":"pinterest"}], 
                            currency = 'USD', 
                            external_measurement_id = 'rbos-cb7a9e56-4988-4ca0-801b-05c79b29785f', 
                            external_measurement_vendor_id = 1, 
                            np = 'ss-company', 
                            num_items = 5, 
                            opt_out_type = 'LDP', 
                            order_id = 'my_order_id', 
                            predicted_ltv = '2794.82', 
                            search_string = 'sample string', 
                            value = '72.39', ), 
                        device_brand = 'Apple', 
                        device_carrier = 'T-Mobile', 
                        device_info = pinterestsdk.models.conversion_event_device_info.ConversionEventDeviceInfo(
                            battery_level = 78, 
                            brand = 'Apple, Samsung, Motorola', 
                            carrier = 'T-Mobile', 
                            cpu_cores = 8, 
                            external_storage_free_space = 126, 
                            external_storage_size = 512, 
                            form_factor = 'cellphone', 
                            kernel_version = '6.15', 
                            languages = ["en","de","lt"], 
                            locale = 'en-us', 
                            model = '16 Pro, Galaxy S25 Ultra', 
                            network_type = 'wifi', 
                            os_family = 'ios', 
                            os_name = '10', 
                            os_release_name = '18.3', 
                            os_version = '18.3', 
                            screen_density = 460, 
                            screen_height = 2868, 
                            screen_width = 1320, 
                            storage_free_space = 184, 
                            storage_size = 256, 
                            timezone = 'USA/New York', 
                            timezone_abbr = 'PDT', 
                            type = 'iPhone, Android', ), 
                        device_model = 'iPhone X', 
                        device_type = 'iPhone', 
                        event_id = 'eventId0001', 
                        event_name = 'checkout', 
                        event_source_url = 'https://www.my-clothing-shop.org/', 
                        event_time = 1451431341, 
                        language = 'en', 
                        opt_out = False, 
                        os_version = '12.1.4', 
                        partner_name = 'ss-partnername', 
                        user_data = pinterestsdk.models.conversion_events_user_data.ConversionEventsUserData(), 
                        wifi = False, )
                    ]
            )
        else:
            return ConversionEvents(
                data = [
                    pinterestsdk.models.conversion_events_data_inner.ConversionEvents_data_inner(
                        action_source = 'app_ios', 
                        app_id = '429047995', 
                        app_info = pinterestsdk.models.conversion_event_app_info.ConversionEventAppInfo(
                            app_id = '429047995', 
                            app_name = 'MyAwesomeApp', 
                            app_package_name = 'com.company.myawesomeapp', 
                            app_store = 'Google Play Store', 
                            app_version = '7.9', 
                            install_time = 1739222269, 
                            user_agent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36', 
                            window_height = 900, 
                            window_width = 1678, ), 
                        app_name = 'Pinterest', 
                        app_version = '7.9', 
                        custom_data = pinterestsdk.models.conversion_events_data_inner_custom_data.ConversionEvents_data_inner_custom_data(
                            content_brand = 'pinterest-brand', 
                            content_category = 'shirts', 
                            content_ids = ["product-id-001","product-id-002"], 
                            content_name = 'pinterest-themed-clothing', 
                            contents = [{"id":"product-id-001","item_price":"14.99","quantity":3,"item_name":"pinterest-shirt-girl","item_category":"pinterest-clothing-shirts","item_brand":"pinterest"},{"id":"product-id-002","item_price":"13.71","quantity":2,"item_name":"pinterest-shirt-men","item_category":"pinterest-clothing-shirts","item_brand":"pinterest"}], 
                            currency = 'USD', 
                            external_measurement_id = 'rbos-cb7a9e56-4988-4ca0-801b-05c79b29785f', 
                            external_measurement_vendor_id = 1, 
                            np = 'ss-company', 
                            num_items = 5, 
                            opt_out_type = 'LDP', 
                            order_id = 'my_order_id', 
                            predicted_ltv = '2794.82', 
                            search_string = 'sample string', 
                            value = '72.39', ), 
                        device_brand = 'Apple', 
                        device_carrier = 'T-Mobile', 
                        device_info = pinterestsdk.models.conversion_event_device_info.ConversionEventDeviceInfo(
                            battery_level = 78, 
                            brand = 'Apple, Samsung, Motorola', 
                            carrier = 'T-Mobile', 
                            cpu_cores = 8, 
                            external_storage_free_space = 126, 
                            external_storage_size = 512, 
                            form_factor = 'cellphone', 
                            kernel_version = '6.15', 
                            languages = ["en","de","lt"], 
                            locale = 'en-us', 
                            model = '16 Pro, Galaxy S25 Ultra', 
                            network_type = 'wifi', 
                            os_family = 'ios', 
                            os_name = '10', 
                            os_release_name = '18.3', 
                            os_version = '18.3', 
                            screen_density = 460, 
                            screen_height = 2868, 
                            screen_width = 1320, 
                            storage_free_space = 184, 
                            storage_size = 256, 
                            timezone = 'USA/New York', 
                            timezone_abbr = 'PDT', 
                            type = 'iPhone, Android', ), 
                        device_model = 'iPhone X', 
                        device_type = 'iPhone', 
                        event_id = 'eventId0001', 
                        event_name = 'checkout', 
                        event_source_url = 'https://www.my-clothing-shop.org/', 
                        event_time = 1451431341, 
                        language = 'en', 
                        opt_out = False, 
                        os_version = '12.1.4', 
                        partner_name = 'ss-partnername', 
                        user_data = pinterestsdk.models.conversion_events_user_data.ConversionEventsUserData(), 
                        wifi = False, )
                    ],
        )
        """

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

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