Interface OrderSetLineItemShippingDetailsAction
- All Superinterfaces:
OrderUpdateAction,ResourceUpdateAction<OrderUpdateAction>
OrderSetLineItemShippingDetailsAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderSetLineItemShippingDetailsAction orderSetLineItemShippingDetailsAction = OrderSetLineItemShippingDetailsAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for OrderSetLineItemShippingDetailsAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for OrderSetLineItemShippingDetailsActionbuilder(OrderSetLineItemShippingDetailsAction template) create builder for OrderSetLineItemShippingDetailsAction instancecopyDeep()factory method to create a deep copy of OrderSetLineItemShippingDetailsActionidof the LineItem to update.keyof the LineItem to update.@Valid ItemShippingDetailsDraftValue to set.of()factory methodof(OrderSetLineItemShippingDetailsAction template) factory method to create a shallow copy OrderSetLineItemShippingDetailsActionvoidsetLineItemId(String lineItemId) idof the LineItem to update.voidsetLineItemKey(String lineItemKey) keyof the LineItem to update.voidsetShippingDetails(ItemShippingDetailsDraft shippingDetails) Value to set.static com.fasterxml.jackson.core.type.TypeReference<OrderSetLineItemShippingDetailsAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.order.OrderUpdateAction
getAction, withOrderUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_LINE_ITEM_SHIPPING_DETAILS
discriminator value for OrderSetLineItemShippingDetailsAction- See Also:
-
-
Method Details
-
getLineItemId
String getLineItemId()idof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- lineItemId
-
getLineItemKey
String getLineItemKey()keyof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- lineItemKey
-
getShippingDetails
Value to set. If empty, the existing value is removed.
- Returns:
- shippingDetails
-
setLineItemId
idof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
lineItemId- value to be set
-
setLineItemKey
keyof the LineItem to update. EitherlineItemIdorlineItemKeyis 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 OrderSetLineItemShippingDetailsAction
-
of
factory method to create a shallow copy OrderSetLineItemShippingDetailsAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
OrderSetLineItemShippingDetailsAction copyDeep()- Specified by:
copyDeepin interfaceOrderUpdateAction
-
deepCopy
@Nullable static OrderSetLineItemShippingDetailsAction deepCopy(@Nullable OrderSetLineItemShippingDetailsAction template) factory method to create a deep copy of OrderSetLineItemShippingDetailsAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderSetLineItemShippingDetailsAction- Returns:
- builder
-
builder
static OrderSetLineItemShippingDetailsActionBuilder builder(OrderSetLineItemShippingDetailsAction template) create builder for OrderSetLineItemShippingDetailsAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withOrderSetLineItemShippingDetailsAction
default <T> T withOrderSetLineItemShippingDetailsAction(Function<OrderSetLineItemShippingDetailsAction, 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<OrderSetLineItemShippingDetailsAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-