Interface StagedOrderSetCustomShippingMethodAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
- All Known Implementing Classes:
StagedOrderSetCustomShippingMethodActionImpl
StagedOrderSetCustomShippingMethodAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderSetCustomShippingMethodAction stagedOrderSetCustomShippingMethodAction = StagedOrderSetCustomShippingMethodAction.builder()
.shippingMethodName("{shippingMethodName}")
.shippingRate(shippingRateBuilder -> shippingRateBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderSetCustomShippingMethodAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderSetCustomShippingMethodActioncreate builder for StagedOrderSetCustomShippingMethodAction instancefactory method to create a deep copy of StagedOrderSetCustomShippingMethodAction@Valid ExternalTaxRateDraft
Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.@NotNull String
@NotNull @Valid ShippingRateDraft
ResourceIdentifier to a TaxCategory.of()
factory methodof
(StagedOrderSetCustomShippingMethodAction template) factory method to create a shallow copy StagedOrderSetCustomShippingMethodActionvoid
setExternalTaxRate
(ExternalTaxRateDraft externalTaxRate) Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.void
setShippingMethodName
(String shippingMethodName) set shippingMethodNamevoid
setShippingRate
(ShippingRateDraft shippingRate) set shippingRatevoid
setTaxCategory
(TaxCategoryResourceIdentifier taxCategory) ResourceIdentifier to a TaxCategory.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderSetCustomShippingMethodAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStagedOrderSetCustomShippingMethodAction
(Function<StagedOrderSetCustomShippingMethodAction, T> helper) 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_CUSTOM_SHIPPING_METHOD
discriminator value for StagedOrderSetCustomShippingMethodAction- See Also:
-
-
Method Details
-
getShippingMethodName
- Returns:
- shippingMethodName
-
getShippingRate
- Returns:
- shippingRate
-
getTaxCategory
ResourceIdentifier to a TaxCategory.
- Returns:
- taxCategory
-
getExternalTaxRate
Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.
- Returns:
- externalTaxRate
-
setShippingMethodName
set shippingMethodName- Parameters:
shippingMethodName
- value to be set
-
setShippingRate
set shippingRate- Parameters:
shippingRate
- value to be set
-
setTaxCategory
ResourceIdentifier to a TaxCategory.
- Parameters:
taxCategory
- 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 StagedOrderSetCustomShippingMethodAction
-
of
static StagedOrderSetCustomShippingMethodAction of(StagedOrderSetCustomShippingMethodAction template) factory method to create a shallow copy StagedOrderSetCustomShippingMethodAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderSetCustomShippingMethodAction deepCopy(@Nullable StagedOrderSetCustomShippingMethodAction template) factory method to create a deep copy of StagedOrderSetCustomShippingMethodAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderSetCustomShippingMethodAction- Returns:
- builder
-
builder
static StagedOrderSetCustomShippingMethodActionBuilder builder(StagedOrderSetCustomShippingMethodAction template) create builder for StagedOrderSetCustomShippingMethodAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderSetCustomShippingMethodAction
default <T> T withStagedOrderSetCustomShippingMethodAction(Function<StagedOrderSetCustomShippingMethodAction, 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<StagedOrderSetCustomShippingMethodAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-