Class ExternalPaymentProvider<P extends Payment>
java.lang.Object
com.broadleafcommerce.customer.service.provider.external.AbstractExternalProvider
com.broadleafcommerce.customer.service.provider.external.ExternalPaymentProvider<P>
- All Implemented Interfaces:
PaymentProvider<P>
@Deprecated(since="1.7.2",
forRemoval=true)
public class ExternalPaymentProvider<P extends Payment>
extends AbstractExternalProvider
implements PaymentProvider<P>
Deprecated, for removal: This API element is subject to removal in a future version.
since 1.7.2, in favor of using PaymentTransactionServices as saved payment method
storage location.
This particular implementation of
PaymentProvider
is designed to interact with the
payment transaction service.- Author:
- Chris Kittrell (ckittrell)
-
Field Summary
Fields inherited from class com.broadleafcommerce.customer.service.provider.external.AbstractExternalProvider
ENTITY_NOT_FOUND
-
Constructor Summary
ConstructorDescriptionExternalPaymentProvider
(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalPaymentProperties properties) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.web.util.UriComponentsBuilder
Deprecated, for removal: This API element is subject to removal in a future version.Gets the base URI common to all requests this provider will make.protected org.springframework.core.ParameterizedTypeReference<ResponsePageGenerator<P>>
Deprecated, for removal: This API element is subject to removal in a future version.Gets the type reference for a page generator of item list items.protected ExternalPaymentProperties
Deprecated, for removal: This API element is subject to removal in a future version.protected String
Deprecated, for removal: This API element is subject to removal in a future version.readAllByCartId
(@NonNull String cartId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.Retrieves a list ofPayments
that belong to the given cart id.Methods inherited from class com.broadleafcommerce.customer.service.provider.external.AbstractExternalProvider
buildNotFoundException, executeRequest, getHeaders, getObjectMapper, getTypeFactory, getWebClient, isEntityNotFound, pageableToParams, uriVars
-
Constructor Details
-
ExternalPaymentProvider
public ExternalPaymentProvider(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalPaymentProperties properties) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
readAllByCartId
public List<P> readAllByCartId(@NonNull @NonNull String cartId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:PaymentProvider
Retrieves a list ofPayments
that belong to the given cart id.- Specified by:
readAllByCartId
in interfacePaymentProvider<P extends Payment>
- Parameters:
cartId
- the cart id of thePayments
to retrievecontextInfo
- context information around sandbox and multitenant state.- Returns:
- a list of
Payments
that belong to the given cart id.
-
getBaseUri
protected org.springframework.web.util.UriComponentsBuilder getBaseUri()Deprecated, for removal: This API element is subject to removal in a future version.Gets the base URI common to all requests this provider will make.- Returns:
- a URI components builder with the base URI set up
-
getPageType
protected org.springframework.core.ParameterizedTypeReference<ResponsePageGenerator<P>> getPageType()Deprecated, for removal: This API element is subject to removal in a future version.Gets the type reference for a page generator of item list items.- Returns:
- type reference for a page generator of item list items
-
getServiceClient
Deprecated, for removal: This API element is subject to removal in a future version. -
getProperties
Deprecated, for removal: This API element is subject to removal in a future version.
-