From 7a00d6f4405cf756cca4d638d24651973d6b8297 Mon Sep 17 00:00:00 2001 From: dvacca-onfido <134616519+dvacca-onfido@users.noreply.github.com> Date: Fri, 23 Jan 2026 13:23:17 +0000 Subject: [PATCH] Upgrade after onfido-openapi-spec change 00a5e20 --- .release.json | 4 +-- .../com/onfido/model/DocumentProperties.java | 29 ++++++++++++++++++- ...iverVerificationReportAllOfProperties.java | 29 ++++++++++++++++++- 3 files changed, 58 insertions(+), 4 deletions(-) diff --git a/.release.json b/.release.json index 97f8fff6..8e273069 100644 --- a/.release.json +++ b/.release.json @@ -1,8 +1,8 @@ { "source": { "repo_url": "https://github.com/onfido/onfido-openapi-spec", - "short_sha": "3e893ef", - "long_sha": "3e893efe638faef78662beb4eb2ad2e14f1d2506", + "short_sha": "00a5e20", + "long_sha": "00a5e20f0c07ac93887aba6bcd1ffe67b9b13fca", "version": "v5.7.0" }, "release": "v6.7.0" diff --git a/src/main/java/com/onfido/model/DocumentProperties.java b/src/main/java/com/onfido/model/DocumentProperties.java index e2540a2a..9fbbf842 100644 --- a/src/main/java/com/onfido/model/DocumentProperties.java +++ b/src/main/java/com/onfido/model/DocumentProperties.java @@ -125,6 +125,11 @@ public class DocumentProperties { @javax.annotation.Nullable private LocalDate issuingDate; + public static final String SERIALIZED_NAME_VALID_FROM = "valid_from"; + @SerializedName(SERIALIZED_NAME_VALID_FROM) + @javax.annotation.Nullable + private LocalDate validFrom; + public static final String SERIALIZED_NAME_CATEGORISATION = "categorisation"; @SerializedName(SERIALIZED_NAME_CATEGORISATION) @javax.annotation.Nullable @@ -723,6 +728,25 @@ public void setIssuingDate(@javax.annotation.Nullable LocalDate issuingDate) { } + public DocumentProperties validFrom(@javax.annotation.Nullable LocalDate validFrom) { + this.validFrom = validFrom; + return this; + } + + /** + * Get validFrom + * @return validFrom + */ + @javax.annotation.Nullable + public LocalDate getValidFrom() { + return validFrom; + } + + public void setValidFrom(@javax.annotation.Nullable LocalDate validFrom) { + this.validFrom = validFrom; + } + + public DocumentProperties categorisation(@javax.annotation.Nullable String categorisation) { this.categorisation = categorisation; return this; @@ -1414,6 +1438,7 @@ public boolean equals(Object o) { Objects.equals(this.nationality, documentProperties.nationality) && Objects.equals(this.issuingState, documentProperties.issuingState) && Objects.equals(this.issuingDate, documentProperties.issuingDate) && + Objects.equals(this.validFrom, documentProperties.validFrom) && Objects.equals(this.categorisation, documentProperties.categorisation) && Objects.equals(this.mrzLine1, documentProperties.mrzLine1) && Objects.equals(this.mrzLine2, documentProperties.mrzLine2) && @@ -1451,7 +1476,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(dateOfBirth, dateOfExpiry, personalNumber, documentNumbers, documentType, firstName, middleName, lastName, gender, issuingCountry, nationality, issuingState, issuingDate, categorisation, mrzLine1, mrzLine2, mrzLine3, address, placeOfBirth, spouseName, widowName, aliasName, issuingAuthority, remarks, civilState, expatriation, fatherName, motherName, religion, typeOfPermit, versionNumber, documentSubtype, profession, securityDocumentNumber, taxNumber, nistIdentityEvidenceStrength, hasIssuanceConfirmation, realIdCompliance, securityTier, addressLines, barcode, nfc, drivingLicenceInformation, documentClassification, extractedData, additionalProperties); + return Objects.hash(dateOfBirth, dateOfExpiry, personalNumber, documentNumbers, documentType, firstName, middleName, lastName, gender, issuingCountry, nationality, issuingState, issuingDate, validFrom, categorisation, mrzLine1, mrzLine2, mrzLine3, address, placeOfBirth, spouseName, widowName, aliasName, issuingAuthority, remarks, civilState, expatriation, fatherName, motherName, religion, typeOfPermit, versionNumber, documentSubtype, profession, securityDocumentNumber, taxNumber, nistIdentityEvidenceStrength, hasIssuanceConfirmation, realIdCompliance, securityTier, addressLines, barcode, nfc, drivingLicenceInformation, documentClassification, extractedData, additionalProperties); } @Override @@ -1471,6 +1496,7 @@ public String toString() { sb.append(" nationality: ").append(toIndentedString(nationality)).append("\n"); sb.append(" issuingState: ").append(toIndentedString(issuingState)).append("\n"); sb.append(" issuingDate: ").append(toIndentedString(issuingDate)).append("\n"); + sb.append(" validFrom: ").append(toIndentedString(validFrom)).append("\n"); sb.append(" categorisation: ").append(toIndentedString(categorisation)).append("\n"); sb.append(" mrzLine1: ").append(toIndentedString(mrzLine1)).append("\n"); sb.append(" mrzLine2: ").append(toIndentedString(mrzLine2)).append("\n"); @@ -1539,6 +1565,7 @@ private String toIndentedString(Object o) { openapiFields.add("nationality"); openapiFields.add("issuing_state"); openapiFields.add("issuing_date"); + openapiFields.add("valid_from"); openapiFields.add("categorisation"); openapiFields.add("mrz_line1"); openapiFields.add("mrz_line2"); diff --git a/src/main/java/com/onfido/model/DocumentWithDriverVerificationReportAllOfProperties.java b/src/main/java/com/onfido/model/DocumentWithDriverVerificationReportAllOfProperties.java index d8cad38a..8c441075 100644 --- a/src/main/java/com/onfido/model/DocumentWithDriverVerificationReportAllOfProperties.java +++ b/src/main/java/com/onfido/model/DocumentWithDriverVerificationReportAllOfProperties.java @@ -127,6 +127,11 @@ public class DocumentWithDriverVerificationReportAllOfProperties { @javax.annotation.Nullable private LocalDate issuingDate; + public static final String SERIALIZED_NAME_VALID_FROM = "valid_from"; + @SerializedName(SERIALIZED_NAME_VALID_FROM) + @javax.annotation.Nullable + private LocalDate validFrom; + public static final String SERIALIZED_NAME_CATEGORISATION = "categorisation"; @SerializedName(SERIALIZED_NAME_CATEGORISATION) @javax.annotation.Nullable @@ -760,6 +765,25 @@ public void setIssuingDate(@javax.annotation.Nullable LocalDate issuingDate) { } + public DocumentWithDriverVerificationReportAllOfProperties validFrom(@javax.annotation.Nullable LocalDate validFrom) { + this.validFrom = validFrom; + return this; + } + + /** + * Get validFrom + * @return validFrom + */ + @javax.annotation.Nullable + public LocalDate getValidFrom() { + return validFrom; + } + + public void setValidFrom(@javax.annotation.Nullable LocalDate validFrom) { + this.validFrom = validFrom; + } + + public DocumentWithDriverVerificationReportAllOfProperties categorisation(@javax.annotation.Nullable String categorisation) { this.categorisation = categorisation; return this; @@ -1592,6 +1616,7 @@ public boolean equals(Object o) { Objects.equals(this.nationality, documentWithDriverVerificationReportAllOfProperties.nationality) && Objects.equals(this.issuingState, documentWithDriverVerificationReportAllOfProperties.issuingState) && Objects.equals(this.issuingDate, documentWithDriverVerificationReportAllOfProperties.issuingDate) && + Objects.equals(this.validFrom, documentWithDriverVerificationReportAllOfProperties.validFrom) && Objects.equals(this.categorisation, documentWithDriverVerificationReportAllOfProperties.categorisation) && Objects.equals(this.mrzLine1, documentWithDriverVerificationReportAllOfProperties.mrzLine1) && Objects.equals(this.mrzLine2, documentWithDriverVerificationReportAllOfProperties.mrzLine2) && @@ -1636,7 +1661,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(dateOfBirth, dateOfExpiry, personalNumber, documentNumbers, documentType, firstName, middleName, lastName, gender, issuingCountry, nationality, issuingState, issuingDate, categorisation, mrzLine1, mrzLine2, mrzLine3, address, placeOfBirth, spouseName, widowName, aliasName, issuingAuthority, remarks, civilState, expatriation, fatherName, motherName, religion, typeOfPermit, versionNumber, documentSubtype, profession, securityDocumentNumber, taxNumber, nistIdentityEvidenceStrength, hasIssuanceConfirmation, realIdCompliance, securityTier, addressLines, barcode, nfc, drivingLicenceInformation, documentClassification, extractedData, driversLicence, restrictedLicence, rawLicenceCategory, rawVehicleClasses, manualTransmissionRestriction, vehicleClassDetails, passengerVehicle, additionalProperties); + return Objects.hash(dateOfBirth, dateOfExpiry, personalNumber, documentNumbers, documentType, firstName, middleName, lastName, gender, issuingCountry, nationality, issuingState, issuingDate, validFrom, categorisation, mrzLine1, mrzLine2, mrzLine3, address, placeOfBirth, spouseName, widowName, aliasName, issuingAuthority, remarks, civilState, expatriation, fatherName, motherName, religion, typeOfPermit, versionNumber, documentSubtype, profession, securityDocumentNumber, taxNumber, nistIdentityEvidenceStrength, hasIssuanceConfirmation, realIdCompliance, securityTier, addressLines, barcode, nfc, drivingLicenceInformation, documentClassification, extractedData, driversLicence, restrictedLicence, rawLicenceCategory, rawVehicleClasses, manualTransmissionRestriction, vehicleClassDetails, passengerVehicle, additionalProperties); } @Override @@ -1656,6 +1681,7 @@ public String toString() { sb.append(" nationality: ").append(toIndentedString(nationality)).append("\n"); sb.append(" issuingState: ").append(toIndentedString(issuingState)).append("\n"); sb.append(" issuingDate: ").append(toIndentedString(issuingDate)).append("\n"); + sb.append(" validFrom: ").append(toIndentedString(validFrom)).append("\n"); sb.append(" categorisation: ").append(toIndentedString(categorisation)).append("\n"); sb.append(" mrzLine1: ").append(toIndentedString(mrzLine1)).append("\n"); sb.append(" mrzLine2: ").append(toIndentedString(mrzLine2)).append("\n"); @@ -1731,6 +1757,7 @@ private String toIndentedString(Object o) { openapiFields.add("nationality"); openapiFields.add("issuing_state"); openapiFields.add("issuing_date"); + openapiFields.add("valid_from"); openapiFields.add("categorisation"); openapiFields.add("mrz_line1"); openapiFields.add("mrz_line2");