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 Stringdiscriminator 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 MyCartSetCustomLineItemRecurrenceInfoActionidof the CustomLineItem to update.keyof the CustomLineItem to update.Value to set.of()factory methodfactory method to create a shallow copy MyCartSetCustomLineItemRecurrenceInfoActionvoidsetCustomLineItemId(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<MyCartSetCustomLineItemRecurrenceInfoAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithMyCartSetCustomLineItemRecurrenceInfoAction(Function<MyCartSetCustomLineItemRecurrenceInfoAction, 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_CUSTOM_LINE_ITEM_RECURRENCE_INFO
discriminator value for MyCartSetCustomLineItemRecurrenceInfoAction- 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 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:
copyDeepin 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
-