Interface CartReference

All Superinterfaces:
Identifiable<Cart>, IdentifiableObjHolder<Cart>, Reference, ReferenceMixin

public interface CartReference extends Reference, Identifiable<Cart>, IdentifiableObjHolder<Cart>

Reference to a Cart.


Example to create an instance using the builder pattern

     CartReference cartReference = CartReference.builder()
             .id("{id}")
             .build()
 
  • Field Details

  • Method Details

    • getObj

      @Valid @Valid 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 IdentifiableObjHolder<Cart>
      Returns:
      obj
    • getId

      @NotNull @NotNull String getId()

      Unique identifier of the referenced Cart.

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

      void setObj(Cart obj)

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

      Parameters:
      obj - value to be set
    • setId

      void setId(String id)

      Unique identifier of the referenced Cart.

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

      static CartReference of()
      factory method
      Returns:
      instance of CartReference
    • of

      static CartReference of(CartReference template)
      factory method to create a shallow copy CartReference
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      @Nullable static CartReference deepCopy(@Nullable CartReference template)
      factory method to create a deep copy of CartReference
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static CartReferenceBuilder builder()
      builder factory method for CartReference
      Returns:
      builder
    • builder

      static CartReferenceBuilder builder(CartReference template)
      create builder for CartReference instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCartReference

      default <T> T withCartReference(Function<CartReference,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<CartReference> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference