Interface CustomLineItemReturnItem
- All Superinterfaces:
Customizable<ReturnItem>
,ReturnItem
CustomLineItemReturnItem
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomLineItemReturnItem customLineItemReturnItem = CustomLineItemReturnItem.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"))
.customLineItemId("{customLineItemId}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CustomLineItemReturnItem -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CustomLineItemReturnItembuilder
(CustomLineItemReturnItem template) create builder for CustomLineItemReturnItem instancestatic CustomLineItemReturnItem
deepCopy
(CustomLineItemReturnItem template) factory method to create a deep copy of CustomLineItemReturnItem@NotNull String
id
of the returned CustomLineItem.getKey()
User-defined unique identifier of the CustomLineItemReturnItem.@NotNull Long
Number of Custom Line Items returned.static CustomLineItemReturnItem
of()
factory methodstatic CustomLineItemReturnItem
of
(CustomLineItemReturnItem template) factory method to create a shallow copy CustomLineItemReturnItemvoid
setCustomLineItemId
(String customLineItemId) id
of the returned CustomLineItem.void
User-defined unique identifier of the CustomLineItemReturnItem.void
setQuantity
(Long quantity) Number of Custom Line Items returned.static com.fasterxml.jackson.core.type.TypeReference<CustomLineItemReturnItem>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
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
-
CUSTOM_LINE_ITEM_RETURN_ITEM
discriminator value for CustomLineItemReturnItem- See Also:
-
-
Method Details
-
getKey
String getKey()User-defined unique identifier of the CustomLineItemReturnItem.
- Specified by:
getKey
in interfaceReturnItem
- Returns:
- key
-
getCustomLineItemId
id
of the returned CustomLineItem.- Returns:
- customLineItemId
-
getQuantity
Number of Custom Line Items returned.
- Specified by:
getQuantity
in interfaceReturnItem
- Returns:
- quantity
-
setKey
User-defined unique identifier of the CustomLineItemReturnItem.
- Specified by:
setKey
in interfaceReturnItem
- Parameters:
key
- value to be set
-
setCustomLineItemId
id
of the returned CustomLineItem.- Parameters:
customLineItemId
- value to be set
-
setQuantity
Number of Custom Line Items returned.
- Specified by:
setQuantity
in interfaceReturnItem
- Parameters:
quantity
- value to be set
-
of
factory method- Returns:
- instance of CustomLineItemReturnItem
-
of
factory method to create a shallow copy CustomLineItemReturnItem- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CustomLineItemReturnItem- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomLineItemReturnItem- Returns:
- builder
-
builder
create builder for CustomLineItemReturnItem instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomLineItemReturnItem
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
-