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 String
discriminator value for StagedOrderChangeCustomLineItemMoneyAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderChangeCustomLineItemMoneyActioncreate builder for StagedOrderChangeCustomLineItemMoneyAction instancefactory method to create a deep copy of StagedOrderChangeCustomLineItemMoneyActionid
of the CustomLineItem to update.key
of the CustomLineItem to update.@NotNull @Valid Money
getMoney()
Value to set.of()
factory methodof
(StagedOrderChangeCustomLineItemMoneyAction template) factory method to create a shallow copy StagedOrderChangeCustomLineItemMoneyActionvoid
setCustomLineItemId
(String customLineItemId) id
of the CustomLineItem to update.void
setCustomLineItemKey
(String customLineItemKey) key
of the CustomLineItem to update.void
Value to set.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderChangeCustomLineItemMoneyAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStagedOrderChangeCustomLineItemMoneyAction
(Function<StagedOrderChangeCustomLineItemMoneyAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods 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()id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Returns:
- customLineItemId
-
getCustomLineItemKey
String getCustomLineItemKey()key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Returns:
- customLineItemKey
-
getMoney
Value to set. Must not be empty. Can be a negative amount.
- Returns:
- money
-
setCustomLineItemId
id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemId
- value to be set
-
setCustomLineItemKey
key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemKey
- value to be set
-
setMoney
Value to set. Must not be empty. Can be a negative amount.
- 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
-
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
-