Skip to content

Commit b886db8

Browse files
Merge pull request #271 from regulaforensics/develop
Develop -> Stable
2 parents 851215d + 051d735 commit b886db8

File tree

1 file changed

+75
-3
lines changed

1 file changed

+75
-3
lines changed

client/src/main/generated/com/regula/documentreader/webclient/model/DatabaseDocument.java

Lines changed: 75 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,18 @@ public class DatabaseDocument {
122122
@javax.annotation.Nullable
123123
private Boolean deprecated;
124124

125+
public static final String SERIALIZED_NAME_ICAO_CODE = "icao_code";
126+
127+
@SerializedName(SERIALIZED_NAME_ICAO_CODE)
128+
@javax.annotation.Nullable
129+
private String icaoCode;
130+
131+
public static final String SERIALIZED_NAME_DOC_CODES = "doc_codes";
132+
133+
@SerializedName(SERIALIZED_NAME_DOC_CODES)
134+
@javax.annotation.Nullable
135+
private String docCodes;
136+
125137
public DatabaseDocument() {}
126138

127139
public DatabaseDocument barcodeFields(@javax.annotation.Nonnull Boolean barcodeFields) {
@@ -409,6 +421,44 @@ public void setDeprecated(@javax.annotation.Nullable Boolean deprecated) {
409421
this.deprecated = deprecated;
410422
}
411423

424+
public DatabaseDocument icaoCode(@javax.annotation.Nullable String icaoCode) {
425+
this.icaoCode = icaoCode;
426+
return this;
427+
}
428+
429+
/**
430+
* ICAO country code.
431+
*
432+
* @return icaoCode
433+
*/
434+
@javax.annotation.Nullable
435+
public String getIcaoCode() {
436+
return icaoCode;
437+
}
438+
439+
public void setIcaoCode(@javax.annotation.Nullable String icaoCode) {
440+
this.icaoCode = icaoCode;
441+
}
442+
443+
public DatabaseDocument docCodes(@javax.annotation.Nullable String docCodes) {
444+
this.docCodes = docCodes;
445+
return this;
446+
}
447+
448+
/**
449+
* Document codes.
450+
*
451+
* @return docCodes
452+
*/
453+
@javax.annotation.Nullable
454+
public String getDocCodes() {
455+
return docCodes;
456+
}
457+
458+
public void setDocCodes(@javax.annotation.Nullable String docCodes) {
459+
this.docCodes = docCodes;
460+
}
461+
412462
@Override
413463
public boolean equals(Object o) {
414464
if (this == o) {
@@ -432,7 +482,9 @@ public boolean equals(Object o) {
432482
&& Objects.equals(this.updated, databaseDocument.updated)
433483
&& Objects.equals(this.year, databaseDocument.year)
434484
&& Objects.equals(this.sovereignty, databaseDocument.sovereignty)
435-
&& Objects.equals(this.deprecated, databaseDocument.deprecated);
485+
&& Objects.equals(this.deprecated, databaseDocument.deprecated)
486+
&& Objects.equals(this.icaoCode, databaseDocument.icaoCode)
487+
&& Objects.equals(this.docCodes, databaseDocument.docCodes);
436488
}
437489

438490
@Override
@@ -452,7 +504,9 @@ public int hashCode() {
452504
updated,
453505
year,
454506
sovereignty,
455-
deprecated);
507+
deprecated,
508+
icaoCode,
509+
docCodes);
456510
}
457511

458512
@Override
@@ -474,6 +528,8 @@ public String toString() {
474528
sb.append(" year: ").append(toIndentedString(year)).append("\n");
475529
sb.append(" sovereignty: ").append(toIndentedString(sovereignty)).append("\n");
476530
sb.append(" deprecated: ").append(toIndentedString(deprecated)).append("\n");
531+
sb.append(" icaoCode: ").append(toIndentedString(icaoCode)).append("\n");
532+
sb.append(" docCodes: ").append(toIndentedString(docCodes)).append("\n");
477533
sb.append("}");
478534
return sb.toString();
479535
}
@@ -510,7 +566,9 @@ private String toIndentedString(Object o) {
510566
"updated",
511567
"year",
512568
"sovereignty",
513-
"deprecated"));
569+
"deprecated",
570+
"icao_code",
571+
"doc_codes"));
514572

515573
// a set of required properties/fields (JSON key names)
516574
openapiRequiredFields =
@@ -603,6 +661,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
603661
"Expected the field `sovereignty` to be a primitive type in the JSON string but got `%s`",
604662
jsonObj.get("sovereignty").toString()));
605663
}
664+
if ((jsonObj.get("icao_code") != null && !jsonObj.get("icao_code").isJsonNull())
665+
&& !jsonObj.get("icao_code").isJsonPrimitive()) {
666+
System.err.println(
667+
String.format(
668+
"Expected the field `icao_code` to be a primitive type in the JSON string but got `%s`",
669+
jsonObj.get("icao_code").toString()));
670+
}
671+
if ((jsonObj.get("doc_codes") != null && !jsonObj.get("doc_codes").isJsonNull())
672+
&& !jsonObj.get("doc_codes").isJsonPrimitive()) {
673+
System.err.println(
674+
String.format(
675+
"Expected the field `doc_codes` to be a primitive type in the JSON string but got `%s`",
676+
jsonObj.get("doc_codes").toString()));
677+
}
606678
}
607679

608680
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {

0 commit comments

Comments
 (0)