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.
Files changed (140) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -5
  3. data/docs/AccountDetails.md +5 -1
  4. data/docs/AccountDetailsAndActions.md +2 -0
  5. data/docs/AccountDetailsApi.md +8 -5
  6. data/docs/BankInfo.md +3 -1
  7. data/docs/Benefit.md +3 -1
  8. data/docs/Company.md +5 -3
  9. data/docs/DataPassthroughRequest.md +1 -1
  10. data/docs/Deduction.md +3 -1
  11. data/docs/Earning.md +4 -2
  12. data/docs/Employee.md +11 -9
  13. data/docs/EmployeePayrollRun.md +3 -1
  14. data/docs/EmployeeRequest.md +8 -8
  15. data/docs/EmployeesApi.md +86 -4
  16. data/docs/Employment.md +8 -4
  17. data/docs/EndUserDetailsRequest.md +3 -3
  18. data/docs/ForceResyncApi.md +4 -4
  19. data/docs/Group.md +3 -1
  20. data/docs/IssuesApi.md +8 -0
  21. data/docs/LinkTokenApi.md +1 -1
  22. data/docs/LinkedAccountStatus.md +20 -0
  23. data/docs/LinkedAccountsApi.md +14 -14
  24. data/docs/Location.md +5 -3
  25. data/docs/MetaResponse.md +24 -0
  26. data/docs/PayGroup.md +3 -1
  27. data/docs/PayrollRun.md +3 -1
  28. data/docs/Tax.md +4 -2
  29. data/docs/Team.md +3 -1
  30. data/docs/TimeOff.md +5 -3
  31. data/docs/TimeOffApi.md +72 -0
  32. data/docs/TimeOffBalance.md +4 -2
  33. data/docs/TimeOffRequest.md +2 -2
  34. data/docs/WebhookReceiver.md +22 -0
  35. data/docs/WebhookReceiverRequest.md +22 -0
  36. data/docs/WebhookReceiversApi.md +153 -0
  37. data/lib/merge_hris_client/api/account_details_api.rb +10 -3
  38. data/lib/merge_hris_client/api/bank_info_api.rb +0 -1
  39. data/lib/merge_hris_client/api/employees_api.rb +88 -3
  40. data/lib/merge_hris_client/api/employments_api.rb +2 -2
  41. data/lib/merge_hris_client/api/force_resync_api.rb +3 -3
  42. data/lib/merge_hris_client/api/issues_api.rb +12 -0
  43. data/lib/merge_hris_client/api/linked_accounts_api.rb +15 -15
  44. data/lib/merge_hris_client/api/time_off_api.rb +62 -0
  45. data/lib/merge_hris_client/api/webhook_receivers_api.rb +154 -0
  46. data/lib/merge_hris_client/models/account_details.rb +22 -4
  47. data/lib/merge_hris_client/models/account_details_and_actions.rb +15 -1
  48. data/lib/merge_hris_client/models/account_details_and_actions_status_enum.rb +0 -1
  49. data/lib/merge_hris_client/models/account_type_enum.rb +0 -1
  50. data/lib/merge_hris_client/models/bank_info.rb +15 -5
  51. data/lib/merge_hris_client/models/benefit.rb +15 -5
  52. data/lib/merge_hris_client/models/categories_enum.rb +2 -1
  53. data/lib/merge_hris_client/models/category_enum.rb +2 -1
  54. data/lib/merge_hris_client/models/company.rb +16 -6
  55. data/lib/merge_hris_client/models/country_enum.rb +0 -1
  56. data/lib/merge_hris_client/models/data_passthrough_request.rb +1 -0
  57. data/lib/merge_hris_client/models/deduction.rb +15 -5
  58. data/lib/merge_hris_client/models/earning.rb +18 -5
  59. data/lib/merge_hris_client/models/earning_type_enum.rb +0 -1
  60. data/lib/merge_hris_client/models/employee.rb +15 -6
  61. data/lib/merge_hris_client/models/employee_payroll_run.rb +15 -5
  62. data/lib/merge_hris_client/models/employee_request.rb +1 -1
  63. data/lib/merge_hris_client/models/employment.rb +26 -6
  64. data/lib/merge_hris_client/models/employment_status_enum.rb +0 -1
  65. data/lib/merge_hris_client/models/employment_type_enum.rb +0 -1
  66. data/lib/merge_hris_client/models/encoding_enum.rb +0 -1
  67. data/lib/merge_hris_client/models/end_user_details_request.rb +34 -0
  68. data/lib/merge_hris_client/models/ethnicity_enum.rb +0 -1
  69. data/lib/merge_hris_client/models/flsa_status_enum.rb +0 -1
  70. data/lib/merge_hris_client/models/gender_enum.rb +0 -1
  71. data/lib/merge_hris_client/models/group.rb +16 -6
  72. data/lib/merge_hris_client/models/group_type_enum.rb +0 -1
  73. data/lib/merge_hris_client/models/issue_status_enum.rb +0 -1
  74. data/lib/merge_hris_client/models/{data_passthrough.rb → linked_account_status.rb} +24 -49
  75. data/lib/merge_hris_client/models/location.rb +16 -6
  76. data/lib/merge_hris_client/models/location_type_enum.rb +0 -1
  77. data/lib/merge_hris_client/models/marital_status_enum.rb +0 -1
  78. data/lib/merge_hris_client/models/meta_response.rb +262 -0
  79. data/lib/merge_hris_client/models/method_enum.rb +0 -1
  80. data/lib/merge_hris_client/models/pay_currency_enum.rb +0 -1
  81. data/lib/merge_hris_client/models/pay_frequency_enum.rb +0 -1
  82. data/lib/merge_hris_client/models/pay_group.rb +15 -5
  83. data/lib/merge_hris_client/models/pay_period_enum.rb +0 -1
  84. data/lib/merge_hris_client/models/payroll_run.rb +16 -6
  85. data/lib/merge_hris_client/models/policy_type_enum.rb +0 -1
  86. data/lib/merge_hris_client/models/reason_enum.rb +0 -1
  87. data/lib/merge_hris_client/models/request_format_enum.rb +0 -1
  88. data/lib/merge_hris_client/models/request_type_enum.rb +0 -1
  89. data/lib/merge_hris_client/models/run_state_enum.rb +0 -1
  90. data/lib/merge_hris_client/models/run_type_enum.rb +0 -1
  91. data/lib/merge_hris_client/models/sync_status_status_enum.rb +0 -1
  92. data/lib/merge_hris_client/models/tax.rb +18 -5
  93. data/lib/merge_hris_client/models/team.rb +15 -5
  94. data/lib/merge_hris_client/models/time_off.rb +14 -5
  95. data/lib/merge_hris_client/models/time_off_balance.rb +16 -6
  96. data/lib/merge_hris_client/models/time_off_status_enum.rb +0 -1
  97. data/lib/merge_hris_client/models/units_enum.rb +0 -1
  98. data/lib/merge_hris_client/models/{remote_key_for_regeneration.rb → webhook_receiver.rb} +38 -16
  99. data/lib/merge_hris_client/models/{end_user_details.rb → webhook_receiver_request.rb} +60 -69
  100. data/lib/merge_hris_client/version.rb +1 -1
  101. data/lib/merge_hris_client.rb +5 -0
  102. data/spec/api/account_details_api_spec.rb +1 -0
  103. data/spec/api/employees_api_spec.rb +16 -0
  104. data/spec/api/force_resync_api_spec.rb +1 -1
  105. data/spec/api/issues_api_spec.rb +4 -0
  106. data/spec/api/linked_accounts_api_spec.rb +7 -7
  107. data/spec/api/time_off_api_spec.rb +11 -0
  108. data/spec/api/webhook_receivers_api_spec.rb +58 -0
  109. data/spec/models/account_details_and_actions_spec.rb +6 -0
  110. data/spec/models/account_details_spec.rb +12 -0
  111. data/spec/models/bank_info_spec.rb +6 -0
  112. data/spec/models/benefit_spec.rb +6 -0
  113. data/spec/models/company_spec.rb +6 -0
  114. data/spec/models/deduction_spec.rb +6 -0
  115. data/spec/models/earning_spec.rb +6 -0
  116. data/spec/models/employee_payroll_run_spec.rb +6 -0
  117. data/spec/models/employee_spec.rb +6 -0
  118. data/spec/models/employment_spec.rb +12 -0
  119. data/spec/models/group_spec.rb +6 -0
  120. data/spec/models/linked_account_status_spec.rb +40 -0
  121. data/spec/models/location_spec.rb +6 -0
  122. data/spec/models/meta_response_spec.rb +52 -0
  123. data/spec/models/pay_group_spec.rb +6 -0
  124. data/spec/models/payroll_run_spec.rb +6 -0
  125. data/spec/models/tax_spec.rb +6 -0
  126. data/spec/models/team_spec.rb +6 -0
  127. data/spec/models/time_off_balance_spec.rb +6 -0
  128. data/spec/models/time_off_spec.rb +6 -0
  129. data/spec/models/webhook_receiver_request_spec.rb +46 -0
  130. data/spec/models/webhook_receiver_spec.rb +46 -0
  131. metadata +118 -112
  132. data/docs/BenefitPlanTypeEnum.md +0 -15
  133. data/docs/TypeEnum.md +0 -15
  134. data/lib/merge_hris_client/api/time_off_balance_api.rb +0 -196
  135. data/lib/merge_hris_client/models/benefit_plan_type_enum.rb +0 -56
  136. data/lib/merge_hris_client/models/state_enum.rb +0 -93
  137. data/lib/merge_hris_client/models/type_enum.rb +0 -38
  138. data/spec/models/benefit_plan_type_enum_spec.rb +0 -28
  139. data/spec/models/type_enum_spec.rb +0 -28
  140. 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!"