Class UPI

java.lang.Object
AG_FinTrust.UPI
Direct Known Subclasses:
UPITransactionServices

public sealed class UPI extends Object permits UPITransactionServices
AG_FinTrust - UPI.java Handles UPI-related services including validation, creation, and retrieval of UPI IDs linked to user bank accounts. This class interacts with the database to manage UPI records and display associated account information.

Key Features:

  • Validates UPI ID format (alphanumeric and dot characters only, up to 45 characters)
  • Generates standardized UPI handles ending with "@agft"
  • Associates UPI IDs with verified account numbers
  • Prevents duplicate UPI assignment for the same account
  • Fetches and displays account details using UPI ID with colored console output

This class is a sealed class and may only be extended by UPIServices.

Since:
August 02, 2025
Version:
2.0.0
Author:
Aditya Gupta
  • Field Details

  • Constructor Details

  • Method Details

    • checkUPI

      final boolean checkUPI(String s)
    • checkUPIExist

      final boolean checkUPIExist()
    • setUPI

      protected final void setUPI()
    • displayAccountDetails

      protected void displayAccountDetails()