From 8878b9fc055fbb762dca23757050be97971722c0 Mon Sep 17 00:00:00 2001 From: stainless-bot Date: Mon, 18 Nov 2024 10:38:48 +0000 Subject: [PATCH] chore: rebuild project due to codegen change --- tests/api_resources/connect/test_sessions.py | 20 +-- .../hris/benefits/test_individuals.py | 4 +- tests/api_resources/hris/test_employments.py | 36 +---- tests/api_resources/hris/test_individuals.py | 16 +-- .../api_resources/payroll/test_pay_groups.py | 4 +- .../sandbox/connections/test_accounts.py | 4 +- tests/api_resources/sandbox/test_company.py | 132 ++++-------------- .../api_resources/sandbox/test_connections.py | 4 +- .../api_resources/sandbox/test_employment.py | 48 +------ .../api_resources/sandbox/test_individual.py | 40 +----- tests/api_resources/sandbox/test_payment.py | 92 +----------- 11 files changed, 66 insertions(+), 334 deletions(-) diff --git a/tests/api_resources/connect/test_sessions.py b/tests/api_resources/connect/test_sessions.py index 6ea14912..c9965727 100644 --- a/tests/api_resources/connect/test_sessions.py +++ b/tests/api_resources/connect/test_sessions.py @@ -25,7 +25,7 @@ def test_method_new(self, client: Finch) -> None: session = client.connect.sessions.new( customer_id="x", customer_name="x", - products=["company", "directory", "individual"], + products=["company"], ) assert_matches_type(SessionNewResponse, session, path=["response"]) @@ -34,7 +34,7 @@ def test_method_new_with_all_params(self, client: Finch) -> None: session = client.connect.sessions.new( customer_id="x", customer_name="x", - products=["company", "directory", "individual"], + products=["company"], customer_email="dev@stainlessapi.com", integration={ "auth_method": "assisted", @@ -52,7 +52,7 @@ def test_raw_response_new(self, client: Finch) -> None: response = client.connect.sessions.with_raw_response.new( customer_id="x", customer_name="x", - products=["company", "directory", "individual"], + products=["company"], ) assert response.is_closed is True @@ -65,7 +65,7 @@ def test_streaming_response_new(self, client: Finch) -> None: with client.connect.sessions.with_streaming_response.new( customer_id="x", customer_name="x", - products=["company", "directory", "individual"], + products=["company"], ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -87,7 +87,7 @@ def test_method_reauthenticate_with_all_params(self, client: Finch) -> None: session = client.connect.sessions.reauthenticate( connection_id="connection_id", minutes_to_expire=0, - products=["company", "directory", "individual"], + products=["company"], redirect_uri="https://example.com", ) assert_matches_type(SessionReauthenticateResponse, session, path=["response"]) @@ -125,7 +125,7 @@ async def test_method_new(self, async_client: AsyncFinch) -> None: session = await async_client.connect.sessions.new( customer_id="x", customer_name="x", - products=["company", "directory", "individual"], + products=["company"], ) assert_matches_type(SessionNewResponse, session, path=["response"]) @@ -134,7 +134,7 @@ async def test_method_new_with_all_params(self, async_client: AsyncFinch) -> Non session = await async_client.connect.sessions.new( customer_id="x", customer_name="x", - products=["company", "directory", "individual"], + products=["company"], customer_email="dev@stainlessapi.com", integration={ "auth_method": "assisted", @@ -152,7 +152,7 @@ async def test_raw_response_new(self, async_client: AsyncFinch) -> None: response = await async_client.connect.sessions.with_raw_response.new( customer_id="x", customer_name="x", - products=["company", "directory", "individual"], + products=["company"], ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_streaming_response_new(self, async_client: AsyncFinch) -> None: async with async_client.connect.sessions.with_streaming_response.new( customer_id="x", customer_name="x", - products=["company", "directory", "individual"], + products=["company"], ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -187,7 +187,7 @@ async def test_method_reauthenticate_with_all_params(self, async_client: AsyncFi session = await async_client.connect.sessions.reauthenticate( connection_id="connection_id", minutes_to_expire=0, - products=["company", "directory", "individual"], + products=["company"], redirect_uri="https://example.com", ) assert_matches_type(SessionReauthenticateResponse, session, path=["response"]) diff --git a/tests/api_resources/hris/benefits/test_individuals.py b/tests/api_resources/hris/benefits/test_individuals.py index 98571e3e..29438100 100644 --- a/tests/api_resources/hris/benefits/test_individuals.py +++ b/tests/api_resources/hris/benefits/test_individuals.py @@ -160,7 +160,7 @@ def test_method_unenroll_many(self, client: Finch) -> None: def test_method_unenroll_many_with_all_params(self, client: Finch) -> None: individual = client.hris.benefits.individuals.unenroll_many( benefit_id="benefit_id", - individual_ids=["string", "string", "string"], + individual_ids=["string"], ) assert_matches_type(SyncSinglePage[UnenrolledIndividual], individual, path=["response"]) @@ -336,7 +336,7 @@ async def test_method_unenroll_many(self, async_client: AsyncFinch) -> None: async def test_method_unenroll_many_with_all_params(self, async_client: AsyncFinch) -> None: individual = await async_client.hris.benefits.individuals.unenroll_many( benefit_id="benefit_id", - individual_ids=["string", "string", "string"], + individual_ids=["string"], ) assert_matches_type(AsyncSinglePage[UnenrolledIndividual], individual, path=["response"]) diff --git a/tests/api_resources/hris/test_employments.py b/tests/api_resources/hris/test_employments.py index 22779d16..6ce52e42 100644 --- a/tests/api_resources/hris/test_employments.py +++ b/tests/api_resources/hris/test_employments.py @@ -21,22 +21,14 @@ class TestEmployments: @parametrize def test_method_retrieve_many(self, client: Finch) -> None: employment = client.hris.employments.retrieve_many( - requests=[ - {"individual_id": "individual_id"}, - {"individual_id": "individual_id"}, - {"individual_id": "individual_id"}, - ], + requests=[{"individual_id": "individual_id"}], ) assert_matches_type(SyncResponsesPage[EmploymentDataResponse], employment, path=["response"]) @parametrize def test_raw_response_retrieve_many(self, client: Finch) -> None: response = client.hris.employments.with_raw_response.retrieve_many( - requests=[ - {"individual_id": "individual_id"}, - {"individual_id": "individual_id"}, - {"individual_id": "individual_id"}, - ], + requests=[{"individual_id": "individual_id"}], ) assert response.is_closed is True @@ -47,11 +39,7 @@ def test_raw_response_retrieve_many(self, client: Finch) -> None: @parametrize def test_streaming_response_retrieve_many(self, client: Finch) -> None: with client.hris.employments.with_streaming_response.retrieve_many( - requests=[ - {"individual_id": "individual_id"}, - {"individual_id": "individual_id"}, - {"individual_id": "individual_id"}, - ], + requests=[{"individual_id": "individual_id"}], ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -68,22 +56,14 @@ class TestAsyncEmployments: @parametrize async def test_method_retrieve_many(self, async_client: AsyncFinch) -> None: employment = await async_client.hris.employments.retrieve_many( - requests=[ - {"individual_id": "individual_id"}, - {"individual_id": "individual_id"}, - {"individual_id": "individual_id"}, - ], + requests=[{"individual_id": "individual_id"}], ) assert_matches_type(AsyncResponsesPage[EmploymentDataResponse], employment, path=["response"]) @parametrize async def test_raw_response_retrieve_many(self, async_client: AsyncFinch) -> None: response = await async_client.hris.employments.with_raw_response.retrieve_many( - requests=[ - {"individual_id": "individual_id"}, - {"individual_id": "individual_id"}, - {"individual_id": "individual_id"}, - ], + requests=[{"individual_id": "individual_id"}], ) assert response.is_closed is True @@ -94,11 +74,7 @@ async def test_raw_response_retrieve_many(self, async_client: AsyncFinch) -> Non @parametrize async def test_streaming_response_retrieve_many(self, async_client: AsyncFinch) -> None: async with async_client.hris.employments.with_streaming_response.retrieve_many( - requests=[ - {"individual_id": "individual_id"}, - {"individual_id": "individual_id"}, - {"individual_id": "individual_id"}, - ], + requests=[{"individual_id": "individual_id"}], ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/hris/test_individuals.py b/tests/api_resources/hris/test_individuals.py index 72031f6d..99a6f081 100644 --- a/tests/api_resources/hris/test_individuals.py +++ b/tests/api_resources/hris/test_individuals.py @@ -26,12 +26,8 @@ def test_method_retrieve_many(self, client: Finch) -> None: @parametrize def test_method_retrieve_many_with_all_params(self, client: Finch) -> None: individual = client.hris.individuals.retrieve_many( - options={"include": ["string", "string", "string"]}, - requests=[ - {"individual_id": "individual_id"}, - {"individual_id": "individual_id"}, - {"individual_id": "individual_id"}, - ], + options={"include": ["string"]}, + requests=[{"individual_id": "individual_id"}], ) assert_matches_type(SyncResponsesPage[IndividualResponse], individual, path=["response"]) @@ -67,12 +63,8 @@ async def test_method_retrieve_many(self, async_client: AsyncFinch) -> None: @parametrize async def test_method_retrieve_many_with_all_params(self, async_client: AsyncFinch) -> None: individual = await async_client.hris.individuals.retrieve_many( - options={"include": ["string", "string", "string"]}, - requests=[ - {"individual_id": "individual_id"}, - {"individual_id": "individual_id"}, - {"individual_id": "individual_id"}, - ], + options={"include": ["string"]}, + requests=[{"individual_id": "individual_id"}], ) assert_matches_type(AsyncResponsesPage[IndividualResponse], individual, path=["response"]) diff --git a/tests/api_resources/payroll/test_pay_groups.py b/tests/api_resources/payroll/test_pay_groups.py index 755c263e..2800c44f 100644 --- a/tests/api_resources/payroll/test_pay_groups.py +++ b/tests/api_resources/payroll/test_pay_groups.py @@ -65,7 +65,7 @@ def test_method_list(self, client: Finch) -> None: def test_method_list_with_all_params(self, client: Finch) -> None: pay_group = client.payroll.pay_groups.list( individual_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", - pay_frequencies=["string", "string", "string"], + pay_frequencies=["string"], ) assert_matches_type(SyncSinglePage[PayGroupListResponse], pay_group, path=["response"]) @@ -140,7 +140,7 @@ async def test_method_list(self, async_client: AsyncFinch) -> None: async def test_method_list_with_all_params(self, async_client: AsyncFinch) -> None: pay_group = await async_client.payroll.pay_groups.list( individual_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", - pay_frequencies=["string", "string", "string"], + pay_frequencies=["string"], ) assert_matches_type(AsyncSinglePage[PayGroupListResponse], pay_group, path=["response"]) diff --git a/tests/api_resources/sandbox/connections/test_accounts.py b/tests/api_resources/sandbox/connections/test_accounts.py index ad8027b1..561aa3ba 100644 --- a/tests/api_resources/sandbox/connections/test_accounts.py +++ b/tests/api_resources/sandbox/connections/test_accounts.py @@ -34,7 +34,7 @@ def test_method_create_with_all_params(self, client: Finch) -> None: company_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", provider_id="provider_id", authentication_type="credential", - products=["string", "string", "string"], + products=["string"], ) assert_matches_type(AccountCreateResponse, account, path=["response"]) @@ -114,7 +114,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncFinch) -> company_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", provider_id="provider_id", authentication_type="credential", - products=["string", "string", "string"], + products=["string"], ) assert_matches_type(AccountCreateResponse, account, path=["response"]) diff --git a/tests/api_resources/sandbox/test_company.py b/tests/api_resources/sandbox/test_company.py index bd23d69e..3c89e1c6 100644 --- a/tests/api_resources/sandbox/test_company.py +++ b/tests/api_resources/sandbox/test_company.py @@ -20,12 +20,12 @@ class TestCompany: @parametrize def test_method_update(self, client: Finch) -> None: company = client.sandbox.company.update( - accounts=[{}, {}, {}], - departments=[{}, {}, {}], + accounts=[{}], + departments=[{}], ein="ein", entity={}, legal_name="legal_name", - locations=[{}, {}, {}], + locations=[{}], primary_email="primary_email", primary_phone_number="primary_phone_number", ) @@ -41,35 +41,13 @@ def test_method_update_with_all_params(self, client: Finch) -> None: "account_type": "checking", "institution_name": "institution_name", "routing_number": "routing_number", - }, - { - "account_name": "account_name", - "account_number": "account_number", - "account_type": "checking", - "institution_name": "institution_name", - "routing_number": "routing_number", - }, - { - "account_name": "account_name", - "account_number": "account_number", - "account_type": "checking", - "institution_name": "institution_name", - "routing_number": "routing_number", - }, + } ], departments=[ { "name": "name", "parent": {"name": "name"}, - }, - { - "name": "name", - "parent": {"name": "name"}, - }, - { - "name": "name", - "parent": {"name": "name"}, - }, + } ], ein="ein", entity={ @@ -87,27 +65,7 @@ def test_method_update_with_all_params(self, client: Finch) -> None: "postal_code": "postal_code", "source_id": "source_id", "state": "state", - }, - { - "city": "city", - "country": "country", - "line1": "line1", - "line2": "line2", - "name": "name", - "postal_code": "postal_code", - "source_id": "source_id", - "state": "state", - }, - { - "city": "city", - "country": "country", - "line1": "line1", - "line2": "line2", - "name": "name", - "postal_code": "postal_code", - "source_id": "source_id", - "state": "state", - }, + } ], primary_email="primary_email", primary_phone_number="primary_phone_number", @@ -117,12 +75,12 @@ def test_method_update_with_all_params(self, client: Finch) -> None: @parametrize def test_raw_response_update(self, client: Finch) -> None: response = client.sandbox.company.with_raw_response.update( - accounts=[{}, {}, {}], - departments=[{}, {}, {}], + accounts=[{}], + departments=[{}], ein="ein", entity={}, legal_name="legal_name", - locations=[{}, {}, {}], + locations=[{}], primary_email="primary_email", primary_phone_number="primary_phone_number", ) @@ -135,12 +93,12 @@ def test_raw_response_update(self, client: Finch) -> None: @parametrize def test_streaming_response_update(self, client: Finch) -> None: with client.sandbox.company.with_streaming_response.update( - accounts=[{}, {}, {}], - departments=[{}, {}, {}], + accounts=[{}], + departments=[{}], ein="ein", entity={}, legal_name="legal_name", - locations=[{}, {}, {}], + locations=[{}], primary_email="primary_email", primary_phone_number="primary_phone_number", ) as response: @@ -159,12 +117,12 @@ class TestAsyncCompany: @parametrize async def test_method_update(self, async_client: AsyncFinch) -> None: company = await async_client.sandbox.company.update( - accounts=[{}, {}, {}], - departments=[{}, {}, {}], + accounts=[{}], + departments=[{}], ein="ein", entity={}, legal_name="legal_name", - locations=[{}, {}, {}], + locations=[{}], primary_email="primary_email", primary_phone_number="primary_phone_number", ) @@ -180,35 +138,13 @@ async def test_method_update_with_all_params(self, async_client: AsyncFinch) -> "account_type": "checking", "institution_name": "institution_name", "routing_number": "routing_number", - }, - { - "account_name": "account_name", - "account_number": "account_number", - "account_type": "checking", - "institution_name": "institution_name", - "routing_number": "routing_number", - }, - { - "account_name": "account_name", - "account_number": "account_number", - "account_type": "checking", - "institution_name": "institution_name", - "routing_number": "routing_number", - }, + } ], departments=[ { "name": "name", "parent": {"name": "name"}, - }, - { - "name": "name", - "parent": {"name": "name"}, - }, - { - "name": "name", - "parent": {"name": "name"}, - }, + } ], ein="ein", entity={ @@ -226,27 +162,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncFinch) -> "postal_code": "postal_code", "source_id": "source_id", "state": "state", - }, - { - "city": "city", - "country": "country", - "line1": "line1", - "line2": "line2", - "name": "name", - "postal_code": "postal_code", - "source_id": "source_id", - "state": "state", - }, - { - "city": "city", - "country": "country", - "line1": "line1", - "line2": "line2", - "name": "name", - "postal_code": "postal_code", - "source_id": "source_id", - "state": "state", - }, + } ], primary_email="primary_email", primary_phone_number="primary_phone_number", @@ -256,12 +172,12 @@ async def test_method_update_with_all_params(self, async_client: AsyncFinch) -> @parametrize async def test_raw_response_update(self, async_client: AsyncFinch) -> None: response = await async_client.sandbox.company.with_raw_response.update( - accounts=[{}, {}, {}], - departments=[{}, {}, {}], + accounts=[{}], + departments=[{}], ein="ein", entity={}, legal_name="legal_name", - locations=[{}, {}, {}], + locations=[{}], primary_email="primary_email", primary_phone_number="primary_phone_number", ) @@ -274,12 +190,12 @@ async def test_raw_response_update(self, async_client: AsyncFinch) -> None: @parametrize async def test_streaming_response_update(self, async_client: AsyncFinch) -> None: async with async_client.sandbox.company.with_streaming_response.update( - accounts=[{}, {}, {}], - departments=[{}, {}, {}], + accounts=[{}], + departments=[{}], ein="ein", entity={}, legal_name="legal_name", - locations=[{}, {}, {}], + locations=[{}], primary_email="primary_email", primary_phone_number="primary_phone_number", ) as response: diff --git a/tests/api_resources/sandbox/test_connections.py b/tests/api_resources/sandbox/test_connections.py index 97209c33..1a31e49b 100644 --- a/tests/api_resources/sandbox/test_connections.py +++ b/tests/api_resources/sandbox/test_connections.py @@ -30,7 +30,7 @@ def test_method_create_with_all_params(self, client: Finch) -> None: provider_id="provider_id", authentication_type="credential", employee_size=0, - products=["string", "string", "string"], + products=["string"], ) assert_matches_type(ConnectionCreateResponse, connection, path=["response"]) @@ -75,7 +75,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncFinch) -> provider_id="provider_id", authentication_type="credential", employee_size=0, - products=["string", "string", "string"], + products=["string"], ) assert_matches_type(ConnectionCreateResponse, connection, path=["response"]) diff --git a/tests/api_resources/sandbox/test_employment.py b/tests/api_resources/sandbox/test_employment.py index 9d816162..96546527 100644 --- a/tests/api_resources/sandbox/test_employment.py +++ b/tests/api_resources/sandbox/test_employment.py @@ -33,15 +33,7 @@ def test_method_update_with_all_params(self, client: Finch) -> None: { "name": "name", "value": {}, - }, - { - "name": "name", - "value": {}, - }, - { - "name": "name", - "value": {}, - }, + } ], department={"name": "name"}, employment={ @@ -62,19 +54,7 @@ def test_method_update_with_all_params(self, client: Finch) -> None: "currency": "currency", "effective_date": "effective_date", "unit": "yearly", - }, - { - "amount": 0, - "currency": "currency", - "effective_date": "effective_date", - "unit": "yearly", - }, - { - "amount": 0, - "currency": "currency", - "effective_date": "effective_date", - "unit": "yearly", - }, + } ], is_active=True, last_name="last_name", @@ -148,15 +128,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncFinch) -> { "name": "name", "value": {}, - }, - { - "name": "name", - "value": {}, - }, - { - "name": "name", - "value": {}, - }, + } ], department={"name": "name"}, employment={ @@ -177,19 +149,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncFinch) -> "currency": "currency", "effective_date": "effective_date", "unit": "yearly", - }, - { - "amount": 0, - "currency": "currency", - "effective_date": "effective_date", - "unit": "yearly", - }, - { - "amount": 0, - "currency": "currency", - "effective_date": "effective_date", - "unit": "yearly", - }, + } ], is_active=True, last_name="last_name", diff --git a/tests/api_resources/sandbox/test_individual.py b/tests/api_resources/sandbox/test_individual.py index 485ad203..1f2e1ca3 100644 --- a/tests/api_resources/sandbox/test_individual.py +++ b/tests/api_resources/sandbox/test_individual.py @@ -33,15 +33,7 @@ def test_method_update_with_all_params(self, client: Finch) -> None: { "data": "data", "type": "work", - }, - { - "data": "data", - "type": "work", - }, - { - "data": "data", - "type": "work", - }, + } ], encrypted_ssn="encrypted_ssn", ethnicity="asian", @@ -53,15 +45,7 @@ def test_method_update_with_all_params(self, client: Finch) -> None: { "data": "data", "type": "work", - }, - { - "data": "data", - "type": "work", - }, - { - "data": "data", - "type": "work", - }, + } ], preferred_name="preferred_name", residence={ @@ -129,15 +113,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncFinch) -> { "data": "data", "type": "work", - }, - { - "data": "data", - "type": "work", - }, - { - "data": "data", - "type": "work", - }, + } ], encrypted_ssn="encrypted_ssn", ethnicity="asian", @@ -149,15 +125,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncFinch) -> { "data": "data", "type": "work", - }, - { - "data": "data", - "type": "work", - }, - { - "data": "data", - "type": "work", - }, + } ], preferred_name="preferred_name", residence={ diff --git a/tests/api_resources/sandbox/test_payment.py b/tests/api_resources/sandbox/test_payment.py index 0a0a0bfd..60fea177 100644 --- a/tests/api_resources/sandbox/test_payment.py +++ b/tests/api_resources/sandbox/test_payment.py @@ -35,21 +35,7 @@ def test_method_create_with_all_params(self, client: Finch) -> None: "hours": 0, "name": "name", "type": "salary", - }, - { - "amount": 0, - "currency": "currency", - "hours": 0, - "name": "name", - "type": "salary", - }, - { - "amount": 0, - "currency": "currency", - "hours": 0, - "name": "name", - "type": "salary", - }, + } ], "employee_deductions": [ { @@ -66,19 +52,7 @@ def test_method_create_with_all_params(self, client: Finch) -> None: "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, @@ -97,21 +71,7 @@ def test_method_create_with_all_params(self, client: Finch) -> None: "employer": True, "name": "name", "type": "state", - }, - { - "amount": 0, - "currency": "currency", - "employer": True, - "name": "name", - "type": "state", - }, - { - "amount": 0, - "currency": "currency", - "employer": True, - "name": "name", - "type": "state", - }, + } ], "total_hours": 0, "type": "regular_payroll", @@ -163,21 +123,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncFinch) -> "hours": 0, "name": "name", "type": "salary", - }, - { - "amount": 0, - "currency": "currency", - "hours": 0, - "name": "name", - "type": "salary", - }, - { - "amount": 0, - "currency": "currency", - "hours": 0, - "name": "name", - "type": "salary", - }, + } ], "employee_deductions": [ { @@ -194,19 +140,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncFinch) -> "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, @@ -225,21 +159,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncFinch) -> "employer": True, "name": "name", "type": "state", - }, - { - "amount": 0, - "currency": "currency", - "employer": True, - "name": "name", - "type": "state", - }, - { - "amount": 0, - "currency": "currency", - "employer": True, - "name": "name", - "type": "state", - }, + } ], "total_hours": 0, "type": "regular_payroll",