com.salesmanager.shop.model.shoppingcart.ShoppingCartItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sm-shop-model Show documentation
Show all versions of sm-shop-model Show documentation
sm-shop-model contains Shopizer model objects for api
The newest version!
package com.salesmanager.shop.model.shoppingcart;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;
import com.salesmanager.shop.model.entity.ShopEntity;
public class ShoppingCartItem extends ShopEntity implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
private String name;
private String price;
private String image;
private BigDecimal productPrice;
private int quantity;
private long productId;
private String productCode;
private String code;//shopping cart code
private boolean productVirtual;
private String subTotal;
private List shoppingCartAttributes;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPrice() {
return price;
}
public void setPrice(String price) {
this.price = price;
}
public int getQuantity() {
if(quantity <= 0) {
quantity = 1;
}
return quantity;
}
public void setQuantity(int quantity) {
this.quantity = quantity;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public List getShoppingCartAttributes() {
return shoppingCartAttributes;
}
public void setShoppingCartAttributes(List shoppingCartAttributes) {
this.shoppingCartAttributes = shoppingCartAttributes;
}
public void setProductPrice(BigDecimal productPrice) {
this.productPrice = productPrice;
}
public BigDecimal getProductPrice() {
return productPrice;
}
public void setProductId(long productId) {
this.productId = productId;
}
public long getProductId() {
return productId;
}
public void setProductCode(String productCode) {
this.productCode = productCode;
}
public String getProductCode() {
return productCode;
}
public void setImage(String image) {
this.image = image;
}
public String getImage() {
return image;
}
public void setSubTotal(String subTotal) {
this.subTotal = subTotal;
}
public String getSubTotal() {
return subTotal;
}
public boolean isProductVirtual() {
return productVirtual;
}
public void setProductVirtual(boolean productVirtual) {
this.productVirtual = productVirtual;
}
}