|
7 | 7 | import com.docusign.esign.client.Configuration; |
8 | 8 | import com.docusign.esign.client.Pair; |
9 | 9 |
|
| 10 | +import com.docusign.esign.model.AccountIdentityVerificationResponse; |
10 | 11 | import com.docusign.esign.model.AccountInformation; |
11 | 12 | import com.docusign.esign.model.AccountPasswordRules; |
12 | 13 | import com.docusign.esign.model.AccountSettingsInformation; |
@@ -779,6 +780,49 @@ public void deletePermissionProfile(String accountId, String permissionProfileId |
779 | 780 |
|
780 | 781 | apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); |
781 | 782 | } |
| 783 | + |
| 784 | + /** |
| 785 | + * Get the list of identity verification options for an account |
| 786 | + * |
| 787 | + * @param accountId The external account number (int) or account ID Guid. (required) |
| 788 | + * @return AccountIdentityVerificationResponse |
| 789 | + * @throws ApiException if fails to make API call |
| 790 | + */ |
| 791 | + public AccountIdentityVerificationResponse getAccountIdentityVerification(String accountId) throws ApiException { |
| 792 | + Object localVarPostBody = null; |
| 793 | + |
| 794 | + // verify the required parameter 'accountId' is set |
| 795 | + if (accountId == null) { |
| 796 | + throw new ApiException(400, "Missing the required parameter 'accountId' when calling getAccountIdentityVerification"); |
| 797 | + } |
| 798 | + |
| 799 | + // create path and map variables |
| 800 | + String localVarPath = "/v2/accounts/{accountId}/identity_verification".replaceAll("\\{format\\}","json") |
| 801 | + .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString())); |
| 802 | + |
| 803 | + // query params |
| 804 | + java.util.List<Pair> localVarQueryParams = new java.util.ArrayList<Pair>(); |
| 805 | + java.util.Map<String, String> localVarHeaderParams = new java.util.HashMap<String, String>(); |
| 806 | + java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>(); |
| 807 | + |
| 808 | + |
| 809 | + |
| 810 | + |
| 811 | + final String[] localVarAccepts = { |
| 812 | + "application/json" |
| 813 | + }; |
| 814 | + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); |
| 815 | + |
| 816 | + final String[] localVarContentTypes = { |
| 817 | + |
| 818 | + }; |
| 819 | + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); |
| 820 | + |
| 821 | + String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ }; |
| 822 | + |
| 823 | + GenericType<AccountIdentityVerificationResponse> localVarReturnType = new GenericType<AccountIdentityVerificationResponse>() {}; |
| 824 | + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); |
| 825 | + } |
782 | 826 | /// <summary> |
783 | 827 | /// Retrieves the account information for the specified account. Retrieves the account information for the specified account. **Response** The `canUpgrade` property contains is a Boolean that indicates whether the account can be upgraded through the API. |
784 | 828 | /// </summary> |
|
0 commit comments