Interface CreditAccountTransactionExecutionProvider
- All Known Implementing Classes:
ExternalCreditAccountTransactionExecutionProvider
public interface CreditAccountTransactionExecutionProvider
Provider for interfacing with a CreditAccountService's APIs to execute credit account
transactions.
- Author:
- Dima Myroniuk (dmyroniuk)
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Page<CreditAccount>
readCreditAccounts
(List<String> creditAccountNumbers, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads the credit account for the specified account numbers.readCustomerStoreCreditAccount
(String customerId, String creditAccountNumber, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads the credit account for the specified customer id and account number.org.springframework.data.domain.Page<CreditAccount>
readCustomerStoreCreditAccounts
(String customerId, List<String> creditAccountNumbers, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads the credit account for the specified customer id and account numbers.
-
Method Details
-
readCustomerStoreCreditAccount
CreditAccount readCustomerStoreCreditAccount(String customerId, String creditAccountNumber, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads the credit account for the specified customer id and account number.- Parameters:
customerId
- the customer idcreditAccountNumber
- the credit account numbercontextInfo
- Context information around sandbox and multitenant state.- Returns:
- the credit account number
-
readCustomerStoreCreditAccounts
org.springframework.data.domain.Page<CreditAccount> readCustomerStoreCreditAccounts(String customerId, List<String> creditAccountNumbers, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads the credit account for the specified customer id and account numbers.- Parameters:
customerId
- the customer idcreditAccountNumbers
- the credit account numberscontextInfo
- Context information around sandbox and multitenant state.- Returns:
- the credit accounts
-
readCreditAccounts
org.springframework.data.domain.Page<CreditAccount> readCreditAccounts(List<String> creditAccountNumbers, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads the credit account for the specified account numbers.- Parameters:
creditAccountNumbers
- the credit account numberscontextInfo
- Context information around sandbox and multitenant state.- Returns:
- the credit accounts
-