Tai.Venues.ProductStore (tai v0.0.75)

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Return a list of products that match the filters

Link to this section Types

Specs

product() :: Tai.Venues.Product.t()

Specs

Specs

venue_id() :: Tai.Venue.id()
Link to this type

venue_symbol()

Specs

venue_symbol() :: Tai.Venues.Product.venue_symbol()

Link to this section Functions

Specs

all() :: [product()]
Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Specs

clear() :: :ok

Specs

count() :: number()

Specs

find({venue_id(), symbol()}) :: {:ok, product()} | {:error, :not_found}
Link to this function

find_by_venue_symbol(arg)

Specs

find_by_venue_symbol({venue_id(), venue_symbol()}) ::
  {:ok, product()} | {:error, :not_found}

Callback implementation for GenServer.init/1.

Link to this function

upsert(product)

Specs

upsert(product()) :: :ok

Specs

where(filters :: [...]) :: [product()]

Return a list of products that match the filters