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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for OrderCustomLineItemRemovedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for OrderCustomLineItemRemovedMessagePayloadcreate builder for OrderCustomLineItemRemovedMessagePayload instancecopyDeep()factory method to create a deep copy of OrderCustomLineItemRemovedMessagePayload@NotNull @Valid CustomLineItemCustom Line Item that was removed from the Order.@NotNull StringUnique 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 OrderCustomLineItemRemovedMessagePayloadvoidsetCustomLineItem(CustomLineItem customLineItem) Custom Line Item that was removed from the Order.voidsetCustomLineItemId(String customLineItemId) Unique identifier of the Custom Line Item.voidsetCustomLineItemKey(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> TwithOrderCustomLineItemRemovedMessagePayload(Function<OrderCustomLineItemRemovedMessagePayload, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayloadMethods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
asMethods 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
-
copyDeep
OrderCustomLineItemRemovedMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload- Specified by:
copyDeepin interfaceOrderMessagePayload
-
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
-