Class CartReferenceImpl

java.lang.Object
com.commercetools.api.models.cart.CartReferenceImpl
All Implemented Interfaces:
CartReference, Reference, ReferenceMixin, Identifiable<Cart>, io.vrap.rmf.base.client.ModelBase

public class CartReferenceImpl extends Object implements CartReference, io.vrap.rmf.base.client.ModelBase

Reference to a Cart.

  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase

    io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
  • Field Summary

    Fields inherited from interface com.commercetools.api.models.cart.CartReference

    CART
  • Constructor Summary

    Constructors
    Constructor
    Description
    create empty instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Unique identifier of the referenced Cart.
    Contains the representation of the expanded Cart.
    Type of referenced resource.
    int
     
    void
    Unique identifier of the referenced Cart.
    void
    setObj(Cart obj)
    Contains the representation of the expanded Cart.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.commercetools.api.models.cart.CartReference

    withCartReference

    Methods inherited from interface io.vrap.rmf.base.client.ModelBase

    reflectionString, reflectionString

    Methods inherited from interface com.commercetools.api.models.common.Reference

    withReference

    Methods inherited from interface com.commercetools.api.models.common.ReferenceMixin

    toResourceIdentifier
  • Constructor Details

    • CartReferenceImpl

      public CartReferenceImpl()
      create empty instance
  • Method Details

    • getTypeId

      public ReferenceTypeId getTypeId()

      Type of referenced resource.

      Specified by:
      getTypeId in interface Reference
      Specified by:
      getTypeId in interface ReferenceMixin
      Returns:
      typeId
    • getId

      public String getId()

      Unique identifier of the referenced Cart.

      Specified by:
      getId in interface CartReference
      Specified by:
      getId in interface Identifiable<Cart>
      Specified by:
      getId in interface Reference
      Specified by:
      getId in interface ReferenceMixin
      Returns:
      id
    • getObj

      public Cart getObj()

      Contains the representation of the expanded Cart. Only present in responses to requests with Reference Expansion for Carts.

      Specified by:
      getObj in interface CartReference
      Returns:
      obj
    • setId

      public void setId(String id)
      Description copied from interface: CartReference

      Unique identifier of the referenced Cart.

      Specified by:
      setId in interface CartReference
      Specified by:
      setId in interface Reference
      Parameters:
      id - value to be set
    • setObj

      public void setObj(Cart obj)
      Description copied from interface: CartReference

      Contains the representation of the expanded Cart. Only present in responses to requests with Reference Expansion for Carts.

      Specified by:
      setObj in interface CartReference
      Parameters:
      obj - value to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object