Interface OrderCustomLineItemRemovedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
,OrderMessagePayload
Generated after a successful Remove CustomLineItem update action.
Example to create an instance using the builder pattern
OrderCustomLineItemRemovedMessagePayload orderCustomLineItemRemovedMessagePayload = OrderCustomLineItemRemovedMessagePayload.builder()
.customLineItemId("{customLineItemId}")
.customLineItem(customLineItemBuilder -> customLineItemBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderCustomLineItemRemovedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderCustomLineItemRemovedMessagePayloadcreate builder for OrderCustomLineItemRemovedMessagePayload instancefactory method to create a deep copy of OrderCustomLineItemRemovedMessagePayload@NotNull @Valid CustomLineItem
Custom Line Item that was removed from the Order.@NotNull String
Unique identifier of the Custom Line Item.User-defined unique identifier of the Custom Line Item.of()
factory methodof
(OrderCustomLineItemRemovedMessagePayload template) factory method to create a shallow copy OrderCustomLineItemRemovedMessagePayloadvoid
setCustomLineItem
(CustomLineItem customLineItem) Custom Line Item that was removed from the Order.void
setCustomLineItemId
(String customLineItemId) Unique identifier of the Custom Line Item.void
setCustomLineItemKey
(String customLineItemKey) User-defined unique identifier of the Custom Line Item.static com.fasterxml.jackson.core.type.TypeReference<OrderCustomLineItemRemovedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withOrderCustomLineItemRemovedMessagePayload
(Function<OrderCustomLineItemRemovedMessagePayload, T> helper) 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_CUSTOM_LINE_ITEM_REMOVED
discriminator value for OrderCustomLineItemRemovedMessagePayload- See Also:
-
-
Method Details
-
getCustomLineItemId
Unique identifier of the Custom Line Item.
- Returns:
- customLineItemId
-
getCustomLineItemKey
String getCustomLineItemKey()User-defined unique identifier of the Custom Line Item.
- Returns:
- customLineItemKey
-
getCustomLineItem
Custom Line Item that was removed from the Order.
- Returns:
- customLineItem
-
setCustomLineItemId
Unique identifier of the Custom Line Item.
- Parameters:
customLineItemId
- value to be set
-
setCustomLineItemKey
User-defined unique identifier of the Custom Line Item.
- Parameters:
customLineItemKey
- value to be set
-
setCustomLineItem
Custom Line Item that was removed from the Order.
- Parameters:
customLineItem
- value to be set
-
of
factory method- Returns:
- instance of OrderCustomLineItemRemovedMessagePayload
-
of
static OrderCustomLineItemRemovedMessagePayload of(OrderCustomLineItemRemovedMessagePayload template) factory method to create a shallow copy OrderCustomLineItemRemovedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static OrderCustomLineItemRemovedMessagePayload deepCopy(@Nullable OrderCustomLineItemRemovedMessagePayload template) factory method to create a deep copy of OrderCustomLineItemRemovedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderCustomLineItemRemovedMessagePayload- Returns:
- builder
-
builder
static OrderCustomLineItemRemovedMessagePayloadBuilder builder(OrderCustomLineItemRemovedMessagePayload template) create builder for OrderCustomLineItemRemovedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderCustomLineItemRemovedMessagePayload
default <T> T withOrderCustomLineItemRemovedMessagePayload(Function<OrderCustomLineItemRemovedMessagePayload, 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<OrderCustomLineItemRemovedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-