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 StagedQuoteBuilderbuilder()builder factory method for StagedQuotestatic StagedQuoteBuilderbuilder(StagedQuote template) create builder for StagedQuote instancecopyDeep()static StagedQuotedeepCopy(StagedQuote template) factory method to create a deep copy of StagedQuote@Valid BusinessUnitKeyReferenceThe BusinessUnit for the Staged Quote.@NotNull ZonedDateTimeDate and time (UTC) the StagedQuote was initially created.@Valid CreatedByIDs and references that created the StagedQuote.@Valid CustomFieldsCustom Fields of the Staged Quote.@Valid CustomerReferenceThe Buyer who requested the Quote.@NotNull StringgetId()The unique ID of the StagedQuote.getKey()User-specific unique identifier of the staged quote.@NotNull ZonedDateTimeDate and time (UTC) the StagedQuote was last updated.@Valid LastModifiedByIDs 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 CartReferenceCart containing the offered items.@NotNull @Valid QuoteRequestReferenceQuote Request related to the Staged Quote.Message from the Seller included in the offer.@NotNull StagedQuoteStatePredefined states tracking the status of the Staged Quote.@Valid StateReferencegetState()State of the Staged Quote.@Valid StoreKeyReferencegetStore()The Store to which the Buyer belongs.Expiration date for the Quote.@NotNull LongCurrent version of the StagedQuote.static StagedQuoteof()factory methodstatic StagedQuoteof(StagedQuote template) factory method to create a shallow copy StagedQuotevoidsetBusinessUnit(BusinessUnitKeyReference businessUnit) The BusinessUnit for the Staged Quote.voidsetCreatedAt(ZonedDateTime createdAt) Date and time (UTC) the StagedQuote was initially created.voidsetCreatedBy(CreatedBy createdBy) IDs and references that created the StagedQuote.voidsetCustom(CustomFields custom) Custom Fields of the Staged Quote.voidsetCustomer(CustomerReference customer) The Buyer who requested the Quote.voidThe unique ID of the StagedQuote.voidUser-specific unique identifier of the staged quote.voidsetLastModifiedAt(ZonedDateTime lastModifiedAt) Date and time (UTC) the StagedQuote was last updated.voidsetLastModifiedBy(LastModifiedBy lastModifiedBy) IDs and references that last modified the StagedQuote.voidsetPurchaseOrderNumber(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.voidsetQuotationCart(CartReference quotationCart) Cart containing the offered items.voidsetQuoteRequest(QuoteRequestReference quoteRequest) Quote Request related to the Staged Quote.voidsetSellerComment(String sellerComment) Message from the Seller included in the offer.voidsetStagedQuoteState(StagedQuoteState stagedQuoteState) Predefined states tracking the status of the Staged Quote.voidsetState(StateReference state) State of the Staged Quote.voidsetStore(StoreKeyReference store) The Store to which the Buyer belongs.voidsetValidTo(ZonedDateTime validTo) Expiration date for the Quote.voidsetVersion(Long version) Current version of the StagedQuote.static com.fasterxml.jackson.core.type.TypeReference<StagedQuote>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithStagedQuote(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:
getIdin interfaceBaseResource- Returns:
- id
-
getVersion
Current version of the StagedQuote.
- Specified by:
getVersionin 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:
getCreatedAtin interfaceBaseResource- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the StagedQuote was last updated.
- Specified by:
getLastModifiedAtin 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. Once a Quote expires, it cannot be ordered.
- 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. Only available for B2B-enabled Projects.
- Returns:
- businessUnit
-
getStore
The Store to which the Buyer belongs.
- Returns:
- store
-
setId
The unique ID of the StagedQuote.
- Specified by:
setIdin interfaceBaseResource- Parameters:
id- value to be set
-
setVersion
Current version of the StagedQuote.
- Specified by:
setVersionin 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:
setCreatedAtin interfaceBaseResource- Parameters:
createdAt- value to be set
-
setLastModifiedAt
Date and time (UTC) the StagedQuote was last updated.
- Specified by:
setLastModifiedAtin 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. Once a Quote expires, it cannot be ordered.
- 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. Only available for B2B-enabled Projects.
- 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
-
copyDeep
StagedQuote copyDeep()- Specified by:
copyDeepin interfaceBaseResource
-
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
-