Class AdjustmentWrapper
java.lang.Object
org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
com.broadleafcommerce.rest.api.wrapper.AdjustmentWrapper
- All Implemented Interfaces:
Serializable,org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.offer.domain.Adjustment>,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class AdjustmentWrapper
extends org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
implements org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.offer.domain.Adjustment>
This is a JAXB wrapper around OrderAdjustmentWrapper.
Author: ppatel, bpolster
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.broadleafcommerce.common.money.Moneyprotected BigDecimalprotected Stringprotected Longprotected Stringprotected Longprotected StringFields inherited from class org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.broadleafcommerce.common.money.MoneygetId()voidsetAdjustmentValue(org.broadleafcommerce.common.money.Money adjustmentValue) voidsetDiscountAmount(BigDecimal discountAmount) voidsetDiscountType(String discountType) voidvoidsetMarketingMessage(String marketingMessage) voidsetOfferid(Long offerid) voidvoidwrapDetails(org.broadleafcommerce.core.offer.domain.Adjustment model, jakarta.servlet.http.HttpServletRequest request) voidwrapSummary(org.broadleafcommerce.core.offer.domain.Adjustment model, jakarta.servlet.http.HttpServletRequest request) Methods inherited from class org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
createElementWrappers, setApplicationContext, transferAdditionalFieldsFromWrapper
-
Field Details
-
id
-
offerid
-
reason
-
marketingMessage
-
adjustmentValue
protected org.broadleafcommerce.common.money.Money adjustmentValue -
discountType
-
discountAmount
-
-
Constructor Details
-
AdjustmentWrapper
public AdjustmentWrapper()
-
-
Method Details
-
wrapDetails
public void wrapDetails(org.broadleafcommerce.core.offer.domain.Adjustment model, jakarta.servlet.http.HttpServletRequest request) - Specified by:
wrapDetailsin interfaceorg.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.offer.domain.Adjustment>
-
wrapSummary
public void wrapSummary(org.broadleafcommerce.core.offer.domain.Adjustment model, jakarta.servlet.http.HttpServletRequest request) - Specified by:
wrapSummaryin interfaceorg.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.offer.domain.Adjustment>
-
getId
- Returns:
- the id
-
setId
- Parameters:
id- the id to set
-
getOfferid
- Returns:
- the offerid
-
setOfferid
- Parameters:
offerid- the offerid to set
-
getReason
- Returns:
- the reason
-
setReason
- Parameters:
reason- the reason to set
-
getMarketingMessage
- Returns:
- the marketingMessage
-
setMarketingMessage
- Parameters:
marketingMessage- the marketingMessage to set
-
getAdjustmentValue
public org.broadleafcommerce.common.money.Money getAdjustmentValue()- Returns:
- the adjustmentValue
-
setAdjustmentValue
public void setAdjustmentValue(org.broadleafcommerce.common.money.Money adjustmentValue) - Parameters:
adjustmentValue- the adjustmentValue to set
-
getDiscountType
- Returns:
- the discountType
-
setDiscountType
- Parameters:
discountType- the discountType to set
-
getDiscountAmount
- Returns:
- the discountAmount
-
setDiscountAmount
- Parameters:
discountAmount- the discountAmount to set
-