Class KnownPixServiceImp

java.lang.Object
com.bank.payment.services.impl.KnownPixServiceImp
All Implemented Interfaces:
KnownPixService

@Service public class KnownPixServiceImp extends Object implements KnownPixService
  • Constructor Details

    • KnownPixServiceImp

      public KnownPixServiceImp()
  • Method Details

    • existsByIdAccountAndPixKey

      public Optional<KnownPixModel> existsByIdAccountAndPixKey(Long idAccount, String pixKey)
      Description copied from interface: KnownPixService
      Checks if a known Pix exists by account ID and Pix key.
      Specified by:
      existsByIdAccountAndPixKey in interface KnownPixService
      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

      public KnownPixModel save(KnownPixModel knownPixModel)
      Description copied from interface: KnownPixService
      Saves a KnownPixModel to the database.
      Specified by:
      save in interface KnownPixService
      Parameters:
      knownPixModel - the KnownPixModel to be saved
      Returns:
      the saved KnownPixModel