merge_hris_client 2.0.0 → 2.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 +14 -5
- data/docs/AccountDetails.md +5 -1
- data/docs/AccountDetailsAndActions.md +2 -0
- data/docs/AccountDetailsApi.md +8 -5
- data/docs/BankInfo.md +3 -1
- data/docs/Benefit.md +3 -1
- data/docs/Company.md +5 -3
- data/docs/DataPassthroughRequest.md +1 -1
- data/docs/Deduction.md +3 -1
- data/docs/Earning.md +4 -2
- data/docs/Employee.md +11 -9
- data/docs/EmployeePayrollRun.md +3 -1
- data/docs/EmployeeRequest.md +8 -8
- data/docs/EmployeesApi.md +86 -4
- data/docs/Employment.md +8 -4
- data/docs/EndUserDetailsRequest.md +3 -3
- data/docs/ForceResyncApi.md +4 -4
- data/docs/Group.md +3 -1
- data/docs/IssuesApi.md +8 -0
- data/docs/LinkTokenApi.md +1 -1
- data/docs/LinkedAccountStatus.md +20 -0
- data/docs/LinkedAccountsApi.md +14 -14
- data/docs/Location.md +5 -3
- data/docs/MetaResponse.md +24 -0
- data/docs/PayGroup.md +3 -1
- data/docs/PayrollRun.md +3 -1
- data/docs/Tax.md +4 -2
- data/docs/Team.md +3 -1
- data/docs/TimeOff.md +5 -3
- data/docs/TimeOffApi.md +72 -0
- data/docs/TimeOffBalance.md +4 -2
- data/docs/TimeOffRequest.md +2 -2
- data/docs/WebhookReceiver.md +22 -0
- data/docs/WebhookReceiverRequest.md +22 -0
- data/docs/WebhookReceiversApi.md +153 -0
- data/lib/merge_hris_client/api/account_details_api.rb +10 -3
- data/lib/merge_hris_client/api/bank_info_api.rb +0 -1
- data/lib/merge_hris_client/api/employees_api.rb +88 -3
- data/lib/merge_hris_client/api/employments_api.rb +2 -2
- data/lib/merge_hris_client/api/force_resync_api.rb +3 -3
- data/lib/merge_hris_client/api/issues_api.rb +12 -0
- data/lib/merge_hris_client/api/linked_accounts_api.rb +15 -15
- data/lib/merge_hris_client/api/time_off_api.rb +62 -0
- data/lib/merge_hris_client/api/webhook_receivers_api.rb +154 -0
- data/lib/merge_hris_client/models/account_details.rb +22 -4
- data/lib/merge_hris_client/models/account_details_and_actions.rb +15 -1
- data/lib/merge_hris_client/models/account_details_and_actions_status_enum.rb +0 -1
- data/lib/merge_hris_client/models/account_type_enum.rb +0 -1
- data/lib/merge_hris_client/models/bank_info.rb +15 -5
- data/lib/merge_hris_client/models/benefit.rb +15 -5
- data/lib/merge_hris_client/models/categories_enum.rb +2 -1
- data/lib/merge_hris_client/models/category_enum.rb +2 -1
- data/lib/merge_hris_client/models/company.rb +16 -6
- data/lib/merge_hris_client/models/country_enum.rb +0 -1
- data/lib/merge_hris_client/models/data_passthrough_request.rb +1 -0
- data/lib/merge_hris_client/models/deduction.rb +15 -5
- data/lib/merge_hris_client/models/earning.rb +18 -5
- data/lib/merge_hris_client/models/earning_type_enum.rb +0 -1
- data/lib/merge_hris_client/models/employee.rb +15 -6
- data/lib/merge_hris_client/models/employee_payroll_run.rb +15 -5
- data/lib/merge_hris_client/models/employee_request.rb +1 -1
- data/lib/merge_hris_client/models/employment.rb +26 -6
- data/lib/merge_hris_client/models/employment_status_enum.rb +0 -1
- data/lib/merge_hris_client/models/employment_type_enum.rb +0 -1
- data/lib/merge_hris_client/models/encoding_enum.rb +0 -1
- data/lib/merge_hris_client/models/end_user_details_request.rb +34 -0
- data/lib/merge_hris_client/models/ethnicity_enum.rb +0 -1
- data/lib/merge_hris_client/models/flsa_status_enum.rb +0 -1
- data/lib/merge_hris_client/models/gender_enum.rb +0 -1
- data/lib/merge_hris_client/models/group.rb +16 -6
- data/lib/merge_hris_client/models/group_type_enum.rb +0 -1
- data/lib/merge_hris_client/models/issue_status_enum.rb +0 -1
- data/lib/merge_hris_client/models/{data_passthrough.rb → linked_account_status.rb} +24 -49
- data/lib/merge_hris_client/models/location.rb +16 -6
- data/lib/merge_hris_client/models/location_type_enum.rb +0 -1
- data/lib/merge_hris_client/models/marital_status_enum.rb +0 -1
- data/lib/merge_hris_client/models/meta_response.rb +262 -0
- data/lib/merge_hris_client/models/method_enum.rb +0 -1
- data/lib/merge_hris_client/models/pay_currency_enum.rb +0 -1
- data/lib/merge_hris_client/models/pay_frequency_enum.rb +0 -1
- data/lib/merge_hris_client/models/pay_group.rb +15 -5
- data/lib/merge_hris_client/models/pay_period_enum.rb +0 -1
- data/lib/merge_hris_client/models/payroll_run.rb +16 -6
- data/lib/merge_hris_client/models/policy_type_enum.rb +0 -1
- data/lib/merge_hris_client/models/reason_enum.rb +0 -1
- data/lib/merge_hris_client/models/request_format_enum.rb +0 -1
- data/lib/merge_hris_client/models/request_type_enum.rb +0 -1
- data/lib/merge_hris_client/models/run_state_enum.rb +0 -1
- data/lib/merge_hris_client/models/run_type_enum.rb +0 -1
- data/lib/merge_hris_client/models/sync_status_status_enum.rb +0 -1
- data/lib/merge_hris_client/models/tax.rb +18 -5
- data/lib/merge_hris_client/models/team.rb +15 -5
- data/lib/merge_hris_client/models/time_off.rb +14 -5
- data/lib/merge_hris_client/models/time_off_balance.rb +16 -6
- data/lib/merge_hris_client/models/time_off_status_enum.rb +0 -1
- data/lib/merge_hris_client/models/units_enum.rb +0 -1
- data/lib/merge_hris_client/models/{remote_key_for_regeneration.rb → webhook_receiver.rb} +38 -16
- data/lib/merge_hris_client/models/{end_user_details.rb → webhook_receiver_request.rb} +60 -69
- data/lib/merge_hris_client/version.rb +1 -1
- data/lib/merge_hris_client.rb +5 -0
- data/spec/api/account_details_api_spec.rb +1 -0
- data/spec/api/employees_api_spec.rb +16 -0
- data/spec/api/force_resync_api_spec.rb +1 -1
- data/spec/api/issues_api_spec.rb +4 -0
- data/spec/api/linked_accounts_api_spec.rb +7 -7
- data/spec/api/time_off_api_spec.rb +11 -0
- data/spec/api/webhook_receivers_api_spec.rb +58 -0
- data/spec/models/account_details_and_actions_spec.rb +6 -0
- data/spec/models/account_details_spec.rb +12 -0
- data/spec/models/bank_info_spec.rb +6 -0
- data/spec/models/benefit_spec.rb +6 -0
- data/spec/models/company_spec.rb +6 -0
- data/spec/models/deduction_spec.rb +6 -0
- data/spec/models/earning_spec.rb +6 -0
- data/spec/models/employee_payroll_run_spec.rb +6 -0
- data/spec/models/employee_spec.rb +6 -0
- data/spec/models/employment_spec.rb +12 -0
- data/spec/models/group_spec.rb +6 -0
- data/spec/models/linked_account_status_spec.rb +40 -0
- data/spec/models/location_spec.rb +6 -0
- data/spec/models/meta_response_spec.rb +52 -0
- data/spec/models/pay_group_spec.rb +6 -0
- data/spec/models/payroll_run_spec.rb +6 -0
- data/spec/models/tax_spec.rb +6 -0
- data/spec/models/team_spec.rb +6 -0
- data/spec/models/time_off_balance_spec.rb +6 -0
- data/spec/models/time_off_spec.rb +6 -0
- data/spec/models/webhook_receiver_request_spec.rb +46 -0
- data/spec/models/webhook_receiver_spec.rb +46 -0
- metadata +118 -112
- data/docs/BenefitPlanTypeEnum.md +0 -15
- data/docs/TypeEnum.md +0 -15
- data/lib/merge_hris_client/api/time_off_balance_api.rb +0 -196
- data/lib/merge_hris_client/models/benefit_plan_type_enum.rb +0 -56
- data/lib/merge_hris_client/models/state_enum.rb +0 -93
- data/lib/merge_hris_client/models/type_enum.rb +0 -38
- data/spec/models/benefit_plan_type_enum_spec.rb +0 -28
- data/spec/models/type_enum_spec.rb +0 -28
- data/test_ruby.rb +0 -30
@@ -1,93 +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.0.0
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
require 'time'
|
15
|
-
|
16
|
-
module MergeHRISClient
|
17
|
-
class StateEnum
|
18
|
-
AL = "AL".freeze
|
19
|
-
AK = "AK".freeze
|
20
|
-
AS = "AS".freeze
|
21
|
-
AZ = "AZ".freeze
|
22
|
-
AR = "AR".freeze
|
23
|
-
AA = "AA".freeze
|
24
|
-
AE = "AE".freeze
|
25
|
-
AP = "AP".freeze
|
26
|
-
CA = "CA".freeze
|
27
|
-
CO = "CO".freeze
|
28
|
-
CT = "CT".freeze
|
29
|
-
DE = "DE".freeze
|
30
|
-
DC = "DC".freeze
|
31
|
-
FL = "FL".freeze
|
32
|
-
GA = "GA".freeze
|
33
|
-
GU = "GU".freeze
|
34
|
-
HI = "HI".freeze
|
35
|
-
ID = "ID".freeze
|
36
|
-
IL = "IL".freeze
|
37
|
-
IN = "IN".freeze
|
38
|
-
IA = "IA".freeze
|
39
|
-
KS = "KS".freeze
|
40
|
-
KY = "KY".freeze
|
41
|
-
LA = "LA".freeze
|
42
|
-
ME = "ME".freeze
|
43
|
-
MD = "MD".freeze
|
44
|
-
MA = "MA".freeze
|
45
|
-
MI = "MI".freeze
|
46
|
-
MN = "MN".freeze
|
47
|
-
MS = "MS".freeze
|
48
|
-
MO = "MO".freeze
|
49
|
-
MT = "MT".freeze
|
50
|
-
NE = "NE".freeze
|
51
|
-
NV = "NV".freeze
|
52
|
-
NH = "NH".freeze
|
53
|
-
NJ = "NJ".freeze
|
54
|
-
NM = "NM".freeze
|
55
|
-
NY = "NY".freeze
|
56
|
-
NC = "NC".freeze
|
57
|
-
ND = "ND".freeze
|
58
|
-
MP = "MP".freeze
|
59
|
-
OH = "OH".freeze
|
60
|
-
OK = "OK".freeze
|
61
|
-
OR = "OR".freeze
|
62
|
-
PA = "PA".freeze
|
63
|
-
PR = "PR".freeze
|
64
|
-
RI = "RI".freeze
|
65
|
-
SC = "SC".freeze
|
66
|
-
SD = "SD".freeze
|
67
|
-
TN = "TN".freeze
|
68
|
-
TX = "TX".freeze
|
69
|
-
UT = "UT".freeze
|
70
|
-
VT = "VT".freeze
|
71
|
-
VI = "VI".freeze
|
72
|
-
VA = "VA".freeze
|
73
|
-
WA = "WA".freeze
|
74
|
-
WV = "WV".freeze
|
75
|
-
WI = "WI".freeze
|
76
|
-
WY = "WY".freeze
|
77
|
-
|
78
|
-
# Builds the enum from string
|
79
|
-
# @param [String] The enum value in the form of the string
|
80
|
-
# @return [String] The enum value
|
81
|
-
def self.build_from_hash(value)
|
82
|
-
new.build_from_hash(value)
|
83
|
-
end
|
84
|
-
|
85
|
-
# Builds the enum from string
|
86
|
-
# @param [String] The enum value in the form of the string
|
87
|
-
# @return [String] The enum value
|
88
|
-
def build_from_hash(value)
|
89
|
-
constantValues = StateEnum.constants.select { |c| StateEnum::const_get(c) == value }
|
90
|
-
value
|
91
|
-
end
|
92
|
-
end
|
93
|
-
end
|
@@ -1,38 +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
|
-
class TypeEnum
|
18
|
-
SALARY = "SALARY".freeze
|
19
|
-
REIMBURSEMENT = "REIMBURSEMENT".freeze
|
20
|
-
OVERTIME = "OVERTIME".freeze
|
21
|
-
BONUS = "BONUS".freeze
|
22
|
-
|
23
|
-
# Builds the enum from string
|
24
|
-
# @param [String] The enum value in the form of the string
|
25
|
-
# @return [String] The enum value
|
26
|
-
def self.build_from_hash(value)
|
27
|
-
new.build_from_hash(value)
|
28
|
-
end
|
29
|
-
|
30
|
-
# Builds the enum from string
|
31
|
-
# @param [String] The enum value in the form of the string
|
32
|
-
# @return [String] The enum value
|
33
|
-
def build_from_hash(value)
|
34
|
-
constantValues = TypeEnum.constants.select { |c| TypeEnum::const_get(c) == value }
|
35
|
-
value
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
@@ -1,28 +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::BenefitPlanTypeEnum
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe MergeHRISClient::BenefitPlanTypeEnum do
|
21
|
-
let(:instance) { MergeHRISClient::BenefitPlanTypeEnum.new }
|
22
|
-
|
23
|
-
describe 'test an instance of BenefitPlanTypeEnum' do
|
24
|
-
it 'should create an instance of BenefitPlanTypeEnum' do
|
25
|
-
expect(instance).to be_instance_of(MergeHRISClient::BenefitPlanTypeEnum)
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
@@ -1,28 +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::TypeEnum
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe MergeHRISClient::TypeEnum do
|
21
|
-
let(:instance) { MergeHRISClient::TypeEnum.new }
|
22
|
-
|
23
|
-
describe 'test an instance of TypeEnum' do
|
24
|
-
it 'should create an instance of TypeEnum' do
|
25
|
-
expect(instance).to be_instance_of(MergeHRISClient::TypeEnum)
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
data/test_ruby.rb
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
# Load the gem
|
2
|
-
require 'merge_hris_client'
|
3
|
-
|
4
|
-
# Setup authorization
|
5
|
-
MergeHRISClient.configure do |config|
|
6
|
-
config.api_key["Authorization"] = "9opiVVEXktfQYdq8_n5bDh5flD-3j_YcgT-hz5IpmZ9nQoMsydJ08Q"
|
7
|
-
config.api_key_prefix['Authorization'] = 'Bearer'
|
8
|
-
end
|
9
|
-
x_account_token = "lPi0XqPF54RPUrGJUB9Jwj7uT2WUsxhSDYuuiuk87OOALArPYnq-jQ"
|
10
|
-
#expand = "applications,attachments"
|
11
|
-
opts = {include_remote_data: true}
|
12
|
-
|
13
|
-
company = MergeHRISClient::Company.new
|
14
|
-
employee = MergeHRISClient::Employee.new
|
15
|
-
employee.company = company
|
16
|
-
employee_api_instance = MergeHRISClient::LocationsApi.new
|
17
|
-
|
18
|
-
base_opts = {employee: employee}
|
19
|
-
|
20
|
-
api_instance = MergeHRISClient::EmployeePayrollRunsApi.new
|
21
|
-
cursor = ''
|
22
|
-
page = 0
|
23
|
-
|
24
|
-
begin
|
25
|
-
resp = employee_api_instance.locations_list(x_account_token, opts)
|
26
|
-
rescue MergeHRISClient::ApiError => e
|
27
|
-
puts "Error when calling EmployeePayrollRunsApi->employee_payroll_runs_list: #{e}"
|
28
|
-
end
|
29
|
-
puts resp
|
30
|
-
puts "script finished!"
|