Interface StagedOrderSetShippingRateInputAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
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
StagedOrderSetShippingRateInputAction stagedOrderSetShippingRateInputAction = StagedOrderSetShippingRateInputAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderSetShippingRateInputAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderSetShippingRateInputActionbuilder
(StagedOrderSetShippingRateInputAction template) create builder for StagedOrderSetShippingRateInputAction instancefactory method to create a deep copy of StagedOrderSetShippingRateInputAction@Valid ShippingRateInputDraft
The data type of this field depends on theshippingRateInputType.type
configured in the Project:of()
factory methodof
(StagedOrderSetShippingRateInputAction template) factory method to create a shallow copy StagedOrderSetShippingRateInputActionofUnset()
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<StagedOrderSetShippingRateInputAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
getAction, withStagedOrderUpdateAction
-
Field Details
-
SET_SHIPPING_RATE_INPUT
discriminator value for StagedOrderSetShippingRateInputAction- 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 StagedOrderSetShippingRateInputAction
-
of
factory method to create a shallow copy StagedOrderSetShippingRateInputAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderSetShippingRateInputAction deepCopy(@Nullable StagedOrderSetShippingRateInputAction template) factory method to create a deep copy of StagedOrderSetShippingRateInputAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderSetShippingRateInputAction- Returns:
- builder
-
builder
static StagedOrderSetShippingRateInputActionBuilder builder(StagedOrderSetShippingRateInputAction template) create builder for StagedOrderSetShippingRateInputAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderSetShippingRateInputAction
default <T> T withStagedOrderSetShippingRateInputAction(Function<StagedOrderSetShippingRateInputAction, T> helper) 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<StagedOrderSetShippingRateInputAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-