Interface ProductDiscountMatchQuery
public interface ProductDiscountMatchQuery
ProductDiscountMatchQuery
Example to create an instance using the builder pattern
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 Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductDiscountMatchQuerybuilder(ProductDiscountMatchQuery template) create builder for ProductDiscountMatchQuery instancecopyDeep()static ProductDiscountMatchQuerydeepCopy(ProductDiscountMatchQuery template) factory method to create a deep copy of ProductDiscountMatchQuery@NotNull @Valid QueryPricegetPrice()Specified Price of the specified Product Variant.@NotNull StringID of the specified Product.@NotNull BooleanControls which projected representation is applied for the query.@NotNull IntegerID of the specified Product Variant.static ProductDiscountMatchQueryof()factory methodstatic ProductDiscountMatchQueryof(ProductDiscountMatchQuery template) factory method to create a shallow copy ProductDiscountMatchQueryvoidsetPrice(QueryPrice price) Specified Price of the specified Product Variant.voidsetProductId(String productId) ID of the specified Product.voidControls which projected representation is applied for the query.voidsetVariantId(Integer variantId) ID of the specified Product Variant.static com.fasterxml.jackson.core.type.TypeReference<ProductDiscountMatchQuery>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getProductId
ID of the specified Product.
- Returns:
- productId
-
getVariantId
ID of the specified Product Variant.
- Returns:
- variantId
-
getStaged
Controls which projected representation is applied for the query. Set to
truefor thestagedProduct Projection of the specified Product Variant, set tofalsefor thecurrentone.- Returns:
- staged
-
getPrice
Specified Price of the specified Product Variant.
- Returns:
- price
-
setProductId
ID of the specified Product.
- Parameters:
productId- value to be set
-
setVariantId
ID of the specified Product Variant.
- Parameters:
variantId- value to be set
-
setStaged
Controls which projected representation is applied for the query. Set to
truefor thestagedProduct Projection of the specified Product Variant, set tofalsefor thecurrentone.- Parameters:
staged- value to be set
-
setPrice
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
-
copyDeep
ProductDiscountMatchQuery copyDeep() -
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
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-