public class BasketItem extends java.lang.Object
Constructor and Description |
---|
BasketItem()
Create new empty BasketItem
|
BasketItem(java.lang.String productId,
java.lang.String productName,
java.lang.String sku,
java.lang.String productGroup,
java.util.List<java.lang.String> variants,
double price,
int quantity)
Create new BasketItem
|
Modifier and Type | Method and Description |
---|---|
BasketItem |
setPrice(double price) |
BasketItem |
setProductGroup(java.lang.String productGroup) |
BasketItem |
setProductId(java.lang.String productId) |
BasketItem |
setProductName(java.lang.String productName) |
BasketItem |
setQuantity(int quantity) |
BasketItem |
setSku(java.lang.String sku) |
BasketItem |
setVariants(java.util.List<java.lang.String> variants) |
public BasketItem()
public BasketItem(java.lang.String productId, java.lang.String productName, java.lang.String sku, java.lang.String productGroup, java.util.List<java.lang.String> variants, double price, int quantity)
productId
- Id of product without variants, several variants of the product can have same productIdproductName
- product namesku
- stock keeping unit, id of product inclusive variants, each variant of a product has its own skuproductGroup
- category of productvariants
- List of variantsprice
- price of productquantity
- Count of this products in basketpublic BasketItem setPrice(double price)
price
- price of productpublic BasketItem setProductGroup(java.lang.String productGroup)
productGroup
- category of productpublic BasketItem setProductName(java.lang.String productName)
productName
- product namepublic BasketItem setQuantity(int quantity)
quantity
- Count of this products in basketpublic BasketItem setProductId(java.lang.String productId)
productId
- Id of product without variants, several variants of the product can have same productIdpublic BasketItem setSku(java.lang.String sku)
sku
- stock keeping unit, id of product inclusive variants, each variant of a product has its own skupublic BasketItem setVariants(java.util.List<java.lang.String> variants)
variants
- List of variants