Class QuoteRequestDraftImpl

java.lang.Object
com.commercetools.api.models.quote_request.QuoteRequestDraftImpl
All Implemented Interfaces:
QuoteRequestDraft, WithKey, io.vrap.rmf.base.client.Draft<QuoteRequestDraft>, io.vrap.rmf.base.client.ModelBase

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

    • QuoteRequestDraftImpl

      public QuoteRequestDraftImpl()
      create empty instance
  • Method Details

    • getCart

      public CartResourceIdentifier getCart()

      Cart for which a Quote is requested. Anonymous Carts, Carts with Discount Codes, or Carts with a Multiple ShippingMode are not supported.

      Specified by:
      getCart in interface QuoteRequestDraft
      Returns:
      cart
    • getCartVersion

      public Long getCartVersion()

      Current version of the referenced Cart.

      Specified by:
      getCartVersion in interface QuoteRequestDraft
      Returns:
      cartVersion
    • getKey

      public String getKey()

      User-defined unique identifier for the QuoteRequest.

      Specified by:
      getKey in interface QuoteRequestDraft
      Specified by:
      getKey in interface WithKey
      Returns:
      key
    • getComment

      public String getComment()

      Message from the Buyer included in the Quote Request.

      Specified by:
      getComment in interface QuoteRequestDraft
      Returns:
      comment
    • getCustom

      public CustomFieldsDraft getCustom()

      Custom Fields to be added to the Quote Request.

      Specified by:
      getCustom in interface QuoteRequestDraft
      Returns:
      custom
    • getState

      public StateReference getState()

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

      Specified by:
      getState in interface QuoteRequestDraft
      Returns:
      state
    • getPurchaseOrderNumber

      public String getPurchaseOrderNumber()

      Identifier for a purchase order, usually in a B2B context. The Purchase Order Number is typically entered by the Buyer.

      Specified by:
      getPurchaseOrderNumber in interface QuoteRequestDraft
      Returns:
      purchaseOrderNumber
    • setCart

      public void setCart(CartResourceIdentifier cart)
      Description copied from interface: QuoteRequestDraft

      Cart for which a Quote is requested. Anonymous Carts, Carts with Discount Codes, or Carts with a Multiple ShippingMode are not supported.

      Specified by:
      setCart in interface QuoteRequestDraft
      Parameters:
      cart - value to be set
    • setCartVersion

      public void setCartVersion(Long cartVersion)
      Description copied from interface: QuoteRequestDraft

      Current version of the referenced Cart.

      Specified by:
      setCartVersion in interface QuoteRequestDraft
      Parameters:
      cartVersion - value to be set
    • setKey

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

      User-defined unique identifier for the QuoteRequest.

      Specified by:
      setKey in interface QuoteRequestDraft
      Parameters:
      key - value to be set
    • setComment

      public void setComment(String comment)
      Description copied from interface: QuoteRequestDraft

      Message from the Buyer included in the Quote Request.

      Specified by:
      setComment in interface QuoteRequestDraft
      Parameters:
      comment - value to be set
    • setCustom

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

      Custom Fields to be added to the Quote Request.

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

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

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

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

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

      Identifier for a purchase order, usually in a B2B context. The Purchase Order Number is typically entered by the Buyer.

      Specified by:
      setPurchaseOrderNumber in interface QuoteRequestDraft
      Parameters:
      purchaseOrderNumber - value to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object