diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index c63a3302e..81e38dd3b 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -61e410d24d6de541c86c48b265b7647c164457ee \ No newline at end of file +c250368ba89214c80bc8de3e4fc5d2094c5502cc \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 5e8e56a7f..ccb965af8 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2151 \ No newline at end of file +v2152 \ No newline at end of file diff --git a/stripe/_api_requestor.py b/stripe/_api_requestor.py index ab94207bf..52f0f3162 100644 --- a/stripe/_api_requestor.py +++ b/stripe/_api_requestor.py @@ -381,8 +381,6 @@ def specific_v2_api_error(self, rbody, rcode, resp, rheaders, error_data): code, ) # switchCases: The beginning of the section generated from our OpenAPI spec - elif type == "rate_limit": - return error.RateLimitError(**error_args) elif type == "temporary_session_expired": return error.TemporarySessionExpiredError(**error_args) # switchCases: The end of the section generated from our OpenAPI spec diff --git a/tests/test_generated_examples.py b/tests/test_generated_examples.py index 3a21506d7..5f8d6fe14 100644 --- a/tests/test_generated_examples.py +++ b/tests/test_generated_examples.py @@ -44145,31 +44145,6 @@ def test_v2_core_event_destination_post_5_service( is_json=True, ) - def test_rate_limit_error_service( - self, http_client_mock: HTTPClientMock - ) -> None: - http_client_mock.stub_request( - "get", - "/v2/core/accounts", - rbody='{"error":{"type":"rate_limit","code":"account_rate_limit_exceeded"}}', - rcode=400, - ) - client = StripeClient( - "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), - ) - - try: - client.v2.core.accounts.list() - except _error.RateLimitError: - pass - http_client_mock.assert_requested( - "get", - path="/v2/core/accounts", - query_string="", - api_base="https://api.stripe.com", - ) - def test_temporary_session_expired_error_service( self, http_client_mock: HTTPClientMock ) -> None: