Class ReplicaCartDraftImpl

java.lang.Object
com.commercetools.api.models.cart.ReplicaCartDraftImpl
All Implemented Interfaces:
ReplicaCartDraft, WithKey, io.vrap.rmf.base.client.Draft<ReplicaCartDraft>, io.vrap.rmf.base.client.ModelBase

public class ReplicaCartDraftImpl extends Object implements ReplicaCartDraft, io.vrap.rmf.base.client.ModelBase

Used for replicating an existing Cart or Order.

  • 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
     
    User-defined unique identifier for the Cart.
    A Reference represents a loose reference to another resource in the same Project identified by its id.
    int
     
    void
    User-defined unique identifier for the Cart.
    void
    A Reference represents a loose reference to another resource in the same Project identified by its id.

    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.cart.ReplicaCartDraft

    setReference, withReplicaCartDraft
  • Constructor Details

  • Method Details

    • getReference

      A Reference represents a loose reference to another resource in the same Project identified by its id. The typeId indicates the type of the referenced resource. Each resource type has its corresponding Reference type, like ChannelReference. A referenced resource can be embedded through Reference Expansion. The expanded reference is the value of an additional obj field then.

      Specified by:
      getReference in interface ReplicaCartDraft
      Returns:
      reference
    • getKey

      public String getKey()

      User-defined unique identifier for the Cart.

      Specified by:
      getKey in interface ReplicaCartDraft
      Specified by:
      getKey in interface WithKey
      Returns:
      key
    • setReference

      public void setReference(Reference reference)
      Description copied from interface: ReplicaCartDraft

      A Reference represents a loose reference to another resource in the same Project identified by its id. The typeId indicates the type of the referenced resource. Each resource type has its corresponding Reference type, like ChannelReference. A referenced resource can be embedded through Reference Expansion. The expanded reference is the value of an additional obj field then.

      Specified by:
      setReference in interface ReplicaCartDraft
      Parameters:
      reference - value to be set
    • setKey

      public void setKey(String key)
      Description copied from interface: ReplicaCartDraft

      User-defined unique identifier for the Cart.

      Specified by:
      setKey in interface ReplicaCartDraft
      Parameters:
      key - value to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object