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 String
discriminator 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 CartSetLineItemRecurrenceInfoActionid
of the LineItem to update.key
of the LineItem to update.@Valid LineItemRecurrenceInfoDraft
Value to set.of()
factory methodof
(CartSetLineItemRecurrenceInfoAction template) factory method to create a shallow copy CartSetLineItemRecurrenceInfoActionvoid
setLineItemId
(String lineItemId) id
of the LineItem to update.void
setLineItemKey
(String lineItemKey) key
of the LineItem to update.void
setRecurrenceInfo
(LineItemRecurrenceInfoDraft recurrenceInfo) Value to set.static com.fasterxml.jackson.core.type.TypeReference<CartSetLineItemRecurrenceInfoAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
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_LINE_ITEM_RECURRENCE_INFO
discriminator value for CartSetLineItemRecurrenceInfoAction- See Also:
-
-
Method Details
-
getLineItemId
String getLineItemId()id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- lineItemId
-
getLineItemKey
String getLineItemKey()key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- lineItemKey
-
getRecurrenceInfo
Value to set. If empty, any existing value will be removed.
- Returns:
- recurrenceInfo
-
setLineItemId
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemId
- value to be set
-
setLineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is 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:
copyDeep
in 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
-