Interface CartSetDeleteDaysAfterLastModificationAction
- All Superinterfaces:
CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
Number of days after which a Cart with Active
CartState is deleted since its last modification.
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
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartSetDeleteDaysAfterLastModificationAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartSetDeleteDaysAfterLastModificationActioncreate builder for CartSetDeleteDaysAfterLastModificationAction instancefactory method to create a deep copy of CartSetDeleteDaysAfterLastModificationActionValue to set.of()
factory methodfactory method to create a shallow copy CartSetDeleteDaysAfterLastModificationActionofUnset()
void
setDeleteDaysAfterLastModification
(Integer deleteDaysAfterLastModification) Value to set.static com.fasterxml.jackson.core.type.TypeReference<CartSetDeleteDaysAfterLastModificationAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCartSetDeleteDaysAfterLastModificationAction
(Function<CartSetDeleteDaysAfterLastModificationAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateAction
Methods 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
-
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
-