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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds MyQuoteRequestDraft with checking for non-null required valuesbuilds MyQuoteRequestDraft without checking for non-null required valuesidof 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.idof the Cart from which the Quote Request is created.Current version of the Cart.Message from the Buyer included in the Quote Request.static MyQuoteRequestDraftBuilderof()factory method for an instance of MyQuoteRequestDraftBuilderstatic MyQuoteRequestDraftBuilderof(MyQuoteRequestDraft template) create builder for MyQuoteRequestDraft instance
-
Constructor Details
-
MyQuoteRequestDraftBuilder
public MyQuoteRequestDraftBuilder()
-
-
Method Details
-
cartId
idof 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- 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
idof 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
-
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:
buildin 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
-