Class StagedQuoteBuilder
- All Implemented Interfaces:
Builder<StagedQuote>
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()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedQuote with checking for non-null required valuesbuilds StagedQuote without checking for non-null required valuesbusinessUnit
(BusinessUnitKeyReference businessUnit) The BusinessUnit for the Staged Quote.The BusinessUnit for the Staged Quote.createdAt
(ZonedDateTime createdAt) Date and time (UTC) the StagedQuote was initially created.IDs and references that created the StagedQuote.createdBy
(Function<CreatedByBuilder, CreatedByBuilder> builder) IDs and references that created the StagedQuote.custom
(CustomFields custom) Custom Fields of the Staged Quote.custom
(Function<CustomFieldsBuilder, CustomFieldsBuilder> builder) Custom Fields of the Staged Quote.customer
(CustomerReference customer) The Buyer who requested the Quote.The Buyer who requested the Quote.The BusinessUnit for the Staged Quote.Date and time (UTC) the StagedQuote was initially created.IDs and references that created the StagedQuote.Custom Fields of the Staged Quote.The Buyer who requested the Quote.getId()
The unique ID of the StagedQuote.getKey()
User-specific unique identifier of the staged quote.Date and time (UTC) the StagedQuote was last updated.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.Cart containing the offered items.Quote Request related to the Staged Quote.Message from the Seller included in the offer.Predefined states tracking the status of the Staged Quote.getState()
State of the Staged Quote.getStore()
The Store to which the Buyer belongs.Expiration date for the Quote.Current version of the StagedQuote.The unique ID of the StagedQuote.User-specific unique identifier of the staged quote.lastModifiedAt
(ZonedDateTime lastModifiedAt) Date and time (UTC) the StagedQuote was last updated.lastModifiedBy
(LastModifiedBy lastModifiedBy) IDs and references that last modified the StagedQuote.IDs and references that last modified the StagedQuote.static StagedQuoteBuilder
of()
factory method for an instance of StagedQuoteBuilderstatic StagedQuoteBuilder
of
(StagedQuote template) create builder for StagedQuote instancepurchaseOrderNumber
(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.quotationCart
(CartReference quotationCart) Cart containing the offered items.Cart containing the offered items.quoteRequest
(QuoteRequestReference quoteRequest) Quote Request related to the Staged Quote.Quote Request related to the Staged Quote.sellerComment
(String sellerComment) Message from the Seller included in the offer.stagedQuoteState
(StagedQuoteState stagedQuoteState) Predefined states tracking the status of the Staged Quote.state
(StateReference state) State of the Staged Quote.State of the Staged Quote.store
(StoreKeyReference store) The Store to which the Buyer belongs.The Store to which the Buyer belongs.validTo
(ZonedDateTime validTo) Expiration date for the Quote.Current version of the StagedQuote.The BusinessUnit for the Staged Quote.withCreatedBy
(Function<CreatedByBuilder, CreatedBy> builder) IDs and references that created the StagedQuote.withCustom
(Function<CustomFieldsBuilder, CustomFields> builder) Custom Fields of the Staged Quote.The Buyer who requested the Quote.IDs and references that last modified the StagedQuote.Cart containing the offered items.Quote Request related to the Staged Quote.withState
(Function<StateReferenceBuilder, StateReference> builder) State of the Staged Quote.The Store to which the Buyer belongs.
-
Constructor Details
-
StagedQuoteBuilder
public StagedQuoteBuilder()
-
-
Method Details
-
id
The unique ID of the StagedQuote.
- Parameters:
id
- value to be set- Returns:
- Builder
-
version
Current version of the StagedQuote.
- Parameters:
version
- value to be set- Returns:
- Builder
-
createdAt
Date and time (UTC) the StagedQuote was initially created.
- Parameters:
createdAt
- value to be set- Returns:
- Builder
-
lastModifiedAt
Date and time (UTC) the StagedQuote was last updated.
- Parameters:
lastModifiedAt
- value to be set- Returns:
- Builder
-
key
User-specific unique identifier of the staged quote.
- Parameters:
key
- value to be set- Returns:
- Builder
-
lastModifiedBy
public StagedQuoteBuilder lastModifiedBy(Function<LastModifiedByBuilder, LastModifiedByBuilder> builder) IDs and references that last modified the StagedQuote.
- Parameters:
builder
- function to build the lastModifiedBy value- Returns:
- Builder
-
withLastModifiedBy
public StagedQuoteBuilder withLastModifiedBy(Function<LastModifiedByBuilder, LastModifiedBy> builder) IDs and references that last modified the StagedQuote.
- Parameters:
builder
- function to build the lastModifiedBy value- Returns:
- Builder
-
lastModifiedBy
IDs and references that last modified the StagedQuote.
- Parameters:
lastModifiedBy
- value to be set- Returns:
- Builder
-
createdBy
IDs and references that created the StagedQuote.
- Parameters:
builder
- function to build the createdBy value- Returns:
- Builder
-
withCreatedBy
IDs and references that created the StagedQuote.
- Parameters:
builder
- function to build the createdBy value- Returns:
- Builder
-
createdBy
IDs and references that created the StagedQuote.
- Parameters:
createdBy
- value to be set- Returns:
- Builder
-
stagedQuoteState
Predefined states tracking the status of the Staged Quote.
- Parameters:
stagedQuoteState
- value to be set- Returns:
- Builder
-
customer
public StagedQuoteBuilder customer(Function<CustomerReferenceBuilder, CustomerReferenceBuilder> builder) The Buyer who requested the Quote.
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
withCustomer
public StagedQuoteBuilder withCustomer(Function<CustomerReferenceBuilder, CustomerReference> builder) The Buyer who requested the Quote.
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
customer
The Buyer who requested the Quote.
- Parameters:
customer
- value to be set- Returns:
- Builder
-
quoteRequest
public StagedQuoteBuilder quoteRequest(Function<QuoteRequestReferenceBuilder, QuoteRequestReferenceBuilder> builder) Quote Request related to the Staged Quote.
- Parameters:
builder
- function to build the quoteRequest value- Returns:
- Builder
-
withQuoteRequest
public StagedQuoteBuilder withQuoteRequest(Function<QuoteRequestReferenceBuilder, QuoteRequestReference> builder) Quote Request related to the Staged Quote.
- Parameters:
builder
- function to build the quoteRequest value- Returns:
- Builder
-
quoteRequest
Quote Request related to the Staged Quote.
- Parameters:
quoteRequest
- value to be set- Returns:
- Builder
-
quotationCart
public StagedQuoteBuilder quotationCart(Function<CartReferenceBuilder, CartReferenceBuilder> builder) Cart containing the offered items. May contain either DirectDiscounts or CartDiscounts.
- Parameters:
builder
- function to build the quotationCart value- Returns:
- Builder
-
withQuotationCart
Cart containing the offered items. May contain either DirectDiscounts or CartDiscounts.
- Parameters:
builder
- function to build the quotationCart value- Returns:
- Builder
-
quotationCart
Cart containing the offered items. May contain either DirectDiscounts or CartDiscounts.
- Parameters:
quotationCart
- value to be set- Returns:
- Builder
-
validTo
Expiration date for the Quote.
- Parameters:
validTo
- value to be set- Returns:
- Builder
-
sellerComment
Message from the Seller included in the offer.
- Parameters:
sellerComment
- value to be set- Returns:
- Builder
-
custom
Custom Fields of the Staged Quote.
- Parameters:
builder
- function to build the custom value- Returns:
- Builder
-
withCustom
Custom Fields of the Staged Quote.
- Parameters:
builder
- function to build the custom value- Returns:
- Builder
-
custom
Custom Fields of the Staged Quote.
- Parameters:
custom
- value to be set- Returns:
- Builder
-
state
State of the Staged Quote. This reference can point to a State in a custom workflow.
- Parameters:
builder
- function to build the state value- Returns:
- Builder
-
withState
State of the Staged Quote. This reference can point to a State in a custom workflow.
- Parameters:
builder
- function to build the state value- Returns:
- Builder
-
state
State of the Staged Quote. This reference can point to a State in a custom workflow.
- Parameters:
state
- value to be set- Returns:
- Builder
-
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.
- Parameters:
purchaseOrderNumber
- value to be set- Returns:
- Builder
-
businessUnit
public StagedQuoteBuilder businessUnit(Function<BusinessUnitKeyReferenceBuilder, BusinessUnitKeyReferenceBuilder> builder) The BusinessUnit for the Staged Quote.
- Parameters:
builder
- function to build the businessUnit value- Returns:
- Builder
-
withBusinessUnit
public StagedQuoteBuilder withBusinessUnit(Function<BusinessUnitKeyReferenceBuilder, BusinessUnitKeyReference> builder) The BusinessUnit for the Staged Quote.
- Parameters:
builder
- function to build the businessUnit value- Returns:
- Builder
-
businessUnit
The BusinessUnit for the Staged Quote.
- Parameters:
businessUnit
- value to be set- Returns:
- Builder
-
store
public StagedQuoteBuilder store(Function<StoreKeyReferenceBuilder, StoreKeyReferenceBuilder> builder) The Store to which the Buyer belongs.
- Parameters:
builder
- function to build the store value- Returns:
- Builder
-
withStore
The Store to which the Buyer belongs.
- Parameters:
builder
- function to build the store value- Returns:
- Builder
-
store
The Store to which the Buyer belongs.
- Parameters:
store
- value to be set- Returns:
- Builder
-
getId
The unique ID of the StagedQuote.
- Returns:
- id
-
getVersion
Current version of the StagedQuote.
- Returns:
- version
-
getCreatedAt
Date and time (UTC) the StagedQuote was initially created.
- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the StagedQuote was last updated.
- Returns:
- lastModifiedAt
-
getKey
User-specific unique identifier of the staged quote.
- Returns:
- key
-
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
Expiration date for the Quote.
- Returns:
- validTo
-
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
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
-
build
builds StagedQuote with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedQuote>
- Returns:
- StagedQuote
-
buildUnchecked
builds StagedQuote without checking for non-null required values- Returns:
- StagedQuote
-
of
factory method for an instance of StagedQuoteBuilder- Returns:
- builder
-
of
create builder for StagedQuote instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-