Class TrackingDataImpl
java.lang.Object
com.commercetools.api.models.order.TrackingDataImpl
- All Implemented Interfaces:
TrackingData
,io.vrap.rmf.base.client.ModelBase
public class TrackingDataImpl
extends Object
implements TrackingData, io.vrap.rmf.base.client.ModelBase
Information that helps track 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
Name of the carrier that delivers the Parcel.Iftrue
, the Parcel is being returned. Iffalse
, the Parcel is being delivered to the customer.Name of the provider that serves as facade to several carriers.Transaction identifier with theprovider
.Identifier to track the Parcel.int
hashCode()
void
setCarrier
(String carrier) Name of the carrier that delivers the Parcel.void
setIsReturn
(Boolean isReturn) Iftrue
, the Parcel is being returned. Iffalse
, the Parcel is being delivered to the customer.void
setProvider
(String provider) Name of the provider that serves as facade to several carriers.void
setProviderTransaction
(String providerTransaction) Transaction identifier with theprovider
.void
setTrackingId
(String trackingId) Identifier to track the Parcel.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.order.TrackingData
withTrackingData
-
Constructor Details
-
TrackingDataImpl
public TrackingDataImpl()create empty instance
-
-
Method Details
-
getTrackingId
Identifier to track the Parcel.
- Specified by:
getTrackingId
in interfaceTrackingData
- Returns:
- trackingId
-
getCarrier
Name of the carrier that delivers the Parcel.
- Specified by:
getCarrier
in interfaceTrackingData
- Returns:
- carrier
-
getProvider
Name of the provider that serves as facade to several carriers.
- Specified by:
getProvider
in interfaceTrackingData
- Returns:
- provider
-
getProviderTransaction
Transaction identifier with the
provider
.- Specified by:
getProviderTransaction
in interfaceTrackingData
- Returns:
- providerTransaction
-
getIsReturn
- If
true
, the Parcel is being returned. - If
false
, the Parcel is being delivered to the customer.
- Specified by:
getIsReturn
in interfaceTrackingData
- Returns:
- isReturn
- If
-
setTrackingId
Description copied from interface:TrackingData
Identifier to track the Parcel.
- Specified by:
setTrackingId
in interfaceTrackingData
- Parameters:
trackingId
- value to be set
-
setCarrier
Description copied from interface:TrackingData
Name of the carrier that delivers the Parcel.
- Specified by:
setCarrier
in interfaceTrackingData
- Parameters:
carrier
- value to be set
-
setProvider
Description copied from interface:TrackingData
Name of the provider that serves as facade to several carriers.
- Specified by:
setProvider
in interfaceTrackingData
- Parameters:
provider
- value to be set
-
setProviderTransaction
Description copied from interface:TrackingData
Transaction identifier with the
provider
.- Specified by:
setProviderTransaction
in interfaceTrackingData
- Parameters:
providerTransaction
- value to be set
-
setIsReturn
Description copied from interface:TrackingData
- If
true
, the Parcel is being returned. - If
false
, the Parcel is being delivered to the customer.
- Specified by:
setIsReturn
in interfaceTrackingData
- Parameters:
isReturn
- value to be set
- If
-
equals
-
hashCode
public int hashCode()
-