Interface OrderUpdateSyncInfoAction
- All Superinterfaces:
OrderUpdateAction
,ResourceUpdateAction<OrderUpdateAction>
OrderUpdateSyncInfoAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderUpdateSyncInfoAction orderUpdateSyncInfoAction = OrderUpdateSyncInfoAction.builder()
.channel(channelBuilder -> channelBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderUpdateSyncInfoAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderUpdateSyncInfoActionbuilder
(OrderUpdateSyncInfoAction template) create builder for OrderUpdateSyncInfoAction instancestatic OrderUpdateSyncInfoAction
deepCopy
(OrderUpdateSyncInfoAction template) factory method to create a deep copy of OrderUpdateSyncInfoAction@NotNull @Valid ChannelResourceIdentifier
The synchronization destination to set.Set this to identify an external order instance, file, or other resource.If not set, it defaults to the current date and time.static OrderUpdateSyncInfoAction
of()
factory methodstatic OrderUpdateSyncInfoAction
of
(OrderUpdateSyncInfoAction template) factory method to create a shallow copy OrderUpdateSyncInfoActionvoid
setChannel
(ChannelResourceIdentifier channel) The synchronization destination to set.void
setExternalId
(String externalId) Set this to identify an external order instance, file, or other resource.void
setSyncedAt
(ZonedDateTime syncedAt) If not set, it defaults to the current date and time.static com.fasterxml.jackson.core.type.TypeReference<OrderUpdateSyncInfoAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.order.OrderUpdateAction
getAction, withOrderUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
UPDATE_SYNC_INFO
discriminator value for OrderUpdateSyncInfoAction- See Also:
-
-
Method Details
-
getExternalId
String getExternalId()Set this to identify an external order instance, file, or other resource.
- Returns:
- externalId
-
getChannel
The synchronization destination to set. Must not be empty. The referenced Channel must have the Channel Role
OrderExport
orOrderImport
. Otherwise this update action returns an InvalidInput error.- Returns:
- channel
-
getSyncedAt
ZonedDateTime getSyncedAt()If not set, it defaults to the current date and time.
- Returns:
- syncedAt
-
setExternalId
Set this to identify an external order instance, file, or other resource.
- Parameters:
externalId
- value to be set
-
setChannel
The synchronization destination to set. Must not be empty. The referenced Channel must have the Channel Role
OrderExport
orOrderImport
. Otherwise this update action returns an InvalidInput error.- Parameters:
channel
- value to be set
-
setSyncedAt
If not set, it defaults to the current date and time.
- Parameters:
syncedAt
- value to be set
-
of
factory method- Returns:
- instance of OrderUpdateSyncInfoAction
-
of
factory method to create a shallow copy OrderUpdateSyncInfoAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of OrderUpdateSyncInfoAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderUpdateSyncInfoAction- Returns:
- builder
-
builder
create builder for OrderUpdateSyncInfoAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderUpdateSyncInfoAction
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
-