findByName

open fun findByName(name: String): Product

Find a product by its name. Matching is normalized, so "Apple" finds also "apple".

Return

The first product matching the name, otherwise null if no product was found.

Parameters

name

The name of the product.