Class StagedQuoteDraftImpl

java.lang.Object
com.commercetools.api.models.staged_quote.StagedQuoteDraftImpl
All Implemented Interfaces:
StagedQuoteDraft, WithKey, io.vrap.rmf.base.client.Draft<StagedQuoteDraft>, io.vrap.rmf.base.client.ModelBase

public class StagedQuoteDraftImpl extends Object implements StagedQuoteDraft, io.vrap.rmf.base.client.ModelBase
StagedQuoteDraft
  • Constructor Details

    • StagedQuoteDraftImpl

      public StagedQuoteDraftImpl()
      create empty instance
  • Method Details

    • getQuoteRequest

      public QuoteRequestResourceIdentifier getQuoteRequest()

      QuoteRequest from which the StagedQuote is created.

      Specified by:
      getQuoteRequest in interface StagedQuoteDraft
      Returns:
      quoteRequest
    • getQuoteRequestVersion

      public Long getQuoteRequestVersion()

      Current version of the QuoteRequest.

      Specified by:
      getQuoteRequestVersion in interface StagedQuoteDraft
      Returns:
      quoteRequestVersion
    • getQuoteRequestStateToAccepted

      public Boolean getQuoteRequestStateToAccepted()

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

      Specified by:
      getQuoteRequestStateToAccepted in interface StagedQuoteDraft
      Returns:
      quoteRequestStateToAccepted
    • getKey

      public String getKey()

      User-defined unique identifier for the StagedQuote.

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

      public 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.
      Specified by:
      getCustom in interface StagedQuoteDraft
      Returns:
      custom
    • getState

      public StateReference getState()

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

      Specified by:
      getState in interface StagedQuoteDraft
      Returns:
      state
    • setQuoteRequest

      public void setQuoteRequest(QuoteRequestResourceIdentifier quoteRequest)
      Description copied from interface: StagedQuoteDraft

      QuoteRequest from which the StagedQuote is created.

      Specified by:
      setQuoteRequest in interface StagedQuoteDraft
      Parameters:
      quoteRequest - value to be set
    • setQuoteRequestVersion

      public void setQuoteRequestVersion(Long quoteRequestVersion)
      Description copied from interface: StagedQuoteDraft

      Current version of the QuoteRequest.

      Specified by:
      setQuoteRequestVersion in interface StagedQuoteDraft
      Parameters:
      quoteRequestVersion - value to be set
    • setQuoteRequestStateToAccepted

      public void setQuoteRequestStateToAccepted(Boolean quoteRequestStateToAccepted)
      Description copied from interface: StagedQuoteDraft

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

      Specified by:
      setQuoteRequestStateToAccepted in interface StagedQuoteDraft
      Parameters:
      quoteRequestStateToAccepted - value to be set
    • setKey

      public void setKey(String key)
      Description copied from interface: StagedQuoteDraft

      User-defined unique identifier for the StagedQuote.

      Specified by:
      setKey in interface StagedQuoteDraft
      Parameters:
      key - value to be set
    • setCustom

      public void setCustom(CustomFieldsDraft custom)
      Description copied from interface: StagedQuoteDraft

      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.
      Specified by:
      setCustom in interface StagedQuoteDraft
      Parameters:
      custom - value to be set
    • setState

      public void setState(StateReference state)
      Description copied from interface: StagedQuoteDraft

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

      Specified by:
      setState in interface StagedQuoteDraft
      Parameters:
      state - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object