Class OfferAuditImpl

java.lang.Object
org.broadleafcommerce.core.offer.domain.OfferAuditImpl
All Implemented Interfaces:
Serializable, OfferAudit

@Entity public class OfferAuditImpl extends Object implements OfferAudit
See Also:
  • Field Details

    • LOG

      protected static final org.apache.commons.logging.Log LOG
    • id

      protected Long id
    • offerId

      protected Long offerId
    • customerId

      protected Long customerId
    • accountId

      protected Long accountId
    • orderId

      protected Long orderId
    • offerCodeId

      protected Long offerCodeId
    • redeemedDate

      protected Date redeemedDate
  • Constructor Details

    • OfferAuditImpl

      public OfferAuditImpl()
  • Method Details

    • getId

      public Long getId()
      Description copied from interface: OfferAudit
      System generated unique id for this audit record.
      Specified by:
      getId in interface OfferAudit
      Returns:
    • setId

      public void setId(Long id)
      Description copied from interface: OfferAudit
      Sets the id.
      Specified by:
      setId in interface OfferAudit
    • getOfferId

      public Long getOfferId()
      Description copied from interface: OfferAudit
      The associated offer id.
      Specified by:
      getOfferId in interface OfferAudit
      Returns:
    • setOfferId

      public void setOfferId(Long offerId)
      Description copied from interface: OfferAudit
      Sets the associated offer id.
      Specified by:
      setOfferId in interface OfferAudit
    • getOfferCodeId

      public Long getOfferCodeId()
      Description copied from interface: OfferAudit

      The offer code that was used to retrieve the offer. This will be null if the offer was automatically applied and not obtained by an OfferCode.

      Specified by:
      getOfferCodeId in interface OfferAudit
    • setOfferCodeId

      public void setOfferCodeId(Long offerCodeId)
      Description copied from interface: OfferAudit

      Sets the offer code that was used to retrieve the offer. This should be null if the offer was automatically applied and not obtained by an OfferCode.

      Specified by:
      setOfferCodeId in interface OfferAudit
    • getCustomerId

      public Long getCustomerId()
      Description copied from interface: OfferAudit
      The id of the associated customer.
      Specified by:
      getCustomerId in interface OfferAudit
      Returns:
    • setCustomerId

      public void setCustomerId(Long customerId)
      Description copied from interface: OfferAudit
      Sets the customer id.
      Specified by:
      setCustomerId in interface OfferAudit
    • getAccountId

      public Long getAccountId()
      Description copied from interface: OfferAudit
      The id of the associated account.
      Specified by:
      getAccountId in interface OfferAudit
      Returns:
    • setAccountId

      public void setAccountId(Long accountId)
      Description copied from interface: OfferAudit
      Sets the associated account id.
      Specified by:
      setAccountId in interface OfferAudit
    • getOrderId

      public Long getOrderId()
      Description copied from interface: OfferAudit
      The associated order id.
      Specified by:
      getOrderId in interface OfferAudit
      Returns:
    • setOrderId

      public void setOrderId(Long orderId)
      Description copied from interface: OfferAudit
      Sets the associated order id.
      Specified by:
      setOrderId in interface OfferAudit
    • getRedeemedDate

      public Date getRedeemedDate()
      Description copied from interface: OfferAudit
      The date the offer was applied to the order.
      Specified by:
      getRedeemedDate in interface OfferAudit
      Returns:
    • setRedeemedDate

      public void setRedeemedDate(Date redeemedDate)
      Description copied from interface: OfferAudit
      Sets the offer redeemed date.
      Specified by:
      setRedeemedDate in interface OfferAudit
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object