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

    Constructors
    Constructor
    Description
    create empty instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Name of the carrier that delivers the Parcel.
    If true, the Parcel is being returned. If false, the Parcel is being delivered to the customer.
    Name of the provider that serves as facade to several carriers.
    Transaction identifier with the provider.
    Identifier to track the Parcel.
    int
     
    void
    setCarrier(String carrier)
    Name of the carrier that delivers the Parcel.
    void
    setIsReturn(Boolean isReturn)
    If true, the Parcel is being returned. If false, 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 the provider.
    void
    setTrackingId(String trackingId)
    Identifier to track the Parcel.
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, 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

      public String getTrackingId()

      Identifier to track the Parcel.

      Specified by:
      getTrackingId in interface TrackingData
      Returns:
      trackingId
    • getCarrier

      public String getCarrier()

      Name of the carrier that delivers the Parcel.

      Specified by:
      getCarrier in interface TrackingData
      Returns:
      carrier
    • getProvider

      public String getProvider()

      Name of the provider that serves as facade to several carriers.

      Specified by:
      getProvider in interface TrackingData
      Returns:
      provider
    • getProviderTransaction

      public String getProviderTransaction()

      Transaction identifier with the provider.

      Specified by:
      getProviderTransaction in interface TrackingData
      Returns:
      providerTransaction
    • getIsReturn

      public Boolean getIsReturn()
      • If true, the Parcel is being returned.
      • If false, the Parcel is being delivered to the customer.
      Specified by:
      getIsReturn in interface TrackingData
      Returns:
      isReturn
    • setTrackingId

      public void setTrackingId(String trackingId)
      Description copied from interface: TrackingData

      Identifier to track the Parcel.

      Specified by:
      setTrackingId in interface TrackingData
      Parameters:
      trackingId - value to be set
    • setCarrier

      public void setCarrier(String carrier)
      Description copied from interface: TrackingData

      Name of the carrier that delivers the Parcel.

      Specified by:
      setCarrier in interface TrackingData
      Parameters:
      carrier - value to be set
    • setProvider

      public void setProvider(String provider)
      Description copied from interface: TrackingData

      Name of the provider that serves as facade to several carriers.

      Specified by:
      setProvider in interface TrackingData
      Parameters:
      provider - value to be set
    • setProviderTransaction

      public void setProviderTransaction(String providerTransaction)
      Description copied from interface: TrackingData

      Transaction identifier with the provider.

      Specified by:
      setProviderTransaction in interface TrackingData
      Parameters:
      providerTransaction - value to be set
    • setIsReturn

      public void setIsReturn(Boolean isReturn)
      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 interface TrackingData
      Parameters:
      isReturn - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object