Interface OrderEditApplied
- All Superinterfaces:
OrderEditResult
Result of a succesful application of stagedActions
to the Order.
Example to create an instance using the builder pattern
OrderEditApplied orderEditApplied = OrderEditApplied.builder()
.appliedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.excerptBeforeEdit(excerptBeforeEditBuilder -> excerptBeforeEditBuilder)
.excerptAfterEdit(excerptAfterEditBuilder -> excerptAfterEditBuilder)
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic OrderEditAppliedBuilder
builder()
builder factory method for OrderEditAppliedstatic OrderEditAppliedBuilder
builder
(OrderEditApplied template) create builder for OrderEditApplied instancestatic OrderEditApplied
deepCopy
(OrderEditApplied template) factory method to create a deep copy of OrderEditApplied@NotNull ZonedDateTime
Date and time (UTC) the Order was edited.@NotNull @Valid OrderExcerpt
Prices of the Order after the edit.@NotNull @Valid OrderExcerpt
Prices of the Order before the edit.@NotNull String
getType()
This field is queryable.static OrderEditApplied
of()
factory methodstatic OrderEditApplied
of
(OrderEditApplied template) factory method to create a shallow copy OrderEditAppliedvoid
setAppliedAt
(ZonedDateTime appliedAt) Date and time (UTC) the Order was edited.void
setExcerptAfterEdit
(OrderExcerpt excerptAfterEdit) Prices of the Order after the edit.void
setExcerptBeforeEdit
(OrderExcerpt excerptBeforeEdit) Prices of the Order before the edit.static com.fasterxml.jackson.core.type.TypeReference<OrderEditApplied>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withOrderEditApplied
(Function<OrderEditApplied, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.order_edit.OrderEditResult
withOrderEditResult
-
Field Details
-
APPLIED
discriminator value for OrderEditApplied- See Also:
-
-
Method Details
-
getType
This field is queryable.
- Specified by:
getType
in interfaceOrderEditResult
- Returns:
- type
-
getAppliedAt
Date and time (UTC) the Order was edited.
- Returns:
- appliedAt
-
getExcerptBeforeEdit
Prices of the Order before the edit.
- Returns:
- excerptBeforeEdit
-
getExcerptAfterEdit
Prices of the Order after the edit.
- Returns:
- excerptAfterEdit
-
setAppliedAt
Date and time (UTC) the Order was edited.
- Parameters:
appliedAt
- value to be set
-
setExcerptBeforeEdit
Prices of the Order before the edit.
- Parameters:
excerptBeforeEdit
- value to be set
-
setExcerptAfterEdit
Prices of the Order after the edit.
- Parameters:
excerptAfterEdit
- value to be set
-
of
factory method- Returns:
- instance of OrderEditApplied
-
of
factory method to create a shallow copy OrderEditApplied- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of OrderEditApplied- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderEditApplied- Returns:
- builder
-
builder
create builder for OrderEditApplied instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderEditApplied
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
-