Skip to content

Commit 6e46c62

Browse files
feat(api): api update
1 parent 68d04c3 commit 6e46c62

39 files changed

+3801
-3337
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-4fcae6958da081ca0e96ef6b3ce8f0b6e50994faaed8ecd6e94aa40ce1a93521.yml
3-
openapi_spec_hash: a825b1120bb26f04505e3bc9ab1e48f3
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-5b7ee4cddd08558fb0cc5010d36899c0bbe5d6a8d39c8171f65b70b68927df3c.yml
3+
openapi_spec_hash: c01482dc89e9bf7ae4c9dad0fb547e62
44
config_hash: 53778a0b839c4f6ad34fbba051f5e8a6

lib/finch_api.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@
118118
require_relative "finch_api/models/hris/individual_retrieve_many_params"
119119
require_relative "finch_api/models/hris/payment"
120120
require_relative "finch_api/models/hris/payment_list_params"
121-
require_relative "finch_api/models/hris/pay_statement"
122121
require_relative "finch_api/models/hris/pay_statement_response"
123122
require_relative "finch_api/models/hris/pay_statement_response_body"
124123
require_relative "finch_api/models/hris/pay_statement_retrieve_many_params"

lib/finch_api/models/hris/benefit_type.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,25 @@ module HRIS
77
module BenefitType
88
extend FinchAPI::Internal::Type::Enum
99

10+
BENEFIT_TYPE_457 = :"457"
1011
BENEFIT_TYPE_401K = :"401k"
1112
BENEFIT_TYPE_401K_ROTH = :"401k_roth"
1213
BENEFIT_TYPE_401K_LOAN = :"401k_loan"
1314
BENEFIT_TYPE_403B = :"403b"
1415
BENEFIT_TYPE_403B_ROTH = :"403b_roth"
15-
BENEFIT_TYPE_457 = :"457"
1616
BENEFIT_TYPE_457_ROTH = :"457_roth"
17-
S125_MEDICAL = :s125_medical
18-
S125_DENTAL = :s125_dental
19-
S125_VISION = :s125_vision
20-
HSA_PRE = :hsa_pre
21-
HSA_POST = :hsa_post
22-
FSA_MEDICAL = :fsa_medical
23-
FSA_DEPENDENT_CARE = :fsa_dependent_care
24-
SIMPLE_IRA = :simple_ira
25-
SIMPLE = :simple
2617
COMMUTER = :commuter
2718
CUSTOM_POST_TAX = :custom_post_tax
2819
CUSTOM_PRE_TAX = :custom_pre_tax
20+
FSA_DEPENDENT_CARE = :fsa_dependent_care
21+
FSA_MEDICAL = :fsa_medical
22+
HSA_POST = :hsa_post
23+
HSA_PRE = :hsa_pre
24+
S125_DENTAL = :s125_dental
25+
S125_MEDICAL = :s125_medical
26+
S125_VISION = :s125_vision
27+
SIMPLE = :simple
28+
SIMPLE_IRA = :simple_ira
2929

3030
# @!method self.values
3131
# @return [Array<Symbol>]

lib/finch_api/models/hris/company/pay_statement_item_list_response.rb

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ class PayStatementItemListResponse < FinchAPI::Internal::Type::BaseModel
99
# @!attribute attributes
1010
# The attributes of the pay statement item.
1111
#
12-
# @return [FinchAPI::Models::HRIS::Company::PayStatementItemListResponse::Attributes, nil]
13-
optional :attributes, -> { FinchAPI::Models::HRIS::Company::PayStatementItemListResponse::Attributes }
12+
# @return [FinchAPI::Models::HRIS::Company::PayStatementItemListResponse::Attributes]
13+
required :attributes, -> { FinchAPI::Models::HRIS::Company::PayStatementItemListResponse::Attributes }
1414

1515
# @!attribute category
1616
# The category of the pay statement item.
1717
#
18-
# @return [Symbol, FinchAPI::Models::HRIS::Company::PayStatementItemListResponse::Category, nil]
19-
optional :category, enum: -> { FinchAPI::Models::HRIS::Company::PayStatementItemListResponse::Category }
18+
# @return [Symbol, FinchAPI::Models::HRIS::Company::PayStatementItemListResponse::Category]
19+
required :category, enum: -> { FinchAPI::Models::HRIS::Company::PayStatementItemListResponse::Category }
2020

2121
# @!attribute name
2222
# The name of the pay statement item.
2323
#
24-
# @return [String, nil]
25-
optional :name, String
24+
# @return [String]
25+
required :name, String
2626

27-
# @!method initialize(attributes: nil, category: nil, name: nil)
27+
# @!method initialize(attributes:, category:, name:)
2828
# @param attributes [FinchAPI::Models::HRIS::Company::PayStatementItemListResponse::Attributes] The attributes of the pay statement item.
2929
#
3030
# @param category [Symbol, FinchAPI::Models::HRIS::Company::PayStatementItemListResponse::Category] The category of the pay statement item.
@@ -33,22 +33,22 @@ class PayStatementItemListResponse < FinchAPI::Internal::Type::BaseModel
3333

3434
# @see FinchAPI::Models::HRIS::Company::PayStatementItemListResponse#attributes
3535
class Attributes < FinchAPI::Internal::Type::BaseModel
36-
# @!attribute employer
37-
# `true` if the amount is paid by the employers. This field is only available for
38-
# taxes.
39-
#
40-
# @return [Boolean, nil]
41-
optional :employer, FinchAPI::Internal::Type::Boolean, nil?: true
42-
4336
# @!attribute metadata
4437
# The metadata of the pay statement item derived by the rules engine if available.
4538
# Each attribute will be a key-value pair defined by a rule.
4639
#
4740
# @return [Hash{Symbol=>Object, nil}, nil]
48-
optional :metadata,
41+
required :metadata,
4942
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true],
5043
nil?: true
5144

45+
# @!attribute employer
46+
# `true` if the amount is paid by the employers. This field is only available for
47+
# taxes.
48+
#
49+
# @return [Boolean, nil]
50+
optional :employer, FinchAPI::Internal::Type::Boolean, nil?: true
51+
5252
# @!attribute pre_tax
5353
# `true` if the pay statement item is pre-tax. This field is only available for
5454
# employee deductions.
@@ -62,17 +62,17 @@ class Attributes < FinchAPI::Internal::Type::BaseModel
6262
# @return [String, nil]
6363
optional :type, String, nil?: true
6464

65-
# @!method initialize(employer: nil, metadata: nil, pre_tax: nil, type: nil)
65+
# @!method initialize(metadata:, employer: nil, pre_tax: nil, type: nil)
6666
# Some parameter documentations has been truncated, see
6767
# {FinchAPI::Models::HRIS::Company::PayStatementItemListResponse::Attributes} for
6868
# more details.
6969
#
7070
# The attributes of the pay statement item.
7171
#
72-
# @param employer [Boolean, nil] `true` if the amount is paid by the employers. This field is only available for
73-
#
7472
# @param metadata [Hash{Symbol=>Object, nil}, nil] The metadata of the pay statement item derived by the rules engine if available.
7573
#
74+
# @param employer [Boolean, nil] `true` if the amount is paid by the employers. This field is only available for
75+
#
7676
# @param pre_tax [Boolean, nil] `true` if the pay statement item is pre-tax. This field is only available for em
7777
#
7878
# @param type [String, nil] The type of the pay statement item.

lib/finch_api/models/hris/employment_data.rb

Lines changed: 61 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,6 @@ class UnionMember0 < FinchAPI::Internal::Type::BaseModel
2323
# @return [String, nil]
2424
required :class_code, String, nil?: true
2525

26-
# @!attribute custom_fields
27-
# Custom fields for the individual. These are fields which are defined by the
28-
# employer in the system. Custom fields are not currently supported for assisted
29-
# connections.
30-
#
31-
# @return [Array<FinchAPI::Models::HRIS::EmploymentData::UnionMember0::CustomField>, nil]
32-
required :custom_fields,
33-
-> {
34-
FinchAPI::Internal::Type::ArrayOf[FinchAPI::HRIS::EmploymentData::UnionMember0::CustomField]
35-
},
36-
nil?: true
37-
3826
# @!attribute department
3927
# The department object.
4028
#
@@ -112,13 +100,17 @@ class UnionMember0 < FinchAPI::Internal::Type::BaseModel
112100
# @return [String, nil]
113101
required :title, String, nil?: true
114102

115-
# @!attribute work_id
116-
# @deprecated
117-
#
118-
# This field is deprecated in favour of `source_id`
103+
# @!attribute custom_fields
104+
# Custom fields for the individual. These are fields which are defined by the
105+
# employer in the system. Custom fields are not currently supported for assisted
106+
# connections.
119107
#
120-
# @return [String, nil]
121-
required :work_id, String, nil?: true
108+
# @return [Array<FinchAPI::Models::HRIS::EmploymentData::UnionMember0::CustomField>, nil]
109+
optional :custom_fields,
110+
-> {
111+
FinchAPI::Internal::Type::ArrayOf[FinchAPI::HRIS::EmploymentData::UnionMember0::CustomField]
112+
},
113+
nil?: true
122114

123115
# @!attribute income
124116
# The employee's income as reported by the provider. This may not always be
@@ -142,16 +134,22 @@ class UnionMember0 < FinchAPI::Internal::Type::BaseModel
142134
# @return [String, nil]
143135
optional :source_id, String, nil?: true
144136

145-
# @!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)
137+
# @!attribute work_id
138+
# @deprecated
139+
#
140+
# This field is deprecated in favour of `source_id`
141+
#
142+
# @return [String, nil]
143+
optional :work_id, String, nil?: true
144+
145+
# @!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)
146146
# Some parameter documentations has been truncated, see
147147
# {FinchAPI::Models::HRIS::EmploymentData::UnionMember0} for more details.
148148
#
149149
# @param id [String] A stable Finch `id` (UUID v4) for an individual in the company.
150150
#
151151
# @param class_code [String, nil] Worker's compensation classification code for this employee
152152
#
153-
# @param custom_fields [Array<FinchAPI::Models::HRIS::EmploymentData::UnionMember0::CustomField>, nil] Custom fields for the individual. These are fields which are defined by the empl
154-
#
155153
# @param department [FinchAPI::Models::HRIS::EmploymentData::UnionMember0::Department, nil] The department object.
156154
#
157155
# @param employment [FinchAPI::Models::HRIS::EmploymentData::UnionMember0::Employment, nil] The employment object.
@@ -178,52 +176,15 @@ class UnionMember0 < FinchAPI::Internal::Type::BaseModel
178176
#
179177
# @param title [String, nil] The current title of the individual.
180178
#
181-
# @param work_id [String, nil] This field is deprecated in favour of `source_id`
179+
# @param custom_fields [Array<FinchAPI::Models::HRIS::EmploymentData::UnionMember0::CustomField>, nil] Custom fields for the individual. These are fields which are defined by the empl
182180
#
183181
# @param income [FinchAPI::Models::Income, nil] The employee's income as reported by the provider. This may not always be annual
184182
#
185183
# @param income_history [Array<FinchAPI::Models::Income, nil>, nil] The array of income history.
186184
#
187185
# @param source_id [String, nil] The source system's unique employment identifier for this individual
188-
189-
class CustomField < FinchAPI::Internal::Type::BaseModel
190-
# @!attribute name
191-
#
192-
# @return [String, nil]
193-
optional :name, String, nil?: true
194-
195-
# @!attribute value
196-
#
197-
# @return [String, Array<Object>, Object, Float, Boolean, nil]
198-
optional :value,
199-
union: -> { FinchAPI::HRIS::EmploymentData::UnionMember0::CustomField::Value },
200-
nil?: true
201-
202-
# @!method initialize(name: nil, value: nil)
203-
# @param name [String, nil]
204-
# @param value [String, Array<Object>, Object, Float, Boolean, nil]
205-
206-
# @see FinchAPI::Models::HRIS::EmploymentData::UnionMember0::CustomField#value
207-
module Value
208-
extend FinchAPI::Internal::Type::Union
209-
210-
variant String
211-
212-
variant -> { FinchAPI::Models::HRIS::EmploymentData::UnionMember0::CustomField::Value::UnionMember1Array }
213-
214-
variant FinchAPI::Internal::Type::Unknown
215-
216-
variant Float
217-
218-
variant FinchAPI::Internal::Type::Boolean
219-
220-
# @!method self.variants
221-
# @return [Array(String, Array<Object>, Object, Float, Boolean)]
222-
223-
# @type [FinchAPI::Internal::Type::Converter]
224-
UnionMember1Array = FinchAPI::Internal::Type::ArrayOf[FinchAPI::Internal::Type::Unknown]
225-
end
226-
end
186+
#
187+
# @param work_id [String, nil] This field is deprecated in favour of `source_id`
227188

228189
# @see FinchAPI::Models::HRIS::EmploymentData::UnionMember0#department
229190
class Department < FinchAPI::Internal::Type::BaseModel
@@ -335,6 +296,45 @@ class Manager < FinchAPI::Internal::Type::BaseModel
335296
#
336297
# @param id [String] A stable Finch `id` (UUID v4) for an individual in the company.
337298
end
299+
300+
class CustomField < FinchAPI::Internal::Type::BaseModel
301+
# @!attribute name
302+
#
303+
# @return [String, nil]
304+
optional :name, String, nil?: true
305+
306+
# @!attribute value
307+
#
308+
# @return [String, Array<Object>, Object, Float, Boolean, nil]
309+
optional :value,
310+
union: -> { FinchAPI::HRIS::EmploymentData::UnionMember0::CustomField::Value },
311+
nil?: true
312+
313+
# @!method initialize(name: nil, value: nil)
314+
# @param name [String, nil]
315+
# @param value [String, Array<Object>, Object, Float, Boolean, nil]
316+
317+
# @see FinchAPI::Models::HRIS::EmploymentData::UnionMember0::CustomField#value
318+
module Value
319+
extend FinchAPI::Internal::Type::Union
320+
321+
variant String
322+
323+
variant -> { FinchAPI::Models::HRIS::EmploymentData::UnionMember0::CustomField::Value::UnionMember1Array }
324+
325+
variant FinchAPI::Internal::Type::Unknown
326+
327+
variant Float
328+
329+
variant FinchAPI::Internal::Type::Boolean
330+
331+
# @!method self.variants
332+
# @return [Array(String, Array<Object>, Object, Float, Boolean)]
333+
334+
# @type [FinchAPI::Internal::Type::Converter]
335+
UnionMember1Array = FinchAPI::Internal::Type::ArrayOf[FinchAPI::Internal::Type::Unknown]
336+
end
337+
end
338338
end
339339

340340
class BatchError < FinchAPI::Internal::Type::BaseModel

0 commit comments

Comments
 (0)