lib/onfido/models/applicant_request.rb in onfido-3.4.0 vs lib/onfido/models/applicant_request.rb in onfido-4.0.0
- old
+ new
@@ -4,19 +4,20 @@
#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'
module Onfido
class ApplicantRequest
+ # The applicant's consents
attr_accessor :consents
attr_accessor :address
attr_accessor :location
@@ -36,11 +37,11 @@
end
# Attribute type mapping.
def self.openapi_types
{
- :'consents' => :'ConsentsBuilder',
+ :'consents' => :'Array<ApplicantConsentBuilder>',
:'address' => :'AddressBuilder',
:'location' => :'LocationBuilder'
}
end
@@ -64,10 +65,12 @@
end
h[k.to_sym] = v
}
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