Class ParcelImpl
java.lang.Object
com.commercetools.api.models.order.ParcelImpl
- All Implemented Interfaces:
Customizable<Parcel>
,Parcel
,ParcelMixin
,io.vrap.rmf.base.client.ModelBase
Information regarding the appearance, content, and shipment of a Parcel.
-
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
Date and time (UTC) the Parcel was created.Custom Fields of the Parcel.getId()
Unique identifier of the Parcel.getItems()
Line Items or Custom Line Items delivered in this Parcel.getKey()
User-defined unique identifier of the Parcel.Information about the dimensions of the Parcel.Shipment tracking information of the Parcel.int
hashCode()
void
setCreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the Parcel was created.void
setCustom
(CustomFields custom) Custom Fields of the Parcel.void
Unique identifier of the Parcel.void
setItems
(DeliveryItem... items) Line Items or Custom Line Items delivered in this Parcel.void
setItems
(List<DeliveryItem> items) Line Items or Custom Line Items delivered in this Parcel.void
User-defined unique identifier of the Parcel.void
setMeasurements
(ParcelMeasurements measurements) Information about the dimensions of the Parcel.void
setTrackingData
(TrackingData trackingData) Shipment tracking information of the Parcel.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.Customizable
unwrapCustomizable
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.order.Parcel
withParcel
Methods inherited from interface com.commercetools.api.models.order.ParcelMixin
toDraft, toDraftBuilder
-
Constructor Details
-
ParcelImpl
public ParcelImpl()create empty instance
-
-
Method Details
-
getId
Unique identifier of the Parcel.
-
getKey
User-defined unique identifier of the Parcel.
-
getCreatedAt
Date and time (UTC) the Parcel was created.
- Specified by:
getCreatedAt
in interfaceParcel
- Returns:
- createdAt
-
getMeasurements
Information about the dimensions of the Parcel.
- Specified by:
getMeasurements
in interfaceParcel
- Specified by:
getMeasurements
in interfaceParcelMixin
- Returns:
- measurements
-
getTrackingData
Shipment tracking information of the Parcel.
- Specified by:
getTrackingData
in interfaceParcel
- Specified by:
getTrackingData
in interfaceParcelMixin
- Returns:
- trackingData
-
getItems
Line Items or Custom Line Items delivered in this Parcel.
- Specified by:
getItems
in interfaceParcel
- Specified by:
getItems
in interfaceParcelMixin
- Returns:
- items
-
getCustom
Custom Fields of the Parcel.
- Specified by:
getCustom
in interfaceCustomizable<Parcel>
- Specified by:
getCustom
in interfaceParcel
- Specified by:
getCustom
in interfaceParcelMixin
- Returns:
- custom
-
setId
Description copied from interface:Parcel
Unique identifier of the Parcel.
-
setKey
Description copied from interface:Parcel
User-defined unique identifier of the Parcel.
-
setCreatedAt
Description copied from interface:Parcel
Date and time (UTC) the Parcel was created.
- Specified by:
setCreatedAt
in interfaceParcel
- Parameters:
createdAt
- value to be set
-
setMeasurements
Description copied from interface:Parcel
Information about the dimensions of the Parcel.
- Specified by:
setMeasurements
in interfaceParcel
- Parameters:
measurements
- value to be set
-
setTrackingData
Description copied from interface:Parcel
Shipment tracking information of the Parcel.
- Specified by:
setTrackingData
in interfaceParcel
- Parameters:
trackingData
- value to be set
-
setItems
Description copied from interface:Parcel
Line Items or Custom Line Items delivered in this Parcel.
-
setItems
Description copied from interface:Parcel
Line Items or Custom Line Items delivered in this Parcel.
-
setCustom
Description copied from interface:Parcel
Custom Fields of the Parcel.
- Specified by:
setCustom
in interfaceCustomizable<Parcel>
- Specified by:
setCustom
in interfaceParcel
- Parameters:
custom
- value to be set
-
equals
-
hashCode
public int hashCode()
-