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 a
FulfillmentCaptureClaimSummary
based on the
given FulfillmentCaptureClaims
.- Author:
- Sunny Yu
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultFulfillmentCaptureClaimSummaryService
(com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionbuildClaimSummariesByPaymentId
(@NonNull List<C> fulfillmentCaptureClaims) Builds a list ofFulfillmentCaptureClaimSummaries
from the given fulfillmentCaptureClaims and consolidate them based onFulfillmentCaptureClaim.getPaymentId()
.buildClaimSummary
(String discriminatorType, String discriminatorId, List<com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaim> fulfillmentCaptureClaims) Builds aFulfillmentCaptureClaimSummary
from the given fulfillment capture fulfillmentCaptureClaims.protected javax.money.CurrencyUnit
getCurrency
(@NonNull List<com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaim> fulfillmentCaptureClaims) protected com.broadleafcommerce.common.extension.TypeFactory
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.order.service.FulfillmentCaptureClaimSummaryService
buildClaimSummary
-
Constructor Details
-
DefaultFulfillmentCaptureClaimSummaryService
public DefaultFulfillmentCaptureClaimSummaryService(com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
buildClaimSummary
public P buildClaimSummary(String discriminatorType, String discriminatorId, List<com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaim> fulfillmentCaptureClaims) Description copied from interface:FulfillmentCaptureClaimSummaryService
Builds aFulfillmentCaptureClaimSummary
from the given fulfillment capture fulfillmentCaptureClaims.- Specified by:
buildClaimSummary
in interfaceFulfillmentCaptureClaimSummaryService<P extends com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaimSummary>
- 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
-
buildClaimSummariesByPaymentId
public <C extends com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaim> List<P> buildClaimSummariesByPaymentId(@NonNull @NonNull List<C> fulfillmentCaptureClaims) Description copied from interface:FulfillmentCaptureClaimSummaryService
Builds a list ofFulfillmentCaptureClaimSummaries
from the given fulfillmentCaptureClaims and consolidate them based onFulfillmentCaptureClaim.getPaymentId()
.- Specified by:
buildClaimSummariesByPaymentId
in interfaceFulfillmentCaptureClaimSummaryService<P extends com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaimSummary>
- Parameters:
fulfillmentCaptureClaims
- the list ofFulfillmentCaptureClaims
to build the summary from- Returns:
- a list of
FulfillmentCaptureClaimSummaries
from the given fulfillmentCaptureClaims and consolidated byFulfillmentCaptureClaim.getPaymentId()
-
getCurrency
protected javax.money.CurrencyUnit getCurrency(@NonNull @NonNull List<com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaim> fulfillmentCaptureClaims) -
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-