Interface OrderSetItemShippingAddressCustomTypeAction
- All Superinterfaces:
OrderUpdateAction,ResourceUpdateAction<OrderUpdateAction>
Example to create an instance using the builder pattern
OrderSetItemShippingAddressCustomTypeAction orderSetItemShippingAddressCustomTypeAction = OrderSetItemShippingAddressCustomTypeAction.builder()
.addressKey("{addressKey}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for OrderSetItemShippingAddressCustomTypeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for OrderSetItemShippingAddressCustomTypeActioncreate builder for OrderSetItemShippingAddressCustomTypeAction instancecopyDeep()factory method to create a deep copy of OrderSetItemShippingAddressCustomTypeAction@NotNull String@Valid FieldContainerObject containing the Custom Fields fields for theitemShippingAddress.@Valid TypeResourceIdentifiergetType()of()factory methodfactory method to create a shallow copy OrderSetItemShippingAddressCustomTypeActionvoidsetAddressKey(String addressKey) voidsetFields(FieldContainer fields) Object containing the Custom Fields fields for theitemShippingAddress.voidstatic tools.jackson.core.type.TypeReference<OrderSetItemShippingAddressCustomTypeAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithOrderSetItemShippingAddressCustomTypeAction(Function<OrderSetItemShippingAddressCustomTypeAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.order.OrderUpdateAction
getAction, withOrderUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_ITEM_SHIPPING_ADDRESS_CUSTOM_TYPE
discriminator value for OrderSetItemShippingAddressCustomTypeAction- See Also:
-
-
Method Details
-
getAddressKey
keyof the Address initemShippingAddresses.- Returns:
- addressKey
-
getType
Defines the Type that extends the
itemShippingAddresswith Custom Fields. If absent, any existing Type and Custom Fields are removed from theitemShippingAddress.- Returns:
- type
-
getFields
Object containing the Custom Fields fields for the
itemShippingAddress.Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Returns:
- fields
-
setAddressKey
keyof the Address initemShippingAddresses.- Parameters:
addressKey- value to be set
-
setType
Defines the Type that extends the
itemShippingAddresswith Custom Fields. If absent, any existing Type and Custom Fields are removed from theitemShippingAddress.- Parameters:
type- value to be set
-
setFields
Object containing the Custom Fields fields for the
itemShippingAddress.Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Parameters:
fields- value to be set
-
of
factory method- Returns:
- instance of OrderSetItemShippingAddressCustomTypeAction
-
of
static OrderSetItemShippingAddressCustomTypeAction of(OrderSetItemShippingAddressCustomTypeAction template) factory method to create a shallow copy OrderSetItemShippingAddressCustomTypeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
OrderSetItemShippingAddressCustomTypeAction copyDeep()- Specified by:
copyDeepin interfaceOrderUpdateAction
-
deepCopy
@Nullable static OrderSetItemShippingAddressCustomTypeAction deepCopy(@Nullable OrderSetItemShippingAddressCustomTypeAction template) factory method to create a deep copy of OrderSetItemShippingAddressCustomTypeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderSetItemShippingAddressCustomTypeAction- Returns:
- builder
-
builder
static OrderSetItemShippingAddressCustomTypeActionBuilder builder(OrderSetItemShippingAddressCustomTypeAction template) create builder for OrderSetItemShippingAddressCustomTypeAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withOrderSetItemShippingAddressCustomTypeAction
default <T> T withOrderSetItemShippingAddressCustomTypeAction(Function<OrderSetItemShippingAddressCustomTypeAction, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static tools.jackson.core.type.TypeReference<OrderSetItemShippingAddressCustomTypeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-