Interface ReturnItemDraft
- All Superinterfaces:
Draft<ReturnItemDraft>
ReturnItemDraft
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ReturnItemDraft returnItemDraft = ReturnItemDraft.builder()
.quantity(0.3)
.shipmentState(ReturnShipmentState.ADVISED)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ReturnItemDraftBuilder
builder()
builder factory method for ReturnItemDraftstatic ReturnItemDraftBuilder
builder
(ReturnItemDraft template) create builder for ReturnItemDraft instancestatic ReturnItemDraft
deepCopy
(ReturnItemDraft template) factory method to create a deep copy of ReturnItemDraft@NotNull Long
@NotNull ReturnShipmentState
Maps toReturnItem.shipmentState
static ReturnItemDraft
of()
factory methodstatic ReturnItemDraft
of
(ReturnItemDraft template) factory method to create a shallow copy ReturnItemDraftvoid
setComment
(String comment) set commentvoid
setCustomLineItemId
(String customLineItemId) set customLineItemIdvoid
setLineItemId
(String lineItemId) set lineItemIdvoid
setQuantity
(Long quantity) set quantityvoid
setShipmentState
(ReturnShipmentState shipmentState) Maps toReturnItem.shipmentState
static com.fasterxml.jackson.core.type.TypeReference<ReturnItemDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withReturnItemDraft
(Function<ReturnItemDraft, T> helper) accessor map function
-
Method Details
-
getQuantity
- Returns:
- quantity
-
getLineItemId
String getLineItemId()- Returns:
- lineItemId
-
getCustomLineItemId
String getCustomLineItemId()- Returns:
- customLineItemId
-
getComment
String getComment()- Returns:
- comment
-
getShipmentState
Maps to
ReturnItem.shipmentState
- Returns:
- shipmentState
-
setQuantity
set quantity- Parameters:
quantity
- value to be set
-
setLineItemId
set lineItemId- Parameters:
lineItemId
- value to be set
-
setCustomLineItemId
set customLineItemId- Parameters:
customLineItemId
- value to be set
-
setComment
set comment- Parameters:
comment
- value to be set
-
setShipmentState
Maps to
ReturnItem.shipmentState
- Parameters:
shipmentState
- value to be set
-
of
factory method- Returns:
- instance of ReturnItemDraft
-
of
factory method to create a shallow copy ReturnItemDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ReturnItemDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ReturnItemDraft- Returns:
- builder
-
builder
create builder for ReturnItemDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withReturnItemDraft
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
-