com.lacunasoftware.signer.signature.PixAuthenticationModel 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.signature;
import java.util.Objects;
import org.threeten.bp.OffsetDateTime;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.gson.annotations.SerializedName;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* PixAuthenticationModel
*/
public class PixAuthenticationModel {
@JsonProperty("endToEndId")
@SerializedName("endToEndId")
private String endToEndId = null;
@JsonProperty("pixKey")
@SerializedName("pixKey")
private String pixKey = null;
@JsonProperty("paymentDate")
@SerializedName("paymentDate")
private OffsetDateTime paymentDate = null;
public PixAuthenticationModel endToEndId(String endToEndId) {
this.endToEndId = endToEndId;
return this;
}
/**
* Get endToEndId
* @return endToEndId
**/
@Schema(description = "")
public String getEndToEndId() {
return endToEndId;
}
public void setEndToEndId(String endToEndId) {
this.endToEndId = endToEndId;
}
public PixAuthenticationModel pixKey(String pixKey) {
this.pixKey = pixKey;
return this;
}
/**
* Get pixKey
* @return pixKey
**/
@Schema(description = "")
public String getPixKey() {
return pixKey;
}
public void setPixKey(String pixKey) {
this.pixKey = pixKey;
}
public PixAuthenticationModel paymentDate(OffsetDateTime paymentDate) {
this.paymentDate = paymentDate;
return this;
}
/**
* Get paymentDate
* @return paymentDate
**/
@Schema(description = "")
public OffsetDateTime getPaymentDate() {
return paymentDate;
}
public void setPaymentDate(OffsetDateTime paymentDate) {
this.paymentDate = paymentDate;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PixAuthenticationModel signaturePixAuthenticationModel = (PixAuthenticationModel) o;
return Objects.equals(this.endToEndId, signaturePixAuthenticationModel.endToEndId) &&
Objects.equals(this.pixKey, signaturePixAuthenticationModel.pixKey) &&
Objects.equals(this.paymentDate, signaturePixAuthenticationModel.paymentDate);
}
@Override
public int hashCode() {
return Objects.hash(endToEndId, pixKey, paymentDate);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PixAuthenticationModel {\n");
sb.append(" endToEndId: ").append(toIndentedString(endToEndId)).append("\n");
sb.append(" pixKey: ").append(toIndentedString(pixKey)).append("\n");
sb.append(" paymentDate: ").append(toIndentedString(paymentDate)).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 ");
}
}