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 Summary
Modifier and TypeMethodDescriptiondefault BigDecimalDeprecated.calculatePreTaxUnitPrice(BillingEventItem item, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Calculates the unit cost of an item before tax (includes item adjustment discounts).default PcreateBillingEventItem(Q billingEventItemWithTransactionRequest) Deprecated.createBillingEventItem(Q billingEventItemWithTransactionRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Create the newBillingEventItemfindAllBillingItemsWithTaxDetailsByEventId(String billingEventId) Deprecated.findAllByBillingEventId(String billingEventId) Deprecated.UsereadByBillingEventId(String, ContextInfo)insteadDeprecated.UseCrudEntityService.readByContextId(String, ContextInfo)insteadDeprecated.UseCrudEntityService.readAllByContextId(Iterable, ContextInfo)insteadreadByBillingEventId(String billingEventId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds all billing event item by the associated event idreadWithTaxDetailsByBillingEventId(String billingEventId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) default PupdateBillingEventItem(P billingEventItemOriginal, P billingEventItemPatch) Deprecated.UseCrudEntityService.update(String, Object, ContextInfo)insteaddefault QupdateBillingItemWithTaxDetails(Q billingEventItemWithTaxDetails) Deprecated.updateBillingItemWithTaxDetails(Q billingEventItemWithTaxDetails, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.CrudEntityService
create, createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccess, updateSort
-
Method Details
-
findById
Deprecated.UseCrudEntityService.readByContextId(String, ContextInfo)insteadFinds the billing event item by with the provided ID. -
findByIds
Deprecated.UseCrudEntityService.readAllByContextId(Iterable, ContextInfo)insteadFinds 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) Deprecated.Create the newBillingEventItem -
createBillingEventItem
P createBillingEventItem(Q billingEventItemWithTransactionRequest, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Create the newBillingEventItem -
updateBillingEventItem
@Deprecated(since="1.0.0") default P updateBillingEventItem(P billingEventItemOriginal, P billingEventItemPatch) Deprecated.UseCrudEntityService.update(String, Object, ContextInfo)insteadUpdate the existingBillingEventItem -
findAllByBillingEventId
Deprecated.UsereadByBillingEventId(String, ContextInfo)insteadFinds 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) Deprecated. -
updateBillingItemWithTaxDetails
-
findAllBillingItemsWithTaxDetailsByEventId
@Deprecated(since="1.0.0") default List<Q> findAllBillingItemsWithTaxDetailsByEventId(String billingEventId) Deprecated. -
readWithTaxDetailsByBillingEventId
-
calculatePreTaxUnitPrice
Deprecated.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).
-
calculatePreTaxUnitPrice(BillingEventItem, ContextInfo)instead