public class SkuWrapper
extends org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
implements org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.catalog.domain.Sku>, org.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.core.catalog.domain.Sku>
Modifier and Type | Field and Description |
---|---|
protected Boolean |
active |
protected Date |
activeEndDate |
protected Date |
activeStartDate |
protected Character |
archived |
protected Boolean |
available |
protected String |
description |
protected DimensionWrapper |
dimension |
protected Long |
id |
protected String |
inventoryType |
protected String |
name |
protected org.broadleafcommerce.common.money.Money |
retailPrice |
protected org.broadleafcommerce.common.money.Money |
salePrice |
protected WeightWrapper |
weight |
Constructor and Description |
---|
SkuWrapper() |
Modifier and Type | Method and Description |
---|---|
Boolean |
getActive() |
Date |
getActiveEndDate() |
Date |
getActiveStartDate() |
Character |
getArchived() |
Boolean |
getAvailable() |
String |
getDescription() |
DimensionWrapper |
getDimension() |
Long |
getId() |
String |
getInventoryType() |
String |
getName() |
org.broadleafcommerce.common.money.Money |
getRetailPrice() |
org.broadleafcommerce.common.money.Money |
getSalePrice() |
WeightWrapper |
getWeight() |
void |
setActive(Boolean active) |
void |
setActiveEndDate(Date activeEndDate) |
void |
setActiveStartDate(Date activeStartDate) |
void |
setArchived(Character archived) |
void |
setAvailable(Boolean available) |
void |
setDescription(String description) |
void |
setDimension(DimensionWrapper dimension) |
void |
setId(Long id) |
void |
setInventoryType(String inventoryType) |
void |
setName(String name) |
void |
setRetailPrice(org.broadleafcommerce.common.money.Money retailPrice) |
void |
setSalePrice(org.broadleafcommerce.common.money.Money salePrice) |
void |
setWeight(WeightWrapper weight) |
org.broadleafcommerce.core.catalog.domain.Sku |
unwrap(javax.servlet.http.HttpServletRequest request,
org.springframework.context.ApplicationContext context)
restful method to convert the wrapper in a domain object.
|
void |
wrapDetails(org.broadleafcommerce.core.catalog.domain.Sku model,
javax.servlet.http.HttpServletRequest request) |
void |
wrapSummary(org.broadleafcommerce.core.catalog.domain.Sku model,
javax.servlet.http.HttpServletRequest request) |
protected Long id
protected Date activeStartDate
protected Date activeEndDate
protected String name
protected Boolean active
protected Boolean available
protected String inventoryType
protected String description
protected org.broadleafcommerce.common.money.Money retailPrice
protected org.broadleafcommerce.common.money.Money salePrice
protected WeightWrapper weight
protected DimensionWrapper dimension
protected Character archived
public void wrapDetails(org.broadleafcommerce.core.catalog.domain.Sku model, javax.servlet.http.HttpServletRequest request)
wrapDetails
in interface org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.catalog.domain.Sku>
public org.broadleafcommerce.core.catalog.domain.Sku unwrap(javax.servlet.http.HttpServletRequest request, org.springframework.context.ApplicationContext context)
unwrap
in interface org.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.core.catalog.domain.Sku>
public void wrapSummary(org.broadleafcommerce.core.catalog.domain.Sku model, javax.servlet.http.HttpServletRequest request)
wrapSummary
in interface org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.catalog.domain.Sku>
public Long getId()
public void setId(Long id)
public Date getActiveStartDate()
public void setActiveStartDate(Date activeStartDate)
public Date getActiveEndDate()
public void setActiveEndDate(Date activeEndDate)
public String getName()
public void setName(String name)
public Boolean getActive()
public void setActive(Boolean active)
public Boolean getAvailable()
public void setAvailable(Boolean available)
public String getInventoryType()
public void setInventoryType(String inventoryType)
public String getDescription()
public void setDescription(String description)
public org.broadleafcommerce.common.money.Money getRetailPrice()
public void setRetailPrice(org.broadleafcommerce.common.money.Money retailPrice)
public org.broadleafcommerce.common.money.Money getSalePrice()
public void setSalePrice(org.broadleafcommerce.common.money.Money salePrice)
public WeightWrapper getWeight()
public void setWeight(WeightWrapper weight)
public DimensionWrapper getDimension()
public void setDimension(DimensionWrapper dimension)
public Character getArchived()
public void setArchived(Character archived)
Copyright © 2020. All rights reserved.