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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for OrderUpdateSyncInfoAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for OrderUpdateSyncInfoActionbuilder(OrderUpdateSyncInfoAction template) create builder for OrderUpdateSyncInfoAction instancecopyDeep()static OrderUpdateSyncInfoActiondeepCopy(OrderUpdateSyncInfoAction template) factory method to create a deep copy of OrderUpdateSyncInfoAction@NotNull @Valid ChannelResourceIdentifierThe 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 OrderUpdateSyncInfoActionof()factory methodstatic OrderUpdateSyncInfoActionof(OrderUpdateSyncInfoAction template) factory method to create a shallow copy OrderUpdateSyncInfoActionvoidsetChannel(ChannelResourceIdentifier channel) The synchronization destination to set.voidsetExternalId(String externalId) Set this to identify an external order instance, file, or other resource.voidsetSyncedAt(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> Taccessor map functionMethods inherited from interface com.commercetools.api.models.order.OrderUpdateAction
getAction, withOrderUpdateActionMethods 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
OrderExportorOrderImport. 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
OrderExportorOrderImport. 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
-
copyDeep
OrderUpdateSyncInfoAction copyDeep()- Specified by:
copyDeepin interfaceOrderUpdateAction
-
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
-