Skip to content

Commit 04d90f0

Browse files
feat(api): api update
1 parent 826feaa commit 04d90f0

File tree

17 files changed

+442
-7
lines changed

17 files changed

+442
-7
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 46
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-c012d034aaa88334d6748526b99a0c0e47b0257c515b35c656749ed8f3720b8a.yml
3-
openapi_spec_hash: a3d3c013ebe997d22e08eea4d487ff03
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-093ade6f1d3115b654a73b97855fbe334c9f9c5d906081dad2ec973ab0c0b24d.yml
3+
openapi_spec_hash: 7cc27b8e483d9db9c411875289c42eb9
44
config_hash: d21a244fc073152c8dbecb8ece970209

lib/finch_api/models/hris/employment_data.rb

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,17 @@ class UnionMember0 < FinchAPI::Internal::Type::BaseModel
5454
# @return [String, nil]
5555
required :first_name, String, nil?: true
5656

57+
# @!attribute flsa_status
58+
# The FLSA status of the individual. Available options: `exempt`, `non_exempt`,
59+
# `unknown`.
60+
#
61+
# @return [Symbol, FinchAPI::Models::HRIS::EmploymentData::UnionMember0::FlsaStatus, nil]
62+
required :flsa_status,
63+
enum: -> {
64+
FinchAPI::HRIS::EmploymentData::UnionMember0::FlsaStatus
65+
},
66+
nil?: true
67+
5768
# @!attribute is_active
5869
# `true` if the individual an an active employee or contractor at the company.
5970
#
@@ -141,7 +152,7 @@ class UnionMember0 < FinchAPI::Internal::Type::BaseModel
141152
# @return [String, nil]
142153
optional :work_id, String, nil?: true
143154

144-
# @!method initialize(id:, class_code:, department:, employment:, employment_status:, end_date:, first_name:, is_active:, last_name:, latest_rehire_date:, location:, manager:, middle_name:, start_date:, title:, custom_fields: nil, income: nil, income_history: nil, source_id: nil, work_id: nil)
155+
# @!method initialize(id:, class_code:, department:, employment:, employment_status:, end_date:, first_name:, flsa_status:, is_active:, last_name:, latest_rehire_date:, location:, manager:, middle_name:, start_date:, title:, custom_fields: nil, income: nil, income_history: nil, source_id: nil, work_id: nil)
145156
# Some parameter documentations has been truncated, see
146157
# {FinchAPI::Models::HRIS::EmploymentData::UnionMember0} for more details.
147158
#
@@ -159,6 +170,8 @@ class UnionMember0 < FinchAPI::Internal::Type::BaseModel
159170
#
160171
# @param first_name [String, nil] The legal first name of the individual.
161172
#
173+
# @param flsa_status [Symbol, FinchAPI::Models::HRIS::EmploymentData::UnionMember0::FlsaStatus, nil] The FLSA status of the individual. Available options: `exempt`, `non_exempt`, `u
174+
#
162175
# @param is_active [Boolean, nil] `true` if the individual an an active employee or contractor at the company.
163176
#
164177
# @param last_name [String, nil] The legal last name of the individual.
@@ -281,6 +294,21 @@ module EmploymentStatus
281294
# @return [Array<Symbol>]
282295
end
283296

297+
# The FLSA status of the individual. Available options: `exempt`, `non_exempt`,
298+
# `unknown`.
299+
#
300+
# @see FinchAPI::Models::HRIS::EmploymentData::UnionMember0#flsa_status
301+
module FlsaStatus
302+
extend FinchAPI::Internal::Type::Enum
303+
304+
EXEMPT = :exempt
305+
NON_EXEMPT = :non_exempt
306+
UNKNOWN = :unknown
307+
308+
# @!method self.values
309+
# @return [Array<Symbol>]
310+
end
311+
284312
# @see FinchAPI::Models::HRIS::EmploymentData::UnionMember0#manager
285313
class Manager < FinchAPI::Internal::Type::BaseModel
286314
# @!attribute id

lib/finch_api/models/sandbox/directory_create_params.rb

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,17 @@ class Body < FinchAPI::Internal::Type::BaseModel
105105
# @return [String, nil]
106106
optional :first_name, String, nil?: true
107107

108+
# @!attribute flsa_status
109+
# The FLSA status of the individual. Available options: `exempt`, `non_exempt`,
110+
# `unknown`.
111+
#
112+
# @return [Symbol, FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::FlsaStatus, nil]
113+
optional :flsa_status,
114+
enum: -> {
115+
FinchAPI::Sandbox::DirectoryCreateParams::Body::FlsaStatus
116+
},
117+
nil?: true
118+
108119
# @!attribute gender
109120
# The gender of the individual.
110121
#
@@ -208,7 +219,7 @@ class Body < FinchAPI::Internal::Type::BaseModel
208219
# @return [String, nil]
209220
optional :title, String, nil?: true
210221

211-
# @!method initialize(class_code: nil, custom_fields: nil, department: nil, dob: nil, emails: nil, employment: nil, employment_status: nil, encrypted_ssn: nil, end_date: nil, ethnicity: nil, first_name: nil, gender: nil, income: nil, income_history: nil, is_active: nil, last_name: nil, latest_rehire_date: nil, location: nil, manager: nil, middle_name: nil, phone_numbers: nil, preferred_name: nil, residence: nil, source_id: nil, ssn: nil, start_date: nil, title: nil)
222+
# @!method initialize(class_code: nil, custom_fields: nil, department: nil, dob: nil, emails: nil, employment: nil, employment_status: nil, encrypted_ssn: nil, end_date: nil, ethnicity: nil, first_name: nil, flsa_status: nil, gender: nil, income: nil, income_history: nil, is_active: nil, last_name: nil, latest_rehire_date: nil, location: nil, manager: nil, middle_name: nil, phone_numbers: nil, preferred_name: nil, residence: nil, source_id: nil, ssn: nil, start_date: nil, title: nil)
212223
# Some parameter documentations has been truncated, see
213224
# {FinchAPI::Models::Sandbox::DirectoryCreateParams::Body} for more details.
214225
#
@@ -234,6 +245,8 @@ class Body < FinchAPI::Internal::Type::BaseModel
234245
#
235246
# @param first_name [String, nil] The legal first name of the individual.
236247
#
248+
# @param flsa_status [Symbol, FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::FlsaStatus, nil] The FLSA status of the individual. Available options: `exempt`, `non_exempt`, `u
249+
#
237250
# @param gender [Symbol, FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::Gender, nil] The gender of the individual.
238251
#
239252
# @param income [FinchAPI::Models::Income, nil] The employee's income as reported by the provider. This may not always be annual
@@ -428,6 +441,21 @@ module Ethnicity
428441
# @return [Array<Symbol>]
429442
end
430443

444+
# The FLSA status of the individual. Available options: `exempt`, `non_exempt`,
445+
# `unknown`.
446+
#
447+
# @see FinchAPI::Models::Sandbox::DirectoryCreateParams::Body#flsa_status
448+
module FlsaStatus
449+
extend FinchAPI::Internal::Type::Enum
450+
451+
EXEMPT = :exempt
452+
NON_EXEMPT = :non_exempt
453+
UNKNOWN = :unknown
454+
455+
# @!method self.values
456+
# @return [Array<Symbol>]
457+
end
458+
431459
# The gender of the individual.
432460
#
433461
# @see FinchAPI::Models::Sandbox::DirectoryCreateParams::Body#gender

lib/finch_api/models/sandbox/employment_update_params.rb

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ class EmploymentUpdateParams < FinchAPI::Internal::Type::BaseModel
5757
# @return [String, nil]
5858
optional :first_name, String, nil?: true
5959

60+
# @!attribute flsa_status
61+
# The FLSA status of the individual. Available options: `exempt`, `non_exempt`,
62+
# `unknown`.
63+
#
64+
# @return [Symbol, FinchAPI::Models::Sandbox::EmploymentUpdateParams::FlsaStatus, nil]
65+
optional :flsa_status, enum: -> { FinchAPI::Sandbox::EmploymentUpdateParams::FlsaStatus }, nil?: true
66+
6067
# @!attribute income
6168
# The employee's income as reported by the provider. This may not always be
6269
# annualized income, but may be in units of bi-weekly, semi-monthly, daily, etc,
@@ -124,7 +131,7 @@ class EmploymentUpdateParams < FinchAPI::Internal::Type::BaseModel
124131
# @return [String, nil]
125132
optional :title, String, nil?: true
126133

127-
# @!method initialize(class_code: nil, custom_fields: nil, department: nil, employment: nil, employment_status: nil, end_date: nil, first_name: nil, income: nil, income_history: nil, is_active: nil, last_name: nil, latest_rehire_date: nil, location: nil, manager: nil, middle_name: nil, source_id: nil, start_date: nil, title: nil, request_options: {})
134+
# @!method initialize(class_code: nil, custom_fields: nil, department: nil, employment: nil, employment_status: nil, end_date: nil, first_name: nil, flsa_status: nil, income: nil, income_history: nil, is_active: nil, last_name: nil, latest_rehire_date: nil, location: nil, manager: nil, middle_name: nil, source_id: nil, start_date: nil, title: nil, request_options: {})
128135
# Some parameter documentations has been truncated, see
129136
# {FinchAPI::Models::Sandbox::EmploymentUpdateParams} for more details.
130137
#
@@ -142,6 +149,8 @@ class EmploymentUpdateParams < FinchAPI::Internal::Type::BaseModel
142149
#
143150
# @param first_name [String, nil] The legal first name of the individual.
144151
#
152+
# @param flsa_status [Symbol, FinchAPI::Models::Sandbox::EmploymentUpdateParams::FlsaStatus, nil] The FLSA status of the individual. Available options: `exempt`, `non_exempt`, `u
153+
#
145154
# @param income [FinchAPI::Models::Income, nil] The employee's income as reported by the provider. This may not always be annual
146155
#
147156
# @param income_history [Array<FinchAPI::Models::Income, nil>, nil] The array of income history.
@@ -272,6 +281,19 @@ module EmploymentStatus
272281
# @return [Array<Symbol>]
273282
end
274283

284+
# The FLSA status of the individual. Available options: `exempt`, `non_exempt`,
285+
# `unknown`.
286+
module FlsaStatus
287+
extend FinchAPI::Internal::Type::Enum
288+
289+
EXEMPT = :exempt
290+
NON_EXEMPT = :non_exempt
291+
UNKNOWN = :unknown
292+
293+
# @!method self.values
294+
# @return [Array<Symbol>]
295+
end
296+
275297
class Manager < FinchAPI::Internal::Type::BaseModel
276298
# @!attribute id
277299
# A stable Finch `id` (UUID v4) for an individual in the company.

lib/finch_api/models/sandbox/employment_update_response.rb

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,15 @@ class EmploymentUpdateResponse < FinchAPI::Internal::Type::BaseModel
5858
# @return [String, nil]
5959
optional :first_name, String, nil?: true
6060

61+
# @!attribute flsa_status
62+
# The FLSA status of the individual. Available options: `exempt`, `non_exempt`,
63+
# `unknown`.
64+
#
65+
# @return [Symbol, FinchAPI::Models::Sandbox::EmploymentUpdateResponse::FlsaStatus, nil]
66+
optional :flsa_status,
67+
enum: -> { FinchAPI::Models::Sandbox::EmploymentUpdateResponse::FlsaStatus },
68+
nil?: true
69+
6170
# @!attribute income
6271
# The employee's income as reported by the provider. This may not always be
6372
# annualized income, but may be in units of bi-weekly, semi-monthly, daily, etc,
@@ -125,7 +134,7 @@ class EmploymentUpdateResponse < FinchAPI::Internal::Type::BaseModel
125134
# @return [String, nil]
126135
optional :title, String, nil?: true
127136

128-
# @!method initialize(id: nil, class_code: nil, custom_fields: nil, department: nil, employment: nil, employment_status: nil, end_date: nil, first_name: nil, income: nil, income_history: nil, is_active: nil, last_name: nil, latest_rehire_date: nil, location: nil, manager: nil, middle_name: nil, source_id: nil, start_date: nil, title: nil)
137+
# @!method initialize(id: nil, class_code: nil, custom_fields: nil, department: nil, employment: nil, employment_status: nil, end_date: nil, first_name: nil, flsa_status: nil, income: nil, income_history: nil, is_active: nil, last_name: nil, latest_rehire_date: nil, location: nil, manager: nil, middle_name: nil, source_id: nil, start_date: nil, title: nil)
129138
# Some parameter documentations has been truncated, see
130139
# {FinchAPI::Models::Sandbox::EmploymentUpdateResponse} for more details.
131140
#
@@ -145,6 +154,8 @@ class EmploymentUpdateResponse < FinchAPI::Internal::Type::BaseModel
145154
#
146155
# @param first_name [String, nil] The legal first name of the individual.
147156
#
157+
# @param flsa_status [Symbol, FinchAPI::Models::Sandbox::EmploymentUpdateResponse::FlsaStatus, nil] The FLSA status of the individual. Available options: `exempt`, `non_exempt`, `u
158+
#
148159
# @param income [FinchAPI::Models::Income, nil] The employee's income as reported by the provider. This may not always be annual
149160
#
150161
# @param income_history [Array<FinchAPI::Models::Income, nil>, nil] The array of income history.
@@ -277,6 +288,21 @@ module EmploymentStatus
277288
# @return [Array<Symbol>]
278289
end
279290

291+
# The FLSA status of the individual. Available options: `exempt`, `non_exempt`,
292+
# `unknown`.
293+
#
294+
# @see FinchAPI::Models::Sandbox::EmploymentUpdateResponse#flsa_status
295+
module FlsaStatus
296+
extend FinchAPI::Internal::Type::Enum
297+
298+
EXEMPT = :exempt
299+
NON_EXEMPT = :non_exempt
300+
UNKNOWN = :unknown
301+
302+
# @!method self.values
303+
# @return [Array<Symbol>]
304+
end
305+
280306
# @see FinchAPI::Models::Sandbox::EmploymentUpdateResponse#manager
281307
class Manager < FinchAPI::Internal::Type::BaseModel
282308
# @!attribute id

lib/finch_api/resources/sandbox/employment.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Employment
99
#
1010
# Update sandbox employment
1111
#
12-
# @overload update(individual_id, class_code: nil, custom_fields: nil, department: nil, employment: nil, employment_status: nil, end_date: nil, first_name: nil, income: nil, income_history: nil, is_active: nil, last_name: nil, latest_rehire_date: nil, location: nil, manager: nil, middle_name: nil, source_id: nil, start_date: nil, title: nil, request_options: {})
12+
# @overload update(individual_id, class_code: nil, custom_fields: nil, department: nil, employment: nil, employment_status: nil, end_date: nil, first_name: nil, flsa_status: nil, income: nil, income_history: nil, is_active: nil, last_name: nil, latest_rehire_date: nil, location: nil, manager: nil, middle_name: nil, source_id: nil, start_date: nil, title: nil, request_options: {})
1313
#
1414
# @param individual_id [String]
1515
#
@@ -27,6 +27,8 @@ class Employment
2727
#
2828
# @param first_name [String, nil] The legal first name of the individual.
2929
#
30+
# @param flsa_status [Symbol, FinchAPI::Models::Sandbox::EmploymentUpdateParams::FlsaStatus, nil] The FLSA status of the individual. Available options: `exempt`, `non_exempt`, `u
31+
#
3032
# @param income [FinchAPI::Models::Income, nil] The employee's income as reported by the provider. This may not always be annual
3133
#
3234
# @param income_history [Array<FinchAPI::Models::Income, nil>, nil] The array of income history.

rbi/finch_api/models/hris/employment_data.rbi

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,17 @@ module FinchAPI
8888
sig { returns(T.nilable(String)) }
8989
attr_accessor :first_name
9090

91+
# The FLSA status of the individual. Available options: `exempt`, `non_exempt`,
92+
# `unknown`.
93+
sig do
94+
returns(
95+
T.nilable(
96+
FinchAPI::HRIS::EmploymentData::UnionMember0::FlsaStatus::TaggedSymbol
97+
)
98+
)
99+
end
100+
attr_accessor :flsa_status
101+
91102
# `true` if the individual an an active employee or contractor at the company.
92103
sig { returns(T.nilable(T::Boolean)) }
93104
attr_accessor :is_active
@@ -187,6 +198,10 @@ module FinchAPI
187198
),
188199
end_date: T.nilable(String),
189200
first_name: T.nilable(String),
201+
flsa_status:
202+
T.nilable(
203+
FinchAPI::HRIS::EmploymentData::UnionMember0::FlsaStatus::OrSymbol
204+
),
190205
is_active: T.nilable(T::Boolean),
191206
last_name: T.nilable(String),
192207
latest_rehire_date: T.nilable(String),
@@ -225,6 +240,9 @@ module FinchAPI
225240
end_date:,
226241
# The legal first name of the individual.
227242
first_name:,
243+
# The FLSA status of the individual. Available options: `exempt`, `non_exempt`,
244+
# `unknown`.
245+
flsa_status:,
228246
# `true` if the individual an an active employee or contractor at the company.
229247
is_active:,
230248
# The legal last name of the individual.
@@ -274,6 +292,10 @@ module FinchAPI
274292
),
275293
end_date: T.nilable(String),
276294
first_name: T.nilable(String),
295+
flsa_status:
296+
T.nilable(
297+
FinchAPI::HRIS::EmploymentData::UnionMember0::FlsaStatus::TaggedSymbol
298+
),
277299
is_active: T.nilable(T::Boolean),
278300
last_name: T.nilable(String),
279301
latest_rehire_date: T.nilable(String),
@@ -549,6 +571,47 @@ module FinchAPI
549571
end
550572
end
551573

574+
# The FLSA status of the individual. Available options: `exempt`, `non_exempt`,
575+
# `unknown`.
576+
module FlsaStatus
577+
extend FinchAPI::Internal::Type::Enum
578+
579+
TaggedSymbol =
580+
T.type_alias do
581+
T.all(
582+
Symbol,
583+
FinchAPI::HRIS::EmploymentData::UnionMember0::FlsaStatus
584+
)
585+
end
586+
OrSymbol = T.type_alias { T.any(Symbol, String) }
587+
588+
EXEMPT =
589+
T.let(
590+
:exempt,
591+
FinchAPI::HRIS::EmploymentData::UnionMember0::FlsaStatus::TaggedSymbol
592+
)
593+
NON_EXEMPT =
594+
T.let(
595+
:non_exempt,
596+
FinchAPI::HRIS::EmploymentData::UnionMember0::FlsaStatus::TaggedSymbol
597+
)
598+
UNKNOWN =
599+
T.let(
600+
:unknown,
601+
FinchAPI::HRIS::EmploymentData::UnionMember0::FlsaStatus::TaggedSymbol
602+
)
603+
604+
sig do
605+
override.returns(
606+
T::Array[
607+
FinchAPI::HRIS::EmploymentData::UnionMember0::FlsaStatus::TaggedSymbol
608+
]
609+
)
610+
end
611+
def self.values
612+
end
613+
end
614+
552615
class Manager < FinchAPI::Internal::Type::BaseModel
553616
OrHash =
554617
T.type_alias do

0 commit comments

Comments
 (0)