diff --git a/tests/api_resources/sandbox/connections/test_accounts.py b/tests/api_resources/sandbox/connections/test_accounts.py index 0655efff..1921e899 100644 --- a/tests/api_resources/sandbox/connections/test_accounts.py +++ b/tests/api_resources/sandbox/connections/test_accounts.py @@ -76,7 +76,7 @@ def test_method_update(self, client: Finch) -> None: @parametrize def test_method_update_with_all_params(self, client: Finch) -> None: account = client.sandbox.connections.accounts.update( - connection_status="reauth", + connection_status="pending", ) assert_matches_type(AccountUpdateResponse, account, path=["response"]) @@ -160,7 +160,7 @@ async def test_method_update(self, async_client: AsyncFinch) -> None: @parametrize async def test_method_update_with_all_params(self, async_client: AsyncFinch) -> None: account = await async_client.sandbox.connections.accounts.update( - connection_status="reauth", + connection_status="pending", ) assert_matches_type(AccountUpdateResponse, account, path=["response"]) diff --git a/tests/api_resources/sandbox/test_company.py b/tests/api_resources/sandbox/test_company.py index 4935c0cb..bd23d69e 100644 --- a/tests/api_resources/sandbox/test_company.py +++ b/tests/api_resources/sandbox/test_company.py @@ -36,25 +36,25 @@ def test_method_update_with_all_params(self, client: Finch) -> None: company = client.sandbox.company.update( accounts=[ { - "routing_number": "routing_number", "account_name": "account_name", - "institution_name": "institution_name", - "account_type": "checking", "account_number": "account_number", + "account_type": "checking", + "institution_name": "institution_name", + "routing_number": "routing_number", }, { - "routing_number": "routing_number", "account_name": "account_name", - "institution_name": "institution_name", - "account_type": "checking", "account_number": "account_number", + "account_type": "checking", + "institution_name": "institution_name", + "routing_number": "routing_number", }, { - "routing_number": "routing_number", "account_name": "account_name", - "institution_name": "institution_name", - "account_type": "checking", "account_number": "account_number", + "account_type": "checking", + "institution_name": "institution_name", + "routing_number": "routing_number", }, ], departments=[ @@ -73,40 +73,40 @@ def test_method_update_with_all_params(self, client: Finch) -> None: ], ein="ein", entity={ - "type": "llc", "subtype": "s_corporation", + "type": "llc", }, legal_name="legal_name", locations=[ { - "line1": "line1", - "line2": "line2", "city": "city", - "state": "state", - "postal_code": "postal_code", "country": "country", + "line1": "line1", + "line2": "line2", "name": "name", + "postal_code": "postal_code", "source_id": "source_id", + "state": "state", }, { - "line1": "line1", - "line2": "line2", "city": "city", - "state": "state", - "postal_code": "postal_code", "country": "country", + "line1": "line1", + "line2": "line2", "name": "name", + "postal_code": "postal_code", "source_id": "source_id", + "state": "state", }, { - "line1": "line1", - "line2": "line2", "city": "city", - "state": "state", - "postal_code": "postal_code", "country": "country", + "line1": "line1", + "line2": "line2", "name": "name", + "postal_code": "postal_code", "source_id": "source_id", + "state": "state", }, ], primary_email="primary_email", @@ -175,25 +175,25 @@ async def test_method_update_with_all_params(self, async_client: AsyncFinch) -> company = await async_client.sandbox.company.update( accounts=[ { - "routing_number": "routing_number", "account_name": "account_name", - "institution_name": "institution_name", - "account_type": "checking", "account_number": "account_number", + "account_type": "checking", + "institution_name": "institution_name", + "routing_number": "routing_number", }, { - "routing_number": "routing_number", "account_name": "account_name", - "institution_name": "institution_name", - "account_type": "checking", "account_number": "account_number", + "account_type": "checking", + "institution_name": "institution_name", + "routing_number": "routing_number", }, { - "routing_number": "routing_number", "account_name": "account_name", - "institution_name": "institution_name", - "account_type": "checking", "account_number": "account_number", + "account_type": "checking", + "institution_name": "institution_name", + "routing_number": "routing_number", }, ], departments=[ @@ -212,40 +212,40 @@ async def test_method_update_with_all_params(self, async_client: AsyncFinch) -> ], ein="ein", entity={ - "type": "llc", "subtype": "s_corporation", + "type": "llc", }, legal_name="legal_name", locations=[ { - "line1": "line1", - "line2": "line2", "city": "city", - "state": "state", - "postal_code": "postal_code", "country": "country", + "line1": "line1", + "line2": "line2", "name": "name", + "postal_code": "postal_code", "source_id": "source_id", + "state": "state", }, { - "line1": "line1", - "line2": "line2", "city": "city", - "state": "state", - "postal_code": "postal_code", "country": "country", + "line1": "line1", + "line2": "line2", "name": "name", + "postal_code": "postal_code", "source_id": "source_id", + "state": "state", }, { - "line1": "line1", - "line2": "line2", "city": "city", - "state": "state", - "postal_code": "postal_code", "country": "country", + "line1": "line1", + "line2": "line2", "name": "name", + "postal_code": "postal_code", "source_id": "source_id", + "state": "state", }, ], primary_email="primary_email", diff --git a/tests/api_resources/sandbox/test_employment.py b/tests/api_resources/sandbox/test_employment.py index 6cdca66e..474c85bd 100644 --- a/tests/api_resources/sandbox/test_employment.py +++ b/tests/api_resources/sandbox/test_employment.py @@ -45,48 +45,48 @@ def test_method_update_with_all_params(self, client: Finch) -> None: ], department={"name": "name"}, employment={ - "type": "employee", "subtype": "full_time", + "type": "employee", }, end_date="end_date", first_name="first_name", income={ - "unit": "yearly", "amount": 0, "currency": "currency", "effective_date": "effective_date", + "unit": "yearly", }, income_history=[ { - "unit": "yearly", "amount": 0, "currency": "currency", "effective_date": "effective_date", + "unit": "yearly", }, { - "unit": "yearly", "amount": 0, "currency": "currency", "effective_date": "effective_date", + "unit": "yearly", }, { - "unit": "yearly", "amount": 0, "currency": "currency", "effective_date": "effective_date", + "unit": "yearly", }, ], is_active=True, last_name="last_name", location={ - "line1": "line1", - "line2": "line2", "city": "city", - "state": "state", - "postal_code": "postal_code", "country": "country", + "line1": "line1", + "line2": "line2", "name": "name", + "postal_code": "postal_code", "source_id": "source_id", + "state": "state", }, manager={"id": "id"}, middle_name="middle_name", @@ -159,48 +159,48 @@ async def test_method_update_with_all_params(self, async_client: AsyncFinch) -> ], department={"name": "name"}, employment={ - "type": "employee", "subtype": "full_time", + "type": "employee", }, end_date="end_date", first_name="first_name", income={ - "unit": "yearly", "amount": 0, "currency": "currency", "effective_date": "effective_date", + "unit": "yearly", }, income_history=[ { - "unit": "yearly", "amount": 0, "currency": "currency", "effective_date": "effective_date", + "unit": "yearly", }, { - "unit": "yearly", "amount": 0, "currency": "currency", "effective_date": "effective_date", + "unit": "yearly", }, { - "unit": "yearly", "amount": 0, "currency": "currency", "effective_date": "effective_date", + "unit": "yearly", }, ], is_active=True, last_name="last_name", location={ - "line1": "line1", - "line2": "line2", "city": "city", - "state": "state", - "postal_code": "postal_code", "country": "country", + "line1": "line1", + "line2": "line2", "name": "name", + "postal_code": "postal_code", "source_id": "source_id", + "state": "state", }, manager={"id": "id"}, middle_name="middle_name", diff --git a/tests/api_resources/sandbox/test_individual.py b/tests/api_resources/sandbox/test_individual.py index 4bd79d3e..485ad203 100644 --- a/tests/api_resources/sandbox/test_individual.py +++ b/tests/api_resources/sandbox/test_individual.py @@ -65,14 +65,14 @@ def test_method_update_with_all_params(self, client: Finch) -> None: ], preferred_name="preferred_name", residence={ - "line1": "line1", - "line2": "line2", "city": "city", - "state": "state", - "postal_code": "postal_code", "country": "country", + "line1": "line1", + "line2": "line2", "name": "name", + "postal_code": "postal_code", "source_id": "source_id", + "state": "state", }, ssn="ssn", ) @@ -161,14 +161,14 @@ async def test_method_update_with_all_params(self, async_client: AsyncFinch) -> ], preferred_name="preferred_name", residence={ - "line1": "line1", - "line2": "line2", "city": "city", - "state": "state", - "postal_code": "postal_code", "country": "country", + "line1": "line1", + "line2": "line2", "name": "name", + "postal_code": "postal_code", "source_id": "source_id", + "state": "state", }, ssn="ssn", ) diff --git a/tests/api_resources/sandbox/test_payment.py b/tests/api_resources/sandbox/test_payment.py index 5f1c5356..0a0a0bfd 100644 --- a/tests/api_resources/sandbox/test_payment.py +++ b/tests/api_resources/sandbox/test_payment.py @@ -28,93 +28,93 @@ def test_method_create_with_all_params(self, client: Finch) -> None: end_date="end_date", pay_statements=[ { - "individual_id": "b2338cfb-472f-4f72-9faa-e028c083144a", - "type": "regular_payroll", - "payment_method": "check", - "total_hours": 0, - "gross_pay": { - "amount": 0, - "currency": "currency", - }, - "net_pay": { - "amount": 0, - "currency": "currency", - }, "earnings": [ { - "type": "salary", - "name": "name", "amount": 0, "currency": "currency", "hours": 0, - }, - { - "type": "salary", "name": "name", - "amount": 0, - "currency": "currency", - "hours": 0, + "type": "salary", }, { - "type": "salary", - "name": "name", "amount": 0, "currency": "currency", "hours": 0, - }, - ], - "taxes": [ - { - "type": "state", "name": "name", - "employer": True, - "amount": 0, - "currency": "currency", + "type": "salary", }, { - "type": "state", - "name": "name", - "employer": True, "amount": 0, "currency": "currency", - }, - { - "type": "state", + "hours": 0, "name": "name", - "employer": True, - "amount": 0, - "currency": "currency", + "type": "salary", }, ], "employee_deductions": [ { - "name": "401k test", "amount": 2000, "currency": "usd", + "name": "401k test", "pre_tax": True, "type": "401k", } ], "employer_contributions": [ { - "name": "name", "amount": 0, "currency": "currency", + "name": "name", "type": "401k", }, { + "amount": 0, + "currency": "currency", "name": "name", + "type": "401k", + }, + { "amount": 0, "currency": "currency", + "name": "name", "type": "401k", }, + ], + "gross_pay": { + "amount": 0, + "currency": "currency", + }, + "individual_id": "b2338cfb-472f-4f72-9faa-e028c083144a", + "net_pay": { + "amount": 0, + "currency": "currency", + }, + "payment_method": "check", + "taxes": [ + { + "amount": 0, + "currency": "currency", + "employer": True, + "name": "name", + "type": "state", + }, { + "amount": 0, + "currency": "currency", + "employer": True, "name": "name", + "type": "state", + }, + { "amount": 0, "currency": "currency", - "type": "401k", + "employer": True, + "name": "name", + "type": "state", }, ], + "total_hours": 0, + "type": "regular_payroll", } ], start_date="start_date", @@ -156,93 +156,93 @@ async def test_method_create_with_all_params(self, async_client: AsyncFinch) -> end_date="end_date", pay_statements=[ { - "individual_id": "b2338cfb-472f-4f72-9faa-e028c083144a", - "type": "regular_payroll", - "payment_method": "check", - "total_hours": 0, - "gross_pay": { - "amount": 0, - "currency": "currency", - }, - "net_pay": { - "amount": 0, - "currency": "currency", - }, "earnings": [ { - "type": "salary", - "name": "name", "amount": 0, "currency": "currency", "hours": 0, - }, - { - "type": "salary", "name": "name", - "amount": 0, - "currency": "currency", - "hours": 0, + "type": "salary", }, { - "type": "salary", - "name": "name", "amount": 0, "currency": "currency", "hours": 0, - }, - ], - "taxes": [ - { - "type": "state", "name": "name", - "employer": True, - "amount": 0, - "currency": "currency", + "type": "salary", }, { - "type": "state", - "name": "name", - "employer": True, "amount": 0, "currency": "currency", - }, - { - "type": "state", + "hours": 0, "name": "name", - "employer": True, - "amount": 0, - "currency": "currency", + "type": "salary", }, ], "employee_deductions": [ { - "name": "401k test", "amount": 2000, "currency": "usd", + "name": "401k test", "pre_tax": True, "type": "401k", } ], "employer_contributions": [ { - "name": "name", "amount": 0, "currency": "currency", + "name": "name", "type": "401k", }, { + "amount": 0, + "currency": "currency", "name": "name", + "type": "401k", + }, + { "amount": 0, "currency": "currency", + "name": "name", "type": "401k", }, + ], + "gross_pay": { + "amount": 0, + "currency": "currency", + }, + "individual_id": "b2338cfb-472f-4f72-9faa-e028c083144a", + "net_pay": { + "amount": 0, + "currency": "currency", + }, + "payment_method": "check", + "taxes": [ + { + "amount": 0, + "currency": "currency", + "employer": True, + "name": "name", + "type": "state", + }, { + "amount": 0, + "currency": "currency", + "employer": True, "name": "name", + "type": "state", + }, + { "amount": 0, "currency": "currency", - "type": "401k", + "employer": True, + "name": "name", + "type": "state", }, ], + "total_hours": 0, + "type": "regular_payroll", } ], start_date="start_date",