Skip to content

Commit edeff3b

Browse files
feat(api): api update
1 parent 72439e6 commit edeff3b

File tree

4 files changed

+9
-38
lines changed

4 files changed

+9
-38
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-b817e7a30a6366c063a8c9a334d5be281eb8d93e21acc8c8219d3bdc95043deb.yml
3-
openapi_spec_hash: d4cc4a5cba9f13986e38d148d330aa00
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-6190639c909b62f2e182a32dc56a80a87ca470e8970efd6ce8d3d7bd659d237c.yml
3+
openapi_spec_hash: c4078fa61a4ab0b480a2c7b40e495104
44
config_hash: f2846563903bf75ab0858872154df0f7

lib/finch_api/models/introspection.rb

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -346,20 +346,12 @@ class Entity < FinchAPI::Internal::Type::BaseModel
346346
# @return [String, nil]
347347
required :source_id, String, nil?: true
348348

349-
# @!attribute type
350-
# The type of entity
351-
#
352-
# @return [String, nil]
353-
required :type, String, nil?: true
354-
355-
# @!method initialize(id:, name:, source_id:, type:)
349+
# @!method initialize(id:, name:, source_id:)
356350
# @param id [String] The connection account ID for this entity
357351
#
358352
# @param name [String, nil] The name of the entity (payroll provider company name)
359353
#
360354
# @param source_id [String, nil] The source ID of the entity
361-
#
362-
# @param type [String, nil] The type of entity
363355
end
364356
end
365357
end

rbi/finch_api/models/introspection.rbi

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -578,16 +578,11 @@ module FinchAPI
578578
sig { returns(T.nilable(String)) }
579579
attr_accessor :source_id
580580

581-
# The type of entity
582-
sig { returns(T.nilable(String)) }
583-
attr_accessor :type
584-
585581
sig do
586582
params(
587583
id: String,
588584
name: T.nilable(String),
589-
source_id: T.nilable(String),
590-
type: T.nilable(String)
585+
source_id: T.nilable(String)
591586
).returns(T.attached_class)
592587
end
593588
def self.new(
@@ -596,9 +591,7 @@ module FinchAPI
596591
# The name of the entity (payroll provider company name)
597592
name:,
598593
# The source ID of the entity
599-
source_id:,
600-
# The type of entity
601-
type:
594+
source_id:
602595
)
603596
end
604597

@@ -607,8 +600,7 @@ module FinchAPI
607600
{
608601
id: String,
609602
name: T.nilable(String),
610-
source_id: T.nilable(String),
611-
type: T.nilable(String)
603+
source_id: T.nilable(String)
612604
}
613605
)
614606
end

sig/finch_api/models/introspection.rbs

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,7 @@ module FinchAPI
262262
end
263263
end
264264

265-
type entity =
266-
{ id: String, name: String?, source_id: String?, type: String? }
265+
type entity = { id: String, name: String?, source_id: String? }
267266

268267
class Entity < FinchAPI::Internal::Type::BaseModel
269268
attr_accessor id: String
@@ -272,21 +271,9 @@ module FinchAPI
272271

273272
attr_accessor source_id: String?
274273

275-
attr_accessor type: String?
274+
def initialize: (id: String, name: String?, source_id: String?) -> void
276275

277-
def initialize: (
278-
id: String,
279-
name: String?,
280-
source_id: String?,
281-
type: String?
282-
) -> void
283-
284-
def to_hash: -> {
285-
id: String,
286-
name: String?,
287-
source_id: String?,
288-
type: String?
289-
}
276+
def to_hash: -> { id: String, name: String?, source_id: String? }
290277
end
291278
end
292279
end

0 commit comments

Comments
 (0)