Class StagedQuoteImpl

java.lang.Object
com.commercetools.api.models.staged_quote.StagedQuoteImpl
All Implemented Interfaces:
BaseResource, StagedQuote, WithKey, io.vrap.rmf.base.client.ModelBase

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

    • StagedQuoteImpl

      public StagedQuoteImpl()
      create empty instance
  • Method Details

    • getId

      public String getId()

      The unique ID of the StagedQuote.

      Specified by:
      getId in interface BaseResource
      Specified by:
      getId in interface StagedQuote
      Returns:
      id
    • getVersion

      public Long getVersion()

      Current version of the StagedQuote.

      Specified by:
      getVersion in interface BaseResource
      Specified by:
      getVersion in interface StagedQuote
      Returns:
      version
    • getCreatedAt

      public ZonedDateTime getCreatedAt()

      Date and time (UTC) the StagedQuote was initially created.

      Specified by:
      getCreatedAt in interface BaseResource
      Specified by:
      getCreatedAt in interface StagedQuote
      Returns:
      createdAt
    • getLastModifiedAt

      public ZonedDateTime getLastModifiedAt()

      Date and time (UTC) the StagedQuote was last updated.

      Specified by:
      getLastModifiedAt in interface BaseResource
      Specified by:
      getLastModifiedAt in interface StagedQuote
      Returns:
      lastModifiedAt
    • getKey

      public String getKey()

      User-specific unique identifier of the staged quote.

      Specified by:
      getKey in interface StagedQuote
      Specified by:
      getKey in interface WithKey
      Returns:
      key
    • getLastModifiedBy

      public LastModifiedBy getLastModifiedBy()

      Present on resources created after 1 February 2019 except for events not tracked.

      Specified by:
      getLastModifiedBy in interface StagedQuote
      Returns:
      lastModifiedBy
    • getCreatedBy

      public CreatedBy getCreatedBy()

      Present on resources created after 1 February 2019 except for events not tracked.

      Specified by:
      getCreatedBy in interface StagedQuote
      Returns:
      createdBy
    • getStagedQuoteState

      public StagedQuoteState getStagedQuoteState()

      Predefined states tracking the status of the Staged Quote.

      Specified by:
      getStagedQuoteState in interface StagedQuote
      Returns:
      stagedQuoteState
    • getCustomer

      public CustomerReference getCustomer()

      The Buyer who requested the Quote.

      Specified by:
      getCustomer in interface StagedQuote
      Returns:
      customer
    • getQuoteRequest

      public QuoteRequestReference getQuoteRequest()

      Quote Request related to the Staged Quote.

      Specified by:
      getQuoteRequest in interface StagedQuote
      Returns:
      quoteRequest
    • getQuotationCart

      public CartReference getQuotationCart()

      Cart containing the offered items. May contain either DirectDiscounts or CartDiscounts.

      Specified by:
      getQuotationCart in interface StagedQuote
      Returns:
      quotationCart
    • getValidTo

      public ZonedDateTime getValidTo()

      Expiration date for the Quote.

      Specified by:
      getValidTo in interface StagedQuote
      Returns:
      validTo
    • getSellerComment

      public String getSellerComment()

      Message from the Seller included in the offer.

      Specified by:
      getSellerComment in interface StagedQuote
      Returns:
      sellerComment
    • getCustom

      public CustomFields getCustom()

      Custom Fields of the Staged Quote.

      Specified by:
      getCustom in interface StagedQuote
      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 StagedQuote
      Returns:
      state
    • getPurchaseOrderNumber

      public String getPurchaseOrderNumber()

      The Purchase Order Number is typically set by the Buyer on a QuoteRequest to track the purchase order during the quote and order flow.

      Specified by:
      getPurchaseOrderNumber in interface StagedQuote
      Returns:
      purchaseOrderNumber
    • getBusinessUnit

      public BusinessUnitKeyReference getBusinessUnit()

      The BusinessUnit for the Staged Quote.

      Specified by:
      getBusinessUnit in interface StagedQuote
      Returns:
      businessUnit
    • setId

      public void setId(String id)
      Description copied from interface: StagedQuote

      The unique ID of the StagedQuote.

      Specified by:
      setId in interface BaseResource
      Specified by:
      setId in interface StagedQuote
      Parameters:
      id - value to be set
    • setVersion

      public void setVersion(Long version)
      Description copied from interface: StagedQuote

      Current version of the StagedQuote.

      Specified by:
      setVersion in interface BaseResource
      Specified by:
      setVersion in interface StagedQuote
      Parameters:
      version - value to be set
    • setCreatedAt

      public void setCreatedAt(ZonedDateTime createdAt)
      Description copied from interface: StagedQuote

      Date and time (UTC) the StagedQuote was initially created.

      Specified by:
      setCreatedAt in interface BaseResource
      Specified by:
      setCreatedAt in interface StagedQuote
      Parameters:
      createdAt - value to be set
    • setLastModifiedAt

      public void setLastModifiedAt(ZonedDateTime lastModifiedAt)
      Description copied from interface: StagedQuote

      Date and time (UTC) the StagedQuote was last updated.

      Specified by:
      setLastModifiedAt in interface BaseResource
      Specified by:
      setLastModifiedAt in interface StagedQuote
      Parameters:
      lastModifiedAt - value to be set
    • setKey

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

      User-specific unique identifier of the staged quote.

      Specified by:
      setKey in interface StagedQuote
      Parameters:
      key - value to be set
    • setLastModifiedBy

      public void setLastModifiedBy(LastModifiedBy lastModifiedBy)
      Description copied from interface: StagedQuote

      Present on resources created after 1 February 2019 except for events not tracked.

      Specified by:
      setLastModifiedBy in interface StagedQuote
      Parameters:
      lastModifiedBy - value to be set
    • setCreatedBy

      public void setCreatedBy(CreatedBy createdBy)
      Description copied from interface: StagedQuote

      Present on resources created after 1 February 2019 except for events not tracked.

      Specified by:
      setCreatedBy in interface StagedQuote
      Parameters:
      createdBy - value to be set
    • setStagedQuoteState

      public void setStagedQuoteState(StagedQuoteState stagedQuoteState)
      Description copied from interface: StagedQuote

      Predefined states tracking the status of the Staged Quote.

      Specified by:
      setStagedQuoteState in interface StagedQuote
      Parameters:
      stagedQuoteState - value to be set
    • setCustomer

      public void setCustomer(CustomerReference customer)
      Description copied from interface: StagedQuote

      The Buyer who requested the Quote.

      Specified by:
      setCustomer in interface StagedQuote
      Parameters:
      customer - value to be set
    • setQuoteRequest

      public void setQuoteRequest(QuoteRequestReference quoteRequest)
      Description copied from interface: StagedQuote

      Quote Request related to the Staged Quote.

      Specified by:
      setQuoteRequest in interface StagedQuote
      Parameters:
      quoteRequest - value to be set
    • setQuotationCart

      public void setQuotationCart(CartReference quotationCart)
      Description copied from interface: StagedQuote

      Cart containing the offered items. May contain either DirectDiscounts or CartDiscounts.

      Specified by:
      setQuotationCart in interface StagedQuote
      Parameters:
      quotationCart - value to be set
    • setValidTo

      public void setValidTo(ZonedDateTime validTo)
      Description copied from interface: StagedQuote

      Expiration date for the Quote.

      Specified by:
      setValidTo in interface StagedQuote
      Parameters:
      validTo - value to be set
    • setSellerComment

      public void setSellerComment(String sellerComment)
      Description copied from interface: StagedQuote

      Message from the Seller included in the offer.

      Specified by:
      setSellerComment in interface StagedQuote
      Parameters:
      sellerComment - value to be set
    • setCustom

      public void setCustom(CustomFields custom)
      Description copied from interface: StagedQuote

      Custom Fields of the Staged Quote.

      Specified by:
      setCustom in interface StagedQuote
      Parameters:
      custom - value to be set
    • setState

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

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

      Specified by:
      setState in interface StagedQuote
      Parameters:
      state - value to be set
    • setPurchaseOrderNumber

      public void setPurchaseOrderNumber(String purchaseOrderNumber)
      Description copied from interface: StagedQuote

      The Purchase Order Number is typically set by the Buyer on a QuoteRequest to track the purchase order during the quote and order flow.

      Specified by:
      setPurchaseOrderNumber in interface StagedQuote
      Parameters:
      purchaseOrderNumber - value to be set
    • setBusinessUnit

      public void setBusinessUnit(BusinessUnitKeyReference businessUnit)
      Description copied from interface: StagedQuote

      The BusinessUnit for the Staged Quote.

      Specified by:
      setBusinessUnit in interface StagedQuote
      Parameters:
      businessUnit - value to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object