Interface CartSetCustomLineItemRecurrenceInfoAction
- All Superinterfaces:
CartUpdateAction,ResourceUpdateAction<CartUpdateAction>
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
CartSetCustomLineItemRecurrenceInfoAction cartSetCustomLineItemRecurrenceInfoAction = CartSetCustomLineItemRecurrenceInfoAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartSetCustomLineItemRecurrenceInfoAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartSetCustomLineItemRecurrenceInfoActioncreate builder for CartSetCustomLineItemRecurrenceInfoAction instancecopyDeep()factory method to create a deep copy of CartSetCustomLineItemRecurrenceInfoActionidof the CustomLineItem to update.keyof the CustomLineItem to update.Value to set.of()factory methodof(CartSetCustomLineItemRecurrenceInfoAction template) factory method to create a shallow copy CartSetCustomLineItemRecurrenceInfoActionvoidsetCustomLineItemId(String customLineItemId) idof the CustomLineItem to update.voidsetCustomLineItemKey(String customLineItemKey) keyof the CustomLineItem to update.voidsetRecurrenceInfo(CustomLineItemRecurrenceInfoDraft recurrenceInfo) Value to set.static com.fasterxml.jackson.core.type.TypeReference<CartSetCustomLineItemRecurrenceInfoAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithCartSetCustomLineItemRecurrenceInfoAction(Function<CartSetCustomLineItemRecurrenceInfoAction, 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_CUSTOM_LINE_ITEM_RECURRENCE_INFO
discriminator value for CartSetCustomLineItemRecurrenceInfoAction- See Also:
-
-
Method Details
-
getCustomLineItemId
String getCustomLineItemId()idof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Returns:
- customLineItemId
-
getCustomLineItemKey
String getCustomLineItemKey()keyof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Returns:
- customLineItemKey
-
getRecurrenceInfo
Value to set. If empty, any existing value will be removed.
- Returns:
- recurrenceInfo
-
setCustomLineItemId
idof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Parameters:
customLineItemId- value to be set
-
setCustomLineItemKey
keyof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis 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 CartSetCustomLineItemRecurrenceInfoAction
-
of
static CartSetCustomLineItemRecurrenceInfoAction of(CartSetCustomLineItemRecurrenceInfoAction template) factory method to create a shallow copy CartSetCustomLineItemRecurrenceInfoAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CartSetCustomLineItemRecurrenceInfoAction copyDeep()- Specified by:
copyDeepin interfaceCartUpdateAction
-
deepCopy
@Nullable static CartSetCustomLineItemRecurrenceInfoAction deepCopy(@Nullable CartSetCustomLineItemRecurrenceInfoAction template) factory method to create a deep copy of CartSetCustomLineItemRecurrenceInfoAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartSetCustomLineItemRecurrenceInfoAction- Returns:
- builder
-
builder
static CartSetCustomLineItemRecurrenceInfoActionBuilder builder(CartSetCustomLineItemRecurrenceInfoAction template) create builder for CartSetCustomLineItemRecurrenceInfoAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCartSetCustomLineItemRecurrenceInfoAction
default <T> T withCartSetCustomLineItemRecurrenceInfoAction(Function<CartSetCustomLineItemRecurrenceInfoAction, 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<CartSetCustomLineItemRecurrenceInfoAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-