Class MyShoppingListDraftImpl
- All Implemented Interfaces:
CustomizableDraft<MyShoppingListDraft>
,MyShoppingListDraft
,io.vrap.rmf.base.client.Draft<MyShoppingListDraft>
,io.vrap.rmf.base.client.ModelBase
A MyShoppingListDraft is the object submitted as payload to the Create MyShoppingList request. The customer
field of ShoppingList is automatically set with a password flow token. The anonymousId
is automatically set with a token for an anonymous session. The key
and slug
fields can not be set.
-
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
Custom Fields defined for the ShoppingList.Number of days after which the ShoppingList will be automatically deleted if it has not been modified.Description of the ShoppingList.Line Items (containing Products) to add to the ShoppingList.getName()
Name of the ShoppingList.getStore()
Assigns the new ShoppingList to the Store.Line Items (containing text values) to add to the ShoppingList.int
hashCode()
void
setCustom
(CustomFieldsDraft custom) Custom Fields defined for 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
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
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.toString()
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.me.MyShoppingListDraft
withMyShoppingListDraft
-
Constructor Details
-
MyShoppingListDraftImpl
public MyShoppingListDraftImpl()create empty instance
-
-
Method Details
-
getName
Name of the ShoppingList.
- Specified by:
getName
in interfaceMyShoppingListDraft
- Returns:
- name
-
getDescription
Description of the ShoppingList.
- Specified by:
getDescription
in interfaceMyShoppingListDraft
- Returns:
- description
-
getLineItems
Line Items (containing Products) to add to the ShoppingList.
- Specified by:
getLineItems
in interfaceMyShoppingListDraft
- Returns:
- lineItems
-
getTextLineItems
Line Items (containing text values) to add to the ShoppingList.
- Specified by:
getTextLineItems
in interfaceMyShoppingListDraft
- Returns:
- textLineItems
-
getCustom
Custom Fields defined for the ShoppingList.
- Specified by:
getCustom
in interfaceCustomizableDraft<MyShoppingListDraft>
- Specified by:
getCustom
in interfaceMyShoppingListDraft
- Returns:
- custom
-
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 interfaceMyShoppingListDraft
- Returns:
- deleteDaysAfterLastModification
-
getStore
Assigns the new ShoppingList to the Store. The Store assignment can not be modified.
- Specified by:
getStore
in interfaceMyShoppingListDraft
- Returns:
- store
-
setName
Description copied from interface:MyShoppingListDraft
Name of the ShoppingList.
- Specified by:
setName
in interfaceMyShoppingListDraft
- Parameters:
name
- value to be set
-
setDescription
Description copied from interface:MyShoppingListDraft
Description of the ShoppingList.
- Specified by:
setDescription
in interfaceMyShoppingListDraft
- Parameters:
description
- value to be set
-
setLineItems
Description copied from interface:MyShoppingListDraft
Line Items (containing Products) to add to the ShoppingList.
- Specified by:
setLineItems
in interfaceMyShoppingListDraft
- Parameters:
lineItems
- values to be set
-
setLineItems
Description copied from interface:MyShoppingListDraft
Line Items (containing Products) to add to the ShoppingList.
- Specified by:
setLineItems
in interfaceMyShoppingListDraft
- Parameters:
lineItems
- values to be set
-
setTextLineItems
Description copied from interface:MyShoppingListDraft
Line Items (containing text values) to add to the ShoppingList.
- Specified by:
setTextLineItems
in interfaceMyShoppingListDraft
- Parameters:
textLineItems
- values to be set
-
setTextLineItems
Description copied from interface:MyShoppingListDraft
Line Items (containing text values) to add to the ShoppingList.
- Specified by:
setTextLineItems
in interfaceMyShoppingListDraft
- Parameters:
textLineItems
- values to be set
-
setCustom
Description copied from interface:MyShoppingListDraft
Custom Fields defined for the ShoppingList.
- Specified by:
setCustom
in interfaceCustomizableDraft<MyShoppingListDraft>
- Specified by:
setCustom
in interfaceMyShoppingListDraft
- Parameters:
custom
- value to be set
-
setDeleteDaysAfterLastModification
Description copied from interface:MyShoppingListDraft
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 interfaceMyShoppingListDraft
- Parameters:
deleteDaysAfterLastModification
- value to be set
-
setStore
Description copied from interface:MyShoppingListDraft
Assigns the new ShoppingList to the Store. The Store assignment can not be modified.
- Specified by:
setStore
in interfaceMyShoppingListDraft
- Parameters:
store
- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-