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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CustomLineItemReturnItem -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CustomLineItemReturnItembuilder(CustomLineItemReturnItem template) create builder for CustomLineItemReturnItem instancecopyDeep()static CustomLineItemReturnItemdeepCopy(CustomLineItemReturnItem template) factory method to create a deep copy of CustomLineItemReturnItem@NotNull Stringidof the returned CustomLineItem.getKey()User-defined unique identifier of the CustomLineItemReturnItem.@NotNull LongNumber of Custom Line Items returned.static CustomLineItemReturnItemof()factory methodstatic CustomLineItemReturnItemof(CustomLineItemReturnItem template) factory method to create a shallow copy CustomLineItemReturnItemvoidsetCustomLineItemId(String customLineItemId) idof the returned CustomLineItem.voidUser-defined unique identifier of the CustomLineItemReturnItem.voidsetQuantity(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> Taccessor 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
-
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:
getKeyin interfaceReturnItem- Returns:
- key
-
getCustomLineItemId
idof the returned CustomLineItem.- Returns:
- customLineItemId
-
getQuantity
Number of Custom Line Items returned.
- Specified by:
getQuantityin interfaceReturnItem- Returns:
- quantity
-
setKey
User-defined unique identifier of the CustomLineItemReturnItem.
- Specified by:
setKeyin interfaceReturnItem- Parameters:
key- value to be set
-
setCustomLineItemId
idof the returned CustomLineItem.- Parameters:
customLineItemId- value to be set
-
setQuantity
Number of Custom Line Items returned.
- Specified by:
setQuantityin 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
-
copyDeep
CustomLineItemReturnItem copyDeep()- Specified by:
copyDeepin interfaceReturnItem
-
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
-