Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tests/api_resources/entities/test_beneficial_owners.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_method_create(self, client: Increase) -> None:
"number": "xxxx",
},
},
"prongs": ["ownership", "ownership", "ownership"],
"prongs": ["ownership", "control"],
},
entity_id="string",
)
Expand Down Expand Up @@ -83,7 +83,7 @@ def test_method_create_with_all_params(self, client: Increase) -> None:
},
},
"company_title": "x",
"prongs": ["ownership", "ownership", "ownership"],
"prongs": ["ownership", "control"],
},
entity_id="string",
)
Expand Down Expand Up @@ -150,7 +150,7 @@ async def test_method_create(self, client: AsyncIncrease) -> None:
"number": "xxxx",
},
},
"prongs": ["ownership", "ownership", "ownership"],
"prongs": ["ownership", "control"],
},
entity_id="string",
)
Expand Down Expand Up @@ -195,7 +195,7 @@ async def test_method_create_with_all_params(self, client: AsyncIncrease) -> Non
},
},
"company_title": "x",
"prongs": ["ownership", "ownership", "ownership"],
"prongs": ["ownership", "control"],
},
entity_id="string",
)
Expand Down
4 changes: 2 additions & 2 deletions tests/api_resources/test_card_disputes.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None:
},
cursor="string",
limit=0,
status={"in": ["pending_reviewing", "pending_reviewing", "pending_reviewing"]},
status={"in": ["pending_reviewing", "accepted", "rejected"]},
)
assert_matches_type(SyncPage[CardDispute], card_dispute, path=["response"])

Expand Down Expand Up @@ -93,6 +93,6 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None:
},
cursor="string",
limit=0,
status={"in": ["pending_reviewing", "pending_reviewing", "pending_reviewing"]},
status={"in": ["pending_reviewing", "accepted", "rejected"]},
)
assert_matches_type(AsyncPage[CardDispute], card_dispute, path=["response"])
8 changes: 4 additions & 4 deletions tests/api_resources/test_card_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ def test_method_list_with_all_params(self, client: Increase) -> None:
card_profile = client.card_profiles.list(
cursor="string",
limit=0,
physical_cards_status={"in": ["not_eligible", "not_eligible", "not_eligible"]},
status={"in": ["pending", "pending", "pending"]},
physical_cards_status={"in": ["not_eligible", "rejected", "pending_reviewing"]},
status={"in": ["pending", "rejected", "active"]},
)
assert_matches_type(SyncPage[CardProfile], card_profile, path=["response"])

Expand Down Expand Up @@ -150,8 +150,8 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None:
card_profile = await client.card_profiles.list(
cursor="string",
limit=0,
physical_cards_status={"in": ["not_eligible", "not_eligible", "not_eligible"]},
status={"in": ["pending", "pending", "pending"]},
physical_cards_status={"in": ["not_eligible", "rejected", "pending_reviewing"]},
status={"in": ["pending", "rejected", "active"]},
)
assert_matches_type(AsyncPage[CardProfile], card_profile, path=["response"])

Expand Down
4 changes: 2 additions & 2 deletions tests/api_resources/test_declined_transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def test_method_list(self, client: Increase) -> None:
def test_method_list_with_all_params(self, client: Increase) -> None:
declined_transaction = client.declined_transactions.list(
account_id="string",
category={"in": ["ach_decline", "ach_decline", "ach_decline"]},
category={"in": ["ach_decline", "card_decline", "check_decline"]},
created_at={
"after": parse_datetime("2019-12-27T18:11:19.117Z"),
"before": parse_datetime("2019-12-27T18:11:19.117Z"),
Expand Down Expand Up @@ -72,7 +72,7 @@ async def test_method_list(self, client: AsyncIncrease) -> None:
async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None:
declined_transaction = await client.declined_transactions.list(
account_id="string",
category={"in": ["ach_decline", "ach_decline", "ach_decline"]},
category={"in": ["ach_decline", "card_decline", "check_decline"]},
created_at={
"after": parse_datetime("2019-12-27T18:11:19.117Z"),
"before": parse_datetime("2019-12-27T18:11:19.117Z"),
Expand Down
4 changes: 2 additions & 2 deletions tests/api_resources/test_documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_method_list(self, client: Increase) -> None:
@parametrize
def test_method_list_with_all_params(self, client: Increase) -> None:
document = client.documents.list(
category={"in": ["form_1099_int", "form_1099_int", "form_1099_int"]},
category={"in": ["form_1099_int", "proof_of_authorization", "company_information"]},
created_at={
"after": parse_datetime("2019-12-27T18:11:19.117Z"),
"before": parse_datetime("2019-12-27T18:11:19.117Z"),
Expand Down Expand Up @@ -70,7 +70,7 @@ async def test_method_list(self, client: AsyncIncrease) -> None:
@parametrize
async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None:
document = await client.documents.list(
category={"in": ["form_1099_int", "form_1099_int", "form_1099_int"]},
category={"in": ["form_1099_int", "proof_of_authorization", "company_information"]},
created_at={
"after": parse_datetime("2019-12-27T18:11:19.117Z"),
"before": parse_datetime("2019-12-27T18:11:19.117Z"),
Expand Down
12 changes: 6 additions & 6 deletions tests/api_resources/test_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def test_method_create_with_all_params(self, client: Increase) -> None:
},
},
"company_title": "x",
"prongs": ["ownership", "ownership", "ownership"],
"prongs": ["ownership", "control"],
},
{
"individual": {
Expand Down Expand Up @@ -121,7 +121,7 @@ def test_method_create_with_all_params(self, client: Increase) -> None:
},
},
"company_title": "x",
"prongs": ["ownership", "ownership", "ownership"],
"prongs": ["ownership", "control"],
},
{
"individual": {
Expand Down Expand Up @@ -159,7 +159,7 @@ def test_method_create_with_all_params(self, client: Increase) -> None:
},
},
"company_title": "x",
"prongs": ["ownership", "ownership", "ownership"],
"prongs": ["ownership", "control"],
},
],
},
Expand Down Expand Up @@ -598,7 +598,7 @@ async def test_method_create_with_all_params(self, client: AsyncIncrease) -> Non
},
},
"company_title": "x",
"prongs": ["ownership", "ownership", "ownership"],
"prongs": ["ownership", "control"],
},
{
"individual": {
Expand Down Expand Up @@ -636,7 +636,7 @@ async def test_method_create_with_all_params(self, client: AsyncIncrease) -> Non
},
},
"company_title": "x",
"prongs": ["ownership", "ownership", "ownership"],
"prongs": ["ownership", "control"],
},
{
"individual": {
Expand Down Expand Up @@ -674,7 +674,7 @@ async def test_method_create_with_all_params(self, client: AsyncIncrease) -> Non
},
},
"company_title": "x",
"prongs": ["ownership", "ownership", "ownership"],
"prongs": ["ownership", "control"],
},
],
},
Expand Down
4 changes: 2 additions & 2 deletions tests/api_resources/test_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def test_method_list(self, client: Increase) -> None:
def test_method_list_with_all_params(self, client: Increase) -> None:
event = client.events.list(
associated_object_id="string",
category={"in": ["account.created", "account.created", "account.created"]},
category={"in": ["account.created", "account.updated", "account_number.created"]},
created_at={
"after": parse_datetime("2019-12-27T18:11:19.117Z"),
"before": parse_datetime("2019-12-27T18:11:19.117Z"),
Expand Down Expand Up @@ -71,7 +71,7 @@ async def test_method_list(self, client: AsyncIncrease) -> None:
async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None:
event = await client.events.list(
associated_object_id="string",
category={"in": ["account.created", "account.created", "account.created"]},
category={"in": ["account.created", "account.updated", "account_number.created"]},
created_at={
"after": parse_datetime("2019-12-27T18:11:19.117Z"),
"before": parse_datetime("2019-12-27T18:11:19.117Z"),
Expand Down
4 changes: 2 additions & 2 deletions tests/api_resources/test_external_accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None:
cursor="string",
limit=0,
routing_number="xxxxxxxxx",
status={"in": ["active", "active", "active"]},
status={"in": ["active", "archived"]},
)
assert_matches_type(SyncPage[ExternalAccount], external_account, path=["response"])

Expand Down Expand Up @@ -136,6 +136,6 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None:
cursor="string",
limit=0,
routing_number="xxxxxxxxx",
status={"in": ["active", "active", "active"]},
status={"in": ["active", "archived"]},
)
assert_matches_type(AsyncPage[ExternalAccount], external_account, path=["response"])
4 changes: 2 additions & 2 deletions tests/api_resources/test_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None:
},
cursor="string",
limit=0,
purpose={"in": ["check_image_front", "check_image_front", "check_image_front"]},
purpose={"in": ["check_image_front", "check_image_back", "mailed_check_image"]},
)
assert_matches_type(SyncPage[File], file, path=["response"])

Expand Down Expand Up @@ -111,6 +111,6 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None:
},
cursor="string",
limit=0,
purpose={"in": ["check_image_front", "check_image_front", "check_image_front"]},
purpose={"in": ["check_image_front", "check_image_back", "mailed_check_image"]},
)
assert_matches_type(AsyncPage[File], file, path=["response"])
12 changes: 4 additions & 8 deletions tests/api_resources/test_pending_transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ def test_method_list(self, client: Increase) -> None:
def test_method_list_with_all_params(self, client: Increase) -> None:
pending_transaction = client.pending_transactions.list(
account_id="string",
category={
"in": ["account_transfer_instruction", "account_transfer_instruction", "account_transfer_instruction"]
},
category={"in": ["account_transfer_instruction", "ach_transfer_instruction", "card_authorization"]},
created_at={
"after": parse_datetime("2019-12-27T18:11:19.117Z"),
"before": parse_datetime("2019-12-27T18:11:19.117Z"),
Expand All @@ -50,7 +48,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None:
limit=0,
route_id="string",
source_id="string",
status={"in": ["pending", "pending", "pending"]},
status={"in": ["pending", "complete"]},
)
assert_matches_type(SyncPage[PendingTransaction], pending_transaction, path=["response"])

Expand All @@ -76,9 +74,7 @@ async def test_method_list(self, client: AsyncIncrease) -> None:
async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None:
pending_transaction = await client.pending_transactions.list(
account_id="string",
category={
"in": ["account_transfer_instruction", "account_transfer_instruction", "account_transfer_instruction"]
},
category={"in": ["account_transfer_instruction", "ach_transfer_instruction", "card_authorization"]},
created_at={
"after": parse_datetime("2019-12-27T18:11:19.117Z"),
"before": parse_datetime("2019-12-27T18:11:19.117Z"),
Expand All @@ -89,6 +85,6 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None:
limit=0,
route_id="string",
source_id="string",
status={"in": ["pending", "pending", "pending"]},
status={"in": ["pending", "complete"]},
)
assert_matches_type(AsyncPage[PendingTransaction], pending_transaction, path=["response"])
4 changes: 2 additions & 2 deletions tests/api_resources/test_transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def test_method_list(self, client: Increase) -> None:
def test_method_list_with_all_params(self, client: Increase) -> None:
transaction = client.transactions.list(
account_id="string",
category={"in": ["account_transfer_intention", "account_transfer_intention", "account_transfer_intention"]},
category={"in": ["account_transfer_intention", "ach_transfer_intention", "ach_transfer_rejection"]},
created_at={
"after": parse_datetime("2019-12-27T18:11:19.117Z"),
"before": parse_datetime("2019-12-27T18:11:19.117Z"),
Expand Down Expand Up @@ -72,7 +72,7 @@ async def test_method_list(self, client: AsyncIncrease) -> None:
async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None:
transaction = await client.transactions.list(
account_id="string",
category={"in": ["account_transfer_intention", "account_transfer_intention", "account_transfer_intention"]},
category={"in": ["account_transfer_intention", "ach_transfer_intention", "ach_transfer_rejection"]},
created_at={
"after": parse_datetime("2019-12-27T18:11:19.117Z"),
"before": parse_datetime("2019-12-27T18:11:19.117Z"),
Expand Down