1313 Payment ,
1414 PaymentRetryResponse ,
1515 PaymentCreateResponse ,
16- PaymentReturnResponse ,
1716 PaymentSimulateActionResponse ,
1817 PaymentSimulateReturnResponse ,
1918 PaymentSimulateReceiptResponse ,
@@ -217,7 +216,7 @@ def test_method_return(self, client: Lithic) -> None:
217216 financial_account_token = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
218217 return_reason_code = "R01" ,
219218 )
220- assert_matches_type (PaymentReturnResponse , payment , path = ["response" ])
219+ assert_matches_type (Payment , payment , path = ["response" ])
221220
222221 @parametrize
223222 def test_method_return_with_all_params (self , client : Lithic ) -> None :
@@ -229,7 +228,7 @@ def test_method_return_with_all_params(self, client: Lithic) -> None:
229228 date_of_death = parse_date ("2025-01-15" ),
230229 memo = "memo" ,
231230 )
232- assert_matches_type (PaymentReturnResponse , payment , path = ["response" ])
231+ assert_matches_type (Payment , payment , path = ["response" ])
233232
234233 @parametrize
235234 def test_raw_response_return (self , client : Lithic ) -> None :
@@ -242,7 +241,7 @@ def test_raw_response_return(self, client: Lithic) -> None:
242241 assert response .is_closed is True
243242 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
244243 payment = response .parse ()
245- assert_matches_type (PaymentReturnResponse , payment , path = ["response" ])
244+ assert_matches_type (Payment , payment , path = ["response" ])
246245
247246 @parametrize
248247 def test_streaming_response_return (self , client : Lithic ) -> None :
@@ -255,7 +254,7 @@ def test_streaming_response_return(self, client: Lithic) -> None:
255254 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
256255
257256 payment = response .parse ()
258- assert_matches_type (PaymentReturnResponse , payment , path = ["response" ])
257+ assert_matches_type (Payment , payment , path = ["response" ])
259258
260259 assert cast (Any , response .is_closed ) is True
261260
@@ -638,7 +637,7 @@ async def test_method_return(self, async_client: AsyncLithic) -> None:
638637 financial_account_token = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
639638 return_reason_code = "R01" ,
640639 )
641- assert_matches_type (PaymentReturnResponse , payment , path = ["response" ])
640+ assert_matches_type (Payment , payment , path = ["response" ])
642641
643642 @parametrize
644643 async def test_method_return_with_all_params (self , async_client : AsyncLithic ) -> None :
@@ -650,7 +649,7 @@ async def test_method_return_with_all_params(self, async_client: AsyncLithic) ->
650649 date_of_death = parse_date ("2025-01-15" ),
651650 memo = "memo" ,
652651 )
653- assert_matches_type (PaymentReturnResponse , payment , path = ["response" ])
652+ assert_matches_type (Payment , payment , path = ["response" ])
654653
655654 @parametrize
656655 async def test_raw_response_return (self , async_client : AsyncLithic ) -> None :
@@ -663,7 +662,7 @@ async def test_raw_response_return(self, async_client: AsyncLithic) -> None:
663662 assert response .is_closed is True
664663 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
665664 payment = response .parse ()
666- assert_matches_type (PaymentReturnResponse , payment , path = ["response" ])
665+ assert_matches_type (Payment , payment , path = ["response" ])
667666
668667 @parametrize
669668 async def test_streaming_response_return (self , async_client : AsyncLithic ) -> None :
@@ -676,7 +675,7 @@ async def test_streaming_response_return(self, async_client: AsyncLithic) -> Non
676675 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
677676
678677 payment = await response .parse ()
679- assert_matches_type (PaymentReturnResponse , payment , path = ["response" ])
678+ assert_matches_type (Payment , payment , path = ["response" ])
680679
681680 assert cast (Any , response .is_closed ) is True
682681
0 commit comments