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 Summary
Modifier and TypeMethodDescriptionstatic MyQuoteRequestDraftBuilder
builder()
builder factory method for MyQuoteRequestDraftstatic MyQuoteRequestDraftBuilder
builder
(MyQuoteRequestDraft template) create builder for MyQuoteRequestDraft instancestatic MyQuoteRequestDraft
deepCopy
(MyQuoteRequestDraft template) factory method to create a deep copy of MyQuoteRequestDraft@NotNull String
id
of the Cart from which the Quote Request is created.@NotNull Long
Current version of the Cart.Message from the Buyer included in the Quote Request.static MyQuoteRequestDraft
of()
factory methodstatic MyQuoteRequestDraft
of
(MyQuoteRequestDraft template) factory method to create a shallow copy MyQuoteRequestDraftvoid
id
of the Cart from which the Quote Request is created.void
setCartVersion
(Long cartVersion) Current version of the Cart.void
setComment
(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> T
withMyQuoteRequestDraft
(Function<MyQuoteRequestDraft, T> helper) accessor map function
-
Method Details
-
getCartId
id
of the Cart from which the Quote Request is created. Carts with Discount Codes and Carts withMultiple
ShippingMode are not supported. The Cart must have ashippingAddress
defined, otherwise an InvalidOperation error is returned when creating a Quote Request.- Returns:
- cartId
-
getCartVersion
Current version of the Cart.
- Returns:
- cartVersion
-
getComment
String getComment()Message from the Buyer included in the Quote Request.
- Returns:
- comment
-
setCartId
id
of the Cart from which the Quote Request is created. Carts with Discount Codes and Carts withMultiple
ShippingMode are not supported. The Cart must have ashippingAddress
defined, otherwise an InvalidOperation error is returned when creating a Quote Request.- Parameters:
cartId
- value to be set
-
setCartVersion
Current version of the Cart.
- Parameters:
cartVersion
- value to be set
-
setComment
Message from the Buyer included in the Quote Request.
- Parameters:
comment
- value to be set
-
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
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
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-