lib/plaid/models/wallet_transaction_counterparty.rb in plaid-19.0.0 vs lib/plaid/models/wallet_transaction_counterparty.rb in plaid-19.1.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.370.0 +The version of the OpenAPI document: 2020-09-14_1.379.0 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 =end @@ -19,15 +19,22 @@ # The name of the counterparty attr_accessor :name attr_accessor :numbers + attr_accessor :address + + # The counterparty's birthdate, in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) (YYYY-MM-DD) format. + attr_accessor :date_of_birth + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'name' => :'name', - :'numbers' => :'numbers' + :'numbers' => :'numbers', + :'address' => :'address', + :'date_of_birth' => :'date_of_birth' } end # Returns all the JSON keys this model knows about def self.acceptable_attributes @@ -36,17 +43,21 @@ # Attribute type mapping. def self.openapi_types { :'name' => :'String', - :'numbers' => :'WalletTransactionCounterpartyNumbers' + :'numbers' => :'WalletTransactionCounterpartyNumbers', + :'address' => :'PaymentInitiationAddress', + :'date_of_birth' => :'Date' } end # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'address', + :'date_of_birth' ]) end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -68,10 +79,18 @@ end if attributes.key?(:'numbers') self.numbers = attributes[:'numbers'] end + + if attributes.key?(:'address') + self.address = attributes[:'address'] + end + + if attributes.key?(:'date_of_birth') + self.date_of_birth = attributes[:'date_of_birth'] + 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 @@ -120,11 +139,13 @@ # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && name == o.name && - numbers == o.numbers + numbers == o.numbers && + address == o.address && + date_of_birth == o.date_of_birth end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -132,10 +153,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [name, numbers].hash + [name, numbers, address, date_of_birth].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself