Skip to content

Commit 108bff1

Browse files
docs: update examples
1 parent b7a637b commit 108bff1

1 file changed

Lines changed: 20 additions & 20 deletions

File tree

tests/api_resources/test_financial_accounts.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -234,17 +234,17 @@ def test_path_params_register_account_number(self, client: Lithic) -> None:
234234
def test_method_update_status(self, client: Lithic) -> None:
235235
financial_account = client.financial_accounts.update_status(
236236
financial_account_token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
237-
status="OPEN",
238-
substatus="CHARGED_OFF_FRAUD",
237+
status="CLOSED",
238+
substatus="END_USER_REQUEST",
239239
)
240240
assert_matches_type(FinancialAccount, financial_account, path=["response"])
241241

242242
@parametrize
243243
def test_method_update_status_with_all_params(self, client: Lithic) -> None:
244244
financial_account = client.financial_accounts.update_status(
245245
financial_account_token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
246-
status="OPEN",
247-
substatus="CHARGED_OFF_FRAUD",
246+
status="CLOSED",
247+
substatus="END_USER_REQUEST",
248248
user_defined_status="26",
249249
)
250250
assert_matches_type(FinancialAccount, financial_account, path=["response"])
@@ -253,8 +253,8 @@ def test_method_update_status_with_all_params(self, client: Lithic) -> None:
253253
def test_raw_response_update_status(self, client: Lithic) -> None:
254254
response = client.financial_accounts.with_raw_response.update_status(
255255
financial_account_token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
256-
status="OPEN",
257-
substatus="CHARGED_OFF_FRAUD",
256+
status="CLOSED",
257+
substatus="END_USER_REQUEST",
258258
)
259259

260260
assert response.is_closed is True
@@ -266,8 +266,8 @@ def test_raw_response_update_status(self, client: Lithic) -> None:
266266
def test_streaming_response_update_status(self, client: Lithic) -> None:
267267
with client.financial_accounts.with_streaming_response.update_status(
268268
financial_account_token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
269-
status="OPEN",
270-
substatus="CHARGED_OFF_FRAUD",
269+
status="CLOSED",
270+
substatus="END_USER_REQUEST",
271271
) as response:
272272
assert not response.is_closed
273273
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -284,8 +284,8 @@ def test_path_params_update_status(self, client: Lithic) -> None:
284284
):
285285
client.financial_accounts.with_raw_response.update_status(
286286
financial_account_token="",
287-
status="OPEN",
288-
substatus="CHARGED_OFF_FRAUD",
287+
status="CLOSED",
288+
substatus="END_USER_REQUEST",
289289
)
290290

291291

@@ -508,17 +508,17 @@ async def test_path_params_register_account_number(self, async_client: AsyncLith
508508
async def test_method_update_status(self, async_client: AsyncLithic) -> None:
509509
financial_account = await async_client.financial_accounts.update_status(
510510
financial_account_token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
511-
status="OPEN",
512-
substatus="CHARGED_OFF_FRAUD",
511+
status="CLOSED",
512+
substatus="END_USER_REQUEST",
513513
)
514514
assert_matches_type(FinancialAccount, financial_account, path=["response"])
515515

516516
@parametrize
517517
async def test_method_update_status_with_all_params(self, async_client: AsyncLithic) -> None:
518518
financial_account = await async_client.financial_accounts.update_status(
519519
financial_account_token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
520-
status="OPEN",
521-
substatus="CHARGED_OFF_FRAUD",
520+
status="CLOSED",
521+
substatus="END_USER_REQUEST",
522522
user_defined_status="26",
523523
)
524524
assert_matches_type(FinancialAccount, financial_account, path=["response"])
@@ -527,8 +527,8 @@ async def test_method_update_status_with_all_params(self, async_client: AsyncLit
527527
async def test_raw_response_update_status(self, async_client: AsyncLithic) -> None:
528528
response = await async_client.financial_accounts.with_raw_response.update_status(
529529
financial_account_token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
530-
status="OPEN",
531-
substatus="CHARGED_OFF_FRAUD",
530+
status="CLOSED",
531+
substatus="END_USER_REQUEST",
532532
)
533533

534534
assert response.is_closed is True
@@ -540,8 +540,8 @@ async def test_raw_response_update_status(self, async_client: AsyncLithic) -> No
540540
async def test_streaming_response_update_status(self, async_client: AsyncLithic) -> None:
541541
async with async_client.financial_accounts.with_streaming_response.update_status(
542542
financial_account_token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
543-
status="OPEN",
544-
substatus="CHARGED_OFF_FRAUD",
543+
status="CLOSED",
544+
substatus="END_USER_REQUEST",
545545
) as response:
546546
assert not response.is_closed
547547
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -558,6 +558,6 @@ async def test_path_params_update_status(self, async_client: AsyncLithic) -> Non
558558
):
559559
await async_client.financial_accounts.with_raw_response.update_status(
560560
financial_account_token="",
561-
status="OPEN",
562-
substatus="CHARGED_OFF_FRAUD",
561+
status="CLOSED",
562+
substatus="END_USER_REQUEST",
563563
)

0 commit comments

Comments
 (0)