@@ -9791,11 +9791,12 @@ public ApiResponse<CustomFields > updateCustomFieldsWithHttpInfo(String accountI
97919791 * @param accountId The external account number (int) or account ID Guid. (required)
97929792 * @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
97939793 * @param documentId The ID of the document being accessed. (required)
9794+ * @param documentFileBytes Updated document content. (required)
97949795 * @return EnvelopeDocument
97959796 * @throws ApiException if fails to make API call
97969797 */
9797- public EnvelopeDocument updateDocument(String accountId, String envelopeId, String documentId) throws ApiException {
9798- ApiResponse<EnvelopeDocument> localVarResponse = updateDocumentWithHttpInfo(accountId, envelopeId, documentId);
9798+ public EnvelopeDocument updateDocument(String accountId, String envelopeId, String documentId, byte[] documentFileBytes ) throws ApiException {
9799+ ApiResponse<EnvelopeDocument> localVarResponse = updateDocumentWithHttpInfo(accountId, envelopeId, documentId, documentFileBytes );
97999800 return localVarResponse.getData();
98009801 }
98019802
@@ -9805,11 +9806,12 @@ public EnvelopeDocument updateDocument(String accountId, String envelopeId, Stri
98059806 * @param accountId The external account number (int) or account ID Guid. (required)
98069807 * @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
98079808 * @param documentId The ID of the document being accessed. (required)
9809+ * @param documentFileBytes Updated document content. (required)
98089810 * @return EnvelopeDocument
98099811 * @throws ApiException if fails to make API call
98109812 */
9811- public ApiResponse<EnvelopeDocument > updateDocumentWithHttpInfo(String accountId, String envelopeId, String documentId) throws ApiException {
9812- Object localVarPostBody = "{}" ;
9813+ public ApiResponse<EnvelopeDocument > updateDocumentWithHttpInfo(String accountId, String envelopeId, String documentId, byte[] documentFileBytes ) throws ApiException {
9814+ Object localVarPostBody = documentFileBytes ;
98139815
98149816 // verify the required parameter 'accountId' is set
98159817 if (accountId == null) {
@@ -9826,6 +9828,11 @@ public ApiResponse<EnvelopeDocument > updateDocumentWithHttpInfo(String accountI
98269828 throw new ApiException(400, "Missing the required parameter 'documentId' when calling updateDocument");
98279829 }
98289830
9831+ // verify the required parameter 'documentFileBytes' is set
9832+ if (documentFileBytes == null) {
9833+ throw new ApiException(400, "Missing the required parameter 'documentFileBytes' when calling updateDocument");
9834+ }
9835+
98299836 // create path and map variables
98309837 String localVarPath = "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}"
98319838 .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
@@ -9850,7 +9857,7 @@ public ApiResponse<EnvelopeDocument > updateDocumentWithHttpInfo(String accountI
98509857 final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
98519858
98529859 final String[] localVarContentTypes = {
9853-
9860+ "application/pdf"
98549861 };
98559862 final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
98569863
@@ -11169,84 +11176,6 @@ public ApiResponse<DocumentVisibilityList > updateRecipientsDocumentVisibilityWi
1116911176 return new ApiResponse<DocumentVisibilityList>(apiClient.getStatusCode(), apiClient.getResponseHeaders(), localVarResponse);
1117011177 }
1117111178
11172- /**
11173- * Retrieves a PDF document from the envelope with no CoC..
11174- *
11175- * @param accountId The external account number (int) or account ID Guid. (required)
11176- * @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
11177- * @param regenDocumentId (required)
11178- * @param document (optional)
11179- * @return byte[]
11180- * @throws ApiException if fails to make API call
11181- */
11182- public byte[] updateRegenDocument(String accountId, String envelopeId, String regenDocumentId, Document document) throws ApiException {
11183- ApiResponse<byte[]> localVarResponse = updateRegenDocumentWithHttpInfo(accountId, envelopeId, regenDocumentId, document);
11184- return localVarResponse.getData();
11185- }
11186-
11187- /**
11188- * Retrieves a PDF document from the envelope with no CoC.
11189- *
11190- * @param accountId The external account number (int) or account ID Guid. (required)
11191- * @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
11192- * @param regenDocumentId (required)
11193- * @param document (optional)
11194- * @return byte[]
11195- * @throws ApiException if fails to make API call
11196- */
11197- public ApiResponse<byte[] > updateRegenDocumentWithHttpInfo(String accountId, String envelopeId, String regenDocumentId, Document document) throws ApiException {
11198- Object localVarPostBody = document;
11199-
11200- // verify the required parameter 'accountId' is set
11201- if (accountId == null) {
11202- throw new ApiException(400, "Missing the required parameter 'accountId' when calling updateRegenDocument");
11203- }
11204-
11205- // verify the required parameter 'envelopeId' is set
11206- if (envelopeId == null) {
11207- throw new ApiException(400, "Missing the required parameter 'envelopeId' when calling updateRegenDocument");
11208- }
11209-
11210- // verify the required parameter 'regenDocumentId' is set
11211- if (regenDocumentId == null) {
11212- throw new ApiException(400, "Missing the required parameter 'regenDocumentId' when calling updateRegenDocument");
11213- }
11214-
11215- // create path and map variables
11216- String localVarPath = "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/documents/{regenDocumentId}/regen"
11217- .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
11218- .replaceAll("\\{" + "envelopeId" + "\\}", apiClient.escapeString(envelopeId.toString()))
11219- .replaceAll("\\{" + "regenDocumentId" + "\\}", apiClient.escapeString(regenDocumentId.toString()));
11220-
11221- // query params
11222- java.util.List<Pair> localVarQueryParams = new java.util.ArrayList<Pair>();
11223- java.util.List<Pair> localVarCollectionQueryParams = new java.util.ArrayList<Pair>();
11224- java.util.Map<String, String> localVarHeaderParams = new java.util.HashMap<String, String>();
11225- java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>();
11226-
11227-
11228-
11229-
11230-
11231-
11232-
11233- final String[] localVarAccepts = {
11234- "application/pdf"
11235- };
11236- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
11237-
11238- final String[] localVarContentTypes = {
11239-
11240- };
11241- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
11242-
11243- String[] localVarAuthNames = new String[] { "docusignAccessCode" };
11244-
11245- GenericType<byte[]> localVarReturnType = new GenericType<byte[]>() {};
11246- byte[] localVarResponse = apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
11247- return new ApiResponse<byte[]>(apiClient.getStatusCode(), apiClient.getResponseHeaders(), localVarResponse);
11248- }
11249-
1125011179 /**
1125111180 * Updates the tabs for a recipient. .
1125211181 * Updates one or more tabs for a recipient in a draft envelope.
0 commit comments