Class StagedQuoteDraftImpl
java.lang.Object
com.commercetools.api.models.staged_quote.StagedQuoteDraftImpl
- All Implemented Interfaces:
StagedQuoteDraft
,WithKey
,io.vrap.rmf.base.client.Draft<StagedQuoteDraft>
,io.vrap.rmf.base.client.ModelBase
public class StagedQuoteDraftImpl
extends Object
implements StagedQuoteDraft, io.vrap.rmf.base.client.ModelBase
StagedQuoteDraft
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Custom Fields to be added to the StagedQuote.getKey()
User-defined unique identifier for the StagedQuote.QuoteRequest from which the StagedQuote is created.Iftrue
, thequoteRequestState
of the referenced QuoteRequest will be set toAccepted
.Current version of the QuoteRequest.getState()
State of the Staged Quote.int
hashCode()
void
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.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.staged_quote.StagedQuoteDraft
withStagedQuoteDraft
-
Constructor Details
-
StagedQuoteDraftImpl
public StagedQuoteDraftImpl()create empty instance
-
-
Method Details
-
getQuoteRequest
QuoteRequest from which the StagedQuote is created.
- Specified by:
getQuoteRequest
in interfaceStagedQuoteDraft
- Returns:
- quoteRequest
-
getQuoteRequestVersion
Current version of the QuoteRequest.
- Specified by:
getQuoteRequestVersion
in interfaceStagedQuoteDraft
- Returns:
- quoteRequestVersion
-
getQuoteRequestStateToAccepted
If
true
, thequoteRequestState
of the referenced QuoteRequest will be set toAccepted
.- Specified by:
getQuoteRequestStateToAccepted
in interfaceStagedQuoteDraft
- Returns:
- quoteRequestStateToAccepted
-
getKey
User-defined unique identifier for the StagedQuote.
- Specified by:
getKey
in interfaceStagedQuoteDraft
- Specified by:
getKey
in interfaceWithKey
- Returns:
- key
-
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.
- Specified by:
getCustom
in interfaceStagedQuoteDraft
- Returns:
- custom
-
getState
State of the Staged Quote. This reference can point to a State in a custom workflow.
- Specified by:
getState
in interfaceStagedQuoteDraft
- Returns:
- state
-
setQuoteRequest
Description copied from interface:StagedQuoteDraft
QuoteRequest from which the StagedQuote is created.
- Specified by:
setQuoteRequest
in interfaceStagedQuoteDraft
- Parameters:
quoteRequest
- value to be set
-
setQuoteRequestVersion
Description copied from interface:StagedQuoteDraft
Current version of the QuoteRequest.
- Specified by:
setQuoteRequestVersion
in interfaceStagedQuoteDraft
- Parameters:
quoteRequestVersion
- value to be set
-
setQuoteRequestStateToAccepted
Description copied from interface:StagedQuoteDraft
If
true
, thequoteRequestState
of the referenced QuoteRequest will be set toAccepted
.- Specified by:
setQuoteRequestStateToAccepted
in interfaceStagedQuoteDraft
- Parameters:
quoteRequestStateToAccepted
- value to be set
-
setKey
Description copied from interface:StagedQuoteDraft
User-defined unique identifier for the StagedQuote.
- Specified by:
setKey
in interfaceStagedQuoteDraft
- Parameters:
key
- value to be set
-
setCustom
Description copied from interface:StagedQuoteDraft
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.
- Specified by:
setCustom
in interfaceStagedQuoteDraft
- Parameters:
custom
- value to be set
-
setState
Description copied from interface:StagedQuoteDraft
State of the Staged Quote. This reference can point to a State in a custom workflow.
- Specified by:
setState
in interfaceStagedQuoteDraft
- Parameters:
state
- value to be set
-
equals
-
hashCode
-