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 ofFulfillmentCaptureClaimSummariesfrom the given fulfillmentCaptureClaims and consolidate them based onFulfillmentCaptureClaim.getPaymentId().buildClaimSummary(String discriminatorType, String discriminatorId, List<com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaim> fulfillmentCaptureClaims) Builds aFulfillmentCaptureClaimSummaryfrom the given fulfillment capture fulfillmentCaptureClaims.protected javax.money.CurrencyUnitgetCurrency(@NonNull List<com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaim> fulfillmentCaptureClaims) protected com.broadleafcommerce.common.extension.TypeFactoryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:FulfillmentCaptureClaimSummaryServiceBuilds aFulfillmentCaptureClaimSummaryfrom the given fulfillment capture fulfillmentCaptureClaims.- Specified by:
buildClaimSummaryin 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 ofFulfillmentCaptureClaimsto build the summary from- Returns:
- a
FulfillmentCaptureClaimSummaryfrom 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:FulfillmentCaptureClaimSummaryServiceBuilds a list ofFulfillmentCaptureClaimSummariesfrom the given fulfillmentCaptureClaims and consolidate them based onFulfillmentCaptureClaim.getPaymentId().- Specified by:
buildClaimSummariesByPaymentIdin interfaceFulfillmentCaptureClaimSummaryService<P extends com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaimSummary>- Parameters:
fulfillmentCaptureClaims- the list ofFulfillmentCaptureClaimsto build the summary from- Returns:
- a list of
FulfillmentCaptureClaimSummariesfrom 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()
-