@@ -107,6 +107,14 @@ public class SignRequest extends SignRequestBase {
107107 @ Nullable
108108 protected OffsetDateTime finishedAt ;
109109
110+ /**
111+ * When the sign request is in an error state, identifies the specific reason. Null when no error
112+ * code applies.
113+ */
114+ @ JsonProperty ("error_code" )
115+ @ Nullable
116+ protected String errorCode ;
117+
110118 /** The email address of the sender of the sign request. */
111119 @ JsonProperty ("sender_email" )
112120 @ Nullable
@@ -138,6 +146,7 @@ protected SignRequest(Builder builder) {
138146 this .shortId = builder .shortId ;
139147 this .createdAt = builder .createdAt ;
140148 this .finishedAt = builder .finishedAt ;
149+ this .errorCode = builder .errorCode ;
141150 this .senderEmail = builder .senderEmail ;
142151 this .senderId = builder .senderId ;
143152 markNullableFieldsAsSet (builder .getExplicitlySetNullableFields ());
@@ -203,6 +212,10 @@ public OffsetDateTime getFinishedAt() {
203212 return finishedAt ;
204213 }
205214
215+ public String getErrorCode () {
216+ return errorCode ;
217+ }
218+
206219 public String getSenderEmail () {
207220 return senderEmail ;
208221 }
@@ -248,6 +261,7 @@ public boolean equals(Object o) {
248261 && Objects .equals (shortId , casted .shortId )
249262 && Objects .equals (createdAt , casted .createdAt )
250263 && Objects .equals (finishedAt , casted .finishedAt )
264+ && Objects .equals (errorCode , casted .errorCode )
251265 && Objects .equals (senderEmail , casted .senderEmail )
252266 && Objects .equals (senderId , casted .senderId );
253267 }
@@ -283,6 +297,7 @@ public int hashCode() {
283297 shortId ,
284298 createdAt ,
285299 finishedAt ,
300+ errorCode ,
286301 senderEmail ,
287302 senderId );
288303 }
@@ -402,6 +417,10 @@ public String toString() {
402417 + finishedAt
403418 + '\''
404419 + ", "
420+ + "errorCode='"
421+ + errorCode
422+ + '\''
423+ + ", "
405424 + "senderEmail='"
406425 + senderEmail
407426 + '\''
@@ -444,6 +463,8 @@ public static class Builder extends SignRequestBase.Builder {
444463
445464 protected OffsetDateTime finishedAt ;
446465
466+ protected String errorCode ;
467+
447468 protected String senderEmail ;
448469
449470 protected Long senderId ;
@@ -538,6 +559,12 @@ public Builder finishedAt(OffsetDateTime finishedAt) {
538559 return this ;
539560 }
540561
562+ public Builder errorCode (String errorCode ) {
563+ this .errorCode = errorCode ;
564+ this .markNullableFieldAsSet ("error_code" );
565+ return this ;
566+ }
567+
541568 public Builder senderEmail (String senderEmail ) {
542569 this .senderEmail = senderEmail ;
543570 this .markNullableFieldAsSet ("sender_email" );
0 commit comments