Interface QuoteRequestDraft

All Superinterfaces:
Draft<QuoteRequestDraft>, WithKey

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

     QuoteRequestDraft quoteRequestDraft = QuoteRequestDraft.builder()
             .cart(cartBuilder -> cartBuilder)
             .cartVersion(0.3)
             .build()
 
  • Method Details

    • getCart

      @NotNull @Valid @NotNull @Valid CartResourceIdentifier getCart()

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

      Returns:
      cart
    • getCartVersion

      @NotNull @NotNull Long getCartVersion()

      Current version of the referenced Cart.

      Returns:
      cartVersion
    • getKey

      String getKey()

      User-defined unique identifier for the QuoteRequest.

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

      String getComment()

      Message from the Buyer included in the Quote Request.

      Returns:
      comment
    • getCustom

      @Valid @Valid CustomFieldsDraft getCustom()

      Custom Fields to be added to the Quote Request.

      Returns:
      custom
    • getState

      @Valid @Valid StateReference getState()

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

      Returns:
      state
    • getPurchaseOrderNumber

      String getPurchaseOrderNumber()

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

      Returns:
      purchaseOrderNumber
    • setCart

      void setCart(CartResourceIdentifier cart)

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

      Parameters:
      cart - value to be set
    • setCartVersion

      void setCartVersion(Long cartVersion)

      Current version of the referenced Cart.

      Parameters:
      cartVersion - value to be set
    • setKey

      void setKey(String key)

      User-defined unique identifier for the QuoteRequest.

      Parameters:
      key - value to be set
    • setComment

      void setComment(String comment)

      Message from the Buyer included in the Quote Request.

      Parameters:
      comment - value to be set
    • setCustom

      void setCustom(CustomFieldsDraft custom)

      Custom Fields to be added to the Quote Request.

      Parameters:
      custom - value to be set
    • setState

      void setState(StateReference state)

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

      Parameters:
      state - value to be set
    • setPurchaseOrderNumber

      void setPurchaseOrderNumber(String purchaseOrderNumber)

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

      Parameters:
      purchaseOrderNumber - value to be set
    • of

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

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

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

      static QuoteRequestDraftBuilder builder()
      builder factory method for QuoteRequestDraft
      Returns:
      builder
    • builder

      static QuoteRequestDraftBuilder builder(QuoteRequestDraft template)
      create builder for QuoteRequestDraft instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withQuoteRequestDraft

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