Package com.commercetools.api.models.me
Interface MyQuoteRequestDraft
- All Superinterfaces:
- Draft<MyQuoteRequestDraft>
MyQuoteRequestDraft
 
Example to create an instance using the builder pattern
 
Example to create an instance using the builder pattern
     MyQuoteRequestDraft myQuoteRequestDraft = MyQuoteRequestDraft.builder()
             .cartId("{cartId}")
             .cartVersion(0.3)
             .build()
 - 
Method SummaryModifier and TypeMethodDescriptionstatic MyQuoteRequestDraftBuilderbuilder()builder factory method for MyQuoteRequestDraftstatic MyQuoteRequestDraftBuilderbuilder(MyQuoteRequestDraft template) create builder for MyQuoteRequestDraft instancecopyDeep()static MyQuoteRequestDraftdeepCopy(MyQuoteRequestDraft template) factory method to create a deep copy of MyQuoteRequestDraft@NotNull Stringidof the Cart from which the Quote Request is created.@NotNull LongCurrent version of the Cart.Message from the Buyer included in the Quote Request.static MyQuoteRequestDraftof()factory methodstatic MyQuoteRequestDraftof(MyQuoteRequestDraft template) factory method to create a shallow copy MyQuoteRequestDraftvoididof the Cart from which the Quote Request is created.voidsetCartVersion(Long cartVersion) Current version of the Cart.voidsetComment(String comment) Message from the Buyer included in the Quote Request.static com.fasterxml.jackson.core.type.TypeReference<MyQuoteRequestDraft>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithMyQuoteRequestDraft(Function<MyQuoteRequestDraft, T> helper) accessor map function
- 
Method Details- 
getCartIdidof the Cart from which the Quote Request is created. Carts with Discount Codes and Carts withMultipleShippingMode are not supported. The Cart must have ashippingAddressdefined, otherwise an InvalidOperation error is returned when creating a Quote Request.- Returns:
- cartId
 
- 
getCartVersionCurrent version of the Cart. - Returns:
- cartVersion
 
- 
getCommentString getComment()Message from the Buyer included in the Quote Request. - Returns:
- comment
 
- 
setCartIdidof the Cart from which the Quote Request is created. Carts with Discount Codes and Carts withMultipleShippingMode are not supported. The Cart must have ashippingAddressdefined, otherwise an InvalidOperation error is returned when creating a Quote Request.- Parameters:
- cartId- value to be set
 
- 
setCartVersionCurrent version of the Cart. - Parameters:
- cartVersion- value to be set
 
- 
setCommentMessage from the Buyer included in the Quote Request. - Parameters:
- comment- value to be set
 
- 
offactory method- Returns:
- instance of MyQuoteRequestDraft
 
- 
offactory method to create a shallow copy MyQuoteRequestDraft- Parameters:
- template- instance to be copied
- Returns:
- copy instance
 
- 
copyDeepMyQuoteRequestDraft copyDeep()
- 
deepCopyfactory method to create a deep copy of MyQuoteRequestDraft- Parameters:
- template- instance to be copied
- Returns:
- copy instance
 
- 
builderbuilder factory method for MyQuoteRequestDraft- Returns:
- builder
 
- 
buildercreate builder for MyQuoteRequestDraft instance- Parameters:
- template- instance with prefilled values for the builder
- Returns:
- builder
 
- 
withMyQuoteRequestDraftaccessor map function- Type Parameters:
- T- mapped type
- Parameters:
- helper- function to map the object
- Returns:
- mapped value
 
- 
typeReferencegives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
 
 
-