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