Interface LineItemReturnItem
- All Superinterfaces:
Customizable<ReturnItem>,ReturnItem
LineItemReturnItem
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
LineItemReturnItem lineItemReturnItem = LineItemReturnItem.builder()
.id("{id}")
.quantity(0.3)
.shipmentState(ReturnShipmentState.ADVISED)
.paymentState(ReturnPaymentState.NON_REFUNDABLE)
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lineItemId("{lineItemId}")
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic LineItemReturnItemBuilderbuilder()builder factory method for LineItemReturnItemstatic LineItemReturnItemBuilderbuilder(LineItemReturnItem template) create builder for LineItemReturnItem instancecopyDeep()static LineItemReturnItemdeepCopy(LineItemReturnItem template) factory method to create a deep copy of LineItemReturnItemgetKey()User-defined unique identifier of the LineItemReturnItem.@NotNull Stringidof the returned LineItem.@NotNull LongNumber of Line Items returned.static LineItemReturnItemof()factory methodstatic LineItemReturnItemof(LineItemReturnItem template) factory method to create a shallow copy LineItemReturnItemvoidUser-defined unique identifier of the LineItemReturnItem.voidsetLineItemId(String lineItemId) idof the returned LineItem.voidsetQuantity(Long quantity) Number of Line Items returned.static com.fasterxml.jackson.core.type.TypeReference<LineItemReturnItem>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithLineItemReturnItem(Function<LineItemReturnItem, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.Customizable
unwrapCustomizableMethods inherited from interface com.commercetools.api.models.order.ReturnItem
getComment, getCreatedAt, getCustom, getId, getLastModifiedAt, getPaymentState, getShipmentState, getType, setComment, setCreatedAt, setCustom, setId, setLastModifiedAt, setPaymentState, setShipmentState, withReturnItem
-
Field Details
-
LINE_ITEM_RETURN_ITEM
discriminator value for LineItemReturnItem- See Also:
-
-
Method Details
-
getKey
String getKey()User-defined unique identifier of the LineItemReturnItem.
- Specified by:
getKeyin interfaceReturnItem- Returns:
- key
-
getLineItemId
idof the returned LineItem.- Returns:
- lineItemId
-
getQuantity
Number of Line Items returned.
- Specified by:
getQuantityin interfaceReturnItem- Returns:
- quantity
-
setKey
User-defined unique identifier of the LineItemReturnItem.
- Specified by:
setKeyin interfaceReturnItem- Parameters:
key- value to be set
-
setLineItemId
idof the returned LineItem.- Parameters:
lineItemId- value to be set
-
setQuantity
Number of Line Items returned.
- Specified by:
setQuantityin interfaceReturnItem- Parameters:
quantity- value to be set
-
of
factory method- Returns:
- instance of LineItemReturnItem
-
of
factory method to create a shallow copy LineItemReturnItem- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
LineItemReturnItem copyDeep()- Specified by:
copyDeepin interfaceReturnItem
-
deepCopy
factory method to create a deep copy of LineItemReturnItem- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for LineItemReturnItem- Returns:
- builder
-
builder
create builder for LineItemReturnItem instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withLineItemReturnItem
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-