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 MyOrderFromCartDraftBuilderbuilder()builder factory method for MyOrderFromCartDraftstatic MyOrderFromCartDraftBuilderbuilder(MyOrderFromCartDraft template) create builder for MyOrderFromCartDraft instancecopyDeep()static MyOrderFromCartDraftdeepCopy(MyOrderFromCartDraft template) factory method to create a deep copy of MyOrderFromCartDraft@NotNull StringgetId()idof the Cart from which the Order is created.@NotNull LongCurrentversionof the Cart from which the Order is created.static MyOrderFromCartDraftof()factory methodstatic MyOrderFromCartDraftof(MyOrderFromCartDraft template) factory method to create a shallow copy MyOrderFromCartDraftvoididof the Cart from which the Order is created.voidsetVersion(Long version) Currentversionof 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> TwithMyOrderFromCartDraft(Function<MyOrderFromCartDraft, T> helper) accessor map function
-
Method Details
-
getId
idof the Cart from which the Order is created.- Returns:
- id
-
getVersion
Current
versionof the Cart from which the Order is created.- Returns:
- version
-
setId
idof the Cart from which the Order is created.- Parameters:
id- value to be set
-
setVersion
Current
versionof 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
-
copyDeep
MyOrderFromCartDraft copyDeep() -
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
-