Package com.bank.payment.services.impl
Class KnownPixServiceImp
java.lang.Object
com.bank.payment.services.impl.KnownPixServiceImp
- All Implemented Interfaces:
KnownPixService
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
KnownPixServiceImp
public KnownPixServiceImp()
-
-
Method Details
-
existsByIdAccountAndPixKey
Description copied from interface:KnownPixService
Checks if a known Pix exists by account ID and Pix key.- Specified by:
existsByIdAccountAndPixKey
in interfaceKnownPixService
- 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
Description copied from interface:KnownPixService
Saves a KnownPixModel to the database.- Specified by:
save
in interfaceKnownPixService
- Parameters:
knownPixModel
- the KnownPixModel to be saved- Returns:
- the saved KnownPixModel
-