Interface StagedOrderSetShippingAddressAndCustomShippingMethodAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
- All Known Implementing Classes:
StagedOrderSetShippingAddressAndCustomShippingMethodActionImpl
Example to create an instance using the builder pattern
StagedOrderSetShippingAddressAndCustomShippingMethodAction stagedOrderSetShippingAddressAndCustomShippingMethodAction = StagedOrderSetShippingAddressAndCustomShippingMethodAction.builder()
.address(addressBuilder -> addressBuilder)
.shippingMethodName("{shippingMethodName}")
.shippingRate(shippingRateBuilder -> shippingRateBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderSetShippingAddressAndCustomShippingMethodAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderSetShippingAddressAndCustomShippingMethodActioncreate builder for StagedOrderSetShippingAddressAndCustomShippingMethodAction instancefactory method to create a deep copy of StagedOrderSetShippingAddressAndCustomShippingMethodAction@NotNull @Valid BaseAddress
Polymorphic base type that represents a postal address and contact details.@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 methodfactory method to create a shallow copy StagedOrderSetShippingAddressAndCustomShippingMethodActionvoid
setAddress
(BaseAddress address) Polymorphic base type that represents a postal address and contact details.void
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<StagedOrderSetShippingAddressAndCustomShippingMethodAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStagedOrderSetShippingAddressAndCustomShippingMethodAction
(Function<StagedOrderSetShippingAddressAndCustomShippingMethodAction, 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_SHIPPING_ADDRESS_AND_CUSTOM_SHIPPING_METHOD
discriminator value for StagedOrderSetShippingAddressAndCustomShippingMethodAction- See Also:
-
-
Method Details
-
getAddress
Polymorphic base type that represents a postal address and contact details. Depending on the read or write action, it can be either Address or AddressDraft that only differ in the data type for the optional
custom
field.- Returns:
- address
-
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
-
setAddress
Polymorphic base type that represents a postal address and contact details. Depending on the read or write action, it can be either Address or AddressDraft that only differ in the data type for the optional
custom
field.- Parameters:
address
- value to be set
-
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 StagedOrderSetShippingAddressAndCustomShippingMethodAction
-
of
static StagedOrderSetShippingAddressAndCustomShippingMethodAction of(StagedOrderSetShippingAddressAndCustomShippingMethodAction template) factory method to create a shallow copy StagedOrderSetShippingAddressAndCustomShippingMethodAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderSetShippingAddressAndCustomShippingMethodAction deepCopy(@Nullable StagedOrderSetShippingAddressAndCustomShippingMethodAction template) factory method to create a deep copy of StagedOrderSetShippingAddressAndCustomShippingMethodAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderSetShippingAddressAndCustomShippingMethodAction- Returns:
- builder
-
builder
static StagedOrderSetShippingAddressAndCustomShippingMethodActionBuilder builder(StagedOrderSetShippingAddressAndCustomShippingMethodAction template) create builder for StagedOrderSetShippingAddressAndCustomShippingMethodAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderSetShippingAddressAndCustomShippingMethodAction
default <T> T withStagedOrderSetShippingAddressAndCustomShippingMethodAction(Function<StagedOrderSetShippingAddressAndCustomShippingMethodAction, 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<StagedOrderSetShippingAddressAndCustomShippingMethodAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-