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 MyOrderFromQuoteDraftBuilder
builder()
builder factory method for MyOrderFromQuoteDraftstatic MyOrderFromQuoteDraftBuilder
builder
(MyOrderFromQuoteDraft template) create builder for MyOrderFromQuoteDraft instancecopyDeep()
static MyOrderFromQuoteDraft
deepCopy
(MyOrderFromQuoteDraft template) factory method to create a deep copy of MyOrderFromQuoteDraft@NotNull String
getId()
id
of the Quote from which the Order is created.@NotNull Long
Currentversion
of the Quote from which the Order is created.static MyOrderFromQuoteDraft
of()
factory methodstatic MyOrderFromQuoteDraft
of
(MyOrderFromQuoteDraft template) factory method to create a shallow copy MyOrderFromQuoteDraftvoid
id
of the Quote from which the Order is created.void
setQuoteStateToAccepted
(Boolean quoteStateToAccepted) void
setVersion
(Long version) Currentversion
of 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> T
accessor map function
-
Method Details
-
getId
id
of the Quote from which the Order is created.- Returns:
- id
-
getVersion
Current
version
of the Quote from which the Order is created.- Returns:
- version
-
getQuoteStateToAccepted
Boolean getQuoteStateToAccepted()Set to
true
, if thequoteState
of the referenced Quote should be set toAccepted
.- Returns:
- quoteStateToAccepted
-
setId
id
of the Quote from which the Order is created.- Parameters:
id
- value to be set
-
setVersion
Current
version
of the Quote from which the Order is created.- Parameters:
version
- value to be set
-
setQuoteStateToAccepted
Set to
true
, if thequoteState
of 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
-