Interface OrderFulfillmentItemService<P extends com.broadleafcommerce.order.client.domain.OrderFulfillmentItem>
- All Known Implementing Classes:
DefaultOrderFulfillmentItemService
public interface OrderFulfillmentItemService<P extends com.broadleafcommerce.order.client.domain.OrderFulfillmentItem>
Service API for
OrderFulfillmentItems. Note that this service
provides auxiliary functions rather than the typical CRUD ones since OrderFulfillmentItems are managed through their parent OrderFulfillments.- Author:
- Nathan Moore (nathandmoore)
-
Method Summary
Modifier and TypeMethodDescriptionreadAllReturnableFulfillmentItemsForGroup(String orderId, String orderFulfillmentId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns a list of allOrderFulfillmentItemsin the specifiedOrderFulfillmentfor which aReturnAuthorizationcan be made, i.e., those whose parentOrderFulfillmenthas a status ofOrderFulfillmentStatus.FULFILLEDand are not already in a return.readAllReturnableFulfillmentItemsForGroupTenantContext(String orderId, String orderFulfillmentId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns a list of allOrderFulfillmentItemsin the specifiedOrderFulfillmentfor which aReturnAuthorizationcan be made, i.e., those whose parentOrderFulfillmenthas a status ofOrderFulfillmentStatus.FULFILLEDand are not already in a return.readAllReturnableFulfillmentItemsForOrder(String orderId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns a list of allOrderFulfillmentItemsfor which aReturnAuthorizationcan be made, i.e., those whose parentOrderFulfillmentshave a status ofOrderFulfillmentStatus.FULFILLEDand are not already in a return.readAllReturnableFulfillmentItemsForOrderTenantContext(String orderId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns a list of allOrderFulfillmentItemsfor which aReturnAuthorizationcan be made, i.e., those whose parentOrderFulfillmentshave a status ofOrderFulfillmentStatus.FULFILLEDand are not already in a return.
-
Method Details
-
readAllReturnableFulfillmentItemsForOrder
List<P> readAllReturnableFulfillmentItemsForOrder(String orderId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns a list of allOrderFulfillmentItemsfor which aReturnAuthorizationcan be made, i.e., those whose parentOrderFulfillmentshave a status ofOrderFulfillmentStatus.FULFILLEDand are not already in a return. This will also update the quantities on the items if any have been partially returned.- Parameters:
orderId- ID of the parentOrdercontextInfo- Additional sandbox and tenant info- Returns:
- Returns a list of all
OrderFulfillmentItemsfor which aReturnAuthorizationcan be made, i.e., those whose parentOrderFulfillmentshave a status ofOrderFulfillmentStatus.FULFILLEDand are not already in a return.
-
readAllReturnableFulfillmentItemsForGroup
List<P> readAllReturnableFulfillmentItemsForGroup(String orderId, String orderFulfillmentId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns a list of allOrderFulfillmentItemsin the specifiedOrderFulfillmentfor which aReturnAuthorizationcan be made, i.e., those whose parentOrderFulfillmenthas a status ofOrderFulfillmentStatus.FULFILLEDand are not already in a return. This will also update the quantities on the items if any have been partially returned.- Parameters:
orderId- ID of the parentOrderorderFulfillmentId- ID of the parentOrderFulfillmentcontextInfo- Additional sandbox and tenant info- Returns:
- Returns a list of all
OrderFulfillmentItemsin the specifiedOrderFulfillmentfor which aReturnAuthorizationcan be made, i.e., those whose parentOrderFulfillmenthas a status ofOrderFulfillmentStatus.FULFILLEDand are not already in a return.
-
readAllReturnableFulfillmentItemsForOrderTenantContext
List<P> readAllReturnableFulfillmentItemsForOrderTenantContext(String orderId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns a list of allOrderFulfillmentItemsfor which aReturnAuthorizationcan be made, i.e., those whose parentOrderFulfillmentshave a status ofOrderFulfillmentStatus.FULFILLEDand are not already in a return. This will also update the quantities on the items if any have been partially returned.Calls to services like
ReturnAuthorizationServiceandOrderFulfillmentServicediffer from the standard narrowing behavior which only returns tenant-level (non-application-associated) records when fetching from a tenant context. This implementation involves all records within the tenant regardless of whether they're associated to an application.- Parameters:
orderId- ID of the parentOrdercontextInfo- Additional sandbox and tenant info- Returns:
- Returns a list of all
OrderFulfillmentItemsfor which aReturnAuthorizationcan be made, i.e., those whose parentOrderFulfillmentshave a status ofOrderFulfillmentStatus.FULFILLEDand are not already in a return, based on all records within the tenant.
-
readAllReturnableFulfillmentItemsForGroupTenantContext
List<P> readAllReturnableFulfillmentItemsForGroupTenantContext(String orderId, String orderFulfillmentId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns a list of allOrderFulfillmentItemsin the specifiedOrderFulfillmentfor which aReturnAuthorizationcan be made, i.e., those whose parentOrderFulfillmenthas a status ofOrderFulfillmentStatus.FULFILLEDand are not already in a return. This will also update the quantities on the items if any have been partially returned.Calls to services like
ReturnAuthorizationServiceandOrderFulfillmentServicediffer from the standard narrowing behavior which only returns tenant-level (non-application-associated) records when fetching from a tenant context. This implementation involves all records within the tenant regardless of whether they're associated to an application.- Parameters:
orderId- ID of the parentOrderorderFulfillmentId- ID of the parentOrderFulfillmentcontextInfo- Additional sandbox and tenant info- Returns:
- Returns a list of all
OrderFulfillmentItemsin the specifiedOrderFulfillmentfor which aReturnAuthorizationcan be made, i.e., those whose parentOrderFulfillmenthas a status ofOrderFulfillmentStatus.FULFILLEDand are not already in a return, based on all records within the tenant.
-