stackone_hris_client 1.5.2 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (163) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +49 -30
  4. data/docs/Account.md +3 -1
  5. data/docs/AccountMeta.md +22 -0
  6. data/docs/AccountsApi.md +82 -14
  7. data/docs/CompaniesApi.md +25 -25
  8. data/docs/ConnectSession.md +1 -1
  9. data/docs/ConnectSessionCreate.md +1 -1
  10. data/docs/ConnectSessionToken.md +1 -1
  11. data/docs/ConnectSessionsApi.md +9 -9
  12. data/docs/CreateEmployeeResult.md +22 -0
  13. data/docs/Employee.md +56 -52
  14. data/docs/EmployeeApiModel.md +80 -0
  15. data/docs/EmployeeApiModelAvatar.md +20 -0
  16. data/docs/EmployeeApiModelEmploymentStatus.md +20 -0
  17. data/docs/EmployeeApiModelEmploymentType.md +20 -0
  18. data/docs/EmployeeApiModelEthnicity.md +20 -0
  19. data/docs/EmployeeApiModelGender.md +20 -0
  20. data/docs/EmployeeApiModelHomeLocation.md +38 -0
  21. data/docs/EmployeeApiModelMaritalStatus.md +20 -0
  22. data/docs/EmployeeApiModelWorkLocation.md +38 -0
  23. data/docs/EmployeeCustomFieldTypeEnum.md +20 -0
  24. data/docs/EmployeeCustomFields.md +30 -0
  25. data/docs/EmployeeCustomFieldsType.md +20 -0
  26. data/docs/EmployeeResult.md +1 -1
  27. data/docs/EmployeesApi.md +242 -28
  28. data/docs/EmployeesPaginated.md +1 -1
  29. data/docs/Employment.md +17 -15
  30. data/docs/EmploymentEmploymentContractType.md +20 -0
  31. data/docs/EmploymentEmploymentType.md +20 -0
  32. data/docs/EmploymentPayFrequency.md +20 -0
  33. data/docs/EmploymentPayPeriod.md +20 -0
  34. data/docs/EmploymentScheduleTypeEnum.md +20 -0
  35. data/docs/EmploymentsApi.md +27 -27
  36. data/docs/HrisCreateEmployeeRequestDto.md +80 -0
  37. data/docs/Location.md +20 -20
  38. data/docs/LocationCountry.md +20 -0
  39. data/docs/LocationLocationType.md +20 -0
  40. data/docs/LocationsApi.md +9 -9
  41. data/gem-config.yml +2 -2
  42. data/generate_gem.sh +0 -0
  43. data/lib/stackone_hris_client/api/accounts_api.rb +68 -7
  44. data/lib/stackone_hris_client/api/companies_api.rb +20 -20
  45. data/lib/stackone_hris_client/api/connect_sessions_api.rb +5 -5
  46. data/lib/stackone_hris_client/api/employees_api.rb +251 -20
  47. data/lib/stackone_hris_client/api/employments_api.rb +20 -20
  48. data/lib/stackone_hris_client/api/locations_api.rb +5 -5
  49. data/lib/stackone_hris_client/api_client.rb +1 -1
  50. data/lib/stackone_hris_client/api_error.rb +1 -1
  51. data/lib/stackone_hris_client/configuration.rb +2 -2
  52. data/lib/stackone_hris_client/models/account.rb +16 -7
  53. data/lib/stackone_hris_client/models/account_meta.rb +284 -0
  54. data/lib/stackone_hris_client/models/companies_paginated.rb +1 -1
  55. data/lib/stackone_hris_client/models/company.rb +1 -1
  56. data/lib/stackone_hris_client/models/company_result.rb +1 -1
  57. data/lib/stackone_hris_client/models/connect_session.rb +1 -1
  58. data/lib/stackone_hris_client/models/connect_session_authenticate.rb +1 -1
  59. data/lib/stackone_hris_client/models/connect_session_create.rb +1 -1
  60. data/lib/stackone_hris_client/models/connect_session_token.rb +1 -1
  61. data/lib/stackone_hris_client/models/country_code_enum.rb +1 -7
  62. data/lib/stackone_hris_client/models/create_employee_result.rb +250 -0
  63. data/lib/stackone_hris_client/models/employee.rb +117 -124
  64. data/lib/stackone_hris_client/models/employee_api_model.rb +523 -0
  65. data/lib/stackone_hris_client/models/employee_api_model_avatar.rb +234 -0
  66. data/lib/stackone_hris_client/models/employee_api_model_employment_status.rb +272 -0
  67. data/lib/stackone_hris_client/models/employee_api_model_employment_type.rb +272 -0
  68. data/lib/stackone_hris_client/models/employee_api_model_ethnicity.rb +272 -0
  69. data/lib/stackone_hris_client/models/employee_api_model_gender.rb +272 -0
  70. data/lib/stackone_hris_client/models/employee_api_model_home_location.rb +324 -0
  71. data/lib/stackone_hris_client/models/employee_api_model_marital_status.rb +272 -0
  72. data/lib/stackone_hris_client/models/employee_api_model_work_location.rb +324 -0
  73. data/lib/stackone_hris_client/models/employee_custom_field_type_enum.rb +264 -0
  74. data/lib/stackone_hris_client/models/employee_custom_fields.rb +279 -0
  75. data/lib/stackone_hris_client/models/employee_custom_fields_type.rb +272 -0
  76. data/lib/stackone_hris_client/models/employee_result.rb +1 -1
  77. data/lib/stackone_hris_client/models/employees_paginated.rb +1 -1
  78. data/lib/stackone_hris_client/models/employment.rb +22 -7
  79. data/lib/stackone_hris_client/models/employment_employment_contract_type.rb +272 -0
  80. data/lib/stackone_hris_client/models/employment_employment_type.rb +272 -0
  81. data/lib/stackone_hris_client/models/employment_pay_frequency.rb +272 -0
  82. data/lib/stackone_hris_client/models/employment_pay_period.rb +272 -0
  83. data/lib/stackone_hris_client/models/employment_result.rb +1 -1
  84. data/lib/stackone_hris_client/models/employment_schedule_type_enum.rb +264 -0
  85. data/lib/stackone_hris_client/models/employment_status_enum.rb +1 -7
  86. data/lib/stackone_hris_client/models/employment_type_enum.rb +1 -7
  87. data/lib/stackone_hris_client/models/employments_paginated.rb +1 -1
  88. data/lib/stackone_hris_client/models/ethnicity_enum.rb +1 -7
  89. data/lib/stackone_hris_client/models/gender_enum.rb +1 -7
  90. data/lib/stackone_hris_client/models/hris_create_employee_request_dto.rb +523 -0
  91. data/lib/stackone_hris_client/models/image.rb +1 -1
  92. data/lib/stackone_hris_client/models/location.rb +12 -8
  93. data/lib/stackone_hris_client/models/location_country.rb +272 -0
  94. data/lib/stackone_hris_client/models/location_location_type.rb +272 -0
  95. data/lib/stackone_hris_client/models/location_result.rb +1 -1
  96. data/lib/stackone_hris_client/models/location_type_enum.rb +1 -7
  97. data/lib/stackone_hris_client/models/locations_paginated.rb +1 -1
  98. data/lib/stackone_hris_client/models/marital_status_enum.rb +1 -7
  99. data/lib/stackone_hris_client/models/pay_frequency_enum.rb +1 -7
  100. data/lib/stackone_hris_client/models/pay_period_enum.rb +1 -7
  101. data/lib/stackone_hris_client/version.rb +2 -2
  102. data/lib/stackone_hris_client.rb +23 -1
  103. data/spec/api/accounts_api_spec.rb +30 -8
  104. data/spec/api/companies_api_spec.rb +13 -13
  105. data/spec/api/connect_sessions_api_spec.rb +8 -8
  106. data/spec/api/employees_api_spec.rb +60 -18
  107. data/spec/api/employments_api_spec.rb +13 -13
  108. data/spec/api/locations_api_spec.rb +9 -9
  109. data/spec/api_client_spec.rb +1 -1
  110. data/spec/configuration_spec.rb +1 -1
  111. data/spec/models/account_meta_spec.rb +50 -0
  112. data/spec/models/account_spec.rb +18 -12
  113. data/spec/models/companies_paginated_spec.rb +4 -4
  114. data/spec/models/company_result_spec.rb +3 -3
  115. data/spec/models/company_spec.rb +4 -4
  116. data/spec/models/connect_session_authenticate_spec.rb +5 -5
  117. data/spec/models/connect_session_create_spec.rb +17 -11
  118. data/spec/models/connect_session_spec.rb +14 -14
  119. data/spec/models/connect_session_token_spec.rb +15 -15
  120. data/spec/models/country_code_enum_spec.rb +4 -4
  121. data/spec/models/create_employee_result_spec.rb +46 -0
  122. data/spec/models/employee.rb +220 -0
  123. data/spec/models/employee_api_model_avatar_spec.rb +40 -0
  124. data/spec/models/employee_api_model_employment_status_spec.rb +44 -0
  125. data/spec/models/employee_api_model_employment_type_spec.rb +44 -0
  126. data/spec/models/employee_api_model_ethnicity_spec.rb +44 -0
  127. data/spec/models/employee_api_model_gender_spec.rb +44 -0
  128. data/spec/models/employee_api_model_home_location_spec.rb +94 -0
  129. data/spec/models/employee_api_model_marital_status_spec.rb +44 -0
  130. data/spec/models/employee_api_model_spec.rb +220 -0
  131. data/spec/models/employee_api_model_work_location_spec.rb +94 -0
  132. data/spec/models/employee_custom_field_type_enum_spec.rb +44 -0
  133. data/spec/models/employee_custom_fields_spec.rb +70 -0
  134. data/spec/models/employee_custom_fields_type_spec.rb +44 -0
  135. data/spec/models/employee_result_spec.rb +6 -6
  136. data/spec/models/employees_paginated_spec.rb +7 -7
  137. data/spec/models/employment_employment_contract_type_spec.rb +44 -0
  138. data/spec/models/employment_employment_type_spec.rb +44 -0
  139. data/spec/models/employment_pay_frequency_spec.rb +44 -0
  140. data/spec/models/employment_pay_period_spec.rb +44 -0
  141. data/spec/models/employment_result_spec.rb +3 -3
  142. data/spec/models/employment_schedule_type_enum_spec.rb +44 -0
  143. data/spec/models/employment_spec.rb +16 -10
  144. data/spec/models/employment_status_enum_spec.rb +4 -4
  145. data/spec/models/employment_type_enum_spec.rb +4 -4
  146. data/spec/models/employments_paginated_spec.rb +4 -4
  147. data/spec/models/ethnicity_enum_spec.rb +4 -4
  148. data/spec/models/gender_enum_spec.rb +4 -4
  149. data/spec/models/hris_create_employee_request_dto_spec.rb +220 -0
  150. data/spec/models/image_spec.rb +3 -3
  151. data/spec/models/location_country_spec.rb +44 -0
  152. data/spec/models/location_location_type_spec.rb +44 -0
  153. data/spec/models/location_result_spec.rb +3 -3
  154. data/spec/models/location_spec.rb +12 -12
  155. data/spec/models/location_type_enum_spec.rb +3 -3
  156. data/spec/models/locations_paginated_spec.rb +4 -4
  157. data/spec/models/marital_status_enum_spec.rb +4 -4
  158. data/spec/models/pay_frequency_enum_spec.rb +4 -4
  159. data/spec/models/pay_period_enum_spec.rb +3 -3
  160. data/spec/spec_helper.rb +1 -1
  161. data/stackone_hris_client.gemspec +1 -1
  162. metadata +92 -4
  163. data/spec/models/employee_spec.rb +0 -124
@@ -0,0 +1,80 @@
1
+ # StackOneHRIS::HrisCreateEmployeeRequestDto
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | The employee ID | [optional] |
8
+ | **first_name** | **String** | The employee first name | [optional] |
9
+ | **last_name** | **String** | The employee last name | [optional] |
10
+ | **name** | **String** | The employee name | [optional] |
11
+ | **display_name** | **String** | The employee display name | [optional] |
12
+ | **avatar_url** | **String** | The employee avatar Url | [optional] |
13
+ | **personal_email** | **String** | The employee personal email | [optional] |
14
+ | **personal_phone_number** | **String** | The employee personal phone number | [optional] |
15
+ | **work_email** | **String** | The employee work email | [optional] |
16
+ | **work_phone_number** | **String** | The employee work phone number | [optional] |
17
+ | **job_title** | **String** | The employee job title | [optional] |
18
+ | **department** | **String** | The employee department | [optional] |
19
+ | **manager_id** | **String** | The employee manager ID | [optional] |
20
+ | **gender** | [**EmployeeApiModelGender**](EmployeeApiModelGender.md) | | [optional] |
21
+ | **ethnicity** | [**EmployeeApiModelEthnicity**](EmployeeApiModelEthnicity.md) | | [optional] |
22
+ | **date_of_birth** | **String** | The employee date_of_birth | [optional] |
23
+ | **birthday** | **String** | The employee birthday | [optional] |
24
+ | **marital_status** | [**EmployeeApiModelMaritalStatus**](EmployeeApiModelMaritalStatus.md) | | [optional] |
25
+ | **avatar** | [**EmployeeApiModelAvatar**](EmployeeApiModelAvatar.md) | | [optional] |
26
+ | **hire_date** | **String** | The employee hire date | [optional] |
27
+ | **start_date** | **String** | The employee start date | [optional] |
28
+ | **tenure** | **String** | The employee tenure | [optional] |
29
+ | **work_anniversary** | **String** | The employee work anniversary | [optional] |
30
+ | **employment_type** | [**EmployeeApiModelEmploymentType**](EmployeeApiModelEmploymentType.md) | | [optional] |
31
+ | **employment_contract_type** | [**EmploymentEmploymentContractType**](EmploymentEmploymentContractType.md) | | [optional] |
32
+ | **employment_status** | [**EmployeeApiModelEmploymentStatus**](EmployeeApiModelEmploymentStatus.md) | | [optional] |
33
+ | **termination_date** | **String** | The employee termination date | [optional] |
34
+ | **home_location** | [**EmployeeApiModelHomeLocation**](EmployeeApiModelHomeLocation.md) | | [optional] |
35
+ | **work_location** | [**EmployeeApiModelWorkLocation**](EmployeeApiModelWorkLocation.md) | | [optional] |
36
+ | **company_name** | **String** | The employee company name | [optional] |
37
+ | **employments** | [**Array<Employment>**](Employment.md) | The employee employments | [optional] |
38
+ | **custom_fields** | [**Array<EmployeeCustomFields>**](EmployeeCustomFields.md) | The employee custom fields | [optional] |
39
+
40
+ ## Example
41
+
42
+ ```ruby
43
+ require 'stackone_hris_client'
44
+
45
+ instance = StackOneHRIS::HrisCreateEmployeeRequestDto.new(
46
+ id: 1687-3,
47
+ first_name: Issac,
48
+ last_name: Newton,
49
+ name: Issac Newton,
50
+ display_name: Sir Issac Newton,
51
+ avatar_url: https://example.com/avatar.png,
52
+ personal_email: isaac.newton@example.com,
53
+ personal_phone_number: +1234567890,
54
+ work_email: newton@example.com,
55
+ work_phone_number: +1234567890,
56
+ job_title: Physicist,
57
+ department: Physics,
58
+ manager_id: 67890,
59
+ gender: null,
60
+ ethnicity: null,
61
+ date_of_birth: 1990-01-01,
62
+ birthday: 2023-06-14T00:00:00Z,
63
+ marital_status: null,
64
+ avatar: null,
65
+ hire_date: 2022-01-01,
66
+ start_date: 2022-01-01,
67
+ tenure: 2,
68
+ work_anniversary: 2022-06-14T00:00:00Z,
69
+ employment_type: null,
70
+ employment_contract_type: null,
71
+ employment_status: null,
72
+ termination_date: 2023-06-14T00:00:00Z,
73
+ home_location: null,
74
+ work_location: null,
75
+ company_name: Example Corp,
76
+ employments: null,
77
+ custom_fields: null
78
+ )
79
+ ```
80
+
data/docs/Location.md CHANGED
@@ -4,17 +4,17 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **id** | **String** | | [optional] |
8
- | **employee_id** | **String** | | |
9
- | **name** | **String** | | [optional] |
10
- | **phone_number** | **String** | | [optional] |
11
- | **street_1** | **String** | | [optional] |
12
- | **street_2** | **String** | | [optional] |
13
- | **city** | **String** | | [optional] |
14
- | **state** | **String** | | [optional] |
15
- | **zip_code** | **String** | | [optional] |
16
- | **country** | [**CountryCodeEnum**](CountryCodeEnum.md) | | [optional] |
17
- | **location_type** | [**LocationTypeEnum**](LocationTypeEnum.md) | | [optional] |
7
+ | **id** | **String** | The unique ID of the location | [optional] |
8
+ | **employee_id** | **String** | The employee ID | [optional] |
9
+ | **name** | **String** | The name of the location | [optional] |
10
+ | **phone_number** | **String** | The phone number of the location | [optional] |
11
+ | **street_1** | **String** | The first line of the address | [optional] |
12
+ | **street_2** | **String** | The second line of the address | [optional] |
13
+ | **city** | **String** | The city where the location is situated | [optional] |
14
+ | **state** | **String** | The state where the location is situated | [optional] |
15
+ | **zip_code** | **String** | The ZIP code/Postal code of the location | [optional] |
16
+ | **country** | [**LocationCountry**](LocationCountry.md) | | [optional] |
17
+ | **location_type** | [**LocationLocationType**](LocationLocationType.md) | | [optional] |
18
18
 
19
19
  ## Example
20
20
 
@@ -22,15 +22,15 @@
22
22
  require 'stackone_hris_client'
23
23
 
24
24
  instance = StackOneHRIS::Location.new(
25
- id: null,
26
- employee_id: null,
27
- name: null,
28
- phone_number: null,
29
- street_1: null,
30
- street_2: null,
31
- city: null,
32
- state: null,
33
- zip_code: null,
25
+ id: 123456,
26
+ employee_id: 1687-3,
27
+ name: Woolsthorpe Manor,
28
+ phone_number: +44 1476 860 364,
29
+ street_1: Water Lane,
30
+ street_2: Woolsthorpe by Colsterworth,
31
+ city: Grantham,
32
+ state: Lincolnshire,
33
+ zip_code: NG33 5NR,
34
34
  country: null,
35
35
  location_type: null
36
36
  )
@@ -0,0 +1,20 @@
1
+ # StackOneHRIS::LocationCountry
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **value** | **String** | | |
8
+ | **source_value** | **String** | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'stackone_hris_client'
14
+
15
+ instance = StackOneHRIS::LocationCountry.new(
16
+ value: null,
17
+ source_value: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # StackOneHRIS::LocationLocationType
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **value** | **String** | | |
8
+ | **source_value** | **String** | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'stackone_hris_client'
14
+
15
+ instance = StackOneHRIS::LocationLocationType.new(
16
+ value: null,
17
+ source_value: null
18
+ )
19
+ ```
20
+
data/docs/LocationsApi.md CHANGED
@@ -4,15 +4,15 @@ All URIs are relative to *https://api.stackone.com*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
- | [**hris_locations_get**](LocationsApi.md#hris_locations_get) | **GET** /unified/hris/locations/{id} | |
8
- | [**hris_locations_list**](LocationsApi.md#hris_locations_list) | **GET** /unified/hris/locations | |
7
+ | [**hris_locations_get**](LocationsApi.md#hris_locations_get) | **GET** /unified/hris/locations/{id} | Get location |
8
+ | [**hris_locations_list**](LocationsApi.md#hris_locations_list) | **GET** /unified/hris/locations | List locations |
9
9
 
10
10
 
11
11
  ## hris_locations_get
12
12
 
13
13
  > <LocationResult> hris_locations_get(id, x_account_id, opts)
14
14
 
15
-
15
+ Get location
16
16
 
17
17
  ### Examples
18
18
 
@@ -26,7 +26,7 @@ StackOneHRIS.configure do |config|
26
26
  end
27
27
 
28
28
  api_instance = StackOneHRIS::LocationsApi.new
29
- id = 'id_example' # String |
29
+ id = 'id_example' # String |
30
30
  x_account_id = 'x_account_id_example' # String | The account identifier
31
31
  opts = {
32
32
  page: 'page_example', # String | The page number of the results to fetch
@@ -38,7 +38,7 @@ opts = {
38
38
  }
39
39
 
40
40
  begin
41
- #
41
+ # Get location
42
42
  result = api_instance.hris_locations_get(id, x_account_id, opts)
43
43
  p result
44
44
  rescue StackOneHRIS::ApiError => e
@@ -54,7 +54,7 @@ This returns an Array which contains the response data, status code and headers.
54
54
 
55
55
  ```ruby
56
56
  begin
57
- #
57
+ # Get location
58
58
  data, status_code, headers = api_instance.hris_locations_get_with_http_info(id, x_account_id, opts)
59
59
  p status_code # => 2xx
60
60
  p headers # => { ... }
@@ -95,7 +95,7 @@ end
95
95
 
96
96
  > <LocationsPaginated> hris_locations_list(x_account_id, opts)
97
97
 
98
-
98
+ List locations
99
99
 
100
100
  ### Examples
101
101
 
@@ -120,7 +120,7 @@ opts = {
120
120
  }
121
121
 
122
122
  begin
123
- #
123
+ # List locations
124
124
  result = api_instance.hris_locations_list(x_account_id, opts)
125
125
  p result
126
126
  rescue StackOneHRIS::ApiError => e
@@ -136,7 +136,7 @@ This returns an Array which contains the response data, status code and headers.
136
136
 
137
137
  ```ruby
138
138
  begin
139
- #
139
+ # List locations
140
140
  data, status_code, headers = api_instance.hris_locations_list_with_http_info(x_account_id, opts)
141
141
  p status_code # => 2xx
142
142
  p headers # => { ... }
data/gem-config.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  generatorName: ruby
2
- inputSpec: https://api.eu1.stackone.com/documentation-hris-yaml
2
+ inputSpec: https://api2.eu1.stackone.com/documentation-hris-yaml
3
3
  additionalProperties:
4
4
  moduleName: "StackOneHRIS"
5
5
  gemAuthor: "StackOne"
@@ -10,5 +10,5 @@ additionalProperties:
10
10
  gemName: "stackone_hris_client"
11
11
  gemRequiredRubyVersion: ">= 2.7"
12
12
  gemSummary: "StackOne HRIS client gem"
13
- gemVersion: "1.5.2"
13
+ gemVersion: "1.7.0"
14
14
  library: "typhoeus"
data/generate_gem.sh CHANGED
File without changes
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.5.0
9
+ OpenAPI Generator version: 6.6.0
10
10
 
11
11
  =end
12
12
 
@@ -19,7 +19,7 @@ module StackOneHRIS
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- #
22
+ # Delete Account
23
23
  # @param id [String]
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @return [Account]
@@ -28,7 +28,7 @@ module StackOneHRIS
28
28
  data
29
29
  end
30
30
 
31
- #
31
+ # Delete Account
32
32
  # @param id [String]
33
33
  # @param [Hash] opts the optional parameters
34
34
  # @return [Array<(Account, Integer, Hash)>] Account data, response status code and response headers
@@ -80,7 +80,7 @@ module StackOneHRIS
80
80
  return data, status_code, headers
81
81
  end
82
82
 
83
- #
83
+ # Get Account
84
84
  # @param id [String]
85
85
  # @param [Hash] opts the optional parameters
86
86
  # @return [Account]
@@ -89,7 +89,7 @@ module StackOneHRIS
89
89
  data
90
90
  end
91
91
 
92
- #
92
+ # Get Account
93
93
  # @param id [String]
94
94
  # @param [Hash] opts the optional parameters
95
95
  # @return [Array<(Account, Integer, Hash)>] Account data, response status code and response headers
@@ -141,7 +141,7 @@ module StackOneHRIS
141
141
  return data, status_code, headers
142
142
  end
143
143
 
144
- #
144
+ # List Accounts
145
145
  # @param [Hash] opts the optional parameters
146
146
  # @option opts [String] :provider The provider of the results to fetch
147
147
  # @option opts [String] :origin_owner_id The origin owner identifier of the results to fetch
@@ -151,7 +151,7 @@ module StackOneHRIS
151
151
  data
152
152
  end
153
153
 
154
- #
154
+ # List Accounts
155
155
  # @param [Hash] opts the optional parameters
156
156
  # @option opts [String] :provider The provider of the results to fetch
157
157
  # @option opts [String] :origin_owner_id The origin owner identifier of the results to fetch
@@ -201,5 +201,66 @@ module StackOneHRIS
201
201
  end
202
202
  return data, status_code, headers
203
203
  end
204
+
205
+ # Get meta information of the account
206
+ # @param id [String]
207
+ # @param [Hash] opts the optional parameters
208
+ # @return [AccountMeta]
209
+ def accounts_meta_get(id, opts = {})
210
+ data, _status_code, _headers = accounts_meta_get_with_http_info(id, opts)
211
+ data
212
+ end
213
+
214
+ # Get meta information of the account
215
+ # @param id [String]
216
+ # @param [Hash] opts the optional parameters
217
+ # @return [Array<(AccountMeta, Integer, Hash)>] AccountMeta data, response status code and response headers
218
+ def accounts_meta_get_with_http_info(id, opts = {})
219
+ if @api_client.config.debugging
220
+ @api_client.config.logger.debug 'Calling API: AccountsApi.accounts_meta_get ...'
221
+ end
222
+ # verify the required parameter 'id' is set
223
+ if @api_client.config.client_side_validation && id.nil?
224
+ fail ArgumentError, "Missing the required parameter 'id' when calling AccountsApi.accounts_meta_get"
225
+ end
226
+ # resource path
227
+ local_var_path = '/accounts/{id}/meta'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
228
+
229
+ # query parameters
230
+ query_params = opts[:query_params] || {}
231
+
232
+ # header parameters
233
+ header_params = opts[:header_params] || {}
234
+ # HTTP header 'Accept' (if needed)
235
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
236
+
237
+ # form parameters
238
+ form_params = opts[:form_params] || {}
239
+
240
+ # http body (model)
241
+ post_body = opts[:debug_body]
242
+
243
+ # return_type
244
+ return_type = opts[:debug_return_type] || 'AccountMeta'
245
+
246
+ # auth_names
247
+ auth_names = opts[:debug_auth_names] || ['basic']
248
+
249
+ new_options = opts.merge(
250
+ :operation => :"AccountsApi.accounts_meta_get",
251
+ :header_params => header_params,
252
+ :query_params => query_params,
253
+ :form_params => form_params,
254
+ :body => post_body,
255
+ :auth_names => auth_names,
256
+ :return_type => return_type
257
+ )
258
+
259
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
260
+ if @api_client.config.debugging
261
+ @api_client.config.logger.debug "API called: AccountsApi#accounts_meta_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
262
+ end
263
+ return data, status_code, headers
264
+ end
204
265
  end
205
266
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.5.0
9
+ OpenAPI Generator version: 6.6.0
10
10
 
11
11
  =end
12
12
 
@@ -19,7 +19,7 @@ module StackOneHRIS
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- #
22
+ # Get Company
23
23
  # @param id [String]
24
24
  # @param x_account_id [String] The account identifier
25
25
  # @param [Hash] opts the optional parameters
@@ -30,12 +30,12 @@ module StackOneHRIS
30
30
  # @option opts [String] :sync_token The sync token to select the only updated results
31
31
  # @option opts [String] :updated_after Use a string with a date to only select results updated after that given date
32
32
  # @return [CompanyResult]
33
- def companies_get(id, x_account_id, opts = {})
34
- data, _status_code, _headers = companies_get_with_http_info(id, x_account_id, opts)
33
+ def hris_companies_get(id, x_account_id, opts = {})
34
+ data, _status_code, _headers = hris_companies_get_with_http_info(id, x_account_id, opts)
35
35
  data
36
36
  end
37
37
 
38
- #
38
+ # Get Company
39
39
  # @param id [String]
40
40
  # @param x_account_id [String] The account identifier
41
41
  # @param [Hash] opts the optional parameters
@@ -46,17 +46,17 @@ module StackOneHRIS
46
46
  # @option opts [String] :sync_token The sync token to select the only updated results
47
47
  # @option opts [String] :updated_after Use a string with a date to only select results updated after that given date
48
48
  # @return [Array<(CompanyResult, Integer, Hash)>] CompanyResult data, response status code and response headers
49
- def companies_get_with_http_info(id, x_account_id, opts = {})
49
+ def hris_companies_get_with_http_info(id, x_account_id, opts = {})
50
50
  if @api_client.config.debugging
51
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_get ...'
51
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.hris_companies_get ...'
52
52
  end
53
53
  # verify the required parameter 'id' is set
54
54
  if @api_client.config.client_side_validation && id.nil?
55
- fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_get"
55
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.hris_companies_get"
56
56
  end
57
57
  # verify the required parameter 'x_account_id' is set
58
58
  if @api_client.config.client_side_validation && x_account_id.nil?
59
- fail ArgumentError, "Missing the required parameter 'x_account_id' when calling CompaniesApi.companies_get"
59
+ fail ArgumentError, "Missing the required parameter 'x_account_id' when calling CompaniesApi.hris_companies_get"
60
60
  end
61
61
  # resource path
62
62
  local_var_path = '/unified/hris/companies/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
@@ -89,7 +89,7 @@ module StackOneHRIS
89
89
  auth_names = opts[:debug_auth_names] || ['basic']
90
90
 
91
91
  new_options = opts.merge(
92
- :operation => :"CompaniesApi.companies_get",
92
+ :operation => :"CompaniesApi.hris_companies_get",
93
93
  :header_params => header_params,
94
94
  :query_params => query_params,
95
95
  :form_params => form_params,
@@ -100,12 +100,12 @@ module StackOneHRIS
100
100
 
101
101
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
102
102
  if @api_client.config.debugging
103
- @api_client.config.logger.debug "API called: CompaniesApi#companies_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
103
+ @api_client.config.logger.debug "API called: CompaniesApi#hris_companies_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
104
104
  end
105
105
  return data, status_code, headers
106
106
  end
107
107
 
108
- #
108
+ # List Companies
109
109
  # @param x_account_id [String] The account identifier
110
110
  # @param [Hash] opts the optional parameters
111
111
  # @option opts [String] :page The page number of the results to fetch
@@ -115,12 +115,12 @@ module StackOneHRIS
115
115
  # @option opts [String] :sync_token The sync token to select the only updated results
116
116
  # @option opts [String] :updated_after Use a string with a date to only select results updated after that given date
117
117
  # @return [CompaniesPaginated]
118
- def companies_list(x_account_id, opts = {})
119
- data, _status_code, _headers = companies_list_with_http_info(x_account_id, opts)
118
+ def hris_companies_list(x_account_id, opts = {})
119
+ data, _status_code, _headers = hris_companies_list_with_http_info(x_account_id, opts)
120
120
  data
121
121
  end
122
122
 
123
- #
123
+ # List Companies
124
124
  # @param x_account_id [String] The account identifier
125
125
  # @param [Hash] opts the optional parameters
126
126
  # @option opts [String] :page The page number of the results to fetch
@@ -130,13 +130,13 @@ module StackOneHRIS
130
130
  # @option opts [String] :sync_token The sync token to select the only updated results
131
131
  # @option opts [String] :updated_after Use a string with a date to only select results updated after that given date
132
132
  # @return [Array<(CompaniesPaginated, Integer, Hash)>] CompaniesPaginated data, response status code and response headers
133
- def companies_list_with_http_info(x_account_id, opts = {})
133
+ def hris_companies_list_with_http_info(x_account_id, opts = {})
134
134
  if @api_client.config.debugging
135
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_list ...'
135
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.hris_companies_list ...'
136
136
  end
137
137
  # verify the required parameter 'x_account_id' is set
138
138
  if @api_client.config.client_side_validation && x_account_id.nil?
139
- fail ArgumentError, "Missing the required parameter 'x_account_id' when calling CompaniesApi.companies_list"
139
+ fail ArgumentError, "Missing the required parameter 'x_account_id' when calling CompaniesApi.hris_companies_list"
140
140
  end
141
141
  # resource path
142
142
  local_var_path = '/unified/hris/companies'
@@ -169,7 +169,7 @@ module StackOneHRIS
169
169
  auth_names = opts[:debug_auth_names] || ['basic']
170
170
 
171
171
  new_options = opts.merge(
172
- :operation => :"CompaniesApi.companies_list",
172
+ :operation => :"CompaniesApi.hris_companies_list",
173
173
  :header_params => header_params,
174
174
  :query_params => query_params,
175
175
  :form_params => form_params,
@@ -180,7 +180,7 @@ module StackOneHRIS
180
180
 
181
181
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
182
182
  if @api_client.config.debugging
183
- @api_client.config.logger.debug "API called: CompaniesApi#companies_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
183
+ @api_client.config.logger.debug "API called: CompaniesApi#hris_companies_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
184
184
  end
185
185
  return data, status_code, headers
186
186
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.5.0
9
+ OpenAPI Generator version: 6.6.0
10
10
 
11
11
  =end
12
12
 
@@ -19,7 +19,7 @@ module StackOneHRIS
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- #
22
+ # Authenticate Session
23
23
  # @param connect_session_authenticate [ConnectSessionAuthenticate] The parameters to authenticate
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @return [ConnectSession]
@@ -28,7 +28,7 @@ module StackOneHRIS
28
28
  data
29
29
  end
30
30
 
31
- #
31
+ # Authenticate Session
32
32
  # @param connect_session_authenticate [ConnectSessionAuthenticate] The parameters to authenticate
33
33
  # @param [Hash] opts the optional parameters
34
34
  # @return [Array<(ConnectSession, Integer, Hash)>] ConnectSession data, response status code and response headers
@@ -85,7 +85,7 @@ module StackOneHRIS
85
85
  return data, status_code, headers
86
86
  end
87
87
 
88
- #
88
+ # Create Session
89
89
  # @param connect_session_create [ConnectSessionCreate]
90
90
  # @param [Hash] opts the optional parameters
91
91
  # @return [ConnectSessionToken]
@@ -94,7 +94,7 @@ module StackOneHRIS
94
94
  data
95
95
  end
96
96
 
97
- #
97
+ # Create Session
98
98
  # @param connect_session_create [ConnectSessionCreate]
99
99
  # @param [Hash] opts the optional parameters
100
100
  # @return [Array<(ConnectSessionToken, Integer, Hash)>] ConnectSessionToken data, response status code and response headers