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