Class ReadCmsRequest

java.lang.Object
de.codebarista.shopware.model.core.ReadCmsRequest

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-06-10T11:26:02.541008353+02:00[Europe/Berlin]", comments="Generator version: 7.5.0") public class ReadCmsRequest extends Object
ReadCmsRequest
  • Field Details

  • Constructor Details

    • ReadCmsRequest

      public ReadCmsRequest()
  • Method Details

    • page

      public ReadCmsRequest page(Integer page)
    • getPage

      @Nullable public Integer getPage()
      Search result page
      Returns:
      page
    • setPage

      public void setPage(Integer page)
    • limit

      public ReadCmsRequest limit(Integer limit)
    • getLimit

      @Nullable public Integer getLimit()
      Number of items per result page. If not set, the limit will be set according to the default products per page, defined in the system settings. minimum: 0
      Returns:
      limit
    • setLimit

      public void setLimit(Integer limit)
    • filter

      public ReadCmsRequest filter(List<CriteriaFilterInner> filter)
    • addFilterItem

      public ReadCmsRequest addFilterItem(CriteriaFilterInner filterItem)
    • getFilter

      @Nullable public List<CriteriaFilterInner> getFilter()
      List of filters to restrict the search result. For more information, see [Search Queries > Filter](https://shopware.stoplight.io/docs/store-api/docs/concepts/search-queries.md#filter)
      Returns:
      filter
    • setFilter

      public void setFilter(List<CriteriaFilterInner> filter)
    • sort

      public ReadCmsRequest sort(List<CriteriaSortInner> sort)
    • addSortItem

      public ReadCmsRequest addSortItem(CriteriaSortInner sortItem)
    • getSort

      @Nullable public List<CriteriaSortInner> getSort()
      Sorting in the search result.
      Returns:
      sort
    • setSort

      public void setSort(List<CriteriaSortInner> sort)
    • postFilter

      public ReadCmsRequest postFilter(List<CriteriaFilterInner> postFilter)
    • addPostFilterItem

      public ReadCmsRequest addPostFilterItem(CriteriaFilterInner postFilterItem)
    • getPostFilter

      @Nullable public List<CriteriaFilterInner> getPostFilter()
      Filters that applied without affecting aggregations. For more information, see [Search Queries > Post Filter](https://shopware.stoplight.io/docs/store-api/docs/concepts/search-queries.md#post-filter)
      Returns:
      postFilter
    • setPostFilter

      public void setPostFilter(List<CriteriaFilterInner> postFilter)
    • associations

      public ReadCmsRequest associations(Object associations)
    • getAssociations

      @Nullable public Object getAssociations()
      Used to fetch associations which are not fetched by default.
      Returns:
      associations
    • setAssociations

      public void setAssociations(Object associations)
    • aggregations

      public ReadCmsRequest aggregations(List<CriteriaAggregationsInner> aggregations)
    • addAggregationsItem

      public ReadCmsRequest addAggregationsItem(CriteriaAggregationsInner aggregationsItem)
    • getAggregations

      @Nullable public List<CriteriaAggregationsInner> getAggregations()
      Used to perform aggregations on the search result. For more information, see [Search Queries > Aggregations](https://shopware.stoplight.io/docs/store-api/docs/concepts/search-queries.md#aggregations)
      Returns:
      aggregations
    • setAggregations

      public void setAggregations(List<CriteriaAggregationsInner> aggregations)
    • grouping

      public ReadCmsRequest grouping(List<String> grouping)
    • addGroupingItem

      public ReadCmsRequest addGroupingItem(String groupingItem)
    • getGrouping

      @Nullable public List<String> getGrouping()
      Perform groupings over certain fields
      Returns:
      grouping
    • setGrouping

      public void setGrouping(List<String> grouping)
    • fields

      public ReadCmsRequest fields(List<String> fields)
    • addFieldsItem

      public ReadCmsRequest addFieldsItem(String fieldsItem)
    • getFields

      @Nullable public List<String> getFields()
      Fields which should be returned in the search result.
      Returns:
      fields
    • setFields

      public void setFields(List<String> fields)
    • totalCountMode

      public ReadCmsRequest totalCountMode(ReadCmsRequest.TotalCountModeEnum totalCountMode)
    • getTotalCountMode

      @Nullable public ReadCmsRequest.TotalCountModeEnum getTotalCountMode()
      Whether the total for the total number of hits should be determined for the search query. none = disabled total count, exact = calculate exact total amount (slow), next-pages = calculate only for next page (fast)
      Returns:
      totalCountMode
    • setTotalCountMode

      public void setTotalCountMode(ReadCmsRequest.TotalCountModeEnum totalCountMode)
    • order

      public ReadCmsRequest order(String order)
    • getOrder

      @Nullable public String getOrder()
      Specifies the sorting of the products by `availableSortings`. If not set, the default sorting will be set according to the shop settings. The available sorting options are sent within the response under the `availableSortings` key. In order to sort by a field, consider using the `sort` parameter from the listing criteria. Do not use both parameters together, as it might lead to unexpected results.
      Returns:
      order
    • setOrder

      public void setOrder(String order)
    • p

      public ReadCmsRequest p(Integer p)
    • getP

      @Nullable public Integer getP()
      Search result page
      Returns:
      p
    • setP

      public void setP(Integer p)
    • manufacturer

      public ReadCmsRequest manufacturer(String manufacturer)
    • getManufacturer

      @Nullable public String getManufacturer()
      Filter by manufacturers. List of manufacturer identifiers separated by a `|`.
      Returns:
      manufacturer
    • setManufacturer

      public void setManufacturer(String manufacturer)
    • minPrice

      public ReadCmsRequest minPrice(Integer minPrice)
    • getMinPrice

      @Nullable public Integer getMinPrice()
      Filters by a minimum product price. Has to be lower than the `max-price` filter. minimum: 0
      Returns:
      minPrice
    • setMinPrice

      public void setMinPrice(Integer minPrice)
    • maxPrice

      public ReadCmsRequest maxPrice(Integer maxPrice)
    • getMaxPrice

      @Nullable public Integer getMaxPrice()
      Filters by a maximum product price. Has to be higher than the `min-price` filter. minimum: 0
      Returns:
      maxPrice
    • setMaxPrice

      public void setMaxPrice(Integer maxPrice)
    • rating

      public ReadCmsRequest rating(Integer rating)
    • getRating

      @Nullable public Integer getRating()
      Filter products with a minimum average rating.
      Returns:
      rating
    • setRating

      public void setRating(Integer rating)
    • shippingFree

      public ReadCmsRequest shippingFree(Boolean shippingFree)
    • getShippingFree

      @Nullable public Boolean getShippingFree()
      Filters products that are marked as shipping-free.
      Returns:
      shippingFree
    • setShippingFree

      public void setShippingFree(Boolean shippingFree)
    • properties

      public ReadCmsRequest properties(String properties)
    • getProperties

      @Nullable public String getProperties()
      Filters products by their properties. List of property identifiers separated by a `|`.
      Returns:
      properties
    • setProperties

      public void setProperties(String properties)
    • manufacturerFilter

      public ReadCmsRequest manufacturerFilter(Boolean manufacturerFilter)
    • getManufacturerFilter

      @Nullable public Boolean getManufacturerFilter()
      Enables/disabled filtering by manufacturer. If set to false, the `manufacturer` filter will be ignored. Also the `aggregations[manufacturer]` key will be removed from the response.
      Returns:
      manufacturerFilter
    • setManufacturerFilter

      public void setManufacturerFilter(Boolean manufacturerFilter)
    • priceFilter

      public ReadCmsRequest priceFilter(Boolean priceFilter)
    • getPriceFilter

      @Nullable public Boolean getPriceFilter()
      Enables/disabled filtering by price. If set to false, the `min-price` and `max-price` filter will be ignored. Also the `aggregations[price]` key will be removed from the response.
      Returns:
      priceFilter
    • setPriceFilter

      public void setPriceFilter(Boolean priceFilter)
    • ratingFilter

      public ReadCmsRequest ratingFilter(Boolean ratingFilter)
    • getRatingFilter

      @Nullable public Boolean getRatingFilter()
      Enables/disabled filtering by rating. If set to false, the `rating` filter will be ignored. Also the `aggregations[rating]` key will be removed from the response.
      Returns:
      ratingFilter
    • setRatingFilter

      public void setRatingFilter(Boolean ratingFilter)
    • shippingFreeFilter

      public ReadCmsRequest shippingFreeFilter(Boolean shippingFreeFilter)
    • getShippingFreeFilter

      @Nullable public Boolean getShippingFreeFilter()
      Enables/disabled filtering by shipping-free products. If set to false, the `shipping-free` filter will be ignored. Also the `aggregations[shipping-free]` key will be removed from the response.
      Returns:
      shippingFreeFilter
    • setShippingFreeFilter

      public void setShippingFreeFilter(Boolean shippingFreeFilter)
    • propertyFilter

      public ReadCmsRequest propertyFilter(Boolean propertyFilter)
    • getPropertyFilter

      @Nullable public Boolean getPropertyFilter()
      Enables/disabled filtering by properties products. If set to false, the `properties` filter will be ignored. Also the `aggregations[properties]` key will be removed from the response.
      Returns:
      propertyFilter
    • setPropertyFilter

      public void setPropertyFilter(Boolean propertyFilter)
    • propertyWhitelist

      public ReadCmsRequest propertyWhitelist(String propertyWhitelist)
    • getPropertyWhitelist

      @Nullable public String getPropertyWhitelist()
      A whitelist of property identifiers which can be used for filtering. List of property identifiers separated by a `|`. The `property-filter` must be `true`, otherwise the whitelist has no effect.
      Returns:
      propertyWhitelist
    • setPropertyWhitelist

      public void setPropertyWhitelist(String propertyWhitelist)
    • reduceAggregations

      public ReadCmsRequest reduceAggregations(String reduceAggregations)
    • getReduceAggregations

      @Nullable public String getReduceAggregations()
      By sending the parameter `reduce-aggregations` , the post-filters that were applied by the customer, are also applied to the aggregations. This has the consequence that only values are returned in the aggregations that would lead to further filter results. This parameter is a flag, the value has no effect.
      Returns:
      reduceAggregations
    • getReduceAggregations_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<String> getReduceAggregations_JsonNullable()
    • setReduceAggregations_JsonNullable

      public void setReduceAggregations_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> reduceAggregations)
    • setReduceAggregations

      public void setReduceAggregations(String reduceAggregations)
    • slots

      public ReadCmsRequest slots(String slots)
    • getSlots

      @Nullable public String getSlots()
      Resolves only the given slot identifiers. The identifiers have to be seperated by a `|` character.
      Returns:
      slots
    • setSlots

      public void setSlots(String slots)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object