Class: VitableConnect::Models::Employee
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- VitableConnect::Models::Employee
- Defined in:
- lib/vitable_connect/models/employee.rb,
sig/vitable_connect/models/employee.rbs
Defined Under Namespace
Modules: CompensationType, Status Classes: Address, Deduction
Instance Attribute Summary collapse
-
#address ⇒ VitableConnect::Models::Employee::Address?
Employee's residential address.
-
#classification_effective_date ⇒ Date
Returns the value of attribute classification_effective_date.
-
#compensation_type ⇒ VitableConnect::Models::Employee::compensation_type?
Returns the value of attribute compensation_type.
-
#compensation_type_effective_date ⇒ Date
Returns the value of attribute compensation_type_effective_date.
-
#created_at ⇒ Time
Timestamp when the employee was created.
-
#date_of_birth ⇒ Date
Date of birth (YYYY-MM-DD).
-
#deductions ⇒ Array<VitableConnect::Models::Employee::Deduction>
Payroll deductions from the most recent statement period.
-
#email ⇒ String
Email address.
-
#employee_class ⇒ Symbol, VitableConnect::Models::EmployeeClass
Full Time- Full Time -Part Time- Part Time -Temporary- Temporary -Intern- Intern -Seasonal- Seasonal -Individual Contractor- Individual Contractor.
-
#employer_id ⇒ String
Returns the value of attribute employer_id.
-
#employer_name ⇒ String?
Name of the employer this employment is with.
-
#first_name ⇒ String
Employee's legal first name.
-
#gender ⇒ String?
Gender identity, if provided.
-
#id ⇒ String
Returns the value of attribute id.
-
#last_name ⇒ String
Employee's legal last name.
-
#member_id ⇒ String
Returns the value of attribute member_id.
-
#phone ⇒ String?
Returns the value of attribute phone.
-
#reference_id ⇒ String?
Partner-assigned reference ID for the employee.
-
#start_date ⇒ Date
Returns the value of attribute start_date.
-
#status ⇒ VitableConnect::Models::Employee::status
Returns the value of attribute status.
-
#suffix ⇒ String?
Name suffix (e.g., Jr., Sr., III).
-
#termination_date ⇒ Date?
Employee's termination date, if terminated.
-
#updated_at ⇒ Time
Timestamp when the employee was last updated.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, classification_effective_date:, compensation_type:, compensation_type_effective_date:, created_at:, date_of_birth:, deductions:, email:, employee_class:, employer_id:, first_name:, last_name:, member_id:, phone:, start_date:, status:, updated_at:, address: nil, employer_name: nil, gender: nil, reference_id: nil, suffix: nil, termination_date: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see Employee for more details.
- #to_hash ⇒ {
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, 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
#initialize(id:, classification_effective_date:, compensation_type:, compensation_type_effective_date:, created_at:, date_of_birth:, deductions:, email:, employee_class:, employer_id:, first_name:, last_name:, member_id:, phone:, start_date:, status:, updated_at:, address: nil, employer_name: nil, gender: nil, reference_id: nil, suffix: nil, termination_date: nil) ⇒ Object
Some parameter documentations has been truncated, see VitableConnect::Models::Employee for more details.
|
|
# File 'lib/vitable_connect/models/employee.rb', line 153
|
Instance Attribute Details
#address ⇒ VitableConnect::Models::Employee::Address?
Employee's residential address
64 |
# File 'lib/vitable_connect/models/employee.rb', line 64 optional :address, -> { VitableConnect::Employee::Address }, nil?: true |
#classification_effective_date ⇒ Date
Returns the value of attribute classification_effective_date.
61 62 63 |
# File 'sig/vitable_connect/models/employee.rbs', line 61 def classification_effective_date @classification_effective_date end |
#compensation_type ⇒ VitableConnect::Models::Employee::compensation_type?
Returns the value of attribute compensation_type.
63 64 65 |
# File 'sig/vitable_connect/models/employee.rbs', line 63 def compensation_type @compensation_type end |
#compensation_type_effective_date ⇒ Date
Returns the value of attribute compensation_type_effective_date.
65 66 67 |
# File 'sig/vitable_connect/models/employee.rbs', line 65 def compensation_type_effective_date @compensation_type_effective_date end |
#created_at ⇒ Time
Timestamp when the employee was created
10 |
# File 'lib/vitable_connect/models/employee.rb', line 10 required :created_at, Time |
#date_of_birth ⇒ Date
Date of birth (YYYY-MM-DD)
16 |
# File 'lib/vitable_connect/models/employee.rb', line 16 required :date_of_birth, Date |
#deductions ⇒ Array<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] } |
#email ⇒ String
Email address
29 |
# File 'lib/vitable_connect/models/employee.rb', line 29 required :email, String |
#employee_class ⇒ Symbol, VitableConnect::Models::EmployeeClass
Full Time- Full TimePart Time- Part TimeTemporary- TemporaryIntern- InternSeasonal- SeasonalIndividual Contractor- Individual Contractor
40 |
# File 'lib/vitable_connect/models/employee.rb', line 40 required :employee_class, enum: -> { VitableConnect::EmployeeClass } |
#employer_id ⇒ String
Returns the value of attribute employer_id.
67 68 69 |
# File 'sig/vitable_connect/models/employee.rbs', line 67 def employer_id @employer_id end |
#employer_name ⇒ String?
Name of the employer this employment is with
70 |
# File 'lib/vitable_connect/models/employee.rb', line 70 optional :employer_name, String, nil?: true |
#first_name ⇒ String
Employee's legal first name
46 |
# File 'lib/vitable_connect/models/employee.rb', line 46 required :first_name, String |
#gender ⇒ String?
Gender identity, if provided
76 |
# File 'lib/vitable_connect/models/employee.rb', line 76 optional :gender, String, nil?: true |
#id ⇒ String
Returns the value of attribute id.
59 60 61 |
# File 'sig/vitable_connect/models/employee.rbs', line 59 def id @id end |
#last_name ⇒ String
Employee's legal last name
52 |
# File 'lib/vitable_connect/models/employee.rb', line 52 required :last_name, String |
#member_id ⇒ String
Returns the value of attribute member_id.
69 70 71 |
# File 'sig/vitable_connect/models/employee.rbs', line 69 def member_id @member_id end |
#phone ⇒ String?
Returns the value of attribute phone.
71 72 73 |
# File 'sig/vitable_connect/models/employee.rbs', line 71 def phone @phone end |
#reference_id ⇒ String?
Partner-assigned reference ID for the employee
82 |
# File 'lib/vitable_connect/models/employee.rb', line 82 optional :reference_id, String, nil?: true |
#start_date ⇒ Date
Returns the value of attribute start_date.
73 74 75 |
# File 'sig/vitable_connect/models/employee.rbs', line 73 def start_date @start_date end |
#status ⇒ VitableConnect::Models::Employee::status
Returns the value of attribute status.
75 76 77 |
# File 'sig/vitable_connect/models/employee.rbs', line 75 def status @status end |
#suffix ⇒ String?
Name suffix (e.g., Jr., Sr., III)
88 |
# File 'lib/vitable_connect/models/employee.rb', line 88 optional :suffix, String, nil?: true |
#termination_date ⇒ Date?
Employee's termination date, if terminated
94 |
# File 'lib/vitable_connect/models/employee.rb', line 94 optional :termination_date, Date, nil?: true |
#updated_at ⇒ Time
Timestamp when the employee was last updated
58 |
# File 'lib/vitable_connect/models/employee.rb', line 58 required :updated_at, Time |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/vitable_connect/models/employee.rb', line 213
|
Instance Method Details
#to_hash ⇒ {
103 |
# File 'sig/vitable_connect/models/employee.rbs', line 103
def to_hash: -> {
|