ProductSearch

public protocol ProductSearch

The product search protocol.

  • A list of ShortProduct given one or many categories and a list of filters.

    Declaration

    Swift

    var products: [ProductType]
  • Total number of results for the search query.

    Declaration

    Swift

    var totalResults: Int
  • An array of Filter to be used with the search endpoint.

    Declaration

    Swift

    var filters: [FilterType]
  • An array of SortOption to be used with the search endpoint.

    Declaration

    Swift

    var sortOptions: [SortOptionType]
  • The sort option selected during the previous product search.

    Declaration

    Swift

    var selectedSortOption: SortOptionType?
  • An array of filters selected during the previous product search.

    Declaration

    Swift

    var selectedFilters: [FilterType]