merge_hris_client 2.0.3 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/docs/AccountDetails.md +3 -1
- data/docs/AccountDetailsAndActions.md +2 -0
- data/docs/BankInfo.md +1 -1
- data/docs/BankInfoApi.md +7 -3
- data/docs/Benefit.md +1 -1
- data/docs/BenefitsApi.md +2 -2
- data/docs/CompaniesApi.md +2 -2
- data/docs/Company.md +1 -1
- data/docs/DataPassthroughRequest.md +3 -1
- data/docs/Deduction.md +1 -1
- data/docs/DeductionsApi.md +2 -2
- data/docs/Earning.md +1 -3
- data/docs/Employee.md +4 -0
- data/docs/EmployeePayrollRun.md +1 -1
- data/docs/EmployeePayrollRunsApi.md +2 -2
- data/docs/EmployeeRequest.md +4 -0
- data/docs/EmployeesApi.md +7 -3
- data/docs/Employment.md +1 -1
- data/docs/EmploymentsApi.md +7 -3
- data/docs/EndUserDetailsRequest.md +9 -7
- data/docs/Group.md +1 -1
- data/docs/GroupsApi.md +7 -3
- data/docs/LinkToken.md +3 -1
- data/docs/LinkedAccountsApi.md +2 -0
- data/docs/Location.md +1 -1
- data/docs/LocationsApi.md +7 -3
- data/docs/PayGroup.md +1 -1
- data/docs/PayGroupsApi.md +2 -2
- data/docs/PayrollRun.md +1 -1
- data/docs/PayrollRunsApi.md +7 -3
- data/docs/RemoteResponse.md +5 -1
- data/docs/ResponseTypeEnum.md +15 -0
- data/docs/SyncStatus.md +2 -2
- data/docs/SyncStatusApi.md +1 -1
- data/docs/Tax.md +1 -3
- data/docs/Team.md +1 -1
- data/docs/TeamsApi.md +2 -2
- data/docs/TimeOffApi.md +7 -3
- data/docs/TimeOffBalance.md +1 -1
- data/docs/TimeOffBalancesApi.md +7 -3
- data/lib/merge_hris_client/api/bank_info_api.rb +16 -2
- data/lib/merge_hris_client/api/benefits_api.rb +2 -2
- data/lib/merge_hris_client/api/companies_api.rb +2 -2
- data/lib/merge_hris_client/api/deductions_api.rb +2 -2
- data/lib/merge_hris_client/api/employee_payroll_runs_api.rb +2 -2
- data/lib/merge_hris_client/api/employees_api.rb +16 -2
- data/lib/merge_hris_client/api/employments_api.rb +16 -2
- data/lib/merge_hris_client/api/groups_api.rb +16 -2
- data/lib/merge_hris_client/api/linked_accounts_api.rb +3 -0
- data/lib/merge_hris_client/api/locations_api.rb +16 -2
- data/lib/merge_hris_client/api/pay_groups_api.rb +2 -2
- data/lib/merge_hris_client/api/payroll_runs_api.rb +16 -2
- data/lib/merge_hris_client/api/sync_status_api.rb +2 -2
- data/lib/merge_hris_client/api/teams_api.rb +2 -2
- data/lib/merge_hris_client/api/time_off_api.rb +16 -2
- data/lib/merge_hris_client/api/time_off_balances_api.rb +16 -2
- data/lib/merge_hris_client/models/account_details.rb +15 -4
- data/lib/merge_hris_client/models/account_details_and_actions.rb +12 -1
- data/lib/merge_hris_client/models/account_details_and_actions_status_enum.rb +17 -7
- data/lib/merge_hris_client/models/account_type_enum.rb +17 -7
- data/lib/merge_hris_client/models/bank_info.rb +1 -1
- data/lib/merge_hris_client/models/benefit.rb +1 -1
- data/lib/merge_hris_client/models/categories_enum.rb +17 -7
- data/lib/merge_hris_client/models/category_enum.rb +17 -7
- data/lib/merge_hris_client/models/company.rb +1 -1
- data/lib/merge_hris_client/models/country_enum.rb +17 -7
- data/lib/merge_hris_client/models/data_passthrough_request.rb +15 -6
- data/lib/merge_hris_client/models/deduction.rb +1 -1
- data/lib/merge_hris_client/models/earning.rb +2 -14
- data/lib/merge_hris_client/models/earning_type_enum.rb +17 -7
- data/lib/merge_hris_client/models/employee.rb +24 -2
- data/lib/merge_hris_client/models/employee_payroll_run.rb +1 -1
- data/lib/merge_hris_client/models/employee_request.rb +24 -2
- data/lib/merge_hris_client/models/employment.rb +1 -1
- data/lib/merge_hris_client/models/employment_status_enum.rb +17 -7
- data/lib/merge_hris_client/models/employment_type_enum.rb +17 -7
- data/lib/merge_hris_client/models/encoding_enum.rb +18 -7
- data/lib/merge_hris_client/models/end_user_details_request.rb +28 -11
- data/lib/merge_hris_client/models/ethnicity_enum.rb +17 -7
- data/lib/merge_hris_client/models/flsa_status_enum.rb +17 -7
- data/lib/merge_hris_client/models/gender_enum.rb +17 -7
- data/lib/merge_hris_client/models/group.rb +1 -1
- data/lib/merge_hris_client/models/group_type_enum.rb +17 -7
- data/lib/merge_hris_client/models/issue.rb +1 -1
- data/lib/merge_hris_client/models/issue_status_enum.rb +17 -7
- data/lib/merge_hris_client/models/link_token.rb +13 -4
- data/lib/merge_hris_client/models/location.rb +1 -1
- data/lib/merge_hris_client/models/location_type_enum.rb +17 -7
- data/lib/merge_hris_client/models/marital_status_enum.rb +17 -7
- data/lib/merge_hris_client/models/meta_response.rb +1 -1
- data/lib/merge_hris_client/models/method_enum.rb +17 -7
- data/lib/merge_hris_client/models/pay_currency_enum.rb +17 -7
- data/lib/merge_hris_client/models/pay_frequency_enum.rb +17 -7
- data/lib/merge_hris_client/models/pay_group.rb +1 -1
- data/lib/merge_hris_client/models/pay_period_enum.rb +17 -7
- data/lib/merge_hris_client/models/payroll_run.rb +1 -1
- data/lib/merge_hris_client/models/policy_type_enum.rb +17 -7
- data/lib/merge_hris_client/models/reason_enum.rb +17 -7
- data/lib/merge_hris_client/models/remote_response.rb +23 -9
- data/lib/merge_hris_client/models/request_format_enum.rb +17 -7
- data/lib/merge_hris_client/models/request_type_enum.rb +17 -7
- data/lib/merge_hris_client/models/response_type_enum.rb +45 -0
- data/lib/merge_hris_client/models/run_state_enum.rb +17 -7
- data/lib/merge_hris_client/models/run_type_enum.rb +17 -7
- data/lib/merge_hris_client/models/sync_status.rb +0 -10
- data/lib/merge_hris_client/models/sync_status_status_enum.rb +18 -7
- data/lib/merge_hris_client/models/tax.rb +2 -14
- data/lib/merge_hris_client/models/team.rb +1 -1
- data/lib/merge_hris_client/models/time_off_balance.rb +1 -1
- data/lib/merge_hris_client/models/time_off_status_enum.rb +17 -7
- data/lib/merge_hris_client/models/units_enum.rb +17 -7
- data/lib/merge_hris_client/version.rb +1 -1
- data/lib/merge_hris_client.rb +1 -1
- data/spec/api/bank_info_api_spec.rb +3 -1
- data/spec/api/benefits_api_spec.rb +1 -1
- data/spec/api/companies_api_spec.rb +1 -1
- data/spec/api/deductions_api_spec.rb +1 -1
- data/spec/api/employee_payroll_runs_api_spec.rb +1 -1
- data/spec/api/employees_api_spec.rb +3 -1
- data/spec/api/employments_api_spec.rb +3 -1
- data/spec/api/groups_api_spec.rb +3 -1
- data/spec/api/linked_accounts_api_spec.rb +1 -0
- data/spec/api/locations_api_spec.rb +3 -1
- data/spec/api/pay_groups_api_spec.rb +1 -1
- data/spec/api/payroll_runs_api_spec.rb +3 -1
- data/spec/api/sync_status_api_spec.rb +1 -1
- data/spec/api/teams_api_spec.rb +1 -1
- data/spec/api/time_off_api_spec.rb +3 -1
- data/spec/api/time_off_balances_api_spec.rb +3 -1
- data/spec/models/account_details_and_actions_spec.rb +6 -0
- data/spec/models/account_details_spec.rb +6 -0
- data/spec/models/data_passthrough_request_spec.rb +6 -0
- data/spec/models/earning_spec.rb +0 -6
- data/spec/models/employee_request_spec.rb +12 -0
- data/spec/models/employee_spec.rb +12 -0
- data/spec/models/end_user_details_request_spec.rb +6 -0
- data/spec/models/link_token_spec.rb +6 -0
- data/spec/models/remote_response_spec.rb +12 -0
- data/spec/models/response_type_enum_spec.rb +28 -0
- data/spec/models/tax_spec.rb +0 -6
- metadata +105 -101
@@ -21,18 +21,28 @@ module MergeHRISClient
|
|
21
21
|
FAILED = "FAILED".freeze
|
22
22
|
CLOSED = "CLOSED".freeze
|
23
23
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
new.build_from_hash(value)
|
29
|
-
end
|
24
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
25
|
+
|
26
|
+
attr_accessor :value
|
27
|
+
attr_accessor :raw_value
|
30
28
|
|
31
29
|
# Builds the enum from string
|
32
30
|
# @param [String] The enum value in the form of the string
|
33
31
|
# @return [String] The enum value
|
34
32
|
def build_from_hash(value)
|
35
|
-
value
|
33
|
+
@raw_value = value
|
34
|
+
if ["PAID", "DRAFT", "APPROVED", "FAILED", "CLOSED", ].include? value
|
35
|
+
@value = value
|
36
|
+
else
|
37
|
+
@value = MERGE_NONSTANDARD_VALUE
|
38
|
+
end
|
39
|
+
|
40
|
+
self
|
41
|
+
end
|
42
|
+
|
43
|
+
def self.build_from_hash(value)
|
44
|
+
IssueStatusEnum.new.build_from_hash(value)
|
36
45
|
end
|
37
46
|
end
|
47
|
+
|
38
48
|
end
|
@@ -21,18 +21,28 @@ module MergeHRISClient
|
|
21
21
|
TERMINATION = "TERMINATION".freeze
|
22
22
|
SIGN_ON_BONUS = "SIGN_ON_BONUS".freeze
|
23
23
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
new.build_from_hash(value)
|
29
|
-
end
|
24
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
25
|
+
|
26
|
+
attr_accessor :value
|
27
|
+
attr_accessor :raw_value
|
30
28
|
|
31
29
|
# Builds the enum from string
|
32
30
|
# @param [String] The enum value in the form of the string
|
33
31
|
# @return [String] The enum value
|
34
32
|
def build_from_hash(value)
|
35
|
-
value
|
33
|
+
@raw_value = value
|
34
|
+
if ["REGULAR", "OFF_CYCLE", "CORRECTION", "TERMINATION", "SIGN_ON_BONUS", ].include? value
|
35
|
+
@value = value
|
36
|
+
else
|
37
|
+
@value = MERGE_NONSTANDARD_VALUE
|
38
|
+
end
|
39
|
+
|
40
|
+
self
|
41
|
+
end
|
42
|
+
|
43
|
+
def self.build_from_hash(value)
|
44
|
+
IssueStatusEnum.new.build_from_hash(value)
|
36
45
|
end
|
37
46
|
end
|
47
|
+
|
38
48
|
end
|
@@ -115,14 +115,6 @@ module MergeHRISClient
|
|
115
115
|
invalid_properties.push('invalid value for "model_id", model_id cannot be nil.')
|
116
116
|
end
|
117
117
|
|
118
|
-
if @last_sync_start.nil?
|
119
|
-
invalid_properties.push('invalid value for "last_sync_start", last_sync_start cannot be nil.')
|
120
|
-
end
|
121
|
-
|
122
|
-
if @next_sync_start.nil?
|
123
|
-
invalid_properties.push('invalid value for "next_sync_start", next_sync_start cannot be nil.')
|
124
|
-
end
|
125
|
-
|
126
118
|
if @status.nil?
|
127
119
|
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
128
120
|
end
|
@@ -139,8 +131,6 @@ module MergeHRISClient
|
|
139
131
|
def valid?
|
140
132
|
return false if @model_name.nil?
|
141
133
|
return false if @model_id.nil?
|
142
|
-
return false if @last_sync_start.nil?
|
143
|
-
return false if @next_sync_start.nil?
|
144
134
|
return false if @status.nil?
|
145
135
|
return false if @is_initial_sync.nil?
|
146
136
|
true
|
@@ -19,19 +19,30 @@ module MergeHRISClient
|
|
19
19
|
DONE = "DONE".freeze
|
20
20
|
FAILED = "FAILED".freeze
|
21
21
|
DISABLED = "DISABLED".freeze
|
22
|
+
PAUSED = "PAUSED".freeze
|
22
23
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
new.build_from_hash(value)
|
28
|
-
end
|
24
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
25
|
+
|
26
|
+
attr_accessor :value
|
27
|
+
attr_accessor :raw_value
|
29
28
|
|
30
29
|
# Builds the enum from string
|
31
30
|
# @param [String] The enum value in the form of the string
|
32
31
|
# @return [String] The enum value
|
33
32
|
def build_from_hash(value)
|
34
|
-
value
|
33
|
+
@raw_value = value
|
34
|
+
if ["SYNCING", "DONE", "FAILED", "DISABLED", "PAUSED", ].include? value
|
35
|
+
@value = value
|
36
|
+
else
|
37
|
+
@value = MERGE_NONSTANDARD_VALUE
|
38
|
+
end
|
39
|
+
|
40
|
+
self
|
41
|
+
end
|
42
|
+
|
43
|
+
def self.build_from_hash(value)
|
44
|
+
IssueStatusEnum.new.build_from_hash(value)
|
35
45
|
end
|
36
46
|
end
|
47
|
+
|
37
48
|
end
|
@@ -29,9 +29,7 @@ module MergeHRISClient
|
|
29
29
|
# Whether or not the employer is responsible for paying the tax.
|
30
30
|
attr_accessor :employer_tax
|
31
31
|
|
32
|
-
|
33
|
-
|
34
|
-
# Indicates whether or not this object has been deleted on the third-party.
|
32
|
+
# Indicates whether or not this object has been deleted by third party webhooks.
|
35
33
|
attr_accessor :remote_was_deleted
|
36
34
|
|
37
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -42,7 +40,6 @@ module MergeHRISClient
|
|
42
40
|
:'name' => :'name',
|
43
41
|
:'amount' => :'amount',
|
44
42
|
:'employer_tax' => :'employer_tax',
|
45
|
-
:'remote_data' => :'remote_data',
|
46
43
|
:'remote_was_deleted' => :'remote_was_deleted'
|
47
44
|
}
|
48
45
|
end
|
@@ -60,7 +57,6 @@ module MergeHRISClient
|
|
60
57
|
:'name' => :'String',
|
61
58
|
:'amount' => :'Float',
|
62
59
|
:'employer_tax' => :'Boolean',
|
63
|
-
:'remote_data' => :'Array<Hash<String, AnyType>>',
|
64
60
|
:'remote_was_deleted' => :'Boolean'
|
65
61
|
}
|
66
62
|
end
|
@@ -72,7 +68,6 @@ module MergeHRISClient
|
|
72
68
|
:'name',
|
73
69
|
:'amount',
|
74
70
|
:'employer_tax',
|
75
|
-
:'remote_data',
|
76
71
|
])
|
77
72
|
end
|
78
73
|
|
@@ -111,12 +106,6 @@ module MergeHRISClient
|
|
111
106
|
self.employer_tax = attributes[:'employer_tax']
|
112
107
|
end
|
113
108
|
|
114
|
-
if attributes.key?(:'remote_data')
|
115
|
-
if (value = attributes[:'remote_data']).is_a?(Array)
|
116
|
-
self.remote_data = value
|
117
|
-
end
|
118
|
-
end
|
119
|
-
|
120
109
|
if attributes.key?(:'remote_was_deleted')
|
121
110
|
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
122
111
|
end
|
@@ -145,7 +134,6 @@ module MergeHRISClient
|
|
145
134
|
name == o.name &&
|
146
135
|
amount == o.amount &&
|
147
136
|
employer_tax == o.employer_tax &&
|
148
|
-
remote_data == o.remote_data &&
|
149
137
|
remote_was_deleted == o.remote_was_deleted
|
150
138
|
end
|
151
139
|
|
@@ -158,7 +146,7 @@ module MergeHRISClient
|
|
158
146
|
# Calculates hash code according to all attributes.
|
159
147
|
# @return [Integer] Hash code
|
160
148
|
def hash
|
161
|
-
[id, employee_payroll_run, name, amount, employer_tax,
|
149
|
+
[id, employee_payroll_run, name, amount, employer_tax, remote_was_deleted].hash
|
162
150
|
end
|
163
151
|
|
164
152
|
# Builds the object from hash
|
@@ -28,7 +28,7 @@ module MergeHRISClient
|
|
28
28
|
|
29
29
|
attr_accessor :remote_data
|
30
30
|
|
31
|
-
# Indicates whether or not this object has been deleted
|
31
|
+
# Indicates whether or not this object has been deleted by third party webhooks.
|
32
32
|
attr_accessor :remote_was_deleted
|
33
33
|
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -34,7 +34,7 @@ module MergeHRISClient
|
|
34
34
|
|
35
35
|
attr_accessor :remote_data
|
36
36
|
|
37
|
-
# Indicates whether or not this object has been deleted
|
37
|
+
# Indicates whether or not this object has been deleted by third party webhooks.
|
38
38
|
attr_accessor :remote_was_deleted
|
39
39
|
|
40
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -21,18 +21,28 @@ module MergeHRISClient
|
|
21
21
|
CANCELLED = "CANCELLED".freeze
|
22
22
|
DELETED = "DELETED".freeze
|
23
23
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
new.build_from_hash(value)
|
29
|
-
end
|
24
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
25
|
+
|
26
|
+
attr_accessor :value
|
27
|
+
attr_accessor :raw_value
|
30
28
|
|
31
29
|
# Builds the enum from string
|
32
30
|
# @param [String] The enum value in the form of the string
|
33
31
|
# @return [String] The enum value
|
34
32
|
def build_from_hash(value)
|
35
|
-
value
|
33
|
+
@raw_value = value
|
34
|
+
if ["REQUESTED", "APPROVED", "DECLINED", "CANCELLED", "DELETED", ].include? value
|
35
|
+
@value = value
|
36
|
+
else
|
37
|
+
@value = MERGE_NONSTANDARD_VALUE
|
38
|
+
end
|
39
|
+
|
40
|
+
self
|
41
|
+
end
|
42
|
+
|
43
|
+
def self.build_from_hash(value)
|
44
|
+
IssueStatusEnum.new.build_from_hash(value)
|
36
45
|
end
|
37
46
|
end
|
47
|
+
|
38
48
|
end
|
@@ -18,18 +18,28 @@ module MergeHRISClient
|
|
18
18
|
HOURS = "HOURS".freeze
|
19
19
|
DAYS = "DAYS".freeze
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
new.build_from_hash(value)
|
26
|
-
end
|
21
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
22
|
+
|
23
|
+
attr_accessor :value
|
24
|
+
attr_accessor :raw_value
|
27
25
|
|
28
26
|
# Builds the enum from string
|
29
27
|
# @param [String] The enum value in the form of the string
|
30
28
|
# @return [String] The enum value
|
31
29
|
def build_from_hash(value)
|
32
|
-
value
|
30
|
+
@raw_value = value
|
31
|
+
if ["HOURS", "DAYS", ].include? value
|
32
|
+
@value = value
|
33
|
+
else
|
34
|
+
@value = MERGE_NONSTANDARD_VALUE
|
35
|
+
end
|
36
|
+
|
37
|
+
self
|
38
|
+
end
|
39
|
+
|
40
|
+
def self.build_from_hash(value)
|
41
|
+
IssueStatusEnum.new.build_from_hash(value)
|
33
42
|
end
|
34
43
|
end
|
44
|
+
|
35
45
|
end
|
data/lib/merge_hris_client.rb
CHANGED
@@ -92,12 +92,12 @@ require 'merge_hris_client/models/payroll_run'
|
|
92
92
|
require 'merge_hris_client/models/policy_type_enum'
|
93
93
|
require 'merge_hris_client/models/reason_enum'
|
94
94
|
require 'merge_hris_client/models/remote_data'
|
95
|
-
require 'merge_hris_client/models/remote_data_request'
|
96
95
|
require 'merge_hris_client/models/remote_key'
|
97
96
|
require 'merge_hris_client/models/remote_key_for_regeneration_request'
|
98
97
|
require 'merge_hris_client/models/remote_response'
|
99
98
|
require 'merge_hris_client/models/request_format_enum'
|
100
99
|
require 'merge_hris_client/models/request_type_enum'
|
100
|
+
require 'merge_hris_client/models/response_type_enum'
|
101
101
|
require 'merge_hris_client/models/run_state_enum'
|
102
102
|
require 'merge_hris_client/models/run_type_enum'
|
103
103
|
require 'merge_hris_client/models/sync_status'
|
@@ -43,12 +43,13 @@ describe 'BankInfoApi' do
|
|
43
43
|
# @option opts [String] :cursor The pagination cursor value.
|
44
44
|
# @option opts [String] :employee_id If provided, will only return bank accounts for this employee.
|
45
45
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
46
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
46
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
47
47
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
48
48
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
49
49
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
50
50
|
# @option opts [String] :order_by Overrides the default ordering for this endpoint.
|
51
51
|
# @option opts [Integer] :page_size Number of results to return per page.
|
52
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
52
53
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
53
54
|
# @return [PaginatedBankInfoList]
|
54
55
|
describe 'bank_info_list test' do
|
@@ -64,6 +65,7 @@ describe 'BankInfoApi' do
|
|
64
65
|
# @param [Hash] opts the optional parameters
|
65
66
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
66
67
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
68
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
67
69
|
# @return [BankInfo]
|
68
70
|
describe 'bank_info_retrieve test' do
|
69
71
|
it 'should work' do
|
@@ -41,7 +41,7 @@ describe 'BenefitsApi' do
|
|
41
41
|
# @option opts [String] :cursor The pagination cursor value.
|
42
42
|
# @option opts [String] :employee_id If provided, will only return time off for this employee.
|
43
43
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
44
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
44
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
45
45
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
46
46
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
47
47
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -39,7 +39,7 @@ describe 'CompaniesApi' do
|
|
39
39
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
40
40
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
41
41
|
# @option opts [String] :cursor The pagination cursor value.
|
42
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
42
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
43
43
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
44
44
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
45
45
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -40,7 +40,7 @@ describe 'DeductionsApi' do
|
|
40
40
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
41
41
|
# @option opts [String] :cursor The pagination cursor value.
|
42
42
|
# @option opts [String] :employee_payroll_run_id If provided, will only return deductions for this employee payroll run.
|
43
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
43
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
44
44
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
45
45
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
46
46
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -43,7 +43,7 @@ describe 'EmployeePayrollRunsApi' do
|
|
43
43
|
# @option opts [Time] :ended_after If provided, will only return employee payroll runs ended after this datetime.
|
44
44
|
# @option opts [Time] :ended_before If provided, will only return employee payroll runs ended before this datetime.
|
45
45
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
46
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
46
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
47
47
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
48
48
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
49
49
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -71,7 +71,7 @@ describe 'EmployeesApi' do
|
|
71
71
|
# @option opts [String] :employment_status If provided, will only return employees with this employment status.
|
72
72
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
73
73
|
# @option opts [String] :first_name If provided, will only return employees with this first name.
|
74
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
74
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
75
75
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
76
76
|
# @option opts [Boolean] :include_sensitive_fields Whether to include sensitive fields (such as social security numbers) in the response.
|
77
77
|
# @option opts [String] :last_name If provided, will only return employees with this last name.
|
@@ -81,6 +81,7 @@ describe 'EmployeesApi' do
|
|
81
81
|
# @option opts [Integer] :page_size Number of results to return per page.
|
82
82
|
# @option opts [String] :pay_group_id If provided, will only return employees for this pay group
|
83
83
|
# @option opts [String] :personal_email If provided, will only return Employees with this personal email
|
84
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
84
85
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
85
86
|
# @option opts [String] :team_id If provided, will only return employees for this team.
|
86
87
|
# @option opts [String] :work_email If provided, will only return Employees with this work email
|
@@ -111,6 +112,7 @@ describe 'EmployeesApi' do
|
|
111
112
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
112
113
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
113
114
|
# @option opts [Boolean] :include_sensitive_fields Whether to include sensitive fields (such as social security numbers) in the response.
|
115
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
114
116
|
# @return [Employee]
|
115
117
|
describe 'employees_retrieve test' do
|
116
118
|
it 'should work' do
|
@@ -41,12 +41,13 @@ describe 'EmploymentsApi' do
|
|
41
41
|
# @option opts [String] :cursor The pagination cursor value.
|
42
42
|
# @option opts [String] :employee_id If provided, will only return employments for this employee.
|
43
43
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
44
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
44
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
45
45
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
46
46
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
47
47
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
48
48
|
# @option opts [String] :order_by Overrides the default ordering for this endpoint.
|
49
49
|
# @option opts [Integer] :page_size Number of results to return per page.
|
50
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
50
51
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
51
52
|
# @return [PaginatedEmploymentList]
|
52
53
|
describe 'employments_list test' do
|
@@ -62,6 +63,7 @@ describe 'EmploymentsApi' do
|
|
62
63
|
# @param [Hash] opts the optional parameters
|
63
64
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
64
65
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
66
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
65
67
|
# @return [Employment]
|
66
68
|
describe 'employments_retrieve test' do
|
67
69
|
it 'should work' do
|
data/spec/api/groups_api_spec.rb
CHANGED
@@ -39,11 +39,12 @@ describe 'GroupsApi' do
|
|
39
39
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
40
40
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
41
41
|
# @option opts [String] :cursor The pagination cursor value.
|
42
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
42
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
43
43
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
44
44
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
45
45
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
46
46
|
# @option opts [Integer] :page_size Number of results to return per page.
|
47
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
47
48
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
48
49
|
# @return [PaginatedGroupList]
|
49
50
|
describe 'groups_list test' do
|
@@ -58,6 +59,7 @@ describe 'GroupsApi' do
|
|
58
59
|
# @param id
|
59
60
|
# @param [Hash] opts the optional parameters
|
60
61
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
62
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
61
63
|
# @return [Group]
|
62
64
|
describe 'groups_retrieve test' do
|
63
65
|
it 'should work' do
|
@@ -43,6 +43,7 @@ describe 'LinkedAccountsApi' do
|
|
43
43
|
# @option opts [String] :end_user_origin_ids Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once.
|
44
44
|
# @option opts [String] :id
|
45
45
|
# @option opts [String] :ids Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once.
|
46
|
+
# @option opts [Boolean] :include_duplicates If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account.
|
46
47
|
# @option opts [String] :integration_name If provided, will only return linked accounts associated with the given integration name.
|
47
48
|
# @option opts [String] :is_test_account If included, will only include test linked accounts. If not included, will only include non-test linked accounts.
|
48
49
|
# @option opts [Integer] :page_size Number of results to return per page.
|
@@ -39,11 +39,12 @@ describe 'LocationsApi' do
|
|
39
39
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
40
40
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
41
41
|
# @option opts [String] :cursor The pagination cursor value.
|
42
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
42
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
43
43
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
44
44
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
45
45
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
46
46
|
# @option opts [Integer] :page_size Number of results to return per page.
|
47
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
47
48
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
48
49
|
# @return [PaginatedLocationList]
|
49
50
|
describe 'locations_list test' do
|
@@ -58,6 +59,7 @@ describe 'LocationsApi' do
|
|
58
59
|
# @param id
|
59
60
|
# @param [Hash] opts the optional parameters
|
60
61
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
62
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
61
63
|
# @return [Location]
|
62
64
|
describe 'locations_retrieve test' do
|
63
65
|
it 'should work' do
|
@@ -39,7 +39,7 @@ describe 'PayGroupsApi' do
|
|
39
39
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
40
40
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
41
41
|
# @option opts [String] :cursor The pagination cursor value.
|
42
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
42
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
43
43
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
44
44
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
45
45
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -41,11 +41,12 @@ describe 'PayrollRunsApi' do
|
|
41
41
|
# @option opts [String] :cursor The pagination cursor value.
|
42
42
|
# @option opts [Time] :ended_after If provided, will only return payroll runs ended after this datetime.
|
43
43
|
# @option opts [Time] :ended_before If provided, will only return payroll runs ended before this datetime.
|
44
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
44
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
45
45
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
46
46
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
47
47
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
48
48
|
# @option opts [Integer] :page_size Number of results to return per page.
|
49
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
49
50
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
50
51
|
# @option opts [String] :run_type If provided, will only return PayrollRun's with this status. Options: ('REGULAR', 'OFF_CYCLE', 'CORRECTION', 'TERMINATION', 'SIGN_ON_BONUS')
|
51
52
|
# @option opts [Time] :started_after If provided, will only return payroll runs started after this datetime.
|
@@ -63,6 +64,7 @@ describe 'PayrollRunsApi' do
|
|
63
64
|
# @param id
|
64
65
|
# @param [Hash] opts the optional parameters
|
65
66
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
67
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
66
68
|
# @return [PayrollRun]
|
67
69
|
describe 'payroll_runs_retrieve test' do
|
68
70
|
it 'should work' do
|
@@ -33,7 +33,7 @@ describe 'SyncStatusApi' do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for sync_status_list
|
36
|
-
# Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `SYNCING`
|
36
|
+
# Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PAUSED`, `SYNCING`
|
37
37
|
# @param x_account_token Token identifying the end user.
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @option opts [String] :cursor The pagination cursor value.
|
data/spec/api/teams_api_spec.rb
CHANGED
@@ -40,7 +40,7 @@ describe 'TeamsApi' do
|
|
40
40
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
41
41
|
# @option opts [String] :cursor The pagination cursor value.
|
42
42
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
43
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
43
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
44
44
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
45
45
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
46
46
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -56,11 +56,12 @@ describe 'TimeOffApi' do
|
|
56
56
|
# @option opts [String] :cursor The pagination cursor value.
|
57
57
|
# @option opts [String] :employee_id If provided, will only return time off for this employee.
|
58
58
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
59
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
59
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
60
60
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
61
61
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
62
62
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
63
63
|
# @option opts [Integer] :page_size Number of results to return per page.
|
64
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
64
65
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
65
66
|
# @option opts [String] :request_type If provided, will only return TimeOff with this request type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT')
|
66
67
|
# @option opts [String] :status If provided, will only return TimeOff with this status. Options: ('REQUESTED', 'APPROVED', 'DECLINED', 'CANCELLED', 'DELETED')
|
@@ -89,6 +90,7 @@ describe 'TimeOffApi' do
|
|
89
90
|
# @param [Hash] opts the optional parameters
|
90
91
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
91
92
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
93
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
92
94
|
# @return [TimeOff]
|
93
95
|
describe 'time_off_retrieve test' do
|
94
96
|
it 'should work' do
|
@@ -41,12 +41,13 @@ describe 'TimeOffBalancesApi' do
|
|
41
41
|
# @option opts [String] :cursor The pagination cursor value.
|
42
42
|
# @option opts [String] :employee_id If provided, will only return time off balances for this employee.
|
43
43
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
44
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
44
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
45
45
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
46
46
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
47
47
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
48
48
|
# @option opts [Integer] :page_size Number of results to return per page.
|
49
49
|
# @option opts [String] :policy_type If provided, will only return TimeOffBalance with this policy type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT')
|
50
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
50
51
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
51
52
|
# @return [PaginatedTimeOffBalanceList]
|
52
53
|
describe 'time_off_balances_list test' do
|
@@ -62,6 +63,7 @@ describe 'TimeOffBalancesApi' do
|
|
62
63
|
# @param [Hash] opts the optional parameters
|
63
64
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
64
65
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
66
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
65
67
|
# @return [TimeOffBalance]
|
66
68
|
describe 'time_off_balances_retrieve test' do
|
67
69
|
it 'should work' do
|
@@ -73,6 +73,12 @@ describe MergeHRISClient::AccountDetailsAndActions do
|
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|
76
|
+
describe 'test attribute "is_duplicate"' 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
|
+
|
76
82
|
describe 'test attribute "integration"' do
|
77
83
|
it 'should work' do
|
78
84
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -67,4 +67,10 @@ describe MergeHRISClient::DataPassthroughRequest do
|
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
|
+
describe 'test attribute "normalize_response"' 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
|
+
|
70
76
|
end
|