Class ShoppingListImpl
- All Implemented Interfaces:
BaseResource
,Customizable<ShoppingList>
,DomainResource<ShoppingList>
,Identifiable<ShoppingList>
,Referencable<ShoppingList>
,ResourceIdentifiable<ShoppingList>
,ShoppingList
,ShoppingListMixin
,Versioned<ShoppingList>
,WithKey
,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.Date and time (UTC) the ShoppingList was initially created.Present on resources created after 1 February 2019 except for events not tracked.Custom Fields defined for the ShoppingList.Reference to a Customer associated with the ShoppingList.Number of days after which the ShoppingList will be automatically deleted if it has not been modified.Description of the ShoppingList.getId()
Unique identifier of the ShoppingList.getKey()
User-defined unique identifier of the ShoppingList.Date and time (UTC) the ShoppingList was last updated.Present on resources created after 1 February 2019 except for events not tracked.Line Items (containing Products) of the ShoppingList.getName()
Name of the ShoppingList.getSlug()
Human-readable identifiers usually used as deep-link URL to the related ShoppingList.getStore()
Store to which the ShoppingList is assigned.Line Items (containing text values) of the ShoppingList.Current version of the ShoppingList.int
hashCode()
void
setAnonymousId
(String anonymousId) Identifies ShoppingLists belonging to an anonymous session.void
setCreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the ShoppingList was initially created.void
setCreatedBy
(CreatedBy createdBy) Present on resources created after 1 February 2019 except for events not tracked.void
setCustom
(CustomFields custom) Custom Fields defined for the ShoppingList.void
setCustomer
(CustomerReference customer) Reference to a Customer associated with the ShoppingList.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
Unique identifier of the ShoppingList.void
User-defined unique identifier of the ShoppingList.void
setLastModifiedAt
(ZonedDateTime lastModifiedAt) Date and time (UTC) the ShoppingList was last updated.void
setLastModifiedBy
(LastModifiedBy lastModifiedBy) Present on resources created after 1 February 2019 except for events not tracked.void
setLineItems
(ShoppingListLineItem... lineItems) Line Items (containing Products) of the ShoppingList.void
setLineItems
(List<ShoppingListLineItem> lineItems) Line Items (containing Products) of 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
(StoreKeyReference store) Store to which the ShoppingList is assigned.void
setTextLineItems
(TextLineItem... textLineItems) Line Items (containing text values) of the ShoppingList.void
setTextLineItems
(List<TextLineItem> textLineItems) Line Items (containing text values) of the ShoppingList.void
setVersion
(Long version) Current version of the ShoppingList.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
Methods inherited from interface com.commercetools.api.models.Customizable
unwrapCustomizable
Methods inherited from interface com.commercetools.api.models.DomainResource
get
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.shopping_list.ShoppingList
withShoppingList
Methods inherited from interface com.commercetools.api.models.shopping_list.ShoppingListMixin
toReference, toResourceIdentifier
-
Constructor Details
-
ShoppingListImpl
public ShoppingListImpl()create empty instance
-
-
Method Details
-
getId
Unique identifier of the ShoppingList.
- Specified by:
getId
in interfaceBaseResource
- Specified by:
getId
in interfaceDomainResource<ShoppingList>
- Specified by:
getId
in interfaceIdentifiable<ShoppingList>
- Specified by:
getId
in interfaceShoppingList
- Specified by:
getId
in interfaceVersioned<ShoppingList>
- Returns:
- id
-
getVersion
Current version of the ShoppingList.
- Specified by:
getVersion
in interfaceBaseResource
- Specified by:
getVersion
in interfaceDomainResource<ShoppingList>
- Specified by:
getVersion
in interfaceShoppingList
- Specified by:
getVersion
in interfaceVersioned<ShoppingList>
- Returns:
- version
-
getCreatedAt
Date and time (UTC) the ShoppingList was initially created.
- Specified by:
getCreatedAt
in interfaceBaseResource
- Specified by:
getCreatedAt
in interfaceShoppingList
- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the ShoppingList was last updated.
- Specified by:
getLastModifiedAt
in interfaceBaseResource
- Specified by:
getLastModifiedAt
in interfaceShoppingList
- Returns:
- lastModifiedAt
-
getName
Name of the ShoppingList.
- Specified by:
getName
in interfaceShoppingList
- Returns:
- name
-
getKey
User-defined unique identifier of the ShoppingList.
- Specified by:
getKey
in interfaceShoppingList
- Specified by:
getKey
in interfaceWithKey
- Returns:
- key
-
getCustomer
Reference to a Customer associated with the ShoppingList.
- Specified by:
getCustomer
in interfaceShoppingList
- Returns:
- customer
-
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}
. For good performance, indexes are provided for the first 15languages
set on the Project.- Specified by:
getSlug
in interfaceShoppingList
- Returns:
- slug
-
getDescription
Description of the ShoppingList.
- Specified by:
getDescription
in interfaceShoppingList
- Returns:
- description
-
getLineItems
Line Items (containing Products) of the ShoppingList.
- Specified by:
getLineItems
in interfaceShoppingList
- Returns:
- lineItems
-
getTextLineItems
Line Items (containing text values) of the ShoppingList.
- Specified by:
getTextLineItems
in interfaceShoppingList
- Returns:
- textLineItems
-
getDeleteDaysAfterLastModification
Number of days after which the ShoppingList will be automatically deleted if it has not been modified.
- Specified by:
getDeleteDaysAfterLastModification
in interfaceShoppingList
- Returns:
- deleteDaysAfterLastModification
-
getAnonymousId
Identifies ShoppingLists belonging to an anonymous session.
- Specified by:
getAnonymousId
in interfaceShoppingList
- Returns:
- anonymousId
-
getStore
Store to which the ShoppingList is assigned.
- Specified by:
getStore
in interfaceShoppingList
- Returns:
- store
-
getCustom
Custom Fields defined for the ShoppingList.
- Specified by:
getCustom
in interfaceCustomizable<ShoppingList>
- Specified by:
getCustom
in interfaceShoppingList
- Returns:
- custom
-
getLastModifiedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
getLastModifiedBy
in interfaceShoppingList
- Returns:
- lastModifiedBy
-
getCreatedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
getCreatedBy
in interfaceShoppingList
- Returns:
- createdBy
-
setId
Description copied from interface:ShoppingList
Unique identifier of the ShoppingList.
- Specified by:
setId
in interfaceBaseResource
- Specified by:
setId
in interfaceShoppingList
- Parameters:
id
- value to be set
-
setVersion
Description copied from interface:ShoppingList
Current version of the ShoppingList.
- Specified by:
setVersion
in interfaceBaseResource
- Specified by:
setVersion
in interfaceShoppingList
- Parameters:
version
- value to be set
-
setCreatedAt
Description copied from interface:ShoppingList
Date and time (UTC) the ShoppingList was initially created.
- Specified by:
setCreatedAt
in interfaceBaseResource
- Specified by:
setCreatedAt
in interfaceShoppingList
- Parameters:
createdAt
- value to be set
-
setLastModifiedAt
Description copied from interface:ShoppingList
Date and time (UTC) the ShoppingList was last updated.
- Specified by:
setLastModifiedAt
in interfaceBaseResource
- Specified by:
setLastModifiedAt
in interfaceShoppingList
- Parameters:
lastModifiedAt
- value to be set
-
setName
Description copied from interface:ShoppingList
Name of the ShoppingList.
- Specified by:
setName
in interfaceShoppingList
- Parameters:
name
- value to be set
-
setKey
Description copied from interface:ShoppingList
User-defined unique identifier of the ShoppingList.
- Specified by:
setKey
in interfaceShoppingList
- Parameters:
key
- value to be set
-
setCustomer
Description copied from interface:ShoppingList
Reference to a Customer associated with the ShoppingList.
- Specified by:
setCustomer
in interfaceShoppingList
- Parameters:
customer
- value to be set
-
setSlug
Description copied from interface:ShoppingList
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}
. For good performance, indexes are provided for the first 15languages
set on the Project.- Specified by:
setSlug
in interfaceShoppingList
- Parameters:
slug
- value to be set
-
setDescription
Description copied from interface:ShoppingList
Description of the ShoppingList.
- Specified by:
setDescription
in interfaceShoppingList
- Parameters:
description
- value to be set
-
setLineItems
Description copied from interface:ShoppingList
Line Items (containing Products) of the ShoppingList.
- Specified by:
setLineItems
in interfaceShoppingList
- Parameters:
lineItems
- values to be set
-
setLineItems
Description copied from interface:ShoppingList
Line Items (containing Products) of the ShoppingList.
- Specified by:
setLineItems
in interfaceShoppingList
- Parameters:
lineItems
- values to be set
-
setTextLineItems
Description copied from interface:ShoppingList
Line Items (containing text values) of the ShoppingList.
- Specified by:
setTextLineItems
in interfaceShoppingList
- Parameters:
textLineItems
- values to be set
-
setTextLineItems
Description copied from interface:ShoppingList
Line Items (containing text values) of the ShoppingList.
- Specified by:
setTextLineItems
in interfaceShoppingList
- Parameters:
textLineItems
- values to be set
-
setDeleteDaysAfterLastModification
Description copied from interface:ShoppingList
Number of days after which the ShoppingList will be automatically deleted if it has not been modified.
- Specified by:
setDeleteDaysAfterLastModification
in interfaceShoppingList
- Parameters:
deleteDaysAfterLastModification
- value to be set
-
setAnonymousId
Description copied from interface:ShoppingList
Identifies ShoppingLists belonging to an anonymous session.
- Specified by:
setAnonymousId
in interfaceShoppingList
- Parameters:
anonymousId
- value to be set
-
setStore
Description copied from interface:ShoppingList
Store to which the ShoppingList is assigned.
- Specified by:
setStore
in interfaceShoppingList
- Parameters:
store
- value to be set
-
setCustom
Description copied from interface:ShoppingList
Custom Fields defined for the ShoppingList.
- Specified by:
setCustom
in interfaceCustomizable<ShoppingList>
- Specified by:
setCustom
in interfaceShoppingList
- Parameters:
custom
- value to be set
-
setLastModifiedBy
Description copied from interface:ShoppingList
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
setLastModifiedBy
in interfaceShoppingList
- Parameters:
lastModifiedBy
- value to be set
-
setCreatedBy
Description copied from interface:ShoppingList
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
setCreatedBy
in interfaceShoppingList
- Parameters:
createdBy
- value to be set
-
equals
-
hashCode
public int hashCode()
-