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 Character |
archived |
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() |
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
protected Character archived
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 setpublic Character getArchived()
public void setArchived(Character archived)
Copyright © 2020. All rights reserved.