Interface OrderCustomLineItemQuantityChangedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
,OrderMessagePayload
Generated after a successful Change CustomLineItem Quantity update action.
Example to create an instance using the builder pattern
OrderCustomLineItemQuantityChangedMessagePayload orderCustomLineItemQuantityChangedMessagePayload = OrderCustomLineItemQuantityChangedMessagePayload.builder()
.customLineItemId("{customLineItemId}")
.quantity(0.3)
.oldQuantity(0.3)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderCustomLineItemQuantityChangedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderCustomLineItemQuantityChangedMessagePayloadcreate builder for OrderCustomLineItemQuantityChangedMessagePayload instancefactory method to create a deep copy of OrderCustomLineItemQuantityChangedMessagePayload@NotNull String
Unique identifier of the Custom Line Item.User-defined unique identifier of the Custom Line Item.@NotNull Long
Custom Line Item quantity before the Change Custom Line Item Quantity update action.@NotNull Long
Custom Line Item quantity after the Change Custom Line Item Quantity update action.of()
factory methodfactory method to create a shallow copy OrderCustomLineItemQuantityChangedMessagePayloadvoid
setCustomLineItemId
(String customLineItemId) Unique identifier of the Custom Line Item.void
setCustomLineItemKey
(String customLineItemKey) User-defined unique identifier of the Custom Line Item.void
setOldQuantity
(Long oldQuantity) Custom Line Item quantity before the Change Custom Line Item Quantity update action.void
setQuantity
(Long quantity) Custom Line Item quantity after the Change Custom Line Item Quantity update action.static com.fasterxml.jackson.core.type.TypeReference<OrderCustomLineItemQuantityChangedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withOrderCustomLineItemQuantityChangedMessagePayload
(Function<OrderCustomLineItemQuantityChangedMessagePayload, 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_QUANTITY_CHANGED
discriminator value for OrderCustomLineItemQuantityChangedMessagePayload- 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
-
getQuantity
Custom Line Item quantity after the Change Custom Line Item Quantity update action.
- Returns:
- quantity
-
getOldQuantity
Custom Line Item quantity before the Change Custom Line Item Quantity update action.
- Returns:
- oldQuantity
-
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
-
setQuantity
Custom Line Item quantity after the Change Custom Line Item Quantity update action.
- Parameters:
quantity
- value to be set
-
setOldQuantity
Custom Line Item quantity before the Change Custom Line Item Quantity update action.
- Parameters:
oldQuantity
- value to be set
-
of
factory method- Returns:
- instance of OrderCustomLineItemQuantityChangedMessagePayload
-
of
static OrderCustomLineItemQuantityChangedMessagePayload of(OrderCustomLineItemQuantityChangedMessagePayload template) factory method to create a shallow copy OrderCustomLineItemQuantityChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static OrderCustomLineItemQuantityChangedMessagePayload deepCopy(@Nullable OrderCustomLineItemQuantityChangedMessagePayload template) factory method to create a deep copy of OrderCustomLineItemQuantityChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderCustomLineItemQuantityChangedMessagePayload- Returns:
- builder
-
builder
static OrderCustomLineItemQuantityChangedMessagePayloadBuilder builder(OrderCustomLineItemQuantityChangedMessagePayload template) create builder for OrderCustomLineItemQuantityChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderCustomLineItemQuantityChangedMessagePayload
default <T> T withOrderCustomLineItemQuantityChangedMessagePayload(Function<OrderCustomLineItemQuantityChangedMessagePayload, 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<OrderCustomLineItemQuantityChangedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-