Interface FulfillmentCaptureClaimProvider
- All Known Implementing Classes:
ExternalFulfillmentCaptureClaimProvider
public interface FulfillmentCaptureClaimProvider
Provider for interfacing with operations involving fulfillment capture claims. Typically utilizes
WebClient to make requests to an external REST API.- Author:
- Sunny Yu
-
Method Summary
Modifier and TypeMethodDescription<C extends com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaim>
List<C>createFulfillmentCaptureClaims(List<C> claimsToCreate, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Creates a list ofFulfillmentCaptureClaims.com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaimSummaryreadByFulfillmentId(String fulfillmentId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves aFulfillmentCaptureClaimSummarythat belong to the given fulfillment.com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaimSummaryreadByPaymentId(String paymentId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves aFulfillmentCaptureClaimSummarythat belong to the given payment.List<com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaimSummary>readByPaymentIds(List<String> paymentIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves a list ofFulfillmentCaptureClaimSummariesthat belong to the given payments
-
Method Details
-
readByPaymentId
com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaimSummary readByPaymentId(String paymentId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves aFulfillmentCaptureClaimSummarythat belong to the given payment.- Parameters:
paymentId- the id of the payment to retrieve theFulfillmentCaptureClaimSummaryforcontextInfo- context information around sandbox and multitenant state- Returns:
- a
FulfillmentCaptureClaimSummarythat belong to the given payment
-
readByPaymentIds
List<com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaimSummary> readByPaymentIds(List<String> paymentIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves a list ofFulfillmentCaptureClaimSummariesthat belong to the given paymentsNote that each payment has its own
FulfillmentCaptureClaimSummary.- Parameters:
paymentIds- the ids of the payments to retrieve theFulfillmentCaptureClaimSummariesforcontextInfo- context information around sandbox and multitenant state- Returns:
- a list of
FulfillmentCaptureClaimSummariesthat belong to the given payments
-
readByFulfillmentId
com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaimSummary readByFulfillmentId(String fulfillmentId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves aFulfillmentCaptureClaimSummarythat belong to the given fulfillment.- Parameters:
fulfillmentId- the id of the order fulfillment to retrieve theFulfillmentCaptureClaimSummaryforcontextInfo- context information around sandbox and multitenant state- Returns:
- a
FulfillmentCaptureClaimSummarythat belong to the given fulfillment
-
createFulfillmentCaptureClaims
<C extends com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaim> List<C> createFulfillmentCaptureClaims(List<C> claimsToCreate, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Creates a list ofFulfillmentCaptureClaims.- Parameters:
claimsToCreate- theFulfillmentCaptureClaimsto createcontextInfo- context information around sandbox and multitenant state- Returns:
- the created
FulfillmentCaptureClaims
-