Interface BankIdentityService

All Known Implementing Classes:
BankIdentityServiceImpl

public interface BankIdentityService
Service for managing bank identities.
  • Method Summary

    Modifier and Type
    Method
    Description
    addBank(jakarta.servlet.http.HttpServletRequest request, BankIdentityRequest identityRequest)
    Adds a new bank identity for the user.
    void
    deleteBank(jakarta.servlet.http.HttpServletRequest request, String bankName)
    Deletes a bank identity associated with the user by its name.
    getBankByName(jakarta.servlet.http.HttpServletRequest request, String name)
    Retrieves a bank identity by its name.
    getBanks(jakarta.servlet.http.HttpServletRequest request)
    Retrieves a list of bank identities associated with the user.
  • Method Details

    • getBanks

      List<BankIdentity> getBanks(jakarta.servlet.http.HttpServletRequest request)
      Retrieves a list of bank identities associated with the user.
      Parameters:
      request - the HTTP request containing user information
      Returns:
      a list of BankIdentity objects available to the user
    • getBankByName

      BankIdentity getBankByName(jakarta.servlet.http.HttpServletRequest request, String name)
      Retrieves a bank identity by its name.
      Parameters:
      request - the HTTP request containing user information
      name - the name of the bank to retrieve
      Returns:
      the BankIdentity associated with the specified name
    • addBank

      BankIdentity addBank(jakarta.servlet.http.HttpServletRequest request, BankIdentityRequest identityRequest) throws Exception
      Adds a new bank identity for the user.
      Parameters:
      request - the HTTP request containing user information
      identityRequest - the request object containing the details of the bank identity to add
      Returns:
      the newly created BankIdentity
      Throws:
      Exception - if an error occurs during the bank identity creation process
    • deleteBank

      void deleteBank(jakarta.servlet.http.HttpServletRequest request, String bankName)
      Deletes a bank identity associated with the user by its name.
      Parameters:
      request - the HTTP request containing user information
      bankName - the name of the bank identity to be deleted