diff --git a/SECURITY.md b/SECURITY.md index b32391b3..6f64d22c 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -2,9 +2,9 @@ ## Reporting Security Issues -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. +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. -To report a security issue, please contact the Stainless team at security@stainlessapi.com. +To report a security issue, please contact the Stainless team at security@stainless.com. ## Responsible Disclosure diff --git a/src/orb/_client.py b/src/orb/_client.py index e4a28e6a..5e8ed256 100644 --- a/src/orb/_client.py +++ b/src/orb/_client.py @@ -89,7 +89,7 @@ def __init__( # part of our public interface in the future. _strict_response_validation: bool = False, ) -> None: - """Construct a new synchronous orb client instance. + """Construct a new synchronous Orb client instance. This automatically infers the following arguments from their corresponding environment variables if they are not provided: - `api_key` from `ORB_API_KEY` @@ -343,7 +343,7 @@ def __init__( # part of our public interface in the future. _strict_response_validation: bool = False, ) -> None: - """Construct a new async orb client instance. + """Construct a new async AsyncOrb client instance. This automatically infers the following arguments from their corresponding environment variables if they are not provided: - `api_key` from `ORB_API_KEY` diff --git a/tests/api_resources/test_customers.py b/tests/api_resources/test_customers.py index 257fbd98..1e87e427 100644 --- a/tests/api_resources/test_customers.py +++ b/tests/api_resources/test_customers.py @@ -24,7 +24,7 @@ class TestCustomers: @parametrize def test_method_create(self, client: Orb) -> None: customer = client.customers.create( - email="dev@stainlessapi.com", + email="dev@stainless.com", name="x", ) assert_matches_type(Customer, customer, path=["response"]) @@ -32,7 +32,7 @@ def test_method_create(self, client: Orb) -> None: @parametrize def test_method_create_with_all_params(self, client: Orb) -> None: customer = client.customers.create( - email="dev@stainlessapi.com", + email="dev@stainless.com", name="x", accounting_sync_configuration={ "accounting_providers": [ @@ -89,7 +89,7 @@ def test_method_create_with_all_params(self, client: Orb) -> None: @parametrize def test_raw_response_create(self, client: Orb) -> None: response = client.customers.with_raw_response.create( - email="dev@stainlessapi.com", + email="dev@stainless.com", name="x", ) @@ -101,7 +101,7 @@ def test_raw_response_create(self, client: Orb) -> None: @parametrize def test_streaming_response_create(self, client: Orb) -> None: with client.customers.with_streaming_response.create( - email="dev@stainlessapi.com", + email="dev@stainless.com", name="x", ) as response: assert not response.is_closed @@ -143,7 +143,7 @@ def test_method_update_with_all_params(self, client: Orb) -> None: "state": "state", }, currency="currency", - email="dev@stainlessapi.com", + email="dev@stainless.com", email_delivery=True, external_customer_id="external_customer_id", hierarchy={ @@ -465,7 +465,7 @@ def test_method_update_by_external_id_with_all_params(self, client: Orb) -> None "state": "state", }, currency="currency", - email="dev@stainlessapi.com", + email="dev@stainless.com", email_delivery=True, external_customer_id="external_customer_id", hierarchy={ @@ -537,7 +537,7 @@ class TestAsyncCustomers: @parametrize async def test_method_create(self, async_client: AsyncOrb) -> None: customer = await async_client.customers.create( - email="dev@stainlessapi.com", + email="dev@stainless.com", name="x", ) assert_matches_type(Customer, customer, path=["response"]) @@ -545,7 +545,7 @@ async def test_method_create(self, async_client: AsyncOrb) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOrb) -> None: customer = await async_client.customers.create( - email="dev@stainlessapi.com", + email="dev@stainless.com", name="x", accounting_sync_configuration={ "accounting_providers": [ @@ -602,7 +602,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOrb) -> No @parametrize async def test_raw_response_create(self, async_client: AsyncOrb) -> None: response = await async_client.customers.with_raw_response.create( - email="dev@stainlessapi.com", + email="dev@stainless.com", name="x", ) @@ -614,7 +614,7 @@ async def test_raw_response_create(self, async_client: AsyncOrb) -> None: @parametrize async def test_streaming_response_create(self, async_client: AsyncOrb) -> None: async with async_client.customers.with_streaming_response.create( - email="dev@stainlessapi.com", + email="dev@stainless.com", name="x", ) as response: assert not response.is_closed @@ -656,7 +656,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncOrb) -> No "state": "state", }, currency="currency", - email="dev@stainlessapi.com", + email="dev@stainless.com", email_delivery=True, external_customer_id="external_customer_id", hierarchy={ @@ -990,7 +990,7 @@ async def test_method_update_by_external_id_with_all_params(self, async_client: "state": "state", }, currency="currency", - email="dev@stainlessapi.com", + email="dev@stainless.com", email_delivery=True, external_customer_id="external_customer_id", hierarchy={ diff --git a/tests/test_client.py b/tests/test_client.py index fbcbf29a..621ef788 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -793,7 +793,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response: respx_mock.post("/customers").mock(side_effect=retry_handler) - response = client.customers.with_raw_response.create(email="dev@stainlessapi.com", name="x") + response = client.customers.with_raw_response.create(email="dev@stainless.com", name="x") assert response.retries_taken == failures_before_success 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: respx_mock.post("/customers").mock(side_effect=retry_handler) response = client.customers.with_raw_response.create( - email="dev@stainlessapi.com", name="x", extra_headers={"x-stainless-retry-count": Omit()} + email="dev@stainless.com", name="x", extra_headers={"x-stainless-retry-count": Omit()} ) 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: respx_mock.post("/customers").mock(side_effect=retry_handler) response = client.customers.with_raw_response.create( - email="dev@stainlessapi.com", name="x", extra_headers={"x-stainless-retry-count": "42"} + email="dev@stainless.com", name="x", extra_headers={"x-stainless-retry-count": "42"} ) assert response.http_request.headers.get("x-stainless-retry-count") == "42" @@ -865,7 +865,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response: respx_mock.post("/customers").mock(side_effect=retry_handler) - with client.customers.with_streaming_response.create(email="dev@stainlessapi.com", name="x") as response: + with client.customers.with_streaming_response.create(email="dev@stainless.com", name="x") as response: assert response.retries_taken == failures_before_success assert int(response.http_request.headers.get("x-stainless-retry-count")) == failures_before_success @@ -1626,7 +1626,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response: respx_mock.post("/customers").mock(side_effect=retry_handler) - response = await client.customers.with_raw_response.create(email="dev@stainlessapi.com", name="x") + response = await client.customers.with_raw_response.create(email="dev@stainless.com", name="x") assert response.retries_taken == failures_before_success 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: respx_mock.post("/customers").mock(side_effect=retry_handler) response = await client.customers.with_raw_response.create( - email="dev@stainlessapi.com", name="x", extra_headers={"x-stainless-retry-count": Omit()} + email="dev@stainless.com", name="x", extra_headers={"x-stainless-retry-count": Omit()} ) 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: respx_mock.post("/customers").mock(side_effect=retry_handler) response = await client.customers.with_raw_response.create( - email="dev@stainlessapi.com", name="x", extra_headers={"x-stainless-retry-count": "42"} + email="dev@stainless.com", name="x", extra_headers={"x-stainless-retry-count": "42"} ) assert response.http_request.headers.get("x-stainless-retry-count") == "42" @@ -1703,7 +1703,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response: respx_mock.post("/customers").mock(side_effect=retry_handler) - async with client.customers.with_streaming_response.create(email="dev@stainlessapi.com", name="x") as response: + async with client.customers.with_streaming_response.create(email="dev@stainless.com", name="x") as response: assert response.retries_taken == failures_before_success assert int(response.http_request.headers.get("x-stainless-retry-count")) == failures_before_success