Interface StagedQuoteDraft

All Superinterfaces:
Draft<StagedQuoteDraft>, WithKey

public interface StagedQuoteDraft extends WithKey, Draft<StagedQuoteDraft>
StagedQuoteDraft
Example to create an instance using the builder pattern

     StagedQuoteDraft stagedQuoteDraft = StagedQuoteDraft.builder()
             .quoteRequest(quoteRequestBuilder -> quoteRequestBuilder)
             .quoteRequestVersion(0.3)
             .build()
 
  • Method Details

    • getQuoteRequest

      @NotNull @Valid @NotNull @Valid QuoteRequestResourceIdentifier getQuoteRequest()

      QuoteRequest from which the StagedQuote is created.

      Returns:
      quoteRequest
    • getQuoteRequestVersion

      @NotNull @NotNull Long getQuoteRequestVersion()

      Current version of the QuoteRequest.

      Returns:
      quoteRequestVersion
    • getQuoteRequestStateToAccepted

      Boolean getQuoteRequestStateToAccepted()

      If true, the quoteRequestState of the referenced QuoteRequest will be set to Accepted.

      Returns:
      quoteRequestStateToAccepted
    • getKey

      String getKey()

      User-defined unique identifier for the StagedQuote.

      Specified by:
      getKey in interface WithKey
      Returns:
      key
    • getCustom

      @Valid @Valid CustomFieldsDraft getCustom()

      Custom Fields to be added to the StagedQuote.

      • If specified, the Custom Fields are merged with the Custom Fields on the referenced QuoteRequest and added to the StagedQuote.
      • If empty, the Custom Fields on the referenced QuoteRequest are added to the StagedQuote automatically.
      Returns:
      custom
    • getState

      @Valid @Valid StateReference getState()

      State of the Staged Quote. This reference can point to a State in a custom workflow.

      Returns:
      state
    • setQuoteRequest

      void setQuoteRequest(QuoteRequestResourceIdentifier quoteRequest)

      QuoteRequest from which the StagedQuote is created.

      Parameters:
      quoteRequest - value to be set
    • setQuoteRequestVersion

      void setQuoteRequestVersion(Long quoteRequestVersion)

      Current version of the QuoteRequest.

      Parameters:
      quoteRequestVersion - value to be set
    • setQuoteRequestStateToAccepted

      void setQuoteRequestStateToAccepted(Boolean quoteRequestStateToAccepted)

      If true, the quoteRequestState of the referenced QuoteRequest will be set to Accepted.

      Parameters:
      quoteRequestStateToAccepted - value to be set
    • setKey

      void setKey(String key)

      User-defined unique identifier for the StagedQuote.

      Parameters:
      key - value to be set
    • setCustom

      void setCustom(CustomFieldsDraft custom)

      Custom Fields to be added to the StagedQuote.

      • If specified, the Custom Fields are merged with the Custom Fields on the referenced QuoteRequest and added to the StagedQuote.
      • If empty, the Custom Fields on the referenced QuoteRequest are added to the StagedQuote automatically.
      Parameters:
      custom - value to be set
    • setState

      void setState(StateReference state)

      State of the Staged Quote. This reference can point to a State in a custom workflow.

      Parameters:
      state - value to be set
    • of

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

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

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

      static StagedQuoteDraftBuilder builder()
      builder factory method for StagedQuoteDraft
      Returns:
      builder
    • builder

      static StagedQuoteDraftBuilder builder(StagedQuoteDraft template)
      create builder for StagedQuoteDraft instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withStagedQuoteDraft

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