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 instancestatic ProductDiscountMatchQuery
deepCopy
(ProductDiscountMatchQuery template) factory method to create a deep copy of ProductDiscountMatchQuery@NotNull @Valid QueryPrice
getPrice()
Specified Price of the specified Product Variant.@NotNull String
ID of the specified Product.@NotNull Boolean
Controls which projected representation is applied for the query.@NotNull Integer
ID of the specified Product Variant.static ProductDiscountMatchQuery
of()
factory methodstatic ProductDiscountMatchQuery
of
(ProductDiscountMatchQuery template) factory method to create a shallow copy ProductDiscountMatchQueryvoid
setPrice
(QueryPrice price) Specified Price of the specified Product Variant.void
setProductId
(String productId) ID of the specified Product.void
Controls which projected representation is applied for the query.void
setVariantId
(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> T
accessor 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
true
for thestaged
Product Projection of the specified Product Variant, set tofalse
for thecurrent
one.- 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
true
for thestaged
Product Projection of the specified Product Variant, set tofalse
for thecurrent
one.- 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
-
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
-