Interface MyQuoteRequestDraft

All Superinterfaces:
Draft<MyQuoteRequestDraft>

public interface MyQuoteRequestDraft extends Draft<MyQuoteRequestDraft>
MyQuoteRequestDraft
Example to create an instance using the builder pattern

     MyQuoteRequestDraft myQuoteRequestDraft = MyQuoteRequestDraft.builder()
             .cartId("{cartId}")
             .cartVersion(0.3)
             .build()
 
  • Method Details

    • getCartId

      @NotNull @NotNull String getCartId()

      id of the Cart from which the Quote Request is created. Carts with Discount Codes and Carts with Multiple ShippingMode are not supported. The Cart must have a shippingAddress defined, otherwise an InvalidOperation error is returned when creating a Quote Request.

      Returns:
      cartId
    • getCartVersion

      @NotNull @NotNull Long getCartVersion()

      Current version of the Cart.

      Returns:
      cartVersion
    • getComment

      String getComment()

      Message from the Buyer included in the Quote Request.

      Returns:
      comment
    • setCartId

      void setCartId(String cartId)

      id of the Cart from which the Quote Request is created. Carts with Discount Codes and Carts with Multiple ShippingMode are not supported. The Cart must have a shippingAddress defined, otherwise an InvalidOperation error is returned when creating a Quote Request.

      Parameters:
      cartId - value to be set
    • setCartVersion

      void setCartVersion(Long cartVersion)

      Current version of the Cart.

      Parameters:
      cartVersion - value to be set
    • setComment

      void setComment(String comment)

      Message from the Buyer included in the Quote Request.

      Parameters:
      comment - value to be set
    • of

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

      factory method to create a shallow copy MyQuoteRequestDraft
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

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

      static MyQuoteRequestDraftBuilder builder()
      builder factory method for MyQuoteRequestDraft
      Returns:
      builder
    • builder

      create builder for MyQuoteRequestDraft instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withMyQuoteRequestDraft

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