Interface BillingEventItemService<P extends BillingEventItem,Q extends BillingEventItemWithTaxDetails>

All Superinterfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
All Known Implementing Classes:
DefaultBillingEventItemService

public interface BillingEventItemService<P extends BillingEventItem,Q extends BillingEventItemWithTaxDetails> extends com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
  • Method Details

    • findById

      @Deprecated(since="1.0.0") default Optional<P> findById(String id)
      Deprecated.
      Use CrudEntityService.readByContextId(String, ContextInfo) instead
      Finds the billing event item by with the provided ID.
    • findByIds

      @Deprecated(since="1.0.0") default Set<P> findByIds(Iterable<String> ids)
      Deprecated.
      Use CrudEntityService.readAllByContextId(Iterable, ContextInfo) instead
      Finds the billing event items by with the provided IDs.
      Parameters:
      ids - the billing event item IDs to search by
      Returns:
      an iterable of billing event items with the requested IDs
    • createBillingEventItem

      @Deprecated(since="1.0.0") default P createBillingEventItem(Q billingEventItemWithTransactionRequest)
      Create the new BillingEventItem
    • createBillingEventItem

      P createBillingEventItem(Q billingEventItemWithTransactionRequest, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Create the new BillingEventItem
    • updateBillingEventItem

      @Deprecated(since="1.0.0") default P updateBillingEventItem(P billingEventItemOriginal, P billingEventItemPatch)
      Deprecated.
      Use CrudEntityService.update(String, Object, ContextInfo) instead
      Update the existing BillingEventItem
    • findAllByBillingEventId

      @Deprecated(since="1.0.0") default List<P> findAllByBillingEventId(String billingEventId)
      Finds all billing event item by the associated event id
    • readByBillingEventId

      List<P> readByBillingEventId(String billingEventId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Finds all billing event item by the associated event id
    • updateBillingItemWithTaxDetails

      @Deprecated(since="1.0.0") default Q updateBillingItemWithTaxDetails(Q billingEventItemWithTaxDetails)
    • updateBillingItemWithTaxDetails

      Q updateBillingItemWithTaxDetails(Q billingEventItemWithTaxDetails, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • findAllBillingItemsWithTaxDetailsByEventId

      @Deprecated(since="1.0.0") default List<Q> findAllBillingItemsWithTaxDetailsByEventId(String billingEventId)
    • readWithTaxDetailsByBillingEventId

      List<Q> readWithTaxDetailsByBillingEventId(String billingEventId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • calculatePreTaxUnitPrice

      @Deprecated(since="1.0.0") default BigDecimal calculatePreTaxUnitPrice(BillingEventItem item)
      Calculates the unit cost of an item before tax (includes item adjustment discounts).
    • calculatePreTaxUnitPrice

      BigDecimal calculatePreTaxUnitPrice(BillingEventItem item, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Calculates the unit cost of an item before tax (includes item adjustment discounts).