# 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.promotion_create_request import PromotionCreateRequest

class TestPromotionCreateRequest(unittest.TestCase):
    """PromotionCreateRequest unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional) -> PromotionCreateRequest:
        """Test PromotionCreateRequest
            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 `PromotionCreateRequest`
        """
        model = PromotionCreateRequest()
        if include_optional:
            return PromotionCreateRequest(
                discount_status = 'ACTIVE',
                end_time = 1678003860,
                external_id = 'abc',
                platform_type = 'DEFAULT',
                promotion_code = 'blackfriday10',
                promotion_custom_id = 'freeshipping_2025',
                promotion_title = 'Black Friday 10% off',
                promotion_type = 'VARIABLE',
                start_time = 1677003860,
                template_values = [
                    pinterestsdk.models.promotion_template_value.Promotion template value(
                        amount = 100, 
                        currency_code = 'UNK', 
                        custom_text = 'My promotion', 
                        percent = 10, )
                    ]
            )
        else:
            return PromotionCreateRequest(
                promotion_title = 'Black Friday 10% off',
                promotion_type = 'VARIABLE',
        )
        """

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

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