Package com.commercetools.api.models.me
Interface MyOrderFromQuoteDraft
- All Superinterfaces:
Draft<MyOrderFromQuoteDraft>
MyOrderFromQuoteDraft
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyOrderFromQuoteDraft myOrderFromQuoteDraft = MyOrderFromQuoteDraft.builder()
.id("{id}")
.version(0.3)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic MyOrderFromQuoteDraftBuilderbuilder()builder factory method for MyOrderFromQuoteDraftstatic MyOrderFromQuoteDraftBuilderbuilder(MyOrderFromQuoteDraft template) create builder for MyOrderFromQuoteDraft instancecopyDeep()static MyOrderFromQuoteDraftdeepCopy(MyOrderFromQuoteDraft template) factory method to create a deep copy of MyOrderFromQuoteDraft@NotNull StringgetId()idof the Quote from which the Order is created.@NotNull LongCurrentversionof the Quote from which the Order is created.static MyOrderFromQuoteDraftof()factory methodstatic MyOrderFromQuoteDraftof(MyOrderFromQuoteDraft template) factory method to create a shallow copy MyOrderFromQuoteDraftvoididof the Quote from which the Order is created.voidsetQuoteStateToAccepted(Boolean quoteStateToAccepted) voidsetVersion(Long version) Currentversionof the Quote from which the Order is created.static com.fasterxml.jackson.core.type.TypeReference<MyOrderFromQuoteDraft>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getId
idof the Quote from which the Order is created.- Returns:
- id
-
getVersion
Current
versionof the Quote from which the Order is created.- Returns:
- version
-
getQuoteStateToAccepted
Boolean getQuoteStateToAccepted()Set to
true, if thequoteStateof the referenced Quote should be set toAccepted.- Returns:
- quoteStateToAccepted
-
setId
idof the Quote from which the Order is created.- Parameters:
id- value to be set
-
setVersion
Current
versionof the Quote from which the Order is created.- Parameters:
version- value to be set
-
setQuoteStateToAccepted
Set to
true, if thequoteStateof the referenced Quote should be set toAccepted.- Parameters:
quoteStateToAccepted- value to be set
-
of
factory method- Returns:
- instance of MyOrderFromQuoteDraft
-
of
factory method to create a shallow copy MyOrderFromQuoteDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
MyOrderFromQuoteDraft copyDeep() -
deepCopy
factory method to create a deep copy of MyOrderFromQuoteDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyOrderFromQuoteDraft- Returns:
- builder
-
builder
create builder for MyOrderFromQuoteDraft instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMyOrderFromQuoteDraft
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
-