1. Profile

Profile class contains all user-related features and restrictions against the selected profiles. Most of the functions under this class are related to setting up values against profiles, documents, and relevant associations.

1.1. loadFromJson

This function loads profile configuration with a provided JSON string.

Declaration

loadFromJson(jsonStr)

Here are the input and output parameters defined against this function.

Type (In/Out)NameDescription
string - [In]jsonStr- This parameter contains a JSON string containing profile information.

1.2. setProfile

This function saves the profile with all the provided configurations.

Declaration

setProfile(profile)

Here are the input and output parameters defined against this function.

Type (In/Out)NameDescription
String - [In]profileThis parameter includes all pre-loaded profile configurations built up for the KYC-related values.