org.broadleafcommerce.core.web.api.wrapper
Class OfferWrapper

java.lang.Object
  extended by org.broadleafcommerce.core.web.api.wrapper.BaseWrapper
      extended by org.broadleafcommerce.core.web.api.wrapper.OfferWrapper
All Implemented Interfaces:
APIWrapper<Offer>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class OfferWrapper
extends BaseWrapper
implements APIWrapper<Offer>

This is a JAXB wrapper around OfferWrapper.

User: Priyesh Patel


Field Summary
protected  Boolean automatic
           
protected  String description
           
protected  BroadleafEnumerationTypeWrapper discountType
           
protected  String endDate
           
protected  String marketingMessage
           
protected  int maxUses
           
protected  String name
           
protected  Long offerId
           
protected  BroadleafEnumerationTypeWrapper offerType
           
protected  String startDate
           
 
Fields inherited from class org.broadleafcommerce.core.web.api.wrapper.BaseWrapper
context
 
Constructor Summary
OfferWrapper()
           
 
Method Summary
 void wrapDetails(Offer model, javax.servlet.http.HttpServletRequest request)
           
 void wrapSummary(Offer model, javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class org.broadleafcommerce.core.web.api.wrapper.BaseWrapper
setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

offerId

protected Long offerId

startDate

protected String startDate

endDate

protected String endDate

marketingMessage

protected String marketingMessage

description

protected String description

name

protected String name

automatic

protected Boolean automatic

offerType

protected BroadleafEnumerationTypeWrapper offerType

discountType

protected BroadleafEnumerationTypeWrapper discountType

maxUses

protected int maxUses
Constructor Detail

OfferWrapper

public OfferWrapper()
Method Detail

wrapDetails

public void wrapDetails(Offer model,
                        javax.servlet.http.HttpServletRequest request)
Specified by:
wrapDetails in interface APIWrapper<Offer>

wrapSummary

public void wrapSummary(Offer model,
                        javax.servlet.http.HttpServletRequest request)
Specified by:
wrapSummary in interface APIWrapper<Offer>


Copyright © 2013. All Rights Reserved.