Interface DeliveryDraft
- All Superinterfaces:
CustomizableDraft<DeliveryDraft>
,io.vrap.rmf.base.client.Draft<DeliveryDraft>
- All Known Implementing Classes:
DeliveryDraftImpl
public interface DeliveryDraft
extends CustomizableDraft<DeliveryDraft>, io.vrap.rmf.base.client.Draft<DeliveryDraft>
DeliveryDraft
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DeliveryDraft deliveryDraft = DeliveryDraft.builder()
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic DeliveryDraftBuilder
builder()
builder factory method for DeliveryDraftstatic DeliveryDraftBuilder
builder
(DeliveryDraft template) create builder for DeliveryDraft instancestatic DeliveryDraft
deepCopy
(DeliveryDraft template) factory method to create a deep copy of DeliveryDraft@Valid AddressDraft
@Valid CustomFieldsDraft
Custom Fields for the Transaction.@Valid List<DeliveryItem>
getItems()
Items which are shipped in this delivery regardless their distribution over several parcels.getKey()
User-defined unique identifier of the Delivery.@Valid List<ParcelDraft>
static DeliveryDraft
of()
factory methodstatic DeliveryDraft
of
(DeliveryDraft template) factory method to create a shallow copy DeliveryDraftvoid
setAddress
(AddressDraft address) set addressvoid
setCustom
(CustomFieldsDraft custom) Custom Fields for the Transaction.void
setItems
(DeliveryItem... items) Items which are shipped in this delivery regardless their distribution over several parcels.void
setItems
(List<DeliveryItem> items) Items which are shipped in this delivery regardless their distribution over several parcels.void
User-defined unique identifier of the Delivery.void
setParcels
(ParcelDraft... parcels) set parcelsvoid
setParcels
(List<ParcelDraft> parcels) set parcelsstatic com.fasterxml.jackson.core.type.TypeReference<DeliveryDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withDeliveryDraft
(Function<DeliveryDraft, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.CustomizableDraft
unwrapCustomizableDraft
-
Method Details
-
getKey
User-defined unique identifier of the Delivery.
- Returns:
- key
-
getItems
Items which are shipped in this delivery regardless their distribution over several parcels. Can also be specified individually for each Parcel.
- Returns:
- items
-
getParcels
- Returns:
- parcels
-
getAddress
- Returns:
- address
-
getCustom
Custom Fields for the Transaction.
- Specified by:
getCustom
in interfaceCustomizableDraft<DeliveryDraft>
- Returns:
- custom
-
setKey
User-defined unique identifier of the Delivery.
- Parameters:
key
- value to be set
-
setItems
Items which are shipped in this delivery regardless their distribution over several parcels. Can also be specified individually for each Parcel.
- Parameters:
items
- values to be set
-
setItems
Items which are shipped in this delivery regardless their distribution over several parcels. Can also be specified individually for each Parcel.
- Parameters:
items
- values to be set
-
setParcels
set parcels- Parameters:
parcels
- values to be set
-
setParcels
set parcels- Parameters:
parcels
- values to be set
-
setAddress
set address- Parameters:
address
- value to be set
-
setCustom
Custom Fields for the Transaction.
- Specified by:
setCustom
in interfaceCustomizableDraft<DeliveryDraft>
- Parameters:
custom
- value to be set
-
of
factory method- Returns:
- instance of DeliveryDraft
-
of
factory method to create a shallow copy DeliveryDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of DeliveryDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DeliveryDraft- Returns:
- builder
-
builder
create builder for DeliveryDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDeliveryDraft
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
-