<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def auto_clear_shopping_cart(self, auto_clear_shopping_cart):
 """Sets the auto_clear_shopping_cart of this CartSettings. :param auto_clear_shopping_cart: The auto_clear_shopping_cart of this CartSettings. :type: str """

        allowed_values = ["never", "orderCreated", "orderCompleted"]  # noqa: E501
        if auto_clear_shopping_cart is not None and auto_clear_shopping_cart not in allowed_values:
            raise ValueError(
                "Invalid value for `auto_clear_shopping_cart` ({0}), must be one of {1}"  # noqa: E501
                .format(auto_clear_shopping_cart, allowed_values)
            )

        self._auto_clear_shopping_cart = auto_clear_shopping_cart