Package pro.mypvit.responses
Class KycResponse
java.lang.Object
pro.mypvit.responses.AbstractResponse
pro.mypvit.responses.KycResponse
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.
- 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.
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 Summary
Constructors -
Method Summary
Methods inherited from class pro.mypvit.responses.AbstractResponse
fromJson
-
Constructor Details
-
KycResponse
public KycResponse()Default constructor
-