lib/plaid/models/merchant_insights.rb in plaid-23.0.0 vs lib/plaid/models/merchant_insights.rb in plaid-24.0.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.457.0 +The version of the OpenAPI document: 2020-09-14_1.470.1 Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.1.0 =end @@ -27,14 +27,14 @@ # The number of transactions associated with merchant of this type. attr_accessor :transaction_count # The primary personal finance category associated with this merchant. - attr_accessor :primary_personal_finance_category + attr_accessor :personal_finance_category_primary # The detailed personal finance category associated with this merchant. - attr_accessor :detailed_personal_finance_category + attr_accessor :personal_finance_category_detailed # Sum of outflow amounts. attr_accessor :total_outflows # Sum of inflow amounts. @@ -45,12 +45,12 @@ { :'name' => :'name', :'entity_id' => :'entity_id', :'website' => :'website', :'transaction_count' => :'transaction_count', - :'primary_personal_finance_category' => :'primary_personal_finance_category', - :'detailed_personal_finance_category' => :'detailed_personal_finance_category', + :'personal_finance_category_primary' => :'personal_finance_category_primary', + :'personal_finance_category_detailed' => :'personal_finance_category_detailed', :'total_outflows' => :'total_outflows', :'total_inflows' => :'total_inflows' } end @@ -64,24 +64,24 @@ { :'name' => :'String', :'entity_id' => :'String', :'website' => :'String', :'transaction_count' => :'Integer', - :'primary_personal_finance_category' => :'String', - :'detailed_personal_finance_category' => :'String', + :'personal_finance_category_primary' => :'String', + :'personal_finance_category_detailed' => :'String', :'total_outflows' => :'Float', :'total_inflows' => :'Float' } end # List of attributes with nullable: true def self.openapi_nullable Set.new([ :'entity_id', :'website', - :'primary_personal_finance_category', - :'detailed_personal_finance_category', + :'personal_finance_category_primary', + :'personal_finance_category_detailed', ]) end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -112,16 +112,16 @@ if attributes.key?(:'transaction_count') self.transaction_count = attributes[:'transaction_count'] end - if attributes.key?(:'primary_personal_finance_category') - self.primary_personal_finance_category = attributes[:'primary_personal_finance_category'] + if attributes.key?(:'personal_finance_category_primary') + self.personal_finance_category_primary = attributes[:'personal_finance_category_primary'] end - if attributes.key?(:'detailed_personal_finance_category') - self.detailed_personal_finance_category = attributes[:'detailed_personal_finance_category'] + if attributes.key?(:'personal_finance_category_detailed') + self.personal_finance_category_detailed = attributes[:'personal_finance_category_detailed'] end if attributes.key?(:'total_outflows') self.total_outflows = attributes[:'total_outflows'] end @@ -171,12 +171,12 @@ self.class == o.class && name == o.name && entity_id == o.entity_id && website == o.website && transaction_count == o.transaction_count && - primary_personal_finance_category == o.primary_personal_finance_category && - detailed_personal_finance_category == o.detailed_personal_finance_category && + personal_finance_category_primary == o.personal_finance_category_primary && + personal_finance_category_detailed == o.personal_finance_category_detailed && total_outflows == o.total_outflows && total_inflows == o.total_inflows end # @see the `==` method @@ -186,10 +186,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [name, entity_id, website, transaction_count, primary_personal_finance_category, detailed_personal_finance_category, total_outflows, total_inflows].hash + [name, entity_id, website, transaction_count, personal_finance_category_primary, personal_finance_category_detailed, total_outflows, total_inflows].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself