Interface OrderEdit
- All Superinterfaces:
BaseResource
,Customizable<OrderEdit>
,DomainResource<OrderEdit>
,Identifiable<OrderEdit>
,OrderEditMixin
,Referencable<OrderEdit>
,ResourceIdentifiable<OrderEdit>
,Versioned<OrderEdit>
,WithKey
- All Known Implementing Classes:
OrderEditImpl
Example to create an instance using the builder pattern
OrderEdit orderEdit = OrderEdit.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.resource(resourceBuilder -> resourceBuilder)
.plusStagedActions(stagedActionsBuilder -> stagedActionsBuilder)
.result(resultBuilder -> resultBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic OrderEditBuilder
builder()
builder factory method for OrderEditstatic OrderEditBuilder
create builder for OrderEdit instancestatic OrderEdit
factory method to create a deep copy of OrderEditUser-defined information regarding the Order Edit.@NotNull ZonedDateTime
Date and time (UTC) the Order Edit was initially created.@Valid CreatedBy
Present on resources created after 1 February 2019 except for events not tracked.@Valid CustomFields
Custom Fields of the Order Edit.@NotNull String
getId()
Unique identifier of the Order Edit.getKey()
User-defined unique identifier of the Order Edit.@NotNull ZonedDateTime
Date and time (UTC) the Order Edit was last updated.@Valid LastModifiedBy
Present on resources created after 1 February 2019 except for events not tracked.@NotNull @Valid OrderReference
Reference to the Order updated with this edit.@NotNull @Valid OrderEditResult
For applied edits, it's a summary of the changes on the Order.@NotNull @Valid List<StagedOrderUpdateAction>
Update actions applied to the Order referenced byresource
.@NotNull Long
Current version of the Order Edit.static OrderEdit
of()
factory methodstatic OrderEdit
factory method to create a shallow copy OrderEditstatic ReferenceTypeId
void
setComment
(String comment) User-defined information regarding the Order Edit.void
setCreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the Order Edit was initially created.void
setCreatedBy
(CreatedBy createdBy) Present on resources created after 1 February 2019 except for events not tracked.void
setCustom
(CustomFields custom) Custom Fields of the Order Edit.void
Unique identifier of the Order Edit.void
User-defined unique identifier of the Order Edit.void
setLastModifiedAt
(ZonedDateTime lastModifiedAt) Date and time (UTC) the Order Edit was last updated.void
setLastModifiedBy
(LastModifiedBy lastModifiedBy) Present on resources created after 1 February 2019 except for events not tracked.void
setResource
(OrderReference resource) Reference to the Order updated with this edit.void
setResult
(OrderEditResult result) For applied edits, it's a summary of the changes on the Order.void
setStagedActions
(StagedOrderUpdateAction... stagedActions) Update actions applied to the Order referenced byresource
.void
setStagedActions
(List<StagedOrderUpdateAction> stagedActions) Update actions applied to the Order referenced byresource
.void
setVersion
(Long version) Current version of the Order Edit.static com.fasterxml.jackson.core.type.TypeReference<OrderEdit>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withOrderEdit
(Function<OrderEdit, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
Methods inherited from interface com.commercetools.api.models.Customizable
unwrapCustomizable
Methods inherited from interface com.commercetools.api.models.DomainResource
get
Methods inherited from interface com.commercetools.api.models.order_edit.OrderEditMixin
toReference, toResourceIdentifier
-
Method Details
-
getId
Unique identifier of the Order Edit.
- Specified by:
getId
in interfaceBaseResource
- Specified by:
getId
in interfaceDomainResource<OrderEdit>
- Specified by:
getId
in interfaceIdentifiable<OrderEdit>
- Specified by:
getId
in interfaceVersioned<OrderEdit>
- Returns:
- id
-
getVersion
Current version of the Order Edit.
- Specified by:
getVersion
in interfaceBaseResource
- Specified by:
getVersion
in interfaceDomainResource<OrderEdit>
- Specified by:
getVersion
in interfaceVersioned<OrderEdit>
- Returns:
- version
-
getKey
User-defined unique identifier of the Order Edit.
-
getResource
Reference to the Order updated with this edit.
- Returns:
- resource
-
getStagedActions
Update actions applied to the Order referenced by
resource
.- Returns:
- stagedActions
-
getResult
For applied edits, it's a summary of the changes on the Order. For unapplied edits, it's a preview of the changes.
- Returns:
- result
-
getComment
User-defined information regarding the Order Edit.
- Returns:
- comment
-
getCustom
Custom Fields of the Order Edit.
- Specified by:
getCustom
in interfaceCustomizable<OrderEdit>
- Returns:
- custom
-
getCreatedAt
Date and time (UTC) the Order Edit was initially created.
- Specified by:
getCreatedAt
in interfaceBaseResource
- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the Order Edit was last updated.
- Specified by:
getLastModifiedAt
in interfaceBaseResource
- Returns:
- lastModifiedAt
-
getLastModifiedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Returns:
- lastModifiedBy
-
getCreatedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Returns:
- createdBy
-
setId
Unique identifier of the Order Edit.
- Specified by:
setId
in interfaceBaseResource
- Parameters:
id
- value to be set
-
setVersion
Current version of the Order Edit.
- Specified by:
setVersion
in interfaceBaseResource
- Parameters:
version
- value to be set
-
setKey
User-defined unique identifier of the Order Edit.
- Parameters:
key
- value to be set
-
setResource
Reference to the Order updated with this edit.
- Parameters:
resource
- value to be set
-
setStagedActions
Update actions applied to the Order referenced by
resource
.- Parameters:
stagedActions
- values to be set
-
setStagedActions
Update actions applied to the Order referenced by
resource
.- Parameters:
stagedActions
- values to be set
-
setResult
For applied edits, it's a summary of the changes on the Order. For unapplied edits, it's a preview of the changes.
- Parameters:
result
- value to be set
-
setComment
User-defined information regarding the Order Edit.
- Parameters:
comment
- value to be set
-
setCustom
Custom Fields of the Order Edit.
- Specified by:
setCustom
in interfaceCustomizable<OrderEdit>
- Parameters:
custom
- value to be set
-
setCreatedAt
Date and time (UTC) the Order Edit was initially created.
- Specified by:
setCreatedAt
in interfaceBaseResource
- Parameters:
createdAt
- value to be set
-
setLastModifiedAt
Date and time (UTC) the Order Edit was last updated.
- Specified by:
setLastModifiedAt
in interfaceBaseResource
- Parameters:
lastModifiedAt
- value to be set
-
setLastModifiedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Parameters:
lastModifiedBy
- value to be set
-
setCreatedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Parameters:
createdBy
- value to be set
-
of
factory method- Returns:
- instance of OrderEdit
-
of
factory method to create a shallow copy OrderEdit- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of OrderEdit- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderEdit- Returns:
- builder
-
builder
create builder for OrderEdit instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderEdit
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
referenceTypeId
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-