Interface OrderField
public interface OrderField
Order fields that needs to be added or updated.
Example to create an instance using the builder pattern
OrderField orderField = OrderField.builder()
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic OrderFieldBuilder
builder()
builder factory method for OrderFieldstatic OrderFieldBuilder
builder
(OrderField template) create builder for OrderField instancestatic OrderField
deepCopy
(OrderField template) factory method to create a deep copy of OrderField@Valid List<DeliveryDraft>
Maps toOrder.delivery
@Valid DeliveryParcel
Maps toOrder.delivery
@Valid ReturnInfo
Maps toOrder.returnInfo
@Valid RemoveDeliveryDraft
Maps toOrder.removeDelivery
Maps toOrder.removeParcelFromDelivery
@Valid DeliveryAddressDraft
Maps toOrder.addressDraft
@Valid List<ParcelItems>
Maps toOrder.parcelItems
@Valid ParcelMeasurementDraft
Maps toOrder.parcelMeasurements
@Valid ParcelTrackingData
Maps toOrder.parcelTrackingData
static OrderField
of()
factory methodstatic OrderField
of
(OrderField template) factory method to create a shallow copy OrderFieldvoid
setAddDeliveries
(DeliveryDraft... addDeliveries) Maps toOrder.delivery
void
setAddDeliveries
(List<DeliveryDraft> addDeliveries) Maps toOrder.delivery
void
setAddParcelToDelivery
(DeliveryParcel addParcelToDelivery) Maps toOrder.delivery
void
setAddReturnInfo
(ReturnInfo addReturnInfo) Maps toOrder.returnInfo
void
setRemoveDelivery
(RemoveDeliveryDraft removeDelivery) Maps toOrder.removeDelivery
void
setRemoveParcelFromDelivery
(RemoveParcelFromDeliveryDraft removeParcelFromDelivery) Maps toOrder.removeParcelFromDelivery
void
setSetDeliveryAddress
(DeliveryAddressDraft setDeliveryAddress) Maps toOrder.addressDraft
void
setSetParcelItems
(ParcelItems... setParcelItems) Maps toOrder.parcelItems
void
setSetParcelItems
(List<ParcelItems> setParcelItems) Maps toOrder.parcelItems
void
setSetParcelMeasurements
(ParcelMeasurementDraft setParcelMeasurements) Maps toOrder.parcelMeasurements
void
setSetParcelTrackingData
(ParcelTrackingData setParcelTrackingData) Maps toOrder.parcelTrackingData
static com.fasterxml.jackson.core.type.TypeReference<OrderField>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withOrderField
(Function<OrderField, T> helper) accessor map function
-
Method Details
-
getAddReturnInfo
Maps to
Order.returnInfo
- Returns:
- addReturnInfo
-
getAddParcelToDelivery
Maps to
Order.delivery
- Returns:
- addParcelToDelivery
-
getAddDeliveries
Maps to
Order.delivery
- Returns:
- addDeliveries
-
getRemoveDelivery
Maps to
Order.removeDelivery
- Returns:
- removeDelivery
-
getRemoveParcelFromDelivery
Maps to
Order.removeParcelFromDelivery
- Returns:
- removeParcelFromDelivery
-
getSetDeliveryAddress
Maps to
Order.addressDraft
- Returns:
- setDeliveryAddress
-
getSetParcelMeasurements
Maps to
Order.parcelMeasurements
- Returns:
- setParcelMeasurements
-
getSetParcelTrackingData
Maps to
Order.parcelTrackingData
- Returns:
- setParcelTrackingData
-
getSetParcelItems
Maps to
Order.parcelItems
- Returns:
- setParcelItems
-
setAddReturnInfo
Maps to
Order.returnInfo
- Parameters:
addReturnInfo
- value to be set
-
setAddParcelToDelivery
Maps to
Order.delivery
- Parameters:
addParcelToDelivery
- value to be set
-
setAddDeliveries
Maps to
Order.delivery
- Parameters:
addDeliveries
- values to be set
-
setAddDeliveries
Maps to
Order.delivery
- Parameters:
addDeliveries
- values to be set
-
setRemoveDelivery
Maps to
Order.removeDelivery
- Parameters:
removeDelivery
- value to be set
-
setRemoveParcelFromDelivery
Maps to
Order.removeParcelFromDelivery
- Parameters:
removeParcelFromDelivery
- value to be set
-
setSetDeliveryAddress
Maps to
Order.addressDraft
- Parameters:
setDeliveryAddress
- value to be set
-
setSetParcelMeasurements
Maps to
Order.parcelMeasurements
- Parameters:
setParcelMeasurements
- value to be set
-
setSetParcelTrackingData
Maps to
Order.parcelTrackingData
- Parameters:
setParcelTrackingData
- value to be set
-
setSetParcelItems
Maps to
Order.parcelItems
- Parameters:
setParcelItems
- values to be set
-
setSetParcelItems
Maps to
Order.parcelItems
- Parameters:
setParcelItems
- values to be set
-
of
factory method- Returns:
- instance of OrderField
-
of
factory method to create a shallow copy OrderField- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of OrderField- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderField- Returns:
- builder
-
builder
create builder for OrderField instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderField
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
-