Skip to content

Commit 2a2cf4f

Browse files
fix(types): add missing types to method arguments
1 parent fb87755 commit 2a2cf4f

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

src/lithic/resources/account_holders.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,11 +347,14 @@ def create(
347347
self,
348348
*,
349349
beneficial_owner_individuals: Iterable[account_holder_create_params.KYBBeneficialOwnerIndividual]
350+
| Iterable[account_holder_create_params.KYBDelegatedBeneficialOwnerIndividual]
350351
| NotGiven = NOT_GIVEN,
351352
business_entity: account_holder_create_params.KYBBusinessEntity
352353
| account_holder_create_params.KYBDelegatedBusinessEntity
353354
| NotGiven = NOT_GIVEN,
354-
control_person: account_holder_create_params.KYBControlPerson | NotGiven = NOT_GIVEN,
355+
control_person: account_holder_create_params.KYBControlPerson
356+
| account_holder_create_params.KYBDelegatedControlPerson
357+
| NotGiven = NOT_GIVEN,
355358
nature_of_business: str | NotGiven = NOT_GIVEN,
356359
tos_timestamp: str | NotGiven = NOT_GIVEN,
357360
workflow: Literal["KYB_BASIC", "KYB_BYO"]
@@ -1416,11 +1419,14 @@ async def create(
14161419
self,
14171420
*,
14181421
beneficial_owner_individuals: Iterable[account_holder_create_params.KYBBeneficialOwnerIndividual]
1422+
| Iterable[account_holder_create_params.KYBDelegatedBeneficialOwnerIndividual]
14191423
| NotGiven = NOT_GIVEN,
14201424
business_entity: account_holder_create_params.KYBBusinessEntity
14211425
| account_holder_create_params.KYBDelegatedBusinessEntity
14221426
| NotGiven = NOT_GIVEN,
1423-
control_person: account_holder_create_params.KYBControlPerson | NotGiven = NOT_GIVEN,
1427+
control_person: account_holder_create_params.KYBControlPerson
1428+
| account_holder_create_params.KYBDelegatedControlPerson
1429+
| NotGiven = NOT_GIVEN,
14241430
nature_of_business: str | NotGiven = NOT_GIVEN,
14251431
tos_timestamp: str | NotGiven = NOT_GIVEN,
14261432
workflow: Literal["KYB_BASIC", "KYB_BYO"]

src/lithic/resources/auth_rules/v2/v2.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,10 @@ def create(
211211
*,
212212
account_tokens: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
213213
name: Optional[str] | NotGiven = NOT_GIVEN,
214-
parameters: v2_create_params.CreateAuthRuleRequestAccountTokensParameters | NotGiven = NOT_GIVEN,
214+
parameters: v2_create_params.CreateAuthRuleRequestAccountTokensParameters
215+
| v2_create_params.CreateAuthRuleRequestCardTokensParameters
216+
| v2_create_params.CreateAuthRuleRequestProgramLevelParameters
217+
| NotGiven = NOT_GIVEN,
215218
type: Literal["CONDITIONAL_BLOCK", "VELOCITY_LIMIT", "MERCHANT_LOCK", "CONDITIONAL_3DS_ACTION"]
216219
| NotGiven = NOT_GIVEN,
217220
card_tokens: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
@@ -1073,7 +1076,10 @@ async def create(
10731076
*,
10741077
account_tokens: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
10751078
name: Optional[str] | NotGiven = NOT_GIVEN,
1076-
parameters: v2_create_params.CreateAuthRuleRequestAccountTokensParameters | NotGiven = NOT_GIVEN,
1079+
parameters: v2_create_params.CreateAuthRuleRequestAccountTokensParameters
1080+
| v2_create_params.CreateAuthRuleRequestCardTokensParameters
1081+
| v2_create_params.CreateAuthRuleRequestProgramLevelParameters
1082+
| NotGiven = NOT_GIVEN,
10771083
type: Literal["CONDITIONAL_BLOCK", "VELOCITY_LIMIT", "MERCHANT_LOCK", "CONDITIONAL_3DS_ACTION"]
10781084
| NotGiven = NOT_GIVEN,
10791085
card_tokens: SequenceNotStr[str] | NotGiven = NOT_GIVEN,

src/lithic/resources/external_bank_accounts/external_bank_accounts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ def create(
388388
account_token: str | NotGiven = NOT_GIVEN,
389389
address: ExternalBankAccountAddressParam | NotGiven = NOT_GIVEN,
390390
company_id: str | NotGiven = NOT_GIVEN,
391-
dob: Union[str, date] | NotGiven = NOT_GIVEN,
391+
dob: Union[str, date] | Union[str, date] | Union[str, date] | Union[str, date] | NotGiven = NOT_GIVEN,
392392
doing_business_as: str | NotGiven = NOT_GIVEN,
393393
name: str | NotGiven = NOT_GIVEN,
394394
user_defined_id: str | NotGiven = NOT_GIVEN,
@@ -1031,7 +1031,7 @@ async def create(
10311031
account_token: str | NotGiven = NOT_GIVEN,
10321032
address: ExternalBankAccountAddressParam | NotGiven = NOT_GIVEN,
10331033
company_id: str | NotGiven = NOT_GIVEN,
1034-
dob: Union[str, date] | NotGiven = NOT_GIVEN,
1034+
dob: Union[str, date] | Union[str, date] | Union[str, date] | Union[str, date] | NotGiven = NOT_GIVEN,
10351035
doing_business_as: str | NotGiven = NOT_GIVEN,
10361036
name: str | NotGiven = NOT_GIVEN,
10371037
user_defined_id: str | NotGiven = NOT_GIVEN,

0 commit comments

Comments
 (0)