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 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 transaction
      creditAccountNumber - the credit account number
      contextInfo - 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 transaction
      creditAccountNumber - the credit account number
      contextInfo - context information related to multitenancy
      Returns:
      the executed transaction