Skip to content

Commit 826feaa

Browse files
fix(api): remove invalid transform config
1 parent 86ece75 commit 826feaa

File tree

5 files changed

+36
-11
lines changed

5 files changed

+36
-11
lines changed

.stats.yml

Lines changed: 3 additions & 3 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-46f433f34d440aa1dfcc48cc8d822c598571b68be2f723ec99e1b4fba6c13b1e.yml
3-
openapi_spec_hash: 5b5cd728776723ac773900f7e8a32c05
4-
config_hash: ccdf6a5b4aaa2a0897c89ac8685d8eb0
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-c012d034aaa88334d6748526b99a0c0e47b0257c515b35c656749ed8f3720b8a.yml
3+
openapi_spec_hash: a3d3c013ebe997d22e08eea4d487ff03
4+
config_hash: d21a244fc073152c8dbecb8ece970209

lib/finch_api/models/create_access_token_response.rb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,14 @@ class CreateAccessTokenResponse < FinchAPI::Internal::Type::BaseModel
8080
# @return [String, nil]
8181
optional :customer_id, String, nil?: true
8282

83-
# @!method initialize(access_token:, client_type:, connection_id:, connection_type:, entity_ids:, products:, provider_id:, token_type:, account_id: nil, company_id: nil, customer_id: nil)
83+
# @!attribute customer_name
84+
# The name of your customer you provided to Finch when a connect session was
85+
# created for this connection
86+
#
87+
# @return [String, nil]
88+
optional :customer_name, String, nil?: true
89+
90+
# @!method initialize(access_token:, client_type:, connection_id:, connection_type:, entity_ids:, products:, provider_id:, token_type:, account_id: nil, company_id: nil, customer_id: nil, customer_name: nil)
8491
# Some parameter documentations has been truncated, see
8592
# {FinchAPI::Models::CreateAccessTokenResponse} for more details.
8693
#
@@ -105,6 +112,8 @@ class CreateAccessTokenResponse < FinchAPI::Internal::Type::BaseModel
105112
# @param company_id [String] [DEPRECATED] Use `connection_id` to identify the connection instead of this comp
106113
#
107114
# @param customer_id [String, nil] The ID of your customer you provided to Finch when a connect session was created
115+
#
116+
# @param customer_name [String, nil] The name of your customer you provided to Finch when a connect session was creat
108117

109118
# The type of application associated with a token.
110119
#

rbi/finch_api/models/create_access_token_response.rbi

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ module FinchAPI
7373
sig { returns(T.nilable(String)) }
7474
attr_accessor :customer_id
7575

76+
# The name of your customer you provided to Finch when a connect session was
77+
# created for this connection
78+
sig { returns(T.nilable(String)) }
79+
attr_accessor :customer_name
80+
7681
sig do
7782
params(
7883
access_token: String,
@@ -87,7 +92,8 @@ module FinchAPI
8792
token_type: String,
8893
account_id: String,
8994
company_id: String,
90-
customer_id: T.nilable(String)
95+
customer_id: T.nilable(String),
96+
customer_name: T.nilable(String)
9197
).returns(T.attached_class)
9298
end
9399
def self.new(
@@ -118,7 +124,10 @@ module FinchAPI
118124
company_id: nil,
119125
# The ID of your customer you provided to Finch when a connect session was created
120126
# for this connection
121-
customer_id: nil
127+
customer_id: nil,
128+
# The name of your customer you provided to Finch when a connect session was
129+
# created for this connection
130+
customer_name: nil
122131
)
123132
end
124133

@@ -137,7 +146,8 @@ module FinchAPI
137146
token_type: String,
138147
account_id: String,
139148
company_id: String,
140-
customer_id: T.nilable(String)
149+
customer_id: T.nilable(String),
150+
customer_name: T.nilable(String)
141151
}
142152
)
143153
end

sig/finch_api/models/create_access_token_response.rbs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ module FinchAPI
1212
token_type: String,
1313
account_id: String,
1414
company_id: String,
15-
customer_id: String?
15+
customer_id: String?,
16+
customer_name: String?
1617
}
1718

1819
class CreateAccessTokenResponse < FinchAPI::Internal::Type::BaseModel
@@ -42,6 +43,8 @@ module FinchAPI
4243

4344
attr_accessor customer_id: String?
4445

46+
attr_accessor customer_name: String?
47+
4548
def initialize: (
4649
access_token: String,
4750
client_type: FinchAPI::Models::CreateAccessTokenResponse::client_type,
@@ -53,7 +56,8 @@ module FinchAPI
5356
token_type: String,
5457
?account_id: String,
5558
?company_id: String,
56-
?customer_id: String?
59+
?customer_id: String?,
60+
?customer_name: String?
5761
) -> void
5862

5963
def to_hash: -> {
@@ -67,7 +71,8 @@ module FinchAPI
6771
token_type: String,
6872
account_id: String,
6973
company_id: String,
70-
customer_id: String?
74+
customer_id: String?,
75+
customer_name: String?
7176
}
7277

7378
type client_type = :development | :production | :sandbox

test/finch_api/resources/access_tokens_test.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ def test_create_required_params
2424
token_type: String,
2525
account_id: String | nil,
2626
company_id: String | nil,
27-
customer_id: String | nil
27+
customer_id: String | nil,
28+
customer_name: String | nil
2829
}
2930
end
3031
end

0 commit comments

Comments
 (0)