Class TransfersUtils

java.lang.Object
es.kukenan.smartfi.microservice.smartficore.util.TransfersUtils

@Component public class TransfersUtils extends Object
Utilities for transfer endpoints.
  • Field Details

  • Constructor Details

    • TransfersUtils

      public TransfersUtils()
  • Method Details

    • checkIbanValidate

      public boolean checkIbanValidate(String iban)
      Check iban format an check digit of IBAN at BICFromIBAN endpoint.
      Parameters:
      iban - Code IBAN.
      Returns:
      boolean true belongs to Core endpoints, false not belongs to Core endpoints.
    • checkIbanFormat

      private boolean checkIbanFormat(String iban)
      Check IBAN format.
      Parameters:
      iban - number of IBAN account.
      Returns:
      true if IBAN format is correct.
    • checkDigitIban

      private boolean checkDigitIban(String iban)
      Check IBAN check digit.
      Parameters:
      iban - number of IBAN account.
      Returns:
      true if IBAN format is correct.
    • doTransferAndFavorite

      public es.kukenan.smartfi.microservice.backoffice.dtos.core.transfers.TransferB2B doTransferAndFavorite(es.kukenan.smartfi.microservice.backoffice.dtos.core.transfers.TransferRequest transferRequest, String process)
      Do Transfer or Add Favorite process.
      Parameters:
      transferRequest - request of the process.
      process - process name to do.
      Returns:
      TransferB2B response.
    • moveApplicationMoney

      public void moveApplicationMoney(Contract application)
      Move the application amount to user main wallet.
      Parameters:
      application - new application