Interface DiscountCodeKeyReference

All Superinterfaces:
KeyReference

public interface DiscountCodeKeyReference extends KeyReference

References a discount code by key.


Example to create an instance using the builder pattern

     DiscountCodeKeyReference discountCodeKeyReference = DiscountCodeKeyReference.builder()
             .key("{key}")
             .build()
 
  • Field Details

  • Method Details

    • of

      factory method
      Returns:
      instance of DiscountCodeKeyReference
    • of

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

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

      builder factory method for DiscountCodeKeyReference
      Returns:
      builder
    • builder

      create builder for DiscountCodeKeyReference instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withDiscountCodeKeyReference

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