Interface CreditAccountTransactionExecutionService

All Known Implementing Classes:
DefaultCreditAccountTransactionExecutionService

public interface CreditAccountTransactionExecutionService
Service responsible for the managing of Transactions.
Author:
Dima Myroniuk (dmyroniuk)
  • Method Details

    • credit

      TransactionExecutionResponse credit(String accountNumber, TransactionExecutionRequest request, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Creates the credit transaction for the credit account.
      Parameters:
      accountNumber - the credit account number
      request - the request to execute the transaction
      contextInfo - context information related to multitenancy
      Returns:
      the executed transaction
    • credit

      TransactionExecutionResponse credit(String creditAccountType, String accountNumber, TransactionExecutionRequest request, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Creates the credit transaction for the credit account.
      Parameters:
      creditAccountType - the credit account type
      accountNumber - the credit account number
      request - the request to execute the transaction
      contextInfo - context information related to multitenancy
      Returns:
      the executed transaction
    • debit

      TransactionExecutionResponse debit(String accountNumber, TransactionExecutionRequest request, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Creates the debit transaction for the credit account.
      Parameters:
      accountNumber - the credit account number
      request - the request to execute the transaction
      contextInfo - context information related to multitenancy
      Returns:
      the executed transaction
    • debit

      TransactionExecutionResponse debit(String creditAccountType, String accountNumber, TransactionExecutionRequest request, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Creates the debit transaction for the credit account.
      Parameters:
      creditAccountType - the credit account type
      accountNumber - the credit account number
      request - the request to execute the transaction
      contextInfo - context information related to multitenancy
      Returns:
      the executed transaction