From b56df6308b29a6f841bcf3fdac081edabfb5c979 Mon Sep 17 00:00:00 2001 From: Andrey Kaferi Date: Wed, 30 Oct 2019 18:09:28 +0200 Subject: [PATCH] Update to v19.10 --- README.md | 30 +- build.gradle | 4 +- docs/BoxStyle.md | 18 + docs/CheckBoxField.md | 35 + docs/CheckBoxFieldResponse.md | 15 + docs/CheckBoxFields.md | 14 + docs/CheckBoxFieldsResponse.md | 15 + docs/ChoiceField.md | 31 + docs/Option.md | 16 + docs/PdfApi.md | 250 ++ docs/RadioButtonField.md | 35 + docs/RadioButtonFieldResponse.md | 15 + docs/RadioButtonFields.md | 14 + docs/RadioButtonFieldsResponse.md | 15 + docs/RadioButtonOptionField.md | 32 + pom.xml | 2 +- .../com/aspose/asposecloudpdf/ApiClient.java | 2 +- .../com/aspose/asposecloudpdf/api/PdfApi.java | 3140 +++++++++++++---- .../aspose/asposecloudpdf/model/BoxStyle.java | 90 + .../asposecloudpdf/model/CheckBoxField.java | 216 ++ .../model/CheckBoxFieldResponse.java | 106 + .../asposecloudpdf/model/CheckBoxFields.java | 117 + .../model/CheckBoxFieldsResponse.java | 106 + .../asposecloudpdf/model/ChoiceField.java | 114 + .../aspose/asposecloudpdf/model/Option.java | 172 + .../model/RadioButtonField.java | 204 ++ .../model/RadioButtonFieldResponse.java | 106 + .../model/RadioButtonFields.java | 117 + .../model/RadioButtonFieldsResponse.java | 106 + .../model/RadioButtonOptionField.java | 138 + .../asposecloudpdf/api/FieldsTests.java | 282 ++ 31 files changed, 4770 insertions(+), 787 deletions(-) create mode 100644 docs/BoxStyle.md create mode 100644 docs/CheckBoxField.md create mode 100644 docs/CheckBoxFieldResponse.md create mode 100644 docs/CheckBoxFields.md create mode 100644 docs/CheckBoxFieldsResponse.md create mode 100644 docs/ChoiceField.md create mode 100644 docs/Option.md create mode 100644 docs/RadioButtonField.md create mode 100644 docs/RadioButtonFieldResponse.md create mode 100644 docs/RadioButtonFields.md create mode 100644 docs/RadioButtonFieldsResponse.md create mode 100644 docs/RadioButtonOptionField.md create mode 100644 src/main/java/com/aspose/asposecloudpdf/model/BoxStyle.java create mode 100644 src/main/java/com/aspose/asposecloudpdf/model/CheckBoxField.java create mode 100644 src/main/java/com/aspose/asposecloudpdf/model/CheckBoxFieldResponse.java create mode 100644 src/main/java/com/aspose/asposecloudpdf/model/CheckBoxFields.java create mode 100644 src/main/java/com/aspose/asposecloudpdf/model/CheckBoxFieldsResponse.java create mode 100644 src/main/java/com/aspose/asposecloudpdf/model/ChoiceField.java create mode 100644 src/main/java/com/aspose/asposecloudpdf/model/Option.java create mode 100644 src/main/java/com/aspose/asposecloudpdf/model/RadioButtonField.java create mode 100644 src/main/java/com/aspose/asposecloudpdf/model/RadioButtonFieldResponse.java create mode 100644 src/main/java/com/aspose/asposecloudpdf/model/RadioButtonFields.java create mode 100644 src/main/java/com/aspose/asposecloudpdf/model/RadioButtonFieldsResponse.java create mode 100644 src/main/java/com/aspose/asposecloudpdf/model/RadioButtonOptionField.java diff --git a/README.md b/README.md index af8e6d8..8a01469 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Aspose.PDF Cloud - API version: 3.0 -- Package version: 19.9.0 +- Package version: 19.10.0 [Aspose.PDF Cloud](https://products.aspose.cloud/pdf) is a true REST API that enables you to perform a wide range of document processing operations including creation, manipulation, conversion and rendering of PDF documents in the cloud. @@ -37,7 +37,7 @@ Add this dependency to your project's POM: com.aspose aspose-cloud-pdf - 19.9.0 + 19.10.0 compile ``` @@ -47,7 +47,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "com.aspose:aspose-cloud-pdf:19.9.0" +compile "com.aspose:aspose-cloud-pdf:19.10.0" ``` ### Others @@ -58,7 +58,7 @@ At first generate the JAR by executing: Then manually install the following JARs: -* target/aspose-cloud-pdf-19.9.0.jar +* target/aspose-cloud-pdf-19.10.0.jar * target/lib/*.jar ## Getting Started @@ -143,6 +143,7 @@ Class | Method | HTTP request | Description *PdfApi* | [**getBookmark**](docs/PdfApi.md#getBookmark) | **GET** /pdf/\{name}/bookmarks/bookmark/\{bookmarkPath} | Read document bookmark. *PdfApi* | [**getBookmarks**](docs/PdfApi.md#getBookmarks) | **GET** /pdf/\{name}/bookmarks/list/\{bookmarkPath} | Read document bookmarks node list. *PdfApi* | [**getCaretAnnotation**](docs/PdfApi.md#getCaretAnnotation) | **GET** /pdf/\{name}/annotations/caret/\{annotationId} | Read document page caret annotation by ID. +*PdfApi* | [**getCheckBoxField**](docs/PdfApi.md#getCheckBoxField) | **GET** /pdf/\{name}/fields/checkbox/\{fieldName} | Read document checkbox field by name. *PdfApi* | [**getCircleAnnotation**](docs/PdfApi.md#getCircleAnnotation) | **GET** /pdf/\{name}/annotations/circle/\{annotationId} | Read document page circle annotation by ID. *PdfApi* | [**getDiscUsage**](docs/PdfApi.md#getDiscUsage) | **GET** /pdf/storage/disc | Get disc usage *PdfApi* | [**getDocument**](docs/PdfApi.md#getDocument) | **GET** /pdf/\{name} | Read common document info. @@ -151,6 +152,7 @@ Class | Method | HTTP request | Description *PdfApi* | [**getDocumentAttachments**](docs/PdfApi.md#getDocumentAttachments) | **GET** /pdf/\{name}/attachments | Read document attachments info. *PdfApi* | [**getDocumentBookmarks**](docs/PdfApi.md#getDocumentBookmarks) | **GET** /pdf/\{name}/bookmarks/tree | Read document bookmarks tree. *PdfApi* | [**getDocumentCaretAnnotations**](docs/PdfApi.md#getDocumentCaretAnnotations) | **GET** /pdf/\{name}/annotations/caret | Read document caret annotations. +*PdfApi* | [**getDocumentCheckBoxFields**](docs/PdfApi.md#getDocumentCheckBoxFields) | **GET** /pdf/\{name}/fields/checkbox | Read document checkbox fields. *PdfApi* | [**getDocumentCircleAnnotations**](docs/PdfApi.md#getDocumentCircleAnnotations) | **GET** /pdf/\{name}/annotations/circle | Read document circle annotations. *PdfApi* | [**getDocumentFileAttachmentAnnotations**](docs/PdfApi.md#getDocumentFileAttachmentAnnotations) | **GET** /pdf/\{name}/annotations/fileattachment | Read document FileAttachment annotations. *PdfApi* | [**getDocumentFreeTextAnnotations**](docs/PdfApi.md#getDocumentFreeTextAnnotations) | **GET** /pdf/\{name}/annotations/freetext | Read document free text annotations. @@ -164,6 +166,7 @@ Class | Method | HTTP request | Description *PdfApi* | [**getDocumentPopupAnnotationsByParent**](docs/PdfApi.md#getDocumentPopupAnnotationsByParent) | **GET** /pdf/\{name}/annotations/\{annotationId}/popup | Read document popup annotations by parent id. *PdfApi* | [**getDocumentProperties**](docs/PdfApi.md#getDocumentProperties) | **GET** /pdf/\{name}/documentproperties | Read document properties. *PdfApi* | [**getDocumentProperty**](docs/PdfApi.md#getDocumentProperty) | **GET** /pdf/\{name}/documentproperties/\{propertyName} | Read document property by name. +*PdfApi* | [**getDocumentRadioButtonFields**](docs/PdfApi.md#getDocumentRadioButtonFields) | **GET** /pdf/\{name}/fields/radiobutton | Read document radiobutton fields. *PdfApi* | [**getDocumentRedactionAnnotations**](docs/PdfApi.md#getDocumentRedactionAnnotations) | **GET** /pdf/\{name}/annotations/redaction | Read document redaction annotations. *PdfApi* | [**getDocumentScreenAnnotations**](docs/PdfApi.md#getDocumentScreenAnnotations) | **GET** /pdf/\{name}/annotations/screen | Read document screen annotations. *PdfApi* | [**getDocumentSignatureFields**](docs/PdfApi.md#getDocumentSignatureFields) | **GET** /pdf/\{name}/fields/signature | Read document signature fields. @@ -210,6 +213,7 @@ Class | Method | HTTP request | Description *PdfApi* | [**getPage**](docs/PdfApi.md#getPage) | **GET** /pdf/\{name}/pages/\{pageNumber} | Read document page info. *PdfApi* | [**getPageAnnotations**](docs/PdfApi.md#getPageAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations | Read document page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases. *PdfApi* | [**getPageCaretAnnotations**](docs/PdfApi.md#getPageCaretAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/caret | Read document page caret annotations. +*PdfApi* | [**getPageCheckBoxFields**](docs/PdfApi.md#getPageCheckBoxFields) | **GET** /pdf/\{name}/page/\{pageNumber}/fields/checkbox | Read document page checkbox fields. *PdfApi* | [**getPageCircleAnnotations**](docs/PdfApi.md#getPageCircleAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/circle | Read document page circle annotations. *PdfApi* | [**getPageConvertToBmp**](docs/PdfApi.md#getPageConvertToBmp) | **GET** /pdf/\{name}/pages/\{pageNumber}/convert/bmp | Convert document page to Bmp image and return resulting file in response. *PdfApi* | [**getPageConvertToEmf**](docs/PdfApi.md#getPageConvertToEmf) | **GET** /pdf/\{name}/pages/\{pageNumber}/convert/emf | Convert document page to Emf image and return resulting file in response. @@ -228,6 +232,7 @@ Class | Method | HTTP request | Description *PdfApi* | [**getPagePolyLineAnnotations**](docs/PdfApi.md#getPagePolyLineAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/polyline | Read document page polyline annotations. *PdfApi* | [**getPagePolygonAnnotations**](docs/PdfApi.md#getPagePolygonAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/polygon | Read document page polygon annotations. *PdfApi* | [**getPagePopupAnnotations**](docs/PdfApi.md#getPagePopupAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/popup | Read document page popup annotations. +*PdfApi* | [**getPageRadioButtonFields**](docs/PdfApi.md#getPageRadioButtonFields) | **GET** /pdf/\{name}/page/\{pageNumber}/fields/radiobutton | Read document page radiobutton fields. *PdfApi* | [**getPageRedactionAnnotations**](docs/PdfApi.md#getPageRedactionAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/redaction | Read document page redaction annotations. *PdfApi* | [**getPageScreenAnnotations**](docs/PdfApi.md#getPageScreenAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/screen | Read document page screen annotations. *PdfApi* | [**getPageSignatureFields**](docs/PdfApi.md#getPageSignatureFields) | **GET** /pdf/\{name}/page/\{pageNumber}/fields/signature | Read document page signature fields. @@ -261,6 +266,7 @@ Class | Method | HTTP request | Description *PdfApi* | [**getPolygonAnnotation**](docs/PdfApi.md#getPolygonAnnotation) | **GET** /pdf/\{name}/annotations/polygon/\{annotationId} | Read document page polygon annotation by ID. *PdfApi* | [**getPopupAnnotation**](docs/PdfApi.md#getPopupAnnotation) | **GET** /pdf/\{name}/annotations/popup/\{annotationId} | Read document page popup annotation by ID. *PdfApi* | [**getPsInStorageToPdf**](docs/PdfApi.md#getPsInStorageToPdf) | **GET** /pdf/create/ps | Convert PS file (located on storage) to PDF format and return resulting file in response. +*PdfApi* | [**getRadioButtonField**](docs/PdfApi.md#getRadioButtonField) | **GET** /pdf/\{name}/fields/radiobutton/\{fieldName} | Read document RadioButton field by name. *PdfApi* | [**getRedactionAnnotation**](docs/PdfApi.md#getRedactionAnnotation) | **GET** /pdf/\{name}/annotations/redaction/\{annotationId} | Read document page redaction annotation by ID. *PdfApi* | [**getScreenAnnotation**](docs/PdfApi.md#getScreenAnnotation) | **GET** /pdf/\{name}/annotations/screen/\{annotationId} | Read document page screen annotation by ID. *PdfApi* | [**getScreenAnnotationData**](docs/PdfApi.md#getScreenAnnotationData) | **GET** /pdf/\{name}/annotations/screen/\{annotationId}/data | Read document page screen annotation by ID. @@ -291,6 +297,7 @@ Class | Method | HTTP request | Description *PdfApi* | [**postAppendDocument**](docs/PdfApi.md#postAppendDocument) | **POST** /pdf/\{name}/appendDocument | Append document to existing one. *PdfApi* | [**postBookmark**](docs/PdfApi.md#postBookmark) | **POST** /pdf/\{name}/bookmarks/bookmark/\{bookmarkPath} | Add document bookmarks. *PdfApi* | [**postChangePasswordDocumentInStorage**](docs/PdfApi.md#postChangePasswordDocumentInStorage) | **POST** /pdf/\{name}/changepassword | Change document password in storage. +*PdfApi* | [**postCheckBoxFields**](docs/PdfApi.md#postCheckBoxFields) | **POST** /pdf/\{name}/fields/checkbox | Add document checkbox fields. *PdfApi* | [**postCreateField**](docs/PdfApi.md#postCreateField) | **POST** /pdf/\{name}/fields | Create field. *PdfApi* | [**postDecryptDocumentInStorage**](docs/PdfApi.md#postDecryptDocumentInStorage) | **POST** /pdf/\{name}/decrypt | Decrypt document in storage. *PdfApi* | [**postDocumentImageFooter**](docs/PdfApi.md#postDocumentImageFooter) | **POST** /pdf/\{name}/footer/image | Add document image footer. @@ -334,6 +341,7 @@ Class | Method | HTTP request | Description *PdfApi* | [**postPageTextStamps**](docs/PdfApi.md#postPageTextStamps) | **POST** /pdf/\{name}/pages/\{pageNumber}/stamps/text | Add document page text stamps. *PdfApi* | [**postPageUnderlineAnnotations**](docs/PdfApi.md#postPageUnderlineAnnotations) | **POST** /pdf/\{name}/pages/\{pageNumber}/annotations/underline | Add document page underline annotations. *PdfApi* | [**postPopupAnnotation**](docs/PdfApi.md#postPopupAnnotation) | **POST** /pdf/\{name}/annotations/\{annotationId}/popup | Add document popup annotations. +*PdfApi* | [**postRadioButtonFields**](docs/PdfApi.md#postRadioButtonFields) | **POST** /pdf/\{name}/fields/radiobutton | Add document RadioButton fields. *PdfApi* | [**postSignDocument**](docs/PdfApi.md#postSignDocument) | **POST** /pdf/\{name}/sign | Sign document. *PdfApi* | [**postSignPage**](docs/PdfApi.md#postSignPage) | **POST** /pdf/\{name}/pages/\{pageNumber}/sign | Sign page. *PdfApi* | [**postSplitDocument**](docs/PdfApi.md#postSplitDocument) | **POST** /pdf/\{name}/split | Split document to parts. @@ -344,6 +352,7 @@ Class | Method | HTTP request | Description *PdfApi* | [**putBookmark**](docs/PdfApi.md#putBookmark) | **PUT** /pdf/\{name}/bookmarks/bookmark/\{bookmarkPath} | Update document bookmark. *PdfApi* | [**putCaretAnnotation**](docs/PdfApi.md#putCaretAnnotation) | **PUT** /pdf/\{name}/annotations/caret/\{annotationId} | Replace document caret annotation *PdfApi* | [**putChangePasswordDocument**](docs/PdfApi.md#putChangePasswordDocument) | **PUT** /pdf/changepassword | Change document password from content. +*PdfApi* | [**putCheckBoxField**](docs/PdfApi.md#putCheckBoxField) | **PUT** /pdf/\{name}/fields/checkbox/\{fieldName} | Replace document checkbox field *PdfApi* | [**putCircleAnnotation**](docs/PdfApi.md#putCircleAnnotation) | **PUT** /pdf/\{name}/annotations/circle/\{annotationId} | Replace document circle annotation *PdfApi* | [**putCreateDocument**](docs/PdfApi.md#putCreateDocument) | **PUT** /pdf/\{name} | Create empty document. *PdfApi* | [**putDecryptDocument**](docs/PdfApi.md#putDecryptDocument) | **PUT** /pdf/decrypt | Decrypt document from content. @@ -417,6 +426,7 @@ Class | Method | HTTP request | Description *PdfApi* | [**putPopupAnnotation**](docs/PdfApi.md#putPopupAnnotation) | **PUT** /pdf/\{name}/annotations/popup/\{annotationId} | Replace document popup annotation *PdfApi* | [**putPrivileges**](docs/PdfApi.md#putPrivileges) | **PUT** /pdf/\{name}/privileges | Update privilege document. *PdfApi* | [**putPsInStorageToPdf**](docs/PdfApi.md#putPsInStorageToPdf) | **PUT** /pdf/\{name}/create/ps | Convert PS file (located on storage) to PDF format and upload resulting file to storage. +*PdfApi* | [**putRadioButtonField**](docs/PdfApi.md#putRadioButtonField) | **PUT** /pdf/\{name}/fields/radiobutton/\{fieldName} | Replace document RadioButton field *PdfApi* | [**putRedactionAnnotation**](docs/PdfApi.md#putRedactionAnnotation) | **PUT** /pdf/\{name}/annotations/redaction/\{annotationId} | Replace document redaction annotation *PdfApi* | [**putReplaceImage**](docs/PdfApi.md#putReplaceImage) | **PUT** /pdf/\{name}/images/\{imageId} | Replace document image. *PdfApi* | [**putScreenAnnotation**](docs/PdfApi.md#putScreenAnnotation) | **PUT** /pdf/\{name}/annotations/screen/\{annotationId} | Replace document screen annotation @@ -456,6 +466,7 @@ Class | Method | HTTP request | Description - [AsposeResponse](docs/AsposeResponse.md) - [BorderCornerStyle](docs/BorderCornerStyle.md) - [BorderInfo](docs/BorderInfo.md) + - [BoxStyle](docs/BoxStyle.md) - [CapStyle](docs/CapStyle.md) - [CaptionPosition](docs/CaptionPosition.md) - [CaretSymbol](docs/CaretSymbol.md) @@ -503,6 +514,7 @@ Class | Method | HTTP request | Description - [MergeDocuments](docs/MergeDocuments.md) - [ObjectExist](docs/ObjectExist.md) - [OptimizeOptions](docs/OptimizeOptions.md) + - [Option](docs/Option.md) - [PageWordCount](docs/PageWordCount.md) - [Paragraph](docs/Paragraph.md) - [PartsEmbeddingModes](docs/PartsEmbeddingModes.md) @@ -557,6 +569,9 @@ Class | Method | HTTP request | Description - [CaretAnnotationResponse](docs/CaretAnnotationResponse.md) - [CaretAnnotations](docs/CaretAnnotations.md) - [CaretAnnotationsResponse](docs/CaretAnnotationsResponse.md) + - [CheckBoxFieldResponse](docs/CheckBoxFieldResponse.md) + - [CheckBoxFields](docs/CheckBoxFields.md) + - [CheckBoxFieldsResponse](docs/CheckBoxFieldsResponse.md) - [CircleAnnotationResponse](docs/CircleAnnotationResponse.md) - [CircleAnnotations](docs/CircleAnnotations.md) - [CircleAnnotationsResponse](docs/CircleAnnotationsResponse.md) @@ -611,6 +626,9 @@ Class | Method | HTTP request | Description - [PopupAnnotationResponse](docs/PopupAnnotationResponse.md) - [PopupAnnotations](docs/PopupAnnotations.md) - [PopupAnnotationsResponse](docs/PopupAnnotationsResponse.md) + - [RadioButtonFieldResponse](docs/RadioButtonFieldResponse.md) + - [RadioButtonFields](docs/RadioButtonFields.md) + - [RadioButtonFieldsResponse](docs/RadioButtonFieldsResponse.md) - [RedactionAnnotationResponse](docs/RedactionAnnotationResponse.md) - [RedactionAnnotations](docs/RedactionAnnotations.md) - [RedactionAnnotationsResponse](docs/RedactionAnnotationsResponse.md) @@ -660,6 +678,8 @@ Class | Method | HTTP request | Description - [UnderlineAnnotationsResponse](docs/UnderlineAnnotationsResponse.md) - [WordCountResponse](docs/WordCountResponse.md) - [AnnotationInfo](docs/AnnotationInfo.md) + - [CheckBoxField](docs/CheckBoxField.md) + - [ChoiceField](docs/ChoiceField.md) - [ImageFooter](docs/ImageFooter.md) - [ImageHeader](docs/ImageHeader.md) - [ImageStamp](docs/ImageStamp.md) @@ -668,6 +688,7 @@ Class | Method | HTTP request | Description - [PageNumberStamp](docs/PageNumberStamp.md) - [PdfPageStamp](docs/PdfPageStamp.md) - [PopupAnnotation](docs/PopupAnnotation.md) + - [RadioButtonOptionField](docs/RadioButtonOptionField.md) - [RedactionAnnotation](docs/RedactionAnnotation.md) - [ScreenAnnotation](docs/ScreenAnnotation.md) - [SignatureField](docs/SignatureField.md) @@ -684,6 +705,7 @@ Class | Method | HTTP request | Description - [LineAnnotation](docs/LineAnnotation.md) - [PolyAnnotation](docs/PolyAnnotation.md) - [PopupAnnotationWithParent](docs/PopupAnnotationWithParent.md) + - [RadioButtonField](docs/RadioButtonField.md) - [SoundAnnotation](docs/SoundAnnotation.md) - [SquigglyAnnotation](docs/SquigglyAnnotation.md) - [StampAnnotation](docs/StampAnnotation.md) diff --git a/build.gradle b/build.gradle index db890fb..7c6a0c1 100644 --- a/build.gradle +++ b/build.gradle @@ -20,7 +20,7 @@ apply plugin: 'idea' apply plugin: 'eclipse' group = 'com.aspose' -version = '19.9.0' +version = '19.10.0' buildscript { repositories { @@ -71,7 +71,7 @@ dependencies { publish { groupId = 'com.aspose' artifactId = 'aspose-cloud-pdf' - publishVersion = '19.9.0' + publishVersion = '19.10.0' desc = 'Aspose.PDF Cloud is a REST API for creating and editing PDF files. It can also be used to convert PDF files to different formats like DOC, HTML, XPS, TIFF and many more. Aspose.PDF Cloud gives you control: create PDFs from scratch or from HTML, XML, template, database, XPS or an image. Render PDFs to image formats such as JPEG, PNG, GIF, BMP, TIFF and many others. Aspose.PDF Cloud helps you manipulate elements of a PDF file like text, annotations, watermarks, signatures, bookmarks, stamps and so on. Its REST API also allows you to manage PDF pages by using features like merging, splitting, and inserting. Add images to a PDF file or convert PDF pages to images.' licences = ['MIT'] website = 'https://products.aspose.cloud/pdf/cloud' diff --git a/docs/BoxStyle.md b/docs/BoxStyle.md new file mode 100644 index 0000000..bac8ed1 --- /dev/null +++ b/docs/BoxStyle.md @@ -0,0 +1,18 @@ + +# BoxStyle +Represents an enumeration of available BoxStyle types. + +## Enum + Name | Description +------------ | ------------ +**Circle** | Circle style. +**Check** | Check style. +**Cross** | Cross style. +**Diamond** | Diamond style. +**Square** | Square style. +**Star** | Star style. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CheckBoxField.md b/docs/CheckBoxField.md new file mode 100644 index 0000000..bac343d --- /dev/null +++ b/docs/CheckBoxField.md @@ -0,0 +1,35 @@ + +# CheckBoxField +Provides CheckBoxField. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowedStates** | **List<String>** | Returns list of allowed states. | [optional] +**style** | [**BoxStyle**](BoxStyle.md) | Gets or sets style of check box. | [optional] +**activeState** | **String** | Gets or sets current annotation appearance state. | [optional] +**checked** | **Boolean** | Gets or sets state of check box. | +**exportValue** | **String** | Gets or sets export value of CheckBox field. | [optional] +**partialName** | **String** | Field name. | [optional] +**rect** | [**Rectangle**](Rectangle.md) | Field rectangle. | [optional] +**value** | **String** | Field value. | [optional] +**pageIndex** | **Integer** | Page index. | +**height** | **Double** | Gets or sets height of the field. | [optional] +**width** | **Double** | Gets or sets width of the field. | [optional] +**zIndex** | **Integer** | Z index. | [optional] +**isGroup** | **Boolean** | Is group. | +**parent** | [**FormField**](FormField.md) | Gets field parent. | [optional] +**isSharedField** | **Boolean** | Property for Generator support. Used when field is added to header or footer. If true, this field will created once and it's appearance will be visible on all pages of the document. If false, separated field will be created for every document page. | [optional] +**flags** | [**List<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the field. | [optional] +**color** | [**Color**](Color.md) | Color of the annotation. | [optional] +**contents** | **String** | Get the field content. | [optional] +**margin** | [**MarginInfo**](MarginInfo.md) | Gets or sets a outer margin for paragraph (for pdf generation) | [optional] +**highlighting** | [**LinkHighlightingMode**](LinkHighlightingMode.md) | Field highlighting mode. | [optional] +**horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the field. | [optional] +**verticalAlignment** | [**VerticalAlignment**](VerticalAlignment.md) | Gets VerticalAlignment of the field. | [optional] +**links** | [**List<Link>**](Link.md) | Link to the document. | [optional] + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CheckBoxFieldResponse.md b/docs/CheckBoxFieldResponse.md new file mode 100644 index 0000000..ba1d296 --- /dev/null +++ b/docs/CheckBoxFieldResponse.md @@ -0,0 +1,15 @@ + +# CheckBoxFieldResponse +Represents response containing single checkbox field object + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**field** | [**CheckBoxField**](CheckBoxField.md) | Checkbox field object | [optional] +**code** | **Integer** | Response status code. | +**status** | **String** | Response status. | [optional] + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CheckBoxFields.md b/docs/CheckBoxFields.md new file mode 100644 index 0000000..41d180d --- /dev/null +++ b/docs/CheckBoxFields.md @@ -0,0 +1,14 @@ + +# CheckBoxFields +Object representing a list of checkbox fields. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**list** | [**List<CheckBoxField>**](CheckBoxField.md) | List of checkbox fields. | [optional] +**links** | [**List<Link>**](Link.md) | Link to the document. | [optional] + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CheckBoxFieldsResponse.md b/docs/CheckBoxFieldsResponse.md new file mode 100644 index 0000000..e6bec85 --- /dev/null +++ b/docs/CheckBoxFieldsResponse.md @@ -0,0 +1,15 @@ + +# CheckBoxFieldsResponse +Represents response containing multiple checkbox field objects + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fields** | [**CheckBoxFields**](CheckBoxFields.md) | Checkbox fields object | [optional] +**code** | **Integer** | Response status code. | +**status** | **String** | Response status. | [optional] + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ChoiceField.md b/docs/ChoiceField.md new file mode 100644 index 0000000..83f1557 --- /dev/null +++ b/docs/ChoiceField.md @@ -0,0 +1,31 @@ + +# ChoiceField +Provides Choice field. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**multiSelect** | **Boolean** | Gets or sets multiselection flag. | [optional] +**partialName** | **String** | Field name. | [optional] +**rect** | [**Rectangle**](Rectangle.md) | Field rectangle. | [optional] +**value** | **String** | Field value. | [optional] +**pageIndex** | **Integer** | Page index. | +**height** | **Double** | Gets or sets height of the field. | [optional] +**width** | **Double** | Gets or sets width of the field. | [optional] +**zIndex** | **Integer** | Z index. | [optional] +**isGroup** | **Boolean** | Is group. | +**parent** | [**FormField**](FormField.md) | Gets field parent. | [optional] +**isSharedField** | **Boolean** | Property for Generator support. Used when field is added to header or footer. If true, this field will created once and it's appearance will be visible on all pages of the document. If false, separated field will be created for every document page. | [optional] +**flags** | [**List<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the field. | [optional] +**color** | [**Color**](Color.md) | Color of the annotation. | [optional] +**contents** | **String** | Get the field content. | [optional] +**margin** | [**MarginInfo**](MarginInfo.md) | Gets or sets a outer margin for paragraph (for pdf generation) | [optional] +**highlighting** | [**LinkHighlightingMode**](LinkHighlightingMode.md) | Field highlighting mode. | [optional] +**horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the field. | [optional] +**verticalAlignment** | [**VerticalAlignment**](VerticalAlignment.md) | Gets VerticalAlignment of the field. | [optional] +**links** | [**List<Link>**](Link.md) | Link to the document. | [optional] + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Option.md b/docs/Option.md new file mode 100644 index 0000000..f62cc5d --- /dev/null +++ b/docs/Option.md @@ -0,0 +1,16 @@ + +# Option +Provides form option. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | **String** | Gets or sets option export value. | [optional] +**name** | **String** | Gets or sets name of option. | [optional] +**selected** | **Boolean** | Gets or sets selected status of option. Returns true if option is selected. | [optional] +**index** | **Integer** | Gets index of the option. | [optional] + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PdfApi.md b/docs/PdfApi.md index 4da81f2..4381482 100644 --- a/docs/PdfApi.md +++ b/docs/PdfApi.md @@ -32,6 +32,7 @@ Method | HTTP request | Description [**getBookmark**](PdfApi.md#getBookmark) | **GET** /pdf/\{name}/bookmarks/bookmark/\{bookmarkPath} | Read document bookmark. [**getBookmarks**](PdfApi.md#getBookmarks) | **GET** /pdf/\{name}/bookmarks/list/\{bookmarkPath} | Read document bookmarks node list. [**getCaretAnnotation**](PdfApi.md#getCaretAnnotation) | **GET** /pdf/\{name}/annotations/caret/\{annotationId} | Read document page caret annotation by ID. +[**getCheckBoxField**](PdfApi.md#getCheckBoxField) | **GET** /pdf/\{name}/fields/checkbox/\{fieldName} | Read document checkbox field by name. [**getCircleAnnotation**](PdfApi.md#getCircleAnnotation) | **GET** /pdf/\{name}/annotations/circle/\{annotationId} | Read document page circle annotation by ID. [**getDiscUsage**](PdfApi.md#getDiscUsage) | **GET** /pdf/storage/disc | Get disc usage [**getDocument**](PdfApi.md#getDocument) | **GET** /pdf/\{name} | Read common document info. @@ -40,6 +41,7 @@ Method | HTTP request | Description [**getDocumentAttachments**](PdfApi.md#getDocumentAttachments) | **GET** /pdf/\{name}/attachments | Read document attachments info. [**getDocumentBookmarks**](PdfApi.md#getDocumentBookmarks) | **GET** /pdf/\{name}/bookmarks/tree | Read document bookmarks tree. [**getDocumentCaretAnnotations**](PdfApi.md#getDocumentCaretAnnotations) | **GET** /pdf/\{name}/annotations/caret | Read document caret annotations. +[**getDocumentCheckBoxFields**](PdfApi.md#getDocumentCheckBoxFields) | **GET** /pdf/\{name}/fields/checkbox | Read document checkbox fields. [**getDocumentCircleAnnotations**](PdfApi.md#getDocumentCircleAnnotations) | **GET** /pdf/\{name}/annotations/circle | Read document circle annotations. [**getDocumentFileAttachmentAnnotations**](PdfApi.md#getDocumentFileAttachmentAnnotations) | **GET** /pdf/\{name}/annotations/fileattachment | Read document FileAttachment annotations. [**getDocumentFreeTextAnnotations**](PdfApi.md#getDocumentFreeTextAnnotations) | **GET** /pdf/\{name}/annotations/freetext | Read document free text annotations. @@ -53,6 +55,7 @@ Method | HTTP request | Description [**getDocumentPopupAnnotationsByParent**](PdfApi.md#getDocumentPopupAnnotationsByParent) | **GET** /pdf/\{name}/annotations/\{annotationId}/popup | Read document popup annotations by parent id. [**getDocumentProperties**](PdfApi.md#getDocumentProperties) | **GET** /pdf/\{name}/documentproperties | Read document properties. [**getDocumentProperty**](PdfApi.md#getDocumentProperty) | **GET** /pdf/\{name}/documentproperties/\{propertyName} | Read document property by name. +[**getDocumentRadioButtonFields**](PdfApi.md#getDocumentRadioButtonFields) | **GET** /pdf/\{name}/fields/radiobutton | Read document radiobutton fields. [**getDocumentRedactionAnnotations**](PdfApi.md#getDocumentRedactionAnnotations) | **GET** /pdf/\{name}/annotations/redaction | Read document redaction annotations. [**getDocumentScreenAnnotations**](PdfApi.md#getDocumentScreenAnnotations) | **GET** /pdf/\{name}/annotations/screen | Read document screen annotations. [**getDocumentSignatureFields**](PdfApi.md#getDocumentSignatureFields) | **GET** /pdf/\{name}/fields/signature | Read document signature fields. @@ -99,6 +102,7 @@ Method | HTTP request | Description [**getPage**](PdfApi.md#getPage) | **GET** /pdf/\{name}/pages/\{pageNumber} | Read document page info. [**getPageAnnotations**](PdfApi.md#getPageAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations | Read document page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases. [**getPageCaretAnnotations**](PdfApi.md#getPageCaretAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/caret | Read document page caret annotations. +[**getPageCheckBoxFields**](PdfApi.md#getPageCheckBoxFields) | **GET** /pdf/\{name}/page/\{pageNumber}/fields/checkbox | Read document page checkbox fields. [**getPageCircleAnnotations**](PdfApi.md#getPageCircleAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/circle | Read document page circle annotations. [**getPageConvertToBmp**](PdfApi.md#getPageConvertToBmp) | **GET** /pdf/\{name}/pages/\{pageNumber}/convert/bmp | Convert document page to Bmp image and return resulting file in response. [**getPageConvertToEmf**](PdfApi.md#getPageConvertToEmf) | **GET** /pdf/\{name}/pages/\{pageNumber}/convert/emf | Convert document page to Emf image and return resulting file in response. @@ -117,6 +121,7 @@ Method | HTTP request | Description [**getPagePolyLineAnnotations**](PdfApi.md#getPagePolyLineAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/polyline | Read document page polyline annotations. [**getPagePolygonAnnotations**](PdfApi.md#getPagePolygonAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/polygon | Read document page polygon annotations. [**getPagePopupAnnotations**](PdfApi.md#getPagePopupAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/popup | Read document page popup annotations. +[**getPageRadioButtonFields**](PdfApi.md#getPageRadioButtonFields) | **GET** /pdf/\{name}/page/\{pageNumber}/fields/radiobutton | Read document page radiobutton fields. [**getPageRedactionAnnotations**](PdfApi.md#getPageRedactionAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/redaction | Read document page redaction annotations. [**getPageScreenAnnotations**](PdfApi.md#getPageScreenAnnotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/screen | Read document page screen annotations. [**getPageSignatureFields**](PdfApi.md#getPageSignatureFields) | **GET** /pdf/\{name}/page/\{pageNumber}/fields/signature | Read document page signature fields. @@ -150,6 +155,7 @@ Method | HTTP request | Description [**getPolygonAnnotation**](PdfApi.md#getPolygonAnnotation) | **GET** /pdf/\{name}/annotations/polygon/\{annotationId} | Read document page polygon annotation by ID. [**getPopupAnnotation**](PdfApi.md#getPopupAnnotation) | **GET** /pdf/\{name}/annotations/popup/\{annotationId} | Read document page popup annotation by ID. [**getPsInStorageToPdf**](PdfApi.md#getPsInStorageToPdf) | **GET** /pdf/create/ps | Convert PS file (located on storage) to PDF format and return resulting file in response. +[**getRadioButtonField**](PdfApi.md#getRadioButtonField) | **GET** /pdf/\{name}/fields/radiobutton/\{fieldName} | Read document RadioButton field by name. [**getRedactionAnnotation**](PdfApi.md#getRedactionAnnotation) | **GET** /pdf/\{name}/annotations/redaction/\{annotationId} | Read document page redaction annotation by ID. [**getScreenAnnotation**](PdfApi.md#getScreenAnnotation) | **GET** /pdf/\{name}/annotations/screen/\{annotationId} | Read document page screen annotation by ID. [**getScreenAnnotationData**](PdfApi.md#getScreenAnnotationData) | **GET** /pdf/\{name}/annotations/screen/\{annotationId}/data | Read document page screen annotation by ID. @@ -180,6 +186,7 @@ Method | HTTP request | Description [**postAppendDocument**](PdfApi.md#postAppendDocument) | **POST** /pdf/\{name}/appendDocument | Append document to existing one. [**postBookmark**](PdfApi.md#postBookmark) | **POST** /pdf/\{name}/bookmarks/bookmark/\{bookmarkPath} | Add document bookmarks. [**postChangePasswordDocumentInStorage**](PdfApi.md#postChangePasswordDocumentInStorage) | **POST** /pdf/\{name}/changepassword | Change document password in storage. +[**postCheckBoxFields**](PdfApi.md#postCheckBoxFields) | **POST** /pdf/\{name}/fields/checkbox | Add document checkbox fields. [**postCreateField**](PdfApi.md#postCreateField) | **POST** /pdf/\{name}/fields | Create field. [**postDecryptDocumentInStorage**](PdfApi.md#postDecryptDocumentInStorage) | **POST** /pdf/\{name}/decrypt | Decrypt document in storage. [**postDocumentImageFooter**](PdfApi.md#postDocumentImageFooter) | **POST** /pdf/\{name}/footer/image | Add document image footer. @@ -223,6 +230,7 @@ Method | HTTP request | Description [**postPageTextStamps**](PdfApi.md#postPageTextStamps) | **POST** /pdf/\{name}/pages/\{pageNumber}/stamps/text | Add document page text stamps. [**postPageUnderlineAnnotations**](PdfApi.md#postPageUnderlineAnnotations) | **POST** /pdf/\{name}/pages/\{pageNumber}/annotations/underline | Add document page underline annotations. [**postPopupAnnotation**](PdfApi.md#postPopupAnnotation) | **POST** /pdf/\{name}/annotations/\{annotationId}/popup | Add document popup annotations. +[**postRadioButtonFields**](PdfApi.md#postRadioButtonFields) | **POST** /pdf/\{name}/fields/radiobutton | Add document RadioButton fields. [**postSignDocument**](PdfApi.md#postSignDocument) | **POST** /pdf/\{name}/sign | Sign document. [**postSignPage**](PdfApi.md#postSignPage) | **POST** /pdf/\{name}/pages/\{pageNumber}/sign | Sign page. [**postSplitDocument**](PdfApi.md#postSplitDocument) | **POST** /pdf/\{name}/split | Split document to parts. @@ -233,6 +241,7 @@ Method | HTTP request | Description [**putBookmark**](PdfApi.md#putBookmark) | **PUT** /pdf/\{name}/bookmarks/bookmark/\{bookmarkPath} | Update document bookmark. [**putCaretAnnotation**](PdfApi.md#putCaretAnnotation) | **PUT** /pdf/\{name}/annotations/caret/\{annotationId} | Replace document caret annotation [**putChangePasswordDocument**](PdfApi.md#putChangePasswordDocument) | **PUT** /pdf/changepassword | Change document password from content. +[**putCheckBoxField**](PdfApi.md#putCheckBoxField) | **PUT** /pdf/\{name}/fields/checkbox/\{fieldName} | Replace document checkbox field [**putCircleAnnotation**](PdfApi.md#putCircleAnnotation) | **PUT** /pdf/\{name}/annotations/circle/\{annotationId} | Replace document circle annotation [**putCreateDocument**](PdfApi.md#putCreateDocument) | **PUT** /pdf/\{name} | Create empty document. [**putDecryptDocument**](PdfApi.md#putDecryptDocument) | **PUT** /pdf/decrypt | Decrypt document from content. @@ -306,6 +315,7 @@ Method | HTTP request | Description [**putPopupAnnotation**](PdfApi.md#putPopupAnnotation) | **PUT** /pdf/\{name}/annotations/popup/\{annotationId} | Replace document popup annotation [**putPrivileges**](PdfApi.md#putPrivileges) | **PUT** /pdf/\{name}/privileges | Update privilege document. [**putPsInStorageToPdf**](PdfApi.md#putPsInStorageToPdf) | **PUT** /pdf/\{name}/create/ps | Convert PS file (located on storage) to PDF format and upload resulting file to storage. +[**putRadioButtonField**](PdfApi.md#putRadioButtonField) | **PUT** /pdf/\{name}/fields/radiobutton/\{fieldName} | Replace document RadioButton field [**putRedactionAnnotation**](PdfApi.md#putRedactionAnnotation) | **PUT** /pdf/\{name}/annotations/redaction/\{annotationId} | Replace document redaction annotation [**putReplaceImage**](PdfApi.md#putReplaceImage) | **PUT** /pdf/\{name}/images/\{imageId} | Replace document image. [**putScreenAnnotation**](PdfApi.md#putScreenAnnotation) | **PUT** /pdf/\{name}/annotations/screen/\{annotationId} | Replace document screen annotation @@ -993,6 +1003,30 @@ Name | Type | Description | Notes [**CaretAnnotationResponse**](CaretAnnotationResponse.md) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **getCheckBoxField** +> CheckBoxFieldResponse getCheckBoxField(name, fieldName, storage, folder) + +Read document checkbox field by name. + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| The document name. | + **fieldName** | **String**| The field name. | + **storage** | **String**| The document storage. | [optional] + **folder** | **String**| The document folder. | [optional] + +### Return type + +[**CheckBoxFieldResponse**](CheckBoxFieldResponse.md) + ### HTTP request headers - **Content-Type**: application/json @@ -1177,6 +1211,29 @@ Name | Type | Description | Notes [**CaretAnnotationsResponse**](CaretAnnotationsResponse.md) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **getDocumentCheckBoxFields** +> CheckBoxFieldsResponse getDocumentCheckBoxFields(name, storage, folder) + +Read document checkbox fields. + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| The document name. | + **storage** | **String**| The document storage. | [optional] + **folder** | **String**| The document folder. | [optional] + +### Return type + +[**CheckBoxFieldsResponse**](CheckBoxFieldsResponse.md) + ### HTTP request headers - **Content-Type**: application/json @@ -1478,6 +1535,29 @@ Name | Type | Description | Notes [**DocumentPropertyResponse**](DocumentPropertyResponse.md) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **getDocumentRadioButtonFields** +> RadioButtonFieldsResponse getDocumentRadioButtonFields(name, storage, folder) + +Read document radiobutton fields. + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| The document name. | + **storage** | **String**| The document storage. | [optional] + **folder** | **String**| The document folder. | [optional] + +### Return type + +[**RadioButtonFieldsResponse**](RadioButtonFieldsResponse.md) + ### HTTP request headers - **Content-Type**: application/json @@ -2567,6 +2647,30 @@ Name | Type | Description | Notes [**CaretAnnotationsResponse**](CaretAnnotationsResponse.md) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **getPageCheckBoxFields** +> CheckBoxFieldsResponse getPageCheckBoxFields(name, pageNumber, storage, folder) + +Read document page checkbox fields. + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| The document name. | + **pageNumber** | **Integer**| The page number. | + **storage** | **String**| The document storage. | [optional] + **folder** | **String**| The document folder. | [optional] + +### Return type + +[**CheckBoxFieldsResponse**](CheckBoxFieldsResponse.md) + ### HTTP request headers - **Content-Type**: application/json @@ -3012,6 +3116,30 @@ Name | Type | Description | Notes [**PopupAnnotationsResponse**](PopupAnnotationsResponse.md) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **getPageRadioButtonFields** +> RadioButtonFieldsResponse getPageRadioButtonFields(name, pageNumber, storage, folder) + +Read document page radiobutton fields. + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| The document name. | + **pageNumber** | **Integer**| The page number. | + **storage** | **String**| The document storage. | [optional] + **folder** | **String**| The document folder. | [optional] + +### Return type + +[**RadioButtonFieldsResponse**](RadioButtonFieldsResponse.md) + ### HTTP request headers - **Content-Type**: application/json @@ -3863,6 +3991,30 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: multipart/form-data + +# **getRadioButtonField** +> RadioButtonFieldResponse getRadioButtonField(name, fieldName, storage, folder) + +Read document RadioButton field by name. + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| The document name. | + **fieldName** | **String**| The field name. | + **storage** | **String**| The document storage. | [optional] + **folder** | **String**| The document folder. | [optional] + +### Return type + +[**RadioButtonFieldResponse**](RadioButtonFieldResponse.md) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + # **getRedactionAnnotation** > RedactionAnnotationResponse getRedactionAnnotation(name, annotationId, storage, folder) @@ -4593,6 +4745,30 @@ Name | Type | Description | Notes [**AsposeResponse**](AsposeResponse.md) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **postCheckBoxFields** +> AsposeResponse postCheckBoxFields(name, fields, storage, folder) + +Add document checkbox fields. + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| The document name. | + **fields** | [**List<CheckBoxField>**](CheckBoxField.md)| The array of field. | + **storage** | **String**| The document storage. | [optional] + **folder** | **String**| The document folder. | [optional] + +### Return type + +[**AsposeResponse**](AsposeResponse.md) + ### HTTP request headers - **Content-Type**: application/json @@ -5677,6 +5853,30 @@ Name | Type | Description | Notes [**AsposeResponse**](AsposeResponse.md) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **postRadioButtonFields** +> AsposeResponse postRadioButtonFields(name, fields, storage, folder) + +Add document RadioButton fields. + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| The document name. | + **fields** | [**List<RadioButtonField>**](RadioButtonField.md)| The array of field. | + **storage** | **String**| The document storage. | [optional] + **folder** | **String**| The document folder. | [optional] + +### Return type + +[**AsposeResponse**](AsposeResponse.md) + ### HTTP request headers - **Content-Type**: application/json @@ -5926,6 +6126,31 @@ Name | Type | Description | Notes [**AsposeResponse**](AsposeResponse.md) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **putCheckBoxField** +> CheckBoxFieldResponse putCheckBoxField(name, fieldName, field, storage, folder) + +Replace document checkbox field + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| The document name. | + **fieldName** | **String**| The field name. | + **field** | [**CheckBoxField**](CheckBoxField.md)| The field. | + **storage** | **String**| The document storage. | [optional] + **folder** | **String**| The document folder. | [optional] + +### Return type + +[**CheckBoxFieldResponse**](CheckBoxFieldResponse.md) + ### HTTP request headers - **Content-Type**: application/json @@ -7858,6 +8083,31 @@ Name | Type | Description | Notes [**AsposeResponse**](AsposeResponse.md) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **putRadioButtonField** +> RadioButtonFieldResponse putRadioButtonField(name, fieldName, field, storage, folder) + +Replace document RadioButton field + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| The document name. | + **fieldName** | **String**| The field name. | + **field** | [**RadioButtonField**](RadioButtonField.md)| The field. | + **storage** | **String**| The document storage. | [optional] + **folder** | **String**| The document folder. | [optional] + +### Return type + +[**RadioButtonFieldResponse**](RadioButtonFieldResponse.md) + ### HTTP request headers - **Content-Type**: application/json diff --git a/docs/RadioButtonField.md b/docs/RadioButtonField.md new file mode 100644 index 0000000..ec2931b --- /dev/null +++ b/docs/RadioButtonField.md @@ -0,0 +1,35 @@ + +# RadioButtonField +Provides RadioButtonField. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**options** | [**List<Option>**](Option.md) | Gets collection of options of the radio button. | [optional] +**radioButtonOptionsField** | [**List<RadioButtonOptionField>**](RadioButtonOptionField.md) | Gets collection of radio button options field. | [optional] +**style** | [**BoxStyle**](BoxStyle.md) | Style of field box. | [optional] +**selected** | **Integer** | Gets or sets index of selected item. Numbering of items is started from 1. | +**multiSelect** | **Boolean** | Gets or sets multiselection flag. | [optional] +**partialName** | **String** | Field name. | [optional] +**rect** | [**Rectangle**](Rectangle.md) | Field rectangle. | [optional] +**value** | **String** | Field value. | [optional] +**pageIndex** | **Integer** | Page index. | +**height** | **Double** | Gets or sets height of the field. | [optional] +**width** | **Double** | Gets or sets width of the field. | [optional] +**zIndex** | **Integer** | Z index. | [optional] +**isGroup** | **Boolean** | Is group. | +**parent** | [**FormField**](FormField.md) | Gets field parent. | [optional] +**isSharedField** | **Boolean** | Property for Generator support. Used when field is added to header or footer. If true, this field will created once and it's appearance will be visible on all pages of the document. If false, separated field will be created for every document page. | [optional] +**flags** | [**List<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the field. | [optional] +**color** | [**Color**](Color.md) | Color of the annotation. | [optional] +**contents** | **String** | Get the field content. | [optional] +**margin** | [**MarginInfo**](MarginInfo.md) | Gets or sets a outer margin for paragraph (for pdf generation) | [optional] +**highlighting** | [**LinkHighlightingMode**](LinkHighlightingMode.md) | Field highlighting mode. | [optional] +**horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the field. | [optional] +**verticalAlignment** | [**VerticalAlignment**](VerticalAlignment.md) | Gets VerticalAlignment of the field. | [optional] +**links** | [**List<Link>**](Link.md) | Link to the document. | [optional] + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RadioButtonFieldResponse.md b/docs/RadioButtonFieldResponse.md new file mode 100644 index 0000000..39e3615 --- /dev/null +++ b/docs/RadioButtonFieldResponse.md @@ -0,0 +1,15 @@ + +# RadioButtonFieldResponse +Represents response containing single RadioButton field object + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**field** | [**RadioButtonField**](RadioButtonField.md) | RadioButton field object | [optional] +**code** | **Integer** | Response status code. | +**status** | **String** | Response status. | [optional] + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RadioButtonFields.md b/docs/RadioButtonFields.md new file mode 100644 index 0000000..6e03b88 --- /dev/null +++ b/docs/RadioButtonFields.md @@ -0,0 +1,14 @@ + +# RadioButtonFields +Object representing a list of radiobox fields. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**list** | [**List<RadioButtonField>**](RadioButtonField.md) | List of radiobox fields. | [optional] +**links** | [**List<Link>**](Link.md) | Link to the document. | [optional] + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RadioButtonFieldsResponse.md b/docs/RadioButtonFieldsResponse.md new file mode 100644 index 0000000..c403d70 --- /dev/null +++ b/docs/RadioButtonFieldsResponse.md @@ -0,0 +1,15 @@ + +# RadioButtonFieldsResponse +Represents response containing multiple RadioButton field objects + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fields** | [**RadioButtonFields**](RadioButtonFields.md) | Text box fields object | [optional] +**code** | **Integer** | Response status code. | +**status** | **String** | Response status. | [optional] + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RadioButtonOptionField.md b/docs/RadioButtonOptionField.md new file mode 100644 index 0000000..1fb528f --- /dev/null +++ b/docs/RadioButtonOptionField.md @@ -0,0 +1,32 @@ + +# RadioButtonOptionField +Provides RadioButtonField. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**optionName** | **String** | Gets or sets name of the option. | [optional] +**style** | [**BoxStyle**](BoxStyle.md) | Style of field box. | [optional] +**partialName** | **String** | Field name. | [optional] +**rect** | [**Rectangle**](Rectangle.md) | Field rectangle. | [optional] +**value** | **String** | Field value. | [optional] +**pageIndex** | **Integer** | Page index. | +**height** | **Double** | Gets or sets height of the field. | [optional] +**width** | **Double** | Gets or sets width of the field. | [optional] +**zIndex** | **Integer** | Z index. | [optional] +**isGroup** | **Boolean** | Is group. | +**parent** | [**FormField**](FormField.md) | Gets field parent. | [optional] +**isSharedField** | **Boolean** | Property for Generator support. Used when field is added to header or footer. If true, this field will created once and it's appearance will be visible on all pages of the document. If false, separated field will be created for every document page. | [optional] +**flags** | [**List<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the field. | [optional] +**color** | [**Color**](Color.md) | Color of the annotation. | [optional] +**contents** | **String** | Get the field content. | [optional] +**margin** | [**MarginInfo**](MarginInfo.md) | Gets or sets a outer margin for paragraph (for pdf generation) | [optional] +**highlighting** | [**LinkHighlightingMode**](LinkHighlightingMode.md) | Field highlighting mode. | [optional] +**horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the field. | [optional] +**verticalAlignment** | [**VerticalAlignment**](VerticalAlignment.md) | Gets VerticalAlignment of the field. | [optional] +**links** | [**List<Link>**](Link.md) | Link to the document. | [optional] + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/pom.xml b/pom.xml index e7f9b9e..8d7b2e0 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ aspose-cloud-pdf jar aspose-cloud-pdf - 19.9.0 + 19.10.0 https://www.aspose.cloud/ Java library for communicating with the Aspose.Pdf for Cloud API diff --git a/src/main/java/com/aspose/asposecloudpdf/ApiClient.java b/src/main/java/com/aspose/asposecloudpdf/ApiClient.java index a6b6a0b..02d8c02 100644 --- a/src/main/java/com/aspose/asposecloudpdf/ApiClient.java +++ b/src/main/java/com/aspose/asposecloudpdf/ApiClient.java @@ -531,7 +531,7 @@ public String escapeString(String str) { return str; } } - + /** * Escape the given string to be used as URL segment value. * diff --git a/src/main/java/com/aspose/asposecloudpdf/api/PdfApi.java b/src/main/java/com/aspose/asposecloudpdf/api/PdfApi.java index c9ebead..30cc9f2 100644 --- a/src/main/java/com/aspose/asposecloudpdf/api/PdfApi.java +++ b/src/main/java/com/aspose/asposecloudpdf/api/PdfApi.java @@ -47,6 +47,9 @@ import com.aspose.asposecloudpdf.model.CaretAnnotation; import com.aspose.asposecloudpdf.model.CaretAnnotationResponse; import com.aspose.asposecloudpdf.model.CaretAnnotationsResponse; +import com.aspose.asposecloudpdf.model.CheckBoxField; +import com.aspose.asposecloudpdf.model.CheckBoxFieldResponse; +import com.aspose.asposecloudpdf.model.CheckBoxFieldsResponse; import com.aspose.asposecloudpdf.model.CircleAnnotation; import com.aspose.asposecloudpdf.model.CircleAnnotationResponse; import com.aspose.asposecloudpdf.model.CircleAnnotationsResponse; @@ -108,6 +111,9 @@ import com.aspose.asposecloudpdf.model.PopupAnnotation; import com.aspose.asposecloudpdf.model.PopupAnnotationResponse; import com.aspose.asposecloudpdf.model.PopupAnnotationsResponse; +import com.aspose.asposecloudpdf.model.RadioButtonField; +import com.aspose.asposecloudpdf.model.RadioButtonFieldResponse; +import com.aspose.asposecloudpdf.model.RadioButtonFieldsResponse; import com.aspose.asposecloudpdf.model.RedactionAnnotation; import com.aspose.asposecloudpdf.model.RedactionAnnotationResponse; import com.aspose.asposecloudpdf.model.RedactionAnnotationsResponse; @@ -4485,6 +4491,164 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don apiClient.executeAsync(call, localVarReturnType, callback); return call; } + /** + * Build call for getCheckBoxField + * @param name The document name. (required) + * @param fieldName The field name. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getCheckBoxFieldCall(String name, String fieldName, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/pdf/{name}/fields/checkbox/{fieldName}" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) + .replaceAll("\\{" + "fieldName" + "\\}", apiClient.escapePathSegmentString(fieldName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (storage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getCheckBoxFieldValidateBeforeCall(String name, String fieldName, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling getCheckBoxField(Async)"); + } + + // verify the required parameter 'fieldName' is set + if (fieldName == null) { + throw new ApiException("Missing the required parameter 'fieldName' when calling getCheckBoxField(Async)"); + } + + + com.squareup.okhttp.Call call = getCheckBoxFieldCall(name, fieldName, storage, folder, progressListener, progressRequestListener); + return call; + + } + + /** + * Read document checkbox field by name. + * + * @param name The document name. (required) + * @param fieldName The field name. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return CheckBoxFieldResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public CheckBoxFieldResponse getCheckBoxField(String name, String fieldName, String storage, String folder) throws ApiException { + try + { + ApiResponse resp = getCheckBoxFieldWithHttpInfo(name, fieldName, storage, folder); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.requestToken(); + ApiResponse resp = getCheckBoxFieldWithHttpInfo(name, fieldName, storage, folder); + return resp.getData(); + } + throw ex; + } + } + + /** + * Read document checkbox field by name. + * + * @param name The document name. (required) + * @param fieldName The field name. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return ApiResponse<CheckBoxFieldResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getCheckBoxFieldWithHttpInfo(String name, String fieldName, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getCheckBoxFieldValidateBeforeCall(name, fieldName, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Read document checkbox field by name. (asynchronously) + * + * @param name The document name. (required) + * @param fieldName The field name. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getCheckBoxFieldAsync(String name, String fieldName, String storage, String folder, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getCheckBoxFieldValidateBeforeCall(name, fieldName, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } /** * Build call for getCircleAnnotation * @param name The document name. (required) @@ -5673,6 +5837,154 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don apiClient.executeAsync(call, localVarReturnType, callback); return call; } + /** + * Build call for getDocumentCheckBoxFields + * @param name The document name. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getDocumentCheckBoxFieldsCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/pdf/{name}/fields/checkbox" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (storage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getDocumentCheckBoxFieldsValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling getDocumentCheckBoxFields(Async)"); + } + + + com.squareup.okhttp.Call call = getDocumentCheckBoxFieldsCall(name, storage, folder, progressListener, progressRequestListener); + return call; + + } + + /** + * Read document checkbox fields. + * + * @param name The document name. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return CheckBoxFieldsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public CheckBoxFieldsResponse getDocumentCheckBoxFields(String name, String storage, String folder) throws ApiException { + try + { + ApiResponse resp = getDocumentCheckBoxFieldsWithHttpInfo(name, storage, folder); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.requestToken(); + ApiResponse resp = getDocumentCheckBoxFieldsWithHttpInfo(name, storage, folder); + return resp.getData(); + } + throw ex; + } + } + + /** + * Read document checkbox fields. + * + * @param name The document name. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return ApiResponse<CheckBoxFieldsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getDocumentCheckBoxFieldsWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getDocumentCheckBoxFieldsValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Read document checkbox fields. (asynchronously) + * + * @param name The document name. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getDocumentCheckBoxFieldsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getDocumentCheckBoxFieldsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } /** * Build call for getDocumentCircleAnnotations * @param name The document name. (required) @@ -7617,6 +7929,154 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don apiClient.executeAsync(call, localVarReturnType, callback); return call; } + /** + * Build call for getDocumentRadioButtonFields + * @param name The document name. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getDocumentRadioButtonFieldsCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/pdf/{name}/fields/radiobutton" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (storage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getDocumentRadioButtonFieldsValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling getDocumentRadioButtonFields(Async)"); + } + + + com.squareup.okhttp.Call call = getDocumentRadioButtonFieldsCall(name, storage, folder, progressListener, progressRequestListener); + return call; + + } + + /** + * Read document radiobutton fields. + * + * @param name The document name. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return RadioButtonFieldsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public RadioButtonFieldsResponse getDocumentRadioButtonFields(String name, String storage, String folder) throws ApiException { + try + { + ApiResponse resp = getDocumentRadioButtonFieldsWithHttpInfo(name, storage, folder); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.requestToken(); + ApiResponse resp = getDocumentRadioButtonFieldsWithHttpInfo(name, storage, folder); + return resp.getData(); + } + throw ex; + } + } + + /** + * Read document radiobutton fields. + * + * @param name The document name. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return ApiResponse<RadioButtonFieldsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getDocumentRadioButtonFieldsWithHttpInfo(String name, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getDocumentRadioButtonFieldsValidateBeforeCall(name, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Read document radiobutton fields. (asynchronously) + * + * @param name The document name. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getDocumentRadioButtonFieldsAsync(String name, String storage, String folder, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getDocumentRadioButtonFieldsValidateBeforeCall(name, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } /** * Build call for getDocumentRedactionAnnotations * @param name The document name. (required) @@ -14708,7 +15168,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don return call; } /** - * Build call for getPageCircleAnnotations + * Build call for getPageCheckBoxFields * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) @@ -14718,11 +15178,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageCircleAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageCheckBoxFieldsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/circle" + String localVarPath = "/pdf/{name}/page/{pageNumber}/fields/checkbox" .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapePathSegmentString(pageNumber.toString())); @@ -14766,38 +15226,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageCircleAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageCheckBoxFieldsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageCircleAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageCheckBoxFields(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageCircleAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageCheckBoxFields(Async)"); } - com.squareup.okhttp.Call call = getPageCircleAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageCheckBoxFieldsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page circle annotations. + * Read document page checkbox fields. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return CircleAnnotationsResponse + * @return CheckBoxFieldsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public CircleAnnotationsResponse getPageCircleAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public CheckBoxFieldsResponse getPageCheckBoxFields(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageCircleAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageCheckBoxFieldsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -14805,7 +15265,7 @@ public CircleAnnotationsResponse getPageCircleAnnotations(String name, Integer p if (ex.getCode() == 401) { apiClient.requestToken(); - ApiResponse resp = getPageCircleAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageCheckBoxFieldsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -14813,23 +15273,23 @@ public CircleAnnotationsResponse getPageCircleAnnotations(String name, Integer p } /** - * Read document page circle annotations. + * Read document page checkbox fields. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<CircleAnnotationsResponse> + * @return ApiResponse<CheckBoxFieldsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageCircleAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageCircleAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPageCheckBoxFieldsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageCheckBoxFieldsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page circle annotations. (asynchronously) + * Read document page checkbox fields. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -14839,7 +15299,7 @@ public ApiResponse getPageCircleAnnotationsWithHttpIn * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageCircleAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageCheckBoxFieldsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -14860,49 +15320,43 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageCircleAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPageCheckBoxFieldsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageConvertToBmp + * Build call for getPageCircleAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param width The converted image width. (optional, default to 0) - * @param height The converted image height. (optional, default to 0) - * @param folder The document folder. (optional) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageConvertToBmpCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageCircleAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/convert/bmp" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/circle" .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapePathSegmentString(pageNumber.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (width != null) - localVarQueryParams.addAll(apiClient.parameterToPair("width", width)); - if (height != null) - localVarQueryParams.addAll(apiClient.parameterToPair("height", height)); - if (folder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "multipart/form-data" + "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -14930,40 +15384,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageConvertToBmpValidateBeforeCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageCircleAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageConvertToBmp(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageCircleAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageConvertToBmp(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageCircleAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPageConvertToBmpCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageCircleAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Convert document page to Bmp image and return resulting file in response. + * Read document page circle annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param width The converted image width. (optional, default to 0) - * @param height The converted image height. (optional, default to 0) - * @param folder The document folder. (optional) * @param storage The document storage. (optional) - * @return File + * @param folder The document folder. (optional) + * @return CircleAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getPageConvertToBmp(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { + public CircleAnnotationsResponse getPageCircleAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageConvertToBmpWithHttpInfo(name, pageNumber, width, height, folder, storage); + ApiResponse resp = getPageCircleAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -14971,7 +15423,7 @@ public File getPageConvertToBmp(String name, Integer pageNumber, Integer width, if (ex.getCode() == 401) { apiClient.requestToken(); - ApiResponse resp = getPageConvertToBmpWithHttpInfo(name, pageNumber, width, height, folder, storage); + ApiResponse resp = getPageCircleAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -14979,37 +15431,33 @@ public File getPageConvertToBmp(String name, Integer pageNumber, Integer width, } /** - * Convert document page to Bmp image and return resulting file in response. + * Read document page circle annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param width The converted image width. (optional, default to 0) - * @param height The converted image height. (optional, default to 0) - * @param folder The document folder. (optional) * @param storage The document storage. (optional) - * @return ApiResponse<File> + * @param folder The document folder. (optional) + * @return ApiResponse<CircleAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageConvertToBmpWithHttpInfo(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { - com.squareup.okhttp.Call call = getPageConvertToBmpValidateBeforeCall(name, pageNumber, width, height, folder, storage, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPageCircleAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageCircleAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Convert document page to Bmp image and return resulting file in response. (asynchronously) + * Read document page circle annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) - * @param width The converted image width. (optional, default to 0) - * @param height The converted image height. (optional, default to 0) - * @param folder The document folder. (optional) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageConvertToBmpAsync(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageCircleAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -15030,13 +15478,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageConvertToBmpValidateBeforeCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPageCircleAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageConvertToEmf + * Build call for getPageConvertToBmp * @param name The document name. (required) * @param pageNumber The page number. (required) * @param width The converted image width. (optional, default to 0) @@ -15048,11 +15496,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageConvertToEmfCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageConvertToBmpCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/convert/emf" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/convert/bmp" .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapePathSegmentString(pageNumber.toString())); @@ -15100,26 +15548,26 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageConvertToEmfValidateBeforeCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageConvertToBmpValidateBeforeCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageConvertToEmf(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageConvertToBmp(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageConvertToEmf(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageConvertToBmp(Async)"); } - com.squareup.okhttp.Call call = getPageConvertToEmfCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageConvertToBmpCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); return call; } /** - * Convert document page to Emf image and return resulting file in response. + * Convert document page to Bmp image and return resulting file in response. * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -15130,10 +15578,10 @@ private com.squareup.okhttp.Call getPageConvertToEmfValidateBeforeCall(String na * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getPageConvertToEmf(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { + public File getPageConvertToBmp(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { try { - ApiResponse resp = getPageConvertToEmfWithHttpInfo(name, pageNumber, width, height, folder, storage); + ApiResponse resp = getPageConvertToBmpWithHttpInfo(name, pageNumber, width, height, folder, storage); return resp.getData(); } catch (ApiException ex) @@ -15141,7 +15589,7 @@ public File getPageConvertToEmf(String name, Integer pageNumber, Integer width, if (ex.getCode() == 401) { apiClient.requestToken(); - ApiResponse resp = getPageConvertToEmfWithHttpInfo(name, pageNumber, width, height, folder, storage); + ApiResponse resp = getPageConvertToBmpWithHttpInfo(name, pageNumber, width, height, folder, storage); return resp.getData(); } throw ex; @@ -15149,7 +15597,7 @@ public File getPageConvertToEmf(String name, Integer pageNumber, Integer width, } /** - * Convert document page to Emf image and return resulting file in response. + * Convert document page to Bmp image and return resulting file in response. * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -15160,14 +15608,14 @@ public File getPageConvertToEmf(String name, Integer pageNumber, Integer width, * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageConvertToEmfWithHttpInfo(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { - com.squareup.okhttp.Call call = getPageConvertToEmfValidateBeforeCall(name, pageNumber, width, height, folder, storage, null, null); + public ApiResponse getPageConvertToBmpWithHttpInfo(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = getPageConvertToBmpValidateBeforeCall(name, pageNumber, width, height, folder, storage, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Convert document page to Emf image and return resulting file in response. (asynchronously) + * Convert document page to Bmp image and return resulting file in response. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -15179,7 +15627,7 @@ public ApiResponse getPageConvertToEmfWithHttpInfo(String name, Integer pa * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageConvertToEmfAsync(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageConvertToBmpAsync(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -15200,13 +15648,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageConvertToEmfValidateBeforeCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageConvertToBmpValidateBeforeCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageConvertToGif + * Build call for getPageConvertToEmf * @param name The document name. (required) * @param pageNumber The page number. (required) * @param width The converted image width. (optional, default to 0) @@ -15218,11 +15666,181 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageConvertToGifCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageConvertToEmfCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/convert/gif" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/convert/emf" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) + .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapePathSegmentString(pageNumber.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (width != null) + localVarQueryParams.addAll(apiClient.parameterToPair("width", width)); + if (height != null) + localVarQueryParams.addAll(apiClient.parameterToPair("height", height)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); + if (storage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "multipart/form-data" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getPageConvertToEmfValidateBeforeCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling getPageConvertToEmf(Async)"); + } + + // verify the required parameter 'pageNumber' is set + if (pageNumber == null) { + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageConvertToEmf(Async)"); + } + + + com.squareup.okhttp.Call call = getPageConvertToEmfCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); + return call; + + } + + /** + * Convert document page to Emf image and return resulting file in response. + * + * @param name The document name. (required) + * @param pageNumber The page number. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) + * @param folder The document folder. (optional) + * @param storage The document storage. (optional) + * @return File + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public File getPageConvertToEmf(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { + try + { + ApiResponse resp = getPageConvertToEmfWithHttpInfo(name, pageNumber, width, height, folder, storage); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.requestToken(); + ApiResponse resp = getPageConvertToEmfWithHttpInfo(name, pageNumber, width, height, folder, storage); + return resp.getData(); + } + throw ex; + } + } + + /** + * Convert document page to Emf image and return resulting file in response. + * + * @param name The document name. (required) + * @param pageNumber The page number. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) + * @param folder The document folder. (optional) + * @param storage The document storage. (optional) + * @return ApiResponse<File> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getPageConvertToEmfWithHttpInfo(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage) throws ApiException { + com.squareup.okhttp.Call call = getPageConvertToEmfValidateBeforeCall(name, pageNumber, width, height, folder, storage, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Convert document page to Emf image and return resulting file in response. (asynchronously) + * + * @param name The document name. (required) + * @param pageNumber The page number. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) + * @param folder The document folder. (optional) + * @param storage The document storage. (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getPageConvertToEmfAsync(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getPageConvertToEmfValidateBeforeCall(name, pageNumber, width, height, folder, storage, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getPageConvertToGif + * @param name The document name. (required) + * @param pageNumber The page number. (required) + * @param width The converted image width. (optional, default to 0) + * @param height The converted image height. (optional, default to 0) + * @param folder The document folder. (optional) + * @param storage The document storage. (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getPageConvertToGifCall(String name, Integer pageNumber, Integer width, Integer height, String folder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/pdf/{name}/pages/{pageNumber}/convert/gif" .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapePathSegmentString(pageNumber.toString())); @@ -17643,7 +18261,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don return call; } /** - * Build call for getPageRedactionAnnotations + * Build call for getPageRadioButtonFields * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) @@ -17653,11 +18271,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageRedactionAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageRadioButtonFieldsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/redaction" + String localVarPath = "/pdf/{name}/page/{pageNumber}/fields/radiobutton" .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapePathSegmentString(pageNumber.toString())); @@ -17701,38 +18319,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageRedactionAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageRadioButtonFieldsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageRedactionAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageRadioButtonFields(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageRedactionAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageRadioButtonFields(Async)"); } - com.squareup.okhttp.Call call = getPageRedactionAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageRadioButtonFieldsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page redaction annotations. + * Read document page radiobutton fields. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return RedactionAnnotationsResponse + * @return RadioButtonFieldsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public RedactionAnnotationsResponse getPageRedactionAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public RadioButtonFieldsResponse getPageRadioButtonFields(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageRedactionAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageRadioButtonFieldsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -17740,7 +18358,7 @@ public RedactionAnnotationsResponse getPageRedactionAnnotations(String name, Int if (ex.getCode() == 401) { apiClient.requestToken(); - ApiResponse resp = getPageRedactionAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageRadioButtonFieldsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -17748,23 +18366,23 @@ public RedactionAnnotationsResponse getPageRedactionAnnotations(String name, Int } /** - * Read document page redaction annotations. + * Read document page radiobutton fields. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<RedactionAnnotationsResponse> + * @return ApiResponse<RadioButtonFieldsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageRedactionAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageRedactionAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPageRadioButtonFieldsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageRadioButtonFieldsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page redaction annotations. (asynchronously) + * Read document page radiobutton fields. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -17774,7 +18392,7 @@ public ApiResponse getPageRedactionAnnotationsWith * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageRedactionAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageRadioButtonFieldsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -17795,13 +18413,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageRedactionAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPageRadioButtonFieldsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageScreenAnnotations + * Build call for getPageRedactionAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) @@ -17811,11 +18429,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageScreenAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageRedactionAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/screen" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/redaction" .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapePathSegmentString(pageNumber.toString())); @@ -17859,38 +18477,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageScreenAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageRedactionAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageScreenAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageRedactionAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageScreenAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageRedactionAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPageScreenAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageRedactionAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page screen annotations. + * Read document page redaction annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ScreenAnnotationsResponse + * @return RedactionAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ScreenAnnotationsResponse getPageScreenAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public RedactionAnnotationsResponse getPageRedactionAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageScreenAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageRedactionAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -17898,7 +18516,7 @@ public ScreenAnnotationsResponse getPageScreenAnnotations(String name, Integer p if (ex.getCode() == 401) { apiClient.requestToken(); - ApiResponse resp = getPageScreenAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageRedactionAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -17906,23 +18524,23 @@ public ScreenAnnotationsResponse getPageScreenAnnotations(String name, Integer p } /** - * Read document page screen annotations. + * Read document page redaction annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<ScreenAnnotationsResponse> + * @return ApiResponse<RedactionAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageScreenAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageScreenAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPageRedactionAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageRedactionAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page screen annotations. (asynchronously) + * Read document page redaction annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -17932,7 +18550,7 @@ public ApiResponse getPageScreenAnnotationsWithHttpIn * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageScreenAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageRedactionAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -17953,13 +18571,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageScreenAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPageRedactionAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageSignatureFields + * Build call for getPageScreenAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) @@ -17969,11 +18587,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageSignatureFieldsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageScreenAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/page/{pageNumber}/fields/signature" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/screen" .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapePathSegmentString(pageNumber.toString())); @@ -18017,38 +18635,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageSignatureFieldsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageScreenAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageSignatureFields(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageScreenAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageSignatureFields(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageScreenAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPageSignatureFieldsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageScreenAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page signature fields. + * Read document page screen annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return SignatureFieldsResponse + * @return ScreenAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public SignatureFieldsResponse getPageSignatureFields(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public ScreenAnnotationsResponse getPageScreenAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageSignatureFieldsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageScreenAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -18056,7 +18674,7 @@ public SignatureFieldsResponse getPageSignatureFields(String name, Integer pageN if (ex.getCode() == 401) { apiClient.requestToken(); - ApiResponse resp = getPageSignatureFieldsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageScreenAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -18064,23 +18682,23 @@ public SignatureFieldsResponse getPageSignatureFields(String name, Integer pageN } /** - * Read document page signature fields. + * Read document page screen annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<SignatureFieldsResponse> + * @return ApiResponse<ScreenAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageSignatureFieldsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageSignatureFieldsValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPageScreenAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageScreenAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page signature fields. (asynchronously) + * Read document page screen annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -18090,7 +18708,7 @@ public ApiResponse getPageSignatureFieldsWithHttpInfo(S * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageSignatureFieldsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageScreenAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -18111,13 +18729,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageSignatureFieldsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPageScreenAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageSoundAnnotations + * Build call for getPageSignatureFields * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) @@ -18127,11 +18745,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageSoundAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageSignatureFieldsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/sound" + String localVarPath = "/pdf/{name}/page/{pageNumber}/fields/signature" .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapePathSegmentString(pageNumber.toString())); @@ -18175,38 +18793,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageSoundAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageSignatureFieldsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageSoundAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageSignatureFields(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageSoundAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageSignatureFields(Async)"); } - com.squareup.okhttp.Call call = getPageSoundAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageSignatureFieldsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page sound annotations. + * Read document page signature fields. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return SoundAnnotationsResponse + * @return SignatureFieldsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public SoundAnnotationsResponse getPageSoundAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public SignatureFieldsResponse getPageSignatureFields(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageSoundAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageSignatureFieldsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -18214,7 +18832,7 @@ public SoundAnnotationsResponse getPageSoundAnnotations(String name, Integer pag if (ex.getCode() == 401) { apiClient.requestToken(); - ApiResponse resp = getPageSoundAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageSignatureFieldsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -18222,23 +18840,23 @@ public SoundAnnotationsResponse getPageSoundAnnotations(String name, Integer pag } /** - * Read document page sound annotations. + * Read document page signature fields. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<SoundAnnotationsResponse> + * @return ApiResponse<SignatureFieldsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageSoundAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageSoundAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPageSignatureFieldsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageSignatureFieldsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page sound annotations. (asynchronously) + * Read document page signature fields. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -18248,7 +18866,7 @@ public ApiResponse getPageSoundAnnotationsWithHttpInfo * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageSoundAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageSignatureFieldsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -18269,13 +18887,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageSoundAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPageSignatureFieldsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageSquareAnnotations + * Build call for getPageSoundAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) @@ -18285,11 +18903,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageSquareAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageSoundAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/square" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/sound" .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapePathSegmentString(pageNumber.toString())); @@ -18333,38 +18951,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageSquareAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageSoundAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageSquareAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageSoundAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageSquareAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageSoundAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPageSquareAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageSoundAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page square annotations. + * Read document page sound annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return SquareAnnotationsResponse + * @return SoundAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public SquareAnnotationsResponse getPageSquareAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public SoundAnnotationsResponse getPageSoundAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageSquareAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageSoundAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -18372,7 +18990,7 @@ public SquareAnnotationsResponse getPageSquareAnnotations(String name, Integer p if (ex.getCode() == 401) { apiClient.requestToken(); - ApiResponse resp = getPageSquareAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageSoundAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -18380,23 +18998,23 @@ public SquareAnnotationsResponse getPageSquareAnnotations(String name, Integer p } /** - * Read document page square annotations. + * Read document page sound annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<SquareAnnotationsResponse> + * @return ApiResponse<SoundAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageSquareAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageSquareAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPageSoundAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageSoundAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page square annotations. (asynchronously) + * Read document page sound annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -18406,7 +19024,7 @@ public ApiResponse getPageSquareAnnotationsWithHttpIn * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageSquareAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageSoundAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -18427,13 +19045,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageSquareAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPageSoundAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageSquigglyAnnotations + * Build call for getPageSquareAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) @@ -18443,11 +19061,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageSquigglyAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageSquareAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/squiggly" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/square" .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapePathSegmentString(pageNumber.toString())); @@ -18491,38 +19109,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageSquigglyAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageSquareAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageSquigglyAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageSquareAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageSquigglyAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageSquareAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPageSquigglyAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageSquareAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page squiggly annotations. + * Read document page square annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return SquigglyAnnotationsResponse + * @return SquareAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public SquigglyAnnotationsResponse getPageSquigglyAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public SquareAnnotationsResponse getPageSquareAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageSquigglyAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageSquareAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -18530,7 +19148,7 @@ public SquigglyAnnotationsResponse getPageSquigglyAnnotations(String name, Integ if (ex.getCode() == 401) { apiClient.requestToken(); - ApiResponse resp = getPageSquigglyAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageSquareAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -18538,23 +19156,23 @@ public SquigglyAnnotationsResponse getPageSquigglyAnnotations(String name, Integ } /** - * Read document page squiggly annotations. + * Read document page square annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<SquigglyAnnotationsResponse> + * @return ApiResponse<SquareAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageSquigglyAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageSquigglyAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPageSquareAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageSquareAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page squiggly annotations. (asynchronously) + * Read document page square annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -18564,7 +19182,7 @@ public ApiResponse getPageSquigglyAnnotationsWithHt * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageSquigglyAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageSquareAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -18585,13 +19203,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageSquigglyAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPageSquareAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageStampAnnotations + * Build call for getPageSquigglyAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) @@ -18601,11 +19219,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageStampAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageSquigglyAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/stamp" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/squiggly" .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapePathSegmentString(pageNumber.toString())); @@ -18649,38 +19267,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageStampAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageSquigglyAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageStampAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageSquigglyAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageStampAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageSquigglyAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPageStampAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageSquigglyAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page stamp annotations. + * Read document page squiggly annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return StampAnnotationsResponse + * @return SquigglyAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public StampAnnotationsResponse getPageStampAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public SquigglyAnnotationsResponse getPageSquigglyAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageStampAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageSquigglyAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -18688,7 +19306,7 @@ public StampAnnotationsResponse getPageStampAnnotations(String name, Integer pag if (ex.getCode() == 401) { apiClient.requestToken(); - ApiResponse resp = getPageStampAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageSquigglyAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -18696,23 +19314,23 @@ public StampAnnotationsResponse getPageStampAnnotations(String name, Integer pag } /** - * Read document page stamp annotations. + * Read document page squiggly annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<StampAnnotationsResponse> + * @return ApiResponse<SquigglyAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageStampAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageStampAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPageSquigglyAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageSquigglyAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page stamp annotations. (asynchronously) + * Read document page squiggly annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -18722,7 +19340,7 @@ public ApiResponse getPageStampAnnotationsWithHttpInfo * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageStampAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageSquigglyAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -18743,13 +19361,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageStampAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPageSquigglyAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageStamps + * Build call for getPageStampAnnotations * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) @@ -18759,11 +19377,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageStampsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageStampAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/stamps" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/stamp" .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapePathSegmentString(pageNumber.toString())); @@ -18807,38 +19425,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageStampsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageStampAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageStamps(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageStampAnnotations(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageStamps(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageStampAnnotations(Async)"); } - com.squareup.okhttp.Call call = getPageStampsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageStampAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read page document stamps. + * Read document page stamp annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return StampsInfoResponse + * @return StampAnnotationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public StampsInfoResponse getPageStamps(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public StampAnnotationsResponse getPageStampAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageStampsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageStampAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -18846,7 +19464,7 @@ public StampsInfoResponse getPageStamps(String name, Integer pageNumber, String if (ex.getCode() == 401) { apiClient.requestToken(); - ApiResponse resp = getPageStampsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageStampAnnotationsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -18854,23 +19472,23 @@ public StampsInfoResponse getPageStamps(String name, Integer pageNumber, String } /** - * Read page document stamps. + * Read document page stamp annotations. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<StampsInfoResponse> + * @return ApiResponse<StampAnnotationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageStampsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageStampsValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPageStampAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageStampAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read page document stamps. (asynchronously) + * Read document page stamp annotations. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -18880,7 +19498,7 @@ public ApiResponse getPageStampsWithHttpInfo(String name, In * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageStampsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageStampAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -18901,13 +19519,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageStampsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPageStampAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageStrikeOutAnnotations + * Build call for getPageStamps * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) @@ -18917,11 +19535,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageStrikeOutAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageStampsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/strikeout" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/stamps" .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapePathSegmentString(pageNumber.toString())); @@ -18965,38 +19583,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPageStrikeOutAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getPageStampsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getPageStrikeOutAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getPageStamps(Async)"); } // verify the required parameter 'pageNumber' is set if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageStrikeOutAnnotations(Async)"); + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageStamps(Async)"); } - com.squareup.okhttp.Call call = getPageStrikeOutAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getPageStampsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page StrikeOut annotations. + * Read page document stamps. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return StrikeOutAnnotationsResponse + * @return StampsInfoResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public StrikeOutAnnotationsResponse getPageStrikeOutAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + public StampsInfoResponse getPageStamps(String name, Integer pageNumber, String storage, String folder) throws ApiException { try { - ApiResponse resp = getPageStrikeOutAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageStampsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -19004,7 +19622,7 @@ public StrikeOutAnnotationsResponse getPageStrikeOutAnnotations(String name, Int if (ex.getCode() == 401) { apiClient.requestToken(); - ApiResponse resp = getPageStrikeOutAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + ApiResponse resp = getPageStampsWithHttpInfo(name, pageNumber, storage, folder); return resp.getData(); } throw ex; @@ -19012,23 +19630,23 @@ public StrikeOutAnnotationsResponse getPageStrikeOutAnnotations(String name, Int } /** - * Read document page StrikeOut annotations. + * Read page document stamps. * * @param name The document name. (required) * @param pageNumber The page number. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<StrikeOutAnnotationsResponse> + * @return ApiResponse<StampsInfoResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPageStrikeOutAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getPageStrikeOutAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getPageStampsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageStampsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page StrikeOut annotations. (asynchronously) + * Read page document stamps. (asynchronously) * * @param name The document name. (required) * @param pageNumber The page number. (required) @@ -19038,7 +19656,7 @@ public ApiResponse getPageStrikeOutAnnotationsWith * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPageStrikeOutAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getPageStampsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -19059,27 +19677,185 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPageStrikeOutAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getPageStampsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPageTables - * @param name (required) - * @param pageNumber (required) - * @param storage (optional) - * @param folder (optional) + * Build call for getPageStrikeOutAnnotations + * @param name The document name. (required) + * @param pageNumber The page number. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPageTablesCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getPageStrikeOutAnnotationsCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/tables" + String localVarPath = "/pdf/{name}/pages/{pageNumber}/annotations/strikeout" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) + .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapePathSegmentString(pageNumber.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (storage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getPageStrikeOutAnnotationsValidateBeforeCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling getPageStrikeOutAnnotations(Async)"); + } + + // verify the required parameter 'pageNumber' is set + if (pageNumber == null) { + throw new ApiException("Missing the required parameter 'pageNumber' when calling getPageStrikeOutAnnotations(Async)"); + } + + + com.squareup.okhttp.Call call = getPageStrikeOutAnnotationsCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + return call; + + } + + /** + * Read document page StrikeOut annotations. + * + * @param name The document name. (required) + * @param pageNumber The page number. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return StrikeOutAnnotationsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public StrikeOutAnnotationsResponse getPageStrikeOutAnnotations(String name, Integer pageNumber, String storage, String folder) throws ApiException { + try + { + ApiResponse resp = getPageStrikeOutAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.requestToken(); + ApiResponse resp = getPageStrikeOutAnnotationsWithHttpInfo(name, pageNumber, storage, folder); + return resp.getData(); + } + throw ex; + } + } + + /** + * Read document page StrikeOut annotations. + * + * @param name The document name. (required) + * @param pageNumber The page number. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return ApiResponse<StrikeOutAnnotationsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getPageStrikeOutAnnotationsWithHttpInfo(String name, Integer pageNumber, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getPageStrikeOutAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Read document page StrikeOut annotations. (asynchronously) + * + * @param name The document name. (required) + * @param pageNumber The page number. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getPageStrikeOutAnnotationsAsync(String name, Integer pageNumber, String storage, String folder, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getPageStrikeOutAnnotationsValidateBeforeCall(name, pageNumber, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getPageTables + * @param name (required) + * @param pageNumber (required) + * @param storage (optional) + * @param folder (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getPageTablesCall(String name, Integer pageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/pdf/{name}/pages/{pageNumber}/tables" .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapePathSegmentString(pageNumber.toString())); @@ -23144,9 +23920,9 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don return call; } /** - * Build call for getRedactionAnnotation + * Build call for getRadioButtonField * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * @param fieldName The field name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -23154,13 +23930,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getRedactionAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getRadioButtonFieldCall(String name, String fieldName, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/annotations/redaction/{annotationId}" + String localVarPath = "/pdf/{name}/fields/radiobutton/{fieldName}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) - .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapePathSegmentString(annotationId.toString())); + .replaceAll("\\{" + "fieldName" + "\\}", apiClient.escapePathSegmentString(fieldName.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -23202,38 +23978,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getRedactionAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getRadioButtonFieldValidateBeforeCall(String name, String fieldName, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getRedactionAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getRadioButtonField(Async)"); } - // verify the required parameter 'annotationId' is set - if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling getRedactionAnnotation(Async)"); + // verify the required parameter 'fieldName' is set + if (fieldName == null) { + throw new ApiException("Missing the required parameter 'fieldName' when calling getRadioButtonField(Async)"); } - com.squareup.okhttp.Call call = getRedactionAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getRadioButtonFieldCall(name, fieldName, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page redaction annotation by ID. + * Read document RadioButton field by name. * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * @param fieldName The field name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return RedactionAnnotationResponse + * @return RadioButtonFieldResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public RedactionAnnotationResponse getRedactionAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { + public RadioButtonFieldResponse getRadioButtonField(String name, String fieldName, String storage, String folder) throws ApiException { try { - ApiResponse resp = getRedactionAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getRadioButtonFieldWithHttpInfo(name, fieldName, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -23241,7 +24017,7 @@ public RedactionAnnotationResponse getRedactionAnnotation(String name, String an if (ex.getCode() == 401) { apiClient.requestToken(); - ApiResponse resp = getRedactionAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getRadioButtonFieldWithHttpInfo(name, fieldName, storage, folder); return resp.getData(); } throw ex; @@ -23249,33 +24025,33 @@ public RedactionAnnotationResponse getRedactionAnnotation(String name, String an } /** - * Read document page redaction annotation by ID. + * Read document RadioButton field by name. * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * @param fieldName The field name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<RedactionAnnotationResponse> + * @return ApiResponse<RadioButtonFieldResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getRedactionAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getRedactionAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getRadioButtonFieldWithHttpInfo(String name, String fieldName, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getRadioButtonFieldValidateBeforeCall(name, fieldName, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page redaction annotation by ID. (asynchronously) + * Read document RadioButton field by name. (asynchronously) * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * @param fieldName The field name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getRedactionAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getRadioButtonFieldAsync(String name, String fieldName, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -23296,13 +24072,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getRedactionAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getRadioButtonFieldValidateBeforeCall(name, fieldName, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getScreenAnnotation + * Build call for getRedactionAnnotation * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) @@ -23312,11 +24088,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getScreenAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getRedactionAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/annotations/screen/{annotationId}" + String localVarPath = "/pdf/{name}/annotations/redaction/{annotationId}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapePathSegmentString(annotationId.toString())); @@ -23360,38 +24136,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getScreenAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getRedactionAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getScreenAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getRedactionAnnotation(Async)"); } // verify the required parameter 'annotationId' is set if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling getScreenAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'annotationId' when calling getRedactionAnnotation(Async)"); } - com.squareup.okhttp.Call call = getScreenAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getRedactionAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page screen annotation by ID. + * Read document page redaction annotation by ID. * * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ScreenAnnotationResponse + * @return RedactionAnnotationResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ScreenAnnotationResponse getScreenAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { + public RedactionAnnotationResponse getRedactionAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getScreenAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getRedactionAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -23399,7 +24175,7 @@ public ScreenAnnotationResponse getScreenAnnotation(String name, String annotati if (ex.getCode() == 401) { apiClient.requestToken(); - ApiResponse resp = getScreenAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getRedactionAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -23407,23 +24183,23 @@ public ScreenAnnotationResponse getScreenAnnotation(String name, String annotati } /** - * Read document page screen annotation by ID. + * Read document page redaction annotation by ID. * * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<ScreenAnnotationResponse> + * @return ApiResponse<RedactionAnnotationResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getScreenAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getScreenAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getRedactionAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getRedactionAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page screen annotation by ID. (asynchronously) + * Read document page redaction annotation by ID. (asynchronously) * * @param name The document name. (required) * @param annotationId The annotation ID. (required) @@ -23433,7 +24209,7 @@ public ApiResponse getScreenAnnotationWithHttpInfo(Str * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getScreenAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getRedactionAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -23454,13 +24230,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getScreenAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getRedactionAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getScreenAnnotationData + * Build call for getScreenAnnotation * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) @@ -23470,11 +24246,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getScreenAnnotationDataCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getScreenAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/annotations/screen/{annotationId}/data" + String localVarPath = "/pdf/{name}/annotations/screen/{annotationId}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapePathSegmentString(annotationId.toString())); @@ -23490,7 +24266,7 @@ public com.squareup.okhttp.Call getScreenAnnotationDataCall(String name, String Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "multipart/form-data" + "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -23518,20 +24294,20 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getScreenAnnotationDataValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getScreenAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getScreenAnnotationData(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getScreenAnnotation(Async)"); } // verify the required parameter 'annotationId' is set if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling getScreenAnnotationData(Async)"); + throw new ApiException("Missing the required parameter 'annotationId' when calling getScreenAnnotation(Async)"); } - com.squareup.okhttp.Call call = getScreenAnnotationDataCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getScreenAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } @@ -23543,13 +24319,13 @@ private com.squareup.okhttp.Call getScreenAnnotationDataValidateBeforeCall(Strin * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return File + * @return ScreenAnnotationResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getScreenAnnotationData(String name, String annotationId, String storage, String folder) throws ApiException { + public ScreenAnnotationResponse getScreenAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getScreenAnnotationDataWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getScreenAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -23557,7 +24333,7 @@ public File getScreenAnnotationData(String name, String annotationId, String sto if (ex.getCode() == 401) { apiClient.requestToken(); - ApiResponse resp = getScreenAnnotationDataWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getScreenAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -23571,12 +24347,12 @@ public File getScreenAnnotationData(String name, String annotationId, String sto * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<File> + * @return ApiResponse<ScreenAnnotationResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getScreenAnnotationDataWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getScreenAnnotationDataValidateBeforeCall(name, annotationId, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getScreenAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getScreenAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -23591,7 +24367,7 @@ public ApiResponse getScreenAnnotationDataWithHttpInfo(String name, String * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getScreenAnnotationDataAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getScreenAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -23612,15 +24388,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getScreenAnnotationDataValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getScreenAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getSignatureField + * Build call for getScreenAnnotationData * @param name The document name. (required) - * @param fieldName The field name. (required) + * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -23628,13 +24404,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getSignatureFieldCall(String name, String fieldName, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getScreenAnnotationDataCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/fields/signature/{fieldName}" + String localVarPath = "/pdf/{name}/annotations/screen/{annotationId}/data" .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) - .replaceAll("\\{" + "fieldName" + "\\}", apiClient.escapePathSegmentString(fieldName.toString())); + .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapePathSegmentString(annotationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -23648,7 +24424,7 @@ public com.squareup.okhttp.Call getSignatureFieldCall(String name, String fieldN Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "multipart/form-data" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -23676,38 +24452,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getSignatureFieldValidateBeforeCall(String name, String fieldName, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getScreenAnnotationDataValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getSignatureField(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getScreenAnnotationData(Async)"); } - // verify the required parameter 'fieldName' is set - if (fieldName == null) { - throw new ApiException("Missing the required parameter 'fieldName' when calling getSignatureField(Async)"); + // verify the required parameter 'annotationId' is set + if (annotationId == null) { + throw new ApiException("Missing the required parameter 'annotationId' when calling getScreenAnnotationData(Async)"); } - com.squareup.okhttp.Call call = getSignatureFieldCall(name, fieldName, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getScreenAnnotationDataCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document signature field by name. + * Read document page screen annotation by ID. * * @param name The document name. (required) - * @param fieldName The field name. (required) + * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return SignatureFieldResponse + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public SignatureFieldResponse getSignatureField(String name, String fieldName, String storage, String folder) throws ApiException { + public File getScreenAnnotationData(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getSignatureFieldWithHttpInfo(name, fieldName, storage, folder); + ApiResponse resp = getScreenAnnotationDataWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -23715,7 +24491,7 @@ public SignatureFieldResponse getSignatureField(String name, String fieldName, S if (ex.getCode() == 401) { apiClient.requestToken(); - ApiResponse resp = getSignatureFieldWithHttpInfo(name, fieldName, storage, folder); + ApiResponse resp = getScreenAnnotationDataWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -23723,33 +24499,33 @@ public SignatureFieldResponse getSignatureField(String name, String fieldName, S } /** - * Read document signature field by name. + * Read document page screen annotation by ID. * * @param name The document name. (required) - * @param fieldName The field name. (required) + * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<SignatureFieldResponse> + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getSignatureFieldWithHttpInfo(String name, String fieldName, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getSignatureFieldValidateBeforeCall(name, fieldName, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getScreenAnnotationDataWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getScreenAnnotationDataValidateBeforeCall(name, annotationId, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document signature field by name. (asynchronously) + * Read document page screen annotation by ID. (asynchronously) * * @param name The document name. (required) - * @param fieldName The field name. (required) + * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getSignatureFieldAsync(String name, String fieldName, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getScreenAnnotationDataAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -23770,15 +24546,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getSignatureFieldValidateBeforeCall(name, fieldName, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getScreenAnnotationDataValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getSoundAnnotation + * Build call for getSignatureField * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * @param fieldName The field name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -23786,13 +24562,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getSoundAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getSignatureFieldCall(String name, String fieldName, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/annotations/sound/{annotationId}" + String localVarPath = "/pdf/{name}/fields/signature/{fieldName}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) - .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapePathSegmentString(annotationId.toString())); + .replaceAll("\\{" + "fieldName" + "\\}", apiClient.escapePathSegmentString(fieldName.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -23834,38 +24610,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getSoundAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getSignatureFieldValidateBeforeCall(String name, String fieldName, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getSoundAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getSignatureField(Async)"); } - // verify the required parameter 'annotationId' is set - if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling getSoundAnnotation(Async)"); + // verify the required parameter 'fieldName' is set + if (fieldName == null) { + throw new ApiException("Missing the required parameter 'fieldName' when calling getSignatureField(Async)"); } - com.squareup.okhttp.Call call = getSoundAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getSignatureFieldCall(name, fieldName, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page sound annotation by ID. + * Read document signature field by name. * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * @param fieldName The field name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return SoundAnnotationResponse + * @return SignatureFieldResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public SoundAnnotationResponse getSoundAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { + public SignatureFieldResponse getSignatureField(String name, String fieldName, String storage, String folder) throws ApiException { try { - ApiResponse resp = getSoundAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getSignatureFieldWithHttpInfo(name, fieldName, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -23873,7 +24649,7 @@ public SoundAnnotationResponse getSoundAnnotation(String name, String annotation if (ex.getCode() == 401) { apiClient.requestToken(); - ApiResponse resp = getSoundAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getSignatureFieldWithHttpInfo(name, fieldName, storage, folder); return resp.getData(); } throw ex; @@ -23881,33 +24657,33 @@ public SoundAnnotationResponse getSoundAnnotation(String name, String annotation } /** - * Read document page sound annotation by ID. + * Read document signature field by name. * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * @param fieldName The field name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<SoundAnnotationResponse> + * @return ApiResponse<SignatureFieldResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getSoundAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getSoundAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getSignatureFieldWithHttpInfo(String name, String fieldName, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getSignatureFieldValidateBeforeCall(name, fieldName, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page sound annotation by ID. (asynchronously) + * Read document signature field by name. (asynchronously) * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) + * @param fieldName The field name. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getSoundAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getSignatureFieldAsync(String name, String fieldName, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -23928,13 +24704,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getSoundAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getSignatureFieldValidateBeforeCall(name, fieldName, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getSoundAnnotationData + * Build call for getSoundAnnotation * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) @@ -23944,11 +24720,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getSoundAnnotationDataCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getSoundAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/annotations/sound/{annotationId}/data" + String localVarPath = "/pdf/{name}/annotations/sound/{annotationId}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapePathSegmentString(annotationId.toString())); @@ -23964,7 +24740,7 @@ public com.squareup.okhttp.Call getSoundAnnotationDataCall(String name, String a Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "multipart/form-data" + "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -23992,20 +24768,20 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getSoundAnnotationDataValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getSoundAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getSoundAnnotationData(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getSoundAnnotation(Async)"); } // verify the required parameter 'annotationId' is set if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling getSoundAnnotationData(Async)"); + throw new ApiException("Missing the required parameter 'annotationId' when calling getSoundAnnotation(Async)"); } - com.squareup.okhttp.Call call = getSoundAnnotationDataCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getSoundAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } @@ -24017,13 +24793,13 @@ private com.squareup.okhttp.Call getSoundAnnotationDataValidateBeforeCall(String * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return File + * @return SoundAnnotationResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public File getSoundAnnotationData(String name, String annotationId, String storage, String folder) throws ApiException { + public SoundAnnotationResponse getSoundAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getSoundAnnotationDataWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getSoundAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -24031,7 +24807,7 @@ public File getSoundAnnotationData(String name, String annotationId, String stor if (ex.getCode() == 401) { apiClient.requestToken(); - ApiResponse resp = getSoundAnnotationDataWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getSoundAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -24045,12 +24821,12 @@ public File getSoundAnnotationData(String name, String annotationId, String stor * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<File> + * @return ApiResponse<SoundAnnotationResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getSoundAnnotationDataWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getSoundAnnotationDataValidateBeforeCall(name, annotationId, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getSoundAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getSoundAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -24065,7 +24841,7 @@ public ApiResponse getSoundAnnotationDataWithHttpInfo(String name, String * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getSoundAnnotationDataAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getSoundAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -24086,13 +24862,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getSoundAnnotationDataValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getSoundAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getSquareAnnotation + * Build call for getSoundAnnotationData * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) @@ -24102,11 +24878,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getSquareAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getSoundAnnotationDataCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/annotations/square/{annotationId}" + String localVarPath = "/pdf/{name}/annotations/sound/{annotationId}/data" .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapePathSegmentString(annotationId.toString())); @@ -24122,7 +24898,7 @@ public com.squareup.okhttp.Call getSquareAnnotationCall(String name, String anno Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "multipart/form-data" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -24150,38 +24926,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getSquareAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getSoundAnnotationDataValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getSquareAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getSoundAnnotationData(Async)"); } // verify the required parameter 'annotationId' is set if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling getSquareAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'annotationId' when calling getSoundAnnotationData(Async)"); } - com.squareup.okhttp.Call call = getSquareAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getSoundAnnotationDataCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page square annotation by ID. + * Read document page sound annotation by ID. * * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return SquareAnnotationResponse + * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public SquareAnnotationResponse getSquareAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { + public File getSoundAnnotationData(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getSquareAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getSoundAnnotationDataWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -24189,7 +24965,7 @@ public SquareAnnotationResponse getSquareAnnotation(String name, String annotati if (ex.getCode() == 401) { apiClient.requestToken(); - ApiResponse resp = getSquareAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getSoundAnnotationDataWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -24197,23 +24973,23 @@ public SquareAnnotationResponse getSquareAnnotation(String name, String annotati } /** - * Read document page square annotation by ID. + * Read document page sound annotation by ID. * * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<SquareAnnotationResponse> + * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getSquareAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getSquareAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getSoundAnnotationDataWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getSoundAnnotationDataValidateBeforeCall(name, annotationId, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page square annotation by ID. (asynchronously) + * Read document page sound annotation by ID. (asynchronously) * * @param name The document name. (required) * @param annotationId The annotation ID. (required) @@ -24223,7 +24999,7 @@ public ApiResponse getSquareAnnotationWithHttpInfo(Str * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getSquareAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getSoundAnnotationDataAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -24244,13 +25020,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getSquareAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getSoundAnnotationDataValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getSquigglyAnnotation + * Build call for getSquareAnnotation * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) @@ -24260,11 +25036,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getSquigglyAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getSquareAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/annotations/squiggly/{annotationId}" + String localVarPath = "/pdf/{name}/annotations/square/{annotationId}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapePathSegmentString(annotationId.toString())); @@ -24308,38 +25084,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getSquigglyAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getSquareAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getSquigglyAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getSquareAnnotation(Async)"); } // verify the required parameter 'annotationId' is set if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling getSquigglyAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'annotationId' when calling getSquareAnnotation(Async)"); } - com.squareup.okhttp.Call call = getSquigglyAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getSquareAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page squiggly annotation by ID. + * Read document page square annotation by ID. * * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return SquigglyAnnotationResponse + * @return SquareAnnotationResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public SquigglyAnnotationResponse getSquigglyAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { + public SquareAnnotationResponse getSquareAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getSquigglyAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getSquareAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -24347,7 +25123,7 @@ public SquigglyAnnotationResponse getSquigglyAnnotation(String name, String anno if (ex.getCode() == 401) { apiClient.requestToken(); - ApiResponse resp = getSquigglyAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getSquareAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -24355,23 +25131,23 @@ public SquigglyAnnotationResponse getSquigglyAnnotation(String name, String anno } /** - * Read document page squiggly annotation by ID. + * Read document page square annotation by ID. * * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<SquigglyAnnotationResponse> + * @return ApiResponse<SquareAnnotationResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getSquigglyAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getSquigglyAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getSquareAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getSquareAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page squiggly annotation by ID. (asynchronously) + * Read document page square annotation by ID. (asynchronously) * * @param name The document name. (required) * @param annotationId The annotation ID. (required) @@ -24381,7 +25157,7 @@ public ApiResponse getSquigglyAnnotationWithHttpInfo * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getSquigglyAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getSquareAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -24402,13 +25178,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getSquigglyAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getSquareAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getStampAnnotation + * Build call for getSquigglyAnnotation * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) @@ -24418,11 +25194,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getStampAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getSquigglyAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/annotations/stamp/{annotationId}" + String localVarPath = "/pdf/{name}/annotations/squiggly/{annotationId}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapePathSegmentString(annotationId.toString())); @@ -24466,38 +25242,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getStampAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getSquigglyAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling getStampAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getSquigglyAnnotation(Async)"); } // verify the required parameter 'annotationId' is set if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling getStampAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'annotationId' when calling getSquigglyAnnotation(Async)"); } - com.squareup.okhttp.Call call = getStampAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getSquigglyAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); return call; } /** - * Read document page stamp annotation by ID. + * Read document page squiggly annotation by ID. * * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return StampAnnotationResponse + * @return SquigglyAnnotationResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public StampAnnotationResponse getStampAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { + public SquigglyAnnotationResponse getSquigglyAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { try { - ApiResponse resp = getStampAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getSquigglyAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -24505,7 +25281,7 @@ public StampAnnotationResponse getStampAnnotation(String name, String annotation if (ex.getCode() == 401) { apiClient.requestToken(); - ApiResponse resp = getStampAnnotationWithHttpInfo(name, annotationId, storage, folder); + ApiResponse resp = getSquigglyAnnotationWithHttpInfo(name, annotationId, storage, folder); return resp.getData(); } throw ex; @@ -24513,23 +25289,23 @@ public StampAnnotationResponse getStampAnnotation(String name, String annotation } /** - * Read document page stamp annotation by ID. + * Read document page squiggly annotation by ID. * * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<StampAnnotationResponse> + * @return ApiResponse<SquigglyAnnotationResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getStampAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = getStampAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getSquigglyAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getSquigglyAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Read document page stamp annotation by ID. (asynchronously) + * Read document page squiggly annotation by ID. (asynchronously) * * @param name The document name. (required) * @param annotationId The annotation ID. (required) @@ -24539,7 +25315,7 @@ public ApiResponse getStampAnnotationWithHttpInfo(Strin * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getStampAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getSquigglyAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -24560,13 +25336,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getStampAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getSquigglyAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getStampAnnotationData + * Build call for getStampAnnotation * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param storage The document storage. (optional) @@ -24576,11 +25352,169 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getStampAnnotationDataCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getStampAnnotationCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/annotations/stamp/{annotationId}/data" + String localVarPath = "/pdf/{name}/annotations/stamp/{annotationId}" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) + .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapePathSegmentString(annotationId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (storage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getStampAnnotationValidateBeforeCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling getStampAnnotation(Async)"); + } + + // verify the required parameter 'annotationId' is set + if (annotationId == null) { + throw new ApiException("Missing the required parameter 'annotationId' when calling getStampAnnotation(Async)"); + } + + + com.squareup.okhttp.Call call = getStampAnnotationCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + return call; + + } + + /** + * Read document page stamp annotation by ID. + * + * @param name The document name. (required) + * @param annotationId The annotation ID. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return StampAnnotationResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public StampAnnotationResponse getStampAnnotation(String name, String annotationId, String storage, String folder) throws ApiException { + try + { + ApiResponse resp = getStampAnnotationWithHttpInfo(name, annotationId, storage, folder); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.requestToken(); + ApiResponse resp = getStampAnnotationWithHttpInfo(name, annotationId, storage, folder); + return resp.getData(); + } + throw ex; + } + } + + /** + * Read document page stamp annotation by ID. + * + * @param name The document name. (required) + * @param annotationId The annotation ID. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return ApiResponse<StampAnnotationResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getStampAnnotationWithHttpInfo(String name, String annotationId, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = getStampAnnotationValidateBeforeCall(name, annotationId, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Read document page stamp annotation by ID. (asynchronously) + * + * @param name The document name. (required) + * @param annotationId The annotation ID. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getStampAnnotationAsync(String name, String annotationId, String storage, String folder, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getStampAnnotationValidateBeforeCall(name, annotationId, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getStampAnnotationData + * @param name The document name. (required) + * @param annotationId The annotation ID. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getStampAnnotationDataCall(String name, String annotationId, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/pdf/{name}/annotations/stamp/{annotationId}/data" .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapePathSegmentString(annotationId.toString())); @@ -27971,10 +28905,9 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don return call; } /** - * Build call for postCreateField + * Build call for postCheckBoxFields * @param name The document name. (required) - * @param page Document page number. (required) - * @param field Field with the field data. (required) + * @param fields The array of field. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -27982,17 +28915,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call postCreateFieldCall(String name, Integer page, Field field, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = field; + public com.squareup.okhttp.Call postCheckBoxFieldsCall(String name, List fields, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = fields; // create path and map variables - String localVarPath = "/pdf/{name}/fields" + String localVarPath = "/pdf/{name}/fields/checkbox" .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (page != null) - localVarQueryParams.addAll(apiClient.parameterToPair("page", page)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) @@ -28031,44 +28962,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postCreateFieldValidateBeforeCall(String name, Integer page, Field field, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postCheckBoxFieldsValidateBeforeCall(String name, List fields, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling postCreateField(Async)"); - } - - // verify the required parameter 'page' is set - if (page == null) { - throw new ApiException("Missing the required parameter 'page' when calling postCreateField(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postCheckBoxFields(Async)"); } - // verify the required parameter 'field' is set - if (field == null) { - throw new ApiException("Missing the required parameter 'field' when calling postCreateField(Async)"); + // verify the required parameter 'fields' is set + if (fields == null) { + throw new ApiException("Missing the required parameter 'fields' when calling postCheckBoxFields(Async)"); } - com.squareup.okhttp.Call call = postCreateFieldCall(name, page, field, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postCheckBoxFieldsCall(name, fields, storage, folder, progressListener, progressRequestListener); return call; } /** - * Create field. + * Add document checkbox fields. * * @param name The document name. (required) - * @param page Document page number. (required) - * @param field Field with the field data. (required) + * @param fields The array of field. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse postCreateField(String name, Integer page, Field field, String storage, String folder) throws ApiException { + public AsposeResponse postCheckBoxFields(String name, List fields, String storage, String folder) throws ApiException { try { - ApiResponse resp = postCreateFieldWithHttpInfo(name, page, field, storage, folder); + ApiResponse resp = postCheckBoxFieldsWithHttpInfo(name, fields, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -28076,7 +29001,7 @@ public AsposeResponse postCreateField(String name, Integer page, Field field, St if (ex.getCode() == 401) { apiClient.requestToken(); - ApiResponse resp = postCreateFieldWithHttpInfo(name, page, field, storage, folder); + ApiResponse resp = postCheckBoxFieldsWithHttpInfo(name, fields, storage, folder); return resp.getData(); } throw ex; @@ -28084,35 +29009,33 @@ public AsposeResponse postCreateField(String name, Integer page, Field field, St } /** - * Create field. + * Add document checkbox fields. * * @param name The document name. (required) - * @param page Document page number. (required) - * @param field Field with the field data. (required) + * @param fields The array of field. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse postCreateFieldWithHttpInfo(String name, Integer page, Field field, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postCreateFieldValidateBeforeCall(name, page, field, storage, folder, null, null); + public ApiResponse postCheckBoxFieldsWithHttpInfo(String name, List fields, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postCheckBoxFieldsValidateBeforeCall(name, fields, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Create field. (asynchronously) + * Add document checkbox fields. (asynchronously) * * @param name The document name. (required) - * @param page Document page number. (required) - * @param field Field with the field data. (required) + * @param fields The array of field. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call postCreateFieldAsync(String name, Integer page, Field field, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postCheckBoxFieldsAsync(String name, List fields, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -28133,15 +29056,16 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postCreateFieldValidateBeforeCall(name, page, field, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postCheckBoxFieldsValidateBeforeCall(name, fields, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postDecryptDocumentInStorage - * @param name Document name. (required) - * @param password The password (encrypted Base64). (required) + * Build call for postCreateField + * @param name The document name. (required) + * @param page Document page number. (required) + * @param field Field with the field data. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -28149,17 +29073,17 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call postDecryptDocumentInStorageCall(String name, String password, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; + public com.squareup.okhttp.Call postCreateFieldCall(String name, Integer page, Field field, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = field; // create path and map variables - String localVarPath = "/pdf/{name}/decrypt" + String localVarPath = "/pdf/{name}/fields" .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (password != null) - localVarQueryParams.addAll(apiClient.parameterToPair("password", password)); + if (page != null) + localVarQueryParams.addAll(apiClient.parameterToPair("page", page)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) @@ -28198,38 +29122,44 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postDecryptDocumentInStorageValidateBeforeCall(String name, String password, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postCreateFieldValidateBeforeCall(String name, Integer page, Field field, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling postDecryptDocumentInStorage(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postCreateField(Async)"); } - // verify the required parameter 'password' is set - if (password == null) { - throw new ApiException("Missing the required parameter 'password' when calling postDecryptDocumentInStorage(Async)"); + // verify the required parameter 'page' is set + if (page == null) { + throw new ApiException("Missing the required parameter 'page' when calling postCreateField(Async)"); + } + + // verify the required parameter 'field' is set + if (field == null) { + throw new ApiException("Missing the required parameter 'field' when calling postCreateField(Async)"); } - com.squareup.okhttp.Call call = postDecryptDocumentInStorageCall(name, password, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postCreateFieldCall(name, page, field, storage, folder, progressListener, progressRequestListener); return call; } /** - * Decrypt document in storage. + * Create field. * - * @param name Document name. (required) - * @param password The password (encrypted Base64). (required) + * @param name The document name. (required) + * @param page Document page number. (required) + * @param field Field with the field data. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse postDecryptDocumentInStorage(String name, String password, String storage, String folder) throws ApiException { + public AsposeResponse postCreateField(String name, Integer page, Field field, String storage, String folder) throws ApiException { try { - ApiResponse resp = postDecryptDocumentInStorageWithHttpInfo(name, password, storage, folder); + ApiResponse resp = postCreateFieldWithHttpInfo(name, page, field, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -28237,7 +29167,7 @@ public AsposeResponse postDecryptDocumentInStorage(String name, String password, if (ex.getCode() == 401) { apiClient.requestToken(); - ApiResponse resp = postDecryptDocumentInStorageWithHttpInfo(name, password, storage, folder); + ApiResponse resp = postCreateFieldWithHttpInfo(name, page, field, storage, folder); return resp.getData(); } throw ex; @@ -28245,33 +29175,35 @@ public AsposeResponse postDecryptDocumentInStorage(String name, String password, } /** - * Decrypt document in storage. + * Create field. * - * @param name Document name. (required) - * @param password The password (encrypted Base64). (required) + * @param name The document name. (required) + * @param page Document page number. (required) + * @param field Field with the field data. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse postDecryptDocumentInStorageWithHttpInfo(String name, String password, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postDecryptDocumentInStorageValidateBeforeCall(name, password, storage, folder, null, null); + public ApiResponse postCreateFieldWithHttpInfo(String name, Integer page, Field field, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postCreateFieldValidateBeforeCall(name, page, field, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Decrypt document in storage. (asynchronously) + * Create field. (asynchronously) * - * @param name Document name. (required) - * @param password The password (encrypted Base64). (required) + * @param name The document name. (required) + * @param page Document page number. (required) + * @param field Field with the field data. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call postDecryptDocumentInStorageAsync(String name, String password, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postCreateFieldAsync(String name, Integer page, Field field, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -28292,17 +29224,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postDecryptDocumentInStorageValidateBeforeCall(name, password, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postCreateFieldValidateBeforeCall(name, page, field, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postDocumentImageFooter - * @param name The document name. (required) - * @param imageFooter The image footer. (required) - * @param startPageNumber The start page number. (optional) - * @param endPageNumber The end page number. (optional) + * Build call for postDecryptDocumentInStorage + * @param name Document name. (required) + * @param password The password (encrypted Base64). (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -28310,19 +29240,180 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call postDocumentImageFooterCall(String name, ImageFooter imageFooter, Integer startPageNumber, Integer endPageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = imageFooter; + public com.squareup.okhttp.Call postDecryptDocumentInStorageCall(String name, String password, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/footer/image" + String localVarPath = "/pdf/{name}/decrypt" .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (startPageNumber != null) - localVarQueryParams.addAll(apiClient.parameterToPair("startPageNumber", startPageNumber)); - if (endPageNumber != null) - localVarQueryParams.addAll(apiClient.parameterToPair("endPageNumber", endPageNumber)); + if (password != null) + localVarQueryParams.addAll(apiClient.parameterToPair("password", password)); + if (storage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call postDecryptDocumentInStorageValidateBeforeCall(String name, String password, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling postDecryptDocumentInStorage(Async)"); + } + + // verify the required parameter 'password' is set + if (password == null) { + throw new ApiException("Missing the required parameter 'password' when calling postDecryptDocumentInStorage(Async)"); + } + + + com.squareup.okhttp.Call call = postDecryptDocumentInStorageCall(name, password, storage, folder, progressListener, progressRequestListener); + return call; + + } + + /** + * Decrypt document in storage. + * + * @param name Document name. (required) + * @param password The password (encrypted Base64). (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return AsposeResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public AsposeResponse postDecryptDocumentInStorage(String name, String password, String storage, String folder) throws ApiException { + try + { + ApiResponse resp = postDecryptDocumentInStorageWithHttpInfo(name, password, storage, folder); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.requestToken(); + ApiResponse resp = postDecryptDocumentInStorageWithHttpInfo(name, password, storage, folder); + return resp.getData(); + } + throw ex; + } + } + + /** + * Decrypt document in storage. + * + * @param name Document name. (required) + * @param password The password (encrypted Base64). (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return ApiResponse<AsposeResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse postDecryptDocumentInStorageWithHttpInfo(String name, String password, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postDecryptDocumentInStorageValidateBeforeCall(name, password, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Decrypt document in storage. (asynchronously) + * + * @param name Document name. (required) + * @param password The password (encrypted Base64). (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call postDecryptDocumentInStorageAsync(String name, String password, String storage, String folder, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = postDecryptDocumentInStorageValidateBeforeCall(name, password, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for postDocumentImageFooter + * @param name The document name. (required) + * @param imageFooter The image footer. (required) + * @param startPageNumber The start page number. (optional) + * @param endPageNumber The end page number. (optional) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call postDocumentImageFooterCall(String name, ImageFooter imageFooter, Integer startPageNumber, Integer endPageNumber, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = imageFooter; + + // create path and map variables + String localVarPath = "/pdf/{name}/footer/image" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (startPageNumber != null) + localVarQueryParams.addAll(apiClient.parameterToPair("startPageNumber", startPageNumber)); + if (endPageNumber != null) + localVarQueryParams.addAll(apiClient.parameterToPair("endPageNumber", endPageNumber)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) @@ -35173,9 +36264,9 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don return call; } /** - * Build call for postSignDocument + * Build call for postRadioButtonFields * @param name The document name. (required) - * @param sign Signature object containing signature data. (required) + * @param fields The array of field. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -35183,11 +36274,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call postSignDocumentCall(String name, Signature sign, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = sign; + public com.squareup.okhttp.Call postRadioButtonFieldsCall(String name, List fields, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = fields; // create path and map variables - String localVarPath = "/pdf/{name}/sign" + String localVarPath = "/pdf/{name}/fields/radiobutton" .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -35230,38 +36321,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postSignDocumentValidateBeforeCall(String name, Signature sign, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postRadioButtonFieldsValidateBeforeCall(String name, List fields, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling postSignDocument(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postRadioButtonFields(Async)"); } - // verify the required parameter 'sign' is set - if (sign == null) { - throw new ApiException("Missing the required parameter 'sign' when calling postSignDocument(Async)"); + // verify the required parameter 'fields' is set + if (fields == null) { + throw new ApiException("Missing the required parameter 'fields' when calling postRadioButtonFields(Async)"); } - com.squareup.okhttp.Call call = postSignDocumentCall(name, sign, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postRadioButtonFieldsCall(name, fields, storage, folder, progressListener, progressRequestListener); return call; } /** - * Sign document. + * Add document RadioButton fields. * * @param name The document name. (required) - * @param sign Signature object containing signature data. (required) + * @param fields The array of field. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse postSignDocument(String name, Signature sign, String storage, String folder) throws ApiException { + public AsposeResponse postRadioButtonFields(String name, List fields, String storage, String folder) throws ApiException { try { - ApiResponse resp = postSignDocumentWithHttpInfo(name, sign, storage, folder); + ApiResponse resp = postRadioButtonFieldsWithHttpInfo(name, fields, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -35269,7 +36360,7 @@ public AsposeResponse postSignDocument(String name, Signature sign, String stora if (ex.getCode() == 401) { apiClient.requestToken(); - ApiResponse resp = postSignDocumentWithHttpInfo(name, sign, storage, folder); + ApiResponse resp = postRadioButtonFieldsWithHttpInfo(name, fields, storage, folder); return resp.getData(); } throw ex; @@ -35277,33 +36368,33 @@ public AsposeResponse postSignDocument(String name, Signature sign, String stora } /** - * Sign document. + * Add document RadioButton fields. * * @param name The document name. (required) - * @param sign Signature object containing signature data. (required) + * @param fields The array of field. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse postSignDocumentWithHttpInfo(String name, Signature sign, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postSignDocumentValidateBeforeCall(name, sign, storage, folder, null, null); + public ApiResponse postRadioButtonFieldsWithHttpInfo(String name, List fields, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postRadioButtonFieldsValidateBeforeCall(name, fields, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Sign document. (asynchronously) + * Add document RadioButton fields. (asynchronously) * * @param name The document name. (required) - * @param sign Signature object containing signature data. (required) + * @param fields The array of field. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call postSignDocumentAsync(String name, Signature sign, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postRadioButtonFieldsAsync(String name, List fields, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -35324,15 +36415,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postSignDocumentValidateBeforeCall(name, sign, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postRadioButtonFieldsValidateBeforeCall(name, fields, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postSignPage + * Build call for postSignDocument * @param name The document name. (required) - * @param pageNumber The page number. (required) * @param sign Signature object containing signature data. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) @@ -35341,13 +36431,12 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call postSignPageCall(String name, Integer pageNumber, Signature sign, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call postSignDocumentCall(String name, Signature sign, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = sign; // create path and map variables - String localVarPath = "/pdf/{name}/pages/{pageNumber}/sign" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) - .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapePathSegmentString(pageNumber.toString())); + String localVarPath = "/pdf/{name}/sign" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -35389,44 +36478,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call postSignPageValidateBeforeCall(String name, Integer pageNumber, Signature sign, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call postSignDocumentValidateBeforeCall(String name, Signature sign, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling postSignPage(Async)"); - } - - // verify the required parameter 'pageNumber' is set - if (pageNumber == null) { - throw new ApiException("Missing the required parameter 'pageNumber' when calling postSignPage(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling postSignDocument(Async)"); } // verify the required parameter 'sign' is set if (sign == null) { - throw new ApiException("Missing the required parameter 'sign' when calling postSignPage(Async)"); + throw new ApiException("Missing the required parameter 'sign' when calling postSignDocument(Async)"); } - com.squareup.okhttp.Call call = postSignPageCall(name, pageNumber, sign, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postSignDocumentCall(name, sign, storage, folder, progressListener, progressRequestListener); return call; } /** - * Sign page. + * Sign document. * * @param name The document name. (required) - * @param pageNumber The page number. (required) * @param sign Signature object containing signature data. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse postSignPage(String name, Integer pageNumber, Signature sign, String storage, String folder) throws ApiException { + public AsposeResponse postSignDocument(String name, Signature sign, String storage, String folder) throws ApiException { try { - ApiResponse resp = postSignPageWithHttpInfo(name, pageNumber, sign, storage, folder); + ApiResponse resp = postSignDocumentWithHttpInfo(name, sign, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -35434,7 +36517,7 @@ public AsposeResponse postSignPage(String name, Integer pageNumber, Signature si if (ex.getCode() == 401) { apiClient.requestToken(); - ApiResponse resp = postSignPageWithHttpInfo(name, pageNumber, sign, storage, folder); + ApiResponse resp = postSignDocumentWithHttpInfo(name, sign, storage, folder); return resp.getData(); } throw ex; @@ -35442,27 +36525,25 @@ public AsposeResponse postSignPage(String name, Integer pageNumber, Signature si } /** - * Sign page. + * Sign document. * * @param name The document name. (required) - * @param pageNumber The page number. (required) * @param sign Signature object containing signature data. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse postSignPageWithHttpInfo(String name, Integer pageNumber, Signature sign, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = postSignPageValidateBeforeCall(name, pageNumber, sign, storage, folder, null, null); + public ApiResponse postSignDocumentWithHttpInfo(String name, Signature sign, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postSignDocumentValidateBeforeCall(name, sign, storage, folder, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Sign page. (asynchronously) + * Sign document. (asynchronously) * * @param name The document name. (required) - * @param pageNumber The page number. (required) * @param sign Signature object containing signature data. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) @@ -35470,7 +36551,7 @@ public ApiResponse postSignPageWithHttpInfo(String name, Integer * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call postSignPageAsync(String name, Integer pageNumber, Signature sign, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call postSignDocumentAsync(String name, Signature sign, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -35491,17 +36572,16 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = postSignPageValidateBeforeCall(name, pageNumber, sign, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = postSignDocumentValidateBeforeCall(name, sign, storage, folder, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for postSplitDocument - * @param name Document name. (required) - * @param format Resulting documents format. (optional) - * @param from Start page if defined. (optional) - * @param to End page if defined. (optional) + * Build call for postSignPage + * @param name The document name. (required) + * @param pageNumber The page number. (required) + * @param sign Signature object containing signature data. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -35509,21 +36589,189 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call postSplitDocumentCall(String name, String format, Integer from, Integer to, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; + public com.squareup.okhttp.Call postSignPageCall(String name, Integer pageNumber, Signature sign, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = sign; // create path and map variables - String localVarPath = "/pdf/{name}/split" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())); + String localVarPath = "/pdf/{name}/pages/{pageNumber}/sign" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) + .replaceAll("\\{" + "pageNumber" + "\\}", apiClient.escapePathSegmentString(pageNumber.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (format != null) - localVarQueryParams.addAll(apiClient.parameterToPair("format", format)); - if (from != null) - localVarQueryParams.addAll(apiClient.parameterToPair("from", from)); - if (to != null) - localVarQueryParams.addAll(apiClient.parameterToPair("to", to)); + if (storage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call postSignPageValidateBeforeCall(String name, Integer pageNumber, Signature sign, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling postSignPage(Async)"); + } + + // verify the required parameter 'pageNumber' is set + if (pageNumber == null) { + throw new ApiException("Missing the required parameter 'pageNumber' when calling postSignPage(Async)"); + } + + // verify the required parameter 'sign' is set + if (sign == null) { + throw new ApiException("Missing the required parameter 'sign' when calling postSignPage(Async)"); + } + + + com.squareup.okhttp.Call call = postSignPageCall(name, pageNumber, sign, storage, folder, progressListener, progressRequestListener); + return call; + + } + + /** + * Sign page. + * + * @param name The document name. (required) + * @param pageNumber The page number. (required) + * @param sign Signature object containing signature data. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return AsposeResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public AsposeResponse postSignPage(String name, Integer pageNumber, Signature sign, String storage, String folder) throws ApiException { + try + { + ApiResponse resp = postSignPageWithHttpInfo(name, pageNumber, sign, storage, folder); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.requestToken(); + ApiResponse resp = postSignPageWithHttpInfo(name, pageNumber, sign, storage, folder); + return resp.getData(); + } + throw ex; + } + } + + /** + * Sign page. + * + * @param name The document name. (required) + * @param pageNumber The page number. (required) + * @param sign Signature object containing signature data. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return ApiResponse<AsposeResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse postSignPageWithHttpInfo(String name, Integer pageNumber, Signature sign, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = postSignPageValidateBeforeCall(name, pageNumber, sign, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Sign page. (asynchronously) + * + * @param name The document name. (required) + * @param pageNumber The page number. (required) + * @param sign Signature object containing signature data. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call postSignPageAsync(String name, Integer pageNumber, Signature sign, String storage, String folder, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = postSignPageValidateBeforeCall(name, pageNumber, sign, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for postSplitDocument + * @param name Document name. (required) + * @param format Resulting documents format. (optional) + * @param from Start page if defined. (optional) + * @param to End page if defined. (optional) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call postSplitDocumentCall(String name, String format, Integer from, Integer to, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/pdf/{name}/split" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (format != null) + localVarQueryParams.addAll(apiClient.parameterToPair("format", format)); + if (from != null) + localVarQueryParams.addAll(apiClient.parameterToPair("from", from)); + if (to != null) + localVarQueryParams.addAll(apiClient.parameterToPair("to", to)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); if (folder != null) @@ -36814,6 +38062,173 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don apiClient.executeAsync(call, localVarReturnType, callback); return call; } + /** + * Build call for putCheckBoxField + * @param name The document name. (required) + * @param fieldName The field name. (required) + * @param field The field. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call putCheckBoxFieldCall(String name, String fieldName, CheckBoxField field, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = field; + + // create path and map variables + String localVarPath = "/pdf/{name}/fields/checkbox/{fieldName}" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) + .replaceAll("\\{" + "fieldName" + "\\}", apiClient.escapePathSegmentString(fieldName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (storage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call putCheckBoxFieldValidateBeforeCall(String name, String fieldName, CheckBoxField field, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling putCheckBoxField(Async)"); + } + + // verify the required parameter 'fieldName' is set + if (fieldName == null) { + throw new ApiException("Missing the required parameter 'fieldName' when calling putCheckBoxField(Async)"); + } + + // verify the required parameter 'field' is set + if (field == null) { + throw new ApiException("Missing the required parameter 'field' when calling putCheckBoxField(Async)"); + } + + + com.squareup.okhttp.Call call = putCheckBoxFieldCall(name, fieldName, field, storage, folder, progressListener, progressRequestListener); + return call; + + } + + /** + * Replace document checkbox field + * + * @param name The document name. (required) + * @param fieldName The field name. (required) + * @param field The field. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return CheckBoxFieldResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public CheckBoxFieldResponse putCheckBoxField(String name, String fieldName, CheckBoxField field, String storage, String folder) throws ApiException { + try + { + ApiResponse resp = putCheckBoxFieldWithHttpInfo(name, fieldName, field, storage, folder); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.requestToken(); + ApiResponse resp = putCheckBoxFieldWithHttpInfo(name, fieldName, field, storage, folder); + return resp.getData(); + } + throw ex; + } + } + + /** + * Replace document checkbox field + * + * @param name The document name. (required) + * @param fieldName The field name. (required) + * @param field The field. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return ApiResponse<CheckBoxFieldResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse putCheckBoxFieldWithHttpInfo(String name, String fieldName, CheckBoxField field, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = putCheckBoxFieldValidateBeforeCall(name, fieldName, field, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Replace document checkbox field (asynchronously) + * + * @param name The document name. (required) + * @param fieldName The field name. (required) + * @param field The field. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call putCheckBoxFieldAsync(String name, String fieldName, CheckBoxField field, String storage, String folder, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = putCheckBoxFieldValidateBeforeCall(name, fieldName, field, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } /** * Build call for putCircleAnnotation * @param name The document name. (required) @@ -48707,44 +50122,211 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putPolyLineAnnotationValidateBeforeCall(String name, String annotationId, PolyLineAnnotation annotation, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putPolyLineAnnotationValidateBeforeCall(String name, String annotationId, PolyLineAnnotation annotation, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling putPolyLineAnnotation(Async)"); + } + + // verify the required parameter 'annotationId' is set + if (annotationId == null) { + throw new ApiException("Missing the required parameter 'annotationId' when calling putPolyLineAnnotation(Async)"); + } + + // verify the required parameter 'annotation' is set + if (annotation == null) { + throw new ApiException("Missing the required parameter 'annotation' when calling putPolyLineAnnotation(Async)"); + } + + + com.squareup.okhttp.Call call = putPolyLineAnnotationCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); + return call; + + } + + /** + * Replace document polyline annotation + * + * @param name The document name. (required) + * @param annotationId The annotation ID. (required) + * @param annotation Annotation. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return PolyLineAnnotationResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public PolyLineAnnotationResponse putPolyLineAnnotation(String name, String annotationId, PolyLineAnnotation annotation, String storage, String folder) throws ApiException { + try + { + ApiResponse resp = putPolyLineAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); + return resp.getData(); + } + catch (ApiException ex) + { + if (ex.getCode() == 401) + { + apiClient.requestToken(); + ApiResponse resp = putPolyLineAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); + return resp.getData(); + } + throw ex; + } + } + + /** + * Replace document polyline annotation + * + * @param name The document name. (required) + * @param annotationId The annotation ID. (required) + * @param annotation Annotation. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @return ApiResponse<PolyLineAnnotationResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse putPolyLineAnnotationWithHttpInfo(String name, String annotationId, PolyLineAnnotation annotation, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = putPolyLineAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Replace document polyline annotation (asynchronously) + * + * @param name The document name. (required) + * @param annotationId The annotation ID. (required) + * @param annotation Annotation. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call putPolyLineAnnotationAsync(String name, String annotationId, PolyLineAnnotation annotation, String storage, String folder, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = putPolyLineAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for putPolygonAnnotation + * @param name The document name. (required) + * @param annotationId The annotation ID. (required) + * @param annotation Annotation. (required) + * @param storage The document storage. (optional) + * @param folder The document folder. (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call putPolygonAnnotationCall(String name, String annotationId, PolygonAnnotation annotation, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = annotation; + + // create path and map variables + String localVarPath = "/pdf/{name}/annotations/polygon/{annotationId}" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) + .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapePathSegmentString(annotationId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (storage != null) + localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "JWT" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call putPolygonAnnotationValidateBeforeCall(String name, String annotationId, PolygonAnnotation annotation, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling putPolyLineAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling putPolygonAnnotation(Async)"); } // verify the required parameter 'annotationId' is set if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling putPolyLineAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'annotationId' when calling putPolygonAnnotation(Async)"); } // verify the required parameter 'annotation' is set if (annotation == null) { - throw new ApiException("Missing the required parameter 'annotation' when calling putPolyLineAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'annotation' when calling putPolygonAnnotation(Async)"); } - com.squareup.okhttp.Call call = putPolyLineAnnotationCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putPolygonAnnotationCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); return call; } /** - * Replace document polyline annotation + * Replace document polygon annotation * * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param annotation Annotation. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return PolyLineAnnotationResponse + * @return PolygonAnnotationResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public PolyLineAnnotationResponse putPolyLineAnnotation(String name, String annotationId, PolyLineAnnotation annotation, String storage, String folder) throws ApiException { + public PolygonAnnotationResponse putPolygonAnnotation(String name, String annotationId, PolygonAnnotation annotation, String storage, String folder) throws ApiException { try { - ApiResponse resp = putPolyLineAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); + ApiResponse resp = putPolygonAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -48752,7 +50334,7 @@ public PolyLineAnnotationResponse putPolyLineAnnotation(String name, String anno if (ex.getCode() == 401) { apiClient.requestToken(); - ApiResponse resp = putPolyLineAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); + ApiResponse resp = putPolygonAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); return resp.getData(); } throw ex; @@ -48760,24 +50342,24 @@ public PolyLineAnnotationResponse putPolyLineAnnotation(String name, String anno } /** - * Replace document polyline annotation + * Replace document polygon annotation * * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param annotation Annotation. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<PolyLineAnnotationResponse> + * @return ApiResponse<PolygonAnnotationResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse putPolyLineAnnotationWithHttpInfo(String name, String annotationId, PolyLineAnnotation annotation, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = putPolyLineAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse putPolygonAnnotationWithHttpInfo(String name, String annotationId, PolygonAnnotation annotation, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = putPolygonAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Replace document polyline annotation (asynchronously) + * Replace document polygon annotation (asynchronously) * * @param name The document name. (required) * @param annotationId The annotation ID. (required) @@ -48788,7 +50370,7 @@ public ApiResponse putPolyLineAnnotationWithHttpInfo * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call putPolyLineAnnotationAsync(String name, String annotationId, PolyLineAnnotation annotation, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putPolygonAnnotationAsync(String name, String annotationId, PolygonAnnotation annotation, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -48809,13 +50391,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putPolyLineAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = putPolygonAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putPolygonAnnotation + * Build call for putPopupAnnotation * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param annotation Annotation. (required) @@ -48826,11 +50408,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call putPolygonAnnotationCall(String name, String annotationId, PolygonAnnotation annotation, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call putPopupAnnotationCall(String name, String annotationId, PopupAnnotation annotation, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = annotation; // create path and map variables - String localVarPath = "/pdf/{name}/annotations/polygon/{annotationId}" + String localVarPath = "/pdf/{name}/annotations/popup/{annotationId}" .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapePathSegmentString(annotationId.toString())); @@ -48874,44 +50456,44 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putPolygonAnnotationValidateBeforeCall(String name, String annotationId, PolygonAnnotation annotation, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putPopupAnnotationValidateBeforeCall(String name, String annotationId, PopupAnnotation annotation, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling putPolygonAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling putPopupAnnotation(Async)"); } // verify the required parameter 'annotationId' is set if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling putPolygonAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'annotationId' when calling putPopupAnnotation(Async)"); } // verify the required parameter 'annotation' is set if (annotation == null) { - throw new ApiException("Missing the required parameter 'annotation' when calling putPolygonAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'annotation' when calling putPopupAnnotation(Async)"); } - com.squareup.okhttp.Call call = putPolygonAnnotationCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putPopupAnnotationCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); return call; } /** - * Replace document polygon annotation + * Replace document popup annotation * * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param annotation Annotation. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return PolygonAnnotationResponse + * @return PopupAnnotationResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public PolygonAnnotationResponse putPolygonAnnotation(String name, String annotationId, PolygonAnnotation annotation, String storage, String folder) throws ApiException { + public PopupAnnotationResponse putPopupAnnotation(String name, String annotationId, PopupAnnotation annotation, String storage, String folder) throws ApiException { try { - ApiResponse resp = putPolygonAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); + ApiResponse resp = putPopupAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -48919,7 +50501,7 @@ public PolygonAnnotationResponse putPolygonAnnotation(String name, String annota if (ex.getCode() == 401) { apiClient.requestToken(); - ApiResponse resp = putPolygonAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); + ApiResponse resp = putPopupAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); return resp.getData(); } throw ex; @@ -48927,24 +50509,24 @@ public PolygonAnnotationResponse putPolygonAnnotation(String name, String annota } /** - * Replace document polygon annotation + * Replace document popup annotation * * @param name The document name. (required) * @param annotationId The annotation ID. (required) * @param annotation Annotation. (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<PolygonAnnotationResponse> + * @return ApiResponse<PopupAnnotationResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse putPolygonAnnotationWithHttpInfo(String name, String annotationId, PolygonAnnotation annotation, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = putPolygonAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse putPopupAnnotationWithHttpInfo(String name, String annotationId, PopupAnnotation annotation, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = putPopupAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Replace document polygon annotation (asynchronously) + * Replace document popup annotation (asynchronously) * * @param name The document name. (required) * @param annotationId The annotation ID. (required) @@ -48955,7 +50537,7 @@ public ApiResponse putPolygonAnnotationWithHttpInfo(S * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call putPolygonAnnotationAsync(String name, String annotationId, PolygonAnnotation annotation, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putPopupAnnotationAsync(String name, String annotationId, PopupAnnotation annotation, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -48976,16 +50558,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putPolygonAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = putPopupAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putPopupAnnotation + * Build call for putPrivileges * @param name The document name. (required) - * @param annotationId The annotation ID. (required) - * @param annotation Annotation. (required) + * @param privileges Document privileges. DocumentPrivilege (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param progressListener Progress listener @@ -48993,13 +50574,12 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call putPopupAnnotationCall(String name, String annotationId, PopupAnnotation annotation, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = annotation; + public com.squareup.okhttp.Call putPrivilegesCall(String name, DocumentPrivilege privileges, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = privileges; // create path and map variables - String localVarPath = "/pdf/{name}/annotations/popup/{annotationId}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) - .replaceAll("\\{" + "annotationId" + "\\}", apiClient.escapePathSegmentString(annotationId.toString())); + String localVarPath = "/pdf/{name}/privileges" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -49041,44 +50621,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putPopupAnnotationValidateBeforeCall(String name, String annotationId, PopupAnnotation annotation, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putPrivilegesValidateBeforeCall(String name, DocumentPrivilege privileges, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling putPopupAnnotation(Async)"); - } - - // verify the required parameter 'annotationId' is set - if (annotationId == null) { - throw new ApiException("Missing the required parameter 'annotationId' when calling putPopupAnnotation(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling putPrivileges(Async)"); } - // verify the required parameter 'annotation' is set - if (annotation == null) { - throw new ApiException("Missing the required parameter 'annotation' when calling putPopupAnnotation(Async)"); + // verify the required parameter 'privileges' is set + if (privileges == null) { + throw new ApiException("Missing the required parameter 'privileges' when calling putPrivileges(Async)"); } - com.squareup.okhttp.Call call = putPopupAnnotationCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putPrivilegesCall(name, privileges, storage, folder, progressListener, progressRequestListener); return call; } /** - * Replace document popup annotation + * Update privilege document. * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) - * @param annotation Annotation. (required) + * @param privileges Document privileges. DocumentPrivilege (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return PopupAnnotationResponse + * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public PopupAnnotationResponse putPopupAnnotation(String name, String annotationId, PopupAnnotation annotation, String storage, String folder) throws ApiException { + public AsposeResponse putPrivileges(String name, DocumentPrivilege privileges, String storage, String folder) throws ApiException { try { - ApiResponse resp = putPopupAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); + ApiResponse resp = putPrivilegesWithHttpInfo(name, privileges, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -49086,7 +50660,7 @@ public PopupAnnotationResponse putPopupAnnotation(String name, String annotation if (ex.getCode() == 401) { apiClient.requestToken(); - ApiResponse resp = putPopupAnnotationWithHttpInfo(name, annotationId, annotation, storage, folder); + ApiResponse resp = putPrivilegesWithHttpInfo(name, privileges, storage, folder); return resp.getData(); } throw ex; @@ -49094,35 +50668,33 @@ public PopupAnnotationResponse putPopupAnnotation(String name, String annotation } /** - * Replace document popup annotation + * Update privilege document. * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) - * @param annotation Annotation. (required) + * @param privileges Document privileges. DocumentPrivilege (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) - * @return ApiResponse<PopupAnnotationResponse> + * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse putPopupAnnotationWithHttpInfo(String name, String annotationId, PopupAnnotation annotation, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = putPopupAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse putPrivilegesWithHttpInfo(String name, DocumentPrivilege privileges, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = putPrivilegesValidateBeforeCall(name, privileges, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Replace document popup annotation (asynchronously) + * Update privilege document. (asynchronously) * * @param name The document name. (required) - * @param annotationId The annotation ID. (required) - * @param annotation Annotation. (required) + * @param privileges Document privileges. DocumentPrivilege (required) * @param storage The document storage. (optional) * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call putPopupAnnotationAsync(String name, String annotationId, PopupAnnotation annotation, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putPrivilegesAsync(String name, DocumentPrivilege privileges, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -49143,35 +50715,37 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putPopupAnnotationValidateBeforeCall(name, annotationId, annotation, storage, folder, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = putPrivilegesValidateBeforeCall(name, privileges, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putPrivileges + * Build call for putPsInStorageToPdf * @param name The document name. (required) - * @param privileges Document privileges. DocumentPrivilege (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.ps) (required) + * @param dstFolder The destination document folder. (optional) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call putPrivilegesCall(String name, DocumentPrivilege privileges, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = privileges; + public com.squareup.okhttp.Call putPsInStorageToPdfCall(String name, String srcPath, String dstFolder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pdf/{name}/privileges" + String localVarPath = "/pdf/{name}/create/ps" .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + if (srcPath != null) + localVarQueryParams.addAll(apiClient.parameterToPair("srcPath", srcPath)); + if (dstFolder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("dstFolder", dstFolder)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); - if (folder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); @@ -49206,38 +50780,38 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putPrivilegesValidateBeforeCall(String name, DocumentPrivilege privileges, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putPsInStorageToPdfValidateBeforeCall(String name, String srcPath, String dstFolder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling putPrivileges(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling putPsInStorageToPdf(Async)"); } - // verify the required parameter 'privileges' is set - if (privileges == null) { - throw new ApiException("Missing the required parameter 'privileges' when calling putPrivileges(Async)"); + // verify the required parameter 'srcPath' is set + if (srcPath == null) { + throw new ApiException("Missing the required parameter 'srcPath' when calling putPsInStorageToPdf(Async)"); } - com.squareup.okhttp.Call call = putPrivilegesCall(name, privileges, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putPsInStorageToPdfCall(name, srcPath, dstFolder, storage, progressListener, progressRequestListener); return call; } /** - * Update privilege document. + * Convert PS file (located on storage) to PDF format and upload resulting file to storage. * * @param name The document name. (required) - * @param privileges Document privileges. DocumentPrivilege (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.ps) (required) + * @param dstFolder The destination document folder. (optional) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) * @return AsposeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse putPrivileges(String name, DocumentPrivilege privileges, String storage, String folder) throws ApiException { + public AsposeResponse putPsInStorageToPdf(String name, String srcPath, String dstFolder, String storage) throws ApiException { try { - ApiResponse resp = putPrivilegesWithHttpInfo(name, privileges, storage, folder); + ApiResponse resp = putPsInStorageToPdfWithHttpInfo(name, srcPath, dstFolder, storage); return resp.getData(); } catch (ApiException ex) @@ -49245,7 +50819,7 @@ public AsposeResponse putPrivileges(String name, DocumentPrivilege privileges, S if (ex.getCode() == 401) { apiClient.requestToken(); - ApiResponse resp = putPrivilegesWithHttpInfo(name, privileges, storage, folder); + ApiResponse resp = putPsInStorageToPdfWithHttpInfo(name, srcPath, dstFolder, storage); return resp.getData(); } throw ex; @@ -49253,33 +50827,33 @@ public AsposeResponse putPrivileges(String name, DocumentPrivilege privileges, S } /** - * Update privilege document. + * Convert PS file (located on storage) to PDF format and upload resulting file to storage. * * @param name The document name. (required) - * @param privileges Document privileges. DocumentPrivilege (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.ps) (required) + * @param dstFolder The destination document folder. (optional) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) * @return ApiResponse<AsposeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse putPrivilegesWithHttpInfo(String name, DocumentPrivilege privileges, String storage, String folder) throws ApiException { - com.squareup.okhttp.Call call = putPrivilegesValidateBeforeCall(name, privileges, storage, folder, null, null); + public ApiResponse putPsInStorageToPdfWithHttpInfo(String name, String srcPath, String dstFolder, String storage) throws ApiException { + com.squareup.okhttp.Call call = putPsInStorageToPdfValidateBeforeCall(name, srcPath, dstFolder, storage, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Update privilege document. (asynchronously) + * Convert PS file (located on storage) to PDF format and upload resulting file to storage. (asynchronously) * * @param name The document name. (required) - * @param privileges Document privileges. DocumentPrivilege (required) + * @param srcPath Full source filename (ex. /folder1/folder2/template.ps) (required) + * @param dstFolder The destination document folder. (optional) * @param storage The document storage. (optional) - * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call putPrivilegesAsync(String name, DocumentPrivilege privileges, String storage, String folder, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putPsInStorageToPdfAsync(String name, String srcPath, String dstFolder, String storage, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -49300,37 +50874,37 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putPrivilegesValidateBeforeCall(name, privileges, storage, folder, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putPsInStorageToPdfValidateBeforeCall(name, srcPath, dstFolder, storage, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for putPsInStorageToPdf + * Build call for putRadioButtonField * @param name The document name. (required) - * @param srcPath Full source filename (ex. /folder1/folder2/template.ps) (required) - * @param dstFolder The destination document folder. (optional) + * @param fieldName The field name. (required) + * @param field The field. (required) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call putPsInStorageToPdfCall(String name, String srcPath, String dstFolder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; + public com.squareup.okhttp.Call putRadioButtonFieldCall(String name, String fieldName, RadioButtonField field, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = field; // create path and map variables - String localVarPath = "/pdf/{name}/create/ps" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())); + String localVarPath = "/pdf/{name}/fields/radiobutton/{fieldName}" + .replaceAll("\\{" + "name" + "\\}", apiClient.escapePathSegmentString(name.toString())) + .replaceAll("\\{" + "fieldName" + "\\}", apiClient.escapePathSegmentString(fieldName.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (srcPath != null) - localVarQueryParams.addAll(apiClient.parameterToPair("srcPath", srcPath)); - if (dstFolder != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dstFolder", dstFolder)); if (storage != null) localVarQueryParams.addAll(apiClient.parameterToPair("storage", storage)); + if (folder != null) + localVarQueryParams.addAll(apiClient.parameterToPair("folder", folder)); Map localVarHeaderParams = new HashMap(); @@ -49365,38 +50939,44 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call putPsInStorageToPdfValidateBeforeCall(String name, String srcPath, String dstFolder, String storage, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call putRadioButtonFieldValidateBeforeCall(String name, String fieldName, RadioButtonField field, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling putPsInStorageToPdf(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling putRadioButtonField(Async)"); } - // verify the required parameter 'srcPath' is set - if (srcPath == null) { - throw new ApiException("Missing the required parameter 'srcPath' when calling putPsInStorageToPdf(Async)"); + // verify the required parameter 'fieldName' is set + if (fieldName == null) { + throw new ApiException("Missing the required parameter 'fieldName' when calling putRadioButtonField(Async)"); + } + + // verify the required parameter 'field' is set + if (field == null) { + throw new ApiException("Missing the required parameter 'field' when calling putRadioButtonField(Async)"); } - com.squareup.okhttp.Call call = putPsInStorageToPdfCall(name, srcPath, dstFolder, storage, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = putRadioButtonFieldCall(name, fieldName, field, storage, folder, progressListener, progressRequestListener); return call; } /** - * Convert PS file (located on storage) to PDF format and upload resulting file to storage. + * Replace document RadioButton field * * @param name The document name. (required) - * @param srcPath Full source filename (ex. /folder1/folder2/template.ps) (required) - * @param dstFolder The destination document folder. (optional) + * @param fieldName The field name. (required) + * @param field The field. (required) * @param storage The document storage. (optional) - * @return AsposeResponse + * @param folder The document folder. (optional) + * @return RadioButtonFieldResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AsposeResponse putPsInStorageToPdf(String name, String srcPath, String dstFolder, String storage) throws ApiException { + public RadioButtonFieldResponse putRadioButtonField(String name, String fieldName, RadioButtonField field, String storage, String folder) throws ApiException { try { - ApiResponse resp = putPsInStorageToPdfWithHttpInfo(name, srcPath, dstFolder, storage); + ApiResponse resp = putRadioButtonFieldWithHttpInfo(name, fieldName, field, storage, folder); return resp.getData(); } catch (ApiException ex) @@ -49404,7 +50984,7 @@ public AsposeResponse putPsInStorageToPdf(String name, String srcPath, String ds if (ex.getCode() == 401) { apiClient.requestToken(); - ApiResponse resp = putPsInStorageToPdfWithHttpInfo(name, srcPath, dstFolder, storage); + ApiResponse resp = putRadioButtonFieldWithHttpInfo(name, fieldName, field, storage, folder); return resp.getData(); } throw ex; @@ -49412,33 +50992,35 @@ public AsposeResponse putPsInStorageToPdf(String name, String srcPath, String ds } /** - * Convert PS file (located on storage) to PDF format and upload resulting file to storage. + * Replace document RadioButton field * * @param name The document name. (required) - * @param srcPath Full source filename (ex. /folder1/folder2/template.ps) (required) - * @param dstFolder The destination document folder. (optional) + * @param fieldName The field name. (required) + * @param field The field. (required) * @param storage The document storage. (optional) - * @return ApiResponse<AsposeResponse> + * @param folder The document folder. (optional) + * @return ApiResponse<RadioButtonFieldResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse putPsInStorageToPdfWithHttpInfo(String name, String srcPath, String dstFolder, String storage) throws ApiException { - com.squareup.okhttp.Call call = putPsInStorageToPdfValidateBeforeCall(name, srcPath, dstFolder, storage, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse putRadioButtonFieldWithHttpInfo(String name, String fieldName, RadioButtonField field, String storage, String folder) throws ApiException { + com.squareup.okhttp.Call call = putRadioButtonFieldValidateBeforeCall(name, fieldName, field, storage, folder, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Convert PS file (located on storage) to PDF format and upload resulting file to storage. (asynchronously) + * Replace document RadioButton field (asynchronously) * * @param name The document name. (required) - * @param srcPath Full source filename (ex. /folder1/folder2/template.ps) (required) - * @param dstFolder The destination document folder. (optional) + * @param fieldName The field name. (required) + * @param field The field. (required) * @param storage The document storage. (optional) + * @param folder The document folder. (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call putPsInStorageToPdfAsync(String name, String srcPath, String dstFolder, String storage, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call putRadioButtonFieldAsync(String name, String fieldName, RadioButtonField field, String storage, String folder, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -49459,8 +51041,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = putPsInStorageToPdfValidateBeforeCall(name, srcPath, dstFolder, storage, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = putRadioButtonFieldValidateBeforeCall(name, fieldName, field, storage, folder, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } diff --git a/src/main/java/com/aspose/asposecloudpdf/model/BoxStyle.java b/src/main/java/com/aspose/asposecloudpdf/model/BoxStyle.java new file mode 100644 index 0000000..88dc361 --- /dev/null +++ b/src/main/java/com/aspose/asposecloudpdf/model/BoxStyle.java @@ -0,0 +1,90 @@ +/** + * + * Copyright (c) 2019 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ + + +package com.aspose.asposecloudpdf.model; + +import java.util.Objects; +import io.swagger.annotations.ApiModel; +import com.google.gson.annotations.SerializedName; + +import java.io.IOException; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; + +/** + * Represents an enumeration of available BoxStyle types. + */ +@JsonAdapter(BoxStyle.Adapter.class) +public enum BoxStyle { + + CIRCLE("Circle"), + + CHECK("Check"), + + CROSS("Cross"), + + DIAMOND("Diamond"), + + SQUARE("Square"), + + STAR("Star"); + + private String value; + + BoxStyle(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static BoxStyle fromValue(String text) { + for (BoxStyle b : BoxStyle.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final BoxStyle enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public BoxStyle read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return BoxStyle.fromValue(String.valueOf(value)); + } + } +} + diff --git a/src/main/java/com/aspose/asposecloudpdf/model/CheckBoxField.java b/src/main/java/com/aspose/asposecloudpdf/model/CheckBoxField.java new file mode 100644 index 0000000..f8f1f37 --- /dev/null +++ b/src/main/java/com/aspose/asposecloudpdf/model/CheckBoxField.java @@ -0,0 +1,216 @@ +/** + * + * Copyright (c) 2019 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ + + +package com.aspose.asposecloudpdf.model; + +import java.util.Objects; +import com.aspose.asposecloudpdf.model.AnnotationFlags; +import com.aspose.asposecloudpdf.model.BoxStyle; +import com.aspose.asposecloudpdf.model.Color; +import com.aspose.asposecloudpdf.model.FormField; +import com.aspose.asposecloudpdf.model.HorizontalAlignment; +import com.aspose.asposecloudpdf.model.Link; +import com.aspose.asposecloudpdf.model.LinkHighlightingMode; +import com.aspose.asposecloudpdf.model.MarginInfo; +import com.aspose.asposecloudpdf.model.Rectangle; +import com.aspose.asposecloudpdf.model.VerticalAlignment; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Provides CheckBoxField. + */ +@ApiModel(description = "Provides CheckBoxField.") + +public class CheckBoxField extends FormField { + @SerializedName("AllowedStates") + private List allowedStates = null; + + @SerializedName("Style") + private BoxStyle style = null; + + @SerializedName("ActiveState") + private String activeState = null; + + @SerializedName("Checked") + private Boolean checked = null; + + @SerializedName("ExportValue") + private String exportValue = null; + + public CheckBoxField allowedStates(List allowedStates) { + this.allowedStates = allowedStates; + return this; + } + + public CheckBoxField addAllowedStatesItem(String allowedStatesItem) { + if (this.allowedStates == null) { + this.allowedStates = new ArrayList(); + } + this.allowedStates.add(allowedStatesItem); + return this; + } + + /** + * Returns list of allowed states. + * @return allowedStates + **/ + @ApiModelProperty(value = "Returns list of allowed states.") + public List getAllowedStates() { + return allowedStates; + } + + public void setAllowedStates(List allowedStates) { + this.allowedStates = allowedStates; + } + + public CheckBoxField style(BoxStyle style) { + this.style = style; + return this; + } + + /** + * Gets or sets style of check box. + * @return style + **/ + @ApiModelProperty(value = "Gets or sets style of check box.") + public BoxStyle getStyle() { + return style; + } + + public void setStyle(BoxStyle style) { + this.style = style; + } + + public CheckBoxField activeState(String activeState) { + this.activeState = activeState; + return this; + } + + /** + * Gets or sets current annotation appearance state. + * @return activeState + **/ + @ApiModelProperty(value = "Gets or sets current annotation appearance state.") + public String getActiveState() { + return activeState; + } + + public void setActiveState(String activeState) { + this.activeState = activeState; + } + + public CheckBoxField checked(Boolean checked) { + this.checked = checked; + return this; + } + + /** + * Gets or sets state of check box. + * @return checked + **/ + @ApiModelProperty(required = true, value = "Gets or sets state of check box.") + public Boolean isChecked() { + return checked; + } + + public void setChecked(Boolean checked) { + this.checked = checked; + } + + public CheckBoxField exportValue(String exportValue) { + this.exportValue = exportValue; + return this; + } + + /** + * Gets or sets export value of CheckBox field. + * @return exportValue + **/ + @ApiModelProperty(value = "Gets or sets export value of CheckBox field.") + public String getExportValue() { + return exportValue; + } + + public void setExportValue(String exportValue) { + this.exportValue = exportValue; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CheckBoxField checkBoxField = (CheckBoxField) o; + return Objects.equals(this.allowedStates, checkBoxField.allowedStates) && + Objects.equals(this.style, checkBoxField.style) && + Objects.equals(this.activeState, checkBoxField.activeState) && + Objects.equals(this.checked, checkBoxField.checked) && + Objects.equals(this.exportValue, checkBoxField.exportValue) && + super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(allowedStates, style, activeState, checked, exportValue, super.hashCode()); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CheckBoxField {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" allowedStates: ").append(toIndentedString(allowedStates)).append("\n"); + sb.append(" style: ").append(toIndentedString(style)).append("\n"); + sb.append(" activeState: ").append(toIndentedString(activeState)).append("\n"); + sb.append(" checked: ").append(toIndentedString(checked)).append("\n"); + sb.append(" exportValue: ").append(toIndentedString(exportValue)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/aspose/asposecloudpdf/model/CheckBoxFieldResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/CheckBoxFieldResponse.java new file mode 100644 index 0000000..c405994 --- /dev/null +++ b/src/main/java/com/aspose/asposecloudpdf/model/CheckBoxFieldResponse.java @@ -0,0 +1,106 @@ +/** + * + * Copyright (c) 2019 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ + + +package com.aspose.asposecloudpdf.model; + +import java.util.Objects; +import com.aspose.asposecloudpdf.model.AsposeResponse; +import com.aspose.asposecloudpdf.model.CheckBoxField; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Represents response containing single checkbox field object + */ +@ApiModel(description = "Represents response containing single checkbox field object") + +public class CheckBoxFieldResponse extends AsposeResponse { + @SerializedName("Field") + private CheckBoxField field = null; + + public CheckBoxFieldResponse field(CheckBoxField field) { + this.field = field; + return this; + } + + /** + * Checkbox field object + * @return field + **/ + @ApiModelProperty(value = "Checkbox field object") + public CheckBoxField getField() { + return field; + } + + public void setField(CheckBoxField field) { + this.field = field; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CheckBoxFieldResponse checkBoxFieldResponse = (CheckBoxFieldResponse) o; + return Objects.equals(this.field, checkBoxFieldResponse.field) && + super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(field, super.hashCode()); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CheckBoxFieldResponse {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" field: ").append(toIndentedString(field)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/aspose/asposecloudpdf/model/CheckBoxFields.java b/src/main/java/com/aspose/asposecloudpdf/model/CheckBoxFields.java new file mode 100644 index 0000000..20d5384 --- /dev/null +++ b/src/main/java/com/aspose/asposecloudpdf/model/CheckBoxFields.java @@ -0,0 +1,117 @@ +/** + * + * Copyright (c) 2019 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ + + +package com.aspose.asposecloudpdf.model; + +import java.util.Objects; +import com.aspose.asposecloudpdf.model.CheckBoxField; +import com.aspose.asposecloudpdf.model.Link; +import com.aspose.asposecloudpdf.model.LinkElement; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Object representing a list of checkbox fields. + */ +@ApiModel(description = "Object representing a list of checkbox fields.") + +public class CheckBoxFields extends LinkElement { + @SerializedName("List") + private List list = null; + + public CheckBoxFields list(List list) { + this.list = list; + return this; + } + + public CheckBoxFields addListItem(CheckBoxField listItem) { + if (this.list == null) { + this.list = new ArrayList(); + } + this.list.add(listItem); + return this; + } + + /** + * List of checkbox fields. + * @return list + **/ + @ApiModelProperty(value = "List of checkbox fields.") + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CheckBoxFields checkBoxFields = (CheckBoxFields) o; + return Objects.equals(this.list, checkBoxFields.list) && + super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(list, super.hashCode()); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CheckBoxFields {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" list: ").append(toIndentedString(list)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/aspose/asposecloudpdf/model/CheckBoxFieldsResponse.java b/src/main/java/com/aspose/asposecloudpdf/model/CheckBoxFieldsResponse.java new file mode 100644 index 0000000..8cd1db4 --- /dev/null +++ b/src/main/java/com/aspose/asposecloudpdf/model/CheckBoxFieldsResponse.java @@ -0,0 +1,106 @@ +/** + * + * Copyright (c) 2019 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ + + +package com.aspose.asposecloudpdf.model; + +import java.util.Objects; +import com.aspose.asposecloudpdf.model.AsposeResponse; +import com.aspose.asposecloudpdf.model.CheckBoxFields; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Represents response containing multiple checkbox field objects + */ +@ApiModel(description = "Represents response containing multiple checkbox field objects") + +public class CheckBoxFieldsResponse extends AsposeResponse { + @SerializedName("Fields") + private CheckBoxFields fields = null; + + public CheckBoxFieldsResponse fields(CheckBoxFields fields) { + this.fields = fields; + return this; + } + + /** + * Checkbox fields object + * @return fields + **/ + @ApiModelProperty(value = "Checkbox fields object") + public CheckBoxFields getFields() { + return fields; + } + + public void setFields(CheckBoxFields fields) { + this.fields = fields; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CheckBoxFieldsResponse checkBoxFieldsResponse = (CheckBoxFieldsResponse) o; + return Objects.equals(this.fields, checkBoxFieldsResponse.fields) && + super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(fields, super.hashCode()); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CheckBoxFieldsResponse {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" fields: ").append(toIndentedString(fields)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/aspose/asposecloudpdf/model/ChoiceField.java b/src/main/java/com/aspose/asposecloudpdf/model/ChoiceField.java new file mode 100644 index 0000000..edb8b4a --- /dev/null +++ b/src/main/java/com/aspose/asposecloudpdf/model/ChoiceField.java @@ -0,0 +1,114 @@ +/** + * + * Copyright (c) 2019 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ + + +package com.aspose.asposecloudpdf.model; + +import java.util.Objects; +import com.aspose.asposecloudpdf.model.AnnotationFlags; +import com.aspose.asposecloudpdf.model.Color; +import com.aspose.asposecloudpdf.model.FormField; +import com.aspose.asposecloudpdf.model.HorizontalAlignment; +import com.aspose.asposecloudpdf.model.Link; +import com.aspose.asposecloudpdf.model.LinkHighlightingMode; +import com.aspose.asposecloudpdf.model.MarginInfo; +import com.aspose.asposecloudpdf.model.Rectangle; +import com.aspose.asposecloudpdf.model.VerticalAlignment; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.List; + +/** + * Provides Choice field. + */ +@ApiModel(description = "Provides Choice field.") + +public class ChoiceField extends FormField { + @SerializedName("MultiSelect") + private Boolean multiSelect = null; + + public ChoiceField multiSelect(Boolean multiSelect) { + this.multiSelect = multiSelect; + return this; + } + + /** + * Gets or sets multiselection flag. + * @return multiSelect + **/ + @ApiModelProperty(value = "Gets or sets multiselection flag.") + public Boolean isMultiSelect() { + return multiSelect; + } + + public void setMultiSelect(Boolean multiSelect) { + this.multiSelect = multiSelect; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ChoiceField choiceField = (ChoiceField) o; + return Objects.equals(this.multiSelect, choiceField.multiSelect) && + super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(multiSelect, super.hashCode()); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ChoiceField {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" multiSelect: ").append(toIndentedString(multiSelect)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/aspose/asposecloudpdf/model/Option.java b/src/main/java/com/aspose/asposecloudpdf/model/Option.java new file mode 100644 index 0000000..5967560 --- /dev/null +++ b/src/main/java/com/aspose/asposecloudpdf/model/Option.java @@ -0,0 +1,172 @@ +/** + * + * Copyright (c) 2019 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ + + +package com.aspose.asposecloudpdf.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Provides form option. + */ +@ApiModel(description = "Provides form option.") + +public class Option { + @SerializedName("Value") + private String value = null; + + @SerializedName("Name") + private String name = null; + + @SerializedName("Selected") + private Boolean selected = null; + + @SerializedName("Index") + private Integer index = null; + + public Option value(String value) { + this.value = value; + return this; + } + + /** + * Gets or sets option export value. + * @return value + **/ + @ApiModelProperty(value = "Gets or sets option export value.") + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + public Option name(String name) { + this.name = name; + return this; + } + + /** + * Gets or sets name of option. + * @return name + **/ + @ApiModelProperty(value = "Gets or sets name of option.") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Option selected(Boolean selected) { + this.selected = selected; + return this; + } + + /** + * Gets or sets selected status of option. Returns true if option is selected. + * @return selected + **/ + @ApiModelProperty(value = "Gets or sets selected status of option. Returns true if option is selected.") + public Boolean isSelected() { + return selected; + } + + public void setSelected(Boolean selected) { + this.selected = selected; + } + + public Option index(Integer index) { + this.index = index; + return this; + } + + /** + * Gets index of the option. + * @return index + **/ + @ApiModelProperty(value = "Gets index of the option. ") + public Integer getIndex() { + return index; + } + + public void setIndex(Integer index) { + this.index = index; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Option option = (Option) o; + return Objects.equals(this.value, option.value) && + Objects.equals(this.name, option.name) && + Objects.equals(this.selected, option.selected) && + Objects.equals(this.index, option.index); + } + + @Override + public int hashCode() { + return Objects.hash(value, name, selected, index); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Option {\n"); + + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" selected: ").append(toIndentedString(selected)).append("\n"); + sb.append(" index: ").append(toIndentedString(index)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/aspose/asposecloudpdf/model/RadioButtonField.java b/src/main/java/com/aspose/asposecloudpdf/model/RadioButtonField.java new file mode 100644 index 0000000..d5c652b --- /dev/null +++ b/src/main/java/com/aspose/asposecloudpdf/model/RadioButtonField.java @@ -0,0 +1,204 @@ +/** + * + * Copyright (c) 2019 Aspose.PDF Cloud + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ + + +package com.aspose.asposecloudpdf.model; + +import java.util.Objects; +import com.aspose.asposecloudpdf.model.AnnotationFlags; +import com.aspose.asposecloudpdf.model.BoxStyle; +import com.aspose.asposecloudpdf.model.ChoiceField; +import com.aspose.asposecloudpdf.model.Color; +import com.aspose.asposecloudpdf.model.FormField; +import com.aspose.asposecloudpdf.model.HorizontalAlignment; +import com.aspose.asposecloudpdf.model.Link; +import com.aspose.asposecloudpdf.model.LinkHighlightingMode; +import com.aspose.asposecloudpdf.model.MarginInfo; +import com.aspose.asposecloudpdf.model.Option; +import com.aspose.asposecloudpdf.model.RadioButtonOptionField; +import com.aspose.asposecloudpdf.model.Rectangle; +import com.aspose.asposecloudpdf.model.VerticalAlignment; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Provides RadioButtonField. + */ +@ApiModel(description = "Provides RadioButtonField.") + +public class RadioButtonField extends ChoiceField { + @SerializedName("Options") + private List