Interface CartSetDeleteDaysAfterLastModificationAction
- All Superinterfaces:
CartUpdateAction,ResourceUpdateAction<CartUpdateAction>
Number of days after the last modification before a Cart is deleted.
Carts with CartOrigin RecurringOrder are not affected by this update action.
If a ChangeSubscription exists for Carts, a ResourceDeletedDeliveryPayload is sent.
Example to create an instance using the builder pattern
CartSetDeleteDaysAfterLastModificationAction cartSetDeleteDaysAfterLastModificationAction = CartSetDeleteDaysAfterLastModificationAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartSetDeleteDaysAfterLastModificationAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartSetDeleteDaysAfterLastModificationActioncreate builder for CartSetDeleteDaysAfterLastModificationAction instancecopyDeep()factory method to create a deep copy of CartSetDeleteDaysAfterLastModificationActionValue to set.of()factory methodfactory method to create a shallow copy CartSetDeleteDaysAfterLastModificationActionofUnset()voidsetDeleteDaysAfterLastModification(Integer deleteDaysAfterLastModification) Value to set.static com.fasterxml.jackson.core.type.TypeReference<CartSetDeleteDaysAfterLastModificationAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithCartSetDeleteDaysAfterLastModificationAction(Function<CartSetDeleteDaysAfterLastModificationAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_DELETE_DAYS_AFTER_LAST_MODIFICATION
discriminator value for CartSetDeleteDaysAfterLastModificationAction- See Also:
-
-
Method Details
-
getDeleteDaysAfterLastModification
Integer getDeleteDaysAfterLastModification()Value to set. If not provided, the default value for this field configured in Project settings is assigned.
- Returns:
- deleteDaysAfterLastModification
-
setDeleteDaysAfterLastModification
Value to set. If not provided, the default value for this field configured in Project settings is assigned.
- Parameters:
deleteDaysAfterLastModification- value to be set
-
of
factory method- Returns:
- instance of CartSetDeleteDaysAfterLastModificationAction
-
of
static CartSetDeleteDaysAfterLastModificationAction of(CartSetDeleteDaysAfterLastModificationAction template) factory method to create a shallow copy CartSetDeleteDaysAfterLastModificationAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CartSetDeleteDaysAfterLastModificationAction copyDeep()- Specified by:
copyDeepin interfaceCartUpdateAction
-
deepCopy
@Nullable static CartSetDeleteDaysAfterLastModificationAction deepCopy(@Nullable CartSetDeleteDaysAfterLastModificationAction template) factory method to create a deep copy of CartSetDeleteDaysAfterLastModificationAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartSetDeleteDaysAfterLastModificationAction- Returns:
- builder
-
builder
static CartSetDeleteDaysAfterLastModificationActionBuilder builder(CartSetDeleteDaysAfterLastModificationAction template) create builder for CartSetDeleteDaysAfterLastModificationAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCartSetDeleteDaysAfterLastModificationAction
default <T> T withCartSetDeleteDaysAfterLastModificationAction(Function<CartSetDeleteDaysAfterLastModificationAction, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
ofUnset
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<CartSetDeleteDaysAfterLastModificationAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-