Interface OrderSetCustomLineItemShippingDetailsAction
- All Superinterfaces:
OrderUpdateAction,ResourceUpdateAction<OrderUpdateAction>
OrderSetCustomLineItemShippingDetailsAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderSetCustomLineItemShippingDetailsAction orderSetCustomLineItemShippingDetailsAction = OrderSetCustomLineItemShippingDetailsAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for OrderSetCustomLineItemShippingDetailsAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for OrderSetCustomLineItemShippingDetailsActioncreate builder for OrderSetCustomLineItemShippingDetailsAction instancecopyDeep()factory method to create a deep copy of OrderSetCustomLineItemShippingDetailsActionidof the CustomLineItem to update.keyof the CustomLineItem to update.@Valid ItemShippingDetailsDraftValue to set.of()factory methodfactory method to create a shallow copy OrderSetCustomLineItemShippingDetailsActionvoidsetCustomLineItemId(String customLineItemId) idof the CustomLineItem to update.voidsetCustomLineItemKey(String customLineItemKey) keyof the CustomLineItem to update.voidsetShippingDetails(ItemShippingDetailsDraft shippingDetails) Value to set.static com.fasterxml.jackson.core.type.TypeReference<OrderSetCustomLineItemShippingDetailsAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithOrderSetCustomLineItemShippingDetailsAction(Function<OrderSetCustomLineItemShippingDetailsAction, T> helper) accessor 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_CUSTOM_LINE_ITEM_SHIPPING_DETAILS
discriminator value for OrderSetCustomLineItemShippingDetailsAction- See Also:
-
-
Method Details
-
getCustomLineItemId
String getCustomLineItemId()idof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Returns:
- customLineItemId
-
getCustomLineItemKey
String getCustomLineItemKey()keyof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Returns:
- customLineItemKey
-
getShippingDetails
Value to set. If empty, any existing value is removed.
- Returns:
- shippingDetails
-
setCustomLineItemId
idof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Parameters:
customLineItemId- value to be set
-
setCustomLineItemKey
keyof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Parameters:
customLineItemKey- value to be set
-
setShippingDetails
Value to set. If empty, any existing value is removed.
- 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
-
copyDeep
OrderSetCustomLineItemShippingDetailsAction copyDeep()- Specified by:
copyDeepin interfaceOrderUpdateAction
-
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
-