Interface KnownPixService

All Known Implementing Classes:
KnownPixServiceImp

public interface KnownPixService
Interface for KnownPixService that defines methods for handling known Pix operations. It includes methods for checking if a known Pix exists by account ID and Pix key, and for saving a KnownPixModel.
Since:
1.0.0
Version:
1.0.0, 06/26/2025
Author:
Fernando Cruz Cavina
See Also:
  • Method Details

    • existsByIdAccountAndPixKey

      Optional<KnownPixModel> existsByIdAccountAndPixKey(Long idAccount, String pixKey)
      Checks if a known Pix exists by account ID and Pix key.
      Parameters:
      idAccount - the ID of the account associated with the Pix key
      pixKey - the Pix key to check
      Returns:
      an Optional containing the KnownPixModel if it exists, or empty if not found
    • save

      KnownPixModel save(KnownPixModel knownPixModel)
      Saves a KnownPixModel to the database.
      Parameters:
      knownPixModel - the KnownPixModel to be saved
      Returns:
      the saved KnownPixModel