Class ShoppingListLineItemDraftImpl
- All Implemented Interfaces:
CustomizableDraft<ShoppingListLineItemDraft>
,ShoppingListLineItemDraft
,io.vrap.rmf.base.client.Draft<ShoppingListLineItemDraft>
,io.vrap.rmf.base.client.ModelBase
The ProductVariant to be included in the ShoppingListLineItem must be specified using the productID
and variantID
, or by the sku
.
-
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
Date and time the ShoppingListLineItem is added to the ShoppingList.Custom Fields of the ShoppingListLineItem.Unique identifier of a Product.Number of Products in the ShoppingListLineItem.getSku()
sku
of the ProductVariant.id
of the ProductVariant.int
hashCode()
void
setAddedAt
(ZonedDateTime addedAt) Date and time the ShoppingListLineItem is added to the ShoppingList.void
setCustom
(CustomFieldsDraft custom) Custom Fields of the ShoppingListLineItem.void
setProductId
(String productId) Unique identifier of a Product.void
setQuantity
(Long quantity) Number of Products in the ShoppingListLineItem.void
sku
of the ProductVariant.void
setVariantId
(Long variantId) id
of the ProductVariant.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.ShoppingListLineItemDraft
withShoppingListLineItemDraft
-
Constructor Details
-
ShoppingListLineItemDraftImpl
public ShoppingListLineItemDraftImpl()create empty instance
-
-
Method Details
-
getProductId
Unique identifier of a Product.
- Specified by:
getProductId
in interfaceShoppingListLineItemDraft
- Returns:
- productId
-
getVariantId
id
of the ProductVariant. If not set, the ShoppingListLineItem refers to the Master Variant.- Specified by:
getVariantId
in interfaceShoppingListLineItemDraft
- Returns:
- variantId
-
getSku
sku
of the ProductVariant.- Specified by:
getSku
in interfaceShoppingListLineItemDraft
- Returns:
- sku
-
getAddedAt
Date and time the ShoppingListLineItem is added to the ShoppingList. If not set, the current date and time (UTC) is used.
- Specified by:
getAddedAt
in interfaceShoppingListLineItemDraft
- Returns:
- addedAt
-
getCustom
Custom Fields of the ShoppingListLineItem.
- Specified by:
getCustom
in interfaceCustomizableDraft<ShoppingListLineItemDraft>
- Specified by:
getCustom
in interfaceShoppingListLineItemDraft
- Returns:
- custom
-
getQuantity
Number of Products in the ShoppingListLineItem.
- Specified by:
getQuantity
in interfaceShoppingListLineItemDraft
- Returns:
- quantity
-
setProductId
Description copied from interface:ShoppingListLineItemDraft
Unique identifier of a Product.
- Specified by:
setProductId
in interfaceShoppingListLineItemDraft
- Parameters:
productId
- value to be set
-
setVariantId
Description copied from interface:ShoppingListLineItemDraft
id
of the ProductVariant. If not set, the ShoppingListLineItem refers to the Master Variant.- Specified by:
setVariantId
in interfaceShoppingListLineItemDraft
- Parameters:
variantId
- value to be set
-
setSku
Description copied from interface:ShoppingListLineItemDraft
sku
of the ProductVariant.- Specified by:
setSku
in interfaceShoppingListLineItemDraft
- Parameters:
sku
- value to be set
-
setAddedAt
Description copied from interface:ShoppingListLineItemDraft
Date and time the ShoppingListLineItem is added to the ShoppingList. If not set, the current date and time (UTC) is used.
- Specified by:
setAddedAt
in interfaceShoppingListLineItemDraft
- Parameters:
addedAt
- value to be set
-
setCustom
Description copied from interface:ShoppingListLineItemDraft
Custom Fields of the ShoppingListLineItem.
- Specified by:
setCustom
in interfaceCustomizableDraft<ShoppingListLineItemDraft>
- Specified by:
setCustom
in interfaceShoppingListLineItemDraft
- Parameters:
custom
- value to be set
-
setQuantity
Description copied from interface:ShoppingListLineItemDraft
Number of Products in the ShoppingListLineItem.
- Specified by:
setQuantity
in interfaceShoppingListLineItemDraft
- Parameters:
quantity
- value to be set
-
equals
-
hashCode
-