stackone_hris_client 1.5.1 → 1.6.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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +23 -29
- data/docs/Account.md +2 -0
- data/docs/AccountsApi.md +12 -12
- data/docs/CompaniesApi.md +24 -24
- data/docs/ConnectSession.md +1 -1
- data/docs/ConnectSessionCreate.md +1 -1
- data/docs/ConnectSessionToken.md +1 -1
- data/docs/ConnectSessionsApi.md +8 -8
- data/docs/Employee.md +2 -0
- data/docs/EmployeesApi.md +26 -26
- data/docs/EmploymentsApi.md +24 -24
- data/docs/Image.md +20 -0
- data/docs/LocationsApi.md +8 -8
- data/gem-config.yml +2 -2
- data/lib/stackone_hris_client/api/accounts_api.rb +7 -7
- data/lib/stackone_hris_client/api/companies_api.rb +20 -20
- data/lib/stackone_hris_client/api/connect_sessions_api.rb +5 -5
- data/lib/stackone_hris_client/api/employees_api.rb +20 -20
- data/lib/stackone_hris_client/api/employments_api.rb +20 -20
- data/lib/stackone_hris_client/api/locations_api.rb +5 -5
- data/lib/stackone_hris_client/api_client.rb +1 -1
- data/lib/stackone_hris_client/api_error.rb +1 -1
- data/lib/stackone_hris_client/configuration.rb +2 -2
- data/lib/stackone_hris_client/models/account.rb +16 -2
- data/lib/stackone_hris_client/models/companies_paginated.rb +1 -1
- data/lib/stackone_hris_client/models/company.rb +1 -1
- data/lib/stackone_hris_client/models/company_result.rb +1 -1
- data/lib/stackone_hris_client/models/connect_session.rb +1 -1
- data/lib/stackone_hris_client/models/connect_session_authenticate.rb +1 -1
- data/lib/stackone_hris_client/models/connect_session_create.rb +1 -1
- data/lib/stackone_hris_client/models/connect_session_token.rb +1 -1
- data/lib/stackone_hris_client/models/country_code_enum.rb +1 -1
- data/lib/stackone_hris_client/models/employee.rb +11 -2
- data/lib/stackone_hris_client/models/employee_result.rb +1 -1
- data/lib/stackone_hris_client/models/employees_paginated.rb +1 -1
- data/lib/stackone_hris_client/models/employment.rb +1 -1
- data/lib/stackone_hris_client/models/employment_result.rb +1 -1
- data/lib/stackone_hris_client/models/employment_status_enum.rb +3 -3
- data/lib/stackone_hris_client/models/employment_type_enum.rb +3 -3
- data/lib/stackone_hris_client/models/employments_paginated.rb +1 -1
- data/lib/stackone_hris_client/models/ethnicity_enum.rb +3 -3
- data/lib/stackone_hris_client/models/gender_enum.rb +3 -3
- data/lib/stackone_hris_client/models/image.rb +226 -0
- data/lib/stackone_hris_client/models/location.rb +1 -1
- data/lib/stackone_hris_client/models/location_result.rb +1 -1
- data/lib/stackone_hris_client/models/location_type_enum.rb +1 -1
- data/lib/stackone_hris_client/models/locations_paginated.rb +1 -1
- data/lib/stackone_hris_client/models/marital_status_enum.rb +3 -3
- data/lib/stackone_hris_client/models/pay_frequency_enum.rb +3 -3
- data/lib/stackone_hris_client/models/pay_period_enum.rb +1 -1
- data/lib/stackone_hris_client/version.rb +2 -2
- data/lib/stackone_hris_client.rb +2 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/image_spec.rb +40 -0
- data/spec/spec_helper.rb +1 -1
- data/stackone_hris_client.gemspec +1 -1
- metadata +6 -3
- data/stackone_hris_client-1.5.0.gem +0 -0
@@ -0,0 +1,226 @@
|
|
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.6.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module StackOneHRIS
|
17
|
+
class Image
|
18
|
+
attr_accessor :url
|
19
|
+
|
20
|
+
attr_accessor :base64
|
21
|
+
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
23
|
+
def self.attribute_map
|
24
|
+
{
|
25
|
+
:'url' => :'url',
|
26
|
+
:'base64' => :'base64'
|
27
|
+
}
|
28
|
+
end
|
29
|
+
|
30
|
+
# Returns all the JSON keys this model knows about
|
31
|
+
def self.acceptable_attributes
|
32
|
+
attribute_map.values
|
33
|
+
end
|
34
|
+
|
35
|
+
# Attribute type mapping.
|
36
|
+
def self.openapi_types
|
37
|
+
{
|
38
|
+
:'url' => :'String',
|
39
|
+
:'base64' => :'String'
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# List of attributes with nullable: true
|
44
|
+
def self.openapi_nullable
|
45
|
+
Set.new([
|
46
|
+
])
|
47
|
+
end
|
48
|
+
|
49
|
+
# Initializes the object
|
50
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
51
|
+
def initialize(attributes = {})
|
52
|
+
if (!attributes.is_a?(Hash))
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `StackOneHRIS::Image` initialize method"
|
54
|
+
end
|
55
|
+
|
56
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
57
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
58
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `StackOneHRIS::Image`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
60
|
+
end
|
61
|
+
h[k.to_sym] = v
|
62
|
+
}
|
63
|
+
|
64
|
+
if attributes.key?(:'url')
|
65
|
+
self.url = attributes[:'url']
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes.key?(:'base64')
|
69
|
+
self.base64 = attributes[:'base64']
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
74
|
+
# @return Array for valid properties with the reasons
|
75
|
+
def list_invalid_properties
|
76
|
+
invalid_properties = Array.new
|
77
|
+
invalid_properties
|
78
|
+
end
|
79
|
+
|
80
|
+
# Check to see if the all the properties in the model are valid
|
81
|
+
# @return true if the model is valid
|
82
|
+
def valid?
|
83
|
+
true
|
84
|
+
end
|
85
|
+
|
86
|
+
# Checks equality by comparing each attribute.
|
87
|
+
# @param [Object] Object to be compared
|
88
|
+
def ==(o)
|
89
|
+
return true if self.equal?(o)
|
90
|
+
self.class == o.class &&
|
91
|
+
url == o.url &&
|
92
|
+
base64 == o.base64
|
93
|
+
end
|
94
|
+
|
95
|
+
# @see the `==` method
|
96
|
+
# @param [Object] Object to be compared
|
97
|
+
def eql?(o)
|
98
|
+
self == o
|
99
|
+
end
|
100
|
+
|
101
|
+
# Calculates hash code according to all attributes.
|
102
|
+
# @return [Integer] Hash code
|
103
|
+
def hash
|
104
|
+
[url, base64].hash
|
105
|
+
end
|
106
|
+
|
107
|
+
# Builds the object from hash
|
108
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
109
|
+
# @return [Object] Returns the model itself
|
110
|
+
def self.build_from_hash(attributes)
|
111
|
+
new.build_from_hash(attributes)
|
112
|
+
end
|
113
|
+
|
114
|
+
# Builds the object from hash
|
115
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
116
|
+
# @return [Object] Returns the model itself
|
117
|
+
def build_from_hash(attributes)
|
118
|
+
return nil unless attributes.is_a?(Hash)
|
119
|
+
attributes = attributes.transform_keys(&:to_sym)
|
120
|
+
self.class.openapi_types.each_pair do |key, type|
|
121
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
122
|
+
self.send("#{key}=", nil)
|
123
|
+
elsif type =~ /\AArray<(.*)>/i
|
124
|
+
# check to ensure the input is an array given that the attribute
|
125
|
+
# is documented as an array but the input is not
|
126
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
127
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
128
|
+
end
|
129
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
130
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
self
|
135
|
+
end
|
136
|
+
|
137
|
+
# Deserializes the data based on type
|
138
|
+
# @param string type Data type
|
139
|
+
# @param string value Value to be deserialized
|
140
|
+
# @return [Object] Deserialized data
|
141
|
+
def _deserialize(type, value)
|
142
|
+
case type.to_sym
|
143
|
+
when :Time
|
144
|
+
Time.parse(value)
|
145
|
+
when :Date
|
146
|
+
Date.parse(value)
|
147
|
+
when :String
|
148
|
+
value.to_s
|
149
|
+
when :Integer
|
150
|
+
value.to_i
|
151
|
+
when :Float
|
152
|
+
value.to_f
|
153
|
+
when :Boolean
|
154
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
155
|
+
true
|
156
|
+
else
|
157
|
+
false
|
158
|
+
end
|
159
|
+
when :Object
|
160
|
+
# generic object (usually a Hash), return directly
|
161
|
+
value
|
162
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
163
|
+
inner_type = Regexp.last_match[:inner_type]
|
164
|
+
value.map { |v| _deserialize(inner_type, v) }
|
165
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
166
|
+
k_type = Regexp.last_match[:k_type]
|
167
|
+
v_type = Regexp.last_match[:v_type]
|
168
|
+
{}.tap do |hash|
|
169
|
+
value.each do |k, v|
|
170
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
171
|
+
end
|
172
|
+
end
|
173
|
+
else # model
|
174
|
+
# models (e.g. Pet) or oneOf
|
175
|
+
klass = StackOneHRIS.const_get(type)
|
176
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
# Returns the string representation of the object
|
181
|
+
# @return [String] String presentation of the object
|
182
|
+
def to_s
|
183
|
+
to_hash.to_s
|
184
|
+
end
|
185
|
+
|
186
|
+
# to_body is an alias to to_hash (backward compatibility)
|
187
|
+
# @return [Hash] Returns the object in the form of hash
|
188
|
+
def to_body
|
189
|
+
to_hash
|
190
|
+
end
|
191
|
+
|
192
|
+
# Returns the object in the form of hash
|
193
|
+
# @return [Hash] Returns the object in the form of hash
|
194
|
+
def to_hash
|
195
|
+
hash = {}
|
196
|
+
self.class.attribute_map.each_pair do |attr, param|
|
197
|
+
value = self.send(attr)
|
198
|
+
if value.nil?
|
199
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
200
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
201
|
+
end
|
202
|
+
|
203
|
+
hash[param] = _to_hash(value)
|
204
|
+
end
|
205
|
+
hash
|
206
|
+
end
|
207
|
+
|
208
|
+
# Outputs non-array value in the form of hash
|
209
|
+
# For object, use to_hash. Otherwise, just return the value
|
210
|
+
# @param [Object] value Any valid value
|
211
|
+
# @return [Hash] Returns the value in the form of hash
|
212
|
+
def _to_hash(value)
|
213
|
+
if value.is_a?(Array)
|
214
|
+
value.compact.map { |v| _to_hash(v) }
|
215
|
+
elsif value.is_a?(Hash)
|
216
|
+
{}.tap do |hash|
|
217
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
218
|
+
end
|
219
|
+
elsif value.respond_to? :to_hash
|
220
|
+
value.to_hash
|
221
|
+
else
|
222
|
+
value
|
223
|
+
end
|
224
|
+
end
|
225
|
+
end
|
226
|
+
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.
|
9
|
+
OpenAPI Generator version: 6.6.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -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', ["single", "married", "divorced", "widowed", "domestic_partnership", "separated", "other", "unmapped_value"])
|
114
|
+
value_validator = EnumAttributeValidator.new('String', ["single", "married", "common_law", "divorced", "widowed", "domestic_partnership", "separated", "other", "not_disclosed", "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', ["single", "married", "divorced", "widowed", "domestic_partnership", "separated", "other", "unmapped_value"])
|
123
|
+
validator = EnumAttributeValidator.new('String', ["single", "married", "common_law", "divorced", "widowed", "domestic_partnership", "separated", "other", "not_disclosed", "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
|
@@ -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.
|
9
|
+
OpenAPI Generator version: 6.6.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -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', ["hourly", "weekly", "bi_weekly", "four_weekly", "semi_monthly", "monthly", "quarterly", "semi_annually", "yearly", "thirteen_monthly", "pro_rata", "unmapped_value"])
|
114
|
+
value_validator = EnumAttributeValidator.new('String', ["hourly", "weekly", "bi_weekly", "four_weekly", "semi_monthly", "monthly", "bi_monthly", "quarterly", "semi_annually", "yearly", "thirteen_monthly", "pro_rata", "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', ["hourly", "weekly", "bi_weekly", "four_weekly", "semi_monthly", "monthly", "quarterly", "semi_annually", "yearly", "thirteen_monthly", "pro_rata", "unmapped_value"])
|
123
|
+
validator = EnumAttributeValidator.new('String', ["hourly", "weekly", "bi_weekly", "four_weekly", "semi_monthly", "monthly", "bi_monthly", "quarterly", "semi_annually", "yearly", "thirteen_monthly", "pro_rata", "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
|
data/lib/stackone_hris_client.rb
CHANGED
@@ -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.
|
9
|
+
OpenAPI Generator version: 6.6.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -36,6 +36,7 @@ require 'stackone_hris_client/models/employment_type_enum'
|
|
36
36
|
require 'stackone_hris_client/models/employments_paginated'
|
37
37
|
require 'stackone_hris_client/models/ethnicity_enum'
|
38
38
|
require 'stackone_hris_client/models/gender_enum'
|
39
|
+
require 'stackone_hris_client/models/image'
|
39
40
|
require 'stackone_hris_client/models/location'
|
40
41
|
require 'stackone_hris_client/models/location_result'
|
41
42
|
require 'stackone_hris_client/models/location_type_enum'
|
data/spec/api_client_spec.rb
CHANGED
data/spec/configuration_spec.rb
CHANGED
@@ -0,0 +1,40 @@
|
|
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::Image
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe StackOneHRIS::Image do
|
21
|
+
let(:instance) { StackOneHRIS::Image.new }
|
22
|
+
|
23
|
+
describe 'test an instance of Image' do
|
24
|
+
it 'should create an instance of Image' do
|
25
|
+
expect(instance).to be_instance_of(StackOneHRIS::Image)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "url"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "base64"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
data/spec/spec_helper.rb
CHANGED
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
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- StackOne
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -85,6 +85,7 @@ files:
|
|
85
85
|
- docs/EmploymentsPaginated.md
|
86
86
|
- docs/EthnicityEnum.md
|
87
87
|
- docs/GenderEnum.md
|
88
|
+
- docs/Image.md
|
88
89
|
- docs/Location.md
|
89
90
|
- docs/LocationResult.md
|
90
91
|
- docs/LocationTypeEnum.md
|
@@ -125,6 +126,7 @@ files:
|
|
125
126
|
- lib/stackone_hris_client/models/employments_paginated.rb
|
126
127
|
- lib/stackone_hris_client/models/ethnicity_enum.rb
|
127
128
|
- lib/stackone_hris_client/models/gender_enum.rb
|
129
|
+
- lib/stackone_hris_client/models/image.rb
|
128
130
|
- lib/stackone_hris_client/models/location.rb
|
129
131
|
- lib/stackone_hris_client/models/location_result.rb
|
130
132
|
- lib/stackone_hris_client/models/location_type_enum.rb
|
@@ -160,6 +162,7 @@ files:
|
|
160
162
|
- spec/models/employments_paginated_spec.rb
|
161
163
|
- spec/models/ethnicity_enum_spec.rb
|
162
164
|
- spec/models/gender_enum_spec.rb
|
165
|
+
- spec/models/image_spec.rb
|
163
166
|
- spec/models/location_result_spec.rb
|
164
167
|
- spec/models/location_spec.rb
|
165
168
|
- spec/models/location_type_enum_spec.rb
|
@@ -168,7 +171,6 @@ files:
|
|
168
171
|
- spec/models/pay_frequency_enum_spec.rb
|
169
172
|
- spec/models/pay_period_enum_spec.rb
|
170
173
|
- spec/spec_helper.rb
|
171
|
-
- stackone_hris_client-1.5.0.gem
|
172
174
|
- stackone_hris_client.gemspec
|
173
175
|
homepage: https://stackone.com
|
174
176
|
licenses:
|
@@ -216,6 +218,7 @@ test_files:
|
|
216
218
|
- spec/models/employment_spec.rb
|
217
219
|
- spec/models/company_spec.rb
|
218
220
|
- spec/models/ethnicity_enum_spec.rb
|
221
|
+
- spec/models/image_spec.rb
|
219
222
|
- spec/models/pay_frequency_enum_spec.rb
|
220
223
|
- spec/models/connect_session_authenticate_spec.rb
|
221
224
|
- spec/models/location_spec.rb
|
Binary file
|