Class QuoteDraftImpl

java.lang.Object
com.commercetools.api.models.quote.QuoteDraftImpl
All Implemented Interfaces:
CustomizableDraft<QuoteDraft>, QuoteDraft, WithKey, io.vrap.rmf.base.client.Draft<QuoteDraft>, io.vrap.rmf.base.client.ModelBase

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

    • QuoteDraftImpl

      public QuoteDraftImpl()
      create empty instance
  • Method Details

    • getKey

      public String getKey()

      User-defined unique identifier for the Quote.

      Specified by:
      getKey in interface QuoteDraft
      Specified by:
      getKey in interface WithKey
      Returns:
      key
    • getStagedQuote

      public StagedQuoteResourceIdentifier getStagedQuote()

      StagedQuote from which the Quote is created.

      Specified by:
      getStagedQuote in interface QuoteDraft
      Returns:
      stagedQuote
    • getStagedQuoteVersion

      public Long getStagedQuoteVersion()

      Current version of the StagedQuote.

      Specified by:
      getStagedQuoteVersion in interface QuoteDraft
      Returns:
      stagedQuoteVersion
    • getStagedQuoteStateToSent

      public Boolean getStagedQuoteStateToSent()

      If true, the stagedQuoteState of the referenced StagedQuote will be set to Sent.

      Specified by:
      getStagedQuoteStateToSent in interface QuoteDraft
      Returns:
      stagedQuoteStateToSent
    • getState

      public StateReference getState()

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

      Specified by:
      getState in interface QuoteDraft
      Returns:
      state
    • getCustom

      public CustomFieldsDraft getCustom()

      Custom Fields to be added to the Quote.

      • If specified, the Custom Fields are merged with the Custom Fields on the referenced StagedQuote and added to the Quote.
      • If empty, the Custom Fields on the referenced StagedQuote are added to the Quote automatically.
      Specified by:
      getCustom in interface CustomizableDraft<QuoteDraft>
      Specified by:
      getCustom in interface QuoteDraft
      Returns:
      custom
    • setKey

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

      User-defined unique identifier for the Quote.

      Specified by:
      setKey in interface QuoteDraft
      Parameters:
      key - value to be set
    • setStagedQuote

      public void setStagedQuote(StagedQuoteResourceIdentifier stagedQuote)
      Description copied from interface: QuoteDraft

      StagedQuote from which the Quote is created.

      Specified by:
      setStagedQuote in interface QuoteDraft
      Parameters:
      stagedQuote - value to be set
    • setStagedQuoteVersion

      public void setStagedQuoteVersion(Long stagedQuoteVersion)
      Description copied from interface: QuoteDraft

      Current version of the StagedQuote.

      Specified by:
      setStagedQuoteVersion in interface QuoteDraft
      Parameters:
      stagedQuoteVersion - value to be set
    • setStagedQuoteStateToSent

      public void setStagedQuoteStateToSent(Boolean stagedQuoteStateToSent)
      Description copied from interface: QuoteDraft

      If true, the stagedQuoteState of the referenced StagedQuote will be set to Sent.

      Specified by:
      setStagedQuoteStateToSent in interface QuoteDraft
      Parameters:
      stagedQuoteStateToSent - value to be set
    • setState

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

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

      Specified by:
      setState in interface QuoteDraft
      Parameters:
      state - value to be set
    • setCustom

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

      Custom Fields to be added to the Quote.

      • If specified, the Custom Fields are merged with the Custom Fields on the referenced StagedQuote and added to the Quote.
      • If empty, the Custom Fields on the referenced StagedQuote are added to the Quote automatically.
      Specified by:
      setCustom in interface CustomizableDraft<QuoteDraft>
      Specified by:
      setCustom in interface QuoteDraft
      Parameters:
      custom - value to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object