Class JpaSubscriptionItemAdjustment

java.lang.Object
com.broadleafcommerce.subscription.provider.jpa.domain.JpaSubscriptionItemAdjustment
All Implemented Interfaces:
com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware, com.broadleafcommerce.data.tracking.core.ApplicationTrackable<BillingApplicationJpaTracking>, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperCloneable, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.Trackable, com.broadleafcommerce.data.tracking.core.TypedTrackable<BillingApplicationJpaTracking>, Serializable

@Entity @PolicyVariance(TENANT_TRACKABLE_APP_CONTEXT) public class JpaSubscriptionItemAdjustment extends Object implements Serializable, com.broadleafcommerce.data.tracking.core.ApplicationTrackable<BillingApplicationJpaTracking>, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperCloneable
See Also:
  • Field Details

    • version

      protected Integer version
  • Constructor Details

    • JpaSubscriptionItemAdjustment

      public JpaSubscriptionItemAdjustment()
  • 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
    • cloneMe

      @NonNull public org.modelmapper.ModelMapper cloneMe()
      Specified by:
      cloneMe in interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperCloneable
    • 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(BillingApplicationJpaTracking tracking)
      Specified by:
      setTracking in interface com.broadleafcommerce.data.tracking.core.TypedTrackable<BillingApplicationJpaTracking>
    • 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<BillingApplicationJpaTracking>
    • initializeCurrencyConversionDetailIfNecessary

      protected void initializeCurrencyConversionDetailIfNecessary(@NonNull @NonNull SubscriptionItemAdjustment destination, @NonNull @NonNull org.modelmapper.spi.MappingContext<?,?> context)
    • get_id

      public String get_id()
    • getContextId

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

      public String getSubscriptionItemId()
    • getAdjustmentRef

      public String getAdjustmentRef()
    • getAdjustmentType

      public String getAdjustmentType()
    • getAdjustmentAmount

      public BigDecimal getAdjustmentAmount()
    • getBeginPeriod

      public Integer getBeginPeriod()
    • getEndPeriod

      public Integer getEndPeriod()
    • getVersion

      public Integer getVersion()
    • getAdjustmentName

      public String getAdjustmentName()
    • getAdjustmentCartLabel

      public String getAdjustmentCartLabel()
    • getAdjustmentDescription

      public String getAdjustmentDescription()
    • getAdjustmentProrationType

      public String getAdjustmentProrationType()
    • getAdjustmentCodeRef

      public String getAdjustmentCodeRef()
    • getCodeUsed

      public String getCodeUsed()
    • getCampaignTrackingId

      public String getCampaignTrackingId()
    • getDiscountType

      public String getDiscountType()
    • getFreeTrialLength

      public Integer getFreeTrialLength()
    • getFreeTrialLengthUnits

      public String getFreeTrialLengthUnits()
    • getQualifierDetails

      public List<OfferItemDetail> getQualifierDetails()
    • getItemAdjustmentQuantity

      public Integer getItemAdjustmentQuantity()
    • getAdjustmentDiscountMethodType

      public String getAdjustmentDiscountMethodType()
    • getAdjustmentDiscountFactor

      public BigDecimal getAdjustmentDiscountFactor()
    • getConvertedCurrencySource

      public String getConvertedCurrencySource()
    • getConvertedCurrencyTarget

      public String getConvertedCurrencyTarget()
    • getConvertedCurrencyRate

      public BigDecimal getConvertedCurrencyRate()
    • getAttributes

      public Map<String,Object> getAttributes()
    • getTracking

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

      public void set_id(String _id)
    • setContextId

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

      public void setSubscriptionItemId(String subscriptionItemId)
    • setAdjustmentRef

      public void setAdjustmentRef(String adjustmentRef)
    • setAdjustmentType

      public void setAdjustmentType(String adjustmentType)
    • setAdjustmentAmount

      public void setAdjustmentAmount(BigDecimal adjustmentAmount)
    • setBeginPeriod

      public void setBeginPeriod(Integer beginPeriod)
    • setEndPeriod

      public void setEndPeriod(Integer endPeriod)
    • setVersion

      public void setVersion(Integer version)
    • setAdjustmentName

      public void setAdjustmentName(String adjustmentName)
    • setAdjustmentCartLabel

      public void setAdjustmentCartLabel(String adjustmentCartLabel)
    • setAdjustmentDescription

      public void setAdjustmentDescription(String adjustmentDescription)
    • setAdjustmentProrationType

      public void setAdjustmentProrationType(String adjustmentProrationType)
    • setAdjustmentCodeRef

      public void setAdjustmentCodeRef(String adjustmentCodeRef)
    • setCodeUsed

      public void setCodeUsed(String codeUsed)
    • setCampaignTrackingId

      public void setCampaignTrackingId(String campaignTrackingId)
    • setDiscountType

      public void setDiscountType(String discountType)
    • setFreeTrialLength

      public void setFreeTrialLength(Integer freeTrialLength)
    • setFreeTrialLengthUnits

      public void setFreeTrialLengthUnits(String freeTrialLengthUnits)
    • setQualifierDetails

      public void setQualifierDetails(List<OfferItemDetail> qualifierDetails)
    • setItemAdjustmentQuantity

      public void setItemAdjustmentQuantity(Integer itemAdjustmentQuantity)
    • setAdjustmentDiscountMethodType

      public void setAdjustmentDiscountMethodType(String adjustmentDiscountMethodType)
    • setAdjustmentDiscountFactor

      public void setAdjustmentDiscountFactor(BigDecimal adjustmentDiscountFactor)
    • setConvertedCurrencySource

      public void setConvertedCurrencySource(String convertedCurrencySource)
    • setConvertedCurrencyTarget

      public void setConvertedCurrencyTarget(String convertedCurrencyTarget)
    • setConvertedCurrencyRate

      public void setConvertedCurrencyRate(BigDecimal convertedCurrencyRate)
    • setAttributes

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