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 TypeMethodDescriptionbuildClaimSummariesByPaymentId
(List<C> fulfillmentCaptureClaims) Builds a list ofFulfillmentCaptureClaimSummaries
from the given fulfillmentCaptureClaims and consolidate them based onFulfillmentCaptureClaim.getPaymentId()
.default P
buildClaimSummary
(String discriminatorType, String discriminatorId, List<com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaim> fulfillmentCaptureClaims) Builds aFulfillmentCaptureClaimSummary
from the given fulfillment capture fulfillmentCaptureClaims.default P
buildClaimSummary
(String discriminatorId, List<com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaim> fulfillmentCaptureClaims) Deprecated.
-
Method Details
-
buildClaimSummary
@Deprecated default P buildClaimSummary(String discriminatorId, List<com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaim> fulfillmentCaptureClaims) Deprecated.in favor ofbuildClaimSummary(String, String, List)
Builds aFulfillmentCaptureClaimSummary
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 paymentfulfillmentCaptureClaims
- the list ofFulfillmentCaptureClaims
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 aFulfillmentCaptureClaimSummary
from the given fulfillment capture fulfillmentCaptureClaims.- Parameters:
discriminatorType
- the type of the discriminating entity for filtering the fulfillmentCaptureClaims, usually order fulfillment or paymentdiscriminatorId
- the id of the discriminating entity for filtering the fulfillmentCaptureClaims, usually the id of the order fulfillment or paymentfulfillmentCaptureClaims
- the list ofFulfillmentCaptureClaims
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 ofFulfillmentCaptureClaimSummaries
from the given fulfillmentCaptureClaims and consolidate them based onFulfillmentCaptureClaim.getPaymentId()
.- Parameters:
fulfillmentCaptureClaims
- the list ofFulfillmentCaptureClaims
to build the summary from- Returns:
- a list of
FulfillmentCaptureClaimSummaries
from the given fulfillmentCaptureClaims and consolidated byFulfillmentCaptureClaim.getPaymentId()
-
buildClaimSummary(String, String, List)