merge_hris_client 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +21 -2
  3. data/docs/AccountToken.md +3 -1
  4. data/docs/AvailableActions.md +1 -1
  5. data/docs/BenefitRequest.md +28 -0
  6. data/docs/BenefitsApi.md +78 -0
  7. data/docs/DeleteAccountApi.md +77 -0
  8. data/docs/Employee.md +8 -6
  9. data/docs/EmployeeRequest.md +62 -0
  10. data/docs/EmployeesApi.md +83 -1
  11. data/docs/EmploymentRequest.md +34 -0
  12. data/docs/EmploymentsApi.md +78 -0
  13. data/docs/EndUserDetailsRequest.md +1 -1
  14. data/docs/Issue.md +30 -0
  15. data/docs/IssueStatusEnum.md +15 -0
  16. data/docs/IssuesApi.md +167 -0
  17. data/docs/Location.md +1 -1
  18. data/docs/ModelOperation.md +3 -1
  19. data/docs/PaginatedIssueList.md +22 -0
  20. data/docs/PaginatedSyncStatusList.md +22 -0
  21. data/docs/PaginatedTimeOffBalanceList.md +22 -0
  22. data/docs/RemoteDataRequest.md +20 -0
  23. data/docs/SyncStatus.md +1 -1
  24. data/docs/SyncStatusApi.md +89 -11
  25. data/docs/SyncStatusStatusEnum.md +15 -0
  26. data/docs/Team.md +2 -0
  27. data/docs/TeamsApi.md +2 -0
  28. data/docs/TimeOff.md +4 -0
  29. data/docs/TimeOffBalance.md +28 -0
  30. data/docs/TimeOffBalanceApi.md +181 -0
  31. data/lib/merge_hris_client.rb +15 -4
  32. data/lib/merge_hris_client/api/account_token_api.rb +1 -1
  33. data/lib/merge_hris_client/api/available_actions_api.rb +1 -1
  34. data/lib/merge_hris_client/api/benefits_api.rb +70 -1
  35. data/lib/merge_hris_client/api/companies_api.rb +1 -1
  36. data/lib/merge_hris_client/api/delete_account_api.rb +82 -0
  37. data/lib/merge_hris_client/api/employee_payroll_runs_api.rb +1 -1
  38. data/lib/merge_hris_client/api/employees_api.rb +76 -1
  39. data/lib/merge_hris_client/api/employments_api.rb +70 -1
  40. data/lib/merge_hris_client/api/generate_key_api.rb +1 -1
  41. data/lib/merge_hris_client/api/issues_api.rb +169 -0
  42. data/lib/merge_hris_client/api/link_token_api.rb +1 -1
  43. data/lib/merge_hris_client/api/locations_api.rb +1 -1
  44. data/lib/merge_hris_client/api/passthrough_api.rb +1 -1
  45. data/lib/merge_hris_client/api/payroll_runs_api.rb +1 -1
  46. data/lib/merge_hris_client/api/regenerate_key_api.rb +1 -1
  47. data/lib/merge_hris_client/api/sync_status_api.rb +79 -11
  48. data/lib/merge_hris_client/api/teams_api.rb +4 -1
  49. data/lib/merge_hris_client/api/time_off_api.rb +1 -1
  50. data/lib/merge_hris_client/api/time_off_balance_api.rb +196 -0
  51. data/lib/merge_hris_client/api_client.rb +2 -2
  52. data/lib/merge_hris_client/api_error.rb +1 -1
  53. data/lib/merge_hris_client/configuration.rb +1 -1
  54. data/lib/merge_hris_client/models/account_integration.rb +1 -1
  55. data/lib/merge_hris_client/models/account_token.rb +19 -5
  56. data/lib/merge_hris_client/models/available_actions.rb +1 -1
  57. data/lib/merge_hris_client/models/benefit.rb +1 -1
  58. data/lib/merge_hris_client/models/benefit_plan_type_enum.rb +1 -1
  59. data/lib/merge_hris_client/models/benefit_request.rb +276 -0
  60. data/lib/merge_hris_client/models/company.rb +1 -1
  61. data/lib/merge_hris_client/models/country_enum.rb +1 -1
  62. data/lib/merge_hris_client/models/data_passthrough_request.rb +2 -1
  63. data/lib/merge_hris_client/models/deduction.rb +1 -1
  64. data/lib/merge_hris_client/models/earning.rb +1 -1
  65. data/lib/merge_hris_client/models/employee.rb +32 -20
  66. data/lib/merge_hris_client/models/employee_payroll_run.rb +1 -1
  67. data/lib/merge_hris_client/models/employee_request.rb +523 -0
  68. data/lib/merge_hris_client/models/employment.rb +1 -1
  69. data/lib/merge_hris_client/models/employment_request.rb +309 -0
  70. data/lib/merge_hris_client/models/employment_status_enum.rb +1 -1
  71. data/lib/merge_hris_client/models/employment_type_enum.rb +1 -1
  72. data/lib/merge_hris_client/models/end_user_details_request.rb +2 -6
  73. data/lib/merge_hris_client/models/ethnicity_enum.rb +1 -1
  74. data/lib/merge_hris_client/models/flsa_status_enum.rb +1 -1
  75. data/lib/merge_hris_client/models/gender_enum.rb +1 -1
  76. data/lib/merge_hris_client/models/generate_remote_key_request.rb +1 -1
  77. data/lib/merge_hris_client/models/issue.rb +281 -0
  78. data/lib/merge_hris_client/models/issue_status_enum.rb +36 -0
  79. data/lib/merge_hris_client/models/link_token.rb +1 -1
  80. data/lib/merge_hris_client/models/location.rb +4 -4
  81. data/lib/merge_hris_client/models/method_enum.rb +1 -1
  82. data/lib/merge_hris_client/models/model_operation.rb +21 -5
  83. data/lib/merge_hris_client/models/paginated_benefit_list.rb +1 -1
  84. data/lib/merge_hris_client/models/paginated_company_list.rb +1 -1
  85. data/lib/merge_hris_client/models/paginated_employee_list.rb +1 -1
  86. data/lib/merge_hris_client/models/paginated_employee_payroll_run_list.rb +1 -1
  87. data/lib/merge_hris_client/models/paginated_employment_list.rb +1 -1
  88. data/lib/merge_hris_client/models/paginated_issue_list.rb +240 -0
  89. data/lib/merge_hris_client/models/paginated_location_list.rb +1 -1
  90. data/lib/merge_hris_client/models/paginated_payroll_run_list.rb +1 -1
  91. data/lib/merge_hris_client/models/paginated_sync_status_list.rb +240 -0
  92. data/lib/merge_hris_client/models/paginated_team_list.rb +1 -1
  93. data/lib/merge_hris_client/models/paginated_time_off_balance_list.rb +240 -0
  94. data/lib/merge_hris_client/models/paginated_time_off_list.rb +1 -1
  95. data/lib/merge_hris_client/models/pay_currency_enum.rb +1 -1
  96. data/lib/merge_hris_client/models/pay_frequency_enum.rb +1 -1
  97. data/lib/merge_hris_client/models/pay_period_enum.rb +1 -1
  98. data/lib/merge_hris_client/models/payroll_run.rb +1 -1
  99. data/lib/merge_hris_client/models/remote_data.rb +1 -1
  100. data/lib/merge_hris_client/models/remote_data_request.rb +234 -0
  101. data/lib/merge_hris_client/models/remote_key.rb +1 -1
  102. data/lib/merge_hris_client/models/remote_key_for_regeneration_request.rb +1 -1
  103. data/lib/merge_hris_client/models/remote_response.rb +1 -1
  104. data/lib/merge_hris_client/models/request_type_enum.rb +1 -1
  105. data/lib/merge_hris_client/models/run_state_enum.rb +1 -1
  106. data/lib/merge_hris_client/models/run_type_enum.rb +1 -1
  107. data/lib/merge_hris_client/models/sync_status.rb +2 -2
  108. data/lib/merge_hris_client/models/sync_status_status_enum.rb +37 -0
  109. data/lib/merge_hris_client/models/tax.rb +1 -1
  110. data/lib/merge_hris_client/models/team.rb +13 -2
  111. data/lib/merge_hris_client/models/time_off.rb +24 -2
  112. data/lib/merge_hris_client/models/time_off_balance.rb +275 -0
  113. data/lib/merge_hris_client/models/time_off_status_enum.rb +1 -1
  114. data/lib/merge_hris_client/models/type_enum.rb +1 -1
  115. data/lib/merge_hris_client/models/units_enum.rb +1 -1
  116. data/lib/merge_hris_client/version.rb +2 -2
  117. data/merge_hris_client-1.0.1.gem +0 -0
  118. data/merge_hris_client.gemspec +1 -1
  119. data/spec/api/delete_account_api_spec.rb +46 -0
  120. data/spec/api/generate_key_api_spec.rb +46 -0
  121. data/spec/api/issues_api_spec.rb +65 -0
  122. data/spec/api/sync_status_api_spec.rb +59 -0
  123. data/spec/api/time_off_balance_api_spec.rb +70 -0
  124. data/spec/api_client_spec.rb +1 -1
  125. data/spec/configuration_spec.rb +1 -1
  126. data/spec/models/benefit_request_spec.rb +64 -0
  127. data/spec/models/employee_request_spec.rb +160 -0
  128. data/spec/models/employment_request_spec.rb +82 -0
  129. data/spec/models/generate_remote_key_request_spec.rb +34 -0
  130. data/spec/models/issue_spec.rb +70 -0
  131. data/spec/models/issue_status_enum_spec.rb +28 -0
  132. data/spec/models/paginated_issue_list_spec.rb +46 -0
  133. data/spec/models/paginated_sync_status_list_spec.rb +46 -0
  134. data/spec/models/paginated_time_off_balance_list_spec.rb +46 -0
  135. data/spec/models/remote_data_request_spec.rb +40 -0
  136. data/spec/models/sync_status_spec.rb +64 -0
  137. data/spec/models/sync_status_status_enum_spec.rb +28 -0
  138. data/spec/models/time_off_balance_spec.rb +64 -0
  139. data/spec/spec_helper.rb +1 -1
  140. data/test_ruby.rb +14 -11
  141. metadata +67 -2
data/docs/EmployeesApi.md CHANGED
@@ -4,10 +4,88 @@ All URIs are relative to *https://api.merge.dev/api/hris/v1*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
+ | [**employees_create**](EmployeesApi.md#employees_create) | **POST** /employees | |
7
8
  | [**employees_list**](EmployeesApi.md#employees_list) | **GET** /employees | |
8
9
  | [**employees_retrieve**](EmployeesApi.md#employees_retrieve) | **GET** /employees/{id} | |
9
10
 
10
11
 
12
+ ## employees_create
13
+
14
+ > <Employee> employees_create(x_account_token, opts)
15
+
16
+
17
+
18
+ Creates an `Employee` object with the given values.
19
+
20
+ ### Examples
21
+
22
+ ```ruby
23
+ require 'time'
24
+ require 'merge_hris_client'
25
+ # setup authorization
26
+ MergeHRISClient.configure do |config|
27
+ # Configure API key authorization: tokenAuth
28
+ config.api_key['tokenAuth'] = 'YOUR API KEY'
29
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
30
+ # config.api_key_prefix['tokenAuth'] = 'Bearer'
31
+ end
32
+
33
+ api_instance = MergeHRISClient::EmployeesApi.new
34
+ x_account_token = 'x_account_token_example' # String | Token identifying the end user.
35
+ opts = {
36
+ run_async: true, # Boolean | Whether or not third-party updates should be run asynchronously.
37
+ employee_request: MergeHRISClient::EmployeeRequest.new # EmployeeRequest |
38
+ }
39
+
40
+ begin
41
+
42
+ result = api_instance.employees_create(x_account_token, opts)
43
+ p result
44
+ rescue MergeHRISClient::ApiError => e
45
+ puts "Error when calling EmployeesApi->employees_create: #{e}"
46
+ end
47
+ ```
48
+
49
+ #### Using the employees_create_with_http_info variant
50
+
51
+ This returns an Array which contains the response data, status code and headers.
52
+
53
+ > <Array(<Employee>, Integer, Hash)> employees_create_with_http_info(x_account_token, opts)
54
+
55
+ ```ruby
56
+ begin
57
+
58
+ data, status_code, headers = api_instance.employees_create_with_http_info(x_account_token, opts)
59
+ p status_code # => 2xx
60
+ p headers # => { ... }
61
+ p data # => <Employee>
62
+ rescue MergeHRISClient::ApiError => e
63
+ puts "Error when calling EmployeesApi->employees_create_with_http_info: #{e}"
64
+ end
65
+ ```
66
+
67
+ ### Parameters
68
+
69
+ | Name | Type | Description | Notes |
70
+ | ---- | ---- | ----------- | ----- |
71
+ | **x_account_token** | **String** | Token identifying the end user. | |
72
+ | **run_async** | **Boolean** | Whether or not third-party updates should be run asynchronously. | [optional] |
73
+ | **employee_request** | [**EmployeeRequest**](EmployeeRequest.md) | | [optional] |
74
+
75
+ ### Return type
76
+
77
+ [**Employee**](Employee.md)
78
+
79
+ ### Authorization
80
+
81
+ [tokenAuth](../README.md#tokenAuth)
82
+
83
+ ### HTTP request headers
84
+
85
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
86
+ - **Accept**: application/json
87
+
88
+
11
89
  ## employees_list
12
90
 
13
91
  > <PaginatedEmployeeList> employees_list(x_account_token, opts)
@@ -38,6 +116,7 @@ opts = {
38
116
  cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
39
117
  expand: 'company', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
40
118
  include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
119
+ include_sensitive_fields: true, # Boolean | Whether to include sensetive fields (such as social security numbers) in the response.
41
120
  manager_id: 'manager_id_example', # String | If provided, will only return employees for this manager.
42
121
  modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified after this datetime.
43
122
  modified_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified before this datetime.
@@ -85,6 +164,7 @@ end
85
164
  | **cursor** | **String** | The pagination cursor value. | [optional] |
86
165
  | **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
87
166
  | **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
167
+ | **include_sensitive_fields** | **Boolean** | Whether to include sensetive fields (such as social security numbers) in the response. | [optional] |
88
168
  | **manager_id** | **String** | If provided, will only return employees for this manager. | [optional] |
89
169
  | **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
90
170
  | **modified_before** | **Time** | If provided, will only return objects modified before this datetime. | [optional] |
@@ -133,7 +213,8 @@ x_account_token = 'x_account_token_example' # String | Token identifying the end
133
213
  id = TODO # String |
134
214
  opts = {
135
215
  expand: 'company', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
136
- include_remote_data: true # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
216
+ include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
217
+ include_sensitive_fields: true # Boolean | Whether to include sensetive fields (such as social security numbers) in the response.
137
218
  }
138
219
 
139
220
  begin
@@ -171,6 +252,7 @@ end
171
252
  | **id** | [**String**](.md) | | |
172
253
  | **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
173
254
  | **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
255
+ | **include_sensitive_fields** | **Boolean** | Whether to include sensetive fields (such as social security numbers) in the response. | [optional] |
174
256
 
175
257
  ### Return type
176
258
 
@@ -0,0 +1,34 @@
1
+ # MergeHRISClient::EmploymentRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
8
+ | **job_title** | **String** | The position&#39;s title. | [optional] |
9
+ | **pay_rate** | **Float** | The position&#39;s pay rate in dollars. | [optional] |
10
+ | **pay_period** | [**PayPeriodEnum**](PayPeriodEnum.md) | The time period this pay rate encompasses. | [optional] |
11
+ | **pay_frequency** | [**PayFrequencyEnum**](PayFrequencyEnum.md) | The position&#39;s pay frequency. | [optional] |
12
+ | **pay_currency** | [**PayCurrencyEnum**](PayCurrencyEnum.md) | The position&#39;s currency code. | [optional] |
13
+ | **flsa_status** | [**FlsaStatusEnum**](FlsaStatusEnum.md) | The position&#39;s FLSA status. | [optional] |
14
+ | **effective_date** | **Time** | The position&#39;s effective date. | [optional] |
15
+ | **employment_type** | [**EmploymentTypeEnum**](EmploymentTypeEnum.md) | The position&#39;s type of employment. | [optional] |
16
+
17
+ ## Example
18
+
19
+ ```ruby
20
+ require 'merge_hris_client'
21
+
22
+ instance = MergeHRISClient::EmploymentRequest.new(
23
+ remote_id: 19202938,
24
+ job_title: Software Engineer,
25
+ pay_rate: 80000.00,
26
+ pay_period: YEAR,
27
+ pay_frequency: BIWEEKLY,
28
+ pay_currency: USD,
29
+ flsa_status: EXEMPT,
30
+ effective_date: null,
31
+ employment_type: FULL TIME
32
+ )
33
+ ```
34
+
@@ -4,10 +4,88 @@ All URIs are relative to *https://api.merge.dev/api/hris/v1*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
+ | [**employments_create**](EmploymentsApi.md#employments_create) | **POST** /employments | |
7
8
  | [**employments_list**](EmploymentsApi.md#employments_list) | **GET** /employments | |
8
9
  | [**employments_retrieve**](EmploymentsApi.md#employments_retrieve) | **GET** /employments/{id} | |
9
10
 
10
11
 
12
+ ## employments_create
13
+
14
+ > <Employment> employments_create(x_account_token, opts)
15
+
16
+
17
+
18
+ Creates an `Employment` object with the given values.
19
+
20
+ ### Examples
21
+
22
+ ```ruby
23
+ require 'time'
24
+ require 'merge_hris_client'
25
+ # setup authorization
26
+ MergeHRISClient.configure do |config|
27
+ # Configure API key authorization: tokenAuth
28
+ config.api_key['tokenAuth'] = 'YOUR API KEY'
29
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
30
+ # config.api_key_prefix['tokenAuth'] = 'Bearer'
31
+ end
32
+
33
+ api_instance = MergeHRISClient::EmploymentsApi.new
34
+ x_account_token = 'x_account_token_example' # String | Token identifying the end user.
35
+ opts = {
36
+ run_async: true, # Boolean | Whether or not third-party updates should be run asynchronously.
37
+ employment_request: MergeHRISClient::EmploymentRequest.new # EmploymentRequest |
38
+ }
39
+
40
+ begin
41
+
42
+ result = api_instance.employments_create(x_account_token, opts)
43
+ p result
44
+ rescue MergeHRISClient::ApiError => e
45
+ puts "Error when calling EmploymentsApi->employments_create: #{e}"
46
+ end
47
+ ```
48
+
49
+ #### Using the employments_create_with_http_info variant
50
+
51
+ This returns an Array which contains the response data, status code and headers.
52
+
53
+ > <Array(<Employment>, Integer, Hash)> employments_create_with_http_info(x_account_token, opts)
54
+
55
+ ```ruby
56
+ begin
57
+
58
+ data, status_code, headers = api_instance.employments_create_with_http_info(x_account_token, opts)
59
+ p status_code # => 2xx
60
+ p headers # => { ... }
61
+ p data # => <Employment>
62
+ rescue MergeHRISClient::ApiError => e
63
+ puts "Error when calling EmploymentsApi->employments_create_with_http_info: #{e}"
64
+ end
65
+ ```
66
+
67
+ ### Parameters
68
+
69
+ | Name | Type | Description | Notes |
70
+ | ---- | ---- | ----------- | ----- |
71
+ | **x_account_token** | **String** | Token identifying the end user. | |
72
+ | **run_async** | **Boolean** | Whether or not third-party updates should be run asynchronously. | [optional] |
73
+ | **employment_request** | [**EmploymentRequest**](EmploymentRequest.md) | | [optional] |
74
+
75
+ ### Return type
76
+
77
+ [**Employment**](Employment.md)
78
+
79
+ ### Authorization
80
+
81
+ [tokenAuth](../README.md#tokenAuth)
82
+
83
+ ### HTTP request headers
84
+
85
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
86
+ - **Accept**: application/json
87
+
88
+
11
89
  ## employments_list
12
90
 
13
91
  > <PaginatedEmploymentList> employments_list(x_account_token, opts)
@@ -7,7 +7,7 @@
7
7
  | **end_user_email_address** | **String** | | |
8
8
  | **end_user_organization_name** | **String** | | |
9
9
  | **end_user_origin_id** | **String** | | |
10
- | **categories** | **Array&lt;String&gt;** | | |
10
+ | **categories** | **Array&lt;String&gt;** | | [optional] |
11
11
  | **integration** | **String** | | [optional] |
12
12
 
13
13
  ## Example
data/docs/Issue.md ADDED
@@ -0,0 +1,30 @@
1
+ # MergeHRISClient::Issue
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | [optional][readonly] |
8
+ | **status** | [**IssueStatusEnum**](IssueStatusEnum.md) | | [optional] |
9
+ | **error_description** | **String** | | |
10
+ | **end_user** | [**Hash&lt;String, AnyType&gt;**](AnyType.md) | | [optional][readonly] |
11
+ | **first_incident_time** | **Time** | | [optional] |
12
+ | **last_incident_time** | **Time** | | [optional] |
13
+ | **is_muted** | **Boolean** | | [optional][readonly] |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'merge_hris_client'
19
+
20
+ instance = MergeHRISClient::Issue.new(
21
+ id: null,
22
+ status: null,
23
+ error_description: null,
24
+ end_user: null,
25
+ first_incident_time: null,
26
+ last_incident_time: null,
27
+ is_muted: null
28
+ )
29
+ ```
30
+
@@ -0,0 +1,15 @@
1
+ # MergeHRISClient::IssueStatusEnum
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'merge_hris_client'
12
+
13
+ instance = MergeHRISClient::IssueStatusEnum.new()
14
+ ```
15
+
data/docs/IssuesApi.md ADDED
@@ -0,0 +1,167 @@
1
+ # MergeHRISClient::IssuesApi
2
+
3
+ All URIs are relative to *https://api.merge.dev/api/hris/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**issues_list**](IssuesApi.md#issues_list) | **GET** /issues | |
8
+ | [**issues_retrieve**](IssuesApi.md#issues_retrieve) | **GET** /issues/{id} | |
9
+
10
+
11
+ ## issues_list
12
+
13
+ > <PaginatedIssueList> issues_list(opts)
14
+
15
+
16
+
17
+ Gets issues.
18
+
19
+ ### Examples
20
+
21
+ ```ruby
22
+ require 'time'
23
+ require 'merge_hris_client'
24
+ # setup authorization
25
+ MergeHRISClient.configure do |config|
26
+ # Configure API key authorization: tokenAuth
27
+ config.api_key['Authorization'] = 'YOUR API KEY'
28
+ config.api_key_prefix['Authorization'] = 'Bearer'
29
+ end
30
+
31
+ api_instance = MergeHRISClient::IssuesApi.new
32
+ opts = {
33
+ account_token: 'account_token_example', # String | account_token
34
+ cursor: 56, # Integer | The pagination cursor value.
35
+ end_date: 'end_date_example', # String | If included, will only include issues whose most recent action occurred before this time
36
+ end_user_organization_name: 'end_user_organization_name_example', # String | end_user_organization_name
37
+ include_muted: 'include_muted_example', # String | If True, will include muted issues
38
+ integration_name: 'integration_name_example', # String | integration_name
39
+ page_size: 56, # Integer | Number of results to return per page.
40
+ start_date: 'start_date_example', # String | If included, will only include issues whose most recent action occurred after this time
41
+ status: 'ONGOING' # String | status
42
+ }
43
+
44
+ begin
45
+
46
+ result = api_instance.issues_list(opts)
47
+ p result
48
+ rescue MergeHRISClient::ApiError => e
49
+ puts "Error when calling IssuesApi->issues_list: #{e}"
50
+ end
51
+ ```
52
+
53
+ #### Using the issues_list_with_http_info variant
54
+
55
+ This returns an Array which contains the response data, status code and headers.
56
+
57
+ > <Array(<PaginatedIssueList>, Integer, Hash)> issues_list_with_http_info(opts)
58
+
59
+ ```ruby
60
+ begin
61
+
62
+ data, status_code, headers = api_instance.issues_list_with_http_info(opts)
63
+ p status_code # => 2xx
64
+ p headers # => { ... }
65
+ p data # => <PaginatedIssueList>
66
+ rescue MergeHRISClient::ApiError => e
67
+ puts "Error when calling IssuesApi->issues_list_with_http_info: #{e}"
68
+ end
69
+ ```
70
+
71
+ ### Parameters
72
+
73
+ | Name | Type | Description | Notes |
74
+ | ---- | ---- | ----------- | ----- |
75
+ | **account_token** | **String** | account_token | [optional] |
76
+ | **cursor** | **Integer** | The pagination cursor value. | [optional] |
77
+ | **end_date** | **String** | If included, will only include issues whose most recent action occurred before this time | [optional] |
78
+ | **end_user_organization_name** | **String** | end_user_organization_name | [optional] |
79
+ | **include_muted** | **String** | If True, will include muted issues | [optional] |
80
+ | **integration_name** | **String** | integration_name | [optional] |
81
+ | **page_size** | **Integer** | Number of results to return per page. | [optional] |
82
+ | **start_date** | **String** | If included, will only include issues whose most recent action occurred after this time | [optional] |
83
+ | **status** | **String** | status | [optional] |
84
+
85
+ ### Return type
86
+
87
+ [**PaginatedIssueList**](PaginatedIssueList.md)
88
+
89
+ ### Authorization
90
+
91
+ [tokenAuth](../README.md#tokenAuth)
92
+
93
+ ### HTTP request headers
94
+
95
+ - **Content-Type**: Not defined
96
+ - **Accept**: application/json
97
+
98
+
99
+ ## issues_retrieve
100
+
101
+ > <Issue> issues_retrieve(id)
102
+
103
+
104
+
105
+ Get a specific issue.
106
+
107
+ ### Examples
108
+
109
+ ```ruby
110
+ require 'time'
111
+ require 'merge_hris_client'
112
+ # setup authorization
113
+ MergeHRISClient.configure do |config|
114
+ # Configure API key authorization: tokenAuth
115
+ config.api_key['Authorization'] = 'YOUR API KEY'
116
+ config.api_key_prefix['Authorization'] = 'Bearer'
117
+ end
118
+
119
+ api_instance = MergeHRISClient::IssuesApi.new
120
+ id = TODO # String |
121
+
122
+ begin
123
+
124
+ result = api_instance.issues_retrieve(id)
125
+ p result
126
+ rescue MergeHRISClient::ApiError => e
127
+ puts "Error when calling IssuesApi->issues_retrieve: #{e}"
128
+ end
129
+ ```
130
+
131
+ #### Using the issues_retrieve_with_http_info variant
132
+
133
+ This returns an Array which contains the response data, status code and headers.
134
+
135
+ > <Array(<Issue>, Integer, Hash)> issues_retrieve_with_http_info(id)
136
+
137
+ ```ruby
138
+ begin
139
+
140
+ data, status_code, headers = api_instance.issues_retrieve_with_http_info(id)
141
+ p status_code # => 2xx
142
+ p headers # => { ... }
143
+ p data # => <Issue>
144
+ rescue MergeHRISClient::ApiError => e
145
+ puts "Error when calling IssuesApi->issues_retrieve_with_http_info: #{e}"
146
+ end
147
+ ```
148
+
149
+ ### Parameters
150
+
151
+ | Name | Type | Description | Notes |
152
+ | ---- | ---- | ----------- | ----- |
153
+ | **id** | [**String**](.md) | | |
154
+
155
+ ### Return type
156
+
157
+ [**Issue**](Issue.md)
158
+
159
+ ### Authorization
160
+
161
+ [tokenAuth](../README.md#tokenAuth)
162
+
163
+ ### HTTP request headers
164
+
165
+ - **Content-Type**: Not defined
166
+ - **Accept**: application/json
167
+