Interface OrderShippingAddressSetMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
,OrderMessagePayload
Generated after a successful Set Shipping Address update action.
Example to create an instance using the builder pattern
OrderShippingAddressSetMessagePayload orderShippingAddressSetMessagePayload = OrderShippingAddressSetMessagePayload.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderShippingAddressSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderShippingAddressSetMessagePayloadbuilder
(OrderShippingAddressSetMessagePayload template) create builder for OrderShippingAddressSetMessagePayload instancefactory method to create a deep copy of OrderShippingAddressSetMessagePayload@Valid Address
Shipping address on the Order after the Set Shipping Address update action.@Valid Address
Shipping address on the Order before the Set Shipping Address update action.of()
factory methodof
(OrderShippingAddressSetMessagePayload template) factory method to create a shallow copy OrderShippingAddressSetMessagePayloadvoid
setAddress
(Address address) Shipping address on the Order after the Set Shipping Address update action.void
setOldAddress
(Address oldAddress) Shipping address on the Order before the Set Shipping Address update action.static com.fasterxml.jackson.core.type.TypeReference<OrderShippingAddressSetMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
Methods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
Methods inherited from interface com.commercetools.api.models.message.OrderMessagePayload
withOrderMessagePayload
-
Field Details
-
ORDER_SHIPPING_ADDRESS_SET
discriminator value for OrderShippingAddressSetMessagePayload- See Also:
-
-
Method Details
-
getAddress
Shipping address on the Order after the Set Shipping Address update action.
- Returns:
- address
-
getOldAddress
Shipping address on the Order before the Set Shipping Address update action.
- Returns:
- oldAddress
-
setAddress
Shipping address on the Order after the Set Shipping Address update action.
- Parameters:
address
- value to be set
-
setOldAddress
Shipping address on the Order before the Set Shipping Address update action.
- Parameters:
oldAddress
- value to be set
-
of
factory method- Returns:
- instance of OrderShippingAddressSetMessagePayload
-
of
factory method to create a shallow copy OrderShippingAddressSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static OrderShippingAddressSetMessagePayload deepCopy(@Nullable OrderShippingAddressSetMessagePayload template) factory method to create a deep copy of OrderShippingAddressSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderShippingAddressSetMessagePayload- Returns:
- builder
-
builder
static OrderShippingAddressSetMessagePayloadBuilder builder(OrderShippingAddressSetMessagePayload template) create builder for OrderShippingAddressSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderShippingAddressSetMessagePayload
default <T> T withOrderShippingAddressSetMessagePayload(Function<OrderShippingAddressSetMessagePayload, 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<OrderShippingAddressSetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-