Class KycResponse


public class KycResponse extends AbstractResponse
Represents the response for a Know Your Customer (KYC) inquiry in the MyPVit SDK.

This class extends AbstractResponse to inherit functionality for JSON deserialization and provides specific fields related to KYC information.

Key Features:
  • Inherits JSON deserialization capabilities from AbstractResponse.
  • Includes fields for customer identification and account activity status.
  • Supports automatic generation of getters, setters, equals, and hashCode methods through Lombok.
Usage: Use the `fromJson` method provided by AbstractResponse to deserialize a JSON response into an instance of this class. Example:
 String jsonResponse = "{"
     + "\"full_name\": \"John Doe\","
     + "\"customer_account_number\": \"123456789\","
     + "\"is_active\": true"
     + "}";

 KycResponse response = AbstractResponse.fromJson(jsonResponse, KycResponse.class);
 System.out.println("Full Name: " + response.getFullName());
 System.out.println("Account Number: " + response.getCustomerAccountNumber());
 System.out.println("Is Active: " + response.isActive());
 
  • Constructor Details

    • KycResponse

      public KycResponse()
      Default constructor