Class DeliveryDraftImpl
- All Implemented Interfaces:
CustomizableDraft<DeliveryDraft>
,DeliveryDraft
,io.vrap.rmf.base.client.Draft<DeliveryDraft>
,io.vrap.rmf.base.client.ModelBase
-
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
Address to which the Parcels are delivered.Custom Fields for the Delivery.getItems()
Line Items or Custom Line Items to deliver.getKey()
User-defined unique identifier of the Delivery.Information regarding the appearance, content, and shipment of a parcel.int
hashCode()
void
setAddress
(AddressDraft address) Address to which the Parcels are delivered.void
setCustom
(CustomFieldsDraft custom) Custom Fields for the Delivery.void
setItems
(DeliveryItem... items) Line Items or Custom Line Items to deliver.void
setItems
(List<DeliveryItem> items) Line Items or Custom Line Items to deliver.void
User-defined unique identifier of the Delivery.void
setParcels
(ParcelDraft... parcels) Information regarding the appearance, content, and shipment of a parcel.void
setParcels
(List<ParcelDraft> parcels) Information regarding the appearance, content, and shipment of a parcel.toString()
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
Line Items or Custom Line Items to deliver. It can also be specified individually for each Parcel.
- Specified by:
getItems
in interfaceDeliveryDraft
- Returns:
- items
-
getParcels
Information regarding the appearance, content, and shipment of a parcel.
- Specified by:
getParcels
in interfaceDeliveryDraft
- Returns:
- parcels
-
getAddress
Address to which the Parcels are delivered.
- Specified by:
getAddress
in interfaceDeliveryDraft
- Returns:
- address
-
getCustom
Custom Fields for the Delivery.
- 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
Line Items or Custom Line Items to deliver. It 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
Line Items or Custom Line Items to deliver. It 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
Information regarding the appearance, content, and shipment of a parcel.
- Specified by:
setParcels
in interfaceDeliveryDraft
- Parameters:
parcels
- values to be set
-
setParcels
Description copied from interface:DeliveryDraft
Information regarding the appearance, content, and shipment of a parcel.
- Specified by:
setParcels
in interfaceDeliveryDraft
- Parameters:
parcels
- values to be set
-
setAddress
Description copied from interface:DeliveryDraft
Address to which the Parcels are delivered.
- Specified by:
setAddress
in interfaceDeliveryDraft
- Parameters:
address
- value to be set
-
setCustom
Description copied from interface:DeliveryDraft
Custom Fields for the Delivery.
- Specified by:
setCustom
in interfaceCustomizableDraft<DeliveryDraft>
- Specified by:
setCustom
in interfaceDeliveryDraft
- Parameters:
custom
- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-