Class JpaBillingEventItem

java.lang.Object
com.broadleafcommerce.billing.provider.jpa.domain.JpaBillingEventItem
All Implemented Interfaces:
com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.TenantTrackable<BillingTenantJpaTracking>, com.broadleafcommerce.data.tracking.core.Trackable, com.broadleafcommerce.data.tracking.core.TypedTrackable<BillingTenantJpaTracking>, Serializable

@Entity public class JpaBillingEventItem extends Object implements Serializable, com.broadleafcommerce.data.tracking.core.TenantTrackable<BillingTenantJpaTracking>, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
See Also:
  • Field Details

    • contextId

      protected String contextId
    • billingEventId

      protected String billingEventId
    • subscriptionItemRef

      protected String subscriptionItemRef
    • orderItemRef

      protected String orderItemRef
    • itemRef

      protected String itemRef
    • itemName

      protected String itemName
    • fullSubscriptionPeriodItemUnitPrice

      protected BigDecimal fullSubscriptionPeriodItemUnitPrice
    • itemUnitPrice

      protected BigDecimal itemUnitPrice
    • quantity

      protected Integer quantity
    • itemSubtotal

      protected BigDecimal itemSubtotal
    • totalTax

      protected BigDecimal totalTax
    • totalAmount

      protected BigDecimal totalAmount
    • taxCategory

      protected String taxCategory
    • taxNexus

      protected String taxNexus
    • taxable

      protected boolean taxable
    • additionalAttributes

      protected Map<String,JpaBillingEventItemAttribute> additionalAttributes
    • version

      protected Integer version
  • Constructor Details

    • JpaBillingEventItem

      public JpaBillingEventItem()
  • Method Details

    • getBusinessDomainType

      public Class<?> getBusinessDomainType()
      Specified by:
      getBusinessDomainType in interface com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
    • fromMe

      @NonNull public org.modelmapper.ModelMapper fromMe()
      Specified by:
      fromMe in interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
    • toMe

      @NonNull public org.modelmapper.ModelMapper toMe()
      Specified by:
      toMe in interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
    • convertFromMe

      public Object convertFromMe(org.modelmapper.spi.MappingContext<?,?> context)
    • convertToMe

      public Object convertToMe(org.modelmapper.spi.MappingContext<?,?> context)
    • setBillingEventItemId

      public void setBillingEventItemId(String id)
    • getBillingEventItemId

      public String getBillingEventItemId()
    • getAdditionalAttributes

      public Map<String,String> getAdditionalAttributes()
    • setAdditionalAttributes

      public void setAdditionalAttributes(Map<String,String> additionalAttributes)
    • setTracking

      public void setTracking(BillingTenantJpaTracking tracking)
      Specified by:
      setTracking in interface com.broadleafcommerce.data.tracking.core.TypedTrackable<BillingTenantJpaTracking>
    • setTracking

      public void setTracking(com.broadleafcommerce.data.tracking.core.filtering.domain.Tracking tracking)
      Specified by:
      setTracking in interface com.broadleafcommerce.data.tracking.core.Trackable
      Specified by:
      setTracking in interface com.broadleafcommerce.data.tracking.core.TypedTrackable<BillingTenantJpaTracking>
    • getContextId

      public String getContextId()
      Specified by:
      getContextId in interface com.broadleafcommerce.data.tracking.core.Trackable
    • getBillingEventId

      public String getBillingEventId()
    • getSubscriptionItemRef

      public String getSubscriptionItemRef()
    • getOrderItemRef

      public String getOrderItemRef()
    • getItemRef

      public String getItemRef()
    • getItemName

      public String getItemName()
    • getFullSubscriptionPeriodItemUnitPrice

      public BigDecimal getFullSubscriptionPeriodItemUnitPrice()
    • getItemUnitPrice

      public BigDecimal getItemUnitPrice()
    • getQuantity

      public Integer getQuantity()
    • getItemSubtotal

      public BigDecimal getItemSubtotal()
    • getTotalTax

      public BigDecimal getTotalTax()
    • getTotalAmount

      public BigDecimal getTotalAmount()
    • getTaxCategory

      public String getTaxCategory()
    • getTaxNexus

      public String getTaxNexus()
    • isTaxable

      public boolean isTaxable()
    • getVersion

      public Integer getVersion()
    • getTracking

      public BillingTenantJpaTracking getTracking()
      Specified by:
      getTracking in interface com.broadleafcommerce.data.tracking.core.Trackable
    • setContextId

      public void setContextId(String contextId)
      Specified by:
      setContextId in interface com.broadleafcommerce.data.tracking.core.Trackable
    • setBillingEventId

      public void setBillingEventId(String billingEventId)
    • setSubscriptionItemRef

      public void setSubscriptionItemRef(String subscriptionItemRef)
    • setOrderItemRef

      public void setOrderItemRef(String orderItemRef)
    • setItemRef

      public void setItemRef(String itemRef)
    • setItemName

      public void setItemName(String itemName)
    • setFullSubscriptionPeriodItemUnitPrice

      public void setFullSubscriptionPeriodItemUnitPrice(BigDecimal fullSubscriptionPeriodItemUnitPrice)
    • setItemUnitPrice

      public void setItemUnitPrice(BigDecimal itemUnitPrice)
    • setQuantity

      public void setQuantity(Integer quantity)
    • setItemSubtotal

      public void setItemSubtotal(BigDecimal itemSubtotal)
    • setTotalTax

      public void setTotalTax(BigDecimal totalTax)
    • setTotalAmount

      public void setTotalAmount(BigDecimal totalAmount)
    • setTaxCategory

      public void setTaxCategory(String taxCategory)
    • setTaxNexus

      public void setTaxNexus(String taxNexus)
    • setTaxable

      public void setTaxable(boolean taxable)
    • setVersion

      public void setVersion(Integer version)
    • 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