Interface OrderCreatedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
,OrderMessagePayload
Generated after a successful Create Order request.
Example to create an instance using the builder pattern
OrderCreatedMessagePayload orderCreatedMessagePayload = OrderCreatedMessagePayload.builder()
.order(orderBuilder -> orderBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderCreatedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderCreatedMessagePayloadbuilder
(OrderCreatedMessagePayload template) create builder for OrderCreatedMessagePayload instancestatic OrderCreatedMessagePayload
deepCopy
(OrderCreatedMessagePayload template) factory method to create a deep copy of OrderCreatedMessagePayload@NotNull @Valid Order
getOrder()
Order that was created.static OrderCreatedMessagePayload
of()
factory methodstatic OrderCreatedMessagePayload
of
(OrderCreatedMessagePayload template) factory method to create a shallow copy OrderCreatedMessagePayloadvoid
Order that was created.static com.fasterxml.jackson.core.type.TypeReference<OrderCreatedMessagePayload>
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_CREATED
discriminator value for OrderCreatedMessagePayload- See Also:
-
-
Method Details
-
getOrder
Order that was created.
- Returns:
- order
-
setOrder
Order that was created.
- Parameters:
order
- value to be set
-
of
factory method- Returns:
- instance of OrderCreatedMessagePayload
-
of
factory method to create a shallow copy OrderCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of OrderCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderCreatedMessagePayload- Returns:
- builder
-
builder
create builder for OrderCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderCreatedMessagePayload
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-