Class PixServiceImpl

java.lang.Object
com.bank.payment.services.impl.PixServiceImpl
All Implemented Interfaces:
PixService

@Service public class PixServiceImpl extends Object implements PixService
  • Constructor Details

    • PixServiceImpl

      public PixServiceImpl()
  • Method Details

    • save

      public PixModel save(PixModel pixModel)
      Description copied from interface: PixService
      Saves a PixModel to the database.
      Specified by:
      save in interface PixService
      Parameters:
      pixModel - the PixModel to be saved
      Returns:
      the saved PixModel
    • findByKey

      public Optional<PixModel> findByKey(String key)
      Description copied from interface: PixService
      Finds a PixModel by its key.
      Specified by:
      findByKey in interface PixService
      Parameters:
      key - the Pix key to search for
      Returns:
      an Optional containing the PixModel if found, or empty if not found