Class: VitableConnect::Models::Employee

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/vitable_connect/models/employee.rb

Defined Under Namespace

Classes: Address, Deduction

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

This class inherits a constructor from VitableConnect::Internal::Type::BaseModel

Instance Attribute Details

#addressVitableConnect::Models::Employee::Address?

Employee’s residential address



53
# File 'lib/vitable_connect/models/employee.rb', line 53

optional :address, -> { VitableConnect::Employee::Address }, nil?: true

#created_atTime

Timestamp when the employee was created

Returns:

  • (Time)


10
# File 'lib/vitable_connect/models/employee.rb', line 10

required :created_at, Time

#date_of_birthDate

Date of birth (YYYY-MM-DD)

Returns:

  • (Date)


16
# File 'lib/vitable_connect/models/employee.rb', line 16

required :date_of_birth, Date

#deductionsArray<VitableConnect::Models::Employee::Deduction>

Payroll deductions from the most recent statement period. Replaced when a new statement is generated.



23
# File 'lib/vitable_connect/models/employee.rb', line 23

required :deductions, -> { VitableConnect::Internal::Type::ArrayOf[VitableConnect::Employee::Deduction] }

#emailString

Email address

Returns:

  • (String)


29
# File 'lib/vitable_connect/models/employee.rb', line 29

required :email, String

#employee_classSymbol, ...

  • ‘Full Time` - Full Time

  • ‘Part Time` - Part Time

  • ‘Temporary` - Temporary

  • ‘Intern` - Intern

  • ‘Seasonal` - Seasonal

  • ‘Individual Contractor` - Individual Contractor

Returns:



64
# File 'lib/vitable_connect/models/employee.rb', line 64

optional :employee_class, enum: -> { VitableConnect::EmployeeClass }, nil?: true

#first_nameString

Employee’s legal first name

Returns:

  • (String)


35
# File 'lib/vitable_connect/models/employee.rb', line 35

required :first_name, String

#genderString?

Gender identity, if provided

Returns:

  • (String, nil)


70
# File 'lib/vitable_connect/models/employee.rb', line 70

optional :gender, String, nil?: true

#hire_dateDate?

Employee’s hire date with the employer

Returns:

  • (Date, nil)


76
# File 'lib/vitable_connect/models/employee.rb', line 76

optional :hire_date, Date, nil?: true

#last_nameString

Employee’s legal last name

Returns:

  • (String)


41
# File 'lib/vitable_connect/models/employee.rb', line 41

required :last_name, String

#phoneString?

Phone number (10-digit US domestic string)

Returns:

  • (String, nil)


82
# File 'lib/vitable_connect/models/employee.rb', line 82

optional :phone, String, nil?: true

#reference_idString?

Partner-assigned reference ID for the employee

Returns:

  • (String, nil)


88
# File 'lib/vitable_connect/models/employee.rb', line 88

optional :reference_id, String, nil?: true

#suffixString?

Name suffix (e.g., Jr., Sr., III)

Returns:

  • (String, nil)


94
# File 'lib/vitable_connect/models/employee.rb', line 94

optional :suffix, String, nil?: true

#termination_dateDate?

Employee’s termination date, if terminated

Returns:

  • (Date, nil)


100
# File 'lib/vitable_connect/models/employee.rb', line 100

optional :termination_date, Date, nil?: true

#updated_atTime

Timestamp when the employee was last updated

Returns:

  • (Time)


47
# File 'lib/vitable_connect/models/employee.rb', line 47

required :updated_at, Time

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/vitable_connect/models/employee.rb', line 258