Interface FulfillmentCaptureClaimSummaryService<P extends com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaimSummary>

All Known Implementing Classes:
DefaultFulfillmentCaptureClaimSummaryService

public interface FulfillmentCaptureClaimSummaryService<P extends com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaimSummary>
This service provides a mechanism to build a FulfillmentCaptureClaimSummary based on the given FulfillmentCaptureClaims.
Author:
Sunny Yu
  • Method Summary

    Modifier and Type
    Method
    Description
    <C extends com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaim>
    List<P>
    buildClaimSummariesByPaymentId(List<C> fulfillmentCaptureClaims)
    Builds a list of FulfillmentCaptureClaimSummaries from the given fulfillmentCaptureClaims and consolidate them based on FulfillmentCaptureClaim.getPaymentId().
    default P
    buildClaimSummary(String discriminatorType, String discriminatorId, List<com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaim> fulfillmentCaptureClaims)
    Builds a FulfillmentCaptureClaimSummary from the given fulfillment capture fulfillmentCaptureClaims.
    default P
    buildClaimSummary(String discriminatorId, List<com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaim> fulfillmentCaptureClaims)
  • Method Details

    • buildClaimSummary

      @Deprecated default P buildClaimSummary(String discriminatorId, List<com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaim> fulfillmentCaptureClaims)
      Builds a FulfillmentCaptureClaimSummary from the given fulfillment capture fulfillmentCaptureClaims.
      Parameters:
      discriminatorId - the id of the discriminating entity for filtering the fulfillmentCaptureClaims, usually the id of the order fulfillment or payment
      fulfillmentCaptureClaims - the list of FulfillmentCaptureClaims to build the summary from
      Returns:
      a FulfillmentCaptureClaimSummary from the given fulfillment capture fulfillmentCaptureClaims
      Throws:
      UnsupportedOperationException - if this is not otherwise implemented.
    • buildClaimSummary

      default P buildClaimSummary(String discriminatorType, String discriminatorId, List<com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaim> fulfillmentCaptureClaims)
      Builds a FulfillmentCaptureClaimSummary from the given fulfillment capture fulfillmentCaptureClaims.
      Parameters:
      discriminatorType - the type of the discriminating entity for filtering the fulfillmentCaptureClaims, usually order fulfillment or payment
      discriminatorId - the id of the discriminating entity for filtering the fulfillmentCaptureClaims, usually the id of the order fulfillment or payment
      fulfillmentCaptureClaims - the list of FulfillmentCaptureClaims to build the summary from
      Returns:
      a FulfillmentCaptureClaimSummary from the given fulfillment capture fulfillmentCaptureClaims
      Throws:
      UnsupportedOperationException - if this or delegate is not otherwise implemented.
    • buildClaimSummariesByPaymentId

      <C extends com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaim> List<P> buildClaimSummariesByPaymentId(List<C> fulfillmentCaptureClaims)
      Builds a list of FulfillmentCaptureClaimSummaries from the given fulfillmentCaptureClaims and consolidate them based on FulfillmentCaptureClaim.getPaymentId().
      Parameters:
      fulfillmentCaptureClaims - the list of FulfillmentCaptureClaims to build the summary from
      Returns:
      a list of FulfillmentCaptureClaimSummaries from the given fulfillmentCaptureClaims and consolidated by FulfillmentCaptureClaim.getPaymentId()