public class OfferWrapper
extends org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
implements org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.offer.domain.Offer>
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
automatic |
protected String |
description |
protected BroadleafEnumerationTypeWrapper |
discountType |
protected Date |
endDate |
protected String |
marketingMessage |
protected String |
name |
protected Long |
offerId |
protected BroadleafEnumerationTypeWrapper |
offerType |
protected Date |
startDate |
| Constructor and Description |
|---|
OfferWrapper() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getAutomatic() |
String |
getDescription() |
BroadleafEnumerationTypeWrapper |
getDiscountType() |
Date |
getEndDate() |
String |
getMarketingMessage() |
String |
getName() |
Long |
getOfferId() |
BroadleafEnumerationTypeWrapper |
getOfferType() |
Date |
getStartDate() |
void |
setAutomatic(Boolean automatic) |
void |
setDescription(String description) |
void |
setDiscountType(BroadleafEnumerationTypeWrapper discountType) |
void |
setEndDate(Date endDate) |
void |
setMarketingMessage(String marketingMessage) |
void |
setName(String name) |
void |
setOfferId(Long offerId) |
void |
setOfferType(BroadleafEnumerationTypeWrapper offerType) |
void |
setStartDate(Date startDate) |
void |
wrapDetails(org.broadleafcommerce.core.offer.domain.Offer model,
javax.servlet.http.HttpServletRequest request) |
void |
wrapSummary(org.broadleafcommerce.core.offer.domain.Offer model,
javax.servlet.http.HttpServletRequest request) |
protected Long offerId
protected Date startDate
protected Date endDate
protected String marketingMessage
protected String description
protected String name
protected Boolean automatic
protected BroadleafEnumerationTypeWrapper offerType
protected BroadleafEnumerationTypeWrapper discountType
public void wrapDetails(org.broadleafcommerce.core.offer.domain.Offer model,
javax.servlet.http.HttpServletRequest request)
wrapDetails in interface org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.offer.domain.Offer>public void wrapSummary(org.broadleafcommerce.core.offer.domain.Offer model,
javax.servlet.http.HttpServletRequest request)
wrapSummary in interface org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.offer.domain.Offer>public Long getOfferId()
public void setOfferId(Long offerId)
offerId - the offerId to setpublic Date getStartDate()
public void setStartDate(Date startDate)
startDate - the startDate to setpublic Date getEndDate()
public void setEndDate(Date endDate)
endDate - the endDate to setpublic String getMarketingMessage()
public void setMarketingMessage(String marketingMessage)
marketingMessage - the marketingMessage to setpublic String getDescription()
public void setDescription(String description)
description - the description to setpublic String getName()
public void setName(String name)
name - the name to setpublic Boolean getAutomatic()
public void setAutomatic(Boolean automatic)
automatic - the automatic to setpublic BroadleafEnumerationTypeWrapper getOfferType()
public void setOfferType(BroadleafEnumerationTypeWrapper offerType)
offerType - the offerType to setpublic BroadleafEnumerationTypeWrapper getDiscountType()
public void setDiscountType(BroadleafEnumerationTypeWrapper discountType)
discountType - the discountType to setCopyright © 2017. All rights reserved.