Interface StagedOrderChangeCustomLineItemMoneyAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>,StagedOrderUpdateAction
StagedOrderChangeCustomLineItemMoneyAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderChangeCustomLineItemMoneyAction stagedOrderChangeCustomLineItemMoneyAction = StagedOrderChangeCustomLineItemMoneyAction.builder()
.money(moneyBuilder -> moneyBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StagedOrderChangeCustomLineItemMoneyAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StagedOrderChangeCustomLineItemMoneyActioncreate builder for StagedOrderChangeCustomLineItemMoneyAction instancecopyDeep()factory method to create a deep copy of StagedOrderChangeCustomLineItemMoneyActionidof the CustomLineItem to update.keyof the CustomLineItem to update.@NotNull @Valid MoneygetMoney()Value to set.of()factory methodof(StagedOrderChangeCustomLineItemMoneyAction template) factory method to create a shallow copy StagedOrderChangeCustomLineItemMoneyActionvoidsetCustomLineItemId(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<StagedOrderChangeCustomLineItemMoneyAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithStagedOrderChangeCustomLineItemMoneyAction(Function<StagedOrderChangeCustomLineItemMoneyAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
getAction, withStagedOrderUpdateAction
-
Field Details
-
CHANGE_CUSTOM_LINE_ITEM_MONEY
discriminator value for StagedOrderChangeCustomLineItemMoneyAction- 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 StagedOrderChangeCustomLineItemMoneyAction
-
of
static StagedOrderChangeCustomLineItemMoneyAction of(StagedOrderChangeCustomLineItemMoneyAction template) factory method to create a shallow copy StagedOrderChangeCustomLineItemMoneyAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
StagedOrderChangeCustomLineItemMoneyAction copyDeep()- Specified by:
copyDeepin interfaceStagedOrderUpdateAction
-
deepCopy
@Nullable static StagedOrderChangeCustomLineItemMoneyAction deepCopy(@Nullable StagedOrderChangeCustomLineItemMoneyAction template) factory method to create a deep copy of StagedOrderChangeCustomLineItemMoneyAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderChangeCustomLineItemMoneyAction- Returns:
- builder
-
builder
static StagedOrderChangeCustomLineItemMoneyActionBuilder builder(StagedOrderChangeCustomLineItemMoneyAction template) create builder for StagedOrderChangeCustomLineItemMoneyAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderChangeCustomLineItemMoneyAction
default <T> T withStagedOrderChangeCustomLineItemMoneyAction(Function<StagedOrderChangeCustomLineItemMoneyAction, 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<StagedOrderChangeCustomLineItemMoneyAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-