lib/plaid/models/paystub_override_employee.rb in plaid-26.0.1 vs lib/plaid/models/paystub_override_employee.rb in plaid-27.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.503.5
+The version of the OpenAPI document: 2020-09-14_1.508.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.3.0
=end
@@ -19,15 +19,22 @@
# The name of the employee.
attr_accessor :name
attr_accessor :address
+ # Marital status of the employee - either `single` or `married`.
+ attr_accessor :marital_status
+
+ attr_accessor :taxpayer_id
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'name' => :'name',
- :'address' => :'address'
+ :'address' => :'address',
+ :'marital_status' => :'marital_status',
+ :'taxpayer_id' => :'taxpayer_id'
}
end
# Returns all the JSON keys this model knows about
def self.acceptable_attributes
@@ -36,17 +43,20 @@
# Attribute type mapping.
def self.openapi_types
{
:'name' => :'String',
- :'address' => :'PaystubOverrideEmployeeAddress'
+ :'address' => :'PaystubOverrideEmployeeAddress',
+ :'marital_status' => :'String',
+ :'taxpayer_id' => :'PaystubOverrideTaxpayerID'
}
end
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
+ :'marital_status',
])
end
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
@@ -68,10 +78,18 @@
end
if attributes.key?(:'address')
self.address = attributes[:'address']
end
+
+ if attributes.key?(:'marital_status')
+ self.marital_status = attributes[:'marital_status']
+ end
+
+ if attributes.key?(:'taxpayer_id')
+ self.taxpayer_id = attributes[:'taxpayer_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
@@ -89,11 +107,13 @@
# @param [Object] Object to be compared
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
name == o.name &&
- address == o.address
+ address == o.address &&
+ marital_status == o.marital_status &&
+ taxpayer_id == o.taxpayer_id
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -101,10 +121,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [name, address].hash
+ [name, address, marital_status, taxpayer_id].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself