def calculation_phase=(calculation_phase)
      validator = EnumAttributeValidator.new('String', ["TAX_SUBTOTAL_PHASE", "TAX_TOTAL_PHASE"])
      unless validator.valid?(calculation_phase)
        fail ArgumentError, "invalid value for 'calculation_phase', must be one of #{validator.allowable_values}."
      end
      @calculation_phase = calculation_phase
    end
def calculation_phase=(calculation_phase)
      validator = EnumAttributeValidator.new('String', ["TAX_SUBTOTAL_PHASE", "TAX_TOTAL_PHASE"])
      unless validator.valid?(calculation_phase)
        fail ArgumentError, "invalid value for 'calculation_phase', must be one of #{validator.allowable_values}."
      end
      @calculation_phase = calculation_phase
    end
Custom attribute writer method checking allowed values (enum).
 @param [Object] calculation_phase Object to be assigned