lib/onfido/models/document_properties.rb in onfido-3.1.0 vs lib/onfido/models/document_properties.rb in onfido-3.2.0

- old
+ new

@@ -25,16 +25,18 @@ attr_accessor :document_type attr_accessor :first_name + attr_accessor :middle_name + + attr_accessor :last_name + attr_accessor :gender attr_accessor :issuing_country - attr_accessor :last_name - attr_accessor :nationality attr_accessor :issuing_state attr_accessor :issuing_date @@ -132,13 +134,14 @@ :'date_of_expiry' => :'date_of_expiry', :'personal_number' => :'personal_number', :'document_numbers' => :'document_numbers', :'document_type' => :'document_type', :'first_name' => :'first_name', + :'middle_name' => :'middle_name', + :'last_name' => :'last_name', :'gender' => :'gender', :'issuing_country' => :'issuing_country', - :'last_name' => :'last_name', :'nationality' => :'nationality', :'issuing_state' => :'issuing_state', :'issuing_date' => :'issuing_date', :'categorisation' => :'categorisation', :'mrz_line1' => :'mrz_line1', @@ -187,13 +190,14 @@ :'date_of_expiry' => :'Date', :'personal_number' => :'String', :'document_numbers' => :'Array<DocumentPropertiesDocumentNumbersInner>', :'document_type' => :'String', :'first_name' => :'String', + :'middle_name' => :'String', + :'last_name' => :'String', :'gender' => :'String', :'issuing_country' => :'String', - :'last_name' => :'String', :'nationality' => :'String', :'issuing_state' => :'String', :'issuing_date' => :'Date', :'categorisation' => :'String', :'mrz_line1' => :'String', @@ -275,22 +279,26 @@ if attributes.key?(:'first_name') self.first_name = attributes[:'first_name'] end + if attributes.key?(:'middle_name') + self.middle_name = attributes[:'middle_name'] + end + + if attributes.key?(:'last_name') + self.last_name = attributes[:'last_name'] + end + if attributes.key?(:'gender') self.gender = attributes[:'gender'] end if attributes.key?(:'issuing_country') self.issuing_country = attributes[:'issuing_country'] end - if attributes.key?(:'last_name') - self.last_name = attributes[:'last_name'] - end - if attributes.key?(:'nationality') self.nationality = attributes[:'nationality'] end if attributes.key?(:'issuing_state') @@ -492,13 +500,14 @@ date_of_expiry == o.date_of_expiry && personal_number == o.personal_number && document_numbers == o.document_numbers && document_type == o.document_type && first_name == o.first_name && + middle_name == o.middle_name && + last_name == o.last_name && gender == o.gender && issuing_country == o.issuing_country && - last_name == o.last_name && nationality == o.nationality && issuing_state == o.issuing_state && issuing_date == o.issuing_date && categorisation == o.categorisation && mrz_line1 == o.mrz_line1 && @@ -541,10 +550,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [date_of_birth, date_of_expiry, personal_number, document_numbers, document_type, first_name, gender, issuing_country, last_name, nationality, issuing_state, issuing_date, categorisation, mrz_line1, mrz_line2, mrz_line3, address, place_of_birth, spouse_name, widow_name, alias_name, issuing_authority, remarks, civil_state, expatriation, father_name, mother_name, religion, type_of_permit, version_number, document_subtype, profession, security_document_number, tax_number, nist_identity_evidence_strength, has_issuance_confirmation, real_id_compliance, security_tier, address_lines, barcode, nfc, driving_licence_information, document_classification, extracted_data].hash + [date_of_birth, date_of_expiry, personal_number, document_numbers, document_type, first_name, middle_name, last_name, gender, issuing_country, nationality, issuing_state, issuing_date, categorisation, mrz_line1, mrz_line2, mrz_line3, address, place_of_birth, spouse_name, widow_name, alias_name, issuing_authority, remarks, civil_state, expatriation, father_name, mother_name, religion, type_of_permit, version_number, document_subtype, profession, security_document_number, tax_number, nist_identity_evidence_strength, has_issuance_confirmation, real_id_compliance, security_tier, address_lines, barcode, nfc, driving_licence_information, document_classification, extracted_data].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself