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

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

        self._tax_class_based_on = tax_class_based_on