finch-api 0.1.0.pre.alpha.26 → 0.1.0.pre.alpha.27

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 001b17120032e3a9858cbe7ec392b2a1f88335e016c832300173ab9a131fb295
4
- data.tar.gz: e2da9d326d10fb9c2713261f8201dfb20370685804dc4a4440aea588ac66b156
3
+ metadata.gz: 01be9b1e24c793e45dc2a3e63d0fcbee0e16f72d5c22e04bb77bf802a761aa24
4
+ data.tar.gz: 4963b833fb1a24c64c2d5caa3ebd8047dbe0c88913a50b2c10d86de5c9a983d4
5
5
  SHA512:
6
- metadata.gz: d0fea639f345b1c5fafd5e21b65e3e94ed2ae2908194857534d3126f9dc5ee1efac374d3a9f6d7b9b97d3d248097ced859c046a00186fa9de64323bc095adf77
7
- data.tar.gz: 65bb77a74431a281b7e14317852362278f082ff73ca91f1dc34035140c9eb56b2852b50b80229fa491525464360f3288c24c7ad64f41f3942c43b73c6cf06574
6
+ metadata.gz: 8ad61d884ef0fe3c5b31fb8dd5f26a899e5446d89b6c8c8cea9f6df76ed4ccb81e4f84116690ee1e79700590c72c82a22ffa54c7448266517f57c1e0c69dbc58
7
+ data.tar.gz: '079c8a914dc98d12916da58d6fac6a6b4e01be56294786fc6b416b0ec299751f233b5aca4754ba008216184cf8accf4784ee9f61c176314e8646035df3e92c63'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.27 (2025-08-19)
4
+
5
+ Full Changelog: [v0.1.0-alpha.26...v0.1.0-alpha.27](https://github.com/Finch-API/finch-api-ruby/compare/v0.1.0-alpha.26...v0.1.0-alpha.27)
6
+
7
+ ### Bug Fixes
8
+
9
+ * bump sorbet version and fix new type errors from the breaking change ([166381e](https://github.com/Finch-API/finch-api-ruby/commit/166381ebd49719646b7c0242605bd7caace4b780))
10
+
3
11
  ## 0.1.0-alpha.26 (2025-08-14)
4
12
 
5
13
  Full Changelog: [v0.1.0-alpha.25...v0.1.0-alpha.26](https://github.com/Finch-API/finch-api-ruby/compare/v0.1.0-alpha.25...v0.1.0-alpha.26)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "finch-api", "~> 0.1.0.pre.alpha.26"
20
+ gem "finch-api", "~> 0.1.0.pre.alpha.27"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -193,15 +193,7 @@ module FinchAPI
193
193
  end
194
194
 
195
195
  define_sorbet_constant!(:Request) do
196
- T.type_alias do
197
- {
198
- method: Symbol,
199
- url: URI::Generic,
200
- headers: T::Hash[String, String],
201
- body: T.anything,
202
- deadline: Float
203
- }
204
- end
196
+ T.type_alias { {method: Symbol, url: URI::Generic, headers: T::Hash[String, String], body: T.anything, deadline: Float} }
205
197
  end
206
198
  end
207
199
  end
@@ -64,14 +64,7 @@ module FinchAPI
64
64
  setter = :"#{name_sym}="
65
65
  api_name = info.fetch(:api_name, name_sym)
66
66
  nilable = info.fetch(:nil?, false)
67
- const = if required && !nilable
68
- info.fetch(
69
- :const,
70
- FinchAPI::Internal::OMIT
71
- )
72
- else
73
- FinchAPI::Internal::OMIT
74
- end
67
+ const = required && !nilable ? info.fetch(:const, FinchAPI::Internal::OMIT) : FinchAPI::Internal::OMIT
75
68
 
76
69
  [name_sym, setter].each { undef_method(_1) } if known_fields.key?(name_sym)
77
70
 
@@ -244,7 +244,7 @@ module FinchAPI
244
244
  #
245
245
  # @return [String]
246
246
  def uri_origin(uri)
247
- "#{uri.scheme}://#{uri.host}#{uri.port == uri.default_port ? '' : ":#{uri.port}"}"
247
+ "#{uri.scheme}://#{uri.host}#{":#{uri.port}" unless uri.port == uri.default_port}"
248
248
  end
249
249
 
250
250
  # @api private
@@ -78,41 +78,31 @@ module FinchAPI
78
78
  #
79
79
  # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Directory, nil]
80
80
  optional :directory,
81
- -> {
82
- FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Directory
83
- }
81
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Directory }
84
82
 
85
83
  # @!attribute employment
86
84
  #
87
85
  # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Employment, nil]
88
86
  optional :employment,
89
- -> {
90
- FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Employment
91
- }
87
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Employment }
92
88
 
93
89
  # @!attribute individual
94
90
  #
95
91
  # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Individual, nil]
96
92
  optional :individual,
97
- -> {
98
- FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Individual
99
- }
93
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Individual }
100
94
 
101
95
  # @!attribute pay_group
102
96
  #
103
97
  # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayGroup, nil]
104
98
  optional :pay_group,
105
- -> {
106
- FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayGroup
107
- }
99
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayGroup }
108
100
 
109
101
  # @!attribute pay_statement
110
102
  #
111
103
  # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayStatement, nil]
112
104
  optional :pay_statement,
113
- -> {
114
- FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayStatement
115
- }
105
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayStatement }
116
106
 
117
107
  # @!attribute payment
118
108
  #
@@ -142,17 +132,13 @@ module FinchAPI
142
132
  #
143
133
  # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Company::Accounts, nil]
144
134
  optional :accounts,
145
- -> {
146
- FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Company::Accounts
147
- }
135
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Company::Accounts }
148
136
 
149
137
  # @!attribute departments
150
138
  #
151
139
  # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Company::Departments, nil]
152
140
  optional :departments,
153
- -> {
154
- FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Company::Departments
155
- }
141
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Company::Departments }
156
142
 
157
143
  # @!attribute ein
158
144
  #
@@ -163,9 +149,7 @@ module FinchAPI
163
149
  #
164
150
  # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Company::Entity, nil]
165
151
  optional :entity,
166
- -> {
167
- FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Company::Entity
168
- }
152
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Company::Entity }
169
153
 
170
154
  # @!attribute legal_name
171
155
  #
@@ -176,9 +160,7 @@ module FinchAPI
176
160
  #
177
161
  # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Company::Locations, nil]
178
162
  optional :locations,
179
- -> {
180
- FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Company::Locations
181
- }
163
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Company::Locations }
182
164
 
183
165
  # @!attribute primary_email
184
166
  #
@@ -247,9 +229,7 @@ module FinchAPI
247
229
  #
248
230
  # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Company::Departments::Parent, nil]
249
231
  optional :parent,
250
- -> {
251
- FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Company::Departments::Parent
252
- }
232
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Company::Departments::Parent }
253
233
 
254
234
  # @!method initialize(name: nil, parent: nil)
255
235
  # @param name [Boolean]
@@ -332,17 +312,13 @@ module FinchAPI
332
312
  #
333
313
  # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Directory::Individuals, nil]
334
314
  optional :individuals,
335
- -> {
336
- FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Directory::Individuals
337
- }
315
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Directory::Individuals }
338
316
 
339
317
  # @!attribute paging
340
318
  #
341
319
  # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Directory::Paging, nil]
342
320
  optional :paging,
343
- -> {
344
- FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Directory::Paging
345
- }
321
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Directory::Paging }
346
322
 
347
323
  # @!method initialize(individuals: nil, paging: nil)
348
324
  # @param individuals [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Directory::Individuals]
@@ -379,9 +355,7 @@ module FinchAPI
379
355
  #
380
356
  # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Directory::Individuals::Manager, nil]
381
357
  optional :manager,
382
- -> {
383
- FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Directory::Individuals::Manager
384
- }
358
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Directory::Individuals::Manager }
385
359
 
386
360
  # @!attribute middle_name
387
361
  #
@@ -448,17 +422,13 @@ module FinchAPI
448
422
  #
449
423
  # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Employment::Department, nil]
450
424
  optional :department,
451
- -> {
452
- FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Employment::Department
453
- }
425
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Employment::Department }
454
426
 
455
427
  # @!attribute employment
456
428
  #
457
429
  # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Employment::Employment, nil]
458
430
  optional :employment,
459
- -> {
460
- FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Employment::Employment
461
- }
431
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Employment::Employment }
462
432
 
463
433
  # @!attribute employment_status
464
434
  #
@@ -479,9 +449,7 @@ module FinchAPI
479
449
  #
480
450
  # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Employment::Income, nil]
481
451
  optional :income,
482
- -> {
483
- FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Employment::Income
484
- }
452
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Employment::Income }
485
453
 
486
454
  # @!attribute income_history
487
455
  #
@@ -502,17 +470,13 @@ module FinchAPI
502
470
  #
503
471
  # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Employment::Location, nil]
504
472
  optional :location,
505
- -> {
506
- FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Employment::Location
507
- }
473
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Employment::Location }
508
474
 
509
475
  # @!attribute manager
510
476
  #
511
477
  # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Employment::Manager, nil]
512
478
  optional :manager,
513
- -> {
514
- FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Employment::Manager
515
- }
479
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Employment::Manager }
516
480
 
517
481
  # @!attribute middle_name
518
482
  #
@@ -668,9 +632,7 @@ module FinchAPI
668
632
  #
669
633
  # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Individual::Emails, nil]
670
634
  optional :emails,
671
- -> {
672
- FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Individual::Emails
673
- }
635
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Individual::Emails }
674
636
 
675
637
  # @!attribute encrypted_ssn
676
638
  #
@@ -706,9 +668,7 @@ module FinchAPI
706
668
  #
707
669
  # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Individual::PhoneNumbers, nil]
708
670
  optional :phone_numbers,
709
- -> {
710
- FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Individual::PhoneNumbers
711
- }
671
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Individual::PhoneNumbers }
712
672
 
713
673
  # @!attribute preferred_name
714
674
  #
@@ -719,9 +679,7 @@ module FinchAPI
719
679
  #
720
680
  # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Individual::Residence, nil]
721
681
  optional :residence,
722
- -> {
723
- FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Individual::Residence
724
- }
682
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Individual::Residence }
725
683
 
726
684
  # @!attribute ssn
727
685
  #
@@ -854,17 +812,13 @@ module FinchAPI
854
812
  #
855
813
  # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayStatement::Paging, nil]
856
814
  optional :paging,
857
- -> {
858
- FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayStatement::Paging
859
- }
815
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayStatement::Paging }
860
816
 
861
817
  # @!attribute pay_statements
862
818
  #
863
819
  # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayStatement::PayStatements, nil]
864
820
  optional :pay_statements,
865
- -> {
866
- FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayStatement::PayStatements
867
- }
821
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayStatement::PayStatements }
868
822
 
869
823
  # @!method initialize(paging: nil, pay_statements: nil)
870
824
  # @param paging [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayStatement::Paging]
@@ -893,25 +847,19 @@ module FinchAPI
893
847
  #
894
848
  # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayStatement::PayStatements::Earnings, nil]
895
849
  optional :earnings,
896
- -> {
897
- FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayStatement::PayStatements::Earnings
898
- }
850
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayStatement::PayStatements::Earnings }
899
851
 
900
852
  # @!attribute employee_deductions
901
853
  #
902
854
  # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayStatement::PayStatements::EmployeeDeductions, nil]
903
855
  optional :employee_deductions,
904
- -> {
905
- FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayStatement::PayStatements::EmployeeDeductions
906
- }
856
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayStatement::PayStatements::EmployeeDeductions }
907
857
 
908
858
  # @!attribute employer_contributions
909
859
  #
910
860
  # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayStatement::PayStatements::EmployerContributions, nil]
911
861
  optional :employer_contributions,
912
- -> {
913
- FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayStatement::PayStatements::EmployerContributions
914
- }
862
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayStatement::PayStatements::EmployerContributions }
915
863
 
916
864
  # @!attribute gross_pay
917
865
  #
@@ -937,9 +885,7 @@ module FinchAPI
937
885
  #
938
886
  # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayStatement::PayStatements::Taxes, nil]
939
887
  optional :taxes,
940
- -> {
941
- FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayStatement::PayStatements::Taxes
942
- }
888
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayStatement::PayStatements::Taxes }
943
889
 
944
890
  # @!attribute total_hours
945
891
  #
@@ -1148,9 +1094,7 @@ module FinchAPI
1148
1094
  #
1149
1095
  # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Payment::PayPeriod, nil]
1150
1096
  optional :pay_period,
1151
- -> {
1152
- FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Payment::PayPeriod
1153
- }
1097
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Payment::PayPeriod }
1154
1098
 
1155
1099
  # @!method initialize(id: nil, company_debit: nil, debit_date: nil, employee_taxes: nil, employer_taxes: nil, gross_pay: nil, individual_ids: nil, net_pay: nil, pay_date: nil, pay_frequencies: nil, pay_group_ids: nil, pay_period: nil)
1156
1100
  # @param id [Boolean]
@@ -55,9 +55,7 @@ module FinchAPI
55
55
  #
56
56
  # @return [Array<FinchAPI::Models::HRIS::BenefitCreateParams::CompanyContribution::Tier>]
57
57
  required :tiers,
58
- -> {
59
- FinchAPI::Internal::Type::ArrayOf[FinchAPI::HRIS::BenefitCreateParams::CompanyContribution::Tier]
60
- }
58
+ -> { FinchAPI::Internal::Type::ArrayOf[FinchAPI::HRIS::BenefitCreateParams::CompanyContribution::Tier] }
61
59
 
62
60
  # @!attribute type
63
61
  #
@@ -14,9 +14,7 @@ module FinchAPI
14
14
  #
15
15
  # @return [Array<FinchAPI::Models::HRIS::Benefits::IndividualEnrollManyParams::Individual>, nil]
16
16
  optional :individuals,
17
- -> {
18
- FinchAPI::Internal::Type::ArrayOf[FinchAPI::HRIS::Benefits::IndividualEnrollManyParams::Individual]
19
- }
17
+ -> { FinchAPI::Internal::Type::ArrayOf[FinchAPI::HRIS::Benefits::IndividualEnrollManyParams::Individual] }
20
18
 
21
19
  # @!method initialize(individuals: nil, request_options: {})
22
20
  # @param individuals [Array<FinchAPI::Models::HRIS::Benefits::IndividualEnrollManyParams::Individual>] Array of the individual_id to enroll and a configuration object.
@@ -49,9 +47,7 @@ module FinchAPI
49
47
  #
50
48
  # @return [Symbol, FinchAPI::Models::HRIS::Benefits::IndividualEnrollManyParams::Individual::Configuration::AnnualContributionLimit, nil]
51
49
  optional :annual_contribution_limit,
52
- enum: -> {
53
- FinchAPI::HRIS::Benefits::IndividualEnrollManyParams::Individual::Configuration::AnnualContributionLimit
54
- }
50
+ enum: -> { FinchAPI::HRIS::Benefits::IndividualEnrollManyParams::Individual::Configuration::AnnualContributionLimit }
55
51
 
56
52
  # @!attribute annual_maximum
57
53
  # Maximum annual amount in cents
@@ -69,9 +65,7 @@ module FinchAPI
69
65
  #
70
66
  # @return [FinchAPI::Models::HRIS::Benefits::IndividualEnrollManyParams::Individual::Configuration::CompanyContribution, nil]
71
67
  optional :company_contribution,
72
- -> {
73
- FinchAPI::HRIS::Benefits::IndividualEnrollManyParams::Individual::Configuration::CompanyContribution
74
- }
68
+ -> { FinchAPI::HRIS::Benefits::IndividualEnrollManyParams::Individual::Configuration::CompanyContribution }
75
69
 
76
70
  # @!attribute effective_date
77
71
  # The date the enrollment will take effect
@@ -83,9 +77,7 @@ module FinchAPI
83
77
  #
84
78
  # @return [FinchAPI::Models::HRIS::Benefits::IndividualEnrollManyParams::Individual::Configuration::EmployeeDeduction, nil]
85
79
  optional :employee_deduction,
86
- -> {
87
- FinchAPI::HRIS::Benefits::IndividualEnrollManyParams::Individual::Configuration::EmployeeDeduction
88
- }
80
+ -> { FinchAPI::HRIS::Benefits::IndividualEnrollManyParams::Individual::Configuration::EmployeeDeduction }
89
81
 
90
82
  # @!method initialize(annual_contribution_limit: nil, annual_maximum: nil, catch_up: nil, company_contribution: nil, effective_date: nil, employee_deduction: nil)
91
83
  # Some parameter documentations has been truncated, see
@@ -131,9 +123,7 @@ module FinchAPI
131
123
  #
132
124
  # @return [Symbol, FinchAPI::Models::HRIS::Benefits::IndividualEnrollManyParams::Individual::Configuration::CompanyContribution::Type, nil]
133
125
  optional :type,
134
- enum: -> {
135
- FinchAPI::HRIS::Benefits::IndividualEnrollManyParams::Individual::Configuration::CompanyContribution::Type
136
- }
126
+ enum: -> { FinchAPI::HRIS::Benefits::IndividualEnrollManyParams::Individual::Configuration::CompanyContribution::Type }
137
127
 
138
128
  # @!method initialize(amount: nil, type: nil)
139
129
  # Some parameter documentations has been truncated, see
@@ -169,9 +159,7 @@ module FinchAPI
169
159
  #
170
160
  # @return [Symbol, FinchAPI::Models::HRIS::Benefits::IndividualEnrollManyParams::Individual::Configuration::EmployeeDeduction::Type, nil]
171
161
  optional :type,
172
- enum: -> {
173
- FinchAPI::HRIS::Benefits::IndividualEnrollManyParams::Individual::Configuration::EmployeeDeduction::Type
174
- }
162
+ enum: -> { FinchAPI::HRIS::Benefits::IndividualEnrollManyParams::Individual::Configuration::EmployeeDeduction::Type }
175
163
 
176
164
  # @!method initialize(amount: nil, type: nil)
177
165
  # Some parameter documentations has been truncated, see
@@ -14,18 +14,13 @@ module FinchAPI
14
14
  # Specifies the fields to be applied when the condition is met.
15
15
  #
16
16
  # @return [FinchAPI::Models::HRIS::Company::PayStatementItem::RuleCreateParams::Attributes, nil]
17
- optional :attributes,
18
- -> {
19
- FinchAPI::HRIS::Company::PayStatementItem::RuleCreateParams::Attributes
20
- }
17
+ optional :attributes, -> { FinchAPI::HRIS::Company::PayStatementItem::RuleCreateParams::Attributes }
21
18
 
22
19
  # @!attribute conditions
23
20
  #
24
21
  # @return [Array<FinchAPI::Models::HRIS::Company::PayStatementItem::RuleCreateParams::Condition>, nil]
25
22
  optional :conditions,
26
- -> {
27
- FinchAPI::Internal::Type::ArrayOf[FinchAPI::HRIS::Company::PayStatementItem::RuleCreateParams::Condition]
28
- }
23
+ -> { FinchAPI::Internal::Type::ArrayOf[FinchAPI::HRIS::Company::PayStatementItem::RuleCreateParams::Condition] }
29
24
 
30
25
  # @!attribute effective_end_date
31
26
  # Specifies when the rules should stop applying rules based on the date.
@@ -89,9 +84,7 @@ module FinchAPI
89
84
  #
90
85
  # @return [Symbol, FinchAPI::Models::HRIS::Company::PayStatementItem::RuleCreateParams::Condition::Operator, nil]
91
86
  optional :operator,
92
- enum: -> {
93
- FinchAPI::HRIS::Company::PayStatementItem::RuleCreateParams::Condition::Operator
94
- }
87
+ enum: -> { FinchAPI::HRIS::Company::PayStatementItem::RuleCreateParams::Condition::Operator }
95
88
 
96
89
  # @!attribute value
97
90
  # The value of the field to be checked in the rule.
@@ -15,9 +15,7 @@ module FinchAPI
15
15
  #
16
16
  # @return [Array<Symbol, FinchAPI::Models::HRIS::Company::PayStatementItemListParams::Category>, nil]
17
17
  optional :categories,
18
- -> {
19
- FinchAPI::Internal::Type::ArrayOf[enum: FinchAPI::HRIS::Company::PayStatementItemListParams::Category]
20
- }
18
+ -> { FinchAPI::Internal::Type::ArrayOf[enum: FinchAPI::HRIS::Company::PayStatementItemListParams::Category] }
21
19
 
22
20
  # @!attribute end_date
23
21
  # The end date to retrieve pay statement items by via their last seen pay date in
@@ -51,9 +51,7 @@ module FinchAPI
51
51
  #
52
52
  # @return [Array<FinchAPI::Models::HRIS::CompanyBenefit::CompanyContribution::Tier>]
53
53
  required :tiers,
54
- -> {
55
- FinchAPI::Internal::Type::ArrayOf[FinchAPI::HRIS::CompanyBenefit::CompanyContribution::Tier]
56
- }
54
+ -> { FinchAPI::Internal::Type::ArrayOf[FinchAPI::HRIS::CompanyBenefit::CompanyContribution::Tier] }
57
55
 
58
56
  # @!attribute type
59
57
  #
@@ -32,10 +32,7 @@ module FinchAPI
32
32
  # types
33
33
  #
34
34
  # @return [Array<Symbol, FinchAPI::Models::HRIS::DocumentListParams::Type>, nil]
35
- optional :types,
36
- -> {
37
- FinchAPI::Internal::Type::ArrayOf[enum: FinchAPI::HRIS::DocumentListParams::Type]
38
- }
35
+ optional :types, -> { FinchAPI::Internal::Type::ArrayOf[enum: FinchAPI::HRIS::DocumentListParams::Type] }
39
36
 
40
37
  # @!method initialize(individual_ids: nil, limit: nil, offset: nil, types: nil, request_options: {})
41
38
  # Some parameter documentations has been truncated, see
@@ -13,9 +13,7 @@ module FinchAPI
13
13
  #
14
14
  # @return [Array<FinchAPI::Models::HRIS::EmploymentRetrieveManyParams::Request>]
15
15
  required :requests,
16
- -> {
17
- FinchAPI::Internal::Type::ArrayOf[FinchAPI::HRIS::EmploymentRetrieveManyParams::Request]
18
- }
16
+ -> { FinchAPI::Internal::Type::ArrayOf[FinchAPI::HRIS::EmploymentRetrieveManyParams::Request] }
19
17
 
20
18
  # @!method initialize(requests:, request_options: {})
21
19
  # @param requests [Array<FinchAPI::Models::HRIS::EmploymentRetrieveManyParams::Request>] The array of batch requests.
@@ -17,9 +17,7 @@ module FinchAPI
17
17
  #
18
18
  # @return [Array<FinchAPI::Models::HRIS::IndividualRetrieveManyParams::Request>, nil]
19
19
  optional :requests,
20
- -> {
21
- FinchAPI::Internal::Type::ArrayOf[FinchAPI::HRIS::IndividualRetrieveManyParams::Request]
22
- }
20
+ -> { FinchAPI::Internal::Type::ArrayOf[FinchAPI::HRIS::IndividualRetrieveManyParams::Request] }
23
21
 
24
22
  # @!method initialize(options: nil, requests: nil, request_options: {})
25
23
  # @param options [FinchAPI::Models::HRIS::IndividualRetrieveManyParams::Options, nil]
@@ -334,10 +334,7 @@ module FinchAPI
334
334
  # @!attribute metadata
335
335
  #
336
336
  # @return [FinchAPI::Models::HRIS::PayStatement::EmployerContribution::Attributes::Metadata]
337
- required :metadata,
338
- -> {
339
- FinchAPI::HRIS::PayStatement::EmployerContribution::Attributes::Metadata
340
- }
337
+ required :metadata, -> { FinchAPI::HRIS::PayStatement::EmployerContribution::Attributes::Metadata }
341
338
 
342
339
  # @!method initialize(metadata:)
343
340
  # @param metadata [FinchAPI::Models::HRIS::PayStatement::EmployerContribution::Attributes::Metadata]
@@ -13,9 +13,7 @@ module FinchAPI
13
13
  #
14
14
  # @return [Array<FinchAPI::Models::HRIS::PayStatementRetrieveManyParams::Request>]
15
15
  required :requests,
16
- -> {
17
- FinchAPI::Internal::Type::ArrayOf[FinchAPI::HRIS::PayStatementRetrieveManyParams::Request]
18
- }
16
+ -> { FinchAPI::Internal::Type::ArrayOf[FinchAPI::HRIS::PayStatementRetrieveManyParams::Request] }
19
17
 
20
18
  # @!method initialize(requests:, request_options: {})
21
19
  # @param requests [Array<FinchAPI::Models::HRIS::PayStatementRetrieveManyParams::Request>] The array of batch requests.
@@ -155,10 +155,7 @@ module FinchAPI
155
155
  # @!attribute pay_statement
156
156
  #
157
157
  # @return [FinchAPI::Models::Provider::AuthenticationMethod::SupportedFields::PayStatement, nil]
158
- optional :pay_statement,
159
- -> {
160
- FinchAPI::Provider::AuthenticationMethod::SupportedFields::PayStatement
161
- }
158
+ optional :pay_statement, -> { FinchAPI::Provider::AuthenticationMethod::SupportedFields::PayStatement }
162
159
 
163
160
  # @!attribute payment
164
161
  #
@@ -186,10 +183,7 @@ module FinchAPI
186
183
  # @!attribute accounts
187
184
  #
188
185
  # @return [FinchAPI::Models::Provider::AuthenticationMethod::SupportedFields::Company::Accounts, nil]
189
- optional :accounts,
190
- -> {
191
- FinchAPI::Provider::AuthenticationMethod::SupportedFields::Company::Accounts
192
- }
186
+ optional :accounts, -> { FinchAPI::Provider::AuthenticationMethod::SupportedFields::Company::Accounts }
193
187
 
194
188
  # @!attribute departments
195
189
  #
@@ -205,10 +199,7 @@ module FinchAPI
205
199
  # @!attribute entity
206
200
  #
207
201
  # @return [FinchAPI::Models::Provider::AuthenticationMethod::SupportedFields::Company::Entity, nil]
208
- optional :entity,
209
- -> {
210
- FinchAPI::Provider::AuthenticationMethod::SupportedFields::Company::Entity
211
- }
202
+ optional :entity, -> { FinchAPI::Provider::AuthenticationMethod::SupportedFields::Company::Entity }
212
203
 
213
204
  # @!attribute legal_name
214
205
  #
@@ -218,10 +209,7 @@ module FinchAPI
218
209
  # @!attribute locations
219
210
  #
220
211
  # @return [FinchAPI::Models::Provider::AuthenticationMethod::SupportedFields::Company::Locations, nil]
221
- optional :locations,
222
- -> {
223
- FinchAPI::Provider::AuthenticationMethod::SupportedFields::Company::Locations
224
- }
212
+ optional :locations, -> { FinchAPI::Provider::AuthenticationMethod::SupportedFields::Company::Locations }
225
213
 
226
214
  # @!attribute primary_email
227
215
  #
@@ -290,9 +278,7 @@ module FinchAPI
290
278
  #
291
279
  # @return [FinchAPI::Models::Provider::AuthenticationMethod::SupportedFields::Company::Departments::Parent, nil]
292
280
  optional :parent,
293
- -> {
294
- FinchAPI::Provider::AuthenticationMethod::SupportedFields::Company::Departments::Parent
295
- }
281
+ -> { FinchAPI::Provider::AuthenticationMethod::SupportedFields::Company::Departments::Parent }
296
282
 
297
283
  # @!method initialize(name: nil, parent: nil)
298
284
  # @param name [Boolean]
@@ -380,10 +366,7 @@ module FinchAPI
380
366
  # @!attribute paging
381
367
  #
382
368
  # @return [FinchAPI::Models::Provider::AuthenticationMethod::SupportedFields::Directory::Paging, nil]
383
- optional :paging,
384
- -> {
385
- FinchAPI::Provider::AuthenticationMethod::SupportedFields::Directory::Paging
386
- }
369
+ optional :paging, -> { FinchAPI::Provider::AuthenticationMethod::SupportedFields::Directory::Paging }
387
370
 
388
371
  # @!method initialize(individuals: nil, paging: nil)
389
372
  # @param individuals [FinchAPI::Models::Provider::AuthenticationMethod::SupportedFields::Directory::Individuals]
@@ -420,9 +403,7 @@ module FinchAPI
420
403
  #
421
404
  # @return [FinchAPI::Models::Provider::AuthenticationMethod::SupportedFields::Directory::Individuals::Manager, nil]
422
405
  optional :manager,
423
- -> {
424
- FinchAPI::Provider::AuthenticationMethod::SupportedFields::Directory::Individuals::Manager
425
- }
406
+ -> { FinchAPI::Provider::AuthenticationMethod::SupportedFields::Directory::Individuals::Manager }
426
407
 
427
408
  # @!attribute middle_name
428
409
  #
@@ -515,10 +496,7 @@ module FinchAPI
515
496
  # @!attribute income
516
497
  #
517
498
  # @return [FinchAPI::Models::Provider::AuthenticationMethod::SupportedFields::Employment::Income, nil]
518
- optional :income,
519
- -> {
520
- FinchAPI::Provider::AuthenticationMethod::SupportedFields::Employment::Income
521
- }
499
+ optional :income, -> { FinchAPI::Provider::AuthenticationMethod::SupportedFields::Employment::Income }
522
500
 
523
501
  # @!attribute income_history
524
502
  #
@@ -538,18 +516,12 @@ module FinchAPI
538
516
  # @!attribute location
539
517
  #
540
518
  # @return [FinchAPI::Models::Provider::AuthenticationMethod::SupportedFields::Employment::Location, nil]
541
- optional :location,
542
- -> {
543
- FinchAPI::Provider::AuthenticationMethod::SupportedFields::Employment::Location
544
- }
519
+ optional :location, -> { FinchAPI::Provider::AuthenticationMethod::SupportedFields::Employment::Location }
545
520
 
546
521
  # @!attribute manager
547
522
  #
548
523
  # @return [FinchAPI::Models::Provider::AuthenticationMethod::SupportedFields::Employment::Manager, nil]
549
- optional :manager,
550
- -> {
551
- FinchAPI::Provider::AuthenticationMethod::SupportedFields::Employment::Manager
552
- }
524
+ optional :manager, -> { FinchAPI::Provider::AuthenticationMethod::SupportedFields::Employment::Manager }
553
525
 
554
526
  # @!attribute middle_name
555
527
  #
@@ -704,10 +676,7 @@ module FinchAPI
704
676
  # @!attribute emails
705
677
  #
706
678
  # @return [FinchAPI::Models::Provider::AuthenticationMethod::SupportedFields::Individual::Emails, nil]
707
- optional :emails,
708
- -> {
709
- FinchAPI::Provider::AuthenticationMethod::SupportedFields::Individual::Emails
710
- }
679
+ optional :emails, -> { FinchAPI::Provider::AuthenticationMethod::SupportedFields::Individual::Emails }
711
680
 
712
681
  # @!attribute encrypted_ssn
713
682
  #
@@ -743,9 +712,7 @@ module FinchAPI
743
712
  #
744
713
  # @return [FinchAPI::Models::Provider::AuthenticationMethod::SupportedFields::Individual::PhoneNumbers, nil]
745
714
  optional :phone_numbers,
746
- -> {
747
- FinchAPI::Provider::AuthenticationMethod::SupportedFields::Individual::PhoneNumbers
748
- }
715
+ -> { FinchAPI::Provider::AuthenticationMethod::SupportedFields::Individual::PhoneNumbers }
749
716
 
750
717
  # @!attribute preferred_name
751
718
  #
@@ -888,18 +855,13 @@ module FinchAPI
888
855
  # @!attribute paging
889
856
  #
890
857
  # @return [FinchAPI::Models::Provider::AuthenticationMethod::SupportedFields::PayStatement::Paging, nil]
891
- optional :paging,
892
- -> {
893
- FinchAPI::Provider::AuthenticationMethod::SupportedFields::PayStatement::Paging
894
- }
858
+ optional :paging, -> { FinchAPI::Provider::AuthenticationMethod::SupportedFields::PayStatement::Paging }
895
859
 
896
860
  # @!attribute pay_statements
897
861
  #
898
862
  # @return [FinchAPI::Models::Provider::AuthenticationMethod::SupportedFields::PayStatement::PayStatements, nil]
899
863
  optional :pay_statements,
900
- -> {
901
- FinchAPI::Provider::AuthenticationMethod::SupportedFields::PayStatement::PayStatements
902
- }
864
+ -> { FinchAPI::Provider::AuthenticationMethod::SupportedFields::PayStatement::PayStatements }
903
865
 
904
866
  # @!method initialize(paging: nil, pay_statements: nil)
905
867
  # @param paging [FinchAPI::Models::Provider::AuthenticationMethod::SupportedFields::PayStatement::Paging]
@@ -928,25 +890,19 @@ module FinchAPI
928
890
  #
929
891
  # @return [FinchAPI::Models::Provider::AuthenticationMethod::SupportedFields::PayStatement::PayStatements::Earnings, nil]
930
892
  optional :earnings,
931
- -> {
932
- FinchAPI::Provider::AuthenticationMethod::SupportedFields::PayStatement::PayStatements::Earnings
933
- }
893
+ -> { FinchAPI::Provider::AuthenticationMethod::SupportedFields::PayStatement::PayStatements::Earnings }
934
894
 
935
895
  # @!attribute employee_deductions
936
896
  #
937
897
  # @return [FinchAPI::Models::Provider::AuthenticationMethod::SupportedFields::PayStatement::PayStatements::EmployeeDeductions, nil]
938
898
  optional :employee_deductions,
939
- -> {
940
- FinchAPI::Provider::AuthenticationMethod::SupportedFields::PayStatement::PayStatements::EmployeeDeductions
941
- }
899
+ -> { FinchAPI::Provider::AuthenticationMethod::SupportedFields::PayStatement::PayStatements::EmployeeDeductions }
942
900
 
943
901
  # @!attribute employer_contributions
944
902
  #
945
903
  # @return [FinchAPI::Models::Provider::AuthenticationMethod::SupportedFields::PayStatement::PayStatements::EmployerContributions, nil]
946
904
  optional :employer_contributions,
947
- -> {
948
- FinchAPI::Provider::AuthenticationMethod::SupportedFields::PayStatement::PayStatements::EmployerContributions
949
- }
905
+ -> { FinchAPI::Provider::AuthenticationMethod::SupportedFields::PayStatement::PayStatements::EmployerContributions }
950
906
 
951
907
  # @!attribute gross_pay
952
908
  #
@@ -972,9 +928,7 @@ module FinchAPI
972
928
  #
973
929
  # @return [FinchAPI::Models::Provider::AuthenticationMethod::SupportedFields::PayStatement::PayStatements::Taxes, nil]
974
930
  optional :taxes,
975
- -> {
976
- FinchAPI::Provider::AuthenticationMethod::SupportedFields::PayStatement::PayStatements::Taxes
977
- }
931
+ -> { FinchAPI::Provider::AuthenticationMethod::SupportedFields::PayStatement::PayStatements::Taxes }
978
932
 
979
933
  # @!attribute total_hours
980
934
  #
@@ -1182,10 +1136,7 @@ module FinchAPI
1182
1136
  # @!attribute pay_period
1183
1137
  #
1184
1138
  # @return [FinchAPI::Models::Provider::AuthenticationMethod::SupportedFields::Payment::PayPeriod, nil]
1185
- optional :pay_period,
1186
- -> {
1187
- FinchAPI::Provider::AuthenticationMethod::SupportedFields::Payment::PayPeriod
1188
- }
1139
+ optional :pay_period, -> { FinchAPI::Provider::AuthenticationMethod::SupportedFields::Payment::PayPeriod }
1189
1140
 
1190
1141
  # @!method initialize(id: nil, company_debit: nil, debit_date: nil, employee_taxes: nil, employer_taxes: nil, gross_pay: nil, individual_ids: nil, net_pay: nil, pay_date: nil, pay_frequencies: nil, pay_group_ids: nil, pay_period: nil)
1191
1142
  # @param id [Boolean]
@@ -17,10 +17,7 @@ module FinchAPI
17
17
  # @!attribute authentication_type
18
18
  #
19
19
  # @return [Symbol, FinchAPI::Models::Sandbox::ConnectionCreateParams::AuthenticationType, nil]
20
- optional :authentication_type,
21
- enum: -> {
22
- FinchAPI::Sandbox::ConnectionCreateParams::AuthenticationType
23
- }
20
+ optional :authentication_type, enum: -> { FinchAPI::Sandbox::ConnectionCreateParams::AuthenticationType }
24
21
 
25
22
  # @!attribute employee_size
26
23
  # Optional: the size of the employer to be created with this connection. Defaults
@@ -13,10 +13,7 @@ module FinchAPI
13
13
  # `/employment` endpoints. All fields are optional.
14
14
  #
15
15
  # @return [Array<FinchAPI::Models::Sandbox::DirectoryCreateParams::Body>, nil]
16
- optional :body,
17
- -> {
18
- FinchAPI::Internal::Type::ArrayOf[FinchAPI::Sandbox::DirectoryCreateParams::Body]
19
- }
16
+ optional :body, -> { FinchAPI::Internal::Type::ArrayOf[FinchAPI::Sandbox::DirectoryCreateParams::Body] }
20
17
 
21
18
  # @!method initialize(body: nil, request_options: {})
22
19
  # Some parameter documentations has been truncated, see
@@ -18,9 +18,7 @@ module FinchAPI
18
18
  #
19
19
  # @return [Array<FinchAPI::Models::Sandbox::PaymentCreateParams::PayStatement>, nil]
20
20
  optional :pay_statements,
21
- -> {
22
- FinchAPI::Internal::Type::ArrayOf[FinchAPI::Sandbox::PaymentCreateParams::PayStatement]
23
- }
21
+ -> { FinchAPI::Internal::Type::ArrayOf[FinchAPI::Sandbox::PaymentCreateParams::PayStatement] }
24
22
 
25
23
  # @!attribute start_date
26
24
  #
@@ -46,25 +44,19 @@ module FinchAPI
46
44
  #
47
45
  # @return [Array<FinchAPI::Models::Sandbox::PaymentCreateParams::PayStatement::Earning>, nil]
48
46
  optional :earnings,
49
- -> {
50
- FinchAPI::Internal::Type::ArrayOf[FinchAPI::Sandbox::PaymentCreateParams::PayStatement::Earning]
51
- }
47
+ -> { FinchAPI::Internal::Type::ArrayOf[FinchAPI::Sandbox::PaymentCreateParams::PayStatement::Earning] }
52
48
 
53
49
  # @!attribute employee_deductions
54
50
  #
55
51
  # @return [Array<FinchAPI::Models::Sandbox::PaymentCreateParams::PayStatement::EmployeeDeduction>, nil]
56
52
  optional :employee_deductions,
57
- -> {
58
- FinchAPI::Internal::Type::ArrayOf[FinchAPI::Sandbox::PaymentCreateParams::PayStatement::EmployeeDeduction]
59
- }
53
+ -> { FinchAPI::Internal::Type::ArrayOf[FinchAPI::Sandbox::PaymentCreateParams::PayStatement::EmployeeDeduction] }
60
54
 
61
55
  # @!attribute employer_contributions
62
56
  #
63
57
  # @return [Array<FinchAPI::Models::Sandbox::PaymentCreateParams::PayStatement::EmployerContribution>, nil]
64
58
  optional :employer_contributions,
65
- -> {
66
- FinchAPI::Internal::Type::ArrayOf[FinchAPI::Sandbox::PaymentCreateParams::PayStatement::EmployerContribution]
67
- }
59
+ -> { FinchAPI::Internal::Type::ArrayOf[FinchAPI::Sandbox::PaymentCreateParams::PayStatement::EmployerContribution] }
68
60
 
69
61
  # @!attribute gross_pay
70
62
  #
@@ -87,9 +79,7 @@ module FinchAPI
87
79
  #
88
80
  # @return [Array<FinchAPI::Models::Sandbox::PaymentCreateParams::PayStatement::Tax>, nil]
89
81
  optional :taxes,
90
- -> {
91
- FinchAPI::Internal::Type::ArrayOf[FinchAPI::Sandbox::PaymentCreateParams::PayStatement::Tax]
92
- }
82
+ -> { FinchAPI::Internal::Type::ArrayOf[FinchAPI::Sandbox::PaymentCreateParams::PayStatement::Tax] }
93
83
 
94
84
  # @!attribute total_hours
95
85
  #
@@ -182,10 +172,7 @@ module FinchAPI
182
172
  # @!attribute type
183
173
  #
184
174
  # @return [Symbol, FinchAPI::Models::Sandbox::PaymentCreateParams::PayStatement::EmployeeDeduction::Type, nil]
185
- optional :type,
186
- enum: -> {
187
- FinchAPI::Sandbox::PaymentCreateParams::PayStatement::EmployeeDeduction::Type
188
- }
175
+ optional :type, enum: -> { FinchAPI::Sandbox::PaymentCreateParams::PayStatement::EmployeeDeduction::Type }
189
176
 
190
177
  # @!method initialize(amount: nil, name: nil, pre_tax: nil, type: nil)
191
178
  # @param amount [Integer]
@@ -237,9 +224,7 @@ module FinchAPI
237
224
  #
238
225
  # @return [Symbol, FinchAPI::Models::Sandbox::PaymentCreateParams::PayStatement::EmployerContribution::Type, nil]
239
226
  optional :type,
240
- enum: -> {
241
- FinchAPI::Sandbox::PaymentCreateParams::PayStatement::EmployerContribution::Type
242
- }
227
+ enum: -> { FinchAPI::Sandbox::PaymentCreateParams::PayStatement::EmployerContribution::Type }
243
228
 
244
229
  # @!method initialize(amount: nil, name: nil, type: nil)
245
230
  # @param amount [Integer]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FinchAPI
4
- VERSION = "0.1.0.pre.alpha.26"
4
+ VERSION = "0.1.0.pre.alpha.27"
5
5
  end
@@ -59,10 +59,10 @@ module FinchAPI
59
59
  end
60
60
 
61
61
  class APIConnectionError < FinchAPI::Errors::APIError
62
- sig { void }
62
+ sig { returns(NilClass) }
63
63
  attr_accessor :status
64
64
 
65
- sig { void }
65
+ sig { returns(NilClass) }
66
66
  attr_accessor :body
67
67
 
68
68
  # @api private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: finch-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.alpha.26
4
+ version: 0.1.0.pre.alpha.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Finch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-14 00:00:00.000000000 Z
11
+ date: 2025-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool