Interface StoreCreditTransactionExecutionProvider
- All Known Implementing Classes:
ExternalStoreCreditTransactionExecutionProvider
public interface StoreCreditTransactionExecutionProvider
Provider for interfacing with a CreditAccountService's APIs to execute credit account
transactions.
- Author:
- Dima Myroniuk (dmyroniuk)
-
Method Summary
Modifier and TypeMethodDescriptionexecuteCreditTransaction
(StoreCreditTransactionExecutionRequest request, String creditAccountNumber, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Creates the credit transaction for the credit account.executeDebitTransaction
(StoreCreditTransactionExecutionRequest request, String creditAccountNumber, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Creates the debit transaction for the credit account.
-
Method Details
-
executeDebitTransaction
StoreCreditTransactionExecutionResponse executeDebitTransaction(StoreCreditTransactionExecutionRequest request, String creditAccountNumber, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Creates the debit transaction for the credit account.- Parameters:
request
- the request to execute the transactioncreditAccountNumber
- the credit account numbercontextInfo
- context information related to multitenancy- Returns:
- the executed transaction
-
executeCreditTransaction
StoreCreditTransactionExecutionResponse executeCreditTransaction(StoreCreditTransactionExecutionRequest request, String creditAccountNumber, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Creates the credit transaction for the credit account.- Parameters:
request
- the request to execute the transactioncreditAccountNumber
- the credit account numbercontextInfo
- context information related to multitenancy- Returns:
- the executed transaction
-