Interface FulfillmentStatusChangeHandler

All Known Implementing Classes:
AbstractFulfillmentStatusChangeHandler, CancelStatusChangeHandler, CaptureAwaitingResultPaymentStatusChangeHandler, CapturingPaymentStatusChangeHandler, FulfilledStatusChangeHandler, FulfillFailedStatusChangeHandler, FulfillingStatusChangeHandler, PaymentCapturedStatusChangeHandler, PaymentCaptureFailedStatusChangeHandler

public interface FulfillmentStatusChangeHandler
Handles changing the status of a fulfillment based on a FulfillmentStatusChangeRequest.
  • Method Details

    • canHandle

      boolean canHandle(FulfillmentStatusChangeRequest request, com.broadleafcommerce.order.client.domain.OrderFulfillment fulfillment)
      Determine if this handler can process the given FulfillmentStatusChangeRequest.
      Parameters:
      request - the status change request
      fulfillment - the fulfillment to have its status changed
      Returns:
      whether this handler can process the status change request
    • process

      com.broadleafcommerce.order.client.domain.OrderFulfillment process(FulfillmentStatusChangeRequest request, com.broadleafcommerce.order.client.domain.OrderFulfillment fulfillment, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Perform the status change requested by the FulfillmentStatusChangeRequest.
      Parameters:
      request - the status change request
      fulfillment - the fulfillment to have its status changed
      contextInfo - context information around sandbox and multitenant state
      Returns:
      the fulfillment, or part of it, which has changed status