Package com.bank.payment.services.impl
Class PixServiceImpl
java.lang.Object
com.bank.payment.services.impl.PixServiceImpl
- All Implemented Interfaces:
PixService
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PixServiceImpl
public PixServiceImpl()
-
-
Method Details
-
save
Description copied from interface:PixService
Saves a PixModel to the database.- Specified by:
save
in interfacePixService
- Parameters:
pixModel
- the PixModel to be saved- Returns:
- the saved PixModel
-
findByKey
Description copied from interface:PixService
Finds a PixModel by its key.- Specified by:
findByKey
in interfacePixService
- Parameters:
key
- the Pix key to search for- Returns:
- an Optional containing the PixModel if found, or empty if not found
-