Interface ProductDiscountReference

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

public interface ProductDiscountReference extends Reference, Identifiable<ProductDiscount>, IdentifiableObjHolder<ProductDiscount>

Reference to a ProductDiscount.


Example to create an instance using the builder pattern

     ProductDiscountReference productDiscountReference = ProductDiscountReference.builder()
             .id("{id}")
             .build()
 
  • Field Details

    • PRODUCT_DISCOUNT

      static final String PRODUCT_DISCOUNT
      discriminator value for ProductDiscountReference
      See Also:
  • Method Details

    • getObj

      @Valid @Valid ProductDiscount getObj()

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

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

      @NotNull @NotNull String getId()

      Unique identifier of the referenced ProductDiscount.

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

      void setObj(ProductDiscount obj)

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

      Parameters:
      obj - value to be set
    • setId

      void setId(String id)

      Unique identifier of the referenced ProductDiscount.

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

      factory method
      Returns:
      instance of ProductDiscountReference
    • of

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

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

      builder factory method for ProductDiscountReference
      Returns:
      builder
    • builder

      create builder for ProductDiscountReference instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withProductDiscountReference

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