Interface StagedQuote
- All Superinterfaces:
BaseResource
,WithKey
Example to create an instance using the builder pattern
StagedQuote stagedQuote = StagedQuote.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.stagedQuoteState(StagedQuoteState.IN_PROGRESS)
.quoteRequest(quoteRequestBuilder -> quoteRequestBuilder)
.quotationCart(quotationCartBuilder -> quotationCartBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic StagedQuoteBuilder
builder()
builder factory method for StagedQuotestatic StagedQuoteBuilder
builder
(StagedQuote template) create builder for StagedQuote instancestatic StagedQuote
deepCopy
(StagedQuote template) factory method to create a deep copy of StagedQuote@Valid BusinessUnitKeyReference
The BusinessUnit for the Staged Quote.@NotNull ZonedDateTime
Date and time (UTC) the StagedQuote was initially created.@Valid CreatedBy
IDs and references that created the StagedQuote.@Valid CustomFields
Custom Fields of the Staged Quote.@Valid CustomerReference
The Buyer who requested the Quote.@NotNull String
getId()
The unique ID of the StagedQuote.getKey()
User-specific unique identifier of the staged quote.@NotNull ZonedDateTime
Date and time (UTC) the StagedQuote was last updated.@Valid LastModifiedBy
IDs and references that last modified the StagedQuote.The Purchase Order Number is typically set by the Buyer on a QuoteRequest to track the purchase order during the quote and order flow.@NotNull @Valid CartReference
Cart containing the offered items.@NotNull @Valid QuoteRequestReference
Quote Request related to the Staged Quote.Message from the Seller included in the offer.@NotNull StagedQuoteState
Predefined states tracking the status of the Staged Quote.@Valid StateReference
getState()
State of the Staged Quote.@Valid StoreKeyReference
getStore()
The Store to which the Buyer belongs.Expiration date for the Quote.@NotNull Long
Current version of the StagedQuote.static StagedQuote
of()
factory methodstatic StagedQuote
of
(StagedQuote template) factory method to create a shallow copy StagedQuotevoid
setBusinessUnit
(BusinessUnitKeyReference businessUnit) The BusinessUnit for the Staged Quote.void
setCreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the StagedQuote was initially created.void
setCreatedBy
(CreatedBy createdBy) IDs and references that created the StagedQuote.void
setCustom
(CustomFields custom) Custom Fields of the Staged Quote.void
setCustomer
(CustomerReference customer) The Buyer who requested the Quote.void
The unique ID of the StagedQuote.void
User-specific unique identifier of the staged quote.void
setLastModifiedAt
(ZonedDateTime lastModifiedAt) Date and time (UTC) the StagedQuote was last updated.void
setLastModifiedBy
(LastModifiedBy lastModifiedBy) IDs and references that last modified the StagedQuote.void
setPurchaseOrderNumber
(String purchaseOrderNumber) The Purchase Order Number is typically set by the Buyer on a QuoteRequest to track the purchase order during the quote and order flow.void
setQuotationCart
(CartReference quotationCart) Cart containing the offered items.void
setQuoteRequest
(QuoteRequestReference quoteRequest) Quote Request related to the Staged Quote.void
setSellerComment
(String sellerComment) Message from the Seller included in the offer.void
setStagedQuoteState
(StagedQuoteState stagedQuoteState) Predefined states tracking the status of the Staged Quote.void
setState
(StateReference state) State of the Staged Quote.void
setStore
(StoreKeyReference store) The Store to which the Buyer belongs.void
setValidTo
(ZonedDateTime validTo) Expiration date for the Quote.void
setVersion
(Long version) Current version of the StagedQuote.static com.fasterxml.jackson.core.type.TypeReference<StagedQuote>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStagedQuote
(Function<StagedQuote, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
-
Method Details
-
getId
The unique ID of the StagedQuote.
- Specified by:
getId
in interfaceBaseResource
- Returns:
- id
-
getVersion
Current version of the StagedQuote.
- Specified by:
getVersion
in interfaceBaseResource
- Returns:
- version
-
getKey
String getKey()User-specific unique identifier of the staged quote.
-
getCreatedAt
Date and time (UTC) the StagedQuote was initially created.
- Specified by:
getCreatedAt
in interfaceBaseResource
- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the StagedQuote was last updated.
- Specified by:
getLastModifiedAt
in interfaceBaseResource
- Returns:
- lastModifiedAt
-
getLastModifiedBy
IDs and references that last modified the StagedQuote.
- Returns:
- lastModifiedBy
-
getCreatedBy
IDs and references that created the StagedQuote.
- Returns:
- createdBy
-
getStagedQuoteState
Predefined states tracking the status of the Staged Quote.
- Returns:
- stagedQuoteState
-
getCustomer
The Buyer who requested the Quote.
- Returns:
- customer
-
getQuoteRequest
Quote Request related to the Staged Quote.
- Returns:
- quoteRequest
-
getQuotationCart
Cart containing the offered items. May contain either DirectDiscounts or CartDiscounts.
- Returns:
- quotationCart
-
getValidTo
ZonedDateTime getValidTo()Expiration date for the Quote.
- Returns:
- validTo
-
getSellerComment
String getSellerComment()Message from the Seller included in the offer.
- Returns:
- sellerComment
-
getCustom
Custom Fields of the Staged Quote.
- Returns:
- custom
-
getState
State of the Staged Quote. This reference can point to a State in a custom workflow.
- Returns:
- state
-
getPurchaseOrderNumber
String getPurchaseOrderNumber()The Purchase Order Number is typically set by the Buyer on a QuoteRequest to track the purchase order during the quote and order flow.
- Returns:
- purchaseOrderNumber
-
getBusinessUnit
The BusinessUnit for the Staged Quote.
- Returns:
- businessUnit
-
getStore
The Store to which the Buyer belongs.
- Returns:
- store
-
setId
The unique ID of the StagedQuote.
- Specified by:
setId
in interfaceBaseResource
- Parameters:
id
- value to be set
-
setVersion
Current version of the StagedQuote.
- Specified by:
setVersion
in interfaceBaseResource
- Parameters:
version
- value to be set
-
setKey
User-specific unique identifier of the staged quote.
- Parameters:
key
- value to be set
-
setCreatedAt
Date and time (UTC) the StagedQuote was initially created.
- Specified by:
setCreatedAt
in interfaceBaseResource
- Parameters:
createdAt
- value to be set
-
setLastModifiedAt
Date and time (UTC) the StagedQuote was last updated.
- Specified by:
setLastModifiedAt
in interfaceBaseResource
- Parameters:
lastModifiedAt
- value to be set
-
setLastModifiedBy
IDs and references that last modified the StagedQuote.
- Parameters:
lastModifiedBy
- value to be set
-
setCreatedBy
IDs and references that created the StagedQuote.
- Parameters:
createdBy
- value to be set
-
setStagedQuoteState
Predefined states tracking the status of the Staged Quote.
- Parameters:
stagedQuoteState
- value to be set
-
setCustomer
The Buyer who requested the Quote.
- Parameters:
customer
- value to be set
-
setQuoteRequest
Quote Request related to the Staged Quote.
- Parameters:
quoteRequest
- value to be set
-
setQuotationCart
Cart containing the offered items. May contain either DirectDiscounts or CartDiscounts.
- Parameters:
quotationCart
- value to be set
-
setValidTo
Expiration date for the Quote.
- Parameters:
validTo
- value to be set
-
setSellerComment
Message from the Seller included in the offer.
- Parameters:
sellerComment
- value to be set
-
setCustom
Custom Fields of the Staged Quote.
- Parameters:
custom
- value to be set
-
setState
State of the Staged Quote. This reference can point to a State in a custom workflow.
- Parameters:
state
- value to be set
-
setPurchaseOrderNumber
The Purchase Order Number is typically set by the Buyer on a QuoteRequest to track the purchase order during the quote and order flow.
- Parameters:
purchaseOrderNumber
- value to be set
-
setBusinessUnit
The BusinessUnit for the Staged Quote.
- Parameters:
businessUnit
- value to be set
-
setStore
The Store to which the Buyer belongs.
- Parameters:
store
- value to be set
-
of
factory method- Returns:
- instance of StagedQuote
-
of
factory method to create a shallow copy StagedQuote- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of StagedQuote- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedQuote- Returns:
- builder
-
builder
create builder for StagedQuote instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedQuote
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
-