Interface OrderSetCustomLineItemShippingDetailsAction
- All Superinterfaces:
OrderUpdateAction
,ResourceUpdateAction<OrderUpdateAction>
- All Known Implementing Classes:
OrderSetCustomLineItemShippingDetailsActionImpl
OrderSetCustomLineItemShippingDetailsAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderSetCustomLineItemShippingDetailsAction orderSetCustomLineItemShippingDetailsAction = OrderSetCustomLineItemShippingDetailsAction.builder()
.customLineItemId("{customLineItemId}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderSetCustomLineItemShippingDetailsAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderSetCustomLineItemShippingDetailsActioncreate builder for OrderSetCustomLineItemShippingDetailsAction instancefactory method to create a deep copy of OrderSetCustomLineItemShippingDetailsAction@NotNull String
@Valid ItemShippingDetailsDraft
For order creation and updates, the sum of thetargets
must match the quantity of the Line Items or Custom Line Items.of()
factory methodfactory method to create a shallow copy OrderSetCustomLineItemShippingDetailsActionvoid
setCustomLineItemId
(String customLineItemId) set customLineItemIdvoid
setShippingDetails
(ItemShippingDetailsDraft shippingDetails) For order creation and updates, the sum of thetargets
must match the quantity of the Line Items or Custom Line Items.static com.fasterxml.jackson.core.type.TypeReference<OrderSetCustomLineItemShippingDetailsAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withOrderSetCustomLineItemShippingDetailsAction
(Function<OrderSetCustomLineItemShippingDetailsAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.order.OrderUpdateAction
getAction, withOrderUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_CUSTOM_LINE_ITEM_SHIPPING_DETAILS
discriminator value for OrderSetCustomLineItemShippingDetailsAction- See Also:
-
-
Method Details
-
getCustomLineItemId
- Returns:
- customLineItemId
-
getShippingDetails
For order creation and updates, the sum of the
targets
must match the quantity of the Line Items or Custom Line Items.- Returns:
- shippingDetails
-
setCustomLineItemId
set customLineItemId- Parameters:
customLineItemId
- value to be set
-
setShippingDetails
For order creation and updates, the sum of the
targets
must match the quantity of the Line Items or Custom Line Items.- Parameters:
shippingDetails
- value to be set
-
of
factory method- Returns:
- instance of OrderSetCustomLineItemShippingDetailsAction
-
of
static OrderSetCustomLineItemShippingDetailsAction of(OrderSetCustomLineItemShippingDetailsAction template) factory method to create a shallow copy OrderSetCustomLineItemShippingDetailsAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static OrderSetCustomLineItemShippingDetailsAction deepCopy(@Nullable OrderSetCustomLineItemShippingDetailsAction template) factory method to create a deep copy of OrderSetCustomLineItemShippingDetailsAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderSetCustomLineItemShippingDetailsAction- Returns:
- builder
-
builder
static OrderSetCustomLineItemShippingDetailsActionBuilder builder(OrderSetCustomLineItemShippingDetailsAction template) create builder for OrderSetCustomLineItemShippingDetailsAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderSetCustomLineItemShippingDetailsAction
default <T> T withOrderSetCustomLineItemShippingDetailsAction(Function<OrderSetCustomLineItemShippingDetailsAction, 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<OrderSetCustomLineItemShippingDetailsAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-