stackone_hris_client 1.3.1 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +5 -5
  3. data/README.md +13 -5
  4. data/docs/AccountsApi.md +4 -7
  5. data/docs/CompaniesApi.md +13 -15
  6. data/docs/ConnectSession.md +1 -1
  7. data/docs/ConnectSessionCreate.md +3 -1
  8. data/docs/ConnectSessionToken.md +1 -1
  9. data/docs/ConnectSessionsApi.md +3 -5
  10. data/docs/Employee.md +8 -8
  11. data/docs/EmployeesApi.md +17 -15
  12. data/docs/Employment.md +3 -3
  13. data/docs/EmploymentStatusEnum.md +20 -0
  14. data/docs/EmploymentTypeEnum.md +20 -0
  15. data/docs/EmploymentsApi.md +13 -15
  16. data/docs/EthnicityEnum.md +20 -0
  17. data/docs/GenderEnum.md +20 -0
  18. data/docs/Location.md +1 -1
  19. data/docs/LocationTypeEnum.md +20 -0
  20. data/docs/LocationsApi.md +13 -15
  21. data/docs/MaritalStatusEnum.md +20 -0
  22. data/docs/PayFrequencyEnum.md +20 -0
  23. data/docs/PayPeriodEnum.md +20 -0
  24. data/gem-config.yml +1 -1
  25. data/lib/stackone_hris_client/api/companies_api.rb +12 -12
  26. data/lib/stackone_hris_client/api/employees_api.rb +18 -12
  27. data/lib/stackone_hris_client/api/employments_api.rb +12 -12
  28. data/lib/stackone_hris_client/api/locations_api.rb +12 -12
  29. data/lib/stackone_hris_client/models/connect_session_create.rb +13 -1
  30. data/lib/stackone_hris_client/models/employee.rb +8 -90
  31. data/lib/stackone_hris_client/models/employment.rb +3 -61
  32. data/lib/stackone_hris_client/models/employment_status_enum.rb +270 -0
  33. data/lib/stackone_hris_client/models/employment_type_enum.rb +270 -0
  34. data/lib/stackone_hris_client/models/ethnicity_enum.rb +270 -0
  35. data/lib/stackone_hris_client/models/gender_enum.rb +270 -0
  36. data/lib/stackone_hris_client/models/location.rb +1 -35
  37. data/lib/stackone_hris_client/models/location_type_enum.rb +270 -0
  38. data/lib/stackone_hris_client/models/marital_status_enum.rb +270 -0
  39. data/lib/stackone_hris_client/models/pay_frequency_enum.rb +270 -0
  40. data/lib/stackone_hris_client/models/pay_period_enum.rb +270 -0
  41. data/lib/stackone_hris_client/version.rb +1 -1
  42. data/lib/stackone_hris_client.rb +8 -0
  43. data/spec/configuration_spec.rb +3 -3
  44. data/spec/models/employment_status_enum_spec.rb +44 -0
  45. data/spec/models/employment_type_enum_spec.rb +44 -0
  46. data/spec/models/ethnicity_enum_spec.rb +44 -0
  47. data/spec/models/gender_enum_spec.rb +44 -0
  48. data/spec/models/location_type_enum_spec.rb +44 -0
  49. data/spec/models/marital_status_enum_spec.rb +44 -0
  50. data/spec/models/pay_frequency_enum_spec.rb +44 -0
  51. data/spec/models/pay_period_enum_spec.rb +44 -0
  52. metadata +34 -2
data/docs/LocationsApi.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # StackOneHRIS::LocationsApi
2
2
 
3
- All URIs are relative to *http://localhost*
3
+ All URIs are relative to *https://api.stackone.com*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
@@ -22,8 +22,7 @@ require 'stackone_hris_client'
22
22
  # setup authorization
23
23
  StackOneHRIS.configure do |config|
24
24
  # Configure HTTP basic authorization: basic
25
- config.username = 'YOUR USERNAME'
26
- config.password = 'YOUR PASSWORD'
25
+ config.api_key_token = 'YOUR API KEY'
27
26
  end
28
27
 
29
28
  api_instance = StackOneHRIS::LocationsApi.new
@@ -33,9 +32,9 @@ opts = {
33
32
  page: 'page_example', # String | The page number of the results to fetch
34
33
  page_size: 'page_size_example', # String | The number of results per page
35
34
  raw: true, # Boolean | Indicates that the raw request result is returned
36
- fields: ['inner_example'], # Array<String> | The list of fields to return in the response (if empty, all fields are returned)
37
- expand: ['inner_example'], # Array<String> | The list of fields that will be expanded in the response
38
- sync_token: 'sync_token_example' # String | The sync token to select the only updated results
35
+ fields: 'id,employee_id,name,phone_number,street_1,street_2,city,state,zip_code,country,location_type', # String | The comma separated list of fields to return in the response (if empty, all fields are returned)
36
+ sync_token: 'sync_token_example', # String | The sync token to select the only updated results
37
+ updated_after: 'updated_after_example' # String | Use a string with a date to only select results updated after that given date
39
38
  }
40
39
 
41
40
  begin
@@ -74,9 +73,9 @@ end
74
73
  | **page** | **String** | The page number of the results to fetch | [optional] |
75
74
  | **page_size** | **String** | The number of results per page | [optional][default to &#39;25&#39;] |
76
75
  | **raw** | **Boolean** | Indicates that the raw request result is returned | [optional][default to false] |
77
- | **fields** | [**Array&lt;String&gt;**](String.md) | The list of fields to return in the response (if empty, all fields are returned) | [optional] |
78
- | **expand** | [**Array&lt;String&gt;**](String.md) | The list of fields that will be expanded in the response | [optional] |
76
+ | **fields** | **String** | The comma separated list of fields to return in the response (if empty, all fields are returned) | [optional][default to &#39;&#39;] |
79
77
  | **sync_token** | **String** | The sync token to select the only updated results | [optional] |
78
+ | **updated_after** | **String** | Use a string with a date to only select results updated after that given date | [optional] |
80
79
 
81
80
  ### Return type
82
81
 
@@ -106,8 +105,7 @@ require 'stackone_hris_client'
106
105
  # setup authorization
107
106
  StackOneHRIS.configure do |config|
108
107
  # Configure HTTP basic authorization: basic
109
- config.username = 'YOUR USERNAME'
110
- config.password = 'YOUR PASSWORD'
108
+ config.api_key_token = 'YOUR API KEY'
111
109
  end
112
110
 
113
111
  api_instance = StackOneHRIS::LocationsApi.new
@@ -116,9 +114,9 @@ opts = {
116
114
  page: 'page_example', # String | The page number of the results to fetch
117
115
  page_size: 'page_size_example', # String | The number of results per page
118
116
  raw: true, # Boolean | Indicates that the raw request result is returned
119
- fields: ['inner_example'], # Array<String> | The list of fields to return in the response (if empty, all fields are returned)
120
- expand: ['inner_example'], # Array<String> | The list of fields that will be expanded in the response
121
- sync_token: 'sync_token_example' # String | The sync token to select the only updated results
117
+ fields: 'id,employee_id,name,phone_number,street_1,street_2,city,state,zip_code,country,location_type', # String | The comma separated list of fields to return in the response (if empty, all fields are returned)
118
+ sync_token: 'sync_token_example', # String | The sync token to select the only updated results
119
+ updated_after: 'updated_after_example' # String | Use a string with a date to only select results updated after that given date
122
120
  }
123
121
 
124
122
  begin
@@ -156,9 +154,9 @@ end
156
154
  | **page** | **String** | The page number of the results to fetch | [optional] |
157
155
  | **page_size** | **String** | The number of results per page | [optional][default to &#39;25&#39;] |
158
156
  | **raw** | **Boolean** | Indicates that the raw request result is returned | [optional][default to false] |
159
- | **fields** | [**Array&lt;String&gt;**](String.md) | The list of fields to return in the response (if empty, all fields are returned) | [optional] |
160
- | **expand** | [**Array&lt;String&gt;**](String.md) | The list of fields that will be expanded in the response | [optional] |
157
+ | **fields** | **String** | The comma separated list of fields to return in the response (if empty, all fields are returned) | [optional][default to &#39;&#39;] |
161
158
  | **sync_token** | **String** | The sync token to select the only updated results | [optional] |
159
+ | **updated_after** | **String** | Use a string with a date to only select results updated after that given date | [optional] |
162
160
 
163
161
  ### Return type
164
162
 
@@ -0,0 +1,20 @@
1
+ # StackOneHRIS::MaritalStatusEnum
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::MaritalStatusEnum.new(
16
+ value: null,
17
+ source_value: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # StackOneHRIS::PayFrequencyEnum
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::PayFrequencyEnum.new(
16
+ value: null,
17
+ source_value: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # StackOneHRIS::PayPeriodEnum
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::PayPeriodEnum.new(
16
+ value: null,
17
+ source_value: null
18
+ )
19
+ ```
20
+
data/gem-config.yml CHANGED
@@ -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.3.1"
13
+ gemVersion: "1.4.0"
14
14
  library: "typhoeus"
@@ -26,9 +26,9 @@ module StackOneHRIS
26
26
  # @option opts [String] :page The page number of the results to fetch
27
27
  # @option opts [String] :page_size The number of results per page (default to '25')
28
28
  # @option opts [Boolean] :raw Indicates that the raw request result is returned (default to false)
29
- # @option opts [Array<String>] :fields The list of fields to return in the response (if empty, all fields are returned)
30
- # @option opts [Array<String>] :expand The list of fields that will be expanded in the response
29
+ # @option opts [String] :fields The comma separated list of fields to return in the response (if empty, all fields are returned) (default to '')
31
30
  # @option opts [String] :sync_token The sync token to select the only updated results
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
33
  def companies_get(id, x_account_id, opts = {})
34
34
  data, _status_code, _headers = companies_get_with_http_info(id, x_account_id, opts)
@@ -42,9 +42,9 @@ module StackOneHRIS
42
42
  # @option opts [String] :page The page number of the results to fetch
43
43
  # @option opts [String] :page_size The number of results per page (default to '25')
44
44
  # @option opts [Boolean] :raw Indicates that the raw request result is returned (default to false)
45
- # @option opts [Array<String>] :fields The list of fields to return in the response (if empty, all fields are returned)
46
- # @option opts [Array<String>] :expand The list of fields that will be expanded in the response
45
+ # @option opts [String] :fields The comma separated list of fields to return in the response (if empty, all fields are returned) (default to '')
47
46
  # @option opts [String] :sync_token The sync token to select the only updated results
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
49
  def companies_get_with_http_info(id, x_account_id, opts = {})
50
50
  if @api_client.config.debugging
@@ -66,9 +66,9 @@ module StackOneHRIS
66
66
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
67
67
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
68
68
  query_params[:'raw'] = opts[:'raw'] if !opts[:'raw'].nil?
69
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
70
- query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
69
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
71
70
  query_params[:'sync_token'] = opts[:'sync_token'] if !opts[:'sync_token'].nil?
71
+ query_params[:'updated_after'] = opts[:'updated_after'] if !opts[:'updated_after'].nil?
72
72
 
73
73
  # header parameters
74
74
  header_params = opts[:header_params] || {}
@@ -111,9 +111,9 @@ module StackOneHRIS
111
111
  # @option opts [String] :page The page number of the results to fetch
112
112
  # @option opts [String] :page_size The number of results per page (default to '25')
113
113
  # @option opts [Boolean] :raw Indicates that the raw request result is returned (default to false)
114
- # @option opts [Array<String>] :fields The list of fields to return in the response (if empty, all fields are returned)
115
- # @option opts [Array<String>] :expand The list of fields that will be expanded in the response
114
+ # @option opts [String] :fields The comma separated list of fields to return in the response (if empty, all fields are returned) (default to '')
116
115
  # @option opts [String] :sync_token The sync token to select the only updated results
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
118
  def companies_list(x_account_id, opts = {})
119
119
  data, _status_code, _headers = companies_list_with_http_info(x_account_id, opts)
@@ -126,9 +126,9 @@ module StackOneHRIS
126
126
  # @option opts [String] :page The page number of the results to fetch
127
127
  # @option opts [String] :page_size The number of results per page (default to '25')
128
128
  # @option opts [Boolean] :raw Indicates that the raw request result is returned (default to false)
129
- # @option opts [Array<String>] :fields The list of fields to return in the response (if empty, all fields are returned)
130
- # @option opts [Array<String>] :expand The list of fields that will be expanded in the response
129
+ # @option opts [String] :fields The comma separated list of fields to return in the response (if empty, all fields are returned) (default to '')
131
130
  # @option opts [String] :sync_token The sync token to select the only updated results
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
133
  def companies_list_with_http_info(x_account_id, opts = {})
134
134
  if @api_client.config.debugging
@@ -146,9 +146,9 @@ module StackOneHRIS
146
146
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
147
147
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
148
148
  query_params[:'raw'] = opts[:'raw'] if !opts[:'raw'].nil?
149
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
150
- query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
149
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
151
150
  query_params[:'sync_token'] = opts[:'sync_token'] if !opts[:'sync_token'].nil?
151
+ query_params[:'updated_after'] = opts[:'updated_after'] if !opts[:'updated_after'].nil?
152
152
 
153
153
  # header parameters
154
154
  header_params = opts[:header_params] || {}
@@ -26,9 +26,10 @@ module StackOneHRIS
26
26
  # @option opts [String] :page The page number of the results to fetch
27
27
  # @option opts [String] :page_size The number of results per page (default to '25')
28
28
  # @option opts [Boolean] :raw Indicates that the raw request result is returned (default to false)
29
- # @option opts [Array<String>] :fields The list of fields to return in the response (if empty, all fields are returned)
30
- # @option opts [Array<String>] :expand The list of fields that will be expanded in the response
29
+ # @option opts [String] :fields The comma separated list of fields to return in the response (if empty, all fields are returned) (default to '')
31
30
  # @option opts [String] :sync_token The sync token to select the only updated results
31
+ # @option opts [String] :updated_after Use a string with a date to only select results updated after that given date
32
+ # @option opts [String] :expand The comma separated list of fields that will be expanded in the response (default to '')
32
33
  # @return [EmployeeResult]
33
34
  def employees_get(id, x_account_id, opts = {})
34
35
  data, _status_code, _headers = employees_get_with_http_info(id, x_account_id, opts)
@@ -42,9 +43,10 @@ module StackOneHRIS
42
43
  # @option opts [String] :page The page number of the results to fetch
43
44
  # @option opts [String] :page_size The number of results per page (default to '25')
44
45
  # @option opts [Boolean] :raw Indicates that the raw request result is returned (default to false)
45
- # @option opts [Array<String>] :fields The list of fields to return in the response (if empty, all fields are returned)
46
- # @option opts [Array<String>] :expand The list of fields that will be expanded in the response
46
+ # @option opts [String] :fields The comma separated list of fields to return in the response (if empty, all fields are returned) (default to '')
47
47
  # @option opts [String] :sync_token The sync token to select the only updated results
48
+ # @option opts [String] :updated_after Use a string with a date to only select results updated after that given date
49
+ # @option opts [String] :expand The comma separated list of fields that will be expanded in the response (default to '')
48
50
  # @return [Array<(EmployeeResult, Integer, Hash)>] EmployeeResult data, response status code and response headers
49
51
  def employees_get_with_http_info(id, x_account_id, opts = {})
50
52
  if @api_client.config.debugging
@@ -66,9 +68,10 @@ module StackOneHRIS
66
68
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
67
69
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
68
70
  query_params[:'raw'] = opts[:'raw'] if !opts[:'raw'].nil?
69
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
70
- query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
71
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
71
72
  query_params[:'sync_token'] = opts[:'sync_token'] if !opts[:'sync_token'].nil?
73
+ query_params[:'updated_after'] = opts[:'updated_after'] if !opts[:'updated_after'].nil?
74
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
72
75
 
73
76
  # header parameters
74
77
  header_params = opts[:header_params] || {}
@@ -111,9 +114,10 @@ module StackOneHRIS
111
114
  # @option opts [String] :page The page number of the results to fetch
112
115
  # @option opts [String] :page_size The number of results per page (default to '25')
113
116
  # @option opts [Boolean] :raw Indicates that the raw request result is returned (default to false)
114
- # @option opts [Array<String>] :fields The list of fields to return in the response (if empty, all fields are returned)
115
- # @option opts [Array<String>] :expand The list of fields that will be expanded in the response
117
+ # @option opts [String] :fields The comma separated list of fields to return in the response (if empty, all fields are returned) (default to '')
116
118
  # @option opts [String] :sync_token The sync token to select the only updated results
119
+ # @option opts [String] :updated_after Use a string with a date to only select results updated after that given date
120
+ # @option opts [String] :expand The comma separated list of fields that will be expanded in the response (default to '')
117
121
  # @return [EmployeesPaginated]
118
122
  def employees_list(x_account_id, opts = {})
119
123
  data, _status_code, _headers = employees_list_with_http_info(x_account_id, opts)
@@ -126,9 +130,10 @@ module StackOneHRIS
126
130
  # @option opts [String] :page The page number of the results to fetch
127
131
  # @option opts [String] :page_size The number of results per page (default to '25')
128
132
  # @option opts [Boolean] :raw Indicates that the raw request result is returned (default to false)
129
- # @option opts [Array<String>] :fields The list of fields to return in the response (if empty, all fields are returned)
130
- # @option opts [Array<String>] :expand The list of fields that will be expanded in the response
133
+ # @option opts [String] :fields The comma separated list of fields to return in the response (if empty, all fields are returned) (default to '')
131
134
  # @option opts [String] :sync_token The sync token to select the only updated results
135
+ # @option opts [String] :updated_after Use a string with a date to only select results updated after that given date
136
+ # @option opts [String] :expand The comma separated list of fields that will be expanded in the response (default to '')
132
137
  # @return [Array<(EmployeesPaginated, Integer, Hash)>] EmployeesPaginated data, response status code and response headers
133
138
  def employees_list_with_http_info(x_account_id, opts = {})
134
139
  if @api_client.config.debugging
@@ -146,9 +151,10 @@ module StackOneHRIS
146
151
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
147
152
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
148
153
  query_params[:'raw'] = opts[:'raw'] if !opts[:'raw'].nil?
149
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
150
- query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
154
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
151
155
  query_params[:'sync_token'] = opts[:'sync_token'] if !opts[:'sync_token'].nil?
156
+ query_params[:'updated_after'] = opts[:'updated_after'] if !opts[:'updated_after'].nil?
157
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
152
158
 
153
159
  # header parameters
154
160
  header_params = opts[:header_params] || {}
@@ -26,9 +26,9 @@ module StackOneHRIS
26
26
  # @option opts [String] :page The page number of the results to fetch
27
27
  # @option opts [String] :page_size The number of results per page (default to '25')
28
28
  # @option opts [Boolean] :raw Indicates that the raw request result is returned (default to false)
29
- # @option opts [Array<String>] :fields The list of fields to return in the response (if empty, all fields are returned)
30
- # @option opts [Array<String>] :expand The list of fields that will be expanded in the response
29
+ # @option opts [String] :fields The comma separated list of fields to return in the response (if empty, all fields are returned) (default to '')
31
30
  # @option opts [String] :sync_token The sync token to select the only updated results
31
+ # @option opts [String] :updated_after Use a string with a date to only select results updated after that given date
32
32
  # @return [EmploymentResult]
33
33
  def employments_get(id, x_account_id, opts = {})
34
34
  data, _status_code, _headers = employments_get_with_http_info(id, x_account_id, opts)
@@ -42,9 +42,9 @@ module StackOneHRIS
42
42
  # @option opts [String] :page The page number of the results to fetch
43
43
  # @option opts [String] :page_size The number of results per page (default to '25')
44
44
  # @option opts [Boolean] :raw Indicates that the raw request result is returned (default to false)
45
- # @option opts [Array<String>] :fields The list of fields to return in the response (if empty, all fields are returned)
46
- # @option opts [Array<String>] :expand The list of fields that will be expanded in the response
45
+ # @option opts [String] :fields The comma separated list of fields to return in the response (if empty, all fields are returned) (default to '')
47
46
  # @option opts [String] :sync_token The sync token to select the only updated results
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<(EmploymentResult, Integer, Hash)>] EmploymentResult data, response status code and response headers
49
49
  def employments_get_with_http_info(id, x_account_id, opts = {})
50
50
  if @api_client.config.debugging
@@ -66,9 +66,9 @@ module StackOneHRIS
66
66
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
67
67
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
68
68
  query_params[:'raw'] = opts[:'raw'] if !opts[:'raw'].nil?
69
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
70
- query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
69
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
71
70
  query_params[:'sync_token'] = opts[:'sync_token'] if !opts[:'sync_token'].nil?
71
+ query_params[:'updated_after'] = opts[:'updated_after'] if !opts[:'updated_after'].nil?
72
72
 
73
73
  # header parameters
74
74
  header_params = opts[:header_params] || {}
@@ -111,9 +111,9 @@ module StackOneHRIS
111
111
  # @option opts [String] :page The page number of the results to fetch
112
112
  # @option opts [String] :page_size The number of results per page (default to '25')
113
113
  # @option opts [Boolean] :raw Indicates that the raw request result is returned (default to false)
114
- # @option opts [Array<String>] :fields The list of fields to return in the response (if empty, all fields are returned)
115
- # @option opts [Array<String>] :expand The list of fields that will be expanded in the response
114
+ # @option opts [String] :fields The comma separated list of fields to return in the response (if empty, all fields are returned) (default to '')
116
115
  # @option opts [String] :sync_token The sync token to select the only updated results
116
+ # @option opts [String] :updated_after Use a string with a date to only select results updated after that given date
117
117
  # @return [EmploymentsPaginated]
118
118
  def employments_list(x_account_id, opts = {})
119
119
  data, _status_code, _headers = employments_list_with_http_info(x_account_id, opts)
@@ -126,9 +126,9 @@ module StackOneHRIS
126
126
  # @option opts [String] :page The page number of the results to fetch
127
127
  # @option opts [String] :page_size The number of results per page (default to '25')
128
128
  # @option opts [Boolean] :raw Indicates that the raw request result is returned (default to false)
129
- # @option opts [Array<String>] :fields The list of fields to return in the response (if empty, all fields are returned)
130
- # @option opts [Array<String>] :expand The list of fields that will be expanded in the response
129
+ # @option opts [String] :fields The comma separated list of fields to return in the response (if empty, all fields are returned) (default to '')
131
130
  # @option opts [String] :sync_token The sync token to select the only updated results
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<(EmploymentsPaginated, Integer, Hash)>] EmploymentsPaginated data, response status code and response headers
133
133
  def employments_list_with_http_info(x_account_id, opts = {})
134
134
  if @api_client.config.debugging
@@ -146,9 +146,9 @@ module StackOneHRIS
146
146
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
147
147
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
148
148
  query_params[:'raw'] = opts[:'raw'] if !opts[:'raw'].nil?
149
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
150
- query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
149
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
151
150
  query_params[:'sync_token'] = opts[:'sync_token'] if !opts[:'sync_token'].nil?
151
+ query_params[:'updated_after'] = opts[:'updated_after'] if !opts[:'updated_after'].nil?
152
152
 
153
153
  # header parameters
154
154
  header_params = opts[:header_params] || {}
@@ -26,9 +26,9 @@ module StackOneHRIS
26
26
  # @option opts [String] :page The page number of the results to fetch
27
27
  # @option opts [String] :page_size The number of results per page (default to '25')
28
28
  # @option opts [Boolean] :raw Indicates that the raw request result is returned (default to false)
29
- # @option opts [Array<String>] :fields The list of fields to return in the response (if empty, all fields are returned)
30
- # @option opts [Array<String>] :expand The list of fields that will be expanded in the response
29
+ # @option opts [String] :fields The comma separated list of fields to return in the response (if empty, all fields are returned) (default to '')
31
30
  # @option opts [String] :sync_token The sync token to select the only updated results
31
+ # @option opts [String] :updated_after Use a string with a date to only select results updated after that given date
32
32
  # @return [LocationResult]
33
33
  def hris_locations_get(id, x_account_id, opts = {})
34
34
  data, _status_code, _headers = hris_locations_get_with_http_info(id, x_account_id, opts)
@@ -42,9 +42,9 @@ module StackOneHRIS
42
42
  # @option opts [String] :page The page number of the results to fetch
43
43
  # @option opts [String] :page_size The number of results per page (default to '25')
44
44
  # @option opts [Boolean] :raw Indicates that the raw request result is returned (default to false)
45
- # @option opts [Array<String>] :fields The list of fields to return in the response (if empty, all fields are returned)
46
- # @option opts [Array<String>] :expand The list of fields that will be expanded in the response
45
+ # @option opts [String] :fields The comma separated list of fields to return in the response (if empty, all fields are returned) (default to '')
47
46
  # @option opts [String] :sync_token The sync token to select the only updated results
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<(LocationResult, Integer, Hash)>] LocationResult data, response status code and response headers
49
49
  def hris_locations_get_with_http_info(id, x_account_id, opts = {})
50
50
  if @api_client.config.debugging
@@ -66,9 +66,9 @@ module StackOneHRIS
66
66
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
67
67
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
68
68
  query_params[:'raw'] = opts[:'raw'] if !opts[:'raw'].nil?
69
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
70
- query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
69
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
71
70
  query_params[:'sync_token'] = opts[:'sync_token'] if !opts[:'sync_token'].nil?
71
+ query_params[:'updated_after'] = opts[:'updated_after'] if !opts[:'updated_after'].nil?
72
72
 
73
73
  # header parameters
74
74
  header_params = opts[:header_params] || {}
@@ -111,9 +111,9 @@ module StackOneHRIS
111
111
  # @option opts [String] :page The page number of the results to fetch
112
112
  # @option opts [String] :page_size The number of results per page (default to '25')
113
113
  # @option opts [Boolean] :raw Indicates that the raw request result is returned (default to false)
114
- # @option opts [Array<String>] :fields The list of fields to return in the response (if empty, all fields are returned)
115
- # @option opts [Array<String>] :expand The list of fields that will be expanded in the response
114
+ # @option opts [String] :fields The comma separated list of fields to return in the response (if empty, all fields are returned) (default to '')
116
115
  # @option opts [String] :sync_token The sync token to select the only updated results
116
+ # @option opts [String] :updated_after Use a string with a date to only select results updated after that given date
117
117
  # @return [LocationsPaginated]
118
118
  def hris_locations_list(x_account_id, opts = {})
119
119
  data, _status_code, _headers = hris_locations_list_with_http_info(x_account_id, opts)
@@ -126,9 +126,9 @@ module StackOneHRIS
126
126
  # @option opts [String] :page The page number of the results to fetch
127
127
  # @option opts [String] :page_size The number of results per page (default to '25')
128
128
  # @option opts [Boolean] :raw Indicates that the raw request result is returned (default to false)
129
- # @option opts [Array<String>] :fields The list of fields to return in the response (if empty, all fields are returned)
130
- # @option opts [Array<String>] :expand The list of fields that will be expanded in the response
129
+ # @option opts [String] :fields The comma separated list of fields to return in the response (if empty, all fields are returned) (default to '')
131
130
  # @option opts [String] :sync_token The sync token to select the only updated results
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<(LocationsPaginated, Integer, Hash)>] LocationsPaginated data, response status code and response headers
133
133
  def hris_locations_list_with_http_info(x_account_id, opts = {})
134
134
  if @api_client.config.debugging
@@ -146,9 +146,9 @@ module StackOneHRIS
146
146
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
147
147
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
148
148
  query_params[:'raw'] = opts[:'raw'] if !opts[:'raw'].nil?
149
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
150
- query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
149
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
151
150
  query_params[:'sync_token'] = opts[:'sync_token'] if !opts[:'sync_token'].nil?
151
+ query_params[:'updated_after'] = opts[:'updated_after'] if !opts[:'updated_after'].nil?
152
152
 
153
153
  # header parameters
154
154
  header_params = opts[:header_params] || {}
@@ -30,6 +30,9 @@ module StackOneHRIS
30
30
  # The origin username
31
31
  attr_accessor :origin_username
32
32
 
33
+ # How long the session should be valid for in seconds
34
+ attr_accessor :expires_in
35
+
33
36
  # The metadata for the connection
34
37
  attr_accessor :metadata
35
38
 
@@ -63,6 +66,7 @@ module StackOneHRIS
63
66
  :'origin_owner_id' => :'origin_owner_id',
64
67
  :'origin_owner_name' => :'origin_owner_name',
65
68
  :'origin_username' => :'origin_username',
69
+ :'expires_in' => :'expires_in',
66
70
  :'metadata' => :'metadata'
67
71
  }
68
72
  end
@@ -80,6 +84,7 @@ module StackOneHRIS
80
84
  :'origin_owner_id' => :'String',
81
85
  :'origin_owner_name' => :'String',
82
86
  :'origin_username' => :'String',
87
+ :'expires_in' => :'Float',
83
88
  :'metadata' => :'Object'
84
89
  }
85
90
  end
@@ -127,6 +132,12 @@ module StackOneHRIS
127
132
  self.origin_username = attributes[:'origin_username']
128
133
  end
129
134
 
135
+ if attributes.key?(:'expires_in')
136
+ self.expires_in = attributes[:'expires_in']
137
+ else
138
+ self.expires_in = 1800
139
+ end
140
+
130
141
  if attributes.key?(:'metadata')
131
142
  self.metadata = attributes[:'metadata']
132
143
  end
@@ -165,6 +176,7 @@ module StackOneHRIS
165
176
  origin_owner_id == o.origin_owner_id &&
166
177
  origin_owner_name == o.origin_owner_name &&
167
178
  origin_username == o.origin_username &&
179
+ expires_in == o.expires_in &&
168
180
  metadata == o.metadata
169
181
  end
170
182
 
@@ -177,7 +189,7 @@ module StackOneHRIS
177
189
  # Calculates hash code according to all attributes.
178
190
  # @return [Integer] Hash code
179
191
  def hash
180
- [categories, provider, origin_owner_id, origin_owner_name, origin_username, metadata].hash
192
+ [categories, provider, origin_owner_id, origin_owner_name, origin_username, expires_in, metadata].hash
181
193
  end
182
194
 
183
195
  # Builds the object from hash