Interface PaymentAccountService<P extends PaymentAccount>
- All Superinterfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>,com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
- All Known Implementing Classes:
DefaultPaymentAccountService
@Deprecated(since="1.7.2",
forRemoval=true)
public interface PaymentAccountService<P extends PaymentAccount>
extends com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
Deprecated, for removal: This API element is subject to removal in a future version.
Service API for
Payment Accounts. Supported by
PaymentAccountRepository.- Author:
- Marie Standeven (marieStandeven)
-
Method Summary
Modifier and TypeMethodDescriptionaddPaymentAccount(String customerId, P paymentAccountRequest, boolean makeDefaultAccount, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.Pass the paymentAccountJpaPaymentAccountfor processing the default account relationship with the customer before saving to the data store.voiddelete(String customerId, String paymentAccountId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.Pass the ID of the paymentAccountJpaPaymentAccountand the owning customer for removal of the paymentAccount.org.springframework.data.domain.Page<P>readAllByCustomerId(String customerId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters) Deprecated, for removal: This API element is subject to removal in a future version.Pass theCustomerID to find all the active paymentAccountJpaPaymentAccountentitiesreadAllByOriginatingPaymentId(List<String> originatingPaymentIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.Find all thePaymentAccountsbyPaymentAccount.getOriginatingPaymentId()readByContextIdAndCustomerId(String id, String customerId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.Pass the ID of the paymentAccountJpaPaymentAccountand the owning customer ID for retrieval of the paymentAccount from the data store.readPaymentAccountsByContextId(List<String> ids, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.Pass a list of paymentAccount IDs to return a list of the paymentAccountsJpaPaymentAccountassociated with those IDs.update(P paymentAccount, Customer customer, boolean makeDefaultAccount, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.Pass the updated paymentAccountJpaPaymentAccountand the owning customer for persistence to the data store.Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.CrudEntityService
create, createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccess, updateSortMethods inherited from interface com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService
readAll, readAll, readAll, readAll
-
Method Details
-
readAllByCustomerId
org.springframework.data.domain.Page<P> readAllByCustomerId(@NonNull String customerId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, @Nullable org.springframework.data.domain.Pageable page, @Nullable cz.jirutka.rsql.parser.ast.Node filters) Deprecated, for removal: This API element is subject to removal in a future version.Pass theCustomerID to find all the active paymentAccountJpaPaymentAccountentities- Parameters:
customerId- the ID of the owning customercontextInfo- context information surrounding sandboxing and multitenant statepage- the requested page of results from the databasefilters- An RSQL filter used to narrow query results. May beEmptyNodeif no filters should be applied.- Returns:
- the payment accounts in the data store with that customer ID.
-
addPaymentAccount
PaymentAccount addPaymentAccount(String customerId, P paymentAccountRequest, boolean makeDefaultAccount, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.Pass the paymentAccountJpaPaymentAccountfor processing the default account relationship with the customer before saving to the data store.- Parameters:
customerId- the ID of the owning customerpaymentAccountRequest- the paymentAccount to be persistedmakeDefaultAccount- whether this is the default paymentAccount for the customercontextInfo- context information surrounding sandboxing and multitenant state- Returns:
- the newly created payment account
-
readByContextIdAndCustomerId
P readByContextIdAndCustomerId(String id, String customerId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.Pass the ID of the paymentAccountJpaPaymentAccountand the owning customer ID for retrieval of the paymentAccount from the data store.- Parameters:
id- the ID of the paymentAccount to be foundcustomerId- the ID of the owning customercontextInfo- context information surrounding sandboxing and multitenant state- Returns:
- the payment account in the data store if found
-
update
P update(P paymentAccount, Customer customer, boolean makeDefaultAccount, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.Pass the updated paymentAccountJpaPaymentAccountand the owning customer for persistence to the data store.- Parameters:
paymentAccount- the paymentAccount to be persistedcustomer- the owning customermakeDefaultAccount- whether this is the default paymentAccount for the customercontextInfo- context information surrounding sandboxing and multitenant state- Returns:
- the payment account after it has been updated
-
delete
void delete(String customerId, String paymentAccountId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.Pass the ID of the paymentAccountJpaPaymentAccountand the owning customer for removal of the paymentAccount.- Parameters:
customerId- the ID of the owning customerpaymentAccountId- the ID of paymentAccount to be removedcontextInfo- context information surrounding sandboxing and multitenant state
-
readPaymentAccountsByContextId
List<P> readPaymentAccountsByContextId(List<String> ids, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.Pass a list of paymentAccount IDs to return a list of the paymentAccountsJpaPaymentAccountassociated with those IDs.- Parameters:
ids- the IDs of the paymentAccounts to be retrievedcontextInfo- context information surrounding sandboxing and multitenant state- Returns:
- the payment accounts found by ID in the data store
-
readAllByOriginatingPaymentId
List<P> readAllByOriginatingPaymentId(List<String> originatingPaymentIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.Find all thePaymentAccountsbyPaymentAccount.getOriginatingPaymentId()- Parameters:
originatingPaymentIds- the payment IDs to queryPaymentAccount.getOriginatingPaymentId()againstcontextInfo- context information regarding sandboxing and multitenant state- Returns:
- all the
PaymentAccountsmatching the givenPaymentAccount.getOriginatingPaymentId()
-
SavedPaymentMethodin PaymentTransactionServices to manage saved payment methods.