Class DefaultReturnOperationService
- All Implemented Interfaces:
ReturnOperationService
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
An intermediary data structure used internally byReturnOperationService
to hold all the relevant data regarding confirms and existing returns, to prevent processing the data multiple times and make it easier to pass the data between methods. -
Constructor Summary
ConstructorDescriptionDefaultReturnOperationService
(com.broadleafcommerce.common.extension.TypeFactory typeFactory, OrderProvider<com.broadleafcommerce.order.client.domain.Order> orderProvider, FulfillmentProvider<com.broadleafcommerce.order.client.domain.OrderFulfillment> fulfillmentProvider, ReturnAuthorizationProvider<com.broadleafcommerce.order.client.domain.ReturnAuthorization> returnAuthorizationProvider, ReturnRequestValidator returnRequestValidator, ReturnGenerationService returnGenerationService, ReturnCreatedProducer returnCreatedProducer, ConfirmReturnRequestValidator confirmReturnRequestValidator, ReturnConfirmationGenerationService returnConfirmationGenerationService, ReturnConfirmedProducer returnConfirmedProducer, CancelReturnRequestValidator cancelReturnRequestValidator, ReturnSplittingService returnSplittingService, ReturnCancelledProducer returnCancelledProducer) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
applyConfirmations
(DefaultReturnOperationService.ConfirmReturnHydrationResult hydrationResult, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Generate newReturnConfirmations
from theConfirmReturnRequest
and apply them on theReturnAuthorization
.protected ConfirmReturnItemRequest
buildConfirmReturnRequestFrom
(String itemId, int quantity, ConfirmReturnItemRequest existingRequest) Builds aConfirmReturnItemRequest
from the given id, quantity, andConfirmReturnItemRequest
that wish to copy other fields from.List<com.broadleafcommerce.order.client.domain.ReturnAuthorization>
cancelReturn
(String orderId, CancelReturnRequest cancelReturnRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Cancel aReturnAuthorization
for theOrder
with the givenorderId
.protected void
changeReturnAuthorizationStatus
(com.broadleafcommerce.order.client.domain.ReturnAuthorization returnAuthorization) Update the status of theReturnAuthorization
toReturnAuthorizationStatus.CONFIRMED
if it has now been completely confirmed, orReturnAuthorizationStatus.PARTIALLY_CONFIRMED
if only partially confirmed.com.broadleafcommerce.order.client.domain.ReturnAuthorization
confirmReturn
(String orderId, ConfirmReturnRequest confirmReturnRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) CreateReturnConfirmations
forReturnAuthorizationItems
within theOrder
with the givenorderId
.com.broadleafcommerce.order.client.domain.ReturnAuthorization
createReturn
(String orderId, ReturnRequest returnRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Create aReturnAuthorization
for theOrder
with the givenorderId
containing the items requested byreturnRequest
.protected com.broadleafcommerce.order.client.domain.ReturnAuthorization
estimateReturn
(com.broadleafcommerce.order.client.domain.Order order, List<com.broadleafcommerce.order.client.domain.OrderFulfillment> fulfillments, ReturnRequest returnRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) com.broadleafcommerce.order.client.domain.ReturnAuthorization
estimateReturn
(String orderId, ReturnRequest returnRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Estimate aReturnAuthorization
for theOrder
with the givenorderId
containing the items requested byreturnRequest
.protected void
generateReturnConfirmations
(DefaultReturnOperationService.ConfirmReturnHydrationResult hydrationResult, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Generates theReturnConfirmations
and add them to respectedReturnAuthorizationItems
.protected CancelReturnRequestValidator
protected List<com.broadleafcommerce.order.client.domain.OrderFulfillmentItem>
getConfirmableTargetItems
(DefaultReturnOperationService.ConfirmReturnHydrationResult hydrationResult) Gets a list ofOrderFulfillmentItems
that should be automatically confirmed along with their qualifiers.getConfirmedQuantityByItemId
(com.broadleafcommerce.order.client.domain.ReturnAuthorization returnAuthorization) Gets a map of confirmed quantities byOrderFulfillmentItem.getId()
.protected ConfirmReturnRequestValidator
protected com.broadleafcommerce.common.messaging.notification.DetachedDurableMessageSender
protected List<com.broadleafcommerce.order.client.domain.OrderFulfillmentItem>
getFulfillmentItemsBeingConfirmed
(DefaultReturnOperationService.ConfirmReturnHydrationResult hydrationResult) Gets a list ofOrderFulfillmentItems
that are being confirmed.protected List<com.broadleafcommerce.order.client.domain.OrderFulfillmentItem>
getFulfillmentItemsByOrderItemId
(List<com.broadleafcommerce.order.client.domain.OrderFulfillmentItem> fulfillmentItems, String orderItemId) Gets a list ofOrderFulfillmentItems
based on the givenOrderFulfillmentItem.getOrderItemId()
.protected FulfillmentProvider<com.broadleafcommerce.order.client.domain.OrderFulfillment>
getHydratedConfirmReturn
(com.broadleafcommerce.order.client.domain.Order order, List<com.broadleafcommerce.order.client.domain.OrderFulfillment> fulfillments, com.broadleafcommerce.order.client.domain.ReturnAuthorization returnAuthorization, ConfirmReturnRequest confirmReturnRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Builds aDefaultReturnOperationService.ConfirmReturnHydrationResult
based on the given parameters.protected OrderOperationServiceOfferUtils
protected OrderProvider<com.broadleafcommerce.order.client.domain.Order>
protected OrderOperationProviderProperties
protected List<com.broadleafcommerce.order.common.domain.OfferItemDetail>
getQualifierDetails
(com.broadleafcommerce.order.client.domain.OrderFulfillmentItem item, DefaultReturnOperationService.ConfirmReturnHydrationResult hydrationResult) Gets a list ofOfferItemDetails
representing qualifier details for the givenOrderFulfillmentItem
.protected ReturnAuthorizationProvider<com.broadleafcommerce.order.client.domain.ReturnAuthorization>
protected ReturnCancelledProducer
protected ReturnConfirmationGenerationService
protected ReturnConfirmedProducer
protected ReturnCreatedProducer
protected ReturnGenerationService
protected ReturnRequestValidator
protected ReturnSplittingService
protected int
getTargetItemQuantityToConfirm
(DefaultReturnOperationService.ConfirmReturnHydrationResult hydrationResult, ConfirmReturnItemRequest qualifierConfirmRequest, com.broadleafcommerce.order.client.domain.OrderFulfillmentItem targetItem, com.broadleafcommerce.order.common.domain.OfferItemDetail qualifierDetail) Calculates and returns the quantity of the target item to confirm.protected com.broadleafcommerce.common.extension.TypeFactory
protected boolean
isCompletelyConfirmed
(com.broadleafcommerce.order.client.domain.ReturnAuthorization returnAuthorization) Check ifReturnConfirmations
exist for all of the item quantity within theReturnAuthorization
.protected void
processConfirmRequestForOfferTargetItems
(DefaultReturnOperationService.ConfirmReturnHydrationResult hydrationResult) Ensures that whenever an offer qualifier item is being confirmed, the offer target item is being confirmed as well.protected void
processTargetItemToConfirm
(com.broadleafcommerce.order.client.domain.OrderFulfillmentItem targetItem, List<com.broadleafcommerce.order.client.domain.OrderFulfillmentItem> itemsBeingConfirmed, DefaultReturnOperationService.ConfirmReturnHydrationResult hydrationResult) Adds all the confirmable target items from the qualifier item to the givenConfirmReturnRequest
.protected com.broadleafcommerce.data.tracking.core.context.ContextInfo
readContextInfo
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected com.broadleafcommerce.order.client.domain.ReturnAuthorization
readReturnAuthorization
(String id, String orderId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected void
sendReturnCancelledMessage
(CancelReturnRequest request, com.broadleafcommerce.order.client.domain.ReturnAuthorization cancelledReturn, com.broadleafcommerce.order.client.domain.ReturnAuthorization confirmedReturn, com.broadleafcommerce.order.client.domain.Order order, List<com.broadleafcommerce.order.client.domain.OrderFulfillment> fulfillments, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected void
sendReturnConfirmedMessage
(ConfirmReturnRequest request, com.broadleafcommerce.order.client.domain.ReturnAuthorization returnAuthorization, com.broadleafcommerce.order.client.domain.Order order, List<com.broadleafcommerce.order.client.domain.OrderFulfillment> fulfillments, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected void
sendReturnCreatedMessage
(ReturnRequest request, com.broadleafcommerce.order.client.domain.ReturnAuthorization returnAuthorization, com.broadleafcommerce.order.client.domain.Order order, List<com.broadleafcommerce.order.client.domain.OrderFulfillment> fulfillments, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) void
setDetachedDurableMessageSender
(com.broadleafcommerce.common.messaging.notification.DetachedDurableMessageSender detachedDurableMessageSender) void
setOfferUtils
(OrderOperationServiceOfferUtils offerUtils) void
setProperties
(OrderOperationProviderProperties properties)
-
Constructor Details
-
DefaultReturnOperationService
public DefaultReturnOperationService(com.broadleafcommerce.common.extension.TypeFactory typeFactory, OrderProvider<com.broadleafcommerce.order.client.domain.Order> orderProvider, FulfillmentProvider<com.broadleafcommerce.order.client.domain.OrderFulfillment> fulfillmentProvider, ReturnAuthorizationProvider<com.broadleafcommerce.order.client.domain.ReturnAuthorization> returnAuthorizationProvider, ReturnRequestValidator returnRequestValidator, ReturnGenerationService returnGenerationService, ReturnCreatedProducer returnCreatedProducer, ConfirmReturnRequestValidator confirmReturnRequestValidator, ReturnConfirmationGenerationService returnConfirmationGenerationService, ReturnConfirmedProducer returnConfirmedProducer, CancelReturnRequestValidator cancelReturnRequestValidator, ReturnSplittingService returnSplittingService, ReturnCancelledProducer returnCancelledProducer)
-
-
Method Details
-
createReturn
public com.broadleafcommerce.order.client.domain.ReturnAuthorization createReturn(String orderId, ReturnRequest returnRequest, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:ReturnOperationService
Create aReturnAuthorization
for theOrder
with the givenorderId
containing the items requested byreturnRequest
.- Specified by:
createReturn
in interfaceReturnOperationService
- Parameters:
orderId
- the ID of the order with the items to returnreturnRequest
- the request containing items to returncontextInfo
- context information around sandbox and multitenant state- Returns:
- the created
ReturnAuthorization
-
sendReturnCreatedMessage
protected void sendReturnCreatedMessage(ReturnRequest request, com.broadleafcommerce.order.client.domain.ReturnAuthorization returnAuthorization, com.broadleafcommerce.order.client.domain.Order order, List<com.broadleafcommerce.order.client.domain.OrderFulfillment> fulfillments, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
confirmReturn
public com.broadleafcommerce.order.client.domain.ReturnAuthorization confirmReturn(String orderId, ConfirmReturnRequest confirmReturnRequest, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:ReturnOperationService
CreateReturnConfirmations
forReturnAuthorizationItems
within theOrder
with the givenorderId
.- Specified by:
confirmReturn
in interfaceReturnOperationService
- Parameters:
orderId
- the ID of the order with the return having items confirmedconfirmReturnRequest
- the request containing items to confirm as returnedcontextInfo
- context information around sandbox and multitenant state- Returns:
- the
ReturnAuthorization
updated with the newReturnConfirmations
-
processConfirmRequestForOfferTargetItems
protected void processConfirmRequestForOfferTargetItems(DefaultReturnOperationService.ConfirmReturnHydrationResult hydrationResult) Ensures that whenever an offer qualifier item is being confirmed, the offer target item is being confirmed as well.For example, itemA is a free gift offer qualifier item, and itemFG is the target item that was added from the offer. Whenever itemA is being confirmed, a
ConfirmReturnItemRequest
for itemFG will automatically be created or updated.- Parameters:
hydrationResult
- theDefaultReturnOperationService.ConfirmReturnHydrationResult
containing all the relevant data
-
getFulfillmentItemsBeingConfirmed
protected List<com.broadleafcommerce.order.client.domain.OrderFulfillmentItem> getFulfillmentItemsBeingConfirmed(DefaultReturnOperationService.ConfirmReturnHydrationResult hydrationResult) Gets a list ofOrderFulfillmentItems
that are being confirmed.- Parameters:
hydrationResult
- theDefaultReturnOperationService.ConfirmReturnHydrationResult
containing all the relevant data- Returns:
- a list of
OrderFulfillmentItems
that are being confirmed
-
getConfirmableTargetItems
protected List<com.broadleafcommerce.order.client.domain.OrderFulfillmentItem> getConfirmableTargetItems(DefaultReturnOperationService.ConfirmReturnHydrationResult hydrationResult) Gets a list ofOrderFulfillmentItems
that should be automatically confirmed along with their qualifiers.By default, this will only get a list of free gift
OrderFulfillmentItems
.- Parameters:
hydrationResult
- theDefaultReturnOperationService.ConfirmReturnHydrationResult
containing all the relevant data- Returns:
- a list of
OrderFulfillmentItems
that should be automatically confirmed along with their qualifiers
-
processTargetItemToConfirm
protected void processTargetItemToConfirm(com.broadleafcommerce.order.client.domain.OrderFulfillmentItem targetItem, List<com.broadleafcommerce.order.client.domain.OrderFulfillmentItem> itemsBeingConfirmed, DefaultReturnOperationService.ConfirmReturnHydrationResult hydrationResult) Adds all the confirmable target items from the qualifier item to the givenConfirmReturnRequest
.- Parameters:
targetItem
- the targetOrderFulfillmentItem
to processitemsBeingConfirmed
- a list ofOrderFulfillmentItems
that are being confirmedhydrationResult
- theDefaultReturnOperationService.ConfirmReturnHydrationResult
containing all the relevant data
-
getQualifierDetails
protected List<com.broadleafcommerce.order.common.domain.OfferItemDetail> getQualifierDetails(com.broadleafcommerce.order.client.domain.OrderFulfillmentItem item, DefaultReturnOperationService.ConfirmReturnHydrationResult hydrationResult) Gets a list ofOfferItemDetails
representing qualifier details for the givenOrderFulfillmentItem
.The
OrderFulfillmentItem
itself can have qualifier details pointing to otherOrderFulfillmentItems
, but only the qualifier details for the correspondingOrderItem
is obtained by default.- Parameters:
item
- theOrderFulfillmentItem
to get the qualifier details fromhydrationResult
- theDefaultReturnOperationService.ConfirmReturnHydrationResult
containing all the relevant data- Returns:
- a list of
OfferItemDetails
representing qualifier details for the givenOrderFulfillmentItem
-
getTargetItemQuantityToConfirm
protected int getTargetItemQuantityToConfirm(DefaultReturnOperationService.ConfirmReturnHydrationResult hydrationResult, ConfirmReturnItemRequest qualifierConfirmRequest, com.broadleafcommerce.order.client.domain.OrderFulfillmentItem targetItem, com.broadleafcommerce.order.common.domain.OfferItemDetail qualifierDetail) Calculates and returns the quantity of the target item to confirm.The quantity of the target item to confirm is the lowest number between the
qualifier item quantity being confirmed
, the target item quantity that is target of this qualifier, and total confirmable target item quantity. Using the lowest number so that we don't confirm more items than we have.Additionally, if the qualifier and target are the same item, then we'll add the quantity to confirm on top of the quantity already being confirmed.
- Parameters:
hydrationResult
- theDefaultReturnOperationService.ConfirmReturnHydrationResult
containing all the relevant dataqualifierConfirmRequest
- theConfirmReturnItemRequest
for the qualifier itemtargetItem
- the targetOrderFulfillmentItem
to calculate the quantity forqualifierDetail
- theOfferItemDetail
representing the qualifier details- Returns:
- the quantity of the target item to confirm
-
getFulfillmentItemsByOrderItemId
protected List<com.broadleafcommerce.order.client.domain.OrderFulfillmentItem> getFulfillmentItemsByOrderItemId(List<com.broadleafcommerce.order.client.domain.OrderFulfillmentItem> fulfillmentItems, String orderItemId) Gets a list ofOrderFulfillmentItems
based on the givenOrderFulfillmentItem.getOrderItemId()
.Note that there can be many
OrderFulfillmentItems
that have the sameOrderFulfillmentItem.getOrderItemId()
, since they can be split.- Parameters:
fulfillmentItems
- theOrderFulfillmentItems
to find the items fromorderItemId
- theOrderFulfillmentItem.getOrderItemId()
to filter by- Returns:
- a list of
OrderFulfillmentItems
based on the givenOrderFulfillmentItem.getOrderItemId()
-
getConfirmedQuantityByItemId
protected Map<String,Integer> getConfirmedQuantityByItemId(com.broadleafcommerce.order.client.domain.ReturnAuthorization returnAuthorization) Gets a map of confirmed quantities byOrderFulfillmentItem.getId()
.- Parameters:
returnAuthorization
- theReturnAuthorization
to get all theReturnConfirmations
from- Returns:
- a map of confirmed quantities by
OrderFulfillmentItem.getId()
-
buildConfirmReturnRequestFrom
protected ConfirmReturnItemRequest buildConfirmReturnRequestFrom(String itemId, int quantity, ConfirmReturnItemRequest existingRequest) Builds aConfirmReturnItemRequest
from the given id, quantity, andConfirmReturnItemRequest
that wish to copy other fields from.- Parameters:
itemId
- theConfirmReturnItemRequest.getOrderFulfillmentItemId()
of the newConfirmReturnItemRequest
quantity
- theConfirmReturnItemRequest.getQuantity()
of the newConfirmReturnItemRequest
existingRequest
- theConfirmReturnItemRequest
to copy the rest of the fields from- Returns:
- a new
ConfirmReturnItemRequest
from the given id, quantity, andConfirmReturnItemRequest
that wish to copy other fields from
-
readReturnAuthorization
-
applyConfirmations
protected void applyConfirmations(DefaultReturnOperationService.ConfirmReturnHydrationResult hydrationResult, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Generate newReturnConfirmations
from theConfirmReturnRequest
and apply them on theReturnAuthorization
.- Parameters:
hydrationResult
- theDefaultReturnOperationService.ConfirmReturnHydrationResult
containing theReturnAuthorization
andConfirmReturnRequest
contextInfo
- context information around sandbox and multitenant state
-
generateReturnConfirmations
protected void generateReturnConfirmations(DefaultReturnOperationService.ConfirmReturnHydrationResult hydrationResult, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Generates theReturnConfirmations
and add them to respectedReturnAuthorizationItems
.- Parameters:
hydrationResult
- theDefaultReturnOperationService.ConfirmReturnHydrationResult
containing theReturnAuthorization
andConfirmReturnRequest
contextInfo
- context information around sandbox and multitenant state
-
changeReturnAuthorizationStatus
protected void changeReturnAuthorizationStatus(com.broadleafcommerce.order.client.domain.ReturnAuthorization returnAuthorization) Update the status of theReturnAuthorization
toReturnAuthorizationStatus.CONFIRMED
if it has now been completely confirmed, orReturnAuthorizationStatus.PARTIALLY_CONFIRMED
if only partially confirmed.- Parameters:
returnAuthorization
- the return authorization to update the status of
-
isCompletelyConfirmed
protected boolean isCompletelyConfirmed(com.broadleafcommerce.order.client.domain.ReturnAuthorization returnAuthorization) Check ifReturnConfirmations
exist for all of the item quantity within theReturnAuthorization
.- Parameters:
returnAuthorization
- the return authorization to check if it is completely confirmed- Returns:
- whether the return confirmation is completely confirmed
-
sendReturnConfirmedMessage
protected void sendReturnConfirmedMessage(ConfirmReturnRequest request, com.broadleafcommerce.order.client.domain.ReturnAuthorization returnAuthorization, com.broadleafcommerce.order.client.domain.Order order, List<com.broadleafcommerce.order.client.domain.OrderFulfillment> fulfillments, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
cancelReturn
public List<com.broadleafcommerce.order.client.domain.ReturnAuthorization> cancelReturn(String orderId, CancelReturnRequest cancelReturnRequest, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:ReturnOperationService
Cancel aReturnAuthorization
for theOrder
with the givenorderId
. Any already confirmedReturnAuthorizationItems
are extracted into a new separate confirmedReturnAuthorization
, since they cannot be cancelled.- Specified by:
cancelReturn
in interfaceReturnOperationService
- Parameters:
orderId
- the ID of the order with the return to cancelcancelReturnRequest
- the request indicating which return to cancelcontextInfo
- context information around sandbox and multitenant state- Returns:
- the cancelled
ReturnAuthorization
and possibly a newly separated confirmedReturnAuthorization
, if there were any confirmations
-
sendReturnCancelledMessage
protected void sendReturnCancelledMessage(CancelReturnRequest request, com.broadleafcommerce.order.client.domain.ReturnAuthorization cancelledReturn, @Nullable com.broadleafcommerce.order.client.domain.ReturnAuthorization confirmedReturn, com.broadleafcommerce.order.client.domain.Order order, List<com.broadleafcommerce.order.client.domain.OrderFulfillment> fulfillments, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
estimateReturn
public com.broadleafcommerce.order.client.domain.ReturnAuthorization estimateReturn(String orderId, ReturnRequest returnRequest, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:ReturnOperationService
Estimate aReturnAuthorization
for theOrder
with the givenorderId
containing the items requested byreturnRequest
.- Specified by:
estimateReturn
in interfaceReturnOperationService
- Parameters:
orderId
- the ID of the order with the items to returnreturnRequest
- the request containing items to returncontextInfo
- context information around sandbox and multitenant state- Returns:
- the created
ReturnAuthorization
-
estimateReturn
protected com.broadleafcommerce.order.client.domain.ReturnAuthorization estimateReturn(com.broadleafcommerce.order.client.domain.Order order, List<com.broadleafcommerce.order.client.domain.OrderFulfillment> fulfillments, ReturnRequest returnRequest, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
readContextInfo
@Nullable protected com.broadleafcommerce.data.tracking.core.context.ContextInfo readContextInfo(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
getHydratedConfirmReturn
protected DefaultReturnOperationService.ConfirmReturnHydrationResult getHydratedConfirmReturn(com.broadleafcommerce.order.client.domain.Order order, List<com.broadleafcommerce.order.client.domain.OrderFulfillment> fulfillments, com.broadleafcommerce.order.client.domain.ReturnAuthorization returnAuthorization, ConfirmReturnRequest confirmReturnRequest, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Builds aDefaultReturnOperationService.ConfirmReturnHydrationResult
based on the given parameters.- Parameters:
order
-fulfillments
- theOrderFulfillments
to get all theOrderFulfillmentItems
fromreturnAuthorization
- theReturnAuthorization
to get all the returned and confirmed quantities fromconfirmReturnRequest
- theConfirmReturnRequest
to get all theConfirmReturnItemRequests
fromcontextInfo
- the context around sandboxing and multitenant state- Returns:
- a hydrated
DefaultReturnOperationService.ConfirmReturnHydrationResult
from the given parameters
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory() -
getOrderProvider
-
getFulfillmentProvider
protected FulfillmentProvider<com.broadleafcommerce.order.client.domain.OrderFulfillment> getFulfillmentProvider() -
getReturnAuthorizationProvider
protected ReturnAuthorizationProvider<com.broadleafcommerce.order.client.domain.ReturnAuthorization> getReturnAuthorizationProvider() -
getReturnRequestValidator
-
getReturnGenerationService
-
getReturnCreatedProducer
-
getConfirmReturnRequestValidator
-
getReturnConfirmationGenerationService
-
getReturnConfirmedProducer
-
getCancelReturnRequestValidator
-
getReturnSplittingService
-
getReturnCancelledProducer
-
getOfferUtils
-
setOfferUtils
-
getDetachedDurableMessageSender
protected com.broadleafcommerce.common.messaging.notification.DetachedDurableMessageSender getDetachedDurableMessageSender() -
setDetachedDurableMessageSender
@Autowired(required=false) public void setDetachedDurableMessageSender(com.broadleafcommerce.common.messaging.notification.DetachedDurableMessageSender detachedDurableMessageSender) -
getProperties
-
setProperties
-