Interface QuoteRequestDraft
- All Superinterfaces:
Draft<QuoteRequestDraft>
,WithKey
Example to create an instance using the builder pattern
QuoteRequestDraft quoteRequestDraft = QuoteRequestDraft.builder()
.cart(cartBuilder -> cartBuilder)
.cartVersion(0.3)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic QuoteRequestDraftBuilder
builder()
builder factory method for QuoteRequestDraftstatic QuoteRequestDraftBuilder
builder
(QuoteRequestDraft template) create builder for QuoteRequestDraft instancestatic QuoteRequestDraft
deepCopy
(QuoteRequestDraft template) factory method to create a deep copy of QuoteRequestDraft@NotNull @Valid CartResourceIdentifier
getCart()
Cart for which a Quote is requested.@NotNull Long
Current version of the referenced Cart.Message from the Buyer included in the Quote Request.@Valid CustomFieldsDraft
Custom Fields to be added to the Quote Request.getKey()
User-defined unique identifier for the QuoteRequest.Identifier for a purchase order, usually in a B2B context.@Valid StateReference
getState()
State of the Quote Request.static QuoteRequestDraft
of()
factory methodstatic QuoteRequestDraft
of
(QuoteRequestDraft template) factory method to create a shallow copy QuoteRequestDraftvoid
Cart for which a Quote is requested.void
setCartVersion
(Long cartVersion) Current version of the referenced Cart.void
setComment
(String comment) Message from the Buyer included in the Quote Request.void
setCustom
(CustomFieldsDraft custom) Custom Fields to be added to the Quote Request.void
User-defined unique identifier for the QuoteRequest.void
setPurchaseOrderNumber
(String purchaseOrderNumber) Identifier for a purchase order, usually in a B2B context.void
setState
(StateReference state) State of the Quote Request.static com.fasterxml.jackson.core.type.TypeReference<QuoteRequestDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withQuoteRequestDraft
(Function<QuoteRequestDraft, T> helper) accessor map function
-
Method Details
-
getCart
Cart for which a Quote is requested. Anonymous Carts, Carts with Discount Codes, and Carts with
Multiple
ShippingMode are not supported. The Cart must have ashippingAddress
defined, otherwise an InvalidOperation error is returned when creating a Quote Request.- Returns:
- cart
-
getCartVersion
Current version of the referenced Cart.
- Returns:
- cartVersion
-
getKey
String getKey()User-defined unique identifier for the QuoteRequest.
-
getComment
String getComment()Message from the Buyer included in the Quote Request.
- Returns:
- comment
-
getCustom
Custom Fields to be added to the Quote Request.
- Returns:
- custom
-
getState
State of the Quote Request. This reference can point to a State in a custom workflow.
- Returns:
- state
-
getPurchaseOrderNumber
String getPurchaseOrderNumber()Identifier for a purchase order, usually in a B2B context. The Purchase Order Number is typically entered by the Buyer.
- Returns:
- purchaseOrderNumber
-
setCart
Cart for which a Quote is requested. Anonymous Carts, Carts with Discount Codes, and Carts with
Multiple
ShippingMode are not supported. The Cart must have ashippingAddress
defined, otherwise an InvalidOperation error is returned when creating a Quote Request.- Parameters:
cart
- value to be set
-
setCartVersion
Current version of the referenced Cart.
- Parameters:
cartVersion
- value to be set
-
setKey
User-defined unique identifier for the QuoteRequest.
- Parameters:
key
- value to be set
-
setComment
Message from the Buyer included in the Quote Request.
- Parameters:
comment
- value to be set
-
setCustom
Custom Fields to be added to the Quote Request.
- Parameters:
custom
- value to be set
-
setState
State of the Quote Request. This reference can point to a State in a custom workflow.
- Parameters:
state
- value to be set
-
setPurchaseOrderNumber
Identifier for a purchase order, usually in a B2B context. The Purchase Order Number is typically entered by the Buyer.
- Parameters:
purchaseOrderNumber
- value to be set
-
of
factory method- Returns:
- instance of QuoteRequestDraft
-
of
factory method to create a shallow copy QuoteRequestDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of QuoteRequestDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for QuoteRequestDraft- Returns:
- builder
-
builder
create builder for QuoteRequestDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withQuoteRequestDraft
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
-