Interface CartChangeCustomLineItemMoneyAction
- All Superinterfaces:
CartUpdateAction,ResourceUpdateAction<CartUpdateAction>
CartChangeCustomLineItemMoneyAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartChangeCustomLineItemMoneyAction cartChangeCustomLineItemMoneyAction = CartChangeCustomLineItemMoneyAction.builder()
.money(moneyBuilder -> moneyBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartChangeCustomLineItemMoneyAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartChangeCustomLineItemMoneyActionbuilder(CartChangeCustomLineItemMoneyAction template) create builder for CartChangeCustomLineItemMoneyAction instancecopyDeep()deepCopy(CartChangeCustomLineItemMoneyAction template) factory method to create a deep copy of CartChangeCustomLineItemMoneyActionidof the CustomLineItem to update.keyof the CustomLineItem to update.@NotNull @Valid MoneygetMoney()Value to set.of()factory methodof(CartChangeCustomLineItemMoneyAction template) factory method to create a shallow copy CartChangeCustomLineItemMoneyActionvoidsetCustomLineItemId(String customLineItemId) idof the CustomLineItem to update.voidsetCustomLineItemKey(String customLineItemKey) keyof the CustomLineItem to update.voidValue to set.static com.fasterxml.jackson.core.type.TypeReference<CartChangeCustomLineItemMoneyAction>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
-
CHANGE_CUSTOM_LINE_ITEM_MONEY
discriminator value for CartChangeCustomLineItemMoneyAction- 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
-
getMoney
Value to set. Must not be empty. Can be a negative amount.
To set the money value in high precision, use HighPrecisionMoneyDraft.
- Returns:
- money
-
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
-
setMoney
Value to set. Must not be empty. Can be a negative amount.
To set the money value in high precision, use HighPrecisionMoneyDraft.
- Parameters:
money- value to be set
-
of
factory method- Returns:
- instance of CartChangeCustomLineItemMoneyAction
-
of
factory method to create a shallow copy CartChangeCustomLineItemMoneyAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CartChangeCustomLineItemMoneyAction copyDeep()- Specified by:
copyDeepin interfaceCartUpdateAction
-
deepCopy
@Nullable static CartChangeCustomLineItemMoneyAction deepCopy(@Nullable CartChangeCustomLineItemMoneyAction template) factory method to create a deep copy of CartChangeCustomLineItemMoneyAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartChangeCustomLineItemMoneyAction- Returns:
- builder
-
builder
static CartChangeCustomLineItemMoneyActionBuilder builder(CartChangeCustomLineItemMoneyAction template) create builder for CartChangeCustomLineItemMoneyAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCartChangeCustomLineItemMoneyAction
default <T> T withCartChangeCustomLineItemMoneyAction(Function<CartChangeCustomLineItemMoneyAction, 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<CartChangeCustomLineItemMoneyAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-