java.lang.Object
com.broadleafcommerce.promotion.offer.web.context.info.OfferUsageDetails
All Implemented Interfaces:
Serializable

public class OfferUsageDetails extends Object implements Serializable
Details of system offer usage to record offer audit entities.
Author:
mariestandeven
See Also:
  • Constructor Details

    • OfferUsageDetails

      public OfferUsageDetails()
  • Method Details

    • getOfferId

      public String getOfferId()
      The ID of the offer this audit is for.
    • getOfferCodeId

      public String getOfferCodeId()
      The ID of the offer code (if any) this audit is for.
    • getOfferCode

      public String getOfferCode()
      The string offer code (if any) that this audit information is for.
    • getCampaignTrackingId

      public String getCampaignTrackingId()
      The ID of the campaign (if any) this audit is for.
    • getCustomerReferenceType

      public String getCustomerReferenceType()
      The customer type this audit is for, for example "CUSTOMER".
    • getCustomerReferenceId

      public String getCustomerReferenceId()
      The ID of the customer this audit is for.
    • getTransactionReferenceType

      public String getTransactionReferenceType()
      The transaction type this audit is for, for example "ORDER".
    • getTransactionReferenceId

      public String getTransactionReferenceId()
      The ID of the transaction this audit is for.
    • getTotalSavings

      public javax.money.MonetaryAmount getTotalSavings()
      The total savings to record on this audit.
    • getUsageDate

      public Instant getUsageDate()
      The usage date for this audit.
    • isErrorIfMaxExceeded

      public boolean isErrorIfMaxExceeded()
      Whether or not to error if there is an overage of offer usage.
    • setOfferId

      public void setOfferId(String offerId)
      The ID of the offer this audit is for.
    • setOfferCodeId

      public void setOfferCodeId(String offerCodeId)
      The ID of the offer code (if any) this audit is for.
    • setOfferCode

      public void setOfferCode(String offerCode)
      The string offer code (if any) that this audit information is for.
    • setCampaignTrackingId

      public void setCampaignTrackingId(String campaignTrackingId)
      The ID of the campaign (if any) this audit is for.
    • setCustomerReferenceType

      public void setCustomerReferenceType(String customerReferenceType)
      The customer type this audit is for, for example "CUSTOMER".
    • setCustomerReferenceId

      public void setCustomerReferenceId(String customerReferenceId)
      The ID of the customer this audit is for.
    • setTransactionReferenceType

      public void setTransactionReferenceType(String transactionReferenceType)
      The transaction type this audit is for, for example "ORDER".
    • setTransactionReferenceId

      public void setTransactionReferenceId(String transactionReferenceId)
      The ID of the transaction this audit is for.
    • setTotalSavings

      public void setTotalSavings(javax.money.MonetaryAmount totalSavings)
      The total savings to record on this audit.
    • setUsageDate

      public void setUsageDate(Instant usageDate)
      The usage date for this audit.
    • setErrorIfMaxExceeded

      public void setErrorIfMaxExceeded(boolean errorIfMaxExceeded)
      Whether or not to error if there is an overage of offer usage.
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object