Class JpaBillingEventItemAdjustment

java.lang.Object
com.broadleafcommerce.billing.provider.jpa.domain.JpaBillingEventItemAdjustment
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 JpaBillingEventItemAdjustment 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
    • billingEventItemId

      protected String billingEventItemId
    • adjustmentRef

      protected String adjustmentRef
    • subscriptionItemAdjustmentRef

      protected String subscriptionItemAdjustmentRef
    • fullSubscriptionPeriodAdjustmentUnitAmount

      protected BigDecimal fullSubscriptionPeriodAdjustmentUnitAmount
    • adjustmentUnitAmount

      protected BigDecimal adjustmentUnitAmount
    • proratedFromEventAdjustmentId

      protected String proratedFromEventAdjustmentId
    • version

      protected Integer version
  • Constructor Details

    • JpaBillingEventItemAdjustment

      public JpaBillingEventItemAdjustment()
  • 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)
    • setItemAdjustmentId

      public void setItemAdjustmentId(String id)
    • getItemAdjustmentId

      public String getItemAdjustmentId()
    • 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
    • getBillingEventItemId

      public String getBillingEventItemId()
    • getAdjustmentRef

      public String getAdjustmentRef()
    • getSubscriptionItemAdjustmentRef

      public String getSubscriptionItemAdjustmentRef()
    • getFullSubscriptionPeriodAdjustmentUnitAmount

      public BigDecimal getFullSubscriptionPeriodAdjustmentUnitAmount()
    • getAdjustmentUnitAmount

      public BigDecimal getAdjustmentUnitAmount()
    • getItemAdjustmentQuantity

      public Integer getItemAdjustmentQuantity()
    • getProratedFromEventAdjustmentId

      public String getProratedFromEventAdjustmentId()
    • getAdditionalAttributes

      public Map<String,Object> getAdditionalAttributes()
    • 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
    • setBillingEventItemId

      public void setBillingEventItemId(String billingEventItemId)
    • setAdjustmentRef

      public void setAdjustmentRef(String adjustmentRef)
    • setSubscriptionItemAdjustmentRef

      public void setSubscriptionItemAdjustmentRef(String subscriptionItemAdjustmentRef)
    • setFullSubscriptionPeriodAdjustmentUnitAmount

      public void setFullSubscriptionPeriodAdjustmentUnitAmount(BigDecimal fullSubscriptionPeriodAdjustmentUnitAmount)
    • setAdjustmentUnitAmount

      public void setAdjustmentUnitAmount(BigDecimal adjustmentUnitAmount)
    • setItemAdjustmentQuantity

      public void setItemAdjustmentQuantity(Integer itemAdjustmentQuantity)
    • setProratedFromEventAdjustmentId

      public void setProratedFromEventAdjustmentId(String proratedFromEventAdjustmentId)
    • setAdditionalAttributes

      public void setAdditionalAttributes(Map<String,Object> additionalAttributes)
    • 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