Package com.idanalyzer
Class ProfileApi
java.lang.Object
com.idanalyzer.ProfileApi
Server-side KYC profile management (/profile, /export/profile).
-
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodecreateProfile(String name, Profile profile) Create a KYC profile (POST /profile).com.fasterxml.jackson.databind.JsonNodedeleteProfile(String profileId) Delete a KYC profile (DELETE /profile/{id}).com.fasterxml.jackson.databind.JsonNodeexportProfile(String profileId) Export a KYC profile (GET /export/profile/{id}).com.fasterxml.jackson.databind.JsonNodegetProfile(String profileId) Retrieve a KYC profile (GET /profile/{id}).com.fasterxml.jackson.databind.JsonNodelistProfile(int order, int limit, int offset) List KYC profiles (GET /profile).com.fasterxml.jackson.databind.JsonNodeupdateProfile(String profileId, String name, Profile profile) Update a KYC profile (PUT /profile/{id}).
-
Method Details
-
listProfile
public com.fasterxml.jackson.databind.JsonNode listProfile(int order, int limit, int offset) List KYC profiles (GET /profile).- Parameters:
order- sort order for the results.limit- maximum number of profiles to return.offset- number of profiles to skip (for pagination).- Returns:
- the API response as a
JsonNode. - Throws:
ApiException- if the API returns an error or a transport error occurs.
-
getProfile
Retrieve a KYC profile (GET /profile/{id}).- Parameters:
profileId- the profile id to retrieve.- Returns:
- the API response as a
JsonNode. - Throws:
InvalidArgumentException- if profileId is null or empty.ApiException- if the API returns an error or a transport error occurs.
-
createProfile
Create a KYC profile (POST /profile).- Parameters:
name- the profile name.profile- the profile whose override settings define the new profile; may be null.- Returns:
- the API response as a
JsonNode. - Throws:
InvalidArgumentException- if name is null or empty.ApiException- if the API returns an error or a transport error occurs.
-
updateProfile
public com.fasterxml.jackson.databind.JsonNode updateProfile(String profileId, String name, Profile profile) Update a KYC profile (PUT /profile/{id}).- Parameters:
profileId- the profile id to update.name- the new profile name; sent when non-empty.profile- the profile whose override settings replace the stored settings; may be null.- Returns:
- the API response as a
JsonNode. - Throws:
InvalidArgumentException- if profileId is null or empty.ApiException- if the API returns an error or a transport error occurs.
-
deleteProfile
Delete a KYC profile (DELETE /profile/{id}).- Parameters:
profileId- the profile id to delete.- Returns:
- the API response as a
JsonNode. - Throws:
InvalidArgumentException- if profileId is null or empty.ApiException- if the API returns an error or a transport error occurs.
-
exportProfile
Export a KYC profile (GET /export/profile/{id}).- Parameters:
profileId- the profile id to export.- Returns:
- the API response as a
JsonNode. - Throws:
InvalidArgumentException- if profileId is null or empty.ApiException- if the API returns an error or a transport error occurs.
-