Interface ApproverHierarchyDraft

All Superinterfaces:
Draft<ApproverHierarchyDraft>

public interface ApproverHierarchyDraft extends Draft<ApproverHierarchyDraft>

Describes the sequence in which Associates can approve an Order.


Example to create an instance using the builder pattern

     ApproverHierarchyDraft approverHierarchyDraft = ApproverHierarchyDraft.builder()
             .plusTiers(tiersBuilder -> tiersBuilder)
             .build()
 
  • Method Details

    • getTiers

      @NotNull @Valid @NotNull @Valid List<ApproverConjunctionDraft> getTiers()

      Nested conjunctions representing tiers of approvers in a hierarchy.

      Returns:
      tiers
    • setTiers

      void setTiers(ApproverConjunctionDraft... tiers)

      Nested conjunctions representing tiers of approvers in a hierarchy.

      Parameters:
      tiers - values to be set
    • setTiers

      void setTiers(List<ApproverConjunctionDraft> tiers)

      Nested conjunctions representing tiers of approvers in a hierarchy.

      Parameters:
      tiers - values to be set
    • of

      factory method
      Returns:
      instance of ApproverHierarchyDraft
    • of

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

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

      builder factory method for ApproverHierarchyDraft
      Returns:
      builder
    • builder

      create builder for ApproverHierarchyDraft instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withApproverHierarchyDraft

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