Skip to content

Commit 7d577c1

Browse files
chore(internal): codegen related update (#564)
1 parent aa57fa8 commit 7d577c1

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed

SECURITY.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
## Reporting Security Issues
44

5-
This SDK is generated by [Stainless Software Inc](http://stainlessapi.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken.
5+
This SDK is generated by [Stainless Software Inc](http://stainless.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken.
66

7-
To report a security issue, please contact the Stainless team at security@stainlessapi.com.
7+
To report a security issue, please contact the Stainless team at security@stainless.com.
88

99
## Responsible Disclosure
1010

src/orb/_client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def __init__(
8989
# part of our public interface in the future.
9090
_strict_response_validation: bool = False,
9191
) -> None:
92-
"""Construct a new synchronous orb client instance.
92+
"""Construct a new synchronous Orb client instance.
9393
9494
This automatically infers the following arguments from their corresponding environment variables if they are not provided:
9595
- `api_key` from `ORB_API_KEY`
@@ -343,7 +343,7 @@ def __init__(
343343
# part of our public interface in the future.
344344
_strict_response_validation: bool = False,
345345
) -> None:
346-
"""Construct a new async orb client instance.
346+
"""Construct a new async AsyncOrb client instance.
347347
348348
This automatically infers the following arguments from their corresponding environment variables if they are not provided:
349349
- `api_key` from `ORB_API_KEY`

tests/api_resources/test_customers.py

+12-12
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ class TestCustomers:
2424
@parametrize
2525
def test_method_create(self, client: Orb) -> None:
2626
customer = client.customers.create(
27-
email="dev@stainlessapi.com",
27+
email="dev@stainless.com",
2828
name="x",
2929
)
3030
assert_matches_type(Customer, customer, path=["response"])
3131

3232
@parametrize
3333
def test_method_create_with_all_params(self, client: Orb) -> None:
3434
customer = client.customers.create(
35-
email="dev@stainlessapi.com",
35+
email="dev@stainless.com",
3636
name="x",
3737
accounting_sync_configuration={
3838
"accounting_providers": [
@@ -89,7 +89,7 @@ def test_method_create_with_all_params(self, client: Orb) -> None:
8989
@parametrize
9090
def test_raw_response_create(self, client: Orb) -> None:
9191
response = client.customers.with_raw_response.create(
92-
email="dev@stainlessapi.com",
92+
email="dev@stainless.com",
9393
name="x",
9494
)
9595

@@ -101,7 +101,7 @@ def test_raw_response_create(self, client: Orb) -> None:
101101
@parametrize
102102
def test_streaming_response_create(self, client: Orb) -> None:
103103
with client.customers.with_streaming_response.create(
104-
email="dev@stainlessapi.com",
104+
email="dev@stainless.com",
105105
name="x",
106106
) as response:
107107
assert not response.is_closed
@@ -143,7 +143,7 @@ def test_method_update_with_all_params(self, client: Orb) -> None:
143143
"state": "state",
144144
},
145145
currency="currency",
146-
email="dev@stainlessapi.com",
146+
email="dev@stainless.com",
147147
email_delivery=True,
148148
external_customer_id="external_customer_id",
149149
hierarchy={
@@ -465,7 +465,7 @@ def test_method_update_by_external_id_with_all_params(self, client: Orb) -> None
465465
"state": "state",
466466
},
467467
currency="currency",
468-
email="dev@stainlessapi.com",
468+
email="dev@stainless.com",
469469
email_delivery=True,
470470
external_customer_id="external_customer_id",
471471
hierarchy={
@@ -537,15 +537,15 @@ class TestAsyncCustomers:
537537
@parametrize
538538
async def test_method_create(self, async_client: AsyncOrb) -> None:
539539
customer = await async_client.customers.create(
540-
email="dev@stainlessapi.com",
540+
email="dev@stainless.com",
541541
name="x",
542542
)
543543
assert_matches_type(Customer, customer, path=["response"])
544544

545545
@parametrize
546546
async def test_method_create_with_all_params(self, async_client: AsyncOrb) -> None:
547547
customer = await async_client.customers.create(
548-
email="dev@stainlessapi.com",
548+
email="dev@stainless.com",
549549
name="x",
550550
accounting_sync_configuration={
551551
"accounting_providers": [
@@ -602,7 +602,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOrb) -> No
602602
@parametrize
603603
async def test_raw_response_create(self, async_client: AsyncOrb) -> None:
604604
response = await async_client.customers.with_raw_response.create(
605-
email="dev@stainlessapi.com",
605+
email="dev@stainless.com",
606606
name="x",
607607
)
608608

@@ -614,7 +614,7 @@ async def test_raw_response_create(self, async_client: AsyncOrb) -> None:
614614
@parametrize
615615
async def test_streaming_response_create(self, async_client: AsyncOrb) -> None:
616616
async with async_client.customers.with_streaming_response.create(
617-
email="dev@stainlessapi.com",
617+
email="dev@stainless.com",
618618
name="x",
619619
) as response:
620620
assert not response.is_closed
@@ -656,7 +656,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncOrb) -> No
656656
"state": "state",
657657
},
658658
currency="currency",
659-
email="dev@stainlessapi.com",
659+
email="dev@stainless.com",
660660
email_delivery=True,
661661
external_customer_id="external_customer_id",
662662
hierarchy={
@@ -990,7 +990,7 @@ async def test_method_update_by_external_id_with_all_params(self, async_client:
990990
"state": "state",
991991
},
992992
currency="currency",
993-
email="dev@stainlessapi.com",
993+
email="dev@stainless.com",
994994
email_delivery=True,
995995
external_customer_id="external_customer_id",
996996
hierarchy={

tests/test_client.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
793793

794794
respx_mock.post("/customers").mock(side_effect=retry_handler)
795795

796-
response = client.customers.with_raw_response.create(email="dev@stainlessapi.com", name="x")
796+
response = client.customers.with_raw_response.create(email="dev@stainless.com", name="x")
797797

798798
assert response.retries_taken == failures_before_success
799799
assert int(response.http_request.headers.get("x-stainless-retry-count")) == failures_before_success
@@ -816,7 +816,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
816816
respx_mock.post("/customers").mock(side_effect=retry_handler)
817817

818818
response = client.customers.with_raw_response.create(
819-
email="dev@stainlessapi.com", name="x", extra_headers={"x-stainless-retry-count": Omit()}
819+
email="dev@stainless.com", name="x", extra_headers={"x-stainless-retry-count": Omit()}
820820
)
821821

822822
assert len(response.http_request.headers.get_list("x-stainless-retry-count")) == 0
@@ -841,7 +841,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
841841
respx_mock.post("/customers").mock(side_effect=retry_handler)
842842

843843
response = client.customers.with_raw_response.create(
844-
email="dev@stainlessapi.com", name="x", extra_headers={"x-stainless-retry-count": "42"}
844+
email="dev@stainless.com", name="x", extra_headers={"x-stainless-retry-count": "42"}
845845
)
846846

847847
assert response.http_request.headers.get("x-stainless-retry-count") == "42"
@@ -865,7 +865,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
865865

866866
respx_mock.post("/customers").mock(side_effect=retry_handler)
867867

868-
with client.customers.with_streaming_response.create(email="dev@stainlessapi.com", name="x") as response:
868+
with client.customers.with_streaming_response.create(email="dev@stainless.com", name="x") as response:
869869
assert response.retries_taken == failures_before_success
870870
assert int(response.http_request.headers.get("x-stainless-retry-count")) == failures_before_success
871871

@@ -1626,7 +1626,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
16261626

16271627
respx_mock.post("/customers").mock(side_effect=retry_handler)
16281628

1629-
response = await client.customers.with_raw_response.create(email="dev@stainlessapi.com", name="x")
1629+
response = await client.customers.with_raw_response.create(email="dev@stainless.com", name="x")
16301630

16311631
assert response.retries_taken == failures_before_success
16321632
assert int(response.http_request.headers.get("x-stainless-retry-count")) == failures_before_success
@@ -1652,7 +1652,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
16521652
respx_mock.post("/customers").mock(side_effect=retry_handler)
16531653

16541654
response = await client.customers.with_raw_response.create(
1655-
email="dev@stainlessapi.com", name="x", extra_headers={"x-stainless-retry-count": Omit()}
1655+
email="dev@stainless.com", name="x", extra_headers={"x-stainless-retry-count": Omit()}
16561656
)
16571657

16581658
assert len(response.http_request.headers.get_list("x-stainless-retry-count")) == 0
@@ -1678,7 +1678,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
16781678
respx_mock.post("/customers").mock(side_effect=retry_handler)
16791679

16801680
response = await client.customers.with_raw_response.create(
1681-
email="dev@stainlessapi.com", name="x", extra_headers={"x-stainless-retry-count": "42"}
1681+
email="dev@stainless.com", name="x", extra_headers={"x-stainless-retry-count": "42"}
16821682
)
16831683

16841684
assert response.http_request.headers.get("x-stainless-retry-count") == "42"
@@ -1703,7 +1703,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
17031703

17041704
respx_mock.post("/customers").mock(side_effect=retry_handler)
17051705

1706-
async with client.customers.with_streaming_response.create(email="dev@stainlessapi.com", name="x") as response:
1706+
async with client.customers.with_streaming_response.create(email="dev@stainless.com", name="x") as response:
17071707
assert response.retries_taken == failures_before_success
17081708
assert int(response.http_request.headers.get("x-stainless-retry-count")) == failures_before_success
17091709

0 commit comments

Comments
 (0)