Skip to content

Commit 50e9f3b

Browse files
stainless-botstainless-app[bot]
authored andcommitted
fix(api): update employer_size parameter to employee_size (#278)
1 parent 9675be7 commit 50e9f3b

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/finch/resources/sandbox/connections/connections.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def create(
4747
*,
4848
provider_id: str,
4949
authentication_type: Literal["credential", "api_token", "oauth", "assisted"] | NotGiven = NOT_GIVEN,
50-
employer_size: int | NotGiven = NOT_GIVEN,
50+
employee_size: int | NotGiven = NOT_GIVEN,
5151
products: List[str] | NotGiven = NOT_GIVEN,
5252
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5353
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -60,7 +60,7 @@ def create(
6060
Create a new connection (new company/provider pair) with a new account
6161
6262
Args:
63-
employer_size: Optional: the size of the employer to be created with this connection. Defaults
63+
employee_size: Optional: the size of the employer to be created with this connection. Defaults
6464
to 20
6565
6666
extra_headers: Send extra headers
@@ -77,7 +77,7 @@ def create(
7777
{
7878
"provider_id": provider_id,
7979
"authentication_type": authentication_type,
80-
"employer_size": employer_size,
80+
"employee_size": employee_size,
8181
"products": products,
8282
},
8383
connection_create_params.ConnectionCreateParams,
@@ -107,7 +107,7 @@ async def create(
107107
*,
108108
provider_id: str,
109109
authentication_type: Literal["credential", "api_token", "oauth", "assisted"] | NotGiven = NOT_GIVEN,
110-
employer_size: int | NotGiven = NOT_GIVEN,
110+
employee_size: int | NotGiven = NOT_GIVEN,
111111
products: List[str] | NotGiven = NOT_GIVEN,
112112
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
113113
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -120,7 +120,7 @@ async def create(
120120
Create a new connection (new company/provider pair) with a new account
121121
122122
Args:
123-
employer_size: Optional: the size of the employer to be created with this connection. Defaults
123+
employee_size: Optional: the size of the employer to be created with this connection. Defaults
124124
to 20
125125
126126
extra_headers: Send extra headers
@@ -137,7 +137,7 @@ async def create(
137137
{
138138
"provider_id": provider_id,
139139
"authentication_type": authentication_type,
140-
"employer_size": employer_size,
140+
"employee_size": employee_size,
141141
"products": products,
142142
},
143143
connection_create_params.ConnectionCreateParams,

src/finch/types/sandbox/connection_create_params.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class ConnectionCreateParams(TypedDict, total=False):
1313

1414
authentication_type: Literal["credential", "api_token", "oauth", "assisted"]
1515

16-
employer_size: int
16+
employee_size: int
1717
"""Optional: the size of the employer to be created with this connection.
1818
1919
Defaults to 20

tests/api_resources/sandbox/test_connections.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def test_method_create_with_all_params(self, client: Finch) -> None:
3131
connection = client.sandbox.connections.create(
3232
provider_id="string",
3333
authentication_type="credential",
34-
employer_size=0,
34+
employee_size=0,
3535
products=["string", "string", "string"],
3636
)
3737
assert_matches_type(ConnectionCreateResponse, connection, path=["response"])
@@ -80,7 +80,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncFinch) ->
8080
connection = await async_client.sandbox.connections.create(
8181
provider_id="string",
8282
authentication_type="credential",
83-
employer_size=0,
83+
employee_size=0,
8484
products=["string", "string", "string"],
8585
)
8686
assert_matches_type(ConnectionCreateResponse, connection, path=["response"])

0 commit comments

Comments
 (0)