Interface ScoreShippingRateInput
- All Superinterfaces:
ShippingRateInput
ScoreShippingRateInput
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ScoreShippingRateInput scoreShippingRateInput = ScoreShippingRateInput.builder()
.score(0.3)
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ScoreShippingRateInputbuilder
(ScoreShippingRateInput template) create builder for ScoreShippingRateInput instancestatic ScoreShippingRateInput
deepCopy
(ScoreShippingRateInput template) factory method to create a deep copy of ScoreShippingRateInput@NotNull Long
getScore()
Abstract value for categorizing a Cart.static ScoreShippingRateInput
of()
factory methodstatic ScoreShippingRateInput
of
(ScoreShippingRateInput template) factory method to create a shallow copy ScoreShippingRateInputvoid
Abstract value for categorizing a Cart.static com.fasterxml.jackson.core.type.TypeReference<ScoreShippingRateInput>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.cart.ShippingRateInput
getType, withShippingRateInput
-
Field Details
-
SCORE
discriminator value for ScoreShippingRateInput- See Also:
-
-
Method Details
-
getScore
Abstract value for categorizing a Cart.
- Returns:
- score
-
setScore
Abstract value for categorizing a Cart.
- Parameters:
score
- value to be set
-
of
factory method- Returns:
- instance of ScoreShippingRateInput
-
of
factory method to create a shallow copy ScoreShippingRateInput- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ScoreShippingRateInput- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ScoreShippingRateInput- Returns:
- builder
-
builder
create builder for ScoreShippingRateInput instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withScoreShippingRateInput
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
-