Interface CartSetShippingRateInputAction
- All Superinterfaces:
CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
Input used to select a ShippingRatePriceTier. If no matching tier can be found, or the input is not set, the default price for the shipping rate is used.
Example to create an instance using the builder pattern
CartSetShippingRateInputAction cartSetShippingRateInputAction = CartSetShippingRateInputAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartSetShippingRateInputAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartSetShippingRateInputActionbuilder
(CartSetShippingRateInputAction template) create builder for CartSetShippingRateInputAction instancedeepCopy
(CartSetShippingRateInputAction template) factory method to create a deep copy of CartSetShippingRateInputAction@Valid ShippingRateInputDraft
The data type of this field depends on theshippingRateInputType.type
configured in the Project:of()
factory methodof
(CartSetShippingRateInputAction template) factory method to create a shallow copy CartSetShippingRateInputActionofUnset()
void
setShippingRateInput
(ShippingRateInputDraft shippingRateInput) The data type of this field depends on theshippingRateInputType.type
configured in the Project:static com.fasterxml.jackson.core.type.TypeReference<CartSetShippingRateInputAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_SHIPPING_RATE_INPUT
discriminator value for CartSetShippingRateInputAction- See Also:
-
-
Method Details
-
getShippingRateInput
The data type of this field depends on the
shippingRateInputType.type
configured in the Project:- If
CartClassification
, it must be ClassificationShippingRateInputDraft. - If
CartScore
, it must be ScoreShippingRateInputDraft. - If
CartValue
, it cannot be set.
- Returns:
- shippingRateInput
- If
-
setShippingRateInput
The data type of this field depends on the
shippingRateInputType.type
configured in the Project:- If
CartClassification
, it must be ClassificationShippingRateInputDraft. - If
CartScore
, it must be ScoreShippingRateInputDraft. - If
CartValue
, it cannot be set.
- Parameters:
shippingRateInput
- value to be set
- If
-
of
factory method- Returns:
- instance of CartSetShippingRateInputAction
-
of
factory method to create a shallow copy CartSetShippingRateInputAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CartSetShippingRateInputAction deepCopy(@Nullable CartSetShippingRateInputAction template) factory method to create a deep copy of CartSetShippingRateInputAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartSetShippingRateInputAction- Returns:
- builder
-
builder
create builder for CartSetShippingRateInputAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartSetShippingRateInputAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
ofUnset
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<CartSetShippingRateInputAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-