@@ -152,7 +152,7 @@ def test_method_create_for_customer(self, client: Orb) -> None:
152152 alert = client .alerts .create_for_customer (
153153 customer_id = "customer_id" ,
154154 currency = "currency" ,
155- type = "usage_exceeded " ,
155+ type = "credit_balance_depleted " ,
156156 )
157157 assert_matches_type (Alert , alert , path = ["response" ])
158158
@@ -161,7 +161,7 @@ def test_method_create_for_customer_with_all_params(self, client: Orb) -> None:
161161 alert = client .alerts .create_for_customer (
162162 customer_id = "customer_id" ,
163163 currency = "currency" ,
164- type = "usage_exceeded " ,
164+ type = "credit_balance_depleted " ,
165165 thresholds = [{"value" : 0 }],
166166 )
167167 assert_matches_type (Alert , alert , path = ["response" ])
@@ -171,7 +171,7 @@ def test_raw_response_create_for_customer(self, client: Orb) -> None:
171171 response = client .alerts .with_raw_response .create_for_customer (
172172 customer_id = "customer_id" ,
173173 currency = "currency" ,
174- type = "usage_exceeded " ,
174+ type = "credit_balance_depleted " ,
175175 )
176176
177177 assert response .is_closed is True
@@ -184,7 +184,7 @@ def test_streaming_response_create_for_customer(self, client: Orb) -> None:
184184 with client .alerts .with_streaming_response .create_for_customer (
185185 customer_id = "customer_id" ,
186186 currency = "currency" ,
187- type = "usage_exceeded " ,
187+ type = "credit_balance_depleted " ,
188188 ) as response :
189189 assert not response .is_closed
190190 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -200,15 +200,15 @@ def test_path_params_create_for_customer(self, client: Orb) -> None:
200200 client .alerts .with_raw_response .create_for_customer (
201201 customer_id = "" ,
202202 currency = "currency" ,
203- type = "usage_exceeded " ,
203+ type = "credit_balance_depleted " ,
204204 )
205205
206206 @parametrize
207207 def test_method_create_for_external_customer (self , client : Orb ) -> None :
208208 alert = client .alerts .create_for_external_customer (
209209 external_customer_id = "external_customer_id" ,
210210 currency = "currency" ,
211- type = "usage_exceeded " ,
211+ type = "credit_balance_depleted " ,
212212 )
213213 assert_matches_type (Alert , alert , path = ["response" ])
214214
@@ -217,7 +217,7 @@ def test_method_create_for_external_customer_with_all_params(self, client: Orb)
217217 alert = client .alerts .create_for_external_customer (
218218 external_customer_id = "external_customer_id" ,
219219 currency = "currency" ,
220- type = "usage_exceeded " ,
220+ type = "credit_balance_depleted " ,
221221 thresholds = [{"value" : 0 }],
222222 )
223223 assert_matches_type (Alert , alert , path = ["response" ])
@@ -227,7 +227,7 @@ def test_raw_response_create_for_external_customer(self, client: Orb) -> None:
227227 response = client .alerts .with_raw_response .create_for_external_customer (
228228 external_customer_id = "external_customer_id" ,
229229 currency = "currency" ,
230- type = "usage_exceeded " ,
230+ type = "credit_balance_depleted " ,
231231 )
232232
233233 assert response .is_closed is True
@@ -240,7 +240,7 @@ def test_streaming_response_create_for_external_customer(self, client: Orb) -> N
240240 with client .alerts .with_streaming_response .create_for_external_customer (
241241 external_customer_id = "external_customer_id" ,
242242 currency = "currency" ,
243- type = "usage_exceeded " ,
243+ type = "credit_balance_depleted " ,
244244 ) as response :
245245 assert not response .is_closed
246246 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -256,7 +256,7 @@ def test_path_params_create_for_external_customer(self, client: Orb) -> None:
256256 client .alerts .with_raw_response .create_for_external_customer (
257257 external_customer_id = "" ,
258258 currency = "currency" ,
259- type = "usage_exceeded " ,
259+ type = "credit_balance_depleted " ,
260260 )
261261
262262 @parametrize
@@ -546,7 +546,7 @@ async def test_method_create_for_customer(self, async_client: AsyncOrb) -> None:
546546 alert = await async_client .alerts .create_for_customer (
547547 customer_id = "customer_id" ,
548548 currency = "currency" ,
549- type = "usage_exceeded " ,
549+ type = "credit_balance_depleted " ,
550550 )
551551 assert_matches_type (Alert , alert , path = ["response" ])
552552
@@ -555,7 +555,7 @@ async def test_method_create_for_customer_with_all_params(self, async_client: As
555555 alert = await async_client .alerts .create_for_customer (
556556 customer_id = "customer_id" ,
557557 currency = "currency" ,
558- type = "usage_exceeded " ,
558+ type = "credit_balance_depleted " ,
559559 thresholds = [{"value" : 0 }],
560560 )
561561 assert_matches_type (Alert , alert , path = ["response" ])
@@ -565,7 +565,7 @@ async def test_raw_response_create_for_customer(self, async_client: AsyncOrb) ->
565565 response = await async_client .alerts .with_raw_response .create_for_customer (
566566 customer_id = "customer_id" ,
567567 currency = "currency" ,
568- type = "usage_exceeded " ,
568+ type = "credit_balance_depleted " ,
569569 )
570570
571571 assert response .is_closed is True
@@ -578,7 +578,7 @@ async def test_streaming_response_create_for_customer(self, async_client: AsyncO
578578 async with async_client .alerts .with_streaming_response .create_for_customer (
579579 customer_id = "customer_id" ,
580580 currency = "currency" ,
581- type = "usage_exceeded " ,
581+ type = "credit_balance_depleted " ,
582582 ) as response :
583583 assert not response .is_closed
584584 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -594,15 +594,15 @@ async def test_path_params_create_for_customer(self, async_client: AsyncOrb) ->
594594 await async_client .alerts .with_raw_response .create_for_customer (
595595 customer_id = "" ,
596596 currency = "currency" ,
597- type = "usage_exceeded " ,
597+ type = "credit_balance_depleted " ,
598598 )
599599
600600 @parametrize
601601 async def test_method_create_for_external_customer (self , async_client : AsyncOrb ) -> None :
602602 alert = await async_client .alerts .create_for_external_customer (
603603 external_customer_id = "external_customer_id" ,
604604 currency = "currency" ,
605- type = "usage_exceeded " ,
605+ type = "credit_balance_depleted " ,
606606 )
607607 assert_matches_type (Alert , alert , path = ["response" ])
608608
@@ -611,7 +611,7 @@ async def test_method_create_for_external_customer_with_all_params(self, async_c
611611 alert = await async_client .alerts .create_for_external_customer (
612612 external_customer_id = "external_customer_id" ,
613613 currency = "currency" ,
614- type = "usage_exceeded " ,
614+ type = "credit_balance_depleted " ,
615615 thresholds = [{"value" : 0 }],
616616 )
617617 assert_matches_type (Alert , alert , path = ["response" ])
@@ -621,7 +621,7 @@ async def test_raw_response_create_for_external_customer(self, async_client: Asy
621621 response = await async_client .alerts .with_raw_response .create_for_external_customer (
622622 external_customer_id = "external_customer_id" ,
623623 currency = "currency" ,
624- type = "usage_exceeded " ,
624+ type = "credit_balance_depleted " ,
625625 )
626626
627627 assert response .is_closed is True
@@ -634,7 +634,7 @@ async def test_streaming_response_create_for_external_customer(self, async_clien
634634 async with async_client .alerts .with_streaming_response .create_for_external_customer (
635635 external_customer_id = "external_customer_id" ,
636636 currency = "currency" ,
637- type = "usage_exceeded " ,
637+ type = "credit_balance_depleted " ,
638638 ) as response :
639639 assert not response .is_closed
640640 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -650,7 +650,7 @@ async def test_path_params_create_for_external_customer(self, async_client: Asyn
650650 await async_client .alerts .with_raw_response .create_for_external_customer (
651651 external_customer_id = "" ,
652652 currency = "currency" ,
653- type = "usage_exceeded " ,
653+ type = "credit_balance_depleted " ,
654654 )
655655
656656 @parametrize
0 commit comments