Interface StagedQuoteDraft
- All Superinterfaces:
Draft<StagedQuoteDraft>,WithKey
StagedQuoteDraft
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedQuoteDraft stagedQuoteDraft = StagedQuoteDraft.builder()
.quoteRequest(quoteRequestBuilder -> quoteRequestBuilder)
.quoteRequestVersion(0.3)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic StagedQuoteDraftBuilderbuilder()builder factory method for StagedQuoteDraftstatic StagedQuoteDraftBuilderbuilder(StagedQuoteDraft template) create builder for StagedQuoteDraft instancecopyDeep()static StagedQuoteDraftdeepCopy(StagedQuoteDraft template) factory method to create a deep copy of StagedQuoteDraft@Valid CustomFieldsDraftCustom Fields to be added to the StagedQuote.getKey()User-defined unique identifier for the StagedQuote.@NotNull @Valid QuoteRequestResourceIdentifierQuoteRequest from which the StagedQuote is created.@NotNull LongCurrent version of the QuoteRequest.@Valid StateReferencegetState()State of the Staged Quote.static StagedQuoteDraftof()factory methodstatic StagedQuoteDraftof(StagedQuoteDraft template) factory method to create a shallow copy StagedQuoteDraftvoidsetCustom(CustomFieldsDraft custom) Custom Fields to be added to the StagedQuote.voidUser-defined unique identifier for the StagedQuote.voidsetQuoteRequest(QuoteRequestResourceIdentifier quoteRequest) QuoteRequest from which the StagedQuote is created.voidsetQuoteRequestStateToAccepted(Boolean quoteRequestStateToAccepted) voidsetQuoteRequestVersion(Long quoteRequestVersion) Current version of the QuoteRequest.voidsetState(StateReference state) State of the Staged Quote.static com.fasterxml.jackson.core.type.TypeReference<StagedQuoteDraft>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithStagedQuoteDraft(Function<StagedQuoteDraft, T> helper) accessor map function
-
Method Details
-
getQuoteRequest
QuoteRequest from which the StagedQuote is created.
- Returns:
- quoteRequest
-
getQuoteRequestVersion
Current version of the QuoteRequest.
- Returns:
- quoteRequestVersion
-
getQuoteRequestStateToAccepted
Boolean getQuoteRequestStateToAccepted()If
true, thequoteRequestStateof the referenced QuoteRequest will be set toAccepted.- Returns:
- quoteRequestStateToAccepted
-
getKey
String getKey()User-defined unique identifier for the StagedQuote.
-
getCustom
Custom Fields to be added to the StagedQuote.
- If specified, the Custom Fields are merged with the Custom Fields on the referenced QuoteRequest and added to the StagedQuote.
- If empty, the Custom Fields on the referenced QuoteRequest are added to the StagedQuote automatically.
- Returns:
- custom
-
getState
State of the Staged Quote. This reference can point to a State in a custom workflow.
- Returns:
- state
-
setQuoteRequest
QuoteRequest from which the StagedQuote is created.
- Parameters:
quoteRequest- value to be set
-
setQuoteRequestVersion
Current version of the QuoteRequest.
- Parameters:
quoteRequestVersion- value to be set
-
setQuoteRequestStateToAccepted
If
true, thequoteRequestStateof the referenced QuoteRequest will be set toAccepted.- Parameters:
quoteRequestStateToAccepted- value to be set
-
setKey
User-defined unique identifier for the StagedQuote.
- Parameters:
key- value to be set
-
setCustom
Custom Fields to be added to the StagedQuote.
- If specified, the Custom Fields are merged with the Custom Fields on the referenced QuoteRequest and added to the StagedQuote.
- If empty, the Custom Fields on the referenced QuoteRequest are added to the StagedQuote automatically.
- 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
-
of
factory method- Returns:
- instance of StagedQuoteDraft
-
of
factory method to create a shallow copy StagedQuoteDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
StagedQuoteDraft copyDeep() -
deepCopy
factory method to create a deep copy of StagedQuoteDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedQuoteDraft- Returns:
- builder
-
builder
create builder for StagedQuoteDraft instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withStagedQuoteDraft
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
-