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
ConstructorDescriptionExternalFulfillmentCaptureClaimProvider
(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.UriComponentsBuilder
Gets the base URI common to all requests this provider will make.protected ExternalOrderProperties
protected String
com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaimSummary
readByFulfillmentId
(String fulfillmentId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves aFulfillmentCaptureClaimSummary
that belong to the given fulfillment.com.broadleafcommerce.order.client.domain.FulfillmentCaptureClaimSummary
readByPaymentId
(String paymentId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves aFulfillmentCaptureClaimSummary
that 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 ofFulfillmentCaptureClaimSummaries
that 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:FulfillmentCaptureClaimProvider
Retrieves aFulfillmentCaptureClaimSummary
that belong to the given payment.- Specified by:
readByPaymentId
in interfaceFulfillmentCaptureClaimProvider
- Parameters:
paymentId
- the id of the payment to retrieve theFulfillmentCaptureClaimSummary
forcontextInfo
- context information around sandbox and multitenant state- Returns:
- a
FulfillmentCaptureClaimSummary
that 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:FulfillmentCaptureClaimProvider
Retrieves a list ofFulfillmentCaptureClaimSummaries
that belong to the given paymentsNote that each payment has its own
FulfillmentCaptureClaimSummary
.- Specified by:
readByPaymentIds
in interfaceFulfillmentCaptureClaimProvider
- Parameters:
paymentIds
- the ids of the payments to retrieve theFulfillmentCaptureClaimSummaries
forcontextInfo
- context information around sandbox and multitenant state- Returns:
- a list of
FulfillmentCaptureClaimSummaries
that 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:FulfillmentCaptureClaimProvider
Retrieves aFulfillmentCaptureClaimSummary
that belong to the given fulfillment.- Specified by:
readByFulfillmentId
in interfaceFulfillmentCaptureClaimProvider
- Parameters:
fulfillmentId
- the id of the order fulfillment to retrieve theFulfillmentCaptureClaimSummary
forcontextInfo
- context information around sandbox and multitenant state- Returns:
- a
FulfillmentCaptureClaimSummary
that 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:FulfillmentCaptureClaimProvider
Creates a list ofFulfillmentCaptureClaims
.- Specified by:
createFulfillmentCaptureClaims
in interfaceFulfillmentCaptureClaimProvider
- Parameters:
claimsToCreate
- theFulfillmentCaptureClaims
to 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
-