Package com.commercetools.api.models.me
Interface MyCartSetDeleteDaysAfterLastModificationAction
- All Superinterfaces:
MyCartUpdateAction,ResourceUpdateAction<MyCartUpdateAction>
Number of days after the last modification before a Cart is deleted.
If a ChangeSubscription exists for Carts, a ResourceDeletedDeliveryPayload is sent.
Example to create an instance using the builder pattern
MyCartSetDeleteDaysAfterLastModificationAction myCartSetDeleteDaysAfterLastModificationAction = MyCartSetDeleteDaysAfterLastModificationAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for MyCartSetDeleteDaysAfterLastModificationAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for MyCartSetDeleteDaysAfterLastModificationActioncreate builder for MyCartSetDeleteDaysAfterLastModificationAction instancecopyDeep()factory method to create a deep copy of MyCartSetDeleteDaysAfterLastModificationActionValue to set.of()factory methodfactory method to create a shallow copy MyCartSetDeleteDaysAfterLastModificationActionvoidsetDeleteDaysAfterLastModification(Integer deleteDaysAfterLastModification) Value to set.static com.fasterxml.jackson.core.type.TypeReference<MyCartSetDeleteDaysAfterLastModificationAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithMyCartSetDeleteDaysAfterLastModificationAction(Function<MyCartSetDeleteDaysAfterLastModificationAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyCartUpdateAction
getAction, withMyCartUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_DELETE_DAYS_AFTER_LAST_MODIFICATION
discriminator value for MyCartSetDeleteDaysAfterLastModificationAction- 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 MyCartSetDeleteDaysAfterLastModificationAction
-
of
static MyCartSetDeleteDaysAfterLastModificationAction of(MyCartSetDeleteDaysAfterLastModificationAction template) factory method to create a shallow copy MyCartSetDeleteDaysAfterLastModificationAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
- Specified by:
copyDeepin interfaceMyCartUpdateAction
-
deepCopy
@Nullable static MyCartSetDeleteDaysAfterLastModificationAction deepCopy(@Nullable MyCartSetDeleteDaysAfterLastModificationAction template) factory method to create a deep copy of MyCartSetDeleteDaysAfterLastModificationAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyCartSetDeleteDaysAfterLastModificationAction- Returns:
- builder
-
builder
static MyCartSetDeleteDaysAfterLastModificationActionBuilder builder(MyCartSetDeleteDaysAfterLastModificationAction template) create builder for MyCartSetDeleteDaysAfterLastModificationAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMyCartSetDeleteDaysAfterLastModificationAction
default <T> T withMyCartSetDeleteDaysAfterLastModificationAction(Function<MyCartSetDeleteDaysAfterLastModificationAction, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<MyCartSetDeleteDaysAfterLastModificationAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-