code: def tax_class_based_on(self, tax_class_based_on):
          
          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
docs: Sets the tax_class_based_on of this TaxSettings.
  
  
          :param tax_class_based_on: The tax_class_based_on of this TaxSettings.
          :type: str