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 Details

    • PriceDataUsageDetail

      public PriceDataUsageDetail()
  • Method Details

    • getId

      public String getId()
      The context ID of the PriceData Usage Detail.
    • getPriceDataId

      public String getPriceDataId()
      The ID of the priceData 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 "BLC_CART".
    • getTransactionReferenceId

      public String getTransactionReferenceId()
      The ID of the transaction this audit is for, for example cartId, orderId
    • getUsageQuantity

      public Integer getUsageQuantity()
      The quantity usage detail of this priceData
    • getUsageDate

      public Instant 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 of Tracking information to expose the context state for this object.
      Specified by:
      getContextState in interface com.broadleafcommerce.data.tracking.core.ContextStateAware
      Returns:
      a subset of Tracking information to expose the context state for this object
    • setId

      public void setId(String id)
      The context ID of the PriceData Usage Detail.
    • setPriceDataId

      public void setPriceDataId(String priceDataId)
      The ID of the priceData 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 "BLC_CART".
    • setTransactionReferenceId

      public void setTransactionReferenceId(String transactionReferenceId)
      The ID of the transaction this audit is for, for example cartId, orderId
    • setUsageQuantity

      public void setUsageQuantity(Integer usageQuantity)
      The quantity usage detail of this priceData
    • setUsageDate

      public void setUsageDate(Instant usageDate)
      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 of Tracking information to expose the context state for this object.
      Specified by:
      setContextState in interface com.broadleafcommerce.data.tracking.core.ContextStateAware
      Parameters:
      contextState - a subset of Tracking information to expose the context state for this object
    • 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