Class OfferUsageDetails
java.lang.Object
com.broadleafcommerce.promotion.offer.web.context.info.OfferUsageDetails
- All Implemented Interfaces:
Serializable
Details of system offer usage to record offer audit entities.
- Author:
- mariestandeven
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The ID of the campaign (if any) this audit is for.The ID of the customer this audit is for.The customer type this audit is for, for example "CUSTOMER".The string offer code (if any) that this audit information is for.The ID of the offer code (if any) this audit is for.The ID of the offer this audit is for.javax.money.MonetaryAmount
The total savings to record on this audit.The ID of the transaction this audit is for.The transaction type this audit is for, for example "ORDER".The usage date for this audit.int
hashCode()
boolean
Whether or not to error if there is an overage of offer usage.void
setCampaignTrackingId
(String campaignTrackingId) The ID of the campaign (if any) this audit is for.void
setCustomerReferenceId
(String customerReferenceId) The ID of the customer this audit is for.void
setCustomerReferenceType
(String customerReferenceType) The customer type this audit is for, for example "CUSTOMER".void
setErrorIfMaxExceeded
(boolean errorIfMaxExceeded) Whether or not to error if there is an overage of offer usage.void
setOfferCode
(String offerCode) The string offer code (if any) that this audit information is for.void
setOfferCodeId
(String offerCodeId) The ID of the offer code (if any) this audit is for.void
setOfferId
(String offerId) The ID of the offer this audit is for.void
setTotalSavings
(javax.money.MonetaryAmount totalSavings) The total savings to record on this audit.void
setTransactionReferenceId
(String transactionReferenceId) The ID of the transaction this audit is for.void
setTransactionReferenceType
(String transactionReferenceType) The transaction type this audit is for, for example "ORDER".void
setUsageDate
(Instant usageDate) The usage date for this audit.toString()
-
Constructor Details
-
OfferUsageDetails
public OfferUsageDetails()
-
-
Method Details
-
getOfferId
The ID of the offer this audit is for. -
getOfferCodeId
The ID of the offer code (if any) this audit is for. -
getOfferCode
The string offer code (if any) that this audit information is for. -
getCampaignTrackingId
The ID of the campaign (if any) this audit is for. -
getCustomerReferenceType
The customer type this audit is for, for example "CUSTOMER". -
getCustomerReferenceId
The ID of the customer this audit is for. -
getTransactionReferenceType
The transaction type this audit is for, for example "ORDER". -
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
The usage date for this audit. -
isErrorIfMaxExceeded
public boolean isErrorIfMaxExceeded()Whether or not to error if there is an overage of offer usage. -
setOfferId
The ID of the offer this audit is for. -
setOfferCodeId
The ID of the offer code (if any) this audit is for. -
setOfferCode
The string offer code (if any) that this audit information is for. -
setCampaignTrackingId
The ID of the campaign (if any) this audit is for. -
setCustomerReferenceType
The customer type this audit is for, for example "CUSTOMER". -
setCustomerReferenceId
The ID of the customer this audit is for. -
setTransactionReferenceType
The transaction type this audit is for, for example "ORDER". -
setTransactionReferenceId
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
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
-
canEqual
-
hashCode
public int hashCode() -
toString
-