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 StagedQuoteDraftBuilder
builder()
builder factory method for StagedQuoteDraftstatic StagedQuoteDraftBuilder
builder
(StagedQuoteDraft template) create builder for StagedQuoteDraft instancestatic StagedQuoteDraft
deepCopy
(StagedQuoteDraft template) factory method to create a deep copy of StagedQuoteDraft@Valid CustomFieldsDraft
Custom Fields to be added to the StagedQuote.getKey()
User-defined unique identifier for the StagedQuote.@NotNull @Valid QuoteRequestResourceIdentifier
QuoteRequest from which the StagedQuote is created.Iftrue
, thequoteRequestState
of the referenced QuoteRequest will be set toAccepted
.@NotNull Long
Current version of the QuoteRequest.@Valid StateReference
getState()
State of the Staged Quote.static StagedQuoteDraft
of()
factory methodstatic StagedQuoteDraft
of
(StagedQuoteDraft template) factory method to create a shallow copy StagedQuoteDraftvoid
setCustom
(CustomFieldsDraft custom) Custom Fields to be added to the StagedQuote.void
User-defined unique identifier for the StagedQuote.void
setQuoteRequest
(QuoteRequestResourceIdentifier quoteRequest) QuoteRequest from which the StagedQuote is created.void
setQuoteRequestStateToAccepted
(Boolean quoteRequestStateToAccepted) Iftrue
, thequoteRequestState
of the referenced QuoteRequest will be set toAccepted
.void
setQuoteRequestVersion
(Long quoteRequestVersion) Current version of the QuoteRequest.void
setState
(StateReference state) State of the Staged Quote.static com.fasterxml.jackson.core.type.TypeReference<StagedQuoteDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStagedQuoteDraft
(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
, thequoteRequestState
of 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
, thequoteRequestState
of 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
-
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
-