Skip to content

Commit c0514cb

Browse files
feat(api): api update
1 parent a950bdc commit c0514cb

File tree

4 files changed

+29
-28
lines changed

4 files changed

+29
-28
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-5b00a0bc705b1d5bfcb5ea79c7af544766d51ec12ccc4721825664ab397789d8.yml
3-
openapi_spec_hash: 34891659cff31395ba7683a8153b1db5
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-dbbf65e94ae7a53cd5a313974761102447ccda3096fd40967c137ad3f80f7154.yml
3+
openapi_spec_hash: 3cc9d87b60dc27283735d610d4b51a53
44
config_hash: 53778a0b839c4f6ad34fbba051f5e8a6

lib/finch_api/models/hris/employment_data.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,6 @@ class UnionMember0 < FinchAPI::Internal::Type::BaseModel
100100
# @return [String, nil]
101101
required :middle_name, String, nil?: true
102102

103-
# @!attribute source_id
104-
# The source system's unique employment identifier for this individual
105-
#
106-
# @return [String, nil]
107-
required :source_id, String, nil?: true
108-
109103
# @!attribute start_date
110104
#
111105
# @return [String, nil]
@@ -141,7 +135,13 @@ class UnionMember0 < FinchAPI::Internal::Type::BaseModel
141135
-> { FinchAPI::Internal::Type::ArrayOf[FinchAPI::Income, nil?: true] },
142136
nil?: true
143137

144-
# @!method initialize(id:, class_code:, custom_fields:, department:, employment:, employment_status:, end_date:, first_name:, is_active:, last_name:, latest_rehire_date:, location:, manager:, middle_name:, source_id:, start_date:, title:, work_id:, income: nil, income_history: nil)
138+
# @!attribute source_id
139+
# The source system's unique employment identifier for this individual
140+
#
141+
# @return [String, nil]
142+
optional :source_id, String, nil?: true
143+
144+
# @!method initialize(id:, class_code:, custom_fields:, department:, employment:, employment_status:, end_date:, first_name:, is_active:, last_name:, latest_rehire_date:, location:, manager:, middle_name:, start_date:, title:, work_id:, income: nil, income_history: nil, source_id: nil)
145145
# Some parameter documentations has been truncated, see
146146
# {FinchAPI::HRIS::EmploymentData::UnionMember0} for more details.
147147
#
@@ -173,8 +173,6 @@ class UnionMember0 < FinchAPI::Internal::Type::BaseModel
173173
#
174174
# @param middle_name [String, nil] The legal middle name of the individual.
175175
#
176-
# @param source_id [String, nil] The source system's unique employment identifier for this individual
177-
#
178176
# @param start_date [String, nil]
179177
#
180178
# @param title [String, nil] The current title of the individual.
@@ -184,6 +182,8 @@ class UnionMember0 < FinchAPI::Internal::Type::BaseModel
184182
# @param income [FinchAPI::Income, nil] The employee's income as reported by the provider. This may not always be annual
185183
#
186184
# @param income_history [Array<FinchAPI::Income, nil>, nil] The array of income history.
185+
#
186+
# @param source_id [String, nil] The source system's unique employment identifier for this individual
187187

188188
class CustomField < FinchAPI::Internal::Type::BaseModel
189189
# @!attribute name

rbi/finch_api/models/hris/employment_data.rbi

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,6 @@ module FinchAPI
141141
sig { returns(T.nilable(String)) }
142142
attr_accessor :middle_name
143143

144-
# The source system's unique employment identifier for this individual
145-
sig { returns(T.nilable(String)) }
146-
attr_accessor :source_id
147-
148144
sig { returns(T.nilable(String)) }
149145
attr_accessor :start_date
150146

@@ -169,6 +165,10 @@ module FinchAPI
169165
sig { returns(T.nilable(T::Array[T.nilable(FinchAPI::Income)])) }
170166
attr_accessor :income_history
171167

168+
# The source system's unique employment identifier for this individual
169+
sig { returns(T.nilable(String)) }
170+
attr_accessor :source_id
171+
172172
sig do
173173
params(
174174
id: String,
@@ -202,13 +202,13 @@ module FinchAPI
202202
FinchAPI::HRIS::EmploymentData::UnionMember0::Manager::OrHash
203203
),
204204
middle_name: T.nilable(String),
205-
source_id: T.nilable(String),
206205
start_date: T.nilable(String),
207206
title: T.nilable(String),
208207
work_id: T.nilable(String),
209208
income: T.nilable(FinchAPI::Income::OrHash),
210209
income_history:
211-
T.nilable(T::Array[T.nilable(FinchAPI::Income::OrHash)])
210+
T.nilable(T::Array[T.nilable(FinchAPI::Income::OrHash)]),
211+
source_id: T.nilable(String)
212212
).returns(T.attached_class)
213213
end
214214
def self.new(
@@ -239,8 +239,6 @@ module FinchAPI
239239
manager:,
240240
# The legal middle name of the individual.
241241
middle_name:,
242-
# The source system's unique employment identifier for this individual
243-
source_id:,
244242
start_date:,
245243
# The current title of the individual.
246244
title:,
@@ -251,7 +249,9 @@ module FinchAPI
251249
# depending on what information the provider returns.
252250
income: nil,
253251
# The array of income history.
254-
income_history: nil
252+
income_history: nil,
253+
# The source system's unique employment identifier for this individual
254+
source_id: nil
255255
)
256256
end
257257

@@ -289,12 +289,13 @@ module FinchAPI
289289
FinchAPI::HRIS::EmploymentData::UnionMember0::Manager
290290
),
291291
middle_name: T.nilable(String),
292-
source_id: T.nilable(String),
293292
start_date: T.nilable(String),
294293
title: T.nilable(String),
295294
work_id: T.nilable(String),
296295
income: T.nilable(FinchAPI::Income),
297-
income_history: T.nilable(T::Array[T.nilable(FinchAPI::Income)])
296+
income_history:
297+
T.nilable(T::Array[T.nilable(FinchAPI::Income)]),
298+
source_id: T.nilable(String)
298299
}
299300
)
300301
end

sig/finch_api/models/hris/employment_data.rbs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ module FinchAPI
2424
location: FinchAPI::Location?,
2525
manager: FinchAPI::HRIS::EmploymentData::UnionMember0::Manager?,
2626
middle_name: String?,
27-
source_id: String?,
2827
start_date: String?,
2928
title: String?,
3029
work_id: String?,
3130
income: FinchAPI::Income?,
32-
income_history: ::Array[FinchAPI::Income?]?
31+
income_history: ::Array[FinchAPI::Income?]?,
32+
source_id: String?
3333
}
3434

3535
class UnionMember0 < FinchAPI::Internal::Type::BaseModel
@@ -61,8 +61,6 @@ module FinchAPI
6161

6262
attr_accessor middle_name: String?
6363

64-
attr_accessor source_id: String?
65-
6664
attr_accessor start_date: String?
6765

6866
attr_accessor title: String?
@@ -73,6 +71,8 @@ module FinchAPI
7371

7472
attr_accessor income_history: ::Array[FinchAPI::Income?]?
7573

74+
attr_accessor source_id: String?
75+
7676
def initialize: (
7777
id: String,
7878
class_code: String?,
@@ -88,12 +88,12 @@ module FinchAPI
8888
location: FinchAPI::Location?,
8989
manager: FinchAPI::HRIS::EmploymentData::UnionMember0::Manager?,
9090
middle_name: String?,
91-
source_id: String?,
9291
start_date: String?,
9392
title: String?,
9493
work_id: String?,
9594
?income: FinchAPI::Income?,
96-
?income_history: ::Array[FinchAPI::Income?]?
95+
?income_history: ::Array[FinchAPI::Income?]?,
96+
?source_id: String?
9797
) -> void
9898

9999
type custom_field =

0 commit comments

Comments
 (0)