Class QuoteDraftImpl
java.lang.Object
com.commercetools.api.models.quote.QuoteDraftImpl
- All Implemented Interfaces:
CustomizableDraft<QuoteDraft>
,QuoteDraft
,WithKey
,io.vrap.rmf.base.client.Draft<QuoteDraft>
,io.vrap.rmf.base.client.ModelBase
QuoteDraft
-
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 Quote.getKey()
User-defined unique identifier for the Quote.StagedQuote from which the Quote is created.Iftrue
, thestagedQuoteState
of the referenced StagedQuote will be set toSent
.Current version of the StagedQuote.getState()
State of the Quote.int
hashCode()
void
setCustom
(CustomFieldsDraft custom) Custom Fields to be added to the Quote.void
User-defined unique identifier for the Quote.void
setStagedQuote
(StagedQuoteResourceIdentifier stagedQuote) StagedQuote from which the Quote is created.void
setStagedQuoteStateToSent
(Boolean stagedQuoteStateToSent) Iftrue
, thestagedQuoteState
of the referenced StagedQuote will be set toSent
.void
setStagedQuoteVersion
(Long stagedQuoteVersion) Current version of the StagedQuote.void
setState
(StateReference state) State of the Quote.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.CustomizableDraft
unwrapCustomizableDraft
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.quote.QuoteDraft
withQuoteDraft
-
Constructor Details
-
QuoteDraftImpl
public QuoteDraftImpl()create empty instance
-
-
Method Details
-
getKey
User-defined unique identifier for the Quote.
- Specified by:
getKey
in interfaceQuoteDraft
- Specified by:
getKey
in interfaceWithKey
- Returns:
- key
-
getStagedQuote
StagedQuote from which the Quote is created.
- Specified by:
getStagedQuote
in interfaceQuoteDraft
- Returns:
- stagedQuote
-
getStagedQuoteVersion
Current version of the StagedQuote.
- Specified by:
getStagedQuoteVersion
in interfaceQuoteDraft
- Returns:
- stagedQuoteVersion
-
getStagedQuoteStateToSent
If
true
, thestagedQuoteState
of the referenced StagedQuote will be set toSent
.- Specified by:
getStagedQuoteStateToSent
in interfaceQuoteDraft
- Returns:
- stagedQuoteStateToSent
-
getState
State of the Quote. This reference can point to a State in a custom workflow.
- Specified by:
getState
in interfaceQuoteDraft
- Returns:
- state
-
getCustom
Custom Fields to be added to the Quote.
- If specified, the Custom Fields are merged with the Custom Fields on the referenced StagedQuote and added to the Quote.
- If empty, the Custom Fields on the referenced StagedQuote are added to the Quote automatically.
- Specified by:
getCustom
in interfaceCustomizableDraft<QuoteDraft>
- Specified by:
getCustom
in interfaceQuoteDraft
- Returns:
- custom
-
setKey
Description copied from interface:QuoteDraft
User-defined unique identifier for the Quote.
- Specified by:
setKey
in interfaceQuoteDraft
- Parameters:
key
- value to be set
-
setStagedQuote
Description copied from interface:QuoteDraft
StagedQuote from which the Quote is created.
- Specified by:
setStagedQuote
in interfaceQuoteDraft
- Parameters:
stagedQuote
- value to be set
-
setStagedQuoteVersion
Description copied from interface:QuoteDraft
Current version of the StagedQuote.
- Specified by:
setStagedQuoteVersion
in interfaceQuoteDraft
- Parameters:
stagedQuoteVersion
- value to be set
-
setStagedQuoteStateToSent
Description copied from interface:QuoteDraft
If
true
, thestagedQuoteState
of the referenced StagedQuote will be set toSent
.- Specified by:
setStagedQuoteStateToSent
in interfaceQuoteDraft
- Parameters:
stagedQuoteStateToSent
- value to be set
-
setState
Description copied from interface:QuoteDraft
State of the Quote. This reference can point to a State in a custom workflow.
- Specified by:
setState
in interfaceQuoteDraft
- Parameters:
state
- value to be set
-
setCustom
Description copied from interface:QuoteDraft
Custom Fields to be added to the Quote.
- If specified, the Custom Fields are merged with the Custom Fields on the referenced StagedQuote and added to the Quote.
- If empty, the Custom Fields on the referenced StagedQuote are added to the Quote automatically.
- Specified by:
setCustom
in interfaceCustomizableDraft<QuoteDraft>
- Specified by:
setCustom
in interfaceQuoteDraft
- Parameters:
custom
- value to be set
-
equals
-
hashCode
public int hashCode()
-