merge_hris_client 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +33 -9
- data/docs/AccountDetails.md +30 -0
- data/docs/AccountDetailsAndActions.md +32 -0
- data/docs/AccountDetailsAndActionsIntegration.md +32 -0
- data/docs/AccountDetailsAndActionsStatusEnum.md +15 -0
- data/docs/AccountDetailsApi.md +76 -0
- data/docs/AccountTypeEnum.md +15 -0
- data/docs/BankInfo.md +34 -0
- data/docs/BankInfoApi.md +193 -0
- data/docs/BenefitsApi.md +2 -78
- data/docs/{StateEnum.md → CategoriesEnum.md} +2 -2
- data/docs/{NullEnum.md → CategoryEnum.md} +2 -2
- data/docs/CompaniesApi.md +3 -1
- data/docs/DataPassthroughRequest.md +5 -3
- data/docs/DeductionsApi.md +179 -0
- data/docs/Employee.md +12 -8
- data/docs/EmployeePayrollRun.md +3 -3
- data/docs/EmployeePayrollRunsApi.md +13 -3
- data/docs/EmployeesApi.md +12 -82
- data/docs/Employment.md +3 -1
- data/docs/EmploymentsApi.md +7 -78
- data/docs/EndUserDetailsRequest.md +1 -1
- data/docs/ErrorValidationProblem.md +24 -0
- data/docs/ForceResyncApi.md +79 -0
- data/docs/IssuesApi.md +11 -10
- data/docs/LinkedAccountsApi.md +103 -0
- data/docs/Location.md +2 -0
- data/docs/LocationsApi.md +2 -0
- data/docs/PaginatedAccountDetailsAndActionsList.md +22 -0
- data/docs/PaginatedBankInfoList.md +22 -0
- data/docs/PaginatedDeductionList.md +22 -0
- data/docs/PaginatedIssueList.md +2 -2
- data/docs/PaginatedPayGroupList.md +22 -0
- data/docs/PaginatedSyncStatusList.md +2 -2
- data/docs/PayGroup.md +24 -0
- data/docs/PayGroupsApi.md +177 -0
- data/docs/PayrollRun.md +3 -3
- data/docs/PayrollRunsApi.md +13 -1
- data/docs/PolicyTypeEnum.md +15 -0
- data/docs/RequestFormatEnum.md +15 -0
- data/docs/SyncStatusApi.md +3 -74
- data/docs/TeamsApi.md +7 -2
- data/docs/TimeOff.md +3 -3
- data/docs/TimeOffApi.md +88 -4
- data/docs/TimeOffBalance.md +4 -2
- data/docs/{TimeOffBalanceApi.md → TimeOffBalancesApi.md} +26 -22
- data/docs/TimeOffEndpointRequest.md +18 -0
- data/docs/TimeOffRequest.md +36 -0
- data/docs/TimeOffResponse.md +22 -0
- data/docs/ValidationProblemSource.md +18 -0
- data/docs/WarningValidationProblem.md +24 -0
- data/lib/merge_hris_client/api/account_details_api.rb +77 -0
- data/lib/merge_hris_client/api/bank_info_api.rb +222 -0
- data/lib/merge_hris_client/api/benefits_api.rb +3 -69
- data/lib/merge_hris_client/api/companies_api.rb +3 -0
- data/lib/merge_hris_client/api/deductions_api.rb +185 -0
- data/lib/merge_hris_client/api/employee_payroll_runs_api.rb +17 -2
- data/lib/merge_hris_client/api/employees_api.rb +18 -75
- data/lib/merge_hris_client/api/employments_api.rb +24 -69
- data/lib/merge_hris_client/api/force_resync_api.rb +84 -0
- data/lib/merge_hris_client/api/issues_api.rb +10 -10
- data/lib/merge_hris_client/api/linked_accounts_api.rb +117 -0
- data/lib/merge_hris_client/api/locations_api.rb +3 -0
- data/lib/merge_hris_client/api/pay_groups_api.rb +182 -0
- data/lib/merge_hris_client/api/payroll_runs_api.rb +22 -0
- data/lib/merge_hris_client/api/sync_status_api.rb +4 -4
- data/lib/merge_hris_client/api/teams_api.rb +17 -0
- data/lib/merge_hris_client/api/time_off_api.rb +92 -2
- data/lib/merge_hris_client/api/time_off_balances_api.rb +206 -0
- data/lib/merge_hris_client/models/account_details.rb +273 -0
- data/lib/merge_hris_client/models/account_details_and_actions.rb +302 -0
- data/lib/merge_hris_client/models/account_details_and_actions_integration.rb +310 -0
- data/lib/merge_hris_client/models/account_details_and_actions_status_enum.rb +36 -0
- data/lib/merge_hris_client/models/account_integration.rb +1 -1
- data/lib/merge_hris_client/models/account_type_enum.rb +35 -0
- data/lib/merge_hris_client/models/bank_info.rb +323 -0
- data/lib/merge_hris_client/models/categories_enum.rb +36 -0
- data/lib/merge_hris_client/models/category_enum.rb +36 -0
- data/lib/merge_hris_client/models/data_passthrough_request.rb +66 -9
- data/lib/merge_hris_client/models/employee.rb +32 -8
- data/lib/merge_hris_client/models/employment.rb +12 -1
- data/lib/merge_hris_client/models/end_user_details_request.rb +73 -1
- data/lib/merge_hris_client/models/error_validation_problem.rb +260 -0
- data/lib/merge_hris_client/models/generate_remote_key_request.rb +19 -0
- data/lib/merge_hris_client/models/location.rb +12 -1
- data/lib/merge_hris_client/models/marital_status_enum.rb +1 -1
- data/lib/merge_hris_client/models/paginated_account_details_and_actions_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_bank_info_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_deduction_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_pay_group_list.rb +240 -0
- data/lib/merge_hris_client/models/{benefit_request.rb → pay_group.rb} +31 -54
- data/lib/merge_hris_client/models/policy_type_enum.rb +39 -0
- data/lib/merge_hris_client/models/remote_data_request.rb +19 -0
- data/lib/merge_hris_client/models/remote_key_for_regeneration_request.rb +19 -0
- data/lib/merge_hris_client/models/request_format_enum.rb +35 -0
- data/lib/merge_hris_client/models/request_type_enum.rb +2 -1
- data/lib/merge_hris_client/models/sync_status_status_enum.rb +2 -0
- data/lib/merge_hris_client/models/time_off_balance.rb +14 -3
- data/lib/merge_hris_client/models/time_off_endpoint_request.rb +223 -0
- data/lib/merge_hris_client/models/{employment_request.rb → time_off_request.rb} +80 -69
- data/lib/merge_hris_client/models/time_off_response.rb +255 -0
- data/lib/merge_hris_client/models/validation_problem_source.rb +223 -0
- data/lib/merge_hris_client/models/warning_validation_problem.rb +260 -0
- data/lib/merge_hris_client/version.rb +1 -1
- data/lib/merge_hris_client.rb +28 -4
- data/spec/api/account_details_api_spec.rb +45 -0
- data/spec/api/account_token_api_spec.rb +1 -1
- data/spec/api/available_actions_api_spec.rb +1 -1
- data/spec/api/bank_info_api_spec.rb +76 -0
- data/spec/api/benefits_api_spec.rb +4 -1
- data/spec/api/companies_api_spec.rb +4 -1
- data/spec/api/deductions_api_spec.rb +69 -0
- data/spec/api/employee_payroll_runs_api_spec.rb +9 -2
- data/spec/api/employees_api_spec.rb +9 -1
- data/spec/api/employments_api_spec.rb +7 -1
- data/spec/api/force_resync_api_spec.rb +46 -0
- data/spec/api/issues_api_spec.rb +5 -5
- data/spec/api/link_token_api_spec.rb +2 -2
- data/spec/api/linked_accounts_api_spec.rb +57 -0
- data/spec/api/locations_api_spec.rb +4 -1
- data/spec/api/passthrough_api_spec.rb +2 -3
- data/spec/api/pay_groups_api_spec.rb +68 -0
- data/spec/api/payroll_runs_api_spec.rb +9 -1
- data/spec/api/regenerate_key_api_spec.rb +2 -2
- data/spec/api/sync_status_api_spec.rb +2 -13
- data/spec/api/teams_api_spec.rb +7 -1
- data/spec/api/time_off_api_spec.rb +20 -2
- data/spec/api/{time_off_balance_api_spec.rb → time_off_balances_api_spec.rb} +13 -11
- data/spec/models/account_details_and_actions_integration_spec.rb +76 -0
- data/spec/models/account_details_and_actions_spec.rb +76 -0
- data/spec/models/account_details_and_actions_status_enum_spec.rb +28 -0
- data/spec/models/{benefit_request_spec.rb → account_details_spec.rb} +18 -12
- data/spec/models/account_integration_spec.rb +7 -1
- data/spec/models/account_token_spec.rb +7 -1
- data/spec/models/account_type_enum_spec.rb +28 -0
- data/spec/models/available_actions_spec.rb +13 -1
- data/spec/models/{employment_request_spec.rb → bank_info_spec.rb} +15 -15
- data/spec/models/benefit_plan_type_enum_spec.rb +1 -1
- data/spec/models/benefit_spec.rb +7 -1
- data/spec/models/categories_enum_spec.rb +28 -0
- data/spec/models/{state_enum_spec.rb → category_enum_spec.rb} +7 -7
- data/spec/models/company_spec.rb +7 -1
- data/spec/models/country_enum_spec.rb +1 -1
- data/spec/models/data_passthrough_request_spec.rb +7 -1
- data/spec/models/deduction_spec.rb +7 -1
- data/spec/models/earning_spec.rb +7 -1
- data/spec/models/employee_payroll_run_spec.rb +7 -1
- data/spec/models/employee_spec.rb +31 -1
- data/spec/models/employment_spec.rb +13 -1
- data/spec/models/employment_status_enum_spec.rb +1 -1
- data/spec/models/employment_type_enum_spec.rb +1 -1
- data/spec/models/end_user_details_request_spec.rb +7 -5
- data/spec/models/{end_user_details_spec.rb → error_validation_problem_spec.rb} +11 -15
- data/spec/models/ethnicity_enum_spec.rb +1 -1
- data/spec/models/flsa_status_enum_spec.rb +1 -1
- data/spec/models/gender_enum_spec.rb +1 -1
- data/spec/models/link_token_spec.rb +1 -1
- data/spec/models/location_spec.rb +13 -1
- data/spec/models/marital_status_enum_spec.rb +1 -1
- data/spec/models/method_enum_spec.rb +1 -1
- data/spec/models/model_operation_spec.rb +13 -1
- data/spec/models/paginated_account_details_and_actions_list_spec.rb +46 -0
- data/spec/models/paginated_bank_info_list_spec.rb +46 -0
- data/spec/models/paginated_benefit_list_spec.rb +1 -1
- data/spec/models/paginated_company_list_spec.rb +1 -1
- data/spec/models/paginated_deduction_list_spec.rb +46 -0
- data/spec/models/paginated_employee_list_spec.rb +1 -1
- data/spec/models/paginated_employee_payroll_run_list_spec.rb +1 -1
- data/spec/models/paginated_employment_list_spec.rb +1 -1
- data/spec/models/paginated_location_list_spec.rb +1 -1
- data/spec/models/paginated_pay_group_list_spec.rb +46 -0
- data/spec/models/paginated_payroll_run_list_spec.rb +1 -1
- data/spec/models/paginated_team_list_spec.rb +1 -1
- data/spec/models/paginated_time_off_list_spec.rb +1 -1
- data/spec/models/pay_currency_enum_spec.rb +1 -1
- data/spec/models/pay_frequency_enum_spec.rb +1 -1
- data/spec/models/{data_passthrough_spec.rb → pay_group_spec.rb} +11 -11
- data/spec/models/pay_period_enum_spec.rb +1 -1
- data/spec/models/payroll_run_spec.rb +7 -1
- data/spec/models/policy_type_enum_spec.rb +28 -0
- data/spec/models/remote_data_spec.rb +1 -1
- data/spec/models/remote_key_for_regeneration_request_spec.rb +1 -1
- data/spec/models/remote_key_spec.rb +1 -1
- data/spec/models/remote_response_spec.rb +1 -1
- data/spec/models/request_format_enum_spec.rb +28 -0
- data/spec/models/request_type_enum_spec.rb +1 -1
- data/spec/models/run_state_enum_spec.rb +1 -1
- data/spec/models/run_type_enum_spec.rb +1 -1
- data/spec/models/tax_spec.rb +7 -1
- data/spec/models/team_spec.rb +13 -1
- data/spec/models/time_off_balance_spec.rb +6 -0
- data/spec/models/{remote_key_for_regeneration_spec.rb → time_off_endpoint_request_spec.rb} +8 -8
- data/spec/models/time_off_request_spec.rb +88 -0
- data/spec/models/time_off_response_spec.rb +46 -0
- data/spec/models/time_off_spec.rb +19 -1
- data/spec/models/time_off_status_enum_spec.rb +1 -1
- data/spec/models/type_enum_spec.rb +1 -1
- data/spec/models/units_enum_spec.rb +1 -1
- data/spec/models/validation_problem_source_spec.rb +34 -0
- data/spec/models/warning_validation_problem_spec.rb +52 -0
- data/test_ruby.rb +11 -14
- metadata +115 -33
- data/docs/BenefitRequest.md +0 -28
- data/docs/DataPassthrough.md +0 -24
- data/docs/EmployeeRequest.md +0 -62
- data/docs/EmploymentRequest.md +0 -34
- data/docs/EndUserDetails.md +0 -24
- data/docs/RemoteKeyForRegeneration.md +0 -18
- data/lib/merge_hris_client/models/employee_request.rb +0 -523
- data/merge_hris_client-1.0.0.gem +0 -0
- data/merge_hris_client-1.0.1.gem +0 -0
- data/spec/models/employee_request_spec.rb +0 -160
@@ -1,523 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Merge HRIS API
|
3
|
-
|
4
|
-
#The unified API for building rich integrations with multiple HR Information System platforms.
|
5
|
-
|
6
|
-
The version of the OpenAPI document: 1.0
|
7
|
-
Contact: hello@merge.dev
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.1.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
require 'time'
|
15
|
-
|
16
|
-
module MergeHRISClient
|
17
|
-
# # The Employee Object ### Description The `Employee` object is used to represent an Employee for a company. ### Usage Example Fetch from the `LIST Employee` endpoint and filter by `ID` to show all employees.
|
18
|
-
class EmployeeRequest
|
19
|
-
# The third-party API ID of the matching object.
|
20
|
-
attr_accessor :remote_id
|
21
|
-
|
22
|
-
# The employee's number that appears in the remote UI. Note: This is distinct from the remote_id field, which is a unique identifier for the employee set by the remote API, and is not exposed to the user.
|
23
|
-
attr_accessor :employee_number
|
24
|
-
|
25
|
-
# The ID of the employee's company.
|
26
|
-
attr_accessor :company
|
27
|
-
|
28
|
-
# The employee's first name.
|
29
|
-
attr_accessor :first_name
|
30
|
-
|
31
|
-
# The employee's last name.
|
32
|
-
attr_accessor :last_name
|
33
|
-
|
34
|
-
# The employee's full name, to use for display purposes.
|
35
|
-
attr_accessor :display_full_name
|
36
|
-
|
37
|
-
# The employee's work email.
|
38
|
-
attr_accessor :work_email
|
39
|
-
|
40
|
-
# The employee's personal email.
|
41
|
-
attr_accessor :personal_email
|
42
|
-
|
43
|
-
# The employee's mobile phone number.
|
44
|
-
attr_accessor :mobile_phone_number
|
45
|
-
|
46
|
-
# The employee's home address.
|
47
|
-
attr_accessor :home_location
|
48
|
-
|
49
|
-
# The employee's work address.
|
50
|
-
attr_accessor :work_location
|
51
|
-
|
52
|
-
# The employee ID of the employee's manager.
|
53
|
-
attr_accessor :manager
|
54
|
-
|
55
|
-
# The employee's team.
|
56
|
-
attr_accessor :team
|
57
|
-
|
58
|
-
# The employee's social security number.
|
59
|
-
attr_accessor :ssn
|
60
|
-
|
61
|
-
# The employee's gender.
|
62
|
-
attr_accessor :gender
|
63
|
-
|
64
|
-
# The employee's ethnicity.
|
65
|
-
attr_accessor :ethnicity
|
66
|
-
|
67
|
-
# The employee's marital status.
|
68
|
-
attr_accessor :marital_status
|
69
|
-
|
70
|
-
# The employee's date of birth.
|
71
|
-
attr_accessor :date_of_birth
|
72
|
-
|
73
|
-
# The employee's hire date. If an employee has multiple hire dates from previous employments, this represents the most recent hire date.
|
74
|
-
attr_accessor :hire_date
|
75
|
-
|
76
|
-
# The employee's start date.
|
77
|
-
attr_accessor :start_date
|
78
|
-
|
79
|
-
# The employment status of the employee.
|
80
|
-
attr_accessor :employment_status
|
81
|
-
|
82
|
-
# The employee's termination date.
|
83
|
-
attr_accessor :termination_date
|
84
|
-
|
85
|
-
# The URL of the employee's avatar image.
|
86
|
-
attr_accessor :avatar
|
87
|
-
|
88
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
89
|
-
def self.attribute_map
|
90
|
-
{
|
91
|
-
:'remote_id' => :'remote_id',
|
92
|
-
:'employee_number' => :'employee_number',
|
93
|
-
:'company' => :'company',
|
94
|
-
:'first_name' => :'first_name',
|
95
|
-
:'last_name' => :'last_name',
|
96
|
-
:'display_full_name' => :'display_full_name',
|
97
|
-
:'work_email' => :'work_email',
|
98
|
-
:'personal_email' => :'personal_email',
|
99
|
-
:'mobile_phone_number' => :'mobile_phone_number',
|
100
|
-
:'home_location' => :'home_location',
|
101
|
-
:'work_location' => :'work_location',
|
102
|
-
:'manager' => :'manager',
|
103
|
-
:'team' => :'team',
|
104
|
-
:'ssn' => :'ssn',
|
105
|
-
:'gender' => :'gender',
|
106
|
-
:'ethnicity' => :'ethnicity',
|
107
|
-
:'marital_status' => :'marital_status',
|
108
|
-
:'date_of_birth' => :'date_of_birth',
|
109
|
-
:'hire_date' => :'hire_date',
|
110
|
-
:'start_date' => :'start_date',
|
111
|
-
:'employment_status' => :'employment_status',
|
112
|
-
:'termination_date' => :'termination_date',
|
113
|
-
:'avatar' => :'avatar'
|
114
|
-
}
|
115
|
-
end
|
116
|
-
|
117
|
-
# Returns all the JSON keys this model knows about
|
118
|
-
def self.acceptable_attributes
|
119
|
-
attribute_map.values
|
120
|
-
end
|
121
|
-
|
122
|
-
# Attribute type mapping.
|
123
|
-
def self.openapi_types
|
124
|
-
{
|
125
|
-
:'remote_id' => :'String',
|
126
|
-
:'employee_number' => :'String',
|
127
|
-
:'company' => :'String',
|
128
|
-
:'first_name' => :'String',
|
129
|
-
:'last_name' => :'String',
|
130
|
-
:'display_full_name' => :'String',
|
131
|
-
:'work_email' => :'String',
|
132
|
-
:'personal_email' => :'String',
|
133
|
-
:'mobile_phone_number' => :'String',
|
134
|
-
:'home_location' => :'String',
|
135
|
-
:'work_location' => :'String',
|
136
|
-
:'manager' => :'String',
|
137
|
-
:'team' => :'String',
|
138
|
-
:'ssn' => :'String',
|
139
|
-
:'gender' => :'GenderEnum',
|
140
|
-
:'ethnicity' => :'EthnicityEnum',
|
141
|
-
:'marital_status' => :'MaritalStatusEnum',
|
142
|
-
:'date_of_birth' => :'Time',
|
143
|
-
:'hire_date' => :'Time',
|
144
|
-
:'start_date' => :'Time',
|
145
|
-
:'employment_status' => :'EmploymentStatusEnum',
|
146
|
-
:'termination_date' => :'Time',
|
147
|
-
:'avatar' => :'String'
|
148
|
-
}
|
149
|
-
end
|
150
|
-
|
151
|
-
# List of attributes with nullable: true
|
152
|
-
def self.openapi_nullable
|
153
|
-
Set.new([
|
154
|
-
:'remote_id',
|
155
|
-
:'employee_number',
|
156
|
-
:'company',
|
157
|
-
:'first_name',
|
158
|
-
:'last_name',
|
159
|
-
:'display_full_name',
|
160
|
-
:'work_email',
|
161
|
-
:'personal_email',
|
162
|
-
:'mobile_phone_number',
|
163
|
-
:'home_location',
|
164
|
-
:'work_location',
|
165
|
-
:'manager',
|
166
|
-
:'team',
|
167
|
-
:'ssn',
|
168
|
-
:'gender',
|
169
|
-
:'ethnicity',
|
170
|
-
:'marital_status',
|
171
|
-
:'date_of_birth',
|
172
|
-
:'hire_date',
|
173
|
-
:'start_date',
|
174
|
-
:'employment_status',
|
175
|
-
:'termination_date',
|
176
|
-
:'avatar'
|
177
|
-
])
|
178
|
-
end
|
179
|
-
|
180
|
-
# Initializes the object
|
181
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
182
|
-
def initialize(attributes = {})
|
183
|
-
if (!attributes.is_a?(Hash))
|
184
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `MergeHRISClient::EmployeeRequest` initialize method"
|
185
|
-
end
|
186
|
-
|
187
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
188
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
189
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
190
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `MergeHRISClient::EmployeeRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
191
|
-
end
|
192
|
-
h[k.to_sym] = v
|
193
|
-
}
|
194
|
-
|
195
|
-
if attributes.key?(:'remote_id')
|
196
|
-
self.remote_id = attributes[:'remote_id']
|
197
|
-
end
|
198
|
-
|
199
|
-
if attributes.key?(:'employee_number')
|
200
|
-
self.employee_number = attributes[:'employee_number']
|
201
|
-
end
|
202
|
-
|
203
|
-
if attributes.key?(:'company')
|
204
|
-
self.company = attributes[:'company']
|
205
|
-
end
|
206
|
-
|
207
|
-
if attributes.key?(:'first_name')
|
208
|
-
self.first_name = attributes[:'first_name']
|
209
|
-
end
|
210
|
-
|
211
|
-
if attributes.key?(:'last_name')
|
212
|
-
self.last_name = attributes[:'last_name']
|
213
|
-
end
|
214
|
-
|
215
|
-
if attributes.key?(:'display_full_name')
|
216
|
-
self.display_full_name = attributes[:'display_full_name']
|
217
|
-
end
|
218
|
-
|
219
|
-
if attributes.key?(:'work_email')
|
220
|
-
self.work_email = attributes[:'work_email']
|
221
|
-
end
|
222
|
-
|
223
|
-
if attributes.key?(:'personal_email')
|
224
|
-
self.personal_email = attributes[:'personal_email']
|
225
|
-
end
|
226
|
-
|
227
|
-
if attributes.key?(:'mobile_phone_number')
|
228
|
-
self.mobile_phone_number = attributes[:'mobile_phone_number']
|
229
|
-
end
|
230
|
-
|
231
|
-
if attributes.key?(:'home_location')
|
232
|
-
self.home_location = attributes[:'home_location']
|
233
|
-
end
|
234
|
-
|
235
|
-
if attributes.key?(:'work_location')
|
236
|
-
self.work_location = attributes[:'work_location']
|
237
|
-
end
|
238
|
-
|
239
|
-
if attributes.key?(:'manager')
|
240
|
-
self.manager = attributes[:'manager']
|
241
|
-
end
|
242
|
-
|
243
|
-
if attributes.key?(:'team')
|
244
|
-
self.team = attributes[:'team']
|
245
|
-
end
|
246
|
-
|
247
|
-
if attributes.key?(:'ssn')
|
248
|
-
self.ssn = attributes[:'ssn']
|
249
|
-
end
|
250
|
-
|
251
|
-
if attributes.key?(:'gender')
|
252
|
-
self.gender = attributes[:'gender']
|
253
|
-
end
|
254
|
-
|
255
|
-
if attributes.key?(:'ethnicity')
|
256
|
-
self.ethnicity = attributes[:'ethnicity']
|
257
|
-
end
|
258
|
-
|
259
|
-
if attributes.key?(:'marital_status')
|
260
|
-
self.marital_status = attributes[:'marital_status']
|
261
|
-
end
|
262
|
-
|
263
|
-
if attributes.key?(:'date_of_birth')
|
264
|
-
self.date_of_birth = attributes[:'date_of_birth']
|
265
|
-
end
|
266
|
-
|
267
|
-
if attributes.key?(:'hire_date')
|
268
|
-
self.hire_date = attributes[:'hire_date']
|
269
|
-
end
|
270
|
-
|
271
|
-
if attributes.key?(:'start_date')
|
272
|
-
self.start_date = attributes[:'start_date']
|
273
|
-
end
|
274
|
-
|
275
|
-
if attributes.key?(:'employment_status')
|
276
|
-
self.employment_status = attributes[:'employment_status']
|
277
|
-
end
|
278
|
-
|
279
|
-
if attributes.key?(:'termination_date')
|
280
|
-
self.termination_date = attributes[:'termination_date']
|
281
|
-
end
|
282
|
-
|
283
|
-
if attributes.key?(:'avatar')
|
284
|
-
self.avatar = attributes[:'avatar']
|
285
|
-
end
|
286
|
-
end
|
287
|
-
|
288
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
289
|
-
# @return Array for valid properties with the reasons
|
290
|
-
def list_invalid_properties
|
291
|
-
invalid_properties = Array.new
|
292
|
-
if !@work_email.nil? && @work_email.to_s.length > 254
|
293
|
-
invalid_properties.push('invalid value for "work_email", the character length must be smaller than or equal to 254.')
|
294
|
-
end
|
295
|
-
|
296
|
-
if !@personal_email.nil? && @personal_email.to_s.length > 254
|
297
|
-
invalid_properties.push('invalid value for "personal_email", the character length must be smaller than or equal to 254.')
|
298
|
-
end
|
299
|
-
|
300
|
-
if !@ssn.nil? && @ssn.to_s.length > 100
|
301
|
-
invalid_properties.push('invalid value for "ssn", the character length must be smaller than or equal to 100.')
|
302
|
-
end
|
303
|
-
|
304
|
-
if !@avatar.nil? && @avatar.to_s.length > 2000
|
305
|
-
invalid_properties.push('invalid value for "avatar", the character length must be smaller than or equal to 2000.')
|
306
|
-
end
|
307
|
-
|
308
|
-
invalid_properties
|
309
|
-
end
|
310
|
-
|
311
|
-
# Check to see if the all the properties in the model are valid
|
312
|
-
# @return true if the model is valid
|
313
|
-
def valid?
|
314
|
-
return false if !@work_email.nil? && @work_email.to_s.length > 254
|
315
|
-
return false if !@personal_email.nil? && @personal_email.to_s.length > 254
|
316
|
-
return false if !@ssn.nil? && @ssn.to_s.length > 100
|
317
|
-
return false if !@avatar.nil? && @avatar.to_s.length > 2000
|
318
|
-
true
|
319
|
-
end
|
320
|
-
|
321
|
-
# Custom attribute writer method with validation
|
322
|
-
# @param [Object] work_email Value to be assigned
|
323
|
-
def work_email=(work_email)
|
324
|
-
if !work_email.nil? && work_email.to_s.length > 254
|
325
|
-
fail ArgumentError, 'invalid value for "work_email", the character length must be smaller than or equal to 254.'
|
326
|
-
end
|
327
|
-
|
328
|
-
@work_email = work_email
|
329
|
-
end
|
330
|
-
|
331
|
-
# Custom attribute writer method with validation
|
332
|
-
# @param [Object] personal_email Value to be assigned
|
333
|
-
def personal_email=(personal_email)
|
334
|
-
if !personal_email.nil? && personal_email.to_s.length > 254
|
335
|
-
fail ArgumentError, 'invalid value for "personal_email", the character length must be smaller than or equal to 254.'
|
336
|
-
end
|
337
|
-
|
338
|
-
@personal_email = personal_email
|
339
|
-
end
|
340
|
-
|
341
|
-
# Custom attribute writer method with validation
|
342
|
-
# @param [Object] ssn Value to be assigned
|
343
|
-
def ssn=(ssn)
|
344
|
-
if !ssn.nil? && ssn.to_s.length > 100
|
345
|
-
fail ArgumentError, 'invalid value for "ssn", the character length must be smaller than or equal to 100.'
|
346
|
-
end
|
347
|
-
|
348
|
-
@ssn = ssn
|
349
|
-
end
|
350
|
-
|
351
|
-
# Custom attribute writer method with validation
|
352
|
-
# @param [Object] avatar Value to be assigned
|
353
|
-
def avatar=(avatar)
|
354
|
-
if !avatar.nil? && avatar.to_s.length > 2000
|
355
|
-
fail ArgumentError, 'invalid value for "avatar", the character length must be smaller than or equal to 2000.'
|
356
|
-
end
|
357
|
-
|
358
|
-
@avatar = avatar
|
359
|
-
end
|
360
|
-
|
361
|
-
# Checks equality by comparing each attribute.
|
362
|
-
# @param [Object] Object to be compared
|
363
|
-
def ==(o)
|
364
|
-
return true if self.equal?(o)
|
365
|
-
self.class == o.class &&
|
366
|
-
remote_id == o.remote_id &&
|
367
|
-
employee_number == o.employee_number &&
|
368
|
-
company == o.company &&
|
369
|
-
first_name == o.first_name &&
|
370
|
-
last_name == o.last_name &&
|
371
|
-
display_full_name == o.display_full_name &&
|
372
|
-
work_email == o.work_email &&
|
373
|
-
personal_email == o.personal_email &&
|
374
|
-
mobile_phone_number == o.mobile_phone_number &&
|
375
|
-
home_location == o.home_location &&
|
376
|
-
work_location == o.work_location &&
|
377
|
-
manager == o.manager &&
|
378
|
-
team == o.team &&
|
379
|
-
ssn == o.ssn &&
|
380
|
-
gender == o.gender &&
|
381
|
-
ethnicity == o.ethnicity &&
|
382
|
-
marital_status == o.marital_status &&
|
383
|
-
date_of_birth == o.date_of_birth &&
|
384
|
-
hire_date == o.hire_date &&
|
385
|
-
start_date == o.start_date &&
|
386
|
-
employment_status == o.employment_status &&
|
387
|
-
termination_date == o.termination_date &&
|
388
|
-
avatar == o.avatar
|
389
|
-
end
|
390
|
-
|
391
|
-
# @see the `==` method
|
392
|
-
# @param [Object] Object to be compared
|
393
|
-
def eql?(o)
|
394
|
-
self == o
|
395
|
-
end
|
396
|
-
|
397
|
-
# Calculates hash code according to all attributes.
|
398
|
-
# @return [Integer] Hash code
|
399
|
-
def hash
|
400
|
-
[remote_id, employee_number, company, first_name, last_name, display_full_name, work_email, personal_email, mobile_phone_number, home_location, work_location, manager, team, ssn, gender, ethnicity, marital_status, date_of_birth, hire_date, start_date, employment_status, termination_date, avatar].hash
|
401
|
-
end
|
402
|
-
|
403
|
-
# Builds the object from hash
|
404
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
405
|
-
# @return [Object] Returns the model itself
|
406
|
-
def self.build_from_hash(attributes)
|
407
|
-
new.build_from_hash(attributes)
|
408
|
-
end
|
409
|
-
|
410
|
-
# Builds the object from hash
|
411
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
412
|
-
# @return [Object] Returns the model itself
|
413
|
-
def build_from_hash(attributes)
|
414
|
-
return nil unless attributes.is_a?(Hash)
|
415
|
-
self.class.openapi_types.each_pair do |key, type|
|
416
|
-
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
417
|
-
self.send("#{key}=", nil)
|
418
|
-
elsif type =~ /\AArray<(.*)>/i
|
419
|
-
# check to ensure the input is an array given that the attribute
|
420
|
-
# is documented as an array but the input is not
|
421
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
422
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
423
|
-
end
|
424
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
425
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
426
|
-
end
|
427
|
-
end
|
428
|
-
|
429
|
-
self
|
430
|
-
end
|
431
|
-
|
432
|
-
# Deserializes the data based on type
|
433
|
-
# @param string type Data type
|
434
|
-
# @param string value Value to be deserialized
|
435
|
-
# @return [Object] Deserialized data
|
436
|
-
def _deserialize(type, value)
|
437
|
-
case type.to_sym
|
438
|
-
when :Time
|
439
|
-
Time.parse(value)
|
440
|
-
when :Date
|
441
|
-
Date.parse(value)
|
442
|
-
when :String
|
443
|
-
value.to_s
|
444
|
-
when :Integer
|
445
|
-
value.to_i
|
446
|
-
when :Float
|
447
|
-
value.to_f
|
448
|
-
when :Boolean
|
449
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
450
|
-
true
|
451
|
-
else
|
452
|
-
false
|
453
|
-
end
|
454
|
-
when :Object
|
455
|
-
# generic object (usually a Hash), return directly
|
456
|
-
value
|
457
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
458
|
-
inner_type = Regexp.last_match[:inner_type]
|
459
|
-
value.map { |v| _deserialize(inner_type, v) }
|
460
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
461
|
-
k_type = Regexp.last_match[:k_type]
|
462
|
-
v_type = Regexp.last_match[:v_type]
|
463
|
-
{}.tap do |hash|
|
464
|
-
value.each do |k, v|
|
465
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
466
|
-
end
|
467
|
-
end
|
468
|
-
else # model
|
469
|
-
# models (e.g. Pet) or oneOf
|
470
|
-
klass = MergeHRISClient.const_get(type)
|
471
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
472
|
-
end
|
473
|
-
end
|
474
|
-
|
475
|
-
# Returns the string representation of the object
|
476
|
-
# @return [String] String presentation of the object
|
477
|
-
def to_s
|
478
|
-
to_hash.to_s
|
479
|
-
end
|
480
|
-
|
481
|
-
# to_body is an alias to to_hash (backward compatibility)
|
482
|
-
# @return [Hash] Returns the object in the form of hash
|
483
|
-
def to_body
|
484
|
-
to_hash
|
485
|
-
end
|
486
|
-
|
487
|
-
# Returns the object in the form of hash
|
488
|
-
# @return [Hash] Returns the object in the form of hash
|
489
|
-
def to_hash
|
490
|
-
hash = {}
|
491
|
-
self.class.attribute_map.each_pair do |attr, param|
|
492
|
-
value = self.send(attr)
|
493
|
-
if value.nil?
|
494
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
495
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
496
|
-
end
|
497
|
-
|
498
|
-
hash[param] = _to_hash(value)
|
499
|
-
end
|
500
|
-
hash
|
501
|
-
end
|
502
|
-
|
503
|
-
# Outputs non-array value in the form of hash
|
504
|
-
# For object, use to_hash. Otherwise, just return the value
|
505
|
-
# @param [Object] value Any valid value
|
506
|
-
# @return [Hash] Returns the value in the form of hash
|
507
|
-
def _to_hash(value)
|
508
|
-
if value.is_a?(Array)
|
509
|
-
value.compact.map { |v| _to_hash(v) }
|
510
|
-
elsif value.is_a?(Hash)
|
511
|
-
{}.tap do |hash|
|
512
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
513
|
-
end
|
514
|
-
elsif value.respond_to? :to_hash
|
515
|
-
value.to_hash
|
516
|
-
else
|
517
|
-
value
|
518
|
-
end
|
519
|
-
end
|
520
|
-
|
521
|
-
end
|
522
|
-
|
523
|
-
end
|
data/merge_hris_client-1.0.0.gem
DELETED
Binary file
|
data/merge_hris_client-1.0.1.gem
DELETED
Binary file
|
@@ -1,160 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Merge HRIS API
|
3
|
-
|
4
|
-
#The unified API for building rich integrations with multiple HR Information System platforms.
|
5
|
-
|
6
|
-
The version of the OpenAPI document: 1.0
|
7
|
-
Contact: hello@merge.dev
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.1.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for MergeHRISClient::EmployeeRequest
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe MergeHRISClient::EmployeeRequest do
|
21
|
-
let(:instance) { MergeHRISClient::EmployeeRequest.new }
|
22
|
-
|
23
|
-
describe 'test an instance of EmployeeRequest' do
|
24
|
-
it 'should create an instance of EmployeeRequest' do
|
25
|
-
expect(instance).to be_instance_of(MergeHRISClient::EmployeeRequest)
|
26
|
-
end
|
27
|
-
end
|
28
|
-
describe 'test attribute "remote_id"' do
|
29
|
-
it 'should work' do
|
30
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
describe 'test attribute "employee_number"' do
|
35
|
-
it 'should work' do
|
36
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
describe 'test attribute "company"' do
|
41
|
-
it 'should work' do
|
42
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
describe 'test attribute "first_name"' do
|
47
|
-
it 'should work' do
|
48
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
|
-
describe 'test attribute "last_name"' do
|
53
|
-
it 'should work' do
|
54
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
|
-
describe 'test attribute "display_full_name"' do
|
59
|
-
it 'should work' do
|
60
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
-
end
|
62
|
-
end
|
63
|
-
|
64
|
-
describe 'test attribute "work_email"' do
|
65
|
-
it 'should work' do
|
66
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
|
-
describe 'test attribute "personal_email"' do
|
71
|
-
it 'should work' do
|
72
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
73
|
-
end
|
74
|
-
end
|
75
|
-
|
76
|
-
describe 'test attribute "mobile_phone_number"' do
|
77
|
-
it 'should work' do
|
78
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
79
|
-
end
|
80
|
-
end
|
81
|
-
|
82
|
-
describe 'test attribute "home_location"' do
|
83
|
-
it 'should work' do
|
84
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
85
|
-
end
|
86
|
-
end
|
87
|
-
|
88
|
-
describe 'test attribute "work_location"' do
|
89
|
-
it 'should work' do
|
90
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
91
|
-
end
|
92
|
-
end
|
93
|
-
|
94
|
-
describe 'test attribute "manager"' do
|
95
|
-
it 'should work' do
|
96
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
97
|
-
end
|
98
|
-
end
|
99
|
-
|
100
|
-
describe 'test attribute "team"' do
|
101
|
-
it 'should work' do
|
102
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
103
|
-
end
|
104
|
-
end
|
105
|
-
|
106
|
-
describe 'test attribute "ssn"' do
|
107
|
-
it 'should work' do
|
108
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
109
|
-
end
|
110
|
-
end
|
111
|
-
|
112
|
-
describe 'test attribute "gender"' do
|
113
|
-
it 'should work' do
|
114
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
115
|
-
end
|
116
|
-
end
|
117
|
-
|
118
|
-
describe 'test attribute "ethnicity"' do
|
119
|
-
it 'should work' do
|
120
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
121
|
-
end
|
122
|
-
end
|
123
|
-
|
124
|
-
describe 'test attribute "marital_status"' do
|
125
|
-
it 'should work' do
|
126
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
127
|
-
end
|
128
|
-
end
|
129
|
-
|
130
|
-
describe 'test attribute "date_of_birth"' do
|
131
|
-
it 'should work' do
|
132
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
133
|
-
end
|
134
|
-
end
|
135
|
-
|
136
|
-
describe 'test attribute "hire_date"' do
|
137
|
-
it 'should work' do
|
138
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
139
|
-
end
|
140
|
-
end
|
141
|
-
|
142
|
-
describe 'test attribute "employment_status"' do
|
143
|
-
it 'should work' do
|
144
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
145
|
-
end
|
146
|
-
end
|
147
|
-
|
148
|
-
describe 'test attribute "termination_date"' do
|
149
|
-
it 'should work' do
|
150
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
151
|
-
end
|
152
|
-
end
|
153
|
-
|
154
|
-
describe 'test attribute "avatar"' do
|
155
|
-
it 'should work' do
|
156
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
157
|
-
end
|
158
|
-
end
|
159
|
-
|
160
|
-
end
|