lib/plaid/models/payroll_item.rb in plaid-15.2.0 vs lib/plaid/models/payroll_item.rb in plaid-15.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.94.0 +The version of the OpenAPI document: 2020-09-14_1.97.0 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 =end @@ -19,15 +19,18 @@ # The `item_id` of the Item associated with this webhook, warning, or error attr_accessor :item_id attr_accessor :payroll_income + attr_accessor :status + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'item_id' => :'item_id', - :'payroll_income' => :'payroll_income' + :'payroll_income' => :'payroll_income', + :'status' => :'status' } end # Returns all the JSON keys this model knows about def self.acceptable_attributes @@ -36,17 +39,19 @@ # Attribute type mapping. def self.openapi_types { :'item_id' => :'String', - :'payroll_income' => :'Array<PayrollIncomeObject>' + :'payroll_income' => :'Array<PayrollIncomeObject>', + :'status' => :'PayrollItemStatus' } end # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'status' ]) end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -70,10 +75,14 @@ if attributes.key?(:'payroll_income') if (value = attributes[:'payroll_income']).is_a?(Array) self.payroll_income = value end end + + if attributes.key?(:'status') + self.status = attributes[:'status'] + 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 @@ -101,11 +110,12 @@ # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && item_id == o.item_id && - payroll_income == o.payroll_income + payroll_income == o.payroll_income && + status == o.status end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -113,10 +123,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [item_id, payroll_income].hash + [item_id, payroll_income, status].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself