All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lacunasoftware.signer.documents.MoveDocumentBatchRequest Maven / Gradle / Ivy

/*
 * Dropsigner (HML)
 *     

Authentication

In order to call this APIs, you will need an API key. Set the API key in the header X-Api-Key:

X-Api-Key: your-app|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

HTTP Codes

The APIs will return the following HTTP codes:

Code Description
200 (OK) Request processed successfully. The response is different for each API, please refer to the operation's documentation
400 (Bad Request) Syntax error. For instance, when a required field was not provided
401 (Unauthorized) API key not provided or invalid
403 (Forbidden) API key is valid, but the application has insufficient permissions to complete the requested operation
422 (Unprocessable Entity) API error. The response is as defined in ErrorModel

Error Codes

Some of the error codes returned in a 422 response are provided bellow*:

  • CertificateNotFound
  • DocumentNotFound
  • FolderNotFound
  • CpfMismatch
  • CpfNotExpected
  • InvalidFlowAction
  • DocumentInvalidKey

*The codes shown above are the main error codes. Nonetheless, this list is not comprehensive. New codes may be added anytime without previous warning.


Webhooks

It is recomended to subscribe to Webhook events instead of polling APIs. To do so, enable webhooks and register an URL that will receive a POST request whenever one of the events bellow occur.

All requests have the format described in Webhooks.WebhookModel. The data field varies according to the webhook event type:

Event type Description Payload
DocumentSigned Triggered when a document is signed. Webhooks.DocumentSignedModel
DocumentApproved Triggered when a document is approved. Webhooks.DocumentApprovedModel
DocumentRefused Triggered when a document is refused. Webhooks.DocumentRefusedModel
DocumentConcluded Triggered when the flow of a document is concluded. Webhooks.DocumentConcludedModel
DocumentCanceled Triggered when the document is canceled. Webhooks.DocumentCanceledModel
DocumentsCreated (v1.50.0) Triggered when one or more documents are created. Webhooks.DocumentsCreatedModel

To register your application URL and enable Webhooks, access the integrations section in your organization's details page.

* * OpenAPI spec version: 1.55.2 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ package com.lacunasoftware.signer.documents; import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.UUID; import com.fasterxml.jackson.annotation.JsonProperty; import com.google.gson.annotations.SerializedName; import io.swagger.v3.oas.annotations.media.Schema; /** * MoveDocumentBatchRequest */ public class MoveDocumentBatchRequest { @JsonProperty("documents") @SerializedName("documents") private List documents = null; @JsonProperty("folderId") @SerializedName("folderId") private UUID folderId = null; @JsonProperty("newFolderName") @SerializedName("newFolderName") private String newFolderName = null; public MoveDocumentBatchRequest documents(List documents) { this.documents = documents; return this; } public MoveDocumentBatchRequest addDocumentsItem(UUID documentsItem) { if (this.documents == null) { this.documents = new ArrayList(); } this.documents.add(documentsItem); return this; } /** * The Ids of the documents that will be moved. * @return documents **/ @Schema(description = "The Ids of the documents that will be moved.") public List getDocuments() { return documents; } public void setDocuments(List documents) { this.documents = documents; } public MoveDocumentBatchRequest folderId(UUID folderId) { this.folderId = folderId; return this; } /** * The Id of the folder to which the document(s) will be moved. The folder Id can be null if you want to move the document(s) to no folder or if you want to create a new folder using Lacuna.Signer.Api.Documents.MoveDocumentRequest.NewFolderName. * @return folderId **/ @Schema(description = "The Id of the folder to which the document(s) will be moved. The folder Id can be null if you want to move the document(s) to no folder or if you want to create a new folder using Lacuna.Signer.Api.Documents.MoveDocumentRequest.NewFolderName.") public UUID getFolderId() { return folderId; } public void setFolderId(UUID folderId) { this.folderId = folderId; } public MoveDocumentBatchRequest newFolderName(String newFolderName) { this.newFolderName = newFolderName; return this; } /** * The name of the folder to be created and the documents will be moved to. (If Lacuna.Signer.Api.Documents.MoveDocumentRequest.FolderId is null) * @return newFolderName **/ @Schema(description = "The name of the folder to be created and the documents will be moved to. (If Lacuna.Signer.Api.Documents.MoveDocumentRequest.FolderId is null)") public String getNewFolderName() { return newFolderName; } public void setNewFolderName(String newFolderName) { this.newFolderName = newFolderName; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } MoveDocumentBatchRequest documentsMoveDocumentBatchRequest = (MoveDocumentBatchRequest) o; return Objects.equals(this.documents, documentsMoveDocumentBatchRequest.documents) && Objects.equals(this.folderId, documentsMoveDocumentBatchRequest.folderId) && Objects.equals(this.newFolderName, documentsMoveDocumentBatchRequest.newFolderName); } @Override public int hashCode() { return Objects.hash(documents, folderId, newFolderName); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MoveDocumentBatchRequest {\n"); sb.append(" documents: ").append(toIndentedString(documents)).append("\n"); sb.append(" folderId: ").append(toIndentedString(folderId)).append("\n"); sb.append(" newFolderName: ").append(toIndentedString(newFolderName)).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 "); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy