Interface StagedOrderChangeCustomLineItemQuantityAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
- All Known Implementing Classes:
StagedOrderChangeCustomLineItemQuantityActionImpl
StagedOrderChangeCustomLineItemQuantityAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderChangeCustomLineItemQuantityAction stagedOrderChangeCustomLineItemQuantityAction = StagedOrderChangeCustomLineItemQuantityAction.builder()
.customLineItemId("{customLineItemId}")
.quantity(0.3)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderChangeCustomLineItemQuantityAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderChangeCustomLineItemQuantityActioncreate builder for StagedOrderChangeCustomLineItemQuantityAction instancefactory method to create a deep copy of StagedOrderChangeCustomLineItemQuantityAction@NotNull String
@NotNull Long
of()
factory methodfactory method to create a shallow copy StagedOrderChangeCustomLineItemQuantityActionvoid
setCustomLineItemId
(String customLineItemId) set customLineItemIdvoid
setQuantity
(Long quantity) set quantitystatic com.fasterxml.jackson.core.type.TypeReference<StagedOrderChangeCustomLineItemQuantityAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStagedOrderChangeCustomLineItemQuantityAction
(Function<StagedOrderChangeCustomLineItemQuantityAction, 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_QUANTITY
discriminator value for StagedOrderChangeCustomLineItemQuantityAction- See Also:
-
-
Method Details
-
getCustomLineItemId
- Returns:
- customLineItemId
-
getQuantity
- Returns:
- quantity
-
setCustomLineItemId
set customLineItemId- Parameters:
customLineItemId
- value to be set
-
setQuantity
set quantity- Parameters:
quantity
- value to be set
-
of
factory method- Returns:
- instance of StagedOrderChangeCustomLineItemQuantityAction
-
of
static StagedOrderChangeCustomLineItemQuantityAction of(StagedOrderChangeCustomLineItemQuantityAction template) factory method to create a shallow copy StagedOrderChangeCustomLineItemQuantityAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderChangeCustomLineItemQuantityAction deepCopy(@Nullable StagedOrderChangeCustomLineItemQuantityAction template) factory method to create a deep copy of StagedOrderChangeCustomLineItemQuantityAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderChangeCustomLineItemQuantityAction- Returns:
- builder
-
builder
static StagedOrderChangeCustomLineItemQuantityActionBuilder builder(StagedOrderChangeCustomLineItemQuantityAction template) create builder for StagedOrderChangeCustomLineItemQuantityAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderChangeCustomLineItemQuantityAction
default <T> T withStagedOrderChangeCustomLineItemQuantityAction(Function<StagedOrderChangeCustomLineItemQuantityAction, 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<StagedOrderChangeCustomLineItemQuantityAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-