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 Details

    • id

      protected Long id
    • offerid

      protected Long offerid
    • reason

      protected String reason
    • marketingMessage

      protected String marketingMessage
    • adjustmentValue

      protected org.broadleafcommerce.common.money.Money adjustmentValue
    • discountType

      protected String discountType
    • discountAmount

      protected BigDecimal 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:
      wrapDetails in interface org.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:
      wrapSummary in interface org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.offer.domain.Adjustment>
    • getId

      public Long getId()
      Returns:
      the id
    • setId

      public void setId(Long id)
      Parameters:
      id - the id to set
    • getOfferid

      public Long getOfferid()
      Returns:
      the offerid
    • setOfferid

      public void setOfferid(Long offerid)
      Parameters:
      offerid - the offerid to set
    • getReason

      public String getReason()
      Returns:
      the reason
    • setReason

      public void setReason(String reason)
      Parameters:
      reason - the reason to set
    • getMarketingMessage

      public String getMarketingMessage()
      Returns:
      the marketingMessage
    • setMarketingMessage

      public void setMarketingMessage(String marketingMessage)
      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

      public String getDiscountType()
      Returns:
      the discountType
    • setDiscountType

      public void setDiscountType(String discountType)
      Parameters:
      discountType - the discountType to set
    • getDiscountAmount

      public BigDecimal getDiscountAmount()
      Returns:
      the discountAmount
    • setDiscountAmount

      public void setDiscountAmount(BigDecimal discountAmount)
      Parameters:
      discountAmount - the discountAmount to set