lib/onfido/models/applicant_builder.rb in onfido-3.4.0 vs lib/onfido/models/applicant_builder.rb in onfido-4.0.0

- old
+ new

@@ -4,11 +4,11 @@ #The Onfido API (v3.6) The version of the OpenAPI document: v3.6 Generated by: https://openapi-generator.tech -Generator version: 7.6.0 +Generator version: 7.9.0 =end require 'date' require 'time' @@ -24,10 +24,11 @@ attr_accessor :id_numbers # The applicant's phone number attr_accessor :phone_number + # The applicant's consents attr_accessor :consents attr_accessor :address attr_accessor :location @@ -63,11 +64,11 @@ { :'email' => :'String', :'dob' => :'Date', :'id_numbers' => :'Array<IdNumber>', :'phone_number' => :'String', - :'consents' => :'ConsentsBuilder', + :'consents' => :'Array<ApplicantConsentBuilder>', :'address' => :'AddressBuilder', :'location' => :'LocationBuilder', :'first_name' => :'String', :'last_name' => :'String' } @@ -120,10 +121,12 @@ if attributes.key?(:'phone_number') self.phone_number = attributes[:'phone_number'] end if attributes.key?(:'consents') - self.consents = attributes[:'consents'] + if (value = attributes[:'consents']).is_a?(Array) + self.consents = value + end end if attributes.key?(:'address') self.address = attributes[:'address'] end