Skip to content

Commit 0cb263a

Browse files
feat(api): api update
1 parent 15d107c commit 0cb263a

File tree

7 files changed

+98
-90
lines changed

7 files changed

+98
-90
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-670346966a2922b17f8aeaa07166171719883a30abbc97ba62da2312c9979076.yml
3-
openapi_spec_hash: 9dae98ca7e7e2e3b848f70973767cde2
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-09c5188f5c6dd563b943cad60f5896331ef5fc06e4a699700578f0bc60bd62a1.yml
3+
openapi_spec_hash: 9283951c1a0b3fd41a5e38b647649da6
44
config_hash: 53778a0b839c4f6ad34fbba051f5e8a6

lib/finch_api/models/hris/pay_statement.rb

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -161,15 +161,16 @@ class Metadata < FinchAPI::Internal::Type::BaseModel
161161
# pairs where the values can be of any type (string, number, boolean, object,
162162
# array, etc.).
163163
#
164-
# @return [Hash{Symbol=>Object}, nil]
165-
optional :metadata, FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown]
164+
# @return [Hash{Symbol=>Object, nil}, nil]
165+
optional :metadata,
166+
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true]
166167

167168
# @!method initialize(metadata: nil)
168169
# Some parameter documentations has been truncated, see
169170
# {FinchAPI::Models::HRIS::PayStatement::Earning::Attributes::Metadata} for more
170171
# details.
171172
#
172-
# @param metadata [Hash{Symbol=>Object}] The metadata to be attached to the entity by existing rules. It is a key-value p
173+
# @param metadata [Hash{Symbol=>Object, nil}] The metadata to be attached to the entity by existing rules. It is a key-value p
173174
# ...
174175
end
175176
end
@@ -267,15 +268,16 @@ class Metadata < FinchAPI::Internal::Type::BaseModel
267268
# pairs where the values can be of any type (string, number, boolean, object,
268269
# array, etc.).
269270
#
270-
# @return [Hash{Symbol=>Object}, nil]
271-
optional :metadata, FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown]
271+
# @return [Hash{Symbol=>Object, nil}, nil]
272+
optional :metadata,
273+
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true]
272274

273275
# @!method initialize(metadata: nil)
274276
# Some parameter documentations has been truncated, see
275277
# {FinchAPI::Models::HRIS::PayStatement::EmployeeDeduction::Attributes::Metadata}
276278
# for more details.
277279
#
278-
# @param metadata [Hash{Symbol=>Object}] The metadata to be attached to the entity by existing rules. It is a key-value p
280+
# @param metadata [Hash{Symbol=>Object, nil}] The metadata to be attached to the entity by existing rules. It is a key-value p
279281
# ...
280282
end
281283
end
@@ -342,15 +344,16 @@ class Metadata < FinchAPI::Internal::Type::BaseModel
342344
# pairs where the values can be of any type (string, number, boolean, object,
343345
# array, etc.).
344346
#
345-
# @return [Hash{Symbol=>Object}, nil]
346-
optional :metadata, FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown]
347+
# @return [Hash{Symbol=>Object, nil}, nil]
348+
optional :metadata,
349+
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true]
347350

348351
# @!method initialize(metadata: nil)
349352
# Some parameter documentations has been truncated, see
350353
# {FinchAPI::Models::HRIS::PayStatement::EmployerContribution::Attributes::Metadata}
351354
# for more details.
352355
#
353-
# @param metadata [Hash{Symbol=>Object}] The metadata to be attached to the entity by existing rules. It is a key-value p
356+
# @param metadata [Hash{Symbol=>Object, nil}] The metadata to be attached to the entity by existing rules. It is a key-value p
354357
# ...
355358
end
356359
end
@@ -435,15 +438,16 @@ class Metadata < FinchAPI::Internal::Type::BaseModel
435438
# pairs where the values can be of any type (string, number, boolean, object,
436439
# array, etc.).
437440
#
438-
# @return [Hash{Symbol=>Object}, nil]
439-
optional :metadata, FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown]
441+
# @return [Hash{Symbol=>Object, nil}, nil]
442+
optional :metadata,
443+
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true]
440444

441445
# @!method initialize(metadata: nil)
442446
# Some parameter documentations has been truncated, see
443447
# {FinchAPI::Models::HRIS::PayStatement::Tax::Attributes::Metadata} for more
444448
# details.
445449
#
446-
# @param metadata [Hash{Symbol=>Object}] The metadata to be attached to the entity by existing rules. It is a key-value p
450+
# @param metadata [Hash{Symbol=>Object, nil}] The metadata to be attached to the entity by existing rules. It is a key-value p
447451
# ...
448452
end
449453
end

lib/finch_api/models/sandbox/payment_create_params.rb

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -198,15 +198,16 @@ class Metadata < FinchAPI::Internal::Type::BaseModel
198198
# pairs where the values can be of any type (string, number, boolean, object,
199199
# array, etc.).
200200
#
201-
# @return [Hash{Symbol=>Object}, nil]
202-
optional :metadata, FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown]
201+
# @return [Hash{Symbol=>Object, nil}, nil]
202+
optional :metadata,
203+
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true]
203204

204205
# @!method initialize(metadata: nil)
205206
# Some parameter documentations has been truncated, see
206207
# {FinchAPI::Models::Sandbox::PaymentCreateParams::PayStatement::Earning::Attributes::Metadata}
207208
# for more details.
208209
#
209-
# @param metadata [Hash{Symbol=>Object}] The metadata to be attached to the entity by existing rules. It is a key-value p
210+
# @param metadata [Hash{Symbol=>Object, nil}] The metadata to be attached to the entity by existing rules. It is a key-value p
210211
# ...
211212
end
212213
end
@@ -305,15 +306,16 @@ class Metadata < FinchAPI::Internal::Type::BaseModel
305306
# pairs where the values can be of any type (string, number, boolean, object,
306307
# array, etc.).
307308
#
308-
# @return [Hash{Symbol=>Object}, nil]
309-
optional :metadata, FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown]
309+
# @return [Hash{Symbol=>Object, nil}, nil]
310+
optional :metadata,
311+
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true]
310312

311313
# @!method initialize(metadata: nil)
312314
# Some parameter documentations has been truncated, see
313315
# {FinchAPI::Models::Sandbox::PaymentCreateParams::PayStatement::EmployeeDeduction::Attributes::Metadata}
314316
# for more details.
315317
#
316-
# @param metadata [Hash{Symbol=>Object}] The metadata to be attached to the entity by existing rules. It is a key-value p
318+
# @param metadata [Hash{Symbol=>Object, nil}] The metadata to be attached to the entity by existing rules. It is a key-value p
317319
# ...
318320
end
319321
end
@@ -380,15 +382,16 @@ class Metadata < FinchAPI::Internal::Type::BaseModel
380382
# pairs where the values can be of any type (string, number, boolean, object,
381383
# array, etc.).
382384
#
383-
# @return [Hash{Symbol=>Object}, nil]
384-
optional :metadata, FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown]
385+
# @return [Hash{Symbol=>Object, nil}, nil]
386+
optional :metadata,
387+
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true]
385388

386389
# @!method initialize(metadata: nil)
387390
# Some parameter documentations has been truncated, see
388391
# {FinchAPI::Models::Sandbox::PaymentCreateParams::PayStatement::EmployerContribution::Attributes::Metadata}
389392
# for more details.
390393
#
391-
# @param metadata [Hash{Symbol=>Object}] The metadata to be attached to the entity by existing rules. It is a key-value p
394+
# @param metadata [Hash{Symbol=>Object, nil}] The metadata to be attached to the entity by existing rules. It is a key-value p
392395
# ...
393396
end
394397
end
@@ -478,15 +481,16 @@ class Metadata < FinchAPI::Internal::Type::BaseModel
478481
# pairs where the values can be of any type (string, number, boolean, object,
479482
# array, etc.).
480483
#
481-
# @return [Hash{Symbol=>Object}, nil]
482-
optional :metadata, FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown]
484+
# @return [Hash{Symbol=>Object, nil}, nil]
485+
optional :metadata,
486+
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true]
483487

484488
# @!method initialize(metadata: nil)
485489
# Some parameter documentations has been truncated, see
486490
# {FinchAPI::Models::Sandbox::PaymentCreateParams::PayStatement::Tax::Attributes::Metadata}
487491
# for more details.
488492
#
489-
# @param metadata [Hash{Symbol=>Object}] The metadata to be attached to the entity by existing rules. It is a key-value p
493+
# @param metadata [Hash{Symbol=>Object, nil}] The metadata to be attached to the entity by existing rules. It is a key-value p
490494
# ...
491495
end
492496
end

rbi/finch_api/models/hris/pay_statement.rbi

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -211,20 +211,20 @@ module FinchAPI
211211
# The metadata to be attached to the entity by existing rules. It is a key-value
212212
# pairs where the values can be of any type (string, number, boolean, object,
213213
# array, etc.).
214-
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
214+
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(T.anything)])) }
215215
attr_reader :metadata
216216

217-
sig { params(metadata: T::Hash[Symbol, T.anything]).void }
217+
sig { params(metadata: T::Hash[Symbol, T.nilable(T.anything)]).void }
218218
attr_writer :metadata
219219

220-
sig { params(metadata: T::Hash[Symbol, T.anything]).returns(T.attached_class) }
220+
sig { params(metadata: T::Hash[Symbol, T.nilable(T.anything)]).returns(T.attached_class) }
221221
def self.new(
222222
# The metadata to be attached to the entity by existing rules. It is a key-value
223223
# pairs where the values can be of any type (string, number, boolean, object,
224224
# array, etc.).
225225
metadata: nil
226226
); end
227-
sig { override.returns({metadata: T::Hash[Symbol, T.anything]}) }
227+
sig { override.returns({metadata: T::Hash[Symbol, T.nilable(T.anything)]}) }
228228
def to_hash; end
229229
end
230230
end
@@ -366,20 +366,20 @@ module FinchAPI
366366
# The metadata to be attached to the entity by existing rules. It is a key-value
367367
# pairs where the values can be of any type (string, number, boolean, object,
368368
# array, etc.).
369-
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
369+
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(T.anything)])) }
370370
attr_reader :metadata
371371

372-
sig { params(metadata: T::Hash[Symbol, T.anything]).void }
372+
sig { params(metadata: T::Hash[Symbol, T.nilable(T.anything)]).void }
373373
attr_writer :metadata
374374

375-
sig { params(metadata: T::Hash[Symbol, T.anything]).returns(T.attached_class) }
375+
sig { params(metadata: T::Hash[Symbol, T.nilable(T.anything)]).returns(T.attached_class) }
376376
def self.new(
377377
# The metadata to be attached to the entity by existing rules. It is a key-value
378378
# pairs where the values can be of any type (string, number, boolean, object,
379379
# array, etc.).
380380
metadata: nil
381381
); end
382-
sig { override.returns({metadata: T::Hash[Symbol, T.anything]}) }
382+
sig { override.returns({metadata: T::Hash[Symbol, T.nilable(T.anything)]}) }
383383
def to_hash; end
384384
end
385385
end
@@ -488,20 +488,20 @@ module FinchAPI
488488
# The metadata to be attached to the entity by existing rules. It is a key-value
489489
# pairs where the values can be of any type (string, number, boolean, object,
490490
# array, etc.).
491-
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
491+
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(T.anything)])) }
492492
attr_reader :metadata
493493

494-
sig { params(metadata: T::Hash[Symbol, T.anything]).void }
494+
sig { params(metadata: T::Hash[Symbol, T.nilable(T.anything)]).void }
495495
attr_writer :metadata
496496

497-
sig { params(metadata: T::Hash[Symbol, T.anything]).returns(T.attached_class) }
497+
sig { params(metadata: T::Hash[Symbol, T.nilable(T.anything)]).returns(T.attached_class) }
498498
def self.new(
499499
# The metadata to be attached to the entity by existing rules. It is a key-value
500500
# pairs where the values can be of any type (string, number, boolean, object,
501501
# array, etc.).
502502
metadata: nil
503503
); end
504-
sig { override.returns({metadata: T::Hash[Symbol, T.anything]}) }
504+
sig { override.returns({metadata: T::Hash[Symbol, T.nilable(T.anything)]}) }
505505
def to_hash; end
506506
end
507507
end
@@ -620,20 +620,20 @@ module FinchAPI
620620
# The metadata to be attached to the entity by existing rules. It is a key-value
621621
# pairs where the values can be of any type (string, number, boolean, object,
622622
# array, etc.).
623-
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
623+
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(T.anything)])) }
624624
attr_reader :metadata
625625

626-
sig { params(metadata: T::Hash[Symbol, T.anything]).void }
626+
sig { params(metadata: T::Hash[Symbol, T.nilable(T.anything)]).void }
627627
attr_writer :metadata
628628

629-
sig { params(metadata: T::Hash[Symbol, T.anything]).returns(T.attached_class) }
629+
sig { params(metadata: T::Hash[Symbol, T.nilable(T.anything)]).returns(T.attached_class) }
630630
def self.new(
631631
# The metadata to be attached to the entity by existing rules. It is a key-value
632632
# pairs where the values can be of any type (string, number, boolean, object,
633633
# array, etc.).
634634
metadata: nil
635635
); end
636-
sig { override.returns({metadata: T::Hash[Symbol, T.anything]}) }
636+
sig { override.returns({metadata: T::Hash[Symbol, T.nilable(T.anything)]}) }
637637
def to_hash; end
638638
end
639639
end

0 commit comments

Comments
 (0)