lib/plaid/models/owner.rb in plaid-24.2.0 vs lib/plaid/models/owner.rb in plaid-24.3.0

- old
+ new

@@ -1,11 +1,11 @@ =begin #The Plaid API #The Plaid REST API. Please see https://plaid.com/docs/api for more details. -The version of the OpenAPI document: 2020-09-14_1.474.0 +The version of the OpenAPI document: 2020-09-14_1.482.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.3.0 =end @@ -26,17 +26,21 @@ attr_accessor :emails # Data about the various addresses associated with the account by the financial institution. May be an empty array if no relevant information is returned from the financial institution. attr_accessor :addresses + # document_id is the id of the document that this identity belongs to + attr_accessor :document_id + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'names' => :'names', :'phone_numbers' => :'phone_numbers', :'emails' => :'emails', - :'addresses' => :'addresses' + :'addresses' => :'addresses', + :'document_id' => :'document_id' } end # Returns all the JSON keys this model knows about def self.acceptable_attributes @@ -47,17 +51,19 @@ def self.openapi_types { :'names' => :'Array<String>', :'phone_numbers' => :'Array<PhoneNumber>', :'emails' => :'Array<Email>', - :'addresses' => :'Array<Address>' + :'addresses' => :'Array<Address>', + :'document_id' => :'String' } end # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'document_id' ]) end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -95,10 +101,14 @@ if attributes.key?(:'addresses') if (value = attributes[:'addresses']).is_a?(Array) self.addresses = value end end + + if attributes.key?(:'document_id') + self.document_id = attributes[:'document_id'] + end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties @@ -138,11 +148,12 @@ return true if self.equal?(o) self.class == o.class && names == o.names && phone_numbers == o.phone_numbers && emails == o.emails && - addresses == o.addresses + addresses == o.addresses && + document_id == o.document_id end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -150,10 +161,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [names, phone_numbers, emails, addresses].hash + [names, phone_numbers, emails, addresses, document_id].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself