Interface ProductDiscountMatchQuery


public interface ProductDiscountMatchQuery
ProductDiscountMatchQuery
Example to create an instance using the builder pattern

     ProductDiscountMatchQuery productDiscountMatchQuery = ProductDiscountMatchQuery.builder()
             .productId("{productId}")
             .variantId(0.3)
             .staged(true)
             .price(priceBuilder -> priceBuilder)
             .build()
 
  • Method Details

    • getProductId

      @NotNull @NotNull String getProductId()

      ID of the specified Product.

      Returns:
      productId
    • getVariantId

      @NotNull @NotNull Integer getVariantId()

      ID of the specified Product Variant.

      Returns:
      variantId
    • getStaged

      @NotNull @NotNull Boolean getStaged()

      Controls which projected representation is applied for the query. Set to true for the staged Product Projection of the specified Product Variant, set to false for the current one.

      Returns:
      staged
    • getPrice

      @NotNull @Valid @NotNull @Valid QueryPrice getPrice()

      Specified Price of the specified Product Variant.

      Returns:
      price
    • setProductId

      void setProductId(String productId)

      ID of the specified Product.

      Parameters:
      productId - value to be set
    • setVariantId

      void setVariantId(Integer variantId)

      ID of the specified Product Variant.

      Parameters:
      variantId - value to be set
    • setStaged

      void setStaged(Boolean staged)

      Controls which projected representation is applied for the query. Set to true for the staged Product Projection of the specified Product Variant, set to false for the current one.

      Parameters:
      staged - value to be set
    • setPrice

      void setPrice(QueryPrice price)

      Specified Price of the specified Product Variant.

      Parameters:
      price - value to be set
    • of

      factory method
      Returns:
      instance of ProductDiscountMatchQuery
    • of

      factory method to create a shallow copy ProductDiscountMatchQuery
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of ProductDiscountMatchQuery
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for ProductDiscountMatchQuery
      Returns:
      builder
    • builder

      create builder for ProductDiscountMatchQuery instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withProductDiscountMatchQuery

      default <T> T withProductDiscountMatchQuery(Function<ProductDiscountMatchQuery,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<ProductDiscountMatchQuery> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference