Class: Merge::Hris::EmployeeRequest
- Inherits:
-
Object
- Object
- Merge::Hris::EmployeeRequest
- Defined in:
- lib/merge_ruby_client/hris/types/employee_request.rb
Overview
# The Employee Object
### Description
The `Employee` object is used to represent any person who has been employed by a
company.
### Usage Example
Fetch from the `LIST Employee` endpoint and filter by `ID` to show all
employees.
Constant Summary collapse
- OMIT =
Object.new
Instance Attribute Summary collapse
-
#additional_properties ⇒ OpenStruct
readonly
Additional properties unmapped to the current class definition.
-
#avatar ⇒ String
readonly
The URL of the employee’s avatar image.
-
#company ⇒ Merge::Hris::EmployeeRequestCompany
readonly
The ID of the employee’s company.
-
#date_of_birth ⇒ DateTime
readonly
The employee’s date of birth.
-
#display_full_name ⇒ String
readonly
The employee’s full name, to use for display purposes.
-
#employee_number ⇒ String
readonly
The employee’s number that appears in the third-party integration’s UI.
-
#employment_status ⇒ Merge::Hris::EmploymentStatusEnum
readonly
The employment status of the employee.
-
#employments ⇒ Array<Merge::Hris::EmployeeRequestEmploymentsItem>
readonly
Array of ‘Employment` IDs for this Employee.
-
#ethnicity ⇒ Merge::Hris::EthnicityEnum
readonly
The employee’s ethnicity.
-
#first_name ⇒ String
readonly
The employee’s first name.
-
#gender ⇒ Merge::Hris::GenderEnum
readonly
The employee’s gender.
- #groups ⇒ Array<Merge::Hris::EmployeeRequestGroupsItem> readonly
-
#hire_date ⇒ DateTime
readonly
The date that the employee was hired, usually the day that an offer letter is signed.
-
#home_location ⇒ Merge::Hris::EmployeeRequestHomeLocation
readonly
The employee’s home address.
- #integration_params ⇒ Hash{String => Object} readonly
-
#last_name ⇒ String
readonly
The employee’s last name.
- #linked_account_params ⇒ Hash{String => Object} readonly
-
#manager ⇒ Merge::Hris::EmployeeRequestManager
readonly
The employee ID of the employee’s manager.
-
#marital_status ⇒ Merge::Hris::MaritalStatusEnum
readonly
The employee’s filing status as related to marital status.
-
#mobile_phone_number ⇒ String
readonly
The employee’s mobile phone number.
-
#pay_group ⇒ Merge::Hris::EmployeeRequestPayGroup
readonly
The employee’s pay group.
-
#personal_email ⇒ String
readonly
The employee’s personal email.
-
#preferred_name ⇒ String
readonly
The employee’s preferred first name.
-
#ssn ⇒ String
readonly
The employee’s social security number.
-
#start_date ⇒ DateTime
readonly
The date that the employee started working.
-
#team ⇒ Merge::Hris::EmployeeRequestTeam
readonly
The employee’s team.
-
#termination_date ⇒ DateTime
readonly
The employee’s termination date.
-
#username ⇒ String
readonly
The employee’s username that appears in the remote UI.
-
#work_email ⇒ String
readonly
The employee’s work email.
-
#work_location ⇒ Merge::Hris::EmployeeRequestWorkLocation
readonly
The employee’s work address.
Class Method Summary collapse
-
.from_json(json_object:) ⇒ Merge::Hris::EmployeeRequest
Deserialize a JSON object to an instance of EmployeeRequest.
-
.validate_raw(obj:) ⇒ Void
Leveraged for Union-type generation, validate_raw attempts to parse the given hash and check each fields type against the current object’s property definitions.
Instance Method Summary collapse
- #initialize(employee_number: OMIT, company: OMIT, first_name: OMIT, last_name: OMIT, preferred_name: OMIT, display_full_name: OMIT, username: OMIT, groups: OMIT, work_email: OMIT, personal_email: OMIT, mobile_phone_number: OMIT, employments: OMIT, home_location: OMIT, work_location: OMIT, manager: OMIT, team: OMIT, pay_group: OMIT, ssn: OMIT, gender: OMIT, ethnicity: OMIT, marital_status: OMIT, date_of_birth: OMIT, hire_date: OMIT, start_date: OMIT, employment_status: OMIT, termination_date: OMIT, avatar: OMIT, integration_params: OMIT, linked_account_params: OMIT, additional_properties: nil) ⇒ Merge::Hris::EmployeeRequest constructor
-
#to_json(*_args) ⇒ String
Serialize an instance of EmployeeRequest to a JSON object.
Constructor Details
#initialize(employee_number: OMIT, company: OMIT, first_name: OMIT, last_name: OMIT, preferred_name: OMIT, display_full_name: OMIT, username: OMIT, groups: OMIT, work_email: OMIT, personal_email: OMIT, mobile_phone_number: OMIT, employments: OMIT, home_location: OMIT, work_location: OMIT, manager: OMIT, team: OMIT, pay_group: OMIT, ssn: OMIT, gender: OMIT, ethnicity: OMIT, marital_status: OMIT, date_of_birth: OMIT, hire_date: OMIT, start_date: OMIT, employment_status: OMIT, termination_date: OMIT, avatar: OMIT, integration_params: OMIT, linked_account_params: OMIT, additional_properties: nil) ⇒ Merge::Hris::EmployeeRequest
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 182 def initialize(employee_number: OMIT, company: OMIT, first_name: OMIT, last_name: OMIT, preferred_name: OMIT, display_full_name: OMIT, username: OMIT, groups: OMIT, work_email: OMIT, personal_email: OMIT, mobile_phone_number: OMIT, employments: OMIT, home_location: OMIT, work_location: OMIT, manager: OMIT, team: OMIT, pay_group: OMIT, ssn: OMIT, gender: OMIT, ethnicity: OMIT, marital_status: OMIT, date_of_birth: OMIT, hire_date: OMIT, start_date: OMIT, employment_status: OMIT, termination_date: OMIT, avatar: OMIT, integration_params: OMIT, linked_account_params: OMIT, additional_properties: nil) @employee_number = employee_number if employee_number != OMIT @company = company if company != OMIT @first_name = first_name if first_name != OMIT @last_name = last_name if last_name != OMIT @preferred_name = preferred_name if preferred_name != OMIT @display_full_name = display_full_name if display_full_name != OMIT @username = username if username != OMIT @groups = groups if groups != OMIT @work_email = work_email if work_email != OMIT @personal_email = personal_email if personal_email != OMIT @mobile_phone_number = mobile_phone_number if mobile_phone_number != OMIT @employments = employments if employments != OMIT @home_location = home_location if home_location != OMIT @work_location = work_location if work_location != OMIT @manager = manager if manager != OMIT @team = team if team != OMIT @pay_group = pay_group if pay_group != OMIT @ssn = ssn if ssn != OMIT @gender = gender if gender != OMIT @ethnicity = ethnicity if ethnicity != OMIT @marital_status = marital_status if marital_status != OMIT @date_of_birth = date_of_birth if date_of_birth != OMIT @hire_date = hire_date if hire_date != OMIT @start_date = start_date if start_date != OMIT @employment_status = employment_status if employment_status != OMIT @termination_date = termination_date if termination_date != OMIT @avatar = avatar if avatar != OMIT @integration_params = integration_params if integration_params != OMIT @linked_account_params = linked_account_params if linked_account_params != OMIT @additional_properties = additional_properties @_field_set = { "employee_number": employee_number, "company": company, "first_name": first_name, "last_name": last_name, "preferred_name": preferred_name, "display_full_name": display_full_name, "username": username, "groups": groups, "work_email": work_email, "personal_email": personal_email, "mobile_phone_number": mobile_phone_number, "employments": employments, "home_location": home_location, "work_location": work_location, "manager": manager, "team": team, "pay_group": pay_group, "ssn": ssn, "gender": gender, "ethnicity": ethnicity, "marital_status": marital_status, "date_of_birth": date_of_birth, "hire_date": hire_date, "start_date": start_date, "employment_status": employment_status, "termination_date": termination_date, "avatar": avatar, "integration_params": integration_params, "linked_account_params": linked_account_params }.reject do |_k, v| v == OMIT end end |
Instance Attribute Details
#additional_properties ⇒ OpenStruct (readonly)
Returns Additional properties unmapped to the current class definition.
116 117 118 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 116 def additional_properties @additional_properties end |
#avatar ⇒ String (readonly)
Returns The URL of the employee’s avatar image.
110 111 112 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 110 def avatar @avatar end |
#company ⇒ Merge::Hris::EmployeeRequestCompany (readonly)
Returns The ID of the employee’s company.
32 33 34 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 32 def company @company end |
#date_of_birth ⇒ DateTime (readonly)
Returns The employee’s date of birth.
93 94 95 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 93 def date_of_birth @date_of_birth end |
#display_full_name ⇒ String (readonly)
Returns The employee’s full name, to use for display purposes. If a preferred first name is available, the full name will include the preferred first name.
41 42 43 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 41 def display_full_name @display_full_name end |
#employee_number ⇒ String (readonly)
Returns The employee’s number that appears in the third-party integration’s UI.
30 31 32 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 30 def employee_number @employee_number end |
#employment_status ⇒ Merge::Hris::EmploymentStatusEnum (readonly)
Returns The employment status of the employee.
-
‘ACTIVE` - ACTIVE
-
‘PENDING` - PENDING
-
‘INACTIVE` - INACTIVE.
106 107 108 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 106 def employment_status @employment_status end |
#employments ⇒ Array<Merge::Hris::EmployeeRequestEmploymentsItem> (readonly)
Returns Array of ‘Employment` IDs for this Employee.
53 54 55 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 53 def employments @employments end |
#ethnicity ⇒ Merge::Hris::EthnicityEnum (readonly)
Returns The employee’s ethnicity.
-
‘AMERICAN_INDIAN_OR_ALASKA_NATIVE` - AMERICAN_INDIAN_OR_ALASKA_NATIVE
-
‘ASIAN_OR_INDIAN_SUBCONTINENT` - ASIAN_OR_INDIAN_SUBCONTINENT
-
‘BLACK_OR_AFRICAN_AMERICAN` - BLACK_OR_AFRICAN_AMERICAN
-
‘HISPANIC_OR_LATINO` - HISPANIC_OR_LATINO
-
‘NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER` -
NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER
-
‘TWO_OR_MORE_RACES` - TWO_OR_MORE_RACES
-
‘WHITE` - WHITE
-
‘PREFER_NOT_TO_DISCLOSE` - PREFER_NOT_TO_DISCLOSE.
83 84 85 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 83 def ethnicity @ethnicity end |
#first_name ⇒ String (readonly)
Returns The employee’s first name.
34 35 36 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 34 def first_name @first_name end |
#gender ⇒ Merge::Hris::GenderEnum (readonly)
Returns The employee’s gender.
-
‘MALE` - MALE
-
‘FEMALE` - FEMALE
-
‘NON-BINARY` - NON-BINARY
-
‘OTHER` - OTHER
-
‘PREFER_NOT_TO_DISCLOSE` - PREFER_NOT_TO_DISCLOSE.
72 73 74 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 72 def gender @gender end |
#groups ⇒ Array<Merge::Hris::EmployeeRequestGroupsItem> (readonly)
45 46 47 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 45 def groups @groups end |
#hire_date ⇒ DateTime (readonly)
Returns The date that the employee was hired, usually the day that an offer letter is signed. If an employee has multiple hire dates from previous employments, this represents the most recent hire date. Note: If you’re looking for the employee’s start date, refer to the start_date field.
98 99 100 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 98 def hire_date @hire_date end |
#home_location ⇒ Merge::Hris::EmployeeRequestHomeLocation (readonly)
Returns The employee’s home address.
55 56 57 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 55 def home_location @home_location end |
#integration_params ⇒ Hash{String => Object} (readonly)
112 113 114 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 112 def integration_params @integration_params end |
#last_name ⇒ String (readonly)
Returns The employee’s last name.
36 37 38 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 36 def last_name @last_name end |
#linked_account_params ⇒ Hash{String => Object} (readonly)
114 115 116 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 114 def linked_account_params @linked_account_params end |
#manager ⇒ Merge::Hris::EmployeeRequestManager (readonly)
Returns The employee ID of the employee’s manager.
59 60 61 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 59 def manager @manager end |
#marital_status ⇒ Merge::Hris::MaritalStatusEnum (readonly)
Returns The employee’s filing status as related to marital status.
-
‘SINGLE` - SINGLE
-
‘MARRIED_FILING_JOINTLY` - MARRIED_FILING_JOINTLY
-
‘MARRIED_FILING_SEPARATELY` - MARRIED_FILING_SEPARATELY
-
‘HEAD_OF_HOUSEHOLD` - HEAD_OF_HOUSEHOLD
-
‘QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD` -
QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD.
91 92 93 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 91 def marital_status @marital_status end |
#mobile_phone_number ⇒ String (readonly)
Returns The employee’s mobile phone number.
51 52 53 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 51 def mobile_phone_number @mobile_phone_number end |
#pay_group ⇒ Merge::Hris::EmployeeRequestPayGroup (readonly)
Returns The employee’s pay group.
63 64 65 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 63 def pay_group @pay_group end |
#personal_email ⇒ String (readonly)
Returns The employee’s personal email.
49 50 51 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 49 def personal_email @personal_email end |
#preferred_name ⇒ String (readonly)
Returns The employee’s preferred first name.
38 39 40 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 38 def preferred_name @preferred_name end |
#ssn ⇒ String (readonly)
Returns The employee’s social security number.
65 66 67 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 65 def ssn @ssn end |
#start_date ⇒ DateTime (readonly)
Returns The date that the employee started working. If an employee was rehired, the most recent start date will be returned.
101 102 103 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 101 def start_date @start_date end |
#team ⇒ Merge::Hris::EmployeeRequestTeam (readonly)
Returns The employee’s team.
61 62 63 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 61 def team @team end |
#termination_date ⇒ DateTime (readonly)
Returns The employee’s termination date.
108 109 110 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 108 def termination_date @termination_date end |
#username ⇒ String (readonly)
Returns The employee’s username that appears in the remote UI.
43 44 45 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 43 def username @username end |
#work_email ⇒ String (readonly)
Returns The employee’s work email.
47 48 49 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 47 def work_email @work_email end |
#work_location ⇒ Merge::Hris::EmployeeRequestWorkLocation (readonly)
Returns The employee’s work address.
57 58 59 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 57 def work_location @work_location end |
Class Method Details
.from_json(json_object:) ⇒ Merge::Hris::EmployeeRequest
Deserialize a JSON object to an instance of EmployeeRequest
253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 253 def self.from_json(json_object:) struct = JSON.parse(json_object, object_class: OpenStruct) parsed_json = JSON.parse(json_object) employee_number = parsed_json["employee_number"] if parsed_json["company"].nil? company = nil else company = parsed_json["company"].to_json company = Merge::Hris::EmployeeRequestCompany.from_json(json_object: company) end first_name = parsed_json["first_name"] last_name = parsed_json["last_name"] preferred_name = parsed_json["preferred_name"] display_full_name = parsed_json["display_full_name"] username = parsed_json["username"] groups = parsed_json["groups"]&.map do |item| item = item.to_json Merge::Hris::EmployeeRequestGroupsItem.from_json(json_object: item) end work_email = parsed_json["work_email"] personal_email = parsed_json["personal_email"] mobile_phone_number = parsed_json["mobile_phone_number"] employments = parsed_json["employments"]&.map do |item| item = item.to_json Merge::Hris::EmployeeRequestEmploymentsItem.from_json(json_object: item) end if parsed_json["home_location"].nil? home_location = nil else home_location = parsed_json["home_location"].to_json home_location = Merge::Hris::EmployeeRequestHomeLocation.from_json(json_object: home_location) end if parsed_json["work_location"].nil? work_location = nil else work_location = parsed_json["work_location"].to_json work_location = Merge::Hris::EmployeeRequestWorkLocation.from_json(json_object: work_location) end if parsed_json["manager"].nil? manager = nil else manager = parsed_json["manager"].to_json manager = Merge::Hris::EmployeeRequestManager.from_json(json_object: manager) end if parsed_json["team"].nil? team = nil else team = parsed_json["team"].to_json team = Merge::Hris::EmployeeRequestTeam.from_json(json_object: team) end if parsed_json["pay_group"].nil? pay_group = nil else pay_group = parsed_json["pay_group"].to_json pay_group = Merge::Hris::EmployeeRequestPayGroup.from_json(json_object: pay_group) end ssn = parsed_json["ssn"] gender = parsed_json["gender"] ethnicity = parsed_json["ethnicity"] marital_status = parsed_json["marital_status"] date_of_birth = (DateTime.parse(parsed_json["date_of_birth"]) unless parsed_json["date_of_birth"].nil?) hire_date = (DateTime.parse(parsed_json["hire_date"]) unless parsed_json["hire_date"].nil?) start_date = (DateTime.parse(parsed_json["start_date"]) unless parsed_json["start_date"].nil?) employment_status = parsed_json["employment_status"] termination_date = (DateTime.parse(parsed_json["termination_date"]) unless parsed_json["termination_date"].nil?) avatar = parsed_json["avatar"] integration_params = parsed_json["integration_params"] linked_account_params = parsed_json["linked_account_params"] new( employee_number: employee_number, company: company, first_name: first_name, last_name: last_name, preferred_name: preferred_name, display_full_name: display_full_name, username: username, groups: groups, work_email: work_email, personal_email: personal_email, mobile_phone_number: mobile_phone_number, employments: employments, home_location: home_location, work_location: work_location, manager: manager, team: team, pay_group: pay_group, ssn: ssn, gender: gender, ethnicity: ethnicity, marital_status: marital_status, date_of_birth: date_of_birth, hire_date: hire_date, start_date: start_date, employment_status: employment_status, termination_date: termination_date, avatar: avatar, integration_params: integration_params, linked_account_params: linked_account_params, additional_properties: struct ) end |
.validate_raw(obj:) ⇒ Void
Leveraged for Union-type generation, validate_raw attempts to parse the given
hash and check each fields type against the current object's property
definitions.
368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 368 def self.validate_raw(obj:) obj.employee_number&.is_a?(String) != false || raise("Passed value for field obj.employee_number is not the expected type, validation failed.") obj.company.nil? || Merge::Hris::EmployeeRequestCompany.validate_raw(obj: obj.company) obj.first_name&.is_a?(String) != false || raise("Passed value for field obj.first_name is not the expected type, validation failed.") obj.last_name&.is_a?(String) != false || raise("Passed value for field obj.last_name is not the expected type, validation failed.") obj.preferred_name&.is_a?(String) != false || raise("Passed value for field obj.preferred_name is not the expected type, validation failed.") obj.display_full_name&.is_a?(String) != false || raise("Passed value for field obj.display_full_name is not the expected type, validation failed.") obj.username&.is_a?(String) != false || raise("Passed value for field obj.username is not the expected type, validation failed.") obj.groups&.is_a?(Array) != false || raise("Passed value for field obj.groups is not the expected type, validation failed.") obj.work_email&.is_a?(String) != false || raise("Passed value for field obj.work_email is not the expected type, validation failed.") obj.personal_email&.is_a?(String) != false || raise("Passed value for field obj.personal_email is not the expected type, validation failed.") obj.mobile_phone_number&.is_a?(String) != false || raise("Passed value for field obj.mobile_phone_number is not the expected type, validation failed.") obj.employments&.is_a?(Array) != false || raise("Passed value for field obj.employments is not the expected type, validation failed.") obj.home_location.nil? || Merge::Hris::EmployeeRequestHomeLocation.validate_raw(obj: obj.home_location) obj.work_location.nil? || Merge::Hris::EmployeeRequestWorkLocation.validate_raw(obj: obj.work_location) obj.manager.nil? || Merge::Hris::EmployeeRequestManager.validate_raw(obj: obj.manager) obj.team.nil? || Merge::Hris::EmployeeRequestTeam.validate_raw(obj: obj.team) obj.pay_group.nil? || Merge::Hris::EmployeeRequestPayGroup.validate_raw(obj: obj.pay_group) obj.ssn&.is_a?(String) != false || raise("Passed value for field obj.ssn is not the expected type, validation failed.") obj.gender&.is_a?(Merge::Hris::GenderEnum) != false || raise("Passed value for field obj.gender is not the expected type, validation failed.") obj.ethnicity&.is_a?(Merge::Hris::EthnicityEnum) != false || raise("Passed value for field obj.ethnicity is not the expected type, validation failed.") obj.marital_status&.is_a?(Merge::Hris::MaritalStatusEnum) != false || raise("Passed value for field obj.marital_status is not the expected type, validation failed.") obj.date_of_birth&.is_a?(DateTime) != false || raise("Passed value for field obj.date_of_birth is not the expected type, validation failed.") obj.hire_date&.is_a?(DateTime) != false || raise("Passed value for field obj.hire_date is not the expected type, validation failed.") obj.start_date&.is_a?(DateTime) != false || raise("Passed value for field obj.start_date is not the expected type, validation failed.") obj.employment_status&.is_a?(Merge::Hris::EmploymentStatusEnum) != false || raise("Passed value for field obj.employment_status is not the expected type, validation failed.") obj.termination_date&.is_a?(DateTime) != false || raise("Passed value for field obj.termination_date is not the expected type, validation failed.") obj.avatar&.is_a?(String) != false || raise("Passed value for field obj.avatar is not the expected type, validation failed.") obj.integration_params&.is_a?(Hash) != false || raise("Passed value for field obj.integration_params is not the expected type, validation failed.") obj.linked_account_params&.is_a?(Hash) != false || raise("Passed value for field obj.linked_account_params is not the expected type, validation failed.") end |
Instance Method Details
#to_json(*_args) ⇒ String
Serialize an instance of EmployeeRequest to a JSON object
358 359 360 |
# File 'lib/merge_ruby_client/hris/types/employee_request.rb', line 358 def to_json(*_args) @_field_set&.to_json end |