Package com.commercetools.api.models.me
Class MyQuoteRequestDraftBuilder
java.lang.Object
com.commercetools.api.models.me.MyQuoteRequestDraftBuilder
- All Implemented Interfaces:
Builder<MyQuoteRequestDraft>
MyQuoteRequestDraftBuilder
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()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds MyQuoteRequestDraft with checking for non-null required valuesbuilds MyQuoteRequestDraft without checking for non-null required valuesid
of the Cart from which the Quote Request is created.cartVersion
(Long cartVersion) Current version of the Cart.Message from the Buyer included in the Quote Request.id
of the Cart from which the Quote Request is created.Current version of the Cart.Message from the Buyer included in the Quote Request.static MyQuoteRequestDraftBuilder
of()
factory method for an instance of MyQuoteRequestDraftBuilderstatic MyQuoteRequestDraftBuilder
of
(MyQuoteRequestDraft template) create builder for MyQuoteRequestDraft instance
-
Constructor Details
-
MyQuoteRequestDraftBuilder
public MyQuoteRequestDraftBuilder()
-
-
Method Details
-
cartId
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- Returns:
- Builder
-
cartVersion
Current version of the Cart.
- Parameters:
cartVersion
- value to be set- Returns:
- Builder
-
comment
Message from the Buyer included in the Quote Request.
- Parameters:
comment
- value to be set- Returns:
- Builder
-
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
Message from the Buyer included in the Quote Request.
- Returns:
- comment
-
build
builds MyQuoteRequestDraft with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyQuoteRequestDraft>
- Returns:
- MyQuoteRequestDraft
-
buildUnchecked
builds MyQuoteRequestDraft without checking for non-null required values- Returns:
- MyQuoteRequestDraft
-
of
factory method for an instance of MyQuoteRequestDraftBuilder- Returns:
- builder
-
of
create builder for MyQuoteRequestDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-