From e0c88d22c1cde4642f98c79a556d0fbab96117b8 Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Mon, 29 Jan 2024 17:06:32 +0000 Subject: [PATCH] fix(api): update `employer_size` parameter to `employee_size` --- .../resources/sandbox/connections/connections.py | 12 ++++++------ src/finch/types/sandbox/connection_create_params.py | 2 +- tests/api_resources/sandbox/test_connections.py | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/finch/resources/sandbox/connections/connections.py b/src/finch/resources/sandbox/connections/connections.py index a8808d76..eaecbcbe 100644 --- a/src/finch/resources/sandbox/connections/connections.py +++ b/src/finch/resources/sandbox/connections/connections.py @@ -47,7 +47,7 @@ def create( *, provider_id: str, authentication_type: Literal["credential", "api_token", "oauth", "assisted"] | NotGiven = NOT_GIVEN, - employer_size: int | NotGiven = NOT_GIVEN, + employee_size: int | NotGiven = NOT_GIVEN, products: List[str] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -60,7 +60,7 @@ def create( Create a new connection (new company/provider pair) with a new account Args: - employer_size: Optional: the size of the employer to be created with this connection. Defaults + employee_size: Optional: the size of the employer to be created with this connection. Defaults to 20 extra_headers: Send extra headers @@ -77,7 +77,7 @@ def create( { "provider_id": provider_id, "authentication_type": authentication_type, - "employer_size": employer_size, + "employee_size": employee_size, "products": products, }, connection_create_params.ConnectionCreateParams, @@ -107,7 +107,7 @@ async def create( *, provider_id: str, authentication_type: Literal["credential", "api_token", "oauth", "assisted"] | NotGiven = NOT_GIVEN, - employer_size: int | NotGiven = NOT_GIVEN, + employee_size: int | NotGiven = NOT_GIVEN, products: List[str] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # 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( Create a new connection (new company/provider pair) with a new account Args: - employer_size: Optional: the size of the employer to be created with this connection. Defaults + employee_size: Optional: the size of the employer to be created with this connection. Defaults to 20 extra_headers: Send extra headers @@ -137,7 +137,7 @@ async def create( { "provider_id": provider_id, "authentication_type": authentication_type, - "employer_size": employer_size, + "employee_size": employee_size, "products": products, }, connection_create_params.ConnectionCreateParams, diff --git a/src/finch/types/sandbox/connection_create_params.py b/src/finch/types/sandbox/connection_create_params.py index ce453887..d6c29927 100644 --- a/src/finch/types/sandbox/connection_create_params.py +++ b/src/finch/types/sandbox/connection_create_params.py @@ -13,7 +13,7 @@ class ConnectionCreateParams(TypedDict, total=False): authentication_type: Literal["credential", "api_token", "oauth", "assisted"] - employer_size: int + employee_size: int """Optional: the size of the employer to be created with this connection. Defaults to 20 diff --git a/tests/api_resources/sandbox/test_connections.py b/tests/api_resources/sandbox/test_connections.py index 701bc439..c3d19e06 100644 --- a/tests/api_resources/sandbox/test_connections.py +++ b/tests/api_resources/sandbox/test_connections.py @@ -31,7 +31,7 @@ def test_method_create_with_all_params(self, client: Finch) -> None: connection = client.sandbox.connections.create( provider_id="string", authentication_type="credential", - employer_size=0, + employee_size=0, products=["string", "string", "string"], ) assert_matches_type(ConnectionCreateResponse, connection, path=["response"]) @@ -80,7 +80,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncFinch) -> connection = await async_client.sandbox.connections.create( provider_id="string", authentication_type="credential", - employer_size=0, + employee_size=0, products=["string", "string", "string"], ) assert_matches_type(ConnectionCreateResponse, connection, path=["response"])