Package com.commercetools.api.models.me
Interface MyOrderFromCartDraft
- All Superinterfaces:
Draft<MyOrderFromCartDraft>
MyOrderFromCartDraft
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyOrderFromCartDraft myOrderFromCartDraft = MyOrderFromCartDraft.builder()
.id("{id}")
.version(0.3)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic MyOrderFromCartDraftBuilder
builder()
builder factory method for MyOrderFromCartDraftstatic MyOrderFromCartDraftBuilder
builder
(MyOrderFromCartDraft template) create builder for MyOrderFromCartDraft instancestatic MyOrderFromCartDraft
deepCopy
(MyOrderFromCartDraft template) factory method to create a deep copy of MyOrderFromCartDraft@NotNull String
getId()
id
of the Cart from which the Order is created.@NotNull Long
Currentversion
of the Cart from which the Order is created.static MyOrderFromCartDraft
of()
factory methodstatic MyOrderFromCartDraft
of
(MyOrderFromCartDraft template) factory method to create a shallow copy MyOrderFromCartDraftvoid
id
of the Cart from which the Order is created.void
setVersion
(Long version) Currentversion
of the Cart from which the Order is created.static com.fasterxml.jackson.core.type.TypeReference<MyOrderFromCartDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withMyOrderFromCartDraft
(Function<MyOrderFromCartDraft, T> helper) accessor map function
-
Method Details
-
getId
id
of the Cart from which the Order is created.- Returns:
- id
-
getVersion
Current
version
of the Cart from which the Order is created.- Returns:
- version
-
setId
id
of the Cart from which the Order is created.- Parameters:
id
- value to be set
-
setVersion
Current
version
of the Cart from which the Order is created.- Parameters:
version
- value to be set
-
of
factory method- Returns:
- instance of MyOrderFromCartDraft
-
of
factory method to create a shallow copy MyOrderFromCartDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of MyOrderFromCartDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyOrderFromCartDraft- Returns:
- builder
-
builder
create builder for MyOrderFromCartDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyOrderFromCartDraft
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
-