Class PriceDataUsageDetail
java.lang.Object
com.broadleafcommerce.pricing.domain.PriceDataUsageDetail
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware
,Serializable
public class PriceDataUsageDetail
extends Object
implements Serializable, com.broadleafcommerce.data.tracking.core.ContextStateAware
Details of PriceData usage to record the PriceData audit entities.
- Author:
- karanjariwala
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
A subset ofTracking
information to expose the context state for this object.The ID of the customer this audit is for.The customer type this audit is for, for example "CUSTOMER".getId()
The context ID of the PriceData Usage Detail.The ID of the priceData this audit is for.The ID of the transaction this audit is for, for example cartId, orderIdThe transaction type this audit is for, for example "BLC_CART".The usage date for this audit.The quantity usage detail of this priceDataint
hashCode()
boolean
The revertible flag, if true indicates that this record is eligible for rolling back by PricingDetailTimeoutRollbackJobListener jobvoid
setContextState
(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTracking
information to expose the context state for this object.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
The context ID of the PriceData Usage Detail.void
setPriceDataId
(String priceDataId) The ID of the priceData this audit is for.void
setRevertible
(boolean revertible) The revertible flag, if true indicates that this record is eligible for rolling back by PricingDetailTimeoutRollbackJobListener jobvoid
setTransactionReferenceId
(String transactionReferenceId) The ID of the transaction this audit is for, for example cartId, orderIdvoid
setTransactionReferenceType
(String transactionReferenceType) The transaction type this audit is for, for example "BLC_CART".void
setUsageDate
(Instant usageDate) The usage date for this audit.void
setUsageQuantity
(Integer usageQuantity) The quantity usage detail of this priceDatatoString()
-
Constructor Details
-
PriceDataUsageDetail
public PriceDataUsageDetail()
-
-
Method Details
-
getId
The context ID of the PriceData Usage Detail. -
getPriceDataId
The ID of the priceData 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 "BLC_CART". -
getTransactionReferenceId
The ID of the transaction this audit is for, for example cartId, orderId -
getUsageQuantity
The quantity usage detail of this priceData -
getUsageDate
The usage date for this audit. -
isRevertible
public boolean isRevertible()The revertible flag, if true indicates that this record is eligible for rolling back by PricingDetailTimeoutRollbackJobListener job -
getContextState
public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()A subset ofTracking
information to expose the context state for this object.- Specified by:
getContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Returns:
- a subset of
Tracking
information to expose the context state for this object
-
setId
The context ID of the PriceData Usage Detail. -
setPriceDataId
The ID of the priceData 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 "BLC_CART". -
setTransactionReferenceId
The ID of the transaction this audit is for, for example cartId, orderId -
setUsageQuantity
The quantity usage detail of this priceData -
setUsageDate
The usage date for this audit. -
setRevertible
public void setRevertible(boolean revertible) The revertible flag, if true indicates that this record is eligible for rolling back by PricingDetailTimeoutRollbackJobListener job -
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTracking
information to expose the context state for this object.- Specified by:
setContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Parameters:
contextState
- a subset ofTracking
information to expose the context state for this object
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-