Interface ReturnItem
public interface ReturnItem
ReturnItem
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ReturnItem returnItem = ReturnItem.builder()
.id("{id}")
.quantity(1)
.type("{type}")
.comment("{comment}")
.shipmentState(ReturnShipmentState.ADVISED)
.paymentState(ReturnPaymentState.NON_REFUNDABLE)
.lastModifiedAt("{lastModifiedAt}")
.createdAt("{createdAt}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ReturnItemBuilder
builder()
builder factory method for ReturnItemstatic ReturnItemBuilder
builder
(ReturnItem template) create builder for ReturnItem instancestatic ReturnItem
deepCopy
(ReturnItem template) factory method to create a deep copy of ReturnItem@NotNull String
@NotNull String
@NotNull String
getId()
@NotNull String
@NotNull ReturnPaymentState
@NotNull Integer
@NotNull ReturnShipmentState
@NotNull String
getType()
static ReturnItem
of()
factory methodstatic ReturnItem
of
(ReturnItem template) factory method to create a shallow copy ReturnItemvoid
setComment
(String comment) set commentvoid
setCreatedAt
(String createdAt) set createdAtvoid
set idvoid
setLastModifiedAt
(String lastModifiedAt) set lastModifiedAtvoid
setPaymentState
(ReturnPaymentState paymentState) set paymentStatevoid
setQuantity
(Integer quantity) set quantityvoid
setShipmentState
(ReturnShipmentState shipmentState) set shipmentStatevoid
set typestatic com.fasterxml.jackson.core.type.TypeReference<ReturnItem>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withReturnItem
(Function<ReturnItem, T> helper) accessor map function
-
Method Details
-
getId
- Returns:
- id
-
getQuantity
- Returns:
- quantity
-
getType
- Returns:
- type
-
getComment
- Returns:
- comment
-
getShipmentState
- Returns:
- shipmentState
-
getPaymentState
- Returns:
- paymentState
-
getLastModifiedAt
- Returns:
- lastModifiedAt
-
getCreatedAt
- Returns:
- createdAt
-
setId
set id- Parameters:
id
- value to be set
-
setQuantity
set quantity- Parameters:
quantity
- value to be set
-
setType
set type- Parameters:
type
- value to be set
-
setComment
set comment- Parameters:
comment
- value to be set
-
setShipmentState
set shipmentState- Parameters:
shipmentState
- value to be set
-
setPaymentState
set paymentState- Parameters:
paymentState
- value to be set
-
setLastModifiedAt
set lastModifiedAt- Parameters:
lastModifiedAt
- value to be set
-
setCreatedAt
set createdAt- Parameters:
createdAt
- value to be set
-
of
factory method- Returns:
- instance of ReturnItem
-
of
factory method to create a shallow copy ReturnItem- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ReturnItem- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ReturnItem- Returns:
- builder
-
builder
create builder for ReturnItem instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withReturnItem
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
-