Class ShoppingListDraftImpl
- All Implemented Interfaces:
CustomizableDraft<ShoppingListDraft>
,ShoppingListDraft
,WithKey
,io.vrap.rmf.base.client.Draft<ShoppingListDraft>
,io.vrap.rmf.base.client.ModelBase
-
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
Identifies ShoppingLists belonging to an anonymous session.Custom Fields defined for the ShoppingList.The Customer the ShoppingList should be associated to.Number of days after which the ShoppingList will be automatically deleted if it has not been modified.Description of the ShoppingList.getKey()
User-defined unique identifier for the ShoppingList.Line Items (containing Products) to add to the ShoppingList.getName()
Name of the ShoppingList.getSlug()
Human-readable identifiers usually used as deep-link URL to the related ShoppingList.getStore()
Assigns the new ShoppingList to the Store.Line Items (containing text values) to add to the ShoppingList.int
hashCode()
void
setAnonymousId
(String anonymousId) Identifies ShoppingLists belonging to an anonymous session.void
setCustom
(CustomFieldsDraft custom) Custom Fields defined for the ShoppingList.void
setCustomer
(CustomerResourceIdentifier customer) The Customer the ShoppingList should be associated to.void
setDeleteDaysAfterLastModification
(Long deleteDaysAfterLastModification) Number of days after which the ShoppingList will be automatically deleted if it has not been modified.void
setDescription
(LocalizedString description) Description of the ShoppingList.void
User-defined unique identifier for the ShoppingList.void
setLineItems
(ShoppingListLineItemDraft... lineItems) Line Items (containing Products) to add to the ShoppingList.void
setLineItems
(List<ShoppingListLineItemDraft> lineItems) Line Items (containing Products) to add to the ShoppingList.void
setName
(LocalizedString name) Name of the ShoppingList.void
setSlug
(LocalizedString slug) Human-readable identifiers usually used as deep-link URL to the related ShoppingList.void
setStore
(StoreResourceIdentifier store) Assigns the new ShoppingList to the Store.void
setTextLineItems
(TextLineItemDraft... textLineItems) Line Items (containing text values) to add to the ShoppingList.void
setTextLineItems
(List<TextLineItemDraft> textLineItems) Line Items (containing text values) to add to the ShoppingList.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.shopping_list.ShoppingListDraft
withShoppingListDraft
-
Constructor Details
-
ShoppingListDraftImpl
public ShoppingListDraftImpl()create empty instance
-
-
Method Details
-
getName
Name of the ShoppingList.
- Specified by:
getName
in interfaceShoppingListDraft
- Returns:
- name
-
getSlug
Human-readable identifiers usually used as deep-link URL to the related ShoppingList. Each slug is unique across a Project, but a ShoppingList can have the same slug for different languages. The slug must match the pattern
[a-zA-Z0-9_-]{2,256}
.- Specified by:
getSlug
in interfaceShoppingListDraft
- Returns:
- slug
-
getCustomer
The Customer the ShoppingList should be associated to.
- Specified by:
getCustomer
in interfaceShoppingListDraft
- Returns:
- customer
-
getKey
User-defined unique identifier for the ShoppingList.
- Specified by:
getKey
in interfaceShoppingListDraft
- Specified by:
getKey
in interfaceWithKey
- Returns:
- key
-
getDescription
Description of the ShoppingList.
- Specified by:
getDescription
in interfaceShoppingListDraft
- Returns:
- description
-
getAnonymousId
Identifies ShoppingLists belonging to an anonymous session.
- Specified by:
getAnonymousId
in interfaceShoppingListDraft
- Returns:
- anonymousId
-
getDeleteDaysAfterLastModification
Number of days after which the ShoppingList will be automatically deleted if it has not been modified. If not set, the default value configured in the Project is used.
- Specified by:
getDeleteDaysAfterLastModification
in interfaceShoppingListDraft
- Returns:
- deleteDaysAfterLastModification
-
getLineItems
Line Items (containing Products) to add to the ShoppingList.
- Specified by:
getLineItems
in interfaceShoppingListDraft
- Returns:
- lineItems
-
getTextLineItems
Line Items (containing text values) to add to the ShoppingList.
- Specified by:
getTextLineItems
in interfaceShoppingListDraft
- Returns:
- textLineItems
-
getStore
Assigns the new ShoppingList to the Store.
- Specified by:
getStore
in interfaceShoppingListDraft
- Returns:
- store
-
getCustom
Custom Fields defined for the ShoppingList.
- Specified by:
getCustom
in interfaceCustomizableDraft<ShoppingListDraft>
- Specified by:
getCustom
in interfaceShoppingListDraft
- Returns:
- custom
-
setName
Description copied from interface:ShoppingListDraft
Name of the ShoppingList.
- Specified by:
setName
in interfaceShoppingListDraft
- Parameters:
name
- value to be set
-
setSlug
Description copied from interface:ShoppingListDraft
Human-readable identifiers usually used as deep-link URL to the related ShoppingList. Each slug is unique across a Project, but a ShoppingList can have the same slug for different languages. The slug must match the pattern
[a-zA-Z0-9_-]{2,256}
.- Specified by:
setSlug
in interfaceShoppingListDraft
- Parameters:
slug
- value to be set
-
setCustomer
Description copied from interface:ShoppingListDraft
The Customer the ShoppingList should be associated to.
- Specified by:
setCustomer
in interfaceShoppingListDraft
- Parameters:
customer
- value to be set
-
setKey
Description copied from interface:ShoppingListDraft
User-defined unique identifier for the ShoppingList.
- Specified by:
setKey
in interfaceShoppingListDraft
- Parameters:
key
- value to be set
-
setDescription
Description copied from interface:ShoppingListDraft
Description of the ShoppingList.
- Specified by:
setDescription
in interfaceShoppingListDraft
- Parameters:
description
- value to be set
-
setAnonymousId
Description copied from interface:ShoppingListDraft
Identifies ShoppingLists belonging to an anonymous session.
- Specified by:
setAnonymousId
in interfaceShoppingListDraft
- Parameters:
anonymousId
- value to be set
-
setDeleteDaysAfterLastModification
Description copied from interface:ShoppingListDraft
Number of days after which the ShoppingList will be automatically deleted if it has not been modified. If not set, the default value configured in the Project is used.
- Specified by:
setDeleteDaysAfterLastModification
in interfaceShoppingListDraft
- Parameters:
deleteDaysAfterLastModification
- value to be set
-
setLineItems
Description copied from interface:ShoppingListDraft
Line Items (containing Products) to add to the ShoppingList.
- Specified by:
setLineItems
in interfaceShoppingListDraft
- Parameters:
lineItems
- values to be set
-
setLineItems
Description copied from interface:ShoppingListDraft
Line Items (containing Products) to add to the ShoppingList.
- Specified by:
setLineItems
in interfaceShoppingListDraft
- Parameters:
lineItems
- values to be set
-
setTextLineItems
Description copied from interface:ShoppingListDraft
Line Items (containing text values) to add to the ShoppingList.
- Specified by:
setTextLineItems
in interfaceShoppingListDraft
- Parameters:
textLineItems
- values to be set
-
setTextLineItems
Description copied from interface:ShoppingListDraft
Line Items (containing text values) to add to the ShoppingList.
- Specified by:
setTextLineItems
in interfaceShoppingListDraft
- Parameters:
textLineItems
- values to be set
-
setStore
Description copied from interface:ShoppingListDraft
Assigns the new ShoppingList to the Store.
- Specified by:
setStore
in interfaceShoppingListDraft
- Parameters:
store
- value to be set
-
setCustom
Description copied from interface:ShoppingListDraft
Custom Fields defined for the ShoppingList.
- Specified by:
setCustom
in interfaceCustomizableDraft<ShoppingListDraft>
- Specified by:
setCustom
in interfaceShoppingListDraft
- Parameters:
custom
- value to be set
-
equals
-
hashCode
-