Interface OrderEdit
- All Superinterfaces:
BaseResource,Customizable<OrderEdit>,DomainResource<OrderEdit>,Identifiable<OrderEdit>,OrderEditMixin,Referencable<OrderEdit>,ResourceIdentifiable<OrderEdit>,Versioned<OrderEdit>,WithKey
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 OrderEditBuilderbuilder()builder factory method for OrderEditstatic OrderEditBuildercreate builder for OrderEdit instancecopyDeep()static OrderEditfactory method to create a deep copy of OrderEditUser-defined information regarding the Order Edit.@NotNull ZonedDateTimeDate and time (UTC) the Order Edit was initially created.@Valid CreatedByIDs and references that created the OrderEdit.@Valid CustomFieldsCustom Fields of the Order Edit.@NotNull StringgetId()Unique identifier of the Order Edit.getKey()User-defined unique identifier of the Order Edit.@NotNull ZonedDateTimeDate and time (UTC) the Order Edit was last updated.@Valid LastModifiedByIDs and references that last modified the OrderEdit.@NotNull @Valid OrderReferenceReference to the Order updated with this edit.@NotNull @Valid OrderEditResultFor 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 LongCurrent version of the Order Edit.static OrderEditof()factory methodstatic OrderEditfactory method to create a shallow copy OrderEditstatic ReferenceTypeIdvoidsetComment(String comment) User-defined information regarding the Order Edit.voidsetCreatedAt(ZonedDateTime createdAt) Date and time (UTC) the Order Edit was initially created.voidsetCreatedBy(CreatedBy createdBy) IDs and references that created the OrderEdit.voidsetCustom(CustomFields custom) Custom Fields of the Order Edit.voidUnique identifier of the Order Edit.voidUser-defined unique identifier of the Order Edit.voidsetLastModifiedAt(ZonedDateTime lastModifiedAt) Date and time (UTC) the Order Edit was last updated.voidsetLastModifiedBy(LastModifiedBy lastModifiedBy) IDs and references that last modified the OrderEdit.voidsetResource(OrderReference resource) Reference to the Order updated with this edit.voidsetResult(OrderEditResult result) For applied edits, it's a summary of the changes on the Order.voidsetStagedActions(StagedOrderUpdateAction... stagedActions) Update actions applied to the Order referenced byresource.voidsetStagedActions(List<StagedOrderUpdateAction> stagedActions) Update actions applied to the Order referenced byresource.voidsetVersion(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> TwithOrderEdit(Function<OrderEdit, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResourceMethods inherited from interface com.commercetools.api.models.Customizable
unwrapCustomizableMethods inherited from interface com.commercetools.api.models.DomainResource
getMethods inherited from interface com.commercetools.api.models.order_edit.OrderEditMixin
toReference, toResourceIdentifier
-
Method Details
-
getId
Unique identifier of the Order Edit.
- Specified by:
getIdin interfaceBaseResource- Specified by:
getIdin interfaceDomainResource<OrderEdit>- Specified by:
getIdin interfaceIdentifiable<OrderEdit>- Specified by:
getIdin interfaceVersioned<OrderEdit>- Returns:
- id
-
getVersion
Current version of the Order Edit.
- Specified by:
getVersionin interfaceBaseResource- Specified by:
getVersionin interfaceDomainResource<OrderEdit>- Specified by:
getVersionin interfaceVersioned<OrderEdit>- Returns:
- version
-
getKey
String 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
String getComment()User-defined information regarding the Order Edit.
- Returns:
- comment
-
getCustom
Custom Fields of the Order Edit.
- Specified by:
getCustomin interfaceCustomizable<OrderEdit>- Returns:
- custom
-
getCreatedAt
Date and time (UTC) the Order Edit was initially created.
- Specified by:
getCreatedAtin interfaceBaseResource- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the Order Edit was last updated.
- Specified by:
getLastModifiedAtin interfaceBaseResource- Returns:
- lastModifiedAt
-
getLastModifiedBy
IDs and references that last modified the OrderEdit.
- Returns:
- lastModifiedBy
-
getCreatedBy
IDs and references that created the OrderEdit.
- Returns:
- createdBy
-
setId
Unique identifier of the Order Edit.
- Specified by:
setIdin interfaceBaseResource- Parameters:
id- value to be set
-
setVersion
Current version of the Order Edit.
- Specified by:
setVersionin 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:
setCustomin interfaceCustomizable<OrderEdit>- Parameters:
custom- value to be set
-
setCreatedAt
Date and time (UTC) the Order Edit was initially created.
- Specified by:
setCreatedAtin interfaceBaseResource- Parameters:
createdAt- value to be set
-
setLastModifiedAt
Date and time (UTC) the Order Edit was last updated.
- Specified by:
setLastModifiedAtin interfaceBaseResource- Parameters:
lastModifiedAt- value to be set
-
setLastModifiedBy
IDs and references that last modified the OrderEdit.
- Parameters:
lastModifiedBy- value to be set
-
setCreatedBy
IDs and references that created the OrderEdit.
- 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
-
copyDeep
OrderEdit copyDeep()- Specified by:
copyDeepin interfaceBaseResource
-
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
-