Package com.commercetools.api.models.me
Interface MyCartSetCustomLineItemRecurrenceInfoAction
- All Superinterfaces:
MyCartUpdateAction
,ResourceUpdateAction<MyCartUpdateAction>
Sets the recurrence information on the CustomLineItem. If the Cart is already associated with a Recurring Order, this action will fail.
Example to create an instance using the builder pattern
MyCartSetCustomLineItemRecurrenceInfoAction myCartSetCustomLineItemRecurrenceInfoAction = MyCartSetCustomLineItemRecurrenceInfoAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for MyCartSetCustomLineItemRecurrenceInfoAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for MyCartSetCustomLineItemRecurrenceInfoActioncreate builder for MyCartSetCustomLineItemRecurrenceInfoAction instancecopyDeep()
factory method to create a deep copy of MyCartSetCustomLineItemRecurrenceInfoActionid
of the CustomLineItem to update.key
of the CustomLineItem to update.Value to set.of()
factory methodfactory method to create a shallow copy MyCartSetCustomLineItemRecurrenceInfoActionvoid
setCustomLineItemId
(String customLineItemId) id
of the CustomLineItem to update.void
setCustomLineItemKey
(String customLineItemKey) key
of the CustomLineItem to update.void
setRecurrenceInfo
(CustomLineItemRecurrenceInfoDraft recurrenceInfo) Value to set.static com.fasterxml.jackson.core.type.TypeReference<MyCartSetCustomLineItemRecurrenceInfoAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withMyCartSetCustomLineItemRecurrenceInfoAction
(Function<MyCartSetCustomLineItemRecurrenceInfoAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyCartUpdateAction
getAction, withMyCartUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_CUSTOM_LINE_ITEM_RECURRENCE_INFO
discriminator value for MyCartSetCustomLineItemRecurrenceInfoAction- See Also:
-
-
Method Details
-
getCustomLineItemId
String getCustomLineItemId()id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Returns:
- customLineItemId
-
getCustomLineItemKey
String getCustomLineItemKey()key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Returns:
- customLineItemKey
-
getRecurrenceInfo
Value to set. If empty, any existing value will be removed.
- Returns:
- recurrenceInfo
-
setCustomLineItemId
id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemId
- value to be set
-
setCustomLineItemKey
key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemKey
- value to be set
-
setRecurrenceInfo
Value to set. If empty, any existing value will be removed.
- Parameters:
recurrenceInfo
- value to be set
-
of
factory method- Returns:
- instance of MyCartSetCustomLineItemRecurrenceInfoAction
-
of
static MyCartSetCustomLineItemRecurrenceInfoAction of(MyCartSetCustomLineItemRecurrenceInfoAction template) factory method to create a shallow copy MyCartSetCustomLineItemRecurrenceInfoAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
MyCartSetCustomLineItemRecurrenceInfoAction copyDeep()- Specified by:
copyDeep
in interfaceMyCartUpdateAction
-
deepCopy
@Nullable static MyCartSetCustomLineItemRecurrenceInfoAction deepCopy(@Nullable MyCartSetCustomLineItemRecurrenceInfoAction template) factory method to create a deep copy of MyCartSetCustomLineItemRecurrenceInfoAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyCartSetCustomLineItemRecurrenceInfoAction- Returns:
- builder
-
builder
static MyCartSetCustomLineItemRecurrenceInfoActionBuilder builder(MyCartSetCustomLineItemRecurrenceInfoAction template) create builder for MyCartSetCustomLineItemRecurrenceInfoAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyCartSetCustomLineItemRecurrenceInfoAction
default <T> T withMyCartSetCustomLineItemRecurrenceInfoAction(Function<MyCartSetCustomLineItemRecurrenceInfoAction, 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<MyCartSetCustomLineItemRecurrenceInfoAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-