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 Summary
FieldsModifier and TypeFieldDescriptionprotected Characterprotected Booleanprotected Stringprotected BroadleafEnumerationTypeWrapperprotected Dateprotected Stringprotected Stringprotected Longprotected BroadleafEnumerationTypeWrapperprotected DateFields inherited from class org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()voidsetArchived(Character archived) voidsetAutomatic(Boolean automatic) voidsetDescription(String description) voidsetDiscountType(BroadleafEnumerationTypeWrapper discountType) voidsetEndDate(Date endDate) voidsetMarketingMessage(String marketingMessage) voidvoidsetOfferId(Long offerId) voidsetOfferType(BroadleafEnumerationTypeWrapper offerType) voidsetStartDate(Date startDate) voidwrapDetails(org.broadleafcommerce.core.offer.domain.Offer model, jakarta.servlet.http.HttpServletRequest request) voidwrapSummary(org.broadleafcommerce.core.offer.domain.Offer model, jakarta.servlet.http.HttpServletRequest request) Methods inherited from class org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
createElementWrappers, setApplicationContext, transferAdditionalFieldsFromWrapper
-
Field Details
-
offerId
-
startDate
-
endDate
-
marketingMessage
-
description
-
name
-
automatic
-
offerType
-
discountType
-
archived
-
-
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:
wrapDetailsin interfaceorg.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:
wrapSummaryin interfaceorg.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.offer.domain.Offer>
-
getOfferId
- Returns:
- the offerId
-
setOfferId
- Parameters:
offerId- the offerId to set
-
getStartDate
- Returns:
- the startDate
-
setStartDate
- Parameters:
startDate- the startDate to set
-
getEndDate
- Returns:
- the endDate
-
setEndDate
- Parameters:
endDate- the endDate to set
-
getMarketingMessage
- Returns:
- the marketingMessage
-
setMarketingMessage
- Parameters:
marketingMessage- the marketingMessage to set
-
getDescription
- Returns:
- the description
-
setDescription
- Parameters:
description- the description to set
-
getName
- Returns:
- the name
-
setName
- Parameters:
name- the name to set
-
getAutomatic
- Returns:
- the automatic
-
setAutomatic
- Parameters:
automatic- the automatic to set
-
getOfferType
- Returns:
- the offerType
-
setOfferType
- Parameters:
offerType- the offerType to set
-
getDiscountType
- Returns:
- the discountType
-
setDiscountType
- Parameters:
discountType- the discountType to set
-
getArchived
-
setArchived
-