Interface CartClassificationTier
- All Superinterfaces:
ShippingRatePriceTier
CartClassificationTier
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartClassificationTier cartClassificationTier = CartClassificationTier.builder()
.value("{value}")
.price(priceBuilder -> priceBuilder)
.plusTiers(tiersBuilder -> tiersBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartClassificationTier -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartClassificationTierbuilder(CartClassificationTier template) create builder for CartClassificationTier instancecopyDeep()static CartClassificationTierdeepCopy(CartClassificationTier template) factory method to create a deep copy of CartClassificationTier@NotNull @Valid MoneygetPrice()@NotNull @Valid List<ShippingRatePriceTier>getTiers()@NotNull StringgetValue()static CartClassificationTierof()factory methodstatic CartClassificationTierof(CartClassificationTier template) factory method to create a shallow copy CartClassificationTiervoidsetIsMatching(Boolean isMatching) set isMatchingvoidset pricevoidsetTiers(ShippingRatePriceTier... tiers) set tiersvoidsetTiers(List<ShippingRatePriceTier> tiers) set tiersvoidset valuestatic com.fasterxml.jackson.core.type.TypeReference<CartClassificationTier>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.importapi.models.orders.ShippingRatePriceTier
getType, withShippingRatePriceTier
-
Field Details
-
CART_CLASSIFICATION
discriminator value for CartClassificationTier- See Also:
-
-
Method Details
-
getValue
- Returns:
- value
-
getPrice
- Returns:
- price
-
getTiers
- Returns:
- tiers
-
getIsMatching
Boolean getIsMatching()- Returns:
- isMatching
-
setValue
set value- Parameters:
value- value to be set
-
setPrice
set price- Parameters:
price- value to be set
-
setTiers
set tiers- Parameters:
tiers- values to be set
-
setTiers
set tiers- Parameters:
tiers- values to be set
-
setIsMatching
set isMatching- Parameters:
isMatching- value to be set
-
of
factory method- Returns:
- instance of CartClassificationTier
-
of
factory method to create a shallow copy CartClassificationTier- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CartClassificationTier copyDeep()- Specified by:
copyDeepin interfaceShippingRatePriceTier
-
deepCopy
factory method to create a deep copy of CartClassificationTier- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartClassificationTier- Returns:
- builder
-
builder
create builder for CartClassificationTier instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCartClassificationTier
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
-