Interface QuoteRequestDraft

All Superinterfaces:
io.vrap.rmf.base.client.Draft<QuoteRequestDraft>, WithKey
All Known Implementing Classes:
QuoteRequestDraftImpl

public interface QuoteRequestDraft extends WithKey, io.vrap.rmf.base.client.Draft<QuoteRequestDraft>
QuoteRequestDraft
Example to create an instance using the builder pattern

     QuoteRequestDraft quoteRequestDraft = QuoteRequestDraft.builder()
             .cart(cartBuilder -> cartBuilder)
             .cartVersion(0.3)
             .comment("{comment}")
             .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

      User-defined unique identifier for the QuoteRequest.

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

      @NotNull @NotNull 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

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

      Returns:
      purchaseOrderNumber
    • setCart

      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

      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

      factory method
      Returns:
      instance of QuoteRequestDraft
    • of

      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

      builder factory method for QuoteRequestDraft
      Returns:
      builder
    • builder

      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