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 QuoteRequestDraftBuilderbuilder()builder factory method for QuoteRequestDraftstatic QuoteRequestDraftBuilderbuilder(QuoteRequestDraft template) create builder for QuoteRequestDraft instancecopyDeep()static QuoteRequestDraftdeepCopy(QuoteRequestDraft template) factory method to create a deep copy of QuoteRequestDraft@NotNull @Valid CartResourceIdentifiergetCart()Cart for which a Quote is requested.@NotNull LongCurrent version of the referenced Cart.Message from the Buyer included in the Quote Request.@Valid CustomFieldsDraftCustom 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 StateReferencegetState()State of the Quote Request.static QuoteRequestDraftof()factory methodstatic QuoteRequestDraftof(QuoteRequestDraft template) factory method to create a shallow copy QuoteRequestDraftvoidCart for which a Quote is requested.voidsetCartVersion(Long cartVersion) Current version of the referenced Cart.voidsetComment(String comment) Message from the Buyer included in the Quote Request.voidsetCustom(CustomFieldsDraft custom) Custom Fields to be added to the Quote Request.voidUser-defined unique identifier for the QuoteRequest.voidsetPurchaseOrderNumber(String purchaseOrderNumber) Identifier for a purchase order, usually in a B2B context.voidsetState(StateReference state) State of the Quote Request.static com.fasterxml.jackson.core.type.TypeReference<QuoteRequestDraft>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithQuoteRequestDraft(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
MultipleShippingMode are not supported. The Cart must have ashippingAddressdefined, 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
MultipleShippingMode are not supported. The Cart must have ashippingAddressdefined, 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
-
copyDeep
QuoteRequestDraft copyDeep() -
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
-