stackone_hris_client 1.4.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 845acb267d5359b3b0411e931280dfef500666c6dfba03752b42641508085911
4
- data.tar.gz: 62184c488d9209a4f1e0abb7dfb3532a545ce0c36fa1b9840324e59aa7c8aaef
3
+ metadata.gz: e40a0f28707fb3f2b735e67f19eb103e43dfe42b3e8bb687a3d4d5227bc3173c
4
+ data.tar.gz: 3d1dcda91e789187ccaadebb99285b6c4076173b071b93e2e317ca5cc614f9c6
5
5
  SHA512:
6
- metadata.gz: 17d0671c4becc2ef6870acbf341880de8c99e873bb7f0a91a2cb0c0c186a55891a24d073cbabb76294b130219d73ae0b517b7c07af94d5ac1d2ad51f8d01767b
7
- data.tar.gz: 713def3d66e7e821d37eb5b30c2095bdaa3f8cd9240f3c6f696963289f9a6f6c53a873b9bc5b8599b51c2c8858c1ad5462406d028c71ca79462cee29ad335dfd
6
+ metadata.gz: 7ef6498010ca1497752c119c1714d92ff0b0d4c9d788ecc3c85c3cc8e35d12ca1daf2f335c57f7013193f30db24215bee50288ebf83c04b01d02670e040378e9
7
+ data.tar.gz: 4664a655fe7f5d67def81a4f4e0c412a2441e880d5594bb37da1739bf4280dae2290430f30713caa260eb2bea5afd6a525c79c5879735550aeb64e6a801b593a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stackone_hris_client (1.4.0)
4
+ stackone_hris_client (1.5.1)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -7,7 +7,7 @@ The documentation for the StackOne Unified API - HRIS
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 1.0.0
10
- - Package version: 1.4.0
10
+ - Package version: 1.5.1
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,16 +23,16 @@ gem build stackone_hris_client.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./stackone_hris_client-1.4.0.gem
26
+ gem install ./stackone_hris_client-1.5.1.gem
27
27
  ```
28
28
 
29
- (for development, run `gem install --dev ./stackone_hris_client-1.4.0.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./stackone_hris_client-1.5.1.gem` to install the development dependencies)
30
30
 
31
31
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
32
 
33
33
  Finally add this to the Gemfile:
34
34
 
35
- gem 'stackone_hris_client', '~> 1.4.0'
35
+ gem 'stackone_hris_client', '~> 1.5.1'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -114,6 +114,7 @@ Class | Method | HTTP request | Description
114
114
  - [StackOneHRIS::ConnectSessionAuthenticate](docs/ConnectSessionAuthenticate.md)
115
115
  - [StackOneHRIS::ConnectSessionCreate](docs/ConnectSessionCreate.md)
116
116
  - [StackOneHRIS::ConnectSessionToken](docs/ConnectSessionToken.md)
117
+ - [StackOneHRIS::CountryCodeEnum](docs/CountryCodeEnum.md)
117
118
  - [StackOneHRIS::Employee](docs/Employee.md)
118
119
  - [StackOneHRIS::EmployeeResult](docs/EmployeeResult.md)
119
120
  - [StackOneHRIS::EmployeesPaginated](docs/EmployeesPaginated.md)
@@ -0,0 +1,20 @@
1
+ # StackOneHRIS::CountryCodeEnum
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::CountryCodeEnum.new(
16
+ value: null,
17
+ source_value: null
18
+ )
19
+ ```
20
+
data/docs/Employee.md CHANGED
@@ -30,8 +30,6 @@
30
30
  | **employment_status** | [**EmploymentStatusEnum**](EmploymentStatusEnum.md) | | [optional] |
31
31
  | **termination_date** | **Time** | | [optional] |
32
32
  | **company_name** | **String** | | [optional] |
33
- | **home_country_location** | **String** | | [optional] |
34
- | **work_country_location** | **String** | | [optional] |
35
33
  | **home_location** | [**Location**](Location.md) | | [optional] |
36
34
  | **work_location** | [**Location**](Location.md) | | [optional] |
37
35
  | **company** | **String** | | [optional] |
@@ -69,8 +67,6 @@ instance = StackOneHRIS::Employee.new(
69
67
  employment_status: null,
70
68
  termination_date: null,
71
69
  company_name: null,
72
- home_country_location: null,
73
- work_country_location: null,
74
70
  home_location: null,
75
71
  work_location: null,
76
72
  company: null,
data/docs/EmployeesApi.md CHANGED
@@ -32,7 +32,7 @@ opts = {
32
32
  page: 'page_example', # String | The page number of the results to fetch
33
33
  page_size: 'page_size_example', # String | The number of results per page
34
34
  raw: true, # Boolean | Indicates that the raw request result is returned
35
- fields: 'id,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,personal_email,personal_phone_number,work_email,work_phone_number,job_title,department,manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_status,termination_date,company_name,home_country_location,work_country_location', # String | The comma separated list of fields to return in the response (if empty, all fields are returned)
35
+ fields: 'id,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,personal_email,personal_phone_number,work_email,work_phone_number,job_title,department,manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_status,termination_date,company_name', # String | The comma separated list of fields to return in the response (if empty, all fields are returned)
36
36
  sync_token: 'sync_token_example', # String | The sync token to select the only updated results
37
37
  updated_after: 'updated_after_example', # String | Use a string with a date to only select results updated after that given date
38
38
  expand: 'work_location,home_location,employments' # String | The comma separated list of fields that will be expanded in the response
@@ -116,7 +116,7 @@ opts = {
116
116
  page: 'page_example', # String | The page number of the results to fetch
117
117
  page_size: 'page_size_example', # String | The number of results per page
118
118
  raw: true, # Boolean | Indicates that the raw request result is returned
119
- fields: 'id,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,personal_email,personal_phone_number,work_email,work_phone_number,job_title,department,manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_status,termination_date,company_name,home_country_location,work_country_location', # String | The comma separated list of fields to return in the response (if empty, all fields are returned)
119
+ fields: 'id,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,personal_email,personal_phone_number,work_email,work_phone_number,job_title,department,manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_status,termination_date,company_name', # String | The comma separated list of fields to return in the response (if empty, all fields are returned)
120
120
  sync_token: 'sync_token_example', # String | The sync token to select the only updated results
121
121
  updated_after: 'updated_after_example', # String | Use a string with a date to only select results updated after that given date
122
122
  expand: 'work_location,home_location,employments' # String | The comma separated list of fields that will be expanded in the response
data/docs/Location.md CHANGED
@@ -13,7 +13,7 @@
13
13
  | **city** | **String** | | [optional] |
14
14
  | **state** | **String** | | [optional] |
15
15
  | **zip_code** | **String** | | [optional] |
16
- | **country** | **String** | | [optional] |
16
+ | **country** | [**CountryCodeEnum**](CountryCodeEnum.md) | | [optional] |
17
17
  | **location_type** | [**LocationTypeEnum**](LocationTypeEnum.md) | | [optional] |
18
18
 
19
19
  ## Example
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.4.0"
13
+ gemVersion: "1.5.1"
14
14
  library: "typhoeus"
@@ -0,0 +1,270 @@
1
+ =begin
2
+ #StackOne Unified API - HRIS
3
+
4
+ #The documentation for the StackOne Unified API - HRIS
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.5.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module StackOneHRIS
17
+ class CountryCodeEnum
18
+ attr_accessor :value
19
+
20
+ attr_accessor :source_value
21
+
22
+ class EnumAttributeValidator
23
+ attr_reader :datatype
24
+ attr_reader :allowable_values
25
+
26
+ def initialize(datatype, allowable_values)
27
+ @allowable_values = allowable_values.map do |value|
28
+ case datatype.to_s
29
+ when /Integer/i
30
+ value.to_i
31
+ when /Float/i
32
+ value.to_f
33
+ else
34
+ value
35
+ end
36
+ end
37
+ end
38
+
39
+ def valid?(value)
40
+ !value || allowable_values.include?(value)
41
+ end
42
+ end
43
+
44
+ # Attribute mapping from ruby-style variable name to JSON key.
45
+ def self.attribute_map
46
+ {
47
+ :'value' => :'value',
48
+ :'source_value' => :'source_value'
49
+ }
50
+ end
51
+
52
+ # Returns all the JSON keys this model knows about
53
+ def self.acceptable_attributes
54
+ attribute_map.values
55
+ end
56
+
57
+ # Attribute type mapping.
58
+ def self.openapi_types
59
+ {
60
+ :'value' => :'String',
61
+ :'source_value' => :'String'
62
+ }
63
+ end
64
+
65
+ # List of attributes with nullable: true
66
+ def self.openapi_nullable
67
+ Set.new([
68
+ ])
69
+ end
70
+
71
+ # Initializes the object
72
+ # @param [Hash] attributes Model attributes in the form of hash
73
+ def initialize(attributes = {})
74
+ if (!attributes.is_a?(Hash))
75
+ fail ArgumentError, "The input argument (attributes) must be a hash in `StackOneHRIS::CountryCodeEnum` initialize method"
76
+ end
77
+
78
+ # check to see if the attribute exists and convert string to symbol for hash key
79
+ attributes = attributes.each_with_object({}) { |(k, v), h|
80
+ if (!self.class.attribute_map.key?(k.to_sym))
81
+ fail ArgumentError, "`#{k}` is not a valid attribute in `StackOneHRIS::CountryCodeEnum`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
82
+ end
83
+ h[k.to_sym] = v
84
+ }
85
+
86
+ if attributes.key?(:'value')
87
+ self.value = attributes[:'value']
88
+ end
89
+
90
+ if attributes.key?(:'source_value')
91
+ self.source_value = attributes[:'source_value']
92
+ end
93
+ end
94
+
95
+ # Show invalid properties with the reasons. Usually used together with valid?
96
+ # @return Array for valid properties with the reasons
97
+ def list_invalid_properties
98
+ invalid_properties = Array.new
99
+ if @value.nil?
100
+ invalid_properties.push('invalid value for "value", value cannot be nil.')
101
+ end
102
+
103
+ if @source_value.nil?
104
+ invalid_properties.push('invalid value for "source_value", source_value cannot be nil.')
105
+ end
106
+
107
+ invalid_properties
108
+ end
109
+
110
+ # Check to see if the all the properties in the model are valid
111
+ # @return true if the model is valid
112
+ def valid?
113
+ return false if @value.nil?
114
+ value_validator = EnumAttributeValidator.new('String', ["AF", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BQ", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CA", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "HR", "CU", "CW", "CY", "CZ", "CI", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RO", "RU", "RW", "RE", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SX", "SK", "SI", "SB", "SO", "ZA", "GS", "SS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "GB", "US", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW", "unmapped_value"])
115
+ return false unless value_validator.valid?(@value)
116
+ return false if @source_value.nil?
117
+ true
118
+ end
119
+
120
+ # Custom attribute writer method checking allowed values (enum).
121
+ # @param [Object] value Object to be assigned
122
+ def value=(value)
123
+ validator = EnumAttributeValidator.new('String', ["AF", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BQ", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CA", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "HR", "CU", "CW", "CY", "CZ", "CI", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RO", "RU", "RW", "RE", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SX", "SK", "SI", "SB", "SO", "ZA", "GS", "SS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "GB", "US", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW", "unmapped_value"])
124
+ unless validator.valid?(value)
125
+ fail ArgumentError, "invalid value for \"value\", must be one of #{validator.allowable_values}."
126
+ end
127
+ @value = value
128
+ end
129
+
130
+ # Checks equality by comparing each attribute.
131
+ # @param [Object] Object to be compared
132
+ def ==(o)
133
+ return true if self.equal?(o)
134
+ self.class == o.class &&
135
+ value == o.value &&
136
+ source_value == o.source_value
137
+ end
138
+
139
+ # @see the `==` method
140
+ # @param [Object] Object to be compared
141
+ def eql?(o)
142
+ self == o
143
+ end
144
+
145
+ # Calculates hash code according to all attributes.
146
+ # @return [Integer] Hash code
147
+ def hash
148
+ [value, source_value].hash
149
+ end
150
+
151
+ # Builds the object from hash
152
+ # @param [Hash] attributes Model attributes in the form of hash
153
+ # @return [Object] Returns the model itself
154
+ def self.build_from_hash(attributes)
155
+ new.build_from_hash(attributes)
156
+ end
157
+
158
+ # Builds the object from hash
159
+ # @param [Hash] attributes Model attributes in the form of hash
160
+ # @return [Object] Returns the model itself
161
+ def build_from_hash(attributes)
162
+ return nil unless attributes.is_a?(Hash)
163
+ attributes = attributes.transform_keys(&:to_sym)
164
+ self.class.openapi_types.each_pair do |key, type|
165
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
166
+ self.send("#{key}=", nil)
167
+ elsif type =~ /\AArray<(.*)>/i
168
+ # check to ensure the input is an array given that the attribute
169
+ # is documented as an array but the input is not
170
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
171
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
172
+ end
173
+ elsif !attributes[self.class.attribute_map[key]].nil?
174
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
175
+ end
176
+ end
177
+
178
+ self
179
+ end
180
+
181
+ # Deserializes the data based on type
182
+ # @param string type Data type
183
+ # @param string value Value to be deserialized
184
+ # @return [Object] Deserialized data
185
+ def _deserialize(type, value)
186
+ case type.to_sym
187
+ when :Time
188
+ Time.parse(value)
189
+ when :Date
190
+ Date.parse(value)
191
+ when :String
192
+ value.to_s
193
+ when :Integer
194
+ value.to_i
195
+ when :Float
196
+ value.to_f
197
+ when :Boolean
198
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
199
+ true
200
+ else
201
+ false
202
+ end
203
+ when :Object
204
+ # generic object (usually a Hash), return directly
205
+ value
206
+ when /\AArray<(?<inner_type>.+)>\z/
207
+ inner_type = Regexp.last_match[:inner_type]
208
+ value.map { |v| _deserialize(inner_type, v) }
209
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
210
+ k_type = Regexp.last_match[:k_type]
211
+ v_type = Regexp.last_match[:v_type]
212
+ {}.tap do |hash|
213
+ value.each do |k, v|
214
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
215
+ end
216
+ end
217
+ else # model
218
+ # models (e.g. Pet) or oneOf
219
+ klass = StackOneHRIS.const_get(type)
220
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
221
+ end
222
+ end
223
+
224
+ # Returns the string representation of the object
225
+ # @return [String] String presentation of the object
226
+ def to_s
227
+ to_hash.to_s
228
+ end
229
+
230
+ # to_body is an alias to to_hash (backward compatibility)
231
+ # @return [Hash] Returns the object in the form of hash
232
+ def to_body
233
+ to_hash
234
+ end
235
+
236
+ # Returns the object in the form of hash
237
+ # @return [Hash] Returns the object in the form of hash
238
+ def to_hash
239
+ hash = {}
240
+ self.class.attribute_map.each_pair do |attr, param|
241
+ value = self.send(attr)
242
+ if value.nil?
243
+ is_nullable = self.class.openapi_nullable.include?(attr)
244
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
245
+ end
246
+
247
+ hash[param] = _to_hash(value)
248
+ end
249
+ hash
250
+ end
251
+
252
+ # Outputs non-array value in the form of hash
253
+ # For object, use to_hash. Otherwise, just return the value
254
+ # @param [Object] value Any valid value
255
+ # @return [Hash] Returns the value in the form of hash
256
+ def _to_hash(value)
257
+ if value.is_a?(Array)
258
+ value.compact.map { |v| _to_hash(v) }
259
+ elsif value.is_a?(Hash)
260
+ {}.tap do |hash|
261
+ value.each { |k, v| hash[k] = _to_hash(v) }
262
+ end
263
+ elsif value.respond_to? :to_hash
264
+ value.to_hash
265
+ else
266
+ value
267
+ end
268
+ end
269
+ end
270
+ end
@@ -67,10 +67,6 @@ module StackOneHRIS
67
67
 
68
68
  attr_accessor :company_name
69
69
 
70
- attr_accessor :home_country_location
71
-
72
- attr_accessor :work_country_location
73
-
74
70
  attr_accessor :home_location
75
71
 
76
72
  attr_accessor :work_location
@@ -108,8 +104,6 @@ module StackOneHRIS
108
104
  :'employment_status' => :'employment_status',
109
105
  :'termination_date' => :'termination_date',
110
106
  :'company_name' => :'company_name',
111
- :'home_country_location' => :'home_country_location',
112
- :'work_country_location' => :'work_country_location',
113
107
  :'home_location' => :'home_location',
114
108
  :'work_location' => :'work_location',
115
109
  :'company' => :'company',
@@ -151,8 +145,6 @@ module StackOneHRIS
151
145
  :'employment_status' => :'EmploymentStatusEnum',
152
146
  :'termination_date' => :'Time',
153
147
  :'company_name' => :'String',
154
- :'home_country_location' => :'String',
155
- :'work_country_location' => :'String',
156
148
  :'home_location' => :'Location',
157
149
  :'work_location' => :'Location',
158
150
  :'company' => :'String',
@@ -285,14 +277,6 @@ module StackOneHRIS
285
277
  self.company_name = attributes[:'company_name']
286
278
  end
287
279
 
288
- if attributes.key?(:'home_country_location')
289
- self.home_country_location = attributes[:'home_country_location']
290
- end
291
-
292
- if attributes.key?(:'work_country_location')
293
- self.work_country_location = attributes[:'work_country_location']
294
- end
295
-
296
280
  if attributes.key?(:'home_location')
297
281
  self.home_location = attributes[:'home_location']
298
282
  end
@@ -406,8 +390,6 @@ module StackOneHRIS
406
390
  employment_status == o.employment_status &&
407
391
  termination_date == o.termination_date &&
408
392
  company_name == o.company_name &&
409
- home_country_location == o.home_country_location &&
410
- work_country_location == o.work_country_location &&
411
393
  home_location == o.home_location &&
412
394
  work_location == o.work_location &&
413
395
  company == o.company &&
@@ -423,7 +405,7 @@ module StackOneHRIS
423
405
  # Calculates hash code according to all attributes.
424
406
  # @return [Integer] Hash code
425
407
  def hash
426
- [id, first_name, last_name, name, display_name, gender, ethnicity, date_of_birth, birthday, marital_status, avatar_url, personal_email, personal_phone_number, work_email, work_phone_number, job_title, department, manager_id, hire_date, start_date, tenure, work_anniversary, employment_type, employment_status, termination_date, company_name, home_country_location, work_country_location, home_location, work_location, company, employments].hash
408
+ [id, first_name, last_name, name, display_name, gender, ethnicity, date_of_birth, birthday, marital_status, avatar_url, personal_email, personal_phone_number, work_email, work_phone_number, job_title, department, manager_id, hire_date, start_date, tenure, work_anniversary, employment_type, employment_status, termination_date, company_name, home_location, work_location, company, employments].hash
427
409
  end
428
410
 
429
411
  # Builds the object from hash
@@ -111,7 +111,7 @@ module StackOneHRIS
111
111
  # @return true if the model is valid
112
112
  def valid?
113
113
  return false if @value.nil?
114
- value_validator = EnumAttributeValidator.new('String', ["full_time", "part_time", "contractor", "intern", "freelance", "terminated", "unmapped_value", "temporary", "seasonal", "volunteer"])
114
+ value_validator = EnumAttributeValidator.new('String', ["full_time", "part_time", "contractor", "intern", "freelance", "terminated", "temporary", "seasonal", "volunteer", "unmapped_value"])
115
115
  return false unless value_validator.valid?(@value)
116
116
  return false if @source_value.nil?
117
117
  true
@@ -120,7 +120,7 @@ module StackOneHRIS
120
120
  # Custom attribute writer method checking allowed values (enum).
121
121
  # @param [Object] value Object to be assigned
122
122
  def value=(value)
123
- validator = EnumAttributeValidator.new('String', ["full_time", "part_time", "contractor", "intern", "freelance", "terminated", "unmapped_value", "temporary", "seasonal", "volunteer"])
123
+ validator = EnumAttributeValidator.new('String', ["full_time", "part_time", "contractor", "intern", "freelance", "terminated", "temporary", "seasonal", "volunteer", "unmapped_value"])
124
124
  unless validator.valid?(value)
125
125
  fail ArgumentError, "invalid value for \"value\", must be one of #{validator.allowable_values}."
126
126
  end
@@ -71,7 +71,7 @@ module StackOneHRIS
71
71
  :'city' => :'String',
72
72
  :'state' => :'String',
73
73
  :'zip_code' => :'String',
74
- :'country' => :'String',
74
+ :'country' => :'CountryCodeEnum',
75
75
  :'location_type' => :'LocationTypeEnum'
76
76
  }
77
77
  end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.5.0
11
11
  =end
12
12
 
13
13
  module StackOneHRIS
14
- VERSION = '1.4.0'
14
+ VERSION = '1.5.1'
15
15
  end
@@ -25,6 +25,7 @@ require 'stackone_hris_client/models/connect_session'
25
25
  require 'stackone_hris_client/models/connect_session_authenticate'
26
26
  require 'stackone_hris_client/models/connect_session_create'
27
27
  require 'stackone_hris_client/models/connect_session_token'
28
+ require 'stackone_hris_client/models/country_code_enum'
28
29
  require 'stackone_hris_client/models/employee'
29
30
  require 'stackone_hris_client/models/employee_result'
30
31
  require 'stackone_hris_client/models/employees_paginated'
@@ -0,0 +1,44 @@
1
+ =begin
2
+ #StackOne Unified API - HRIS
3
+
4
+ #The documentation for the StackOne Unified API - HRIS
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.5.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for StackOneHRIS::CountryCodeEnum
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe StackOneHRIS::CountryCodeEnum do
21
+ let(:instance) { StackOneHRIS::CountryCodeEnum.new }
22
+
23
+ describe 'test an instance of CountryCodeEnum' do
24
+ it 'should create an instance of CountryCodeEnum' do
25
+ expect(instance).to be_instance_of(StackOneHRIS::CountryCodeEnum)
26
+ end
27
+ end
28
+ describe 'test attribute "value"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["AF", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BQ", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CA", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "HR", "CU", "CW", "CY", "CZ", "CI", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RO", "RU", "RW", "RE", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SX", "SK", "SI", "SB", "SO", "ZA", "GS", "SS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "GB", "US", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW"])
32
+ # validator.allowable_values.each do |value|
33
+ # expect { instance.value = value }.not_to raise_error
34
+ # end
35
+ end
36
+ end
37
+
38
+ describe 'test attribute "source_value"' do
39
+ it 'should work' do
40
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
41
+ end
42
+ end
43
+
44
+ end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stackone_hris_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - StackOne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-04 00:00:00.000000000 Z
11
+ date: 2023-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -72,6 +72,7 @@ files:
72
72
  - docs/ConnectSessionCreate.md
73
73
  - docs/ConnectSessionToken.md
74
74
  - docs/ConnectSessionsApi.md
75
+ - docs/CountryCodeEnum.md
75
76
  - docs/Employee.md
76
77
  - docs/EmployeeResult.md
77
78
  - docs/EmployeesApi.md
@@ -113,6 +114,7 @@ files:
113
114
  - lib/stackone_hris_client/models/connect_session_authenticate.rb
114
115
  - lib/stackone_hris_client/models/connect_session_create.rb
115
116
  - lib/stackone_hris_client/models/connect_session_token.rb
117
+ - lib/stackone_hris_client/models/country_code_enum.rb
116
118
  - lib/stackone_hris_client/models/employee.rb
117
119
  - lib/stackone_hris_client/models/employee_result.rb
118
120
  - lib/stackone_hris_client/models/employees_paginated.rb
@@ -147,6 +149,7 @@ files:
147
149
  - spec/models/connect_session_create_spec.rb
148
150
  - spec/models/connect_session_spec.rb
149
151
  - spec/models/connect_session_token_spec.rb
152
+ - spec/models/country_code_enum_spec.rb
150
153
  - spec/models/employee_result_spec.rb
151
154
  - spec/models/employee_spec.rb
152
155
  - spec/models/employees_paginated_spec.rb
@@ -165,6 +168,7 @@ files:
165
168
  - spec/models/pay_frequency_enum_spec.rb
166
169
  - spec/models/pay_period_enum_spec.rb
167
170
  - spec/spec_helper.rb
171
+ - stackone_hris_client-1.5.0.gem
168
172
  - stackone_hris_client.gemspec
169
173
  homepage: https://stackone.com
170
174
  licenses:
@@ -217,6 +221,7 @@ test_files:
217
221
  - spec/models/location_spec.rb
218
222
  - spec/models/location_result_spec.rb
219
223
  - spec/models/connect_session_create_spec.rb
224
+ - spec/models/country_code_enum_spec.rb
220
225
  - spec/models/gender_enum_spec.rb
221
226
  - spec/models/locations_paginated_spec.rb
222
227
  - spec/models/pay_period_enum_spec.rb