Interface StagedOrderSetShippingMethodAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
- All Known Implementing Classes:
StagedOrderSetShippingMethodActionImpl
StagedOrderSetShippingMethodAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderSetShippingMethodAction stagedOrderSetShippingMethodAction = StagedOrderSetShippingMethodAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderSetShippingMethodAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderSetShippingMethodActionbuilder
(StagedOrderSetShippingMethodAction template) create builder for StagedOrderSetShippingMethodAction instancedeepCopy
(StagedOrderSetShippingMethodAction template) factory method to create a deep copy of StagedOrderSetShippingMethodAction@Valid ExternalTaxRateDraft
Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.ResourceIdentifier to a ShippingMethod.of()
factory methodof
(StagedOrderSetShippingMethodAction template) factory method to create a shallow copy StagedOrderSetShippingMethodActionvoid
setExternalTaxRate
(ExternalTaxRateDraft externalTaxRate) Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.void
setShippingMethod
(ShippingMethodResourceIdentifier shippingMethod) ResourceIdentifier to a ShippingMethod.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderSetShippingMethodAction>
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_METHOD
discriminator value for StagedOrderSetShippingMethodAction- See Also:
-
-
Method Details
-
getShippingMethod
ResourceIdentifier to a ShippingMethod.
- Returns:
- shippingMethod
-
getExternalTaxRate
Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.
- Returns:
- externalTaxRate
-
setShippingMethod
ResourceIdentifier to a ShippingMethod.
- Parameters:
shippingMethod
- value to be set
-
setExternalTaxRate
Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.
- Parameters:
externalTaxRate
- value to be set
-
of
factory method- Returns:
- instance of StagedOrderSetShippingMethodAction
-
of
factory method to create a shallow copy StagedOrderSetShippingMethodAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderSetShippingMethodAction deepCopy(@Nullable StagedOrderSetShippingMethodAction template) factory method to create a deep copy of StagedOrderSetShippingMethodAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderSetShippingMethodAction- Returns:
- builder
-
builder
static StagedOrderSetShippingMethodActionBuilder builder(StagedOrderSetShippingMethodAction template) create builder for StagedOrderSetShippingMethodAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderSetShippingMethodAction
default <T> T withStagedOrderSetShippingMethodAction(Function<StagedOrderSetShippingMethodAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<StagedOrderSetShippingMethodAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-