From 95923e9f23a1852b9fa6f6ef6a76db818178811c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 29 May 2024 12:33:36 +0000 Subject: [PATCH] feat(api): updates (#453) --- src/lithic/resources/account_holders.py | 12 +- .../external_bank_accounts.py | 172 ++++++++++++++---- .../types/account_holder_create_params.py | 2 +- .../external_bank_account_create_params.py | 57 ++++-- .../external_bank_account_create_response.py | 22 ++- .../external_bank_account_list_params.py | 4 +- .../external_bank_account_list_response.py | 22 ++- ...external_bank_account_retrieve_response.py | 22 ++- ...ank_account_retry_micro_deposits_params.py | 4 - ...k_account_retry_micro_deposits_response.py | 22 ++- .../external_bank_account_update_params.py | 14 +- .../external_bank_account_update_response.py | 22 ++- .../micro_deposit_create_response.py | 22 ++- src/lithic/types/owner_type.py | 2 +- src/lithic/types/transaction.py | 4 +- .../test_micro_deposits.py | 16 +- .../test_external_bank_accounts.py | 98 +++++----- 17 files changed, 323 insertions(+), 194 deletions(-) diff --git a/src/lithic/resources/account_holders.py b/src/lithic/resources/account_holders.py index 0c8bd480..e64b3677 100644 --- a/src/lithic/resources/account_holders.py +++ b/src/lithic/resources/account_holders.py @@ -87,9 +87,9 @@ def create( empty list. However, either this parameter or `beneficial_owner_individuals` must be populated. on entities that should be included. - beneficial_owner_individuals: List of all individuals with >25% ownership in the company. If no entity or - individual owns >25% of the company, and the largest shareholder is an - individual, please identify them in this field. See + beneficial_owner_individuals: List of all direct and indirect individuals with >25% ownership in the company. + If no entity or individual owns >25% of the company, and the largest shareholder + is an individual, please identify them in this field. See [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) (Section I) for more background on individuals that should be included. If no individual is an entity, pass in an empty list. However, either this parameter @@ -750,9 +750,9 @@ async def create( empty list. However, either this parameter or `beneficial_owner_individuals` must be populated. on entities that should be included. - beneficial_owner_individuals: List of all individuals with >25% ownership in the company. If no entity or - individual owns >25% of the company, and the largest shareholder is an - individual, please identify them in this field. See + beneficial_owner_individuals: List of all direct and indirect individuals with >25% ownership in the company. + If no entity or individual owns >25% of the company, and the largest shareholder + is an individual, please identify them in this field. See [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) (Section I) for more background on individuals that should be included. If no individual is an entity, pass in an empty list. However, either this parameter diff --git a/src/lithic/resources/external_bank_accounts/external_bank_accounts.py b/src/lithic/resources/external_bank_accounts/external_bank_accounts.py index 7446e84e..fa6a300f 100644 --- a/src/lithic/resources/external_bank_accounts/external_bank_accounts.py +++ b/src/lithic/resources/external_bank_accounts/external_bank_accounts.py @@ -71,7 +71,6 @@ def create( account_number: str, country: str, currency: str, - financial_account_token: str, owner: str, owner_type: OwnerType, routing_number: str, @@ -82,6 +81,7 @@ def create( company_id: str | NotGiven = NOT_GIVEN, dob: Union[str, date] | NotGiven = NOT_GIVEN, doing_business_as: str | NotGiven = NOT_GIVEN, + financial_account_token: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, user_defined_id: str | NotGiven = NOT_GIVEN, verification_enforcement: bool | NotGiven = NOT_GIVEN, @@ -96,18 +96,41 @@ def create( Creates an external bank account within a program or Lithic account. Args: - financial_account_token: The financial account token of the operating account, which will provide the - funds for micro deposits used to verify the account + account_number: Routing Number + + country: The country that the bank account is located in using ISO 3166-1. We will only + accept USA bank accounts e.g., USA + + currency: currency of the external account 3-digit alphabetic ISO 4217 code + + owner: Legal Name of the business or individual who owns the external account. This + will appear in statements + + owner_type: Owner Type + + routing_number: Routing Number + + type: Account Type + + verification_method: Verification Method - address: Address used during Address Verification Service (AVS) checks during - transactions if enabled via Auth Rules. + account_token: Indicates which Lithic account the external account is associated with. For + external accounts that are associated with the program, account_token field + returned will be null + + address: Address + + company_id: Optional field that helps identify bank accounts in receipts dob: Date of Birth of the Individual that owns the external bank account - verification_enforcement: Indicates whether verification was enforced for a given association record. For - MICRO_DEPOSIT, option to disable verification if the external bank account has - already been verified before. By default, verification will be required unless - users pass in a value of false + doing_business_as: Doing Business As + + financial_account_token: The financial account token of the operating account to fund the micro deposits + + name: The nickname given to this record of External Bank Account + + user_defined_id: User Defined ID extra_headers: Send extra headers @@ -143,8 +166,25 @@ def create( Creates an external bank account within a program or Lithic account. Args: + owner: Legal Name of the business or individual who owns the external account. This + will appear in statements + + owner_type: Owner Type + + verification_method: Verification Method + + account_token: Indicates which Lithic account the external account is associated with. For + external accounts that are associated with the program, account_token field + returned will be null + + company_id: Optional field that helps identify bank accounts in receipts + dob: Date of Birth of the Individual that owns the external bank account + doing_business_as: Doing Business As + + user_defined_id: User Defined ID + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -160,7 +200,6 @@ def create( "account_number", "country", "currency", - "financial_account_token", "owner", "owner_type", "routing_number", @@ -175,7 +214,6 @@ def create( account_number: str | NotGiven = NOT_GIVEN, country: str | NotGiven = NOT_GIVEN, currency: str | NotGiven = NOT_GIVEN, - financial_account_token: str | NotGiven = NOT_GIVEN, owner: str, owner_type: OwnerType, routing_number: str | NotGiven = NOT_GIVEN, @@ -186,6 +224,7 @@ def create( company_id: str | NotGiven = NOT_GIVEN, dob: Union[str, date] | NotGiven = NOT_GIVEN, doing_business_as: str | NotGiven = NOT_GIVEN, + financial_account_token: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, user_defined_id: str | NotGiven = NOT_GIVEN, verification_enforcement: bool | NotGiven = NOT_GIVEN, @@ -204,7 +243,6 @@ def create( "account_number": account_number, "country": country, "currency": currency, - "financial_account_token": financial_account_token, "owner": owner, "owner_type": owner_type, "routing_number": routing_number, @@ -215,6 +253,7 @@ def create( "company_id": company_id, "dob": dob, "doing_business_as": doing_business_as, + "financial_account_token": financial_account_token, "name": name, "user_defined_id": user_defined_id, "verification_enforcement": verification_enforcement, @@ -286,11 +325,23 @@ def update( Update the external bank account by token. Args: - address: Address used during Address Verification Service (AVS) checks during - transactions if enabled via Auth Rules. + address: Address + + company_id: Optional field that helps identify bank accounts in receipts dob: Date of Birth of the Individual that owns the external bank account + doing_business_as: Doing Business As + + name: The nickname given to this record of External Bank Account + + owner: Legal Name of the business or individual who owns the external account. This + will appear in statements + + owner_type: Owner Type + + user_defined_id: User Defined ID + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -334,8 +385,8 @@ def list( owner_types: List[OwnerType] | NotGiven = NOT_GIVEN, page_size: int | NotGiven = NOT_GIVEN, starting_after: str | NotGiven = NOT_GIVEN, - states: List[Literal["CLOSED", "ENABLED", "PAUSED"]] | NotGiven = NOT_GIVEN, - verification_states: List[Literal["ENABLED", "FAILED_VERIFICATION", "INSUFFICIENT_FUNDS", "PENDING"]] + states: List[Literal["ENABLED", "CLOSED", "PAUSED"]] | NotGiven = NOT_GIVEN, + verification_states: List[Literal["PENDING", "ENABLED", "FAILED_VERIFICATION", "INSUFFICIENT_FUNDS"]] | 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. @@ -406,9 +457,6 @@ def retry_micro_deposits( Retry external bank account micro deposit verification. Args: - financial_account_token: The financial account token of the operating account, which will provide the - funds for micro deposits used to verify the account - extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -454,7 +502,6 @@ async def create( account_number: str, country: str, currency: str, - financial_account_token: str, owner: str, owner_type: OwnerType, routing_number: str, @@ -465,6 +512,7 @@ async def create( company_id: str | NotGiven = NOT_GIVEN, dob: Union[str, date] | NotGiven = NOT_GIVEN, doing_business_as: str | NotGiven = NOT_GIVEN, + financial_account_token: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, user_defined_id: str | NotGiven = NOT_GIVEN, verification_enforcement: bool | NotGiven = NOT_GIVEN, @@ -479,18 +527,41 @@ async def create( Creates an external bank account within a program or Lithic account. Args: - financial_account_token: The financial account token of the operating account, which will provide the - funds for micro deposits used to verify the account + account_number: Routing Number + + country: The country that the bank account is located in using ISO 3166-1. We will only + accept USA bank accounts e.g., USA + + currency: currency of the external account 3-digit alphabetic ISO 4217 code + + owner: Legal Name of the business or individual who owns the external account. This + will appear in statements + + owner_type: Owner Type + + routing_number: Routing Number + + type: Account Type + + verification_method: Verification Method - address: Address used during Address Verification Service (AVS) checks during - transactions if enabled via Auth Rules. + account_token: Indicates which Lithic account the external account is associated with. For + external accounts that are associated with the program, account_token field + returned will be null + + address: Address + + company_id: Optional field that helps identify bank accounts in receipts dob: Date of Birth of the Individual that owns the external bank account - verification_enforcement: Indicates whether verification was enforced for a given association record. For - MICRO_DEPOSIT, option to disable verification if the external bank account has - already been verified before. By default, verification will be required unless - users pass in a value of false + doing_business_as: Doing Business As + + financial_account_token: The financial account token of the operating account to fund the micro deposits + + name: The nickname given to this record of External Bank Account + + user_defined_id: User Defined ID extra_headers: Send extra headers @@ -526,8 +597,25 @@ async def create( Creates an external bank account within a program or Lithic account. Args: + owner: Legal Name of the business or individual who owns the external account. This + will appear in statements + + owner_type: Owner Type + + verification_method: Verification Method + + account_token: Indicates which Lithic account the external account is associated with. For + external accounts that are associated with the program, account_token field + returned will be null + + company_id: Optional field that helps identify bank accounts in receipts + dob: Date of Birth of the Individual that owns the external bank account + doing_business_as: Doing Business As + + user_defined_id: User Defined ID + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -543,7 +631,6 @@ async def create( "account_number", "country", "currency", - "financial_account_token", "owner", "owner_type", "routing_number", @@ -558,7 +645,6 @@ async def create( account_number: str | NotGiven = NOT_GIVEN, country: str | NotGiven = NOT_GIVEN, currency: str | NotGiven = NOT_GIVEN, - financial_account_token: str | NotGiven = NOT_GIVEN, owner: str, owner_type: OwnerType, routing_number: str | NotGiven = NOT_GIVEN, @@ -569,6 +655,7 @@ async def create( company_id: str | NotGiven = NOT_GIVEN, dob: Union[str, date] | NotGiven = NOT_GIVEN, doing_business_as: str | NotGiven = NOT_GIVEN, + financial_account_token: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, user_defined_id: str | NotGiven = NOT_GIVEN, verification_enforcement: bool | NotGiven = NOT_GIVEN, @@ -587,7 +674,6 @@ async def create( "account_number": account_number, "country": country, "currency": currency, - "financial_account_token": financial_account_token, "owner": owner, "owner_type": owner_type, "routing_number": routing_number, @@ -598,6 +684,7 @@ async def create( "company_id": company_id, "dob": dob, "doing_business_as": doing_business_as, + "financial_account_token": financial_account_token, "name": name, "user_defined_id": user_defined_id, "verification_enforcement": verification_enforcement, @@ -669,11 +756,23 @@ async def update( Update the external bank account by token. Args: - address: Address used during Address Verification Service (AVS) checks during - transactions if enabled via Auth Rules. + address: Address + + company_id: Optional field that helps identify bank accounts in receipts dob: Date of Birth of the Individual that owns the external bank account + doing_business_as: Doing Business As + + name: The nickname given to this record of External Bank Account + + owner: Legal Name of the business or individual who owns the external account. This + will appear in statements + + owner_type: Owner Type + + user_defined_id: User Defined ID + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -717,8 +816,8 @@ def list( owner_types: List[OwnerType] | NotGiven = NOT_GIVEN, page_size: int | NotGiven = NOT_GIVEN, starting_after: str | NotGiven = NOT_GIVEN, - states: List[Literal["CLOSED", "ENABLED", "PAUSED"]] | NotGiven = NOT_GIVEN, - verification_states: List[Literal["ENABLED", "FAILED_VERIFICATION", "INSUFFICIENT_FUNDS", "PENDING"]] + states: List[Literal["ENABLED", "CLOSED", "PAUSED"]] | NotGiven = NOT_GIVEN, + verification_states: List[Literal["PENDING", "ENABLED", "FAILED_VERIFICATION", "INSUFFICIENT_FUNDS"]] | 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. @@ -789,9 +888,6 @@ async def retry_micro_deposits( Retry external bank account micro deposit verification. Args: - financial_account_token: The financial account token of the operating account, which will provide the - funds for micro deposits used to verify the account - extra_headers: Send extra headers extra_query: Add additional query parameters to the request diff --git a/src/lithic/types/account_holder_create_params.py b/src/lithic/types/account_holder_create_params.py index 1acae33d..4deb3197 100644 --- a/src/lithic/types/account_holder_create_params.py +++ b/src/lithic/types/account_holder_create_params.py @@ -33,7 +33,7 @@ class KYB(TypedDict, total=False): """ beneficial_owner_individuals: Required[Iterable[KYBBeneficialOwnerIndividual]] - """List of all individuals with >25% ownership in the company. + """List of all direct and indirect individuals with >25% ownership in the company. If no entity or individual owns >25% of the company, and the largest shareholder is an individual, please identify them in this field. See diff --git a/src/lithic/types/external_bank_account_create_params.py b/src/lithic/types/external_bank_account_create_params.py index 4a86429b..070e1b7a 100644 --- a/src/lithic/types/external_bank_account_create_params.py +++ b/src/lithic/types/external_bank_account_create_params.py @@ -20,74 +20,99 @@ class BankVerifiedCreateBankAccountAPIRequest(TypedDict, total=False): account_number: Required[str] + """Routing Number""" country: Required[str] + """The country that the bank account is located in using ISO 3166-1. - currency: Required[str] - - financial_account_token: Required[str] - """ - The financial account token of the operating account, which will provide the - funds for micro deposits used to verify the account + We will only accept USA bank accounts e.g., USA """ + currency: Required[str] + """currency of the external account 3-digit alphabetic ISO 4217 code""" + owner: Required[str] + """Legal Name of the business or individual who owns the external account. + + This will appear in statements + """ owner_type: Required[OwnerType] + """Owner Type""" routing_number: Required[str] + """Routing Number""" type: Required[Literal["CHECKING", "SAVINGS"]] + """Account Type""" verification_method: Required[VerificationMethod] + """Verification Method""" account_token: str + """Indicates which Lithic account the external account is associated with. - address: ExternalBankAccountAddressParam - """ - Address used during Address Verification Service (AVS) checks during - transactions if enabled via Auth Rules. + For external accounts that are associated with the program, account_token field + returned will be null """ + address: ExternalBankAccountAddressParam + """Address""" + company_id: str + """Optional field that helps identify bank accounts in receipts""" dob: Annotated[Union[str, date], PropertyInfo(format="iso8601")] """Date of Birth of the Individual that owns the external bank account""" doing_business_as: str + """Doing Business As""" + + financial_account_token: str + """The financial account token of the operating account to fund the micro deposits""" name: str + """The nickname given to this record of External Bank Account""" user_defined_id: str + """User Defined ID""" verification_enforcement: bool - """Indicates whether verification was enforced for a given association record. - - For MICRO_DEPOSIT, option to disable verification if the external bank account - has already been verified before. By default, verification will be required - unless users pass in a value of false - """ class PlaidCreateBankAccountAPIRequest(TypedDict, total=False): owner: Required[str] + """Legal Name of the business or individual who owns the external account. + + This will appear in statements + """ owner_type: Required[OwnerType] + """Owner Type""" processor_token: Required[str] verification_method: Required[VerificationMethod] + """Verification Method""" account_token: str + """Indicates which Lithic account the external account is associated with. + + For external accounts that are associated with the program, account_token field + returned will be null + """ company_id: str + """Optional field that helps identify bank accounts in receipts""" dob: Annotated[Union[str, date], PropertyInfo(format="iso8601")] """Date of Birth of the Individual that owns the external bank account""" doing_business_as: str + """Doing Business As""" user_defined_id: str + """User Defined ID""" ExternalBankAccountAddress = ExternalBankAccountAddressParam diff --git a/src/lithic/types/external_bank_account_create_response.py b/src/lithic/types/external_bank_account_create_response.py index c41871a4..091f7caf 100644 --- a/src/lithic/types/external_bank_account_create_response.py +++ b/src/lithic/types/external_bank_account_create_response.py @@ -47,19 +47,25 @@ class ExternalBankAccountCreateResponse(BaseModel): """ owner_type: Literal["BUSINESS", "INDIVIDUAL"] + """Owner Type""" routing_number: str + """Routing Number""" - state: Literal["CLOSED", "ENABLED", "PAUSED"] + state: Literal["ENABLED", "CLOSED", "PAUSED"] + """Account State""" type: Literal["CHECKING", "SAVINGS"] + """Account Type""" verification_attempts: int """The number of attempts at verification""" verification_method: Literal["MANUAL", "MICRO_DEPOSIT", "PLAID", "PRENOTE"] + """Verification Method""" - verification_state: Literal["ENABLED", "FAILED_VERIFICATION", "INSUFFICIENT_FUNDS", "PENDING"] + verification_state: Literal["PENDING", "ENABLED", "FAILED_VERIFICATION", "INSUFFICIENT_FUNDS"] + """Verification State""" account_token: Optional[str] = None """Indicates which Lithic account the external account is associated with. @@ -69,10 +75,7 @@ class ExternalBankAccountCreateResponse(BaseModel): """ address: Optional[ExternalBankAccountAddress] = None - """ - Address used during Address Verification Service (AVS) checks during - transactions if enabled via Auth Rules. - """ + """Address""" company_id: Optional[str] = None """Optional field that helps identify bank accounts in receipts""" @@ -81,17 +84,16 @@ class ExternalBankAccountCreateResponse(BaseModel): """Date of Birth of the Individual that owns the external bank account""" doing_business_as: Optional[str] = None + """Doing Business As""" financial_account_token: Optional[str] = None - """ - The financial account token of the operating account, which will provide the - funds for micro deposits used to verify the account - """ + """The financial account token of the operating account to fund the micro deposits""" name: Optional[str] = None """The nickname given to this record of External Bank Account""" user_defined_id: Optional[str] = None + """User Defined ID""" verification_failed_reason: Optional[str] = None """Optional free text description of the reason for the failed verification. diff --git a/src/lithic/types/external_bank_account_list_params.py b/src/lithic/types/external_bank_account_list_params.py index fb82767e..4a0a267d 100644 --- a/src/lithic/types/external_bank_account_list_params.py +++ b/src/lithic/types/external_bank_account_list_params.py @@ -35,6 +35,6 @@ class ExternalBankAccountListParams(TypedDict, total=False): Used to retrieve the next page of results after this item. """ - states: List[Literal["CLOSED", "ENABLED", "PAUSED"]] + states: List[Literal["ENABLED", "CLOSED", "PAUSED"]] - verification_states: List[Literal["ENABLED", "FAILED_VERIFICATION", "INSUFFICIENT_FUNDS", "PENDING"]] + verification_states: List[Literal["PENDING", "ENABLED", "FAILED_VERIFICATION", "INSUFFICIENT_FUNDS"]] diff --git a/src/lithic/types/external_bank_account_list_response.py b/src/lithic/types/external_bank_account_list_response.py index 688e5016..8e55db12 100644 --- a/src/lithic/types/external_bank_account_list_response.py +++ b/src/lithic/types/external_bank_account_list_response.py @@ -47,19 +47,25 @@ class ExternalBankAccountListResponse(BaseModel): """ owner_type: Literal["BUSINESS", "INDIVIDUAL"] + """Owner Type""" routing_number: str + """Routing Number""" - state: Literal["CLOSED", "ENABLED", "PAUSED"] + state: Literal["ENABLED", "CLOSED", "PAUSED"] + """Account State""" type: Literal["CHECKING", "SAVINGS"] + """Account Type""" verification_attempts: int """The number of attempts at verification""" verification_method: Literal["MANUAL", "MICRO_DEPOSIT", "PLAID", "PRENOTE"] + """Verification Method""" - verification_state: Literal["ENABLED", "FAILED_VERIFICATION", "INSUFFICIENT_FUNDS", "PENDING"] + verification_state: Literal["PENDING", "ENABLED", "FAILED_VERIFICATION", "INSUFFICIENT_FUNDS"] + """Verification State""" account_token: Optional[str] = None """Indicates which Lithic account the external account is associated with. @@ -69,10 +75,7 @@ class ExternalBankAccountListResponse(BaseModel): """ address: Optional[ExternalBankAccountAddress] = None - """ - Address used during Address Verification Service (AVS) checks during - transactions if enabled via Auth Rules. - """ + """Address""" company_id: Optional[str] = None """Optional field that helps identify bank accounts in receipts""" @@ -81,17 +84,16 @@ class ExternalBankAccountListResponse(BaseModel): """Date of Birth of the Individual that owns the external bank account""" doing_business_as: Optional[str] = None + """Doing Business As""" financial_account_token: Optional[str] = None - """ - The financial account token of the operating account, which will provide the - funds for micro deposits used to verify the account - """ + """The financial account token of the operating account to fund the micro deposits""" name: Optional[str] = None """The nickname given to this record of External Bank Account""" user_defined_id: Optional[str] = None + """User Defined ID""" verification_failed_reason: Optional[str] = None """Optional free text description of the reason for the failed verification. diff --git a/src/lithic/types/external_bank_account_retrieve_response.py b/src/lithic/types/external_bank_account_retrieve_response.py index 2f3b5898..3e653295 100644 --- a/src/lithic/types/external_bank_account_retrieve_response.py +++ b/src/lithic/types/external_bank_account_retrieve_response.py @@ -47,19 +47,25 @@ class ExternalBankAccountRetrieveResponse(BaseModel): """ owner_type: Literal["BUSINESS", "INDIVIDUAL"] + """Owner Type""" routing_number: str + """Routing Number""" - state: Literal["CLOSED", "ENABLED", "PAUSED"] + state: Literal["ENABLED", "CLOSED", "PAUSED"] + """Account State""" type: Literal["CHECKING", "SAVINGS"] + """Account Type""" verification_attempts: int """The number of attempts at verification""" verification_method: Literal["MANUAL", "MICRO_DEPOSIT", "PLAID", "PRENOTE"] + """Verification Method""" - verification_state: Literal["ENABLED", "FAILED_VERIFICATION", "INSUFFICIENT_FUNDS", "PENDING"] + verification_state: Literal["PENDING", "ENABLED", "FAILED_VERIFICATION", "INSUFFICIENT_FUNDS"] + """Verification State""" account_token: Optional[str] = None """Indicates which Lithic account the external account is associated with. @@ -69,10 +75,7 @@ class ExternalBankAccountRetrieveResponse(BaseModel): """ address: Optional[ExternalBankAccountAddress] = None - """ - Address used during Address Verification Service (AVS) checks during - transactions if enabled via Auth Rules. - """ + """Address""" company_id: Optional[str] = None """Optional field that helps identify bank accounts in receipts""" @@ -81,17 +84,16 @@ class ExternalBankAccountRetrieveResponse(BaseModel): """Date of Birth of the Individual that owns the external bank account""" doing_business_as: Optional[str] = None + """Doing Business As""" financial_account_token: Optional[str] = None - """ - The financial account token of the operating account, which will provide the - funds for micro deposits used to verify the account - """ + """The financial account token of the operating account to fund the micro deposits""" name: Optional[str] = None """The nickname given to this record of External Bank Account""" user_defined_id: Optional[str] = None + """User Defined ID""" verification_failed_reason: Optional[str] = None """Optional free text description of the reason for the failed verification. diff --git a/src/lithic/types/external_bank_account_retry_micro_deposits_params.py b/src/lithic/types/external_bank_account_retry_micro_deposits_params.py index b24d20fc..97bfa30b 100644 --- a/src/lithic/types/external_bank_account_retry_micro_deposits_params.py +++ b/src/lithic/types/external_bank_account_retry_micro_deposits_params.py @@ -9,7 +9,3 @@ class ExternalBankAccountRetryMicroDepositsParams(TypedDict, total=False): financial_account_token: str - """ - The financial account token of the operating account, which will provide the - funds for micro deposits used to verify the account - """ diff --git a/src/lithic/types/external_bank_account_retry_micro_deposits_response.py b/src/lithic/types/external_bank_account_retry_micro_deposits_response.py index 4eb7e748..998ceca4 100644 --- a/src/lithic/types/external_bank_account_retry_micro_deposits_response.py +++ b/src/lithic/types/external_bank_account_retry_micro_deposits_response.py @@ -47,19 +47,25 @@ class ExternalBankAccountRetryMicroDepositsResponse(BaseModel): """ owner_type: Literal["BUSINESS", "INDIVIDUAL"] + """Owner Type""" routing_number: str + """Routing Number""" - state: Literal["CLOSED", "ENABLED", "PAUSED"] + state: Literal["ENABLED", "CLOSED", "PAUSED"] + """Account State""" type: Literal["CHECKING", "SAVINGS"] + """Account Type""" verification_attempts: int """The number of attempts at verification""" verification_method: Literal["MANUAL", "MICRO_DEPOSIT", "PLAID", "PRENOTE"] + """Verification Method""" - verification_state: Literal["ENABLED", "FAILED_VERIFICATION", "INSUFFICIENT_FUNDS", "PENDING"] + verification_state: Literal["PENDING", "ENABLED", "FAILED_VERIFICATION", "INSUFFICIENT_FUNDS"] + """Verification State""" account_token: Optional[str] = None """Indicates which Lithic account the external account is associated with. @@ -69,10 +75,7 @@ class ExternalBankAccountRetryMicroDepositsResponse(BaseModel): """ address: Optional[ExternalBankAccountAddress] = None - """ - Address used during Address Verification Service (AVS) checks during - transactions if enabled via Auth Rules. - """ + """Address""" company_id: Optional[str] = None """Optional field that helps identify bank accounts in receipts""" @@ -81,17 +84,16 @@ class ExternalBankAccountRetryMicroDepositsResponse(BaseModel): """Date of Birth of the Individual that owns the external bank account""" doing_business_as: Optional[str] = None + """Doing Business As""" financial_account_token: Optional[str] = None - """ - The financial account token of the operating account, which will provide the - funds for micro deposits used to verify the account - """ + """The financial account token of the operating account to fund the micro deposits""" name: Optional[str] = None """The nickname given to this record of External Bank Account""" user_defined_id: Optional[str] = None + """User Defined ID""" verification_failed_reason: Optional[str] = None """Optional free text description of the reason for the failed verification. diff --git a/src/lithic/types/external_bank_account_update_params.py b/src/lithic/types/external_bank_account_update_params.py index 5feadf0c..a570098d 100644 --- a/src/lithic/types/external_bank_account_update_params.py +++ b/src/lithic/types/external_bank_account_update_params.py @@ -15,25 +15,31 @@ class ExternalBankAccountUpdateParams(TypedDict, total=False): address: ExternalBankAccountAddressParam - """ - Address used during Address Verification Service (AVS) checks during - transactions if enabled via Auth Rules. - """ + """Address""" company_id: str + """Optional field that helps identify bank accounts in receipts""" dob: Annotated[Union[str, date], PropertyInfo(format="iso8601")] """Date of Birth of the Individual that owns the external bank account""" doing_business_as: str + """Doing Business As""" name: str + """The nickname given to this record of External Bank Account""" owner: str + """Legal Name of the business or individual who owns the external account. + + This will appear in statements + """ owner_type: OwnerType + """Owner Type""" user_defined_id: str + """User Defined ID""" ExternalBankAccountAddress = ExternalBankAccountAddressParam diff --git a/src/lithic/types/external_bank_account_update_response.py b/src/lithic/types/external_bank_account_update_response.py index 9ff881da..d3ce1443 100644 --- a/src/lithic/types/external_bank_account_update_response.py +++ b/src/lithic/types/external_bank_account_update_response.py @@ -47,19 +47,25 @@ class ExternalBankAccountUpdateResponse(BaseModel): """ owner_type: Literal["BUSINESS", "INDIVIDUAL"] + """Owner Type""" routing_number: str + """Routing Number""" - state: Literal["CLOSED", "ENABLED", "PAUSED"] + state: Literal["ENABLED", "CLOSED", "PAUSED"] + """Account State""" type: Literal["CHECKING", "SAVINGS"] + """Account Type""" verification_attempts: int """The number of attempts at verification""" verification_method: Literal["MANUAL", "MICRO_DEPOSIT", "PLAID", "PRENOTE"] + """Verification Method""" - verification_state: Literal["ENABLED", "FAILED_VERIFICATION", "INSUFFICIENT_FUNDS", "PENDING"] + verification_state: Literal["PENDING", "ENABLED", "FAILED_VERIFICATION", "INSUFFICIENT_FUNDS"] + """Verification State""" account_token: Optional[str] = None """Indicates which Lithic account the external account is associated with. @@ -69,10 +75,7 @@ class ExternalBankAccountUpdateResponse(BaseModel): """ address: Optional[ExternalBankAccountAddress] = None - """ - Address used during Address Verification Service (AVS) checks during - transactions if enabled via Auth Rules. - """ + """Address""" company_id: Optional[str] = None """Optional field that helps identify bank accounts in receipts""" @@ -81,17 +84,16 @@ class ExternalBankAccountUpdateResponse(BaseModel): """Date of Birth of the Individual that owns the external bank account""" doing_business_as: Optional[str] = None + """Doing Business As""" financial_account_token: Optional[str] = None - """ - The financial account token of the operating account, which will provide the - funds for micro deposits used to verify the account - """ + """The financial account token of the operating account to fund the micro deposits""" name: Optional[str] = None """The nickname given to this record of External Bank Account""" user_defined_id: Optional[str] = None + """User Defined ID""" verification_failed_reason: Optional[str] = None """Optional free text description of the reason for the failed verification. diff --git a/src/lithic/types/external_bank_accounts/micro_deposit_create_response.py b/src/lithic/types/external_bank_accounts/micro_deposit_create_response.py index 6f6b6ecb..c66d5ed9 100644 --- a/src/lithic/types/external_bank_accounts/micro_deposit_create_response.py +++ b/src/lithic/types/external_bank_accounts/micro_deposit_create_response.py @@ -47,19 +47,25 @@ class MicroDepositCreateResponse(BaseModel): """ owner_type: Literal["BUSINESS", "INDIVIDUAL"] + """Owner Type""" routing_number: str + """Routing Number""" - state: Literal["CLOSED", "ENABLED", "PAUSED"] + state: Literal["ENABLED", "CLOSED", "PAUSED"] + """Account State""" type: Literal["CHECKING", "SAVINGS"] + """Account Type""" verification_attempts: int """The number of attempts at verification""" verification_method: Literal["MANUAL", "MICRO_DEPOSIT", "PLAID", "PRENOTE"] + """Verification Method""" - verification_state: Literal["ENABLED", "FAILED_VERIFICATION", "INSUFFICIENT_FUNDS", "PENDING"] + verification_state: Literal["PENDING", "ENABLED", "FAILED_VERIFICATION", "INSUFFICIENT_FUNDS"] + """Verification State""" account_token: Optional[str] = None """Indicates which Lithic account the external account is associated with. @@ -69,10 +75,7 @@ class MicroDepositCreateResponse(BaseModel): """ address: Optional[ExternalBankAccountAddress] = None - """ - Address used during Address Verification Service (AVS) checks during - transactions if enabled via Auth Rules. - """ + """Address""" company_id: Optional[str] = None """Optional field that helps identify bank accounts in receipts""" @@ -81,17 +84,16 @@ class MicroDepositCreateResponse(BaseModel): """Date of Birth of the Individual that owns the external bank account""" doing_business_as: Optional[str] = None + """Doing Business As""" financial_account_token: Optional[str] = None - """ - The financial account token of the operating account, which will provide the - funds for micro deposits used to verify the account - """ + """The financial account token of the operating account to fund the micro deposits""" name: Optional[str] = None """The nickname given to this record of External Bank Account""" user_defined_id: Optional[str] = None + """User Defined ID""" verification_failed_reason: Optional[str] = None """Optional free text description of the reason for the failed verification. diff --git a/src/lithic/types/owner_type.py b/src/lithic/types/owner_type.py index f30ad4a4..4bd62436 100644 --- a/src/lithic/types/owner_type.py +++ b/src/lithic/types/owner_type.py @@ -4,4 +4,4 @@ __all__ = ["OwnerType"] -OwnerType = Literal["BUSINESS", "INDIVIDUAL"] +OwnerType = Literal["INDIVIDUAL", "BUSINESS"] diff --git a/src/lithic/types/transaction.py b/src/lithic/types/transaction.py index 65912e21..af240f07 100644 --- a/src/lithic/types/transaction.py +++ b/src/lithic/types/transaction.py @@ -68,11 +68,10 @@ class Event(BaseModel): "CUSTOM_ASA_RESULT", "DECLINED", "DO_NOT_HONOR", + "DRIVER_NUMBER_INVALID", "FORMAT_ERROR", "INSUFFICIENT_FUNDING_SOURCE_BALANCE", "INSUFFICIENT_FUNDS", - "INVALID_DRIVER", - "INVALID_VEHICLE", "LITHIC_SYSTEM_ERROR", "LITHIC_SYSTEM_RATE_LIMIT", "MALFORMED_ASA_RESPONSE", @@ -91,6 +90,7 @@ class Event(BaseModel): "TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER", "TRANSACTION_PREVIOUSLY_COMPLETED", "UNAUTHORIZED_MERCHANT", + "VEHICLE_NUMBER_INVALID", ] ] diff --git a/tests/api_resources/external_bank_accounts/test_micro_deposits.py b/tests/api_resources/external_bank_accounts/test_micro_deposits.py index aff82ad3..d38aee51 100644 --- a/tests/api_resources/external_bank_accounts/test_micro_deposits.py +++ b/tests/api_resources/external_bank_accounts/test_micro_deposits.py @@ -21,7 +21,7 @@ class TestMicroDeposits: def test_method_create(self, client: Lithic) -> None: micro_deposit = client.external_bank_accounts.micro_deposits.create( "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", - micro_deposits=[0, 0, 0], + micro_deposits=[0, 0], ) assert_matches_type(MicroDepositCreateResponse, micro_deposit, path=["response"]) @@ -29,7 +29,7 @@ def test_method_create(self, client: Lithic) -> None: def test_raw_response_create(self, client: Lithic) -> None: response = client.external_bank_accounts.micro_deposits.with_raw_response.create( "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", - micro_deposits=[0, 0, 0], + micro_deposits=[0, 0], ) assert response.is_closed is True @@ -41,7 +41,7 @@ def test_raw_response_create(self, client: Lithic) -> None: def test_streaming_response_create(self, client: Lithic) -> None: with client.external_bank_accounts.micro_deposits.with_streaming_response.create( "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", - micro_deposits=[0, 0, 0], + micro_deposits=[0, 0], ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -58,7 +58,7 @@ def test_path_params_create(self, client: Lithic) -> None: ): client.external_bank_accounts.micro_deposits.with_raw_response.create( "", - micro_deposits=[0, 0, 0], + micro_deposits=[0, 0], ) @@ -69,7 +69,7 @@ class TestAsyncMicroDeposits: async def test_method_create(self, async_client: AsyncLithic) -> None: micro_deposit = await async_client.external_bank_accounts.micro_deposits.create( "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", - micro_deposits=[0, 0, 0], + micro_deposits=[0, 0], ) assert_matches_type(MicroDepositCreateResponse, micro_deposit, path=["response"]) @@ -77,7 +77,7 @@ async def test_method_create(self, async_client: AsyncLithic) -> None: async def test_raw_response_create(self, async_client: AsyncLithic) -> None: response = await async_client.external_bank_accounts.micro_deposits.with_raw_response.create( "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", - micro_deposits=[0, 0, 0], + micro_deposits=[0, 0], ) assert response.is_closed is True @@ -89,7 +89,7 @@ async def test_raw_response_create(self, async_client: AsyncLithic) -> None: async def test_streaming_response_create(self, async_client: AsyncLithic) -> None: async with async_client.external_bank_accounts.micro_deposits.with_streaming_response.create( "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", - micro_deposits=[0, 0, 0], + micro_deposits=[0, 0], ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -106,5 +106,5 @@ async def test_path_params_create(self, async_client: AsyncLithic) -> None: ): await async_client.external_bank_accounts.micro_deposits.with_raw_response.create( "", - micro_deposits=[0, 0, 0], + micro_deposits=[0, 0], ) diff --git a/tests/api_resources/test_external_bank_accounts.py b/tests/api_resources/test_external_bank_accounts.py index eddabef3..4725283d 100644 --- a/tests/api_resources/test_external_bank_accounts.py +++ b/tests/api_resources/test_external_bank_accounts.py @@ -31,9 +31,8 @@ def test_method_create_overload_1(self, client: Lithic) -> None: account_number="12345678901234567", country="USD", currency="USD", - financial_account_token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", owner="x", - owner_type="BUSINESS", + owner_type="INDIVIDUAL", routing_number="123456789", type="CHECKING", verification_method="MANUAL", @@ -46,9 +45,8 @@ def test_method_create_with_all_params_overload_1(self, client: Lithic) -> None: account_number="12345678901234567", country="USD", currency="USD", - financial_account_token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", owner="x", - owner_type="BUSINESS", + owner_type="INDIVIDUAL", routing_number="123456789", type="CHECKING", verification_method="MANUAL", @@ -57,15 +55,16 @@ def test_method_create_with_all_params_overload_1(self, client: Lithic) -> None: "address1": "x", "address2": "x", "city": "x", - "country": "USD", - "postal_code": "11201", "state": "xx", + "postal_code": "11201", + "country": "USD", }, company_id="x", dob=parse_date("2019-12-27"), - doing_business_as="string", + doing_business_as="x", + financial_account_token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", name="x", - user_defined_id="string", + user_defined_id="x", verification_enforcement=True, ) assert_matches_type(ExternalBankAccountCreateResponse, external_bank_account, path=["response"]) @@ -76,9 +75,8 @@ def test_raw_response_create_overload_1(self, client: Lithic) -> None: account_number="12345678901234567", country="USD", currency="USD", - financial_account_token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", owner="x", - owner_type="BUSINESS", + owner_type="INDIVIDUAL", routing_number="123456789", type="CHECKING", verification_method="MANUAL", @@ -95,9 +93,8 @@ def test_streaming_response_create_overload_1(self, client: Lithic) -> None: account_number="12345678901234567", country="USD", currency="USD", - financial_account_token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", owner="x", - owner_type="BUSINESS", + owner_type="INDIVIDUAL", routing_number="123456789", type="CHECKING", verification_method="MANUAL", @@ -114,7 +111,7 @@ def test_streaming_response_create_overload_1(self, client: Lithic) -> None: def test_method_create_overload_2(self, client: Lithic) -> None: external_bank_account = client.external_bank_accounts.create( owner="x", - owner_type="BUSINESS", + owner_type="INDIVIDUAL", processor_token="x", verification_method="MANUAL", ) @@ -124,14 +121,14 @@ def test_method_create_overload_2(self, client: Lithic) -> None: def test_method_create_with_all_params_overload_2(self, client: Lithic) -> None: external_bank_account = client.external_bank_accounts.create( owner="x", - owner_type="BUSINESS", + owner_type="INDIVIDUAL", processor_token="x", verification_method="MANUAL", account_token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", company_id="x", dob=parse_date("2019-12-27"), - doing_business_as="string", - user_defined_id="string", + doing_business_as="x", + user_defined_id="x", ) assert_matches_type(ExternalBankAccountCreateResponse, external_bank_account, path=["response"]) @@ -139,7 +136,7 @@ def test_method_create_with_all_params_overload_2(self, client: Lithic) -> None: def test_raw_response_create_overload_2(self, client: Lithic) -> None: response = client.external_bank_accounts.with_raw_response.create( owner="x", - owner_type="BUSINESS", + owner_type="INDIVIDUAL", processor_token="x", verification_method="MANUAL", ) @@ -153,7 +150,7 @@ def test_raw_response_create_overload_2(self, client: Lithic) -> None: def test_streaming_response_create_overload_2(self, client: Lithic) -> None: with client.external_bank_accounts.with_streaming_response.create( owner="x", - owner_type="BUSINESS", + owner_type="INDIVIDUAL", processor_token="x", verification_method="MANUAL", ) as response: @@ -220,17 +217,17 @@ def test_method_update_with_all_params(self, client: Lithic) -> None: "address1": "x", "address2": "x", "city": "x", - "country": "USD", - "postal_code": "11201", "state": "xx", + "postal_code": "11201", + "country": "USD", }, company_id="x", dob=parse_date("2019-12-27"), - doing_business_as="string", + doing_business_as="x", name="x", owner="x", - owner_type="BUSINESS", - user_defined_id="string", + owner_type="INDIVIDUAL", + user_defined_id="x", ) assert_matches_type(ExternalBankAccountUpdateResponse, external_bank_account, path=["response"]) @@ -279,11 +276,11 @@ def test_method_list_with_all_params(self, client: Lithic) -> None: account_types=["CHECKING", "SAVINGS"], countries=["string", "string", "string"], ending_before="string", - owner_types=["BUSINESS", "INDIVIDUAL"], + owner_types=["INDIVIDUAL", "BUSINESS"], page_size=1, starting_after="string", - states=["CLOSED", "ENABLED", "PAUSED"], - verification_states=["ENABLED", "FAILED_VERIFICATION", "INSUFFICIENT_FUNDS"], + states=["ENABLED", "CLOSED", "PAUSED"], + verification_states=["PENDING", "ENABLED", "FAILED_VERIFICATION"], ) assert_matches_type(SyncCursorPage[ExternalBankAccountListResponse], external_bank_account, path=["response"]) @@ -367,9 +364,8 @@ async def test_method_create_overload_1(self, async_client: AsyncLithic) -> None account_number="12345678901234567", country="USD", currency="USD", - financial_account_token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", owner="x", - owner_type="BUSINESS", + owner_type="INDIVIDUAL", routing_number="123456789", type="CHECKING", verification_method="MANUAL", @@ -382,9 +378,8 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn account_number="12345678901234567", country="USD", currency="USD", - financial_account_token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", owner="x", - owner_type="BUSINESS", + owner_type="INDIVIDUAL", routing_number="123456789", type="CHECKING", verification_method="MANUAL", @@ -393,15 +388,16 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn "address1": "x", "address2": "x", "city": "x", - "country": "USD", - "postal_code": "11201", "state": "xx", + "postal_code": "11201", + "country": "USD", }, company_id="x", dob=parse_date("2019-12-27"), - doing_business_as="string", + doing_business_as="x", + financial_account_token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", name="x", - user_defined_id="string", + user_defined_id="x", verification_enforcement=True, ) assert_matches_type(ExternalBankAccountCreateResponse, external_bank_account, path=["response"]) @@ -412,9 +408,8 @@ async def test_raw_response_create_overload_1(self, async_client: AsyncLithic) - account_number="12345678901234567", country="USD", currency="USD", - financial_account_token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", owner="x", - owner_type="BUSINESS", + owner_type="INDIVIDUAL", routing_number="123456789", type="CHECKING", verification_method="MANUAL", @@ -431,9 +426,8 @@ async def test_streaming_response_create_overload_1(self, async_client: AsyncLit account_number="12345678901234567", country="USD", currency="USD", - financial_account_token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", owner="x", - owner_type="BUSINESS", + owner_type="INDIVIDUAL", routing_number="123456789", type="CHECKING", verification_method="MANUAL", @@ -450,7 +444,7 @@ async def test_streaming_response_create_overload_1(self, async_client: AsyncLit async def test_method_create_overload_2(self, async_client: AsyncLithic) -> None: external_bank_account = await async_client.external_bank_accounts.create( owner="x", - owner_type="BUSINESS", + owner_type="INDIVIDUAL", processor_token="x", verification_method="MANUAL", ) @@ -460,14 +454,14 @@ async def test_method_create_overload_2(self, async_client: AsyncLithic) -> None async def test_method_create_with_all_params_overload_2(self, async_client: AsyncLithic) -> None: external_bank_account = await async_client.external_bank_accounts.create( owner="x", - owner_type="BUSINESS", + owner_type="INDIVIDUAL", processor_token="x", verification_method="MANUAL", account_token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", company_id="x", dob=parse_date("2019-12-27"), - doing_business_as="string", - user_defined_id="string", + doing_business_as="x", + user_defined_id="x", ) assert_matches_type(ExternalBankAccountCreateResponse, external_bank_account, path=["response"]) @@ -475,7 +469,7 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn async def test_raw_response_create_overload_2(self, async_client: AsyncLithic) -> None: response = await async_client.external_bank_accounts.with_raw_response.create( owner="x", - owner_type="BUSINESS", + owner_type="INDIVIDUAL", processor_token="x", verification_method="MANUAL", ) @@ -489,7 +483,7 @@ async def test_raw_response_create_overload_2(self, async_client: AsyncLithic) - async def test_streaming_response_create_overload_2(self, async_client: AsyncLithic) -> None: async with async_client.external_bank_accounts.with_streaming_response.create( owner="x", - owner_type="BUSINESS", + owner_type="INDIVIDUAL", processor_token="x", verification_method="MANUAL", ) as response: @@ -556,17 +550,17 @@ async def test_method_update_with_all_params(self, async_client: AsyncLithic) -> "address1": "x", "address2": "x", "city": "x", - "country": "USD", - "postal_code": "11201", "state": "xx", + "postal_code": "11201", + "country": "USD", }, company_id="x", dob=parse_date("2019-12-27"), - doing_business_as="string", + doing_business_as="x", name="x", owner="x", - owner_type="BUSINESS", - user_defined_id="string", + owner_type="INDIVIDUAL", + user_defined_id="x", ) assert_matches_type(ExternalBankAccountUpdateResponse, external_bank_account, path=["response"]) @@ -615,11 +609,11 @@ async def test_method_list_with_all_params(self, async_client: AsyncLithic) -> N account_types=["CHECKING", "SAVINGS"], countries=["string", "string", "string"], ending_before="string", - owner_types=["BUSINESS", "INDIVIDUAL"], + owner_types=["INDIVIDUAL", "BUSINESS"], page_size=1, starting_after="string", - states=["CLOSED", "ENABLED", "PAUSED"], - verification_states=["ENABLED", "FAILED_VERIFICATION", "INSUFFICIENT_FUNDS"], + states=["ENABLED", "CLOSED", "PAUSED"], + verification_states=["PENDING", "ENABLED", "FAILED_VERIFICATION"], ) assert_matches_type(AsyncCursorPage[ExternalBankAccountListResponse], external_bank_account, path=["response"])