Package com.bank.payment.services
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 Summary
Modifier and TypeMethodDescriptionexistsByIdAccountAndPixKey
(Long idAccount, String pixKey) Checks if a known Pix exists by account ID and Pix key.save
(KnownPixModel knownPixModel) Saves a KnownPixModel to the database.
-
Method Details
-
existsByIdAccountAndPixKey
Checks if a known Pix exists by account ID and Pix key.- Parameters:
idAccount
- the ID of the account associated with the Pix keypixKey
- the Pix key to check- Returns:
- an Optional containing the KnownPixModel if it exists, or empty if not found
-
save
Saves a KnownPixModel to the database.- Parameters:
knownPixModel
- the KnownPixModel to be saved- Returns:
- the saved KnownPixModel
-