Class ExternalFulfillmentCaptureClaimProvider
java.lang.Object
com.broadleafcommerce.orderoperation.service.provider.external.AbstractExternalProvider
com.broadleafcommerce.orderoperation.service.provider.external.ExternalFulfillmentCaptureClaimProvider
- All Implemented Interfaces:
FulfillmentCaptureClaimProvider
public class ExternalFulfillmentCaptureClaimProvider
extends AbstractExternalProvider
implements FulfillmentCaptureClaimProvider
-
Field Summary
Fields inherited from class com.broadleafcommerce.orderoperation.service.provider.external.AbstractExternalProvider
ENTITY_NOT_FOUND, RSQL_FILTER_PARAM -
Constructor Summary
ConstructorsConstructorDescriptionExternalFulfillmentCaptureClaimProvider(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalOrderProperties properties) -
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.protected org.springframework.web.util.UriComponentsBuilderGets the base URI common to all requests this provider will make.protected ExternalOrderPropertiesprotected Stringcom.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 paymentsMethods inherited from class com.broadleafcommerce.orderoperation.service.provider.external.AbstractExternalProvider
buildNotFoundException, executeRequest, getHeaders, getObjectMapper, getTypeFactory, getWebClient, isEntityNotFound, pageableToParams
-
Constructor Details
-
ExternalFulfillmentCaptureClaimProvider
public ExternalFulfillmentCaptureClaimProvider(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalOrderProperties properties)
-
-
Method Details
-
readByPaymentId
public com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaimSummary readByPaymentId(String paymentId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:FulfillmentCaptureClaimProviderRetrieves aFulfillmentCaptureClaimSummarythat belong to the given payment.- Specified by:
readByPaymentIdin interfaceFulfillmentCaptureClaimProvider- 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
public List<com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaimSummary> readByPaymentIds(List<String> paymentIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:FulfillmentCaptureClaimProviderRetrieves a list ofFulfillmentCaptureClaimSummariesthat belong to the given paymentsNote that each payment has its own
FulfillmentCaptureClaimSummary.- Specified by:
readByPaymentIdsin interfaceFulfillmentCaptureClaimProvider- 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
public com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaimSummary readByFulfillmentId(String fulfillmentId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:FulfillmentCaptureClaimProviderRetrieves aFulfillmentCaptureClaimSummarythat belong to the given fulfillment.- Specified by:
readByFulfillmentIdin interfaceFulfillmentCaptureClaimProvider- 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
public <C extends com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaim> List<C> createFulfillmentCaptureClaims(List<C> claimsToCreate, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:FulfillmentCaptureClaimProviderCreates a list ofFulfillmentCaptureClaims.- Specified by:
createFulfillmentCaptureClaimsin interfaceFulfillmentCaptureClaimProvider- Parameters:
claimsToCreate- theFulfillmentCaptureClaimsto createcontextInfo- context information around sandbox and multitenant state- Returns:
- the created
FulfillmentCaptureClaims
-
getBaseUri
protected org.springframework.web.util.UriComponentsBuilder getBaseUri()Gets the base URI common to all requests this provider will make.- Returns:
- a URI components builder with the base URI set up
-
getServiceClient
-
getProperties
-