Class TransfersUtils
java.lang.Object
es.kukenan.smartfi.microservice.smartficore.util.TransfersUtils
Utilities for transfer endpoints.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final StringCredit active state name.private static final StringAdvance constant.private static final StringAdvance commission paid state name.private ContractRepositoryContract repository.private ContractStateRepositoryContract State repository.private static final StringConversion table for check iban.private static final intMax Iban length.private static final StringPattern Iban.private static final intProduct main wallet.private static final StringSpain iso code.private WalletMovementRepositoryProduct movement respository.private WalletProductRepositoryWallet product repository. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleancheckDigitIban(String iban) Check IBAN check digit.private booleancheckIbanFormat(String iban) Check IBAN format.booleancheckIbanValidate(String iban) Check iban format an check digit of IBAN at BICFromIBAN endpoint.es.kukenan.smartfi.microservice.backoffice.dtos.core.transfers.TransferB2BdoTransferAndFavorite(es.kukenan.smartfi.microservice.backoffice.dtos.core.transfers.TransferRequest transferRequest, String process) Do Transfer or Add Favorite process.voidmoveApplicationMoney(Contract application) Move the application amount to user main wallet.
-
Field Details
-
COMMISSION_PAID_NAME
Advance commission paid state name.- See Also:
-
ADVANCE_PRODUCT
Advance constant.- See Also:
-
ACTIVE_NAME
Credit active state name.- See Also:
-
MAIN_WALLET
private static final int MAIN_WALLETProduct main wallet.- See Also:
-
walletProductRepository
Wallet product repository. -
walletMovementRepository
Product movement respository. -
contractStateRepository
Contract State repository. -
contractRepository
Contract repository. -
SPAIN_ISO_CODE
Spain iso code.- See Also:
-
IBAN_LENGHT
private static final int IBAN_LENGHTMax Iban length.- See Also:
-
IBAN_PATTERN
Pattern Iban.- See Also:
-
CONVERSION_TABLE_ISOCODE_ES_VALUE
Conversion table for check iban.- See Also:
-
-
Constructor Details
-
TransfersUtils
public TransfersUtils()
-
-
Method Details
-
checkIbanValidate
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
Check IBAN format.- Parameters:
iban- number of IBAN account.- Returns:
- true if IBAN format is correct.
-
checkDigitIban
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
Move the application amount to user main wallet.- Parameters:
application- new application
-