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 booleanbooleancom.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStateA subset ofTrackinginformation 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 priceDatainthashCode()booleanThe revertible flag, if true indicates that this record is eligible for rolling back by PricingDetailTimeoutRollbackJobListener jobvoidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.voidsetCustomerReferenceId(String customerReferenceId) The ID of the customer this audit is for.voidsetCustomerReferenceType(String customerReferenceType) The customer type this audit is for, for example "CUSTOMER".voidThe context ID of the PriceData Usage Detail.voidsetPriceDataId(String priceDataId) The ID of the priceData this audit is for.voidsetRevertible(boolean revertible) The revertible flag, if true indicates that this record is eligible for rolling back by PricingDetailTimeoutRollbackJobListener jobvoidsetTransactionReferenceId(String transactionReferenceId) The ID of the transaction this audit is for, for example cartId, orderIdvoidsetTransactionReferenceType(String transactionReferenceType) The transaction type this audit is for, for example "BLC_CART".voidsetUsageDate(Instant usageDate) The usage date for this audit.voidsetUsageQuantity(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 ofTrackinginformation to expose the context state for this object.- Specified by:
getContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Returns:
- a subset of
Trackinginformation 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 ofTrackinginformation to expose the context state for this object.- Specified by:
setContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Parameters:
contextState- a subset ofTrackinginformation to expose the context state for this object
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-