Class DeliveryDraftImpl
java.lang.Object
com.commercetools.api.models.order.DeliveryDraftImpl
- All Implemented Interfaces:
CustomizableDraft<DeliveryDraft>
,DeliveryDraft
,io.vrap.rmf.base.client.Draft<DeliveryDraft>
,io.vrap.rmf.base.client.ModelBase
public class DeliveryDraftImpl
extends Object
implements DeliveryDraft, io.vrap.rmf.base.client.ModelBase
DeliveryDraft
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Custom Fields for the Transaction.getItems()
Items which are shipped in this delivery regardless their distribution over several parcels.getKey()
User-defined unique identifier of the Delivery.int
hashCode()
void
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 parcelsMethods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.CustomizableDraft
unwrapCustomizableDraft
Methods inherited from interface com.commercetools.api.models.order.DeliveryDraft
withDeliveryDraft
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
DeliveryDraftImpl
public DeliveryDraftImpl()create empty instance
-
-
Method Details
-
getKey
User-defined unique identifier of the Delivery.
- Specified by:
getKey
in interfaceDeliveryDraft
- Returns:
- key
-
getItems
Items which are shipped in this delivery regardless their distribution over several parcels. Can also be specified individually for each Parcel.
- Specified by:
getItems
in interfaceDeliveryDraft
- Returns:
- items
-
getParcels
- Specified by:
getParcels
in interfaceDeliveryDraft
- Returns:
- parcels
-
getAddress
- Specified by:
getAddress
in interfaceDeliveryDraft
- Returns:
- address
-
getCustom
Custom Fields for the Transaction.
- Specified by:
getCustom
in interfaceCustomizableDraft<DeliveryDraft>
- Specified by:
getCustom
in interfaceDeliveryDraft
- Returns:
- custom
-
setKey
Description copied from interface:DeliveryDraft
User-defined unique identifier of the Delivery.
- Specified by:
setKey
in interfaceDeliveryDraft
- Parameters:
key
- value to be set
-
setItems
Description copied from interface:DeliveryDraft
Items which are shipped in this delivery regardless their distribution over several parcels. Can also be specified individually for each Parcel.
- Specified by:
setItems
in interfaceDeliveryDraft
- Parameters:
items
- values to be set
-
setItems
Description copied from interface:DeliveryDraft
Items which are shipped in this delivery regardless their distribution over several parcels. Can also be specified individually for each Parcel.
- Specified by:
setItems
in interfaceDeliveryDraft
- Parameters:
items
- values to be set
-
setParcels
Description copied from interface:DeliveryDraft
set parcels- Specified by:
setParcels
in interfaceDeliveryDraft
- Parameters:
parcels
- values to be set
-
setParcels
Description copied from interface:DeliveryDraft
set parcels- Specified by:
setParcels
in interfaceDeliveryDraft
- Parameters:
parcels
- values to be set
-
setAddress
Description copied from interface:DeliveryDraft
set address- Specified by:
setAddress
in interfaceDeliveryDraft
- Parameters:
address
- value to be set
-
setCustom
Description copied from interface:DeliveryDraft
Custom Fields for the Transaction.
- Specified by:
setCustom
in interfaceCustomizableDraft<DeliveryDraft>
- Specified by:
setCustom
in interfaceDeliveryDraft
- Parameters:
custom
- value to be set
-
equals
-
hashCode
-