Interface CartSetLineItemShippingDetailsAction
- All Superinterfaces:
CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
CartSetLineItemShippingDetailsAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartSetLineItemShippingDetailsAction cartSetLineItemShippingDetailsAction = CartSetLineItemShippingDetailsAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartSetLineItemShippingDetailsAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartSetLineItemShippingDetailsActionbuilder
(CartSetLineItemShippingDetailsAction template) create builder for CartSetLineItemShippingDetailsAction instancedeepCopy
(CartSetLineItemShippingDetailsAction template) factory method to create a deep copy of CartSetLineItemShippingDetailsActionid
of the LineItem to update.key
of the LineItem to update.@Valid ItemShippingDetailsDraft
Value to set.of()
factory methodof
(CartSetLineItemShippingDetailsAction template) factory method to create a shallow copy CartSetLineItemShippingDetailsActionvoid
setLineItemId
(String lineItemId) id
of the LineItem to update.void
setLineItemKey
(String lineItemKey) key
of the LineItem to update.void
setShippingDetails
(ItemShippingDetailsDraft shippingDetails) Value to set.static com.fasterxml.jackson.core.type.TypeReference<CartSetLineItemShippingDetailsAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_LINE_ITEM_SHIPPING_DETAILS
discriminator value for CartSetLineItemShippingDetailsAction- See Also:
-
-
Method Details
-
getLineItemId
String getLineItemId()id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- lineItemId
-
getLineItemKey
String getLineItemKey()key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- lineItemKey
-
getShippingDetails
Value to set. If empty, the existing value is removed.
- Returns:
- shippingDetails
-
setLineItemId
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemId
- value to be set
-
setLineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemKey
- value to be set
-
setShippingDetails
Value to set. If empty, the existing value is removed.
- Parameters:
shippingDetails
- value to be set
-
of
factory method- Returns:
- instance of CartSetLineItemShippingDetailsAction
-
of
factory method to create a shallow copy CartSetLineItemShippingDetailsAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CartSetLineItemShippingDetailsAction deepCopy(@Nullable CartSetLineItemShippingDetailsAction template) factory method to create a deep copy of CartSetLineItemShippingDetailsAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartSetLineItemShippingDetailsAction- Returns:
- builder
-
builder
static CartSetLineItemShippingDetailsActionBuilder builder(CartSetLineItemShippingDetailsAction template) create builder for CartSetLineItemShippingDetailsAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartSetLineItemShippingDetailsAction
default <T> T withCartSetLineItemShippingDetailsAction(Function<CartSetLineItemShippingDetailsAction, 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<CartSetLineItemShippingDetailsAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-