Interface TransactionService<P extends Transaction>

All Superinterfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
All Known Implementing Classes:
DefaultTransactionService

public interface TransactionService<P extends Transaction> extends com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
Service API for transactions. Supported by TransactionRepository.
Author:
Dima Myroniuk (dmyroniuk)
  • Method Summary

    Modifier and Type
    Method
    Description
    readCreditTransactionsWithAmountRemainingGreaterThenZero(String creditAccountContextId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Reads the transactions by credit account id that have a remaining amount greater than zero, ordered by the expiration date.
    org.springframework.data.domain.Page<P>
    readExpiredTransactions(org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Reads the expired transactions with a remaining amount greater than zero.
    readExpiredTransactionsByCreditAccountId(String creditAccountContextId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Reads the expired transactions by credit account id, with a remaining amount greater than zero.
    org.springframework.data.domain.Page<P>
    readTransactionsByCreditAccountId(String creditAccountContextId, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Reads the transactions for the specified credit account id.

    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, updateSort

    Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService

    readAll, readAll, readAll, readAll
  • Method Details

    • readTransactionsByCreditAccountId

      org.springframework.data.domain.Page<P> readTransactionsByCreditAccountId(String creditAccountContextId, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Reads the transactions for the specified credit account id.
      Parameters:
      creditAccountContextId - the credit account context id
      page - the requested page of results from the database
      contextInfo - context information related to multitenancy
      Returns:
      the transactions for the specified credit account id.
    • readExpiredTransactions

      org.springframework.data.domain.Page<P> readExpiredTransactions(@Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Reads the expired transactions with a remaining amount greater than zero.
      Parameters:
      page - the requested page of results from the database
      contextInfo - context information related to multitenancy
      Returns:
      the expired transactions with a remaining amount greater than zero.
    • readExpiredTransactionsByCreditAccountId

      List<P> readExpiredTransactionsByCreditAccountId(String creditAccountContextId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Reads the expired transactions by credit account id, with a remaining amount greater than zero.
      Parameters:
      creditAccountContextId - the credit account context id
      contextInfo - context information related to multitenancy
      Returns:
      the expired transactions with a remaining amount greater than zero.
    • readCreditTransactionsWithAmountRemainingGreaterThenZero

      List<P> readCreditTransactionsWithAmountRemainingGreaterThenZero(String creditAccountContextId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Reads the transactions by credit account id that have a remaining amount greater than zero, ordered by the expiration date.
      Parameters:
      creditAccountContextId - the credit account context id
      contextInfo - context information related to multitenancy
      Returns:
      the transactions that have the remaining amount greater than zero, ordered by the expiration date