Class DefaultFulfillmentCaptureClaimSummaryService<P extends com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaimSummary>
- java.lang.Object
-
- com.broadleafcommerce.order.service.DefaultFulfillmentCaptureClaimSummaryService<P>
-
- All Implemented Interfaces:
FulfillmentCaptureClaimSummaryService<P>
public class DefaultFulfillmentCaptureClaimSummaryService<P extends com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaimSummary> extends Object implements FulfillmentCaptureClaimSummaryService<P>
This service provides a mechanism to build aFulfillmentCaptureClaimSummarybased on the givenFulfillmentCaptureClaims.- Author:
- Sunny Yu
-
-
Constructor Summary
Constructors Constructor Description DefaultFulfillmentCaptureClaimSummaryService(com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <C extends com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaim>
List<P>buildClaimSummariesByPaymentId(@NonNull List<C> claims)Builds a list ofFulfillmentCaptureClaimSummariesfrom the given claims and consolidate them based onFulfillmentCaptureClaim.getPaymentId().PbuildClaimSummary(String discriminatorId, @NonNull List<com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaim> claims)Builds aFulfillmentCaptureClaimSummaryfrom the given fulfillment capture claims.protected com.broadleafcommerce.common.extension.TypeFactorygetTypeFactory()
-
-
-
Method Detail
-
buildClaimSummary
public P buildClaimSummary(String discriminatorId, @NonNull @NonNull List<com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaim> claims)
Description copied from interface:FulfillmentCaptureClaimSummaryServiceBuilds aFulfillmentCaptureClaimSummaryfrom the given fulfillment capture claims.- Specified by:
buildClaimSummaryin interfaceFulfillmentCaptureClaimSummaryService<P extends com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaimSummary>- Parameters:
discriminatorId- the id of the discriminating entity for filtering the claims, usually the id of the order fulfillment or paymentclaims- the list ofFulfillmentCaptureClaimsto build the summary from- Returns:
- a
FulfillmentCaptureClaimSummaryfrom the given fulfillment capture claims
-
buildClaimSummariesByPaymentId
public <C extends com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaim> List<P> buildClaimSummariesByPaymentId(@NonNull @NonNull List<C> claims)
Description copied from interface:FulfillmentCaptureClaimSummaryServiceBuilds a list ofFulfillmentCaptureClaimSummariesfrom the given claims and consolidate them based onFulfillmentCaptureClaim.getPaymentId().- Specified by:
buildClaimSummariesByPaymentIdin interfaceFulfillmentCaptureClaimSummaryService<P extends com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaimSummary>- Parameters:
claims- the list ofFulfillmentCaptureClaimsto build the summary from- Returns:
- a list of
FulfillmentCaptureClaimSummariesfrom the given claims and consolidated byFulfillmentCaptureClaim.getPaymentId()
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-
-