Interface CartDiscountReference

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

public interface CartDiscountReference extends Reference, Identifiable<CartDiscount>, IdentifiableObjHolder<CartDiscount>

Reference to a CartDiscount.


Example to create an instance using the builder pattern

     CartDiscountReference cartDiscountReference = CartDiscountReference.builder()
             .id("{id}")
             .build()
 
  • Field Details

  • Method Details

    • getObj

      @Valid @Valid CartDiscount getObj()

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

      Specified by:
      getObj in interface IdentifiableObjHolder<CartDiscount>
      Returns:
      obj
    • getId

      @NotNull @NotNull String getId()

      Unique identifier of the referenced CartDiscount.

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

      void setObj(CartDiscount obj)

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

      Parameters:
      obj - value to be set
    • setId

      void setId(String id)

      Unique identifier of the referenced CartDiscount.

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

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

      factory method to create a shallow copy CartDiscountReference
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of CartDiscountReference
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static CartDiscountReferenceBuilder builder()
      builder factory method for CartDiscountReference
      Returns:
      builder
    • builder

      create builder for CartDiscountReference instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCartDiscountReference

      default <T> T withCartDiscountReference(Function<CartDiscountReference,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<CartDiscountReference> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference