-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClientTest.java
More file actions
678 lines (630 loc) · 28.6 KB
/
ClientTest.java
File metadata and controls
678 lines (630 loc) · 28.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
/*
* DocSpring API
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.docspring;
import com.docspring.*;
import com.docspring.auth.*;
import com.docspring.AddFieldsData;
import com.docspring.BatchGeneratePdfs201Response;
import com.docspring.CombinePdfsData;
import com.docspring.CombinedSubmission;
import com.docspring.CopyTemplateOptions;
import com.docspring.CreateCombinedSubmissionResponse;
import com.docspring.CreateCustomFileData;
import com.docspring.CreateCustomFileResponse;
import com.docspring.CreateFolderData;
import com.docspring.CreateHtmlTemplate;
import com.docspring.CreatePdfSubmissionData;
import com.docspring.CreatePdfTemplate;
import com.docspring.CreateSubmissionDataRequestEventRequest;
import com.docspring.CreateSubmissionDataRequestEventResponse;
import com.docspring.CreateSubmissionDataRequestResponse;
import com.docspring.CreateSubmissionDataRequestTokenResponse;
import com.docspring.CreateSubmissionResponse;
import com.docspring.ErrorOrMultipleErrorsResponse;
import com.docspring.ErrorResponse;
import java.io.File;
import com.docspring.Folder;
import com.docspring.JsonSchema;
import com.docspring.ListSubmissionsResponse;
import com.docspring.MoveFolderData;
import com.docspring.MoveTemplateData;
import com.docspring.MultipleErrorsResponse;
import com.docspring.PublishVersionData;
import com.docspring.RenameFolderData;
import com.docspring.RestoreVersionData;
import com.docspring.Submission;
import com.docspring.Submission422Response;
import com.docspring.SubmissionBatchData;
import com.docspring.SubmissionBatchWithSubmissions;
import com.docspring.SubmissionDataRequestShow;
import com.docspring.SubmissionPreview;
import com.docspring.SuccessErrorResponse;
import com.docspring.SuccessMultipleErrorsResponse;
import com.docspring.Template;
import com.docspring.TemplateAddFieldsResponse;
import com.docspring.TemplateDeleteResponse;
import com.docspring.TemplatePreview;
import com.docspring.TemplatePublishVersionResponse;
import com.docspring.UpdateHtmlTemplate;
import com.docspring.UpdatePdfTemplate;
import com.docspring.UpdateSubmissionDataRequestData;
import com.docspring.UploadPresignResponse;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* API tests for Client
*/
public class ClientTest {
private final Client api = new Client();
/**
* Add new fields to a Template
*
* Adds fields to a PDF template. Configure field types, positions, defaults, and formatting options.
*
* @throws ApiException if the Api call fails
*/
@Test
public void addFieldsToTemplateTest() throws ApiException {
//String templateId = null;
//AddFieldsData data = null;
//TemplateAddFieldsResponse response = api.addFieldsToTemplate(templateId, data);
// TODO: test validations
}
/**
* Generate multiple PDFs
*
* Generates up to 50 PDFs in a single request. Each submission can use a different template and data. Supports both synchronous (wait for all PDFs) and asynchronous processing. More efficient than individual requests when creating multiple PDFs. See also: - [Batch and Combine PDFs](https://docspring.com/docs/api-guide/generate-pdfs/batch-generate-pdfs/) - Generate and merge PDFs in one request
*
* @throws ApiException if the Api call fails
*/
@Test
public void batchGeneratePdfsTest() throws ApiException {
//SubmissionBatchData data = null;
//Boolean wait = null;
//BatchGeneratePdfs201Response response = api.batchGeneratePdfs(data, wait);
// TODO: test validations
}
/**
* Merge submission PDFs, template PDFs, or custom files
*
* Combines multiple PDFs from various sources into a single PDF file. Supports merging submission PDFs, template PDFs, custom files, other merged PDFs, and PDFs from URLs. Merges the PDFs in the order provided.
*
* @throws ApiException if the Api call fails
*/
@Test
public void combinePdfsTest() throws ApiException {
//CombinePdfsData data = null;
//CreateCombinedSubmissionResponse response = api.combinePdfs(data);
// TODO: test validations
}
/**
* Copy a template
*
* Creates a copy of an existing template with all its fields and configuration. Optionally specify a new name and target folder. The copied template starts as a new draft that can be modified independently of the original.
*
* @throws ApiException if the Api call fails
*/
@Test
public void copyTemplateTest() throws ApiException {
//String templateId = null;
//CopyTemplateOptions options = null;
//TemplatePreview response = api.copyTemplate(templateId, options);
// TODO: test validations
}
/**
* Create a new custom file from a cached S3 upload
*
* The Custom Files API endpoint allows you to upload PDFs to DocSpring and then merge them with other PDFs. First upload your file using the presigned URL endpoint, then use the returned cache_id to create the custom file.
*
* @throws ApiException if the Api call fails
*/
@Test
public void createCustomFileFromUploadTest() throws ApiException {
//CreateCustomFileData data = null;
//CreateCustomFileResponse response = api.createCustomFileFromUpload(data);
// TODO: test validations
}
/**
* Create a new event for emailing a signee a request for signature
*
* Records user notification events for data requests. Use this to create an audit trail showing when and how users were notified about data request forms. Supports email, SMS, and other notification types. Records the notification time for compliance tracking. See also: - [Embedded Data Requests Guide](https://docspring.com/docs/guides/embedded-forms/embedded-data-requests/) - User notification workflow
*
* @throws ApiException if the Api call fails
*/
@Test
public void createDataRequestEventTest() throws ApiException {
//String dataRequestId = null;
//CreateSubmissionDataRequestEventRequest event = null;
//CreateSubmissionDataRequestEventResponse response = api.createDataRequestEvent(dataRequestId, event);
// TODO: test validations
}
/**
* Create a new data request token for form authentication
*
* Creates an authentication token for accessing a data request form. Tokens can be created for API access (1 hour expiration) or email links (30 day expiration). Returns a token and a pre-authenticated URL for the data request form. See also: - [Embedded Data Requests Guide](https://docspring.com/docs/guides/embedded-forms/embedded-data-requests/)
*
* @throws ApiException if the Api call fails
*/
@Test
public void createDataRequestTokenTest() throws ApiException {
//String dataRequestId = null;
//String type = null;
//CreateSubmissionDataRequestTokenResponse response = api.createDataRequestToken(dataRequestId, type);
// TODO: test validations
}
/**
* Create a folder
*
* Creates a new folder for organizing templates. Folders can be nested within other folders by providing a `parent_folder_id`. Folder names must be unique within the same parent.
*
* @throws ApiException if the Api call fails
*/
@Test
public void createFolderTest() throws ApiException {
//CreateFolderData data = null;
//Folder response = api.createFolder(data);
// TODO: test validations
}
/**
* Create a new HTML template
*
* Creates a new HTML template using HTML, CSS/SCSS, and Liquid templating. Allows complete control over PDF layout and styling. Supports headers, footers, and dynamic content using Liquid syntax for field values, conditions, loops, and filters.
*
* @throws ApiException if the Api call fails
*/
@Test
public void createHtmlTemplateTest() throws ApiException {
//CreateHtmlTemplate data = null;
//TemplatePreview response = api.createHtmlTemplate(data);
// TODO: test validations
}
/**
* Create a new PDF template with a form POST file upload
*
* Creates a new PDF template by uploading a PDF file. The uploaded PDF becomes the foundation for your template, and you can then add fillable fields using the template editor. Use the wait parameter to control whether the request waits for document processing to complete.
*
* @throws ApiException if the Api call fails
*/
@Test
public void createPdfTemplateTest() throws ApiException {
//File templateDocument = null;
//String templateName = null;
//Boolean wait = null;
//String templateDescription = null;
//String templateParentFolderId = null;
//TemplatePreview response = api.createPdfTemplate(templateDocument, templateName, wait, templateDescription, templateParentFolderId);
// TODO: test validations
}
/**
* Create a new PDF template from a cached S3 file upload
*
* Creates a new PDF template from a file previously uploaded to S3 using a presigned URL. This two-step process allows for more reliable large file uploads by first uploading the file to S3, then creating the template using the cached upload ID.
*
* @throws ApiException if the Api call fails
*/
@Test
public void createPdfTemplateFromUploadTest() throws ApiException {
//CreatePdfTemplate data = null;
//TemplatePreview response = api.createPdfTemplateFromUpload(data);
// TODO: test validations
}
/**
* Delete a folder
*
* Deletes an empty folder. The folder must not contain any templates or subfolders. Move or delete all contents before attempting to delete the folder.
*
* @throws ApiException if the Api call fails
*/
@Test
public void deleteFolderTest() throws ApiException {
//String folderId = null;
//Folder response = api.deleteFolder(folderId);
// TODO: test validations
}
/**
* Delete a template
*
* Deletes a template or a specific template version. When no version is specified, deletes the entire template including all versions. When a version is specified, deletes only that version while preserving others. Returns remaining version information.
*
* @throws ApiException if the Api call fails
*/
@Test
public void deleteTemplateTest() throws ApiException {
//String templateId = null;
//String version = null;
//TemplateDeleteResponse response = api.deleteTemplate(templateId, version);
// TODO: test validations
}
/**
* Expire a combined submission
*
* Expiring a combined submission deletes the PDF from our system. This is useful for invalidating sensitive documents.
*
* @throws ApiException if the Api call fails
*/
@Test
public void expireCombinedSubmissionTest() throws ApiException {
//String combinedSubmissionId = null;
//CombinedSubmission response = api.expireCombinedSubmission(combinedSubmissionId);
// TODO: test validations
}
/**
* Expire a PDF submission
*
* Expiring a PDF submission deletes the PDF and removes the data from our database. This is useful for invalidating sensitive documents after they've been downloaded. You can also [configure a data retention policy for your submissions](https://docspring.com/docs/template-editor/settings/#expire-submissions) so that they automatically expire.
*
* @throws ApiException if the Api call fails
*/
@Test
public void expireSubmissionTest() throws ApiException {
//String submissionId = null;
//SubmissionPreview response = api.expireSubmission(submissionId);
// TODO: test validations
}
/**
* Generate a PDF
*
* Creates a PDF submission by filling in a template with data. Supports both synchronous (default) and asynchronous processing. Set `wait: false` to return immediately. See also: - [Customize the PDF Title and Filename](https://docspring.com/docs/api-guide/generate-pdfs/customize-pdf-title-and-filename/) - Set custom metadata - [Handling Truncated Text](https://docspring.com/docs/api-guide/generate-pdfs/handle-truncated-text/) - Handle text that doesn't fit in fields
*
* @throws ApiException if the Api call fails
*/
@Test
public void generatePdfTest() throws ApiException {
//String templateId = null;
//CreatePdfSubmissionData submission = null;
//Boolean wait = null;
//CreateSubmissionResponse response = api.generatePdf(templateId, submission, wait);
// TODO: test validations
}
/**
* Generate a preview PDF for partially completed data requests
*
* Generates a preview PDF for a submission with partially completed data requests. Useful for showing users what the final document will look like before all signatures or data have been collected. The preview includes any data collected so far.
*
* @throws ApiException if the Api call fails
*/
@Test
public void generatePreviewTest() throws ApiException {
//String submissionId = null;
//SuccessErrorResponse response = api.generatePreview(submissionId);
// TODO: test validations
}
/**
* Check the status of a combined submission (merged PDFs)
*
* Retrieves the details and status of a combined submission. Returns processing state, download URL (if processed), metadata, and information about any integrated actions (e.g., S3 uploads).
*
* @throws ApiException if the Api call fails
*/
@Test
public void getCombinedSubmissionTest() throws ApiException {
//String combinedSubmissionId = null;
//CombinedSubmission response = api.getCombinedSubmission(combinedSubmissionId);
// TODO: test validations
}
/**
* Look up a submission data request
*
* Retrieves the details and status of a data request. Returns information about the request state (pending, viewed, completed), authentication details, and metadata. Includes audit information like IP address, browseruser agent, and timestamps. See also: - [Embedded Data Requests Guide](https://docspring.com/docs/guides/embedded-forms/embedded-data-requests/) - Complete guide to data request workflow
*
* @throws ApiException if the Api call fails
*/
@Test
public void getDataRequestTest() throws ApiException {
//String dataRequestId = null;
//SubmissionDataRequestShow response = api.getDataRequest(dataRequestId);
// TODO: test validations
}
/**
* Fetch the full attributes for a PDF template
*
* Retrieves complete template information including fields, defaults, settings, and HTML/SCSS content. Use this to get all template data needed for automated updates or analysis. Returns more detailed information than the basic `getTemplate` endpoint.
*
* @throws ApiException if the Api call fails
*/
@Test
public void getFullTemplateTest() throws ApiException {
//String templateId = null;
//Template response = api.getFullTemplate(templateId);
// TODO: test validations
}
/**
* Get a presigned S3 URL for direct file upload
*
* Returns a presigned S3 URL for uploading files directly to our S3 bucket. Use this endpoint to upload large files before creating templates or custom files. S3 will respond with a JSON object that you can include in your DocSpring API request. Uploaded files can be used to: - [Create templates](https://docspring.com/docs/api/#tag/templates/post/templates?endpoint_variant=create_template_from_cached_upload) - [Update templates](https://docspring.com/docs/api/#tag/templates/put/templates/{template_id}?endpoint_variant=update_template_pdf_with_cached_upload) - [Create custom files](https://docspring.com/docs/api/#tag/custom-files/post/custom_files) and then [merge them with other PDFs](https://docspring.com/docs/api/#tag/combine-pdfs/post/combined_submissions)
*
* @throws ApiException if the Api call fails
*/
@Test
public void getPresignUrlTest() throws ApiException {
//UploadPresignResponse response = api.getPresignUrl();
// TODO: test validations
}
/**
* Check the status of a PDF
*
* Retrieves the details and status of a PDF submission. Returns processing state, download URL (if processed), metadata, submission data (optional), and information about any integrated actions. Use this to poll for completion when using asynchronous processing.
*
* @throws ApiException if the Api call fails
*/
@Test
public void getSubmissionTest() throws ApiException {
//String submissionId = null;
//Boolean includeData = null;
//Submission response = api.getSubmission(submissionId, includeData);
// TODO: test validations
}
/**
* Check the status of a submission batch job
*
* Retrieves the status and results of a batch PDF generation job. Returns processing state, completion statistics, and optionally includes all individual submission details. Use this to poll for completion when using asynchronous batch processing.
*
* @throws ApiException if the Api call fails
*/
@Test
public void getSubmissionBatchTest() throws ApiException {
//String submissionBatchId = null;
//Boolean includeSubmissions = null;
//SubmissionBatchWithSubmissions response = api.getSubmissionBatch(submissionBatchId, includeSubmissions);
// TODO: test validations
}
/**
* Check the status of an uploaded template
*
* Retrieves information about a template including processing status and document URL. Use this to check if template is ready to view in the template editor or generate PDFs.
*
* @throws ApiException if the Api call fails
*/
@Test
public void getTemplateTest() throws ApiException {
//String templateId = null;
//TemplatePreview response = api.getTemplate(templateId);
// TODO: test validations
}
/**
* Fetch the JSON schema for a template
*
* Retrieves the JSON Schema definition for a template's fields. Use this to validate data before submitting it for PDF generation, or to build dynamic forms that match the template's field structure and validation requirements. See also: - [Generate PDFs Guide](https://docspring.com/docs/api-guide/generate-pdfs/generate-pdfs-via-api/) - Use schema to validate submission data
*
* @throws ApiException if the Api call fails
*/
@Test
public void getTemplateSchemaTest() throws ApiException {
//String templateId = null;
//JsonSchema response = api.getTemplateSchema(templateId);
// TODO: test validations
}
/**
* Get a list of all combined submissions
*
* Returns a paginated list of combined submissions (merged PDFs) for your account. Includes processing status, expiration details, and download URLs for processed PDFs.
*
* @throws ApiException if the Api call fails
*/
@Test
public void listCombinedSubmissionsTest() throws ApiException {
//Integer page = null;
//Integer perPage = null;
//List<CombinedSubmission> response = api.listCombinedSubmissions(page, perPage);
// TODO: test validations
}
/**
* Get a list of all folders
*
* Returns a list of folders in your account. Can be filtered by parent folder ID to retrieve subfolders. Folders help organize templates and maintain a hierarchical structure.
*
* @throws ApiException if the Api call fails
*/
@Test
public void listFoldersTest() throws ApiException {
//String parentFolderId = null;
//List<Folder> response = api.listFolders(parentFolderId);
// TODO: test validations
}
/**
* List all submissions
*
* Returns a paginated list of all PDF submissions across all templates in your account. Can be filtered by date range and submission type (test/live). Supports cursor-based pagination and optionally includes submission data for each result.
*
* @throws ApiException if the Api call fails
*/
@Test
public void listSubmissionsTest() throws ApiException {
//String cursor = null;
//Integer limit = null;
//String createdAfter = null;
//String createdBefore = null;
//String type = null;
//Boolean includeData = null;
//ListSubmissionsResponse response = api.listSubmissions(cursor, limit, createdAfter, createdBefore, type, includeData);
// TODO: test validations
}
/**
* List all submissions for a given template
*
* Returns a paginated list of all submissions for a specific template. Can be filtered by date range, submission type (test/live), and optionally include submission data. Supports cursor-based pagination for efficient retrieval of large result sets.
*
* @throws ApiException if the Api call fails
*/
@Test
public void listTemplateSubmissionsTest() throws ApiException {
//String templateId = null;
//String cursor = null;
//Integer limit = null;
//String createdAfter = null;
//String createdBefore = null;
//String type = null;
//Boolean includeData = null;
//ListSubmissionsResponse response = api.listTemplateSubmissions(templateId, cursor, limit, createdAfter, createdBefore, type, includeData);
// TODO: test validations
}
/**
* Get a list of all templates
*
* Retrieves a list of your templates with search, filtering, and pagination options. Returns basic template information including ID, name, type (PDF or HTML), and folder location. Supports text search by name and filtering by parent folder.
*
* @throws ApiException if the Api call fails
*/
@Test
public void listTemplatesTest() throws ApiException {
//String query = null;
//String parentFolderId = null;
//Integer page = null;
//Integer perPage = null;
//List<TemplatePreview> response = api.listTemplates(query, parentFolderId, page, perPage);
// TODO: test validations
}
/**
* Move a folder
*
* Moves a folder to a new parent folder or to the root level. All templates and subfolders within the folder are moved together. Cannot move a folder into one of its own subfolders.
*
* @throws ApiException if the Api call fails
*/
@Test
public void moveFolderToFolderTest() throws ApiException {
//String folderId = null;
//MoveFolderData data = null;
//Folder response = api.moveFolderToFolder(folderId, data);
// TODO: test validations
}
/**
* Move Template to folder
*
* Moves a template to a different folder or to the root level. Use this to organize templates within your folders. Provide a folder ID to move to a specific folder, or `null` to move to the root level.
*
* @throws ApiException if the Api call fails
*/
@Test
public void moveTemplateToFolderTest() throws ApiException {
//String templateId = null;
//MoveTemplateData data = null;
//TemplatePreview response = api.moveTemplateToFolder(templateId, data);
// TODO: test validations
}
/**
* Publish a template version
*
* Publishes the current draft version of a template and creates a new immutable version with semantic versioning (major.minor.patch).
*
* @throws ApiException if the Api call fails
*/
@Test
public void publishTemplateVersionTest() throws ApiException {
//String templateId = null;
//PublishVersionData data = null;
//TemplatePublishVersionResponse response = api.publishTemplateVersion(templateId, data);
// TODO: test validations
}
/**
* Rename a folder
*
* Renames an existing folder. The new name must be unique within the same parent folder. This operation only changes the folder name, not its location or contents.
*
* @throws ApiException if the Api call fails
*/
@Test
public void renameFolderTest() throws ApiException {
//String folderId = null;
//RenameFolderData data = null;
//Folder response = api.renameFolder(folderId, data);
// TODO: test validations
}
/**
* Restore a template version
*
* Restores your template to a previously published version, copying that version's content and configuration to the current draft. Use this to revert changes or recover from an unwanted modification.
*
* @throws ApiException if the Api call fails
*/
@Test
public void restoreTemplateVersionTest() throws ApiException {
//String templateId = null;
//RestoreVersionData data = null;
//SuccessErrorResponse response = api.restoreTemplateVersion(templateId, data);
// TODO: test validations
}
/**
* Test authentication
*
* Checks whether your API token is valid by making an authenticated request. Returns a success response if authentication passes. This endpoint is useful for verifying credentials during setup or troubleshooting issues.
*
* @throws ApiException if the Api call fails
*/
@Test
public void testAuthenticationTest() throws ApiException {
//SuccessErrorResponse response = api.testAuthentication();
// TODO: test validations
}
/**
* Update a submission data request
*
* Updates authentication details for a data request. Use this when a user logs in to record their authentication method, provider, session information, and hashed identifiers. Updates metadata and tracks authentication state changes for auditing and compliance.
*
* @throws ApiException if the Api call fails
*/
@Test
public void updateDataRequestTest() throws ApiException {
//String dataRequestId = null;
//UpdateSubmissionDataRequestData data = null;
//CreateSubmissionDataRequestResponse response = api.updateDataRequest(dataRequestId, data);
// TODO: test validations
}
/**
* Update a Template
*
* Updates template content and properties. For HTML templates, you can modify the HTML, SCSS, headers, footers, name, and description. Changes are applied to your draft template and do not affect published template versions.
*
* @throws ApiException if the Api call fails
*/
@Test
public void updateTemplateTest() throws ApiException {
//String templateId = null;
//UpdateHtmlTemplate data = null;
//SuccessMultipleErrorsResponse response = api.updateTemplate(templateId, data);
// TODO: test validations
}
/**
* Update a template's document with a form POST file upload
*
* Upload a new PDF file to update a PDF template's document. This replaces the template's PDF while preserving all of the existing fields. If you upload a PDF with fewer pages than the current document, any fields on the removed pages will be deleted.
*
* @throws ApiException if the Api call fails
*/
@Test
public void updateTemplateDocumentTest() throws ApiException {
//String templateId = null;
//File templateDocument = null;
//String templateName = null;
//SuccessMultipleErrorsResponse response = api.updateTemplateDocument(templateId, templateDocument, templateName);
// TODO: test validations
}
/**
* Update a template's document with a cached S3 file upload
*
* Updates a PDF template's document using a cached file upload. This is a three-step process: First, request a presigned URL to upload your PDF file to our S3 bucket. Then, use that URL to upload your PDF file. Finally, submit the ID of the uploaded file to replace the template's document.
*
* @throws ApiException if the Api call fails
*/
@Test
public void updateTemplateDocumentFromUploadTest() throws ApiException {
//String templateId = null;
//UpdatePdfTemplate data = null;
//SuccessMultipleErrorsResponse response = api.updateTemplateDocumentFromUpload(templateId, data);
// TODO: test validations
}
}