Interface Sep24TransactionStore


  • public interface Sep24TransactionStore
    This interface is for the SEP adapter service to query/save the transaction document.
    • Method Detail

      • findByTransactionId

        Sep24Transaction findByTransactionId​(java.lang.String transactionId)
                                      throws SepException
        Find the Sep24Transaction by transaction_id
        Parameters:
        transactionId - The transaction ID
        Returns:
        The transaction document. null if not found.
        Throws:
        SepException
      • findByStellarTransactionId

        Sep24Transaction findByStellarTransactionId​(java.lang.String stellarTransactionId)
                                             throws SepException
        Find the Sep24Transaction by the stellar network transaction id (hash)
        Parameters:
        stellarTransactionId - The Stellar transaction id (hash)
        Returns:
        The transaction document. null if not found.
        Throws:
        SepException
      • findByExternalTransactionId

        Sep24Transaction findByExternalTransactionId​(java.lang.String externalTransactionId)
                                              throws SepException
        Find the Sep24Transaction by the anchor's transaction Id.
        Parameters:
        externalTransactionId - The anchor's transaction id.
        Returns:
        The transaction document. null if not found.
        Throws:
        SepException
      • findTransactions

        java.util.List<Sep24Transaction> findTransactions​(java.lang.String accountId,
                                                          GetTransactionsRequest request)
                                                   throws SepException
        Find the transactions filtered and limited the request
        Parameters:
        accountId - The Stellar account id.
        request - The query request.
        Returns:
        The list of transaction documents. If not found, return empty list.
        Throws:
        SepException