Interface CartSetLineItemRecurrenceInfoAction
- All Superinterfaces:
CartUpdateAction,ResourceUpdateAction<CartUpdateAction>
Sets the recurrence information on the LineItem. If the Cart is already associated with a Recurring Order, this action will fail.
Example to create an instance using the builder pattern
CartSetLineItemRecurrenceInfoAction cartSetLineItemRecurrenceInfoAction = CartSetLineItemRecurrenceInfoAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartSetLineItemRecurrenceInfoAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartSetLineItemRecurrenceInfoActionbuilder(CartSetLineItemRecurrenceInfoAction template) create builder for CartSetLineItemRecurrenceInfoAction instancecopyDeep()deepCopy(CartSetLineItemRecurrenceInfoAction template) factory method to create a deep copy of CartSetLineItemRecurrenceInfoActionidof the LineItem to update.keyof the LineItem to update.@Valid LineItemRecurrenceInfoDraftValue to set.of()factory methodof(CartSetLineItemRecurrenceInfoAction template) factory method to create a shallow copy CartSetLineItemRecurrenceInfoActionvoidsetLineItemId(String lineItemId) idof the LineItem to update.voidsetLineItemKey(String lineItemKey) keyof the LineItem to update.voidsetRecurrenceInfo(LineItemRecurrenceInfoDraft recurrenceInfo) Value to set.static com.fasterxml.jackson.core.type.TypeReference<CartSetLineItemRecurrenceInfoAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor 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_LINE_ITEM_RECURRENCE_INFO
discriminator value for CartSetLineItemRecurrenceInfoAction- See Also:
-
-
Method Details
-
getLineItemId
String getLineItemId()idof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- lineItemId
-
getLineItemKey
String getLineItemKey()keyof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- lineItemKey
-
getRecurrenceInfo
Value to set. If empty, any existing value will be removed.
- Returns:
- recurrenceInfo
-
setLineItemId
idof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
lineItemId- value to be set
-
setLineItemKey
keyof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
lineItemKey- 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 CartSetLineItemRecurrenceInfoAction
-
of
factory method to create a shallow copy CartSetLineItemRecurrenceInfoAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CartSetLineItemRecurrenceInfoAction copyDeep()- Specified by:
copyDeepin interfaceCartUpdateAction
-
deepCopy
@Nullable static CartSetLineItemRecurrenceInfoAction deepCopy(@Nullable CartSetLineItemRecurrenceInfoAction template) factory method to create a deep copy of CartSetLineItemRecurrenceInfoAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartSetLineItemRecurrenceInfoAction- Returns:
- builder
-
builder
static CartSetLineItemRecurrenceInfoActionBuilder builder(CartSetLineItemRecurrenceInfoAction template) create builder for CartSetLineItemRecurrenceInfoAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCartSetLineItemRecurrenceInfoAction
default <T> T withCartSetLineItemRecurrenceInfoAction(Function<CartSetLineItemRecurrenceInfoAction, 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<CartSetLineItemRecurrenceInfoAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-