Class OfferWrapper

java.lang.Object
org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
com.broadleafcommerce.rest.api.wrapper.OfferWrapper
All Implemented Interfaces:
Serializable, org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.offer.domain.Offer>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

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>
This is a JAXB wrapper around OfferWrapper.

User: Priyesh Patel

See Also:
  • Field Details

  • Constructor Details

    • OfferWrapper

      public OfferWrapper()
  • Method Details

    • wrapDetails

      public void wrapDetails(org.broadleafcommerce.core.offer.domain.Offer model, jakarta.servlet.http.HttpServletRequest request)
      Specified by:
      wrapDetails in interface org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.offer.domain.Offer>
    • wrapSummary

      public void wrapSummary(org.broadleafcommerce.core.offer.domain.Offer model, jakarta.servlet.http.HttpServletRequest request)
      Specified by:
      wrapSummary in interface org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.offer.domain.Offer>
    • getOfferId

      public Long getOfferId()
      Returns:
      the offerId
    • setOfferId

      public void setOfferId(Long offerId)
      Parameters:
      offerId - the offerId to set
    • getStartDate

      public Date getStartDate()
      Returns:
      the startDate
    • setStartDate

      public void setStartDate(Date startDate)
      Parameters:
      startDate - the startDate to set
    • getEndDate

      public Date getEndDate()
      Returns:
      the endDate
    • setEndDate

      public void setEndDate(Date endDate)
      Parameters:
      endDate - the endDate to set
    • getMarketingMessage

      public String getMarketingMessage()
      Returns:
      the marketingMessage
    • setMarketingMessage

      public void setMarketingMessage(String marketingMessage)
      Parameters:
      marketingMessage - the marketingMessage to set
    • getDescription

      public String getDescription()
      Returns:
      the description
    • setDescription

      public void setDescription(String description)
      Parameters:
      description - the description to set
    • getName

      public String getName()
      Returns:
      the name
    • setName

      public void setName(String name)
      Parameters:
      name - the name to set
    • getAutomatic

      public Boolean getAutomatic()
      Returns:
      the automatic
    • setAutomatic

      public void setAutomatic(Boolean automatic)
      Parameters:
      automatic - the automatic to set
    • getOfferType

      public BroadleafEnumerationTypeWrapper getOfferType()
      Returns:
      the offerType
    • setOfferType

      public void setOfferType(BroadleafEnumerationTypeWrapper offerType)
      Parameters:
      offerType - the offerType to set
    • getDiscountType

      public BroadleafEnumerationTypeWrapper getDiscountType()
      Returns:
      the discountType
    • setDiscountType

      public void setDiscountType(BroadleafEnumerationTypeWrapper discountType)
      Parameters:
      discountType - the discountType to set
    • getArchived

      public Character getArchived()
    • setArchived

      public void setArchived(Character archived)