From 4951833d3ce98fe204481254fabf437b548e8705 Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Tue, 6 Feb 2024 15:20:13 +0000 Subject: [PATCH] fix(types): loosen most List params types to Iterable --- src/finch/resources/hris/benefits/individuals.py | 6 +++--- src/finch/resources/hris/employments.py | 6 +++--- src/finch/resources/hris/individuals.py | 6 +++--- src/finch/resources/hris/pay_statements.py | 6 +++--- src/finch/resources/sandbox/company.py | 14 +++++++------- src/finch/resources/sandbox/directory.py | 6 +++--- src/finch/resources/sandbox/employment.py | 10 +++++----- src/finch/resources/sandbox/individual.py | 10 +++++----- src/finch/resources/sandbox/payment.py | 6 +++--- .../hris/benefits/individual_enroll_many_params.py | 4 ++-- .../types/hris/employment_retrieve_many_params.py | 4 ++-- .../types/hris/individual_retrieve_many_params.py | 4 ++-- .../hris/pay_statement_retrieve_many_params.py | 4 ++-- src/finch/types/sandbox/company_update_params.py | 8 ++++---- src/finch/types/sandbox/directory_create_params.py | 12 ++++++------ .../types/sandbox/employment_update_params.py | 6 +++--- .../types/sandbox/individual_update_params.py | 6 +++--- src/finch/types/sandbox/payment_create_params.py | 12 ++++++------ 18 files changed, 65 insertions(+), 65 deletions(-) diff --git a/src/finch/resources/hris/benefits/individuals.py b/src/finch/resources/hris/benefits/individuals.py index 16664bac..871f4491 100644 --- a/src/finch/resources/hris/benefits/individuals.py +++ b/src/finch/resources/hris/benefits/individuals.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import List +from typing import List, Iterable import httpx @@ -43,7 +43,7 @@ def enroll_many( self, benefit_id: str, *, - individuals: List[individual_enroll_many_params.Individual], + individuals: Iterable[individual_enroll_many_params.Individual], # 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. extra_headers: Headers | None = None, @@ -226,7 +226,7 @@ def enroll_many( self, benefit_id: str, *, - individuals: List[individual_enroll_many_params.Individual], + individuals: Iterable[individual_enroll_many_params.Individual], # 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. extra_headers: Headers | None = None, diff --git a/src/finch/resources/hris/employments.py b/src/finch/resources/hris/employments.py index 3b1f9cf3..fe89eb01 100644 --- a/src/finch/resources/hris/employments.py +++ b/src/finch/resources/hris/employments.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import List +from typing import Iterable import httpx @@ -34,7 +34,7 @@ def with_streaming_response(self) -> EmploymentsWithStreamingResponse: def retrieve_many( self, *, - requests: List[employment_retrieve_many_params.Request], + requests: Iterable[employment_retrieve_many_params.Request], # 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. extra_headers: Headers | None = None, @@ -84,7 +84,7 @@ def with_streaming_response(self) -> AsyncEmploymentsWithStreamingResponse: def retrieve_many( self, *, - requests: List[employment_retrieve_many_params.Request], + requests: Iterable[employment_retrieve_many_params.Request], # 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. extra_headers: Headers | None = None, diff --git a/src/finch/resources/hris/individuals.py b/src/finch/resources/hris/individuals.py index 93f37737..24dae227 100644 --- a/src/finch/resources/hris/individuals.py +++ b/src/finch/resources/hris/individuals.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import List, Optional +from typing import Iterable, Optional import httpx @@ -35,7 +35,7 @@ def retrieve_many( self, *, options: Optional[individual_retrieve_many_params.Options] | NotGiven = NOT_GIVEN, - requests: List[individual_retrieve_many_params.Request] | NotGiven = NOT_GIVEN, + requests: Iterable[individual_retrieve_many_params.Request] | 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. extra_headers: Headers | None = None, @@ -86,7 +86,7 @@ def retrieve_many( self, *, options: Optional[individual_retrieve_many_params.Options] | NotGiven = NOT_GIVEN, - requests: List[individual_retrieve_many_params.Request] | NotGiven = NOT_GIVEN, + requests: Iterable[individual_retrieve_many_params.Request] | 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. extra_headers: Headers | None = None, diff --git a/src/finch/resources/hris/pay_statements.py b/src/finch/resources/hris/pay_statements.py index 4ede0e4e..8c2ee11e 100644 --- a/src/finch/resources/hris/pay_statements.py +++ b/src/finch/resources/hris/pay_statements.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import List +from typing import Iterable import httpx @@ -34,7 +34,7 @@ def with_streaming_response(self) -> PayStatementsWithStreamingResponse: def retrieve_many( self, *, - requests: List[pay_statement_retrieve_many_params.Request], + requests: Iterable[pay_statement_retrieve_many_params.Request], # 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. extra_headers: Headers | None = None, @@ -85,7 +85,7 @@ def with_streaming_response(self) -> AsyncPayStatementsWithStreamingResponse: def retrieve_many( self, *, - requests: List[pay_statement_retrieve_many_params.Request], + requests: Iterable[pay_statement_retrieve_many_params.Request], # 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. extra_headers: Headers | None = None, diff --git a/src/finch/resources/sandbox/company.py b/src/finch/resources/sandbox/company.py index 8be8b220..30a1f699 100644 --- a/src/finch/resources/sandbox/company.py +++ b/src/finch/resources/sandbox/company.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import List, Optional +from typing import Iterable, Optional import httpx @@ -33,12 +33,12 @@ def with_streaming_response(self) -> CompanyWithStreamingResponse: def update( self, *, - accounts: Optional[List[company_update_params.Account]], - departments: Optional[List[Optional[company_update_params.Department]]], + accounts: Optional[Iterable[company_update_params.Account]], + departments: Optional[Iterable[Optional[company_update_params.Department]]], ein: Optional[str], entity: Optional[company_update_params.Entity], legal_name: Optional[str], - locations: Optional[List[Optional[LocationParam]]], + locations: Optional[Iterable[Optional[LocationParam]]], primary_email: Optional[str], primary_phone_number: Optional[str], # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -108,12 +108,12 @@ def with_streaming_response(self) -> AsyncCompanyWithStreamingResponse: async def update( self, *, - accounts: Optional[List[company_update_params.Account]], - departments: Optional[List[Optional[company_update_params.Department]]], + accounts: Optional[Iterable[company_update_params.Account]], + departments: Optional[Iterable[Optional[company_update_params.Department]]], ein: Optional[str], entity: Optional[company_update_params.Entity], legal_name: Optional[str], - locations: Optional[List[Optional[LocationParam]]], + locations: Optional[Iterable[Optional[LocationParam]]], primary_email: Optional[str], primary_phone_number: Optional[str], # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. diff --git a/src/finch/resources/sandbox/directory.py b/src/finch/resources/sandbox/directory.py index b9093be9..27968f85 100644 --- a/src/finch/resources/sandbox/directory.py +++ b/src/finch/resources/sandbox/directory.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import List +from typing import Iterable import httpx @@ -32,7 +32,7 @@ def with_streaming_response(self) -> DirectoryWithStreamingResponse: def create( self, *, - body: List[directory_create_params.Body], + body: Iterable[directory_create_params.Body], # 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. extra_headers: Headers | None = None, @@ -77,7 +77,7 @@ def with_streaming_response(self) -> AsyncDirectoryWithStreamingResponse: async def create( self, *, - body: List[directory_create_params.Body], + body: Iterable[directory_create_params.Body], # 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. extra_headers: Headers | None = None, diff --git a/src/finch/resources/sandbox/employment.py b/src/finch/resources/sandbox/employment.py index a26f8cf9..a4707fc9 100644 --- a/src/finch/resources/sandbox/employment.py +++ b/src/finch/resources/sandbox/employment.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import List, Optional +from typing import Iterable, Optional import httpx @@ -35,13 +35,13 @@ def update( individual_id: str, *, class_code: Optional[str] | NotGiven = NOT_GIVEN, - custom_fields: List[employment_update_params.CustomField] | NotGiven = NOT_GIVEN, + custom_fields: Iterable[employment_update_params.CustomField] | NotGiven = NOT_GIVEN, department: Optional[employment_update_params.Department] | NotGiven = NOT_GIVEN, employment: Optional[employment_update_params.Employment] | NotGiven = NOT_GIVEN, end_date: Optional[str] | NotGiven = NOT_GIVEN, first_name: Optional[str] | NotGiven = NOT_GIVEN, income: Optional[IncomeParam] | NotGiven = NOT_GIVEN, - income_history: Optional[List[Optional[IncomeParam]]] | NotGiven = NOT_GIVEN, + income_history: Optional[Iterable[Optional[IncomeParam]]] | NotGiven = NOT_GIVEN, is_active: Optional[bool] | NotGiven = NOT_GIVEN, last_name: Optional[str] | NotGiven = NOT_GIVEN, location: Optional[LocationParam] | NotGiven = NOT_GIVEN, @@ -147,13 +147,13 @@ async def update( individual_id: str, *, class_code: Optional[str] | NotGiven = NOT_GIVEN, - custom_fields: List[employment_update_params.CustomField] | NotGiven = NOT_GIVEN, + custom_fields: Iterable[employment_update_params.CustomField] | NotGiven = NOT_GIVEN, department: Optional[employment_update_params.Department] | NotGiven = NOT_GIVEN, employment: Optional[employment_update_params.Employment] | NotGiven = NOT_GIVEN, end_date: Optional[str] | NotGiven = NOT_GIVEN, first_name: Optional[str] | NotGiven = NOT_GIVEN, income: Optional[IncomeParam] | NotGiven = NOT_GIVEN, - income_history: Optional[List[Optional[IncomeParam]]] | NotGiven = NOT_GIVEN, + income_history: Optional[Iterable[Optional[IncomeParam]]] | NotGiven = NOT_GIVEN, is_active: Optional[bool] | NotGiven = NOT_GIVEN, last_name: Optional[str] | NotGiven = NOT_GIVEN, location: Optional[LocationParam] | NotGiven = NOT_GIVEN, diff --git a/src/finch/resources/sandbox/individual.py b/src/finch/resources/sandbox/individual.py index 5aa93cc6..fee47057 100644 --- a/src/finch/resources/sandbox/individual.py +++ b/src/finch/resources/sandbox/individual.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import List, Optional +from typing import Iterable, Optional from typing_extensions import Literal import httpx @@ -36,7 +36,7 @@ def update( individual_id: str, *, dob: Optional[str] | NotGiven = NOT_GIVEN, - emails: Optional[List[individual_update_params.Email]] | NotGiven = NOT_GIVEN, + emails: Optional[Iterable[individual_update_params.Email]] | NotGiven = NOT_GIVEN, encrypted_ssn: Optional[str] | NotGiven = NOT_GIVEN, ethnicity: Optional[ Literal[ @@ -55,7 +55,7 @@ def update( gender: Optional[Literal["female", "male", "other", "decline_to_specify"]] | NotGiven = NOT_GIVEN, last_name: Optional[str] | NotGiven = NOT_GIVEN, middle_name: Optional[str] | NotGiven = NOT_GIVEN, - phone_numbers: Optional[List[Optional[individual_update_params.PhoneNumber]]] | NotGiven = NOT_GIVEN, + phone_numbers: Optional[Iterable[Optional[individual_update_params.PhoneNumber]]] | NotGiven = NOT_GIVEN, preferred_name: Optional[str] | NotGiven = NOT_GIVEN, residence: Optional[LocationParam] | NotGiven = NOT_GIVEN, ssn: Optional[str] | NotGiven = NOT_GIVEN, @@ -142,7 +142,7 @@ async def update( individual_id: str, *, dob: Optional[str] | NotGiven = NOT_GIVEN, - emails: Optional[List[individual_update_params.Email]] | NotGiven = NOT_GIVEN, + emails: Optional[Iterable[individual_update_params.Email]] | NotGiven = NOT_GIVEN, encrypted_ssn: Optional[str] | NotGiven = NOT_GIVEN, ethnicity: Optional[ Literal[ @@ -161,7 +161,7 @@ async def update( gender: Optional[Literal["female", "male", "other", "decline_to_specify"]] | NotGiven = NOT_GIVEN, last_name: Optional[str] | NotGiven = NOT_GIVEN, middle_name: Optional[str] | NotGiven = NOT_GIVEN, - phone_numbers: Optional[List[Optional[individual_update_params.PhoneNumber]]] | NotGiven = NOT_GIVEN, + phone_numbers: Optional[Iterable[Optional[individual_update_params.PhoneNumber]]] | NotGiven = NOT_GIVEN, preferred_name: Optional[str] | NotGiven = NOT_GIVEN, residence: Optional[LocationParam] | NotGiven = NOT_GIVEN, ssn: Optional[str] | NotGiven = NOT_GIVEN, diff --git a/src/finch/resources/sandbox/payment.py b/src/finch/resources/sandbox/payment.py index 020de8b8..f23e7249 100644 --- a/src/finch/resources/sandbox/payment.py +++ b/src/finch/resources/sandbox/payment.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import List +from typing import Iterable import httpx @@ -33,7 +33,7 @@ def create( self, *, end_date: str | NotGiven = NOT_GIVEN, - pay_statements: List[payment_create_params.PayStatement] | NotGiven = NOT_GIVEN, + pay_statements: Iterable[payment_create_params.PayStatement] | NotGiven = NOT_GIVEN, start_date: 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. @@ -84,7 +84,7 @@ async def create( self, *, end_date: str | NotGiven = NOT_GIVEN, - pay_statements: List[payment_create_params.PayStatement] | NotGiven = NOT_GIVEN, + pay_statements: Iterable[payment_create_params.PayStatement] | NotGiven = NOT_GIVEN, start_date: 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. diff --git a/src/finch/types/hris/benefits/individual_enroll_many_params.py b/src/finch/types/hris/benefits/individual_enroll_many_params.py index 2d88ef4d..996ede7c 100644 --- a/src/finch/types/hris/benefits/individual_enroll_many_params.py +++ b/src/finch/types/hris/benefits/individual_enroll_many_params.py @@ -2,14 +2,14 @@ from __future__ import annotations -from typing import List +from typing import Iterable from typing_extensions import Required, TypedDict __all__ = ["IndividualEnrollManyParams", "Individual"] class IndividualEnrollManyParams(TypedDict, total=False): - individuals: Required[List[Individual]] + individuals: Required[Iterable[Individual]] """Array of the individual_id to enroll and a configuration object.""" diff --git a/src/finch/types/hris/employment_retrieve_many_params.py b/src/finch/types/hris/employment_retrieve_many_params.py index f0ad7671..61cb2c21 100644 --- a/src/finch/types/hris/employment_retrieve_many_params.py +++ b/src/finch/types/hris/employment_retrieve_many_params.py @@ -2,14 +2,14 @@ from __future__ import annotations -from typing import List +from typing import Iterable from typing_extensions import Required, TypedDict __all__ = ["EmploymentRetrieveManyParams", "Request"] class EmploymentRetrieveManyParams(TypedDict, total=False): - requests: Required[List[Request]] + requests: Required[Iterable[Request]] """The array of batch requests.""" diff --git a/src/finch/types/hris/individual_retrieve_many_params.py b/src/finch/types/hris/individual_retrieve_many_params.py index bc95e012..7ec09d6a 100644 --- a/src/finch/types/hris/individual_retrieve_many_params.py +++ b/src/finch/types/hris/individual_retrieve_many_params.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import List, Optional +from typing import List, Iterable, Optional from typing_extensions import TypedDict __all__ = ["IndividualRetrieveManyParams", "Options", "Request"] @@ -11,7 +11,7 @@ class IndividualRetrieveManyParams(TypedDict, total=False): options: Optional[Options] - requests: List[Request] + requests: Iterable[Request] class Options(TypedDict, total=False): diff --git a/src/finch/types/hris/pay_statement_retrieve_many_params.py b/src/finch/types/hris/pay_statement_retrieve_many_params.py index 6329117d..686a7681 100644 --- a/src/finch/types/hris/pay_statement_retrieve_many_params.py +++ b/src/finch/types/hris/pay_statement_retrieve_many_params.py @@ -2,14 +2,14 @@ from __future__ import annotations -from typing import List +from typing import Iterable from typing_extensions import Required, TypedDict __all__ = ["PayStatementRetrieveManyParams", "Request"] class PayStatementRetrieveManyParams(TypedDict, total=False): - requests: Required[List[Request]] + requests: Required[Iterable[Request]] """The array of batch requests.""" diff --git a/src/finch/types/sandbox/company_update_params.py b/src/finch/types/sandbox/company_update_params.py index 1141ca6a..5800d428 100644 --- a/src/finch/types/sandbox/company_update_params.py +++ b/src/finch/types/sandbox/company_update_params.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import List, Optional +from typing import Iterable, Optional from typing_extensions import Literal, Required, TypedDict from ..location_param import LocationParam @@ -11,10 +11,10 @@ class CompanyUpdateParams(TypedDict, total=False): - accounts: Required[Optional[List[Account]]] + accounts: Required[Optional[Iterable[Account]]] """An array of bank account objects associated with the payroll/HRIS system.""" - departments: Required[Optional[List[Optional[Department]]]] + departments: Required[Optional[Iterable[Optional[Department]]]] """The array of company departments.""" ein: Required[Optional[str]] @@ -26,7 +26,7 @@ class CompanyUpdateParams(TypedDict, total=False): legal_name: Required[Optional[str]] """The legal name of the company.""" - locations: Required[Optional[List[Optional[LocationParam]]]] + locations: Required[Optional[Iterable[Optional[LocationParam]]]] primary_email: Required[Optional[str]] """The email of the main administrator on the account.""" diff --git a/src/finch/types/sandbox/directory_create_params.py b/src/finch/types/sandbox/directory_create_params.py index a1e949fd..78647fb4 100644 --- a/src/finch/types/sandbox/directory_create_params.py +++ b/src/finch/types/sandbox/directory_create_params.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import List, Optional +from typing import Iterable, Optional from typing_extensions import Literal, Required, TypedDict from ..income_param import IncomeParam @@ -21,7 +21,7 @@ class DirectoryCreateParams(TypedDict, total=False): - body: Required[List[Body]] + body: Required[Iterable[Body]] """Array of individuals to create. Takes all combined fields from `/individual` and `/employment` endpoints. All @@ -73,7 +73,7 @@ class Body(TypedDict, total=False): class_code: Optional[str] """Worker's compensation classification code for this employee""" - custom_fields: List[BodyCustomField] + custom_fields: Iterable[BodyCustomField] """Custom fields for the individual. These are fields which are defined by the employer in the system. Custom fields @@ -85,7 +85,7 @@ class Body(TypedDict, total=False): dob: Optional[str] - emails: Optional[List[BodyEmail]] + emails: Optional[Iterable[BodyEmail]] employment: Optional[BodyEmployment] """The employment object.""" @@ -126,7 +126,7 @@ class Body(TypedDict, total=False): semi-monthly, daily, etc, depending on what information the provider returns. """ - income_history: Optional[List[Optional[IncomeParam]]] + income_history: Optional[Iterable[Optional[IncomeParam]]] """The array of income history.""" is_active: Optional[bool] @@ -143,7 +143,7 @@ class Body(TypedDict, total=False): middle_name: Optional[str] """The legal middle name of the individual.""" - phone_numbers: Optional[List[Optional[BodyPhoneNumber]]] + phone_numbers: Optional[Iterable[Optional[BodyPhoneNumber]]] preferred_name: Optional[str] """The preferred name of the individual.""" diff --git a/src/finch/types/sandbox/employment_update_params.py b/src/finch/types/sandbox/employment_update_params.py index be90cca6..8e4cc877 100644 --- a/src/finch/types/sandbox/employment_update_params.py +++ b/src/finch/types/sandbox/employment_update_params.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import List, Optional +from typing import Iterable, Optional from typing_extensions import Literal, TypedDict from ..income_param import IncomeParam @@ -15,7 +15,7 @@ class EmploymentUpdateParams(TypedDict, total=False): class_code: Optional[str] """Worker's compensation classification code for this employee""" - custom_fields: List[CustomField] + custom_fields: Iterable[CustomField] """Custom fields for the individual. These are fields which are defined by the employer in the system. Custom fields @@ -40,7 +40,7 @@ class EmploymentUpdateParams(TypedDict, total=False): semi-monthly, daily, etc, depending on what information the provider returns. """ - income_history: Optional[List[Optional[IncomeParam]]] + income_history: Optional[Iterable[Optional[IncomeParam]]] """The array of income history.""" is_active: Optional[bool] diff --git a/src/finch/types/sandbox/individual_update_params.py b/src/finch/types/sandbox/individual_update_params.py index 8e40198e..cdae4cc2 100644 --- a/src/finch/types/sandbox/individual_update_params.py +++ b/src/finch/types/sandbox/individual_update_params.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import List, Optional +from typing import Iterable, Optional from typing_extensions import Literal, TypedDict from ..location_param import LocationParam @@ -13,7 +13,7 @@ class IndividualUpdateParams(TypedDict, total=False): dob: Optional[str] - emails: Optional[List[Email]] + emails: Optional[Iterable[Email]] encrypted_ssn: Optional[str] """Social Security Number of the individual in **encrypted** format. @@ -48,7 +48,7 @@ class IndividualUpdateParams(TypedDict, total=False): middle_name: Optional[str] """The legal middle name of the individual.""" - phone_numbers: Optional[List[Optional[PhoneNumber]]] + phone_numbers: Optional[Iterable[Optional[PhoneNumber]]] preferred_name: Optional[str] """The preferred name of the individual.""" diff --git a/src/finch/types/sandbox/payment_create_params.py b/src/finch/types/sandbox/payment_create_params.py index 47587206..f1568001 100644 --- a/src/finch/types/sandbox/payment_create_params.py +++ b/src/finch/types/sandbox/payment_create_params.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import List, Optional +from typing import Iterable, Optional from typing_extensions import Literal, TypedDict from ..hris import BenefitType @@ -21,7 +21,7 @@ class PaymentCreateParams(TypedDict, total=False): end_date: str - pay_statements: List[PayStatement] + pay_statements: Iterable[PayStatement] start_date: str @@ -112,13 +112,13 @@ class PayStatementTax(TypedDict, total=False): class PayStatement(TypedDict, total=False): - earnings: Optional[List[Optional[PayStatementEarning]]] + earnings: Optional[Iterable[Optional[PayStatementEarning]]] """The array of earnings objects associated with this pay statement""" - employee_deductions: Optional[List[Optional[PayStatementEmployeeDeduction]]] + employee_deductions: Optional[Iterable[Optional[PayStatementEmployeeDeduction]]] """The array of deductions objects associated with this pay statement.""" - employer_contributions: Optional[List[Optional[PayStatementEmployerContribution]]] + employer_contributions: Optional[Iterable[Optional[PayStatementEmployerContribution]]] gross_pay: Optional[MoneyParam] @@ -130,7 +130,7 @@ class PayStatement(TypedDict, total=False): payment_method: Optional[Literal["check", "direct_deposit"]] """The payment method.""" - taxes: Optional[List[Optional[PayStatementTax]]] + taxes: Optional[Iterable[Optional[PayStatementTax]]] """The array of taxes objects associated with this pay statement.""" total_hours: Optional[float]