@@ -60,6 +60,12 @@ class Employee
6060 # UTC timestamp when the employee was created in Xero
6161 attr_accessor :created_date_utc
6262
63+
64+ attr_accessor :ni_category
65+
66+ # The employee's NI categories
67+ attr_accessor :ni_categories
68+
6369 # National insurance number of the employee
6470 attr_accessor :national_insurance_number
6571
@@ -105,6 +111,8 @@ def self.attribute_map
105111 :'payroll_calendar_id' => :'payrollCalendarID' ,
106112 :'updated_date_utc' => :'updatedDateUTC' ,
107113 :'created_date_utc' => :'createdDateUTC' ,
114+ :'ni_category' => :'niCategory' ,
115+ :'ni_categories' => :'niCategories' ,
108116 :'national_insurance_number' => :'nationalInsuranceNumber' ,
109117 :'is_off_payroll_worker' => :'isOffPayrollWorker'
110118 }
@@ -127,6 +135,8 @@ def self.openapi_types
127135 :'payroll_calendar_id' => :'String' ,
128136 :'updated_date_utc' => :'DateTime' ,
129137 :'created_date_utc' => :'DateTime' ,
138+ :'ni_category' => :'NICategoryLetter' ,
139+ :'ni_categories' => :'Array<NICategory>' ,
130140 :'national_insurance_number' => :'String' ,
131141 :'is_off_payroll_worker' => :'Boolean'
132142 }
@@ -203,6 +213,16 @@ def initialize(attributes = {})
203213 self . created_date_utc = attributes [ :'created_date_utc' ]
204214 end
205215
216+ if attributes . key? ( :'ni_category' )
217+ self . ni_category = attributes [ :'ni_category' ]
218+ end
219+
220+ if attributes . key? ( :'ni_categories' )
221+ if ( value = attributes [ :'ni_categories' ] ) . is_a? ( Array )
222+ self . ni_categories = value
223+ end
224+ end
225+
206226 if attributes . key? ( :'national_insurance_number' )
207227 self . national_insurance_number = attributes [ :'national_insurance_number' ]
208228 end
@@ -256,6 +276,8 @@ def ==(o)
256276 payroll_calendar_id == o . payroll_calendar_id &&
257277 updated_date_utc == o . updated_date_utc &&
258278 created_date_utc == o . created_date_utc &&
279+ ni_category == o . ni_category &&
280+ ni_categories == o . ni_categories &&
259281 national_insurance_number == o . national_insurance_number &&
260282 is_off_payroll_worker == o . is_off_payroll_worker
261283 end
@@ -269,7 +291,7 @@ def eql?(o)
269291 # Calculates hash code according to all attributes.
270292 # @return [Integer] Hash code
271293 def hash
272- [ employee_id , title , first_name , last_name , date_of_birth , address , email , gender , phone_number , start_date , end_date , payroll_calendar_id , updated_date_utc , created_date_utc , national_insurance_number , is_off_payroll_worker ] . hash
294+ [ employee_id , title , first_name , last_name , date_of_birth , address , email , gender , phone_number , start_date , end_date , payroll_calendar_id , updated_date_utc , created_date_utc , ni_category , ni_categories , national_insurance_number , is_off_payroll_worker ] . hash
273295 end
274296
275297 # Builds the object from hash
0 commit comments