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
-
Method Summary
Modifier and TypeMethodDescriptionstatic LineItemReturnItemBuilder
builder()
builder factory method for LineItemReturnItemstatic LineItemReturnItemBuilder
builder
(LineItemReturnItem template) create builder for LineItemReturnItem instancestatic LineItemReturnItem
deepCopy
(LineItemReturnItem template) factory method to create a deep copy of LineItemReturnItemgetKey()
User-defined unique identifier of the LineItemReturnItem.@NotNull String
id
of the returned LineItem.@NotNull Long
Number of Line Items returned.static LineItemReturnItem
of()
factory methodstatic LineItemReturnItem
of
(LineItemReturnItem template) factory method to create a shallow copy LineItemReturnItemvoid
User-defined unique identifier of the LineItemReturnItem.void
setLineItemId
(String lineItemId) id
of the returned LineItem.void
setQuantity
(Long quantity) Number of Line Items returned.static com.fasterxml.jackson.core.type.TypeReference<LineItemReturnItem>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withLineItemReturnItem
(Function<LineItemReturnItem, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.Customizable
unwrapCustomizable
Methods 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:
getKey
in interfaceReturnItem
- Returns:
- key
-
getLineItemId
id
of the returned LineItem.- Returns:
- lineItemId
-
getQuantity
Number of Line Items returned.
- Specified by:
getQuantity
in interfaceReturnItem
- Returns:
- quantity
-
setKey
User-defined unique identifier of the LineItemReturnItem.
- Specified by:
setKey
in interfaceReturnItem
- Parameters:
key
- value to be set
-
setLineItemId
id
of the returned LineItem.- Parameters:
lineItemId
- value to be set
-
setQuantity
Number of Line Items returned.
- Specified by:
setQuantity
in 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
-
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
-