Interface StagedOrderSetShippingCustomTypeAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>,StagedOrderUpdateAction
This action sets, overwrites, or removes any existing Custom Type and Custom Fields for the Order's shippingMethod or shipping.
Example to create an instance using the builder pattern
StagedOrderSetShippingCustomTypeAction stagedOrderSetShippingCustomTypeAction = StagedOrderSetShippingCustomTypeAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StagedOrderSetShippingCustomTypeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StagedOrderSetShippingCustomTypeActioncreate builder for StagedOrderSetShippingCustomTypeAction instancecopyDeep()factory method to create a deep copy of StagedOrderSetShippingCustomTypeAction@Valid FieldContainerSets the Custom Fields fields for theshippingMethod.TheshippingKeyof the Shipping to customize.@Valid TypeResourceIdentifiergetType()Defines the Type that extends the specified ShippingMethod with Custom Fields.of()factory methodof(StagedOrderSetShippingCustomTypeAction template) factory method to create a shallow copy StagedOrderSetShippingCustomTypeActionvoidsetFields(FieldContainer fields) Sets the Custom Fields fields for theshippingMethod.voidsetShippingKey(String shippingKey) TheshippingKeyof the Shipping to customize.voidDefines the Type that extends the specified ShippingMethod with Custom Fields.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderSetShippingCustomTypeAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithStagedOrderSetShippingCustomTypeAction(Function<StagedOrderSetShippingCustomTypeAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
getAction, withStagedOrderUpdateAction
-
Field Details
-
SET_SHIPPING_CUSTOM_TYPE
discriminator value for StagedOrderSetShippingCustomTypeAction- See Also:
-
-
Method Details
-
getShippingKey
String getShippingKey()The
shippingKeyof the Shipping to customize. Used to specify which Shipping Method to customize on a Order withMultipleShippingMode. Leave this empty to customize the one and only ShippingMethod on aSingleShippingMode Order.- Returns:
- shippingKey
-
getType
Defines the Type that extends the specified ShippingMethod with Custom Fields. If absent, any existing Type and Custom Fields are removed from the ShippingMethod.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the
shippingMethod.- Returns:
- fields
-
setShippingKey
The
shippingKeyof the Shipping to customize. Used to specify which Shipping Method to customize on a Order withMultipleShippingMode. Leave this empty to customize the one and only ShippingMethod on aSingleShippingMode Order.- Parameters:
shippingKey- value to be set
-
setType
Defines the Type that extends the specified ShippingMethod with Custom Fields. If absent, any existing Type and Custom Fields are removed from the ShippingMethod.
- Parameters:
type- value to be set
-
setFields
Sets the Custom Fields fields for the
shippingMethod.- Parameters:
fields- value to be set
-
of
factory method- Returns:
- instance of StagedOrderSetShippingCustomTypeAction
-
of
factory method to create a shallow copy StagedOrderSetShippingCustomTypeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
StagedOrderSetShippingCustomTypeAction copyDeep()- Specified by:
copyDeepin interfaceStagedOrderUpdateAction
-
deepCopy
@Nullable static StagedOrderSetShippingCustomTypeAction deepCopy(@Nullable StagedOrderSetShippingCustomTypeAction template) factory method to create a deep copy of StagedOrderSetShippingCustomTypeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderSetShippingCustomTypeAction- Returns:
- builder
-
builder
static StagedOrderSetShippingCustomTypeActionBuilder builder(StagedOrderSetShippingCustomTypeAction template) create builder for StagedOrderSetShippingCustomTypeAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderSetShippingCustomTypeAction
default <T> T withStagedOrderSetShippingCustomTypeAction(Function<StagedOrderSetShippingCustomTypeAction, 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<StagedOrderSetShippingCustomTypeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-