diff --git a/stripe/_account_capability_service.py b/stripe/_account_capability_service.py index 184b97c10..1c969b759 100644 --- a/stripe/_account_capability_service.py +++ b/stripe/_account_capability_service.py @@ -50,7 +50,6 @@ def list( "/v1/accounts/{account}/capabilities".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -73,7 +72,6 @@ async def list_async( "/v1/accounts/{account}/capabilities".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -98,7 +96,6 @@ def retrieve( account=sanitize_id(account), capability=sanitize_id(capability), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -123,7 +120,6 @@ async def retrieve_async( account=sanitize_id(account), capability=sanitize_id(capability), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -148,7 +144,6 @@ def update( account=sanitize_id(account), capability=sanitize_id(capability), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -173,7 +168,6 @@ async def update_async( account=sanitize_id(account), capability=sanitize_id(capability), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_account_external_account_service.py b/stripe/_account_external_account_service.py index a048e69d5..e708b784b 100644 --- a/stripe/_account_external_account_service.py +++ b/stripe/_account_external_account_service.py @@ -220,7 +220,6 @@ def delete( account=sanitize_id(account), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -245,7 +244,6 @@ async def delete_async( account=sanitize_id(account), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -270,7 +268,6 @@ def retrieve( account=sanitize_id(account), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -295,7 +292,6 @@ async def retrieve_async( account=sanitize_id(account), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -327,7 +323,6 @@ def update( account=sanitize_id(account), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -359,7 +354,6 @@ async def update_async( account=sanitize_id(account), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -382,7 +376,6 @@ def list( "/v1/accounts/{account}/external_accounts".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -405,7 +398,6 @@ async def list_async( "/v1/accounts/{account}/external_accounts".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -428,7 +420,6 @@ def create( "/v1/accounts/{account}/external_accounts".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -451,7 +442,6 @@ async def create_async( "/v1/accounts/{account}/external_accounts".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_account_link_service.py b/stripe/_account_link_service.py index 1cdccd997..855c75acd 100644 --- a/stripe/_account_link_service.py +++ b/stripe/_account_link_service.py @@ -68,7 +68,6 @@ def create( self._request( "post", "/v1/account_links", - api_mode="V1", base_address="api", params=params, options=options, @@ -88,7 +87,6 @@ async def create_async( await self._request_async( "post", "/v1/account_links", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_account_login_link_service.py b/stripe/_account_login_link_service.py index d46d42165..aa3d3dc7d 100644 --- a/stripe/_account_login_link_service.py +++ b/stripe/_account_login_link_service.py @@ -33,7 +33,6 @@ def create( "/v1/accounts/{account}/login_links".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -58,7 +57,6 @@ async def create_async( "/v1/accounts/{account}/login_links".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_account_notice_service.py b/stripe/_account_notice_service.py index 64877ae00..390dfd7cb 100644 --- a/stripe/_account_notice_service.py +++ b/stripe/_account_notice_service.py @@ -83,7 +83,6 @@ def list( self._request( "get", "/v1/account_notices", - api_mode="V1", base_address="api", params=params, options=options, @@ -103,7 +102,6 @@ async def list_async( await self._request_async( "get", "/v1/account_notices", - api_mode="V1", base_address="api", params=params, options=options, @@ -126,7 +124,6 @@ def retrieve( "/v1/account_notices/{account_notice}".format( account_notice=sanitize_id(account_notice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -149,7 +146,6 @@ async def retrieve_async( "/v1/account_notices/{account_notice}".format( account_notice=sanitize_id(account_notice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -172,7 +168,6 @@ def update( "/v1/account_notices/{account_notice}".format( account_notice=sanitize_id(account_notice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -195,7 +190,6 @@ async def update_async( "/v1/account_notices/{account_notice}".format( account_notice=sanitize_id(account_notice), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_account_person_service.py b/stripe/_account_person_service.py index 0fe82b820..903d8e370 100644 --- a/stripe/_account_person_service.py +++ b/stripe/_account_person_service.py @@ -831,7 +831,6 @@ def delete( account=sanitize_id(account), person=sanitize_id(person), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -856,7 +855,6 @@ async def delete_async( account=sanitize_id(account), person=sanitize_id(person), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -881,7 +879,6 @@ def retrieve( account=sanitize_id(account), person=sanitize_id(person), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -906,7 +903,6 @@ async def retrieve_async( account=sanitize_id(account), person=sanitize_id(person), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -931,7 +927,6 @@ def update( account=sanitize_id(account), person=sanitize_id(person), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -956,7 +951,6 @@ async def update_async( account=sanitize_id(account), person=sanitize_id(person), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -979,7 +973,6 @@ def list( "/v1/accounts/{account}/persons".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1002,7 +995,6 @@ async def list_async( "/v1/accounts/{account}/persons".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1025,7 +1017,6 @@ def create( "/v1/accounts/{account}/persons".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1048,7 +1039,6 @@ async def create_async( "/v1/accounts/{account}/persons".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_account_service.py b/stripe/_account_service.py index 123695f1e..065e53a08 100644 --- a/stripe/_account_service.py +++ b/stripe/_account_service.py @@ -3566,7 +3566,6 @@ def delete( self._request( "delete", "/v1/accounts/{account}".format(account=sanitize_id(account)), - api_mode="V1", base_address="api", params=params, options=options, @@ -3593,7 +3592,6 @@ async def delete_async( await self._request_async( "delete", "/v1/accounts/{account}".format(account=sanitize_id(account)), - api_mode="V1", base_address="api", params=params, options=options, @@ -3614,7 +3612,6 @@ def retrieve( self._request( "get", "/v1/accounts/{account}".format(account=sanitize_id(account)), - api_mode="V1", base_address="api", params=params, options=options, @@ -3635,7 +3632,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/accounts/{account}".format(account=sanitize_id(account)), - api_mode="V1", base_address="api", params=params, options=options, @@ -3668,7 +3664,6 @@ def update( self._request( "post", "/v1/accounts/{account}".format(account=sanitize_id(account)), - api_mode="V1", base_address="api", params=params, options=options, @@ -3701,7 +3696,6 @@ async def update_async( await self._request_async( "post", "/v1/accounts/{account}".format(account=sanitize_id(account)), - api_mode="V1", base_address="api", params=params, options=options, @@ -3721,7 +3715,6 @@ def retrieve_current( self._request( "get", "/v1/account", - api_mode="V1", base_address="api", params=params, options=options, @@ -3741,7 +3734,6 @@ async def retrieve_current_async( await self._request_async( "get", "/v1/account", - api_mode="V1", base_address="api", params=params, options=options, @@ -3761,7 +3753,6 @@ def list( self._request( "get", "/v1/accounts", - api_mode="V1", base_address="api", params=params, options=options, @@ -3781,7 +3772,6 @@ async def list_async( await self._request_async( "get", "/v1/accounts", - api_mode="V1", base_address="api", params=params, options=options, @@ -3806,7 +3796,6 @@ def create( self._request( "post", "/v1/accounts", - api_mode="V1", base_address="api", params=params, options=options, @@ -3831,7 +3820,6 @@ async def create_async( await self._request_async( "post", "/v1/accounts", - api_mode="V1", base_address="api", params=params, options=options, @@ -3856,7 +3844,6 @@ def reject( "/v1/accounts/{account}/reject".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -3881,7 +3868,6 @@ async def reject_async( "/v1/accounts/{account}/reject".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_account_session_service.py b/stripe/_account_session_service.py index 125ead46e..043efd487 100644 --- a/stripe/_account_session_service.py +++ b/stripe/_account_session_service.py @@ -587,7 +587,6 @@ def create( self._request( "post", "/v1/account_sessions", - api_mode="V1", base_address="api", params=params, options=options, @@ -607,7 +606,6 @@ async def create_async( await self._request_async( "post", "/v1/account_sessions", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_api_mode.py b/stripe/_api_mode.py index 24a4d7746..2c45fc2db 100644 --- a/stripe/_api_mode.py +++ b/stripe/_api_mode.py @@ -1,4 +1,4 @@ from typing_extensions import Literal -ApiMode = Literal["V1", "V1FILES", "preview"] +ApiMode = Literal["V1", "preview"] diff --git a/stripe/_api_requestor.py b/stripe/_api_requestor.py index 6c18e9099..5e3c6e409 100644 --- a/stripe/_api_requestor.py +++ b/stripe/_api_requestor.py @@ -182,10 +182,10 @@ def request( options: Optional[RequestOptions] = None, *, base_address: BaseAddress, - api_mode: ApiMode, usage: Optional[List[str]] = None, ) -> "StripeObject": requestor = self._replace_options(options) + api_mode = "V1" rbody, rcode, rheaders = requestor.request_raw( method.lower(), url, @@ -213,9 +213,9 @@ async def request_async( options: Optional[RequestOptions] = None, *, base_address: BaseAddress, - api_mode: ApiMode, usage: Optional[List[str]] = None, ) -> "StripeObject": + api_mode = "V1" requestor = self._replace_options(options) rbody, rcode, rheaders = await requestor.request_raw_async( method.lower(), @@ -244,9 +244,9 @@ def request_stream( options: Optional[RequestOptions] = None, *, base_address: BaseAddress, - api_mode: ApiMode, usage: Optional[List[str]] = None, ) -> StripeStreamResponse: + api_mode = "V1" stream, rcode, rheaders = self.request_raw( method.lower(), url, @@ -274,9 +274,9 @@ async def request_stream_async( options: Optional[RequestOptions] = None, *, base_address: BaseAddress, - api_mode: ApiMode, usage: Optional[List[str]] = None, ) -> StripeStreamResponseAsync: + api_mode = "V1" stream, rcode, rheaders = await self.request_raw_async( method.lower(), url, @@ -531,7 +531,10 @@ def _args_for_request_with_retries( abs_url = urlunsplit((scheme, netloc, path, query, fragment)) post_data = None elif method == "post": - if api_mode == "V1FILES": + if ( + options is not None + and options.get("content_type") == "multipart/form-data" + ): generator = MultipartDataGenerator() generator.add_params(params or {}) post_data = generator.get_post_data() diff --git a/stripe/_api_resource.py b/stripe/_api_resource.py index ea456719a..1fb402ab8 100644 --- a/stripe/_api_resource.py +++ b/stripe/_api_resource.py @@ -84,7 +84,6 @@ def _request( url, params=params, base_address=base_address, - api_mode=api_mode, ) if type(self) is type(obj): @@ -100,7 +99,6 @@ async def _request_async( params=None, *, base_address: BaseAddress = "api", - api_mode: ApiMode = "V1", ) -> StripeObject: obj = await StripeObject._request_async( self, @@ -108,11 +106,10 @@ async def _request_async( url, params=params, base_address=base_address, - api_mode=api_mode, ) if type(self) is type(obj): - self._refresh_from(values=obj, api_mode=api_mode) + self._refresh_from(values=obj, api_mode="V1") return self else: return obj @@ -133,7 +130,6 @@ def _request_and_refresh( url, params=params, base_address=base_address, - api_mode=api_mode, usage=usage, ) @@ -156,7 +152,6 @@ async def _request_and_refresh_async( url, params=params, base_address=base_address, - api_mode=api_mode, usage=usage, ) @@ -171,7 +166,6 @@ def _static_request( params: Optional[Mapping[str, Any]] = None, *, base_address: BaseAddress = "api", - api_mode: ApiMode = "V1", ): request_options, request_params = extract_options_from_dict(params) return _APIRequestor._global_instance().request( @@ -180,7 +174,6 @@ def _static_request( params=request_params, options=request_options, base_address=base_address, - api_mode=api_mode, ) @classmethod @@ -191,7 +184,6 @@ async def _static_request_async( params: Optional[Mapping[str, Any]] = None, *, base_address: BaseAddress = "api", - api_mode: ApiMode = "V1", ): request_options, request_params = extract_options_from_dict(params) return await _APIRequestor._global_instance().request_async( @@ -200,7 +192,6 @@ async def _static_request_async( params=request_params, options=request_options, base_address=base_address, - api_mode=api_mode, ) @classmethod @@ -211,7 +202,6 @@ def _static_request_stream( params: Optional[Mapping[str, Any]] = None, *, base_address: BaseAddress = "api", - api_mode: ApiMode = "V1", ): request_options, request_params = extract_options_from_dict(params) return _APIRequestor._global_instance().request_stream( @@ -220,7 +210,6 @@ def _static_request_stream( params=request_params, options=request_options, base_address=base_address, - api_mode=api_mode, ) @classmethod @@ -231,7 +220,6 @@ async def _static_request_stream_async( params: Optional[Mapping[str, Any]] = None, *, base_address: BaseAddress = "api", - api_mode: ApiMode = "V1", ): request_options, request_params = extract_options_from_dict(params) return await _APIRequestor._global_instance().request_stream_async( @@ -240,5 +228,4 @@ async def _static_request_stream_async( params=request_params, options=request_options, base_address=base_address, - api_mode=api_mode, ) diff --git a/stripe/_apple_pay_domain_service.py b/stripe/_apple_pay_domain_service.py index 112d8da00..c68c16146 100644 --- a/stripe/_apple_pay_domain_service.py +++ b/stripe/_apple_pay_domain_service.py @@ -61,7 +61,6 @@ def delete( "/v1/apple_pay/domains/{domain}".format( domain=sanitize_id(domain), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -84,7 +83,6 @@ async def delete_async( "/v1/apple_pay/domains/{domain}".format( domain=sanitize_id(domain), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -107,7 +105,6 @@ def retrieve( "/v1/apple_pay/domains/{domain}".format( domain=sanitize_id(domain), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -130,7 +127,6 @@ async def retrieve_async( "/v1/apple_pay/domains/{domain}".format( domain=sanitize_id(domain), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -150,7 +146,6 @@ def list( self._request( "get", "/v1/apple_pay/domains", - api_mode="V1", base_address="api", params=params, options=options, @@ -170,7 +165,6 @@ async def list_async( await self._request_async( "get", "/v1/apple_pay/domains", - api_mode="V1", base_address="api", params=params, options=options, @@ -190,7 +184,6 @@ def create( self._request( "post", "/v1/apple_pay/domains", - api_mode="V1", base_address="api", params=params, options=options, @@ -210,7 +203,6 @@ async def create_async( await self._request_async( "post", "/v1/apple_pay/domains", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_application_fee_refund_service.py b/stripe/_application_fee_refund_service.py index 4f620585e..c77b577cf 100644 --- a/stripe/_application_fee_refund_service.py +++ b/stripe/_application_fee_refund_service.py @@ -76,7 +76,6 @@ def retrieve( fee=sanitize_id(fee), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -101,7 +100,6 @@ async def retrieve_async( fee=sanitize_id(fee), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -128,7 +126,6 @@ def update( fee=sanitize_id(fee), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -155,7 +152,6 @@ async def update_async( fee=sanitize_id(fee), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -176,7 +172,6 @@ def list( self._request( "get", "/v1/application_fees/{id}/refunds".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -197,7 +192,6 @@ async def list_async( await self._request_async( "get", "/v1/application_fees/{id}/refunds".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -226,7 +220,6 @@ def create( self._request( "post", "/v1/application_fees/{id}/refunds".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -255,7 +248,6 @@ async def create_async( await self._request_async( "post", "/v1/application_fees/{id}/refunds".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_application_fee_service.py b/stripe/_application_fee_service.py index b3db0ae8b..f142a5c37 100644 --- a/stripe/_application_fee_service.py +++ b/stripe/_application_fee_service.py @@ -78,7 +78,6 @@ def list( self._request( "get", "/v1/application_fees", - api_mode="V1", base_address="api", params=params, options=options, @@ -98,7 +97,6 @@ async def list_async( await self._request_async( "get", "/v1/application_fees", - api_mode="V1", base_address="api", params=params, options=options, @@ -119,7 +117,6 @@ def retrieve( self._request( "get", "/v1/application_fees/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -140,7 +137,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/application_fees/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_balance_service.py b/stripe/_balance_service.py index 7220f5030..f80dee999 100644 --- a/stripe/_balance_service.py +++ b/stripe/_balance_service.py @@ -28,7 +28,6 @@ def retrieve( self._request( "get", "/v1/balance", - api_mode="V1", base_address="api", params=params, options=options, @@ -49,7 +48,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/balance", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_balance_transaction_service.py b/stripe/_balance_transaction_service.py index d6abe402c..06ec1abce 100644 --- a/stripe/_balance_transaction_service.py +++ b/stripe/_balance_transaction_service.py @@ -87,7 +87,6 @@ def list( self._request( "get", "/v1/balance_transactions", - api_mode="V1", base_address="api", params=params, options=options, @@ -109,7 +108,6 @@ async def list_async( await self._request_async( "get", "/v1/balance_transactions", - api_mode="V1", base_address="api", params=params, options=options, @@ -132,7 +130,6 @@ def retrieve( self._request( "get", "/v1/balance_transactions/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -155,7 +152,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/balance_transactions/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_charge_service.py b/stripe/_charge_service.py index b6fa6dc71..fb98c3d27 100644 --- a/stripe/_charge_service.py +++ b/stripe/_charge_service.py @@ -1700,7 +1700,6 @@ def list( self._request( "get", "/v1/charges", - api_mode="V1", base_address="api", params=params, options=options, @@ -1720,7 +1719,6 @@ async def list_async( await self._request_async( "get", "/v1/charges", - api_mode="V1", base_address="api", params=params, options=options, @@ -1742,7 +1740,6 @@ def create( self._request( "post", "/v1/charges", - api_mode="V1", base_address="api", params=params, options=options, @@ -1764,7 +1761,6 @@ async def create_async( await self._request_async( "post", "/v1/charges", - api_mode="V1", base_address="api", params=params, options=options, @@ -1785,7 +1781,6 @@ def retrieve( self._request( "get", "/v1/charges/{charge}".format(charge=sanitize_id(charge)), - api_mode="V1", base_address="api", params=params, options=options, @@ -1806,7 +1801,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/charges/{charge}".format(charge=sanitize_id(charge)), - api_mode="V1", base_address="api", params=params, options=options, @@ -1827,7 +1821,6 @@ def update( self._request( "post", "/v1/charges/{charge}".format(charge=sanitize_id(charge)), - api_mode="V1", base_address="api", params=params, options=options, @@ -1848,7 +1841,6 @@ async def update_async( await self._request_async( "post", "/v1/charges/{charge}".format(charge=sanitize_id(charge)), - api_mode="V1", base_address="api", params=params, options=options, @@ -1871,7 +1863,6 @@ def search( self._request( "get", "/v1/charges/search", - api_mode="V1", base_address="api", params=params, options=options, @@ -1894,7 +1885,6 @@ async def search_async( await self._request_async( "get", "/v1/charges/search", - api_mode="V1", base_address="api", params=params, options=options, @@ -1921,7 +1911,6 @@ def capture( "/v1/charges/{charge}/capture".format( charge=sanitize_id(charge), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1948,7 +1937,6 @@ async def capture_async( "/v1/charges/{charge}/capture".format( charge=sanitize_id(charge), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_confirmation_token_service.py b/stripe/_confirmation_token_service.py index c26ce0038..2f42d4d11 100644 --- a/stripe/_confirmation_token_service.py +++ b/stripe/_confirmation_token_service.py @@ -31,7 +31,6 @@ def retrieve( "/v1/confirmation_tokens/{confirmation_token}".format( confirmation_token=sanitize_id(confirmation_token), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -54,7 +53,6 @@ async def retrieve_async( "/v1/confirmation_tokens/{confirmation_token}".format( confirmation_token=sanitize_id(confirmation_token), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_country_spec_service.py b/stripe/_country_spec_service.py index dbaa2b77b..914f6f62c 100644 --- a/stripe/_country_spec_service.py +++ b/stripe/_country_spec_service.py @@ -47,7 +47,6 @@ def list( self._request( "get", "/v1/country_specs", - api_mode="V1", base_address="api", params=params, options=options, @@ -67,7 +66,6 @@ async def list_async( await self._request_async( "get", "/v1/country_specs", - api_mode="V1", base_address="api", params=params, options=options, @@ -90,7 +88,6 @@ def retrieve( "/v1/country_specs/{country}".format( country=sanitize_id(country), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -113,7 +110,6 @@ async def retrieve_async( "/v1/country_specs/{country}".format( country=sanitize_id(country), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_coupon_service.py b/stripe/_coupon_service.py index 9b2096aee..4ea60ef03 100644 --- a/stripe/_coupon_service.py +++ b/stripe/_coupon_service.py @@ -169,7 +169,6 @@ def delete( self._request( "delete", "/v1/coupons/{coupon}".format(coupon=sanitize_id(coupon)), - api_mode="V1", base_address="api", params=params, options=options, @@ -190,7 +189,6 @@ async def delete_async( await self._request_async( "delete", "/v1/coupons/{coupon}".format(coupon=sanitize_id(coupon)), - api_mode="V1", base_address="api", params=params, options=options, @@ -211,7 +209,6 @@ def retrieve( self._request( "get", "/v1/coupons/{coupon}".format(coupon=sanitize_id(coupon)), - api_mode="V1", base_address="api", params=params, options=options, @@ -232,7 +229,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/coupons/{coupon}".format(coupon=sanitize_id(coupon)), - api_mode="V1", base_address="api", params=params, options=options, @@ -253,7 +249,6 @@ def update( self._request( "post", "/v1/coupons/{coupon}".format(coupon=sanitize_id(coupon)), - api_mode="V1", base_address="api", params=params, options=options, @@ -274,7 +269,6 @@ async def update_async( await self._request_async( "post", "/v1/coupons/{coupon}".format(coupon=sanitize_id(coupon)), - api_mode="V1", base_address="api", params=params, options=options, @@ -294,7 +288,6 @@ def list( self._request( "get", "/v1/coupons", - api_mode="V1", base_address="api", params=params, options=options, @@ -314,7 +307,6 @@ async def list_async( await self._request_async( "get", "/v1/coupons", - api_mode="V1", base_address="api", params=params, options=options, @@ -336,7 +328,6 @@ def create( self._request( "post", "/v1/coupons", - api_mode="V1", base_address="api", params=params, options=options, @@ -358,7 +349,6 @@ async def create_async( await self._request_async( "post", "/v1/coupons", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_credit_note_line_item_service.py b/stripe/_credit_note_line_item_service.py index 094bd3057..ce267b123 100644 --- a/stripe/_credit_note_line_item_service.py +++ b/stripe/_credit_note_line_item_service.py @@ -44,7 +44,6 @@ def list( "/v1/credit_notes/{credit_note}/lines".format( credit_note=sanitize_id(credit_note), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -67,7 +66,6 @@ async def list_async( "/v1/credit_notes/{credit_note}/lines".format( credit_note=sanitize_id(credit_note), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_credit_note_preview_lines_service.py b/stripe/_credit_note_preview_lines_service.py index 84535ec49..4dab9aa7f 100644 --- a/stripe/_credit_note_preview_lines_service.py +++ b/stripe/_credit_note_preview_lines_service.py @@ -179,7 +179,6 @@ def list( self._request( "get", "/v1/credit_notes/preview/lines", - api_mode="V1", base_address="api", params=params, options=options, @@ -199,7 +198,6 @@ async def list_async( await self._request_async( "get", "/v1/credit_notes/preview/lines", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_credit_note_service.py b/stripe/_credit_note_service.py index af90ffcf3..1c7ace0cd 100644 --- a/stripe/_credit_note_service.py +++ b/stripe/_credit_note_service.py @@ -388,7 +388,6 @@ def list( self._request( "get", "/v1/credit_notes", - api_mode="V1", base_address="api", params=params, options=options, @@ -408,7 +407,6 @@ async def list_async( await self._request_async( "get", "/v1/credit_notes", - api_mode="V1", base_address="api", params=params, options=options, @@ -441,7 +439,6 @@ def create( self._request( "post", "/v1/credit_notes", - api_mode="V1", base_address="api", params=params, options=options, @@ -474,7 +471,6 @@ async def create_async( await self._request_async( "post", "/v1/credit_notes", - api_mode="V1", base_address="api", params=params, options=options, @@ -495,7 +491,6 @@ def retrieve( self._request( "get", "/v1/credit_notes/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -516,7 +511,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/credit_notes/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -537,7 +531,6 @@ def update( self._request( "post", "/v1/credit_notes/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -558,7 +551,6 @@ async def update_async( await self._request_async( "post", "/v1/credit_notes/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -578,7 +570,6 @@ def preview( self._request( "get", "/v1/credit_notes/preview", - api_mode="V1", base_address="api", params=params, options=options, @@ -598,7 +589,6 @@ async def preview_async( await self._request_async( "get", "/v1/credit_notes/preview", - api_mode="V1", base_address="api", params=params, options=options, @@ -619,7 +609,6 @@ def void_credit_note( self._request( "post", "/v1/credit_notes/{id}/void".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -640,7 +629,6 @@ async def void_credit_note_async( await self._request_async( "post", "/v1/credit_notes/{id}/void".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_customer_balance_transaction_service.py b/stripe/_customer_balance_transaction_service.py index 20291adac..d8b8d1f41 100644 --- a/stripe/_customer_balance_transaction_service.py +++ b/stripe/_customer_balance_transaction_service.py @@ -86,7 +86,6 @@ def list( "/v1/customers/{customer}/balance_transactions".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -109,7 +108,6 @@ async def list_async( "/v1/customers/{customer}/balance_transactions".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -132,7 +130,6 @@ def create( "/v1/customers/{customer}/balance_transactions".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -155,7 +152,6 @@ async def create_async( "/v1/customers/{customer}/balance_transactions".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -180,7 +176,6 @@ def retrieve( customer=sanitize_id(customer), transaction=sanitize_id(transaction), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -205,7 +200,6 @@ async def retrieve_async( customer=sanitize_id(customer), transaction=sanitize_id(transaction), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -230,7 +224,6 @@ def update( customer=sanitize_id(customer), transaction=sanitize_id(transaction), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -255,7 +248,6 @@ async def update_async( customer=sanitize_id(customer), transaction=sanitize_id(transaction), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_customer_cash_balance_service.py b/stripe/_customer_cash_balance_service.py index 5d50a3302..a3f3cc41e 100644 --- a/stripe/_customer_cash_balance_service.py +++ b/stripe/_customer_cash_balance_service.py @@ -51,7 +51,6 @@ def retrieve( "/v1/customers/{customer}/cash_balance".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -74,7 +73,6 @@ async def retrieve_async( "/v1/customers/{customer}/cash_balance".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -97,7 +95,6 @@ def update( "/v1/customers/{customer}/cash_balance".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -120,7 +117,6 @@ async def update_async( "/v1/customers/{customer}/cash_balance".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_customer_cash_balance_transaction_service.py b/stripe/_customer_cash_balance_transaction_service.py index 5e8a8bbb1..70c09590f 100644 --- a/stripe/_customer_cash_balance_transaction_service.py +++ b/stripe/_customer_cash_balance_transaction_service.py @@ -52,7 +52,6 @@ def list( "/v1/customers/{customer}/cash_balance_transactions".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -75,7 +74,6 @@ async def list_async( "/v1/customers/{customer}/cash_balance_transactions".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -100,7 +98,6 @@ def retrieve( customer=sanitize_id(customer), transaction=sanitize_id(transaction), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -125,7 +122,6 @@ async def retrieve_async( customer=sanitize_id(customer), transaction=sanitize_id(transaction), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_customer_funding_instructions_service.py b/stripe/_customer_funding_instructions_service.py index 0b287c8e4..6c2614742 100644 --- a/stripe/_customer_funding_instructions_service.py +++ b/stripe/_customer_funding_instructions_service.py @@ -79,7 +79,6 @@ def create( "/v1/customers/{customer}/funding_instructions".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -104,7 +103,6 @@ async def create_async( "/v1/customers/{customer}/funding_instructions".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_customer_payment_method_service.py b/stripe/_customer_payment_method_service.py index 03f9a793e..1d3a552d4 100644 --- a/stripe/_customer_payment_method_service.py +++ b/stripe/_customer_payment_method_service.py @@ -103,7 +103,6 @@ def list( "/v1/customers/{customer}/payment_methods".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -126,7 +125,6 @@ async def list_async( "/v1/customers/{customer}/payment_methods".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -151,7 +149,6 @@ def retrieve( customer=sanitize_id(customer), payment_method=sanitize_id(payment_method), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -176,7 +173,6 @@ async def retrieve_async( customer=sanitize_id(customer), payment_method=sanitize_id(payment_method), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_customer_payment_source_service.py b/stripe/_customer_payment_source_service.py index 0c70b7de2..b05bf03cb 100644 --- a/stripe/_customer_payment_source_service.py +++ b/stripe/_customer_payment_source_service.py @@ -189,7 +189,6 @@ def list( "/v1/customers/{customer}/sources".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -212,7 +211,6 @@ async def list_async( "/v1/customers/{customer}/sources".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -239,7 +237,6 @@ def create( "/v1/customers/{customer}/sources".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -266,7 +263,6 @@ async def create_async( "/v1/customers/{customer}/sources".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -291,7 +287,6 @@ def retrieve( customer=sanitize_id(customer), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -316,7 +311,6 @@ async def retrieve_async( customer=sanitize_id(customer), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -341,7 +335,6 @@ def update( customer=sanitize_id(customer), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -366,7 +359,6 @@ async def update_async( customer=sanitize_id(customer), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -391,7 +383,6 @@ def delete( customer=sanitize_id(customer), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -416,7 +407,6 @@ async def delete_async( customer=sanitize_id(customer), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -441,7 +431,6 @@ def verify( customer=sanitize_id(customer), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -466,7 +455,6 @@ async def verify_async( customer=sanitize_id(customer), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_customer_service.py b/stripe/_customer_service.py index 3906072ce..3c01eb8df 100644 --- a/stripe/_customer_service.py +++ b/stripe/_customer_service.py @@ -667,7 +667,6 @@ def delete( "/v1/customers/{customer}".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -690,7 +689,6 @@ async def delete_async( "/v1/customers/{customer}".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -713,7 +711,6 @@ def retrieve( "/v1/customers/{customer}".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -736,7 +733,6 @@ async def retrieve_async( "/v1/customers/{customer}".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -761,7 +757,6 @@ def update( "/v1/customers/{customer}".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -786,7 +781,6 @@ async def update_async( "/v1/customers/{customer}".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -809,7 +803,6 @@ def delete_discount( "/v1/customers/{customer}/discount".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -832,7 +825,6 @@ async def delete_discount_async( "/v1/customers/{customer}/discount".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -852,7 +844,6 @@ def list( self._request( "get", "/v1/customers", - api_mode="V1", base_address="api", params=params, options=options, @@ -872,7 +863,6 @@ async def list_async( await self._request_async( "get", "/v1/customers", - api_mode="V1", base_address="api", params=params, options=options, @@ -892,7 +882,6 @@ def create( self._request( "post", "/v1/customers", - api_mode="V1", base_address="api", params=params, options=options, @@ -912,7 +901,6 @@ async def create_async( await self._request_async( "post", "/v1/customers", - api_mode="V1", base_address="api", params=params, options=options, @@ -935,7 +923,6 @@ def search( self._request( "get", "/v1/customers/search", - api_mode="V1", base_address="api", params=params, options=options, @@ -958,7 +945,6 @@ async def search_async( await self._request_async( "get", "/v1/customers/search", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_customer_session_service.py b/stripe/_customer_session_service.py index f2c01ec87..820ab18a4 100644 --- a/stripe/_customer_session_service.py +++ b/stripe/_customer_session_service.py @@ -117,7 +117,6 @@ def create( self._request( "post", "/v1/customer_sessions", - api_mode="V1", base_address="api", params=params, options=options, @@ -137,7 +136,6 @@ async def create_async( await self._request_async( "post", "/v1/customer_sessions", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_customer_tax_id_service.py b/stripe/_customer_tax_id_service.py index 904f54239..af1ce221e 100644 --- a/stripe/_customer_tax_id_service.py +++ b/stripe/_customer_tax_id_service.py @@ -144,7 +144,6 @@ def delete( customer=sanitize_id(customer), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -169,7 +168,6 @@ async def delete_async( customer=sanitize_id(customer), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -194,7 +192,6 @@ def retrieve( customer=sanitize_id(customer), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -219,7 +216,6 @@ async def retrieve_async( customer=sanitize_id(customer), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -242,7 +238,6 @@ def list( "/v1/customers/{customer}/tax_ids".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -265,7 +260,6 @@ async def list_async( "/v1/customers/{customer}/tax_ids".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -288,7 +282,6 @@ def create( "/v1/customers/{customer}/tax_ids".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -311,7 +304,6 @@ async def create_async( "/v1/customers/{customer}/tax_ids".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_dispute_service.py b/stripe/_dispute_service.py index 96968e8a1..97c4f7897 100644 --- a/stripe/_dispute_service.py +++ b/stripe/_dispute_service.py @@ -377,7 +377,6 @@ def list( self._request( "get", "/v1/disputes", - api_mode="V1", base_address="api", params=params, options=options, @@ -397,7 +396,6 @@ async def list_async( await self._request_async( "get", "/v1/disputes", - api_mode="V1", base_address="api", params=params, options=options, @@ -418,7 +416,6 @@ def retrieve( self._request( "get", "/v1/disputes/{dispute}".format(dispute=sanitize_id(dispute)), - api_mode="V1", base_address="api", params=params, options=options, @@ -439,7 +436,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/disputes/{dispute}".format(dispute=sanitize_id(dispute)), - api_mode="V1", base_address="api", params=params, options=options, @@ -462,7 +458,6 @@ def update( self._request( "post", "/v1/disputes/{dispute}".format(dispute=sanitize_id(dispute)), - api_mode="V1", base_address="api", params=params, options=options, @@ -485,7 +480,6 @@ async def update_async( await self._request_async( "post", "/v1/disputes/{dispute}".format(dispute=sanitize_id(dispute)), - api_mode="V1", base_address="api", params=params, options=options, @@ -510,7 +504,6 @@ def close( "/v1/disputes/{dispute}/close".format( dispute=sanitize_id(dispute), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -535,7 +528,6 @@ async def close_async( "/v1/disputes/{dispute}/close".format( dispute=sanitize_id(dispute), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_ephemeral_key.py b/stripe/_ephemeral_key.py index 9fd5fd5ca..dca9fd62b 100644 --- a/stripe/_ephemeral_key.py +++ b/stripe/_ephemeral_key.py @@ -157,5 +157,4 @@ def create(cls, **params): url, params=params, base_address="api", - api_mode="V1", ) diff --git a/stripe/_ephemeral_key_service.py b/stripe/_ephemeral_key_service.py index 1e3c139a6..61d5ea7d6 100644 --- a/stripe/_ephemeral_key_service.py +++ b/stripe/_ephemeral_key_service.py @@ -51,7 +51,6 @@ def delete( self._request( "delete", "/v1/ephemeral_keys/{key}".format(key=sanitize_id(key)), - api_mode="V1", base_address="api", params=params, options=options, @@ -72,7 +71,6 @@ async def delete_async( await self._request_async( "delete", "/v1/ephemeral_keys/{key}".format(key=sanitize_id(key)), - api_mode="V1", base_address="api", params=params, options=options, @@ -92,7 +90,6 @@ def create( self._request( "post", "/v1/ephemeral_keys", - api_mode="V1", base_address="api", params=params, options=options, @@ -112,7 +109,6 @@ async def create_async( await self._request_async( "post", "/v1/ephemeral_keys", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_event_service.py b/stripe/_event_service.py index 89d21c043..745512086 100644 --- a/stripe/_event_service.py +++ b/stripe/_event_service.py @@ -81,7 +81,6 @@ def list( self._request( "get", "/v1/events", - api_mode="V1", base_address="api", params=params, options=options, @@ -101,7 +100,6 @@ async def list_async( await self._request_async( "get", "/v1/events", - api_mode="V1", base_address="api", params=params, options=options, @@ -122,7 +120,6 @@ def retrieve( self._request( "get", "/v1/events/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -143,7 +140,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/events/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_exchange_rate_service.py b/stripe/_exchange_rate_service.py index a187e2b36..3df40614c 100644 --- a/stripe/_exchange_rate_service.py +++ b/stripe/_exchange_rate_service.py @@ -47,7 +47,6 @@ def list( self._request( "get", "/v1/exchange_rates", - api_mode="V1", base_address="api", params=params, options=options, @@ -67,7 +66,6 @@ async def list_async( await self._request_async( "get", "/v1/exchange_rates", - api_mode="V1", base_address="api", params=params, options=options, @@ -90,7 +88,6 @@ def retrieve( "/v1/exchange_rates/{rate_id}".format( rate_id=sanitize_id(rate_id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -113,7 +110,6 @@ async def retrieve_async( "/v1/exchange_rates/{rate_id}".format( rate_id=sanitize_id(rate_id), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_file.py b/stripe/_file.py index fd41f9a5a..7c36c1e5b 100644 --- a/stripe/_file.py +++ b/stripe/_file.py @@ -212,6 +212,8 @@ def create(cls, **params: Unpack["File.CreateParams"]) -> "File": All of Stripe's officially supported Client libraries support sending multipart/form-data. """ + params["content_type"] = "multipart/form-data" + return cast( "File", cls._static_request( @@ -219,7 +221,6 @@ def create(cls, **params: Unpack["File.CreateParams"]) -> "File": cls.class_url(), params=params, base_address="files", - api_mode="V1FILES", ), ) @@ -232,6 +233,8 @@ async def create_async( All of Stripe's officially supported Client libraries support sending multipart/form-data. """ + params["content_type"] = "multipart/form-data" + return cast( "File", await cls._static_request_async( @@ -239,7 +242,6 @@ async def create_async( cls.class_url(), params=params, base_address="files", - api_mode="V1FILES", ), ) diff --git a/stripe/_file_link_service.py b/stripe/_file_link_service.py index 02ebef616..73e955371 100644 --- a/stripe/_file_link_service.py +++ b/stripe/_file_link_service.py @@ -109,7 +109,6 @@ def list( self._request( "get", "/v1/file_links", - api_mode="V1", base_address="api", params=params, options=options, @@ -129,7 +128,6 @@ async def list_async( await self._request_async( "get", "/v1/file_links", - api_mode="V1", base_address="api", params=params, options=options, @@ -149,7 +147,6 @@ def create( self._request( "post", "/v1/file_links", - api_mode="V1", base_address="api", params=params, options=options, @@ -169,7 +166,6 @@ async def create_async( await self._request_async( "post", "/v1/file_links", - api_mode="V1", base_address="api", params=params, options=options, @@ -190,7 +186,6 @@ def retrieve( self._request( "get", "/v1/file_links/{link}".format(link=sanitize_id(link)), - api_mode="V1", base_address="api", params=params, options=options, @@ -211,7 +206,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/file_links/{link}".format(link=sanitize_id(link)), - api_mode="V1", base_address="api", params=params, options=options, @@ -232,7 +226,6 @@ def update( self._request( "post", "/v1/file_links/{link}".format(link=sanitize_id(link)), - api_mode="V1", base_address="api", params=params, options=options, @@ -253,7 +246,6 @@ async def update_async( await self._request_async( "post", "/v1/file_links/{link}".format(link=sanitize_id(link)), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_file_service.py b/stripe/_file_service.py index 44f4b5ea7..4c29215c4 100644 --- a/stripe/_file_service.py +++ b/stripe/_file_service.py @@ -136,7 +136,6 @@ def list( self._request( "get", "/v1/files", - api_mode="V1", base_address="api", params=params, options=options, @@ -156,7 +155,6 @@ async def list_async( await self._request_async( "get", "/v1/files", - api_mode="V1", base_address="api", params=params, options=options, @@ -171,12 +169,12 @@ def create( All of Stripe's officially supported Client libraries support sending multipart/form-data. """ + options["content_type"] = "multipart/form-data" return cast( File, self._request( "post", "/v1/files", - api_mode="V1FILES", base_address="files", params=params, options=options, @@ -191,12 +189,12 @@ async def create_async( All of Stripe's officially supported Client libraries support sending multipart/form-data. """ + options["content_type"] = "multipart/form-data" return cast( File, await self._request_async( "post", "/v1/files", - api_mode="V1FILES", base_address="files", params=params, options=options, @@ -217,7 +215,6 @@ def retrieve( self._request( "get", "/v1/files/{file}".format(file=sanitize_id(file)), - api_mode="V1", base_address="api", params=params, options=options, @@ -238,7 +235,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/files/{file}".format(file=sanitize_id(file)), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_invoice_item_service.py b/stripe/_invoice_item_service.py index 7384c97c5..01f2601e6 100644 --- a/stripe/_invoice_item_service.py +++ b/stripe/_invoice_item_service.py @@ -403,7 +403,6 @@ def delete( "/v1/invoiceitems/{invoiceitem}".format( invoiceitem=sanitize_id(invoiceitem), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -426,7 +425,6 @@ async def delete_async( "/v1/invoiceitems/{invoiceitem}".format( invoiceitem=sanitize_id(invoiceitem), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -449,7 +447,6 @@ def retrieve( "/v1/invoiceitems/{invoiceitem}".format( invoiceitem=sanitize_id(invoiceitem), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -472,7 +469,6 @@ async def retrieve_async( "/v1/invoiceitems/{invoiceitem}".format( invoiceitem=sanitize_id(invoiceitem), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -495,7 +491,6 @@ def update( "/v1/invoiceitems/{invoiceitem}".format( invoiceitem=sanitize_id(invoiceitem), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -518,7 +513,6 @@ async def update_async( "/v1/invoiceitems/{invoiceitem}".format( invoiceitem=sanitize_id(invoiceitem), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -538,7 +532,6 @@ def list( self._request( "get", "/v1/invoiceitems", - api_mode="V1", base_address="api", params=params, options=options, @@ -558,7 +551,6 @@ async def list_async( await self._request_async( "get", "/v1/invoiceitems", - api_mode="V1", base_address="api", params=params, options=options, @@ -578,7 +570,6 @@ def create( self._request( "post", "/v1/invoiceitems", - api_mode="V1", base_address="api", params=params, options=options, @@ -598,7 +589,6 @@ async def create_async( await self._request_async( "post", "/v1/invoiceitems", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_invoice_line_item_service.py b/stripe/_invoice_line_item_service.py index e0bf92900..6711b755c 100644 --- a/stripe/_invoice_line_item_service.py +++ b/stripe/_invoice_line_item_service.py @@ -277,7 +277,6 @@ def list( "/v1/invoices/{invoice}/lines".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -300,7 +299,6 @@ async def list_async( "/v1/invoices/{invoice}/lines".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -328,7 +326,6 @@ def update( invoice=sanitize_id(invoice), line_item_id=sanitize_id(line_item_id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -356,7 +353,6 @@ async def update_async( invoice=sanitize_id(invoice), line_item_id=sanitize_id(line_item_id), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_invoice_payment_service.py b/stripe/_invoice_payment_service.py index 56d2cd592..a7128e292 100644 --- a/stripe/_invoice_payment_service.py +++ b/stripe/_invoice_payment_service.py @@ -50,7 +50,6 @@ def list( "/v1/invoices/{invoice}/payments".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -73,7 +72,6 @@ async def list_async( "/v1/invoices/{invoice}/payments".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -98,7 +96,6 @@ def retrieve( invoice=sanitize_id(invoice), invoice_payment=sanitize_id(invoice_payment), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -123,7 +120,6 @@ async def retrieve_async( invoice=sanitize_id(invoice), invoice_payment=sanitize_id(invoice_payment), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_invoice_service.py b/stripe/_invoice_service.py index 77a07807e..477f54b06 100644 --- a/stripe/_invoice_service.py +++ b/stripe/_invoice_service.py @@ -6038,7 +6038,6 @@ def delete( self._request( "delete", "/v1/invoices/{invoice}".format(invoice=sanitize_id(invoice)), - api_mode="V1", base_address="api", params=params, options=options, @@ -6059,7 +6058,6 @@ async def delete_async( await self._request_async( "delete", "/v1/invoices/{invoice}".format(invoice=sanitize_id(invoice)), - api_mode="V1", base_address="api", params=params, options=options, @@ -6080,7 +6078,6 @@ def retrieve( self._request( "get", "/v1/invoices/{invoice}".format(invoice=sanitize_id(invoice)), - api_mode="V1", base_address="api", params=params, options=options, @@ -6101,7 +6098,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/invoices/{invoice}".format(invoice=sanitize_id(invoice)), - api_mode="V1", base_address="api", params=params, options=options, @@ -6127,7 +6123,6 @@ def update( self._request( "post", "/v1/invoices/{invoice}".format(invoice=sanitize_id(invoice)), - api_mode="V1", base_address="api", params=params, options=options, @@ -6153,7 +6148,6 @@ async def update_async( await self._request_async( "post", "/v1/invoices/{invoice}".format(invoice=sanitize_id(invoice)), - api_mode="V1", base_address="api", params=params, options=options, @@ -6173,7 +6167,6 @@ def list( self._request( "get", "/v1/invoices", - api_mode="V1", base_address="api", params=params, options=options, @@ -6193,7 +6186,6 @@ async def list_async( await self._request_async( "get", "/v1/invoices", - api_mode="V1", base_address="api", params=params, options=options, @@ -6213,7 +6205,6 @@ def create( self._request( "post", "/v1/invoices", - api_mode="V1", base_address="api", params=params, options=options, @@ -6233,7 +6224,6 @@ async def create_async( await self._request_async( "post", "/v1/invoices", - api_mode="V1", base_address="api", params=params, options=options, @@ -6256,7 +6246,6 @@ def search( self._request( "get", "/v1/invoices/search", - api_mode="V1", base_address="api", params=params, options=options, @@ -6279,7 +6268,6 @@ async def search_async( await self._request_async( "get", "/v1/invoices/search", - api_mode="V1", base_address="api", params=params, options=options, @@ -6305,7 +6293,6 @@ def upcoming( self._request( "get", "/v1/invoices/upcoming", - api_mode="V1", base_address="api", params=params, options=options, @@ -6331,7 +6318,6 @@ async def upcoming_async( await self._request_async( "get", "/v1/invoices/upcoming", - api_mode="V1", base_address="api", params=params, options=options, @@ -6354,7 +6340,6 @@ def add_lines( "/v1/invoices/{invoice}/add_lines".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -6377,7 +6362,6 @@ async def add_lines_async( "/v1/invoices/{invoice}/add_lines".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -6412,7 +6396,6 @@ def attach_payment( "/v1/invoices/{invoice}/attach_payment".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -6447,7 +6430,6 @@ async def attach_payment_async( "/v1/invoices/{invoice}/attach_payment".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -6478,7 +6460,6 @@ def attach_payment_intent( "/v1/invoices/{invoice}/attach_payment_intent".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -6509,7 +6490,6 @@ async def attach_payment_intent_async( "/v1/invoices/{invoice}/attach_payment_intent".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -6532,7 +6512,6 @@ def finalize_invoice( "/v1/invoices/{invoice}/finalize".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -6555,7 +6534,6 @@ async def finalize_invoice_async( "/v1/invoices/{invoice}/finalize".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -6578,7 +6556,6 @@ def mark_uncollectible( "/v1/invoices/{invoice}/mark_uncollectible".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -6601,7 +6578,6 @@ async def mark_uncollectible_async( "/v1/invoices/{invoice}/mark_uncollectible".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -6624,7 +6600,6 @@ def pay( "/v1/invoices/{invoice}/pay".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -6647,7 +6622,6 @@ async def pay_async( "/v1/invoices/{invoice}/pay".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -6670,7 +6644,6 @@ def remove_lines( "/v1/invoices/{invoice}/remove_lines".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -6693,7 +6666,6 @@ async def remove_lines_async( "/v1/invoices/{invoice}/remove_lines".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -6718,7 +6690,6 @@ def send_invoice( "/v1/invoices/{invoice}/send".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -6743,7 +6714,6 @@ async def send_invoice_async( "/v1/invoices/{invoice}/send".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -6766,7 +6736,6 @@ def update_lines( "/v1/invoices/{invoice}/update_lines".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -6789,7 +6758,6 @@ async def update_lines_async( "/v1/invoices/{invoice}/update_lines".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -6814,7 +6782,6 @@ def void_invoice( "/v1/invoices/{invoice}/void".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -6839,7 +6806,6 @@ async def void_invoice_async( "/v1/invoices/{invoice}/void".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -6865,7 +6831,6 @@ def create_preview( self._request( "post", "/v1/invoices/create_preview", - api_mode="V1", base_address="api", params=params, options=options, @@ -6891,7 +6856,6 @@ async def create_preview_async( await self._request_async( "post", "/v1/invoices/create_preview", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_invoice_upcoming_lines_service.py b/stripe/_invoice_upcoming_lines_service.py index 1bf3d82e0..352bb07b3 100644 --- a/stripe/_invoice_upcoming_lines_service.py +++ b/stripe/_invoice_upcoming_lines_service.py @@ -2056,7 +2056,6 @@ def list( self._request( "get", "/v1/invoices/upcoming/lines", - api_mode="V1", base_address="api", params=params, options=options, @@ -2076,7 +2075,6 @@ async def list_async( await self._request_async( "get", "/v1/invoices/upcoming/lines", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_list_object.py b/stripe/_list_object.py index bb007269f..71814cbcf 100644 --- a/stripe/_list_object.py +++ b/stripe/_list_object.py @@ -48,7 +48,6 @@ def list(self, **params: Mapping[str, Any]) -> Self: self._get_url_for_list(), params=params, base_address="api", - api_mode="V1", ), ) @@ -60,7 +59,6 @@ async def list_async(self, **params: Mapping[str, Any]) -> Self: self._get_url_for_list(), params=params, base_address="api", - api_mode="V1", ), ) @@ -77,7 +75,6 @@ def create(self, **params: Mapping[str, Any]) -> T: url, params=params, base_address="api", - api_mode="V1", ), ) @@ -96,7 +93,6 @@ def retrieve(self, id: str, **params: Mapping[str, Any]): url, params=params, base_address="api", - api_mode="V1", ), ) diff --git a/stripe/_mandate_service.py b/stripe/_mandate_service.py index 52c0c6ca1..a8d603563 100644 --- a/stripe/_mandate_service.py +++ b/stripe/_mandate_service.py @@ -29,7 +29,6 @@ def retrieve( self._request( "get", "/v1/mandates/{mandate}".format(mandate=sanitize_id(mandate)), - api_mode="V1", base_address="api", params=params, options=options, @@ -50,7 +49,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/mandates/{mandate}".format(mandate=sanitize_id(mandate)), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_margin_service.py b/stripe/_margin_service.py index 65e53be62..fc82fe7fe 100644 --- a/stripe/_margin_service.py +++ b/stripe/_margin_service.py @@ -91,7 +91,6 @@ def list( self._request( "get", "/v1/billing/margins", - api_mode="V1", base_address="api", params=params, options=options, @@ -111,7 +110,6 @@ async def list_async( await self._request_async( "get", "/v1/billing/margins", - api_mode="V1", base_address="api", params=params, options=options, @@ -131,7 +129,6 @@ def create( self._request( "post", "/v1/billing/margins", - api_mode="V1", base_address="api", params=params, options=options, @@ -151,7 +148,6 @@ async def create_async( await self._request_async( "post", "/v1/billing/margins", - api_mode="V1", base_address="api", params=params, options=options, @@ -174,7 +170,6 @@ def retrieve( "/v1/billing/margins/{margin}".format( margin=sanitize_id(margin), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -197,7 +192,6 @@ async def retrieve_async( "/v1/billing/margins/{margin}".format( margin=sanitize_id(margin), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -220,7 +214,6 @@ def update( "/v1/billing/margins/{margin}".format( margin=sanitize_id(margin), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -243,7 +236,6 @@ async def update_async( "/v1/billing/margins/{margin}".format( margin=sanitize_id(margin), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_oauth.py b/stripe/_oauth.py index e0050c7e1..c2bd478b0 100644 --- a/stripe/_oauth.py +++ b/stripe/_oauth.py @@ -333,7 +333,6 @@ def token( params=params, options=options, base_address="connect", - api_mode="V1", ), ) @@ -352,6 +351,5 @@ def deauthorize( params=params, options=options, base_address="connect", - api_mode="V1", ), ) diff --git a/stripe/_oauth_service.py b/stripe/_oauth_service.py index 480cd6f12..7c24269f5 100644 --- a/stripe/_oauth_service.py +++ b/stripe/_oauth_service.py @@ -78,7 +78,6 @@ def token( params=params, options=options, base_address="connect", - api_mode="V1", ), ) @@ -96,6 +95,5 @@ def deauthorize( params=params, options=options, base_address="connect", - api_mode="V1", ), ) diff --git a/stripe/_order_line_item_service.py b/stripe/_order_line_item_service.py index 0ac3ed0f5..6501fe2aa 100644 --- a/stripe/_order_line_item_service.py +++ b/stripe/_order_line_item_service.py @@ -42,7 +42,6 @@ def list( self._request( "get", "/v1/orders/{id}/line_items".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -63,7 +62,6 @@ async def list_async( await self._request_async( "get", "/v1/orders/{id}/line_items".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_order_service.py b/stripe/_order_service.py index f024b19dc..f62ca1c9e 100644 --- a/stripe/_order_service.py +++ b/stripe/_order_service.py @@ -2510,7 +2510,6 @@ def list( self._request( "get", "/v1/orders", - api_mode="V1", base_address="api", params=params, options=options, @@ -2530,7 +2529,6 @@ async def list_async( await self._request_async( "get", "/v1/orders", - api_mode="V1", base_address="api", params=params, options=options, @@ -2548,7 +2546,6 @@ def create( self._request( "post", "/v1/orders", - api_mode="V1", base_address="api", params=params, options=options, @@ -2566,7 +2563,6 @@ async def create_async( await self._request_async( "post", "/v1/orders", - api_mode="V1", base_address="api", params=params, options=options, @@ -2587,7 +2583,6 @@ def retrieve( self._request( "get", "/v1/orders/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -2608,7 +2603,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/orders/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -2629,7 +2623,6 @@ def update( self._request( "post", "/v1/orders/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -2650,7 +2643,6 @@ async def update_async( await self._request_async( "post", "/v1/orders/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -2671,7 +2663,6 @@ def cancel( self._request( "post", "/v1/orders/{id}/cancel".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -2692,7 +2683,6 @@ async def cancel_async( await self._request_async( "post", "/v1/orders/{id}/cancel".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -2713,7 +2703,6 @@ def reopen( self._request( "post", "/v1/orders/{id}/reopen".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -2734,7 +2723,6 @@ async def reopen_async( await self._request_async( "post", "/v1/orders/{id}/reopen".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -2755,7 +2743,6 @@ def submit( self._request( "post", "/v1/orders/{id}/submit".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -2776,7 +2763,6 @@ async def submit_async( await self._request_async( "post", "/v1/orders/{id}/submit".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_payment_intent_service.py b/stripe/_payment_intent_service.py index f8df884cf..44d9d6c99 100644 --- a/stripe/_payment_intent_service.py +++ b/stripe/_payment_intent_service.py @@ -10891,7 +10891,6 @@ def list( self._request( "get", "/v1/payment_intents", - api_mode="V1", base_address="api", params=params, options=options, @@ -10911,7 +10910,6 @@ async def list_async( await self._request_async( "get", "/v1/payment_intents", - api_mode="V1", base_address="api", params=params, options=options, @@ -10940,7 +10938,6 @@ def create( self._request( "post", "/v1/payment_intents", - api_mode="V1", base_address="api", params=params, options=options, @@ -10969,7 +10966,6 @@ async def create_async( await self._request_async( "post", "/v1/payment_intents", - api_mode="V1", base_address="api", params=params, options=options, @@ -10996,7 +10992,6 @@ def retrieve( "/v1/payment_intents/{intent}".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -11023,7 +11018,6 @@ async def retrieve_async( "/v1/payment_intents/{intent}".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -11052,7 +11046,6 @@ def update( "/v1/payment_intents/{intent}".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -11081,7 +11074,6 @@ async def update_async( "/v1/payment_intents/{intent}".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -11104,7 +11096,6 @@ def search( self._request( "get", "/v1/payment_intents/search", - api_mode="V1", base_address="api", params=params, options=options, @@ -11127,7 +11118,6 @@ async def search_async( await self._request_async( "get", "/v1/payment_intents/search", - api_mode="V1", base_address="api", params=params, options=options, @@ -11150,7 +11140,6 @@ def apply_customer_balance( "/v1/payment_intents/{intent}/apply_customer_balance".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -11173,7 +11162,6 @@ async def apply_customer_balance_async( "/v1/payment_intents/{intent}/apply_customer_balance".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -11200,7 +11188,6 @@ def cancel( "/v1/payment_intents/{intent}/cancel".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -11227,7 +11214,6 @@ async def cancel_async( "/v1/payment_intents/{intent}/cancel".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -11254,7 +11240,6 @@ def capture( "/v1/payment_intents/{intent}/capture".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -11281,7 +11266,6 @@ async def capture_async( "/v1/payment_intents/{intent}/capture".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -11325,7 +11309,6 @@ def confirm( "/v1/payment_intents/{intent}/confirm".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -11369,7 +11352,6 @@ async def confirm_async( "/v1/payment_intents/{intent}/confirm".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -11407,7 +11389,6 @@ def decrement_authorization( "/v1/payment_intents/{intent}/decrement_authorization".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -11445,7 +11426,6 @@ async def decrement_authorization_async( "/v1/payment_intents/{intent}/decrement_authorization".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -11491,7 +11471,6 @@ def increment_authorization( "/v1/payment_intents/{intent}/increment_authorization".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -11537,7 +11516,6 @@ async def increment_authorization_async( "/v1/payment_intents/{intent}/increment_authorization".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -11560,7 +11538,6 @@ def verify_microdeposits( "/v1/payment_intents/{intent}/verify_microdeposits".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -11583,7 +11560,6 @@ async def verify_microdeposits_async( "/v1/payment_intents/{intent}/verify_microdeposits".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_payment_link_line_item_service.py b/stripe/_payment_link_line_item_service.py index 93bdead2e..8484bd147 100644 --- a/stripe/_payment_link_line_item_service.py +++ b/stripe/_payment_link_line_item_service.py @@ -44,7 +44,6 @@ def list( "/v1/payment_links/{payment_link}/line_items".format( payment_link=sanitize_id(payment_link), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -67,7 +66,6 @@ async def list_async( "/v1/payment_links/{payment_link}/line_items".format( payment_link=sanitize_id(payment_link), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_payment_link_service.py b/stripe/_payment_link_service.py index e6d7b66d9..74e5f7c83 100644 --- a/stripe/_payment_link_service.py +++ b/stripe/_payment_link_service.py @@ -1690,7 +1690,6 @@ def list( self._request( "get", "/v1/payment_links", - api_mode="V1", base_address="api", params=params, options=options, @@ -1710,7 +1709,6 @@ async def list_async( await self._request_async( "get", "/v1/payment_links", - api_mode="V1", base_address="api", params=params, options=options, @@ -1730,7 +1728,6 @@ def create( self._request( "post", "/v1/payment_links", - api_mode="V1", base_address="api", params=params, options=options, @@ -1750,7 +1747,6 @@ async def create_async( await self._request_async( "post", "/v1/payment_links", - api_mode="V1", base_address="api", params=params, options=options, @@ -1773,7 +1769,6 @@ def retrieve( "/v1/payment_links/{payment_link}".format( payment_link=sanitize_id(payment_link), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1796,7 +1791,6 @@ async def retrieve_async( "/v1/payment_links/{payment_link}".format( payment_link=sanitize_id(payment_link), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1819,7 +1813,6 @@ def update( "/v1/payment_links/{payment_link}".format( payment_link=sanitize_id(payment_link), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1842,7 +1835,6 @@ async def update_async( "/v1/payment_links/{payment_link}".format( payment_link=sanitize_id(payment_link), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_payment_method_configuration_service.py b/stripe/_payment_method_configuration_service.py index c513bf951..4046bf4cf 100644 --- a/stripe/_payment_method_configuration_service.py +++ b/stripe/_payment_method_configuration_service.py @@ -1723,7 +1723,6 @@ def list( self._request( "get", "/v1/payment_method_configurations", - api_mode="V1", base_address="api", params=params, options=options, @@ -1743,7 +1742,6 @@ async def list_async( await self._request_async( "get", "/v1/payment_method_configurations", - api_mode="V1", base_address="api", params=params, options=options, @@ -1763,7 +1761,6 @@ def create( self._request( "post", "/v1/payment_method_configurations", - api_mode="V1", base_address="api", params=params, options=options, @@ -1783,7 +1780,6 @@ async def create_async( await self._request_async( "post", "/v1/payment_method_configurations", - api_mode="V1", base_address="api", params=params, options=options, @@ -1806,7 +1802,6 @@ def retrieve( "/v1/payment_method_configurations/{configuration}".format( configuration=sanitize_id(configuration), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1829,7 +1824,6 @@ async def retrieve_async( "/v1/payment_method_configurations/{configuration}".format( configuration=sanitize_id(configuration), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1852,7 +1846,6 @@ def update( "/v1/payment_method_configurations/{configuration}".format( configuration=sanitize_id(configuration), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1875,7 +1868,6 @@ async def update_async( "/v1/payment_method_configurations/{configuration}".format( configuration=sanitize_id(configuration), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_payment_method_domain_service.py b/stripe/_payment_method_domain_service.py index 24692f54a..5452daa9b 100644 --- a/stripe/_payment_method_domain_service.py +++ b/stripe/_payment_method_domain_service.py @@ -85,7 +85,6 @@ def list( self._request( "get", "/v1/payment_method_domains", - api_mode="V1", base_address="api", params=params, options=options, @@ -105,7 +104,6 @@ async def list_async( await self._request_async( "get", "/v1/payment_method_domains", - api_mode="V1", base_address="api", params=params, options=options, @@ -125,7 +123,6 @@ def create( self._request( "post", "/v1/payment_method_domains", - api_mode="V1", base_address="api", params=params, options=options, @@ -145,7 +142,6 @@ async def create_async( await self._request_async( "post", "/v1/payment_method_domains", - api_mode="V1", base_address="api", params=params, options=options, @@ -168,7 +164,6 @@ def retrieve( "/v1/payment_method_domains/{payment_method_domain}".format( payment_method_domain=sanitize_id(payment_method_domain), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -191,7 +186,6 @@ async def retrieve_async( "/v1/payment_method_domains/{payment_method_domain}".format( payment_method_domain=sanitize_id(payment_method_domain), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -214,7 +208,6 @@ def update( "/v1/payment_method_domains/{payment_method_domain}".format( payment_method_domain=sanitize_id(payment_method_domain), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -237,7 +230,6 @@ async def update_async( "/v1/payment_method_domains/{payment_method_domain}".format( payment_method_domain=sanitize_id(payment_method_domain), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -265,7 +257,6 @@ def validate( "/v1/payment_method_domains/{payment_method_domain}/validate".format( payment_method_domain=sanitize_id(payment_method_domain), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -293,7 +284,6 @@ async def validate_async( "/v1/payment_method_domains/{payment_method_domain}/validate".format( payment_method_domain=sanitize_id(payment_method_domain), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_payment_method_service.py b/stripe/_payment_method_service.py index 4245d609a..e3d185833 100644 --- a/stripe/_payment_method_service.py +++ b/stripe/_payment_method_service.py @@ -928,7 +928,6 @@ def list( self._request( "get", "/v1/payment_methods", - api_mode="V1", base_address="api", params=params, options=options, @@ -948,7 +947,6 @@ async def list_async( await self._request_async( "get", "/v1/payment_methods", - api_mode="V1", base_address="api", params=params, options=options, @@ -970,7 +968,6 @@ def create( self._request( "post", "/v1/payment_methods", - api_mode="V1", base_address="api", params=params, options=options, @@ -992,7 +989,6 @@ async def create_async( await self._request_async( "post", "/v1/payment_methods", - api_mode="V1", base_address="api", params=params, options=options, @@ -1015,7 +1011,6 @@ def retrieve( "/v1/payment_methods/{payment_method}".format( payment_method=sanitize_id(payment_method), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1038,7 +1033,6 @@ async def retrieve_async( "/v1/payment_methods/{payment_method}".format( payment_method=sanitize_id(payment_method), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1061,7 +1055,6 @@ def update( "/v1/payment_methods/{payment_method}".format( payment_method=sanitize_id(payment_method), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1084,7 +1077,6 @@ async def update_async( "/v1/payment_methods/{payment_method}".format( payment_method=sanitize_id(payment_method), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1119,7 +1111,6 @@ def attach( "/v1/payment_methods/{payment_method}/attach".format( payment_method=sanitize_id(payment_method), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1154,7 +1145,6 @@ async def attach_async( "/v1/payment_methods/{payment_method}/attach".format( payment_method=sanitize_id(payment_method), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1177,7 +1167,6 @@ def detach( "/v1/payment_methods/{payment_method}/detach".format( payment_method=sanitize_id(payment_method), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1200,7 +1189,6 @@ async def detach_async( "/v1/payment_methods/{payment_method}/detach".format( payment_method=sanitize_id(payment_method), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_payout_service.py b/stripe/_payout_service.py index 2d579cd7a..e78adee99 100644 --- a/stripe/_payout_service.py +++ b/stripe/_payout_service.py @@ -163,7 +163,6 @@ def list( self._request( "get", "/v1/payouts", - api_mode="V1", base_address="api", params=params, options=options, @@ -183,7 +182,6 @@ async def list_async( await self._request_async( "get", "/v1/payouts", - api_mode="V1", base_address="api", params=params, options=options, @@ -207,7 +205,6 @@ def create( self._request( "post", "/v1/payouts", - api_mode="V1", base_address="api", params=params, options=options, @@ -231,7 +228,6 @@ async def create_async( await self._request_async( "post", "/v1/payouts", - api_mode="V1", base_address="api", params=params, options=options, @@ -252,7 +248,6 @@ def retrieve( self._request( "get", "/v1/payouts/{payout}".format(payout=sanitize_id(payout)), - api_mode="V1", base_address="api", params=params, options=options, @@ -273,7 +268,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/payouts/{payout}".format(payout=sanitize_id(payout)), - api_mode="V1", base_address="api", params=params, options=options, @@ -294,7 +288,6 @@ def update( self._request( "post", "/v1/payouts/{payout}".format(payout=sanitize_id(payout)), - api_mode="V1", base_address="api", params=params, options=options, @@ -315,7 +308,6 @@ async def update_async( await self._request_async( "post", "/v1/payouts/{payout}".format(payout=sanitize_id(payout)), - api_mode="V1", base_address="api", params=params, options=options, @@ -338,7 +330,6 @@ def cancel( "/v1/payouts/{payout}/cancel".format( payout=sanitize_id(payout), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -361,7 +352,6 @@ async def cancel_async( "/v1/payouts/{payout}/cancel".format( payout=sanitize_id(payout), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -386,7 +376,6 @@ def reverse( "/v1/payouts/{payout}/reverse".format( payout=sanitize_id(payout), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -411,7 +400,6 @@ async def reverse_async( "/v1/payouts/{payout}/reverse".format( payout=sanitize_id(payout), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_plan_service.py b/stripe/_plan_service.py index 1e6e35759..606b55fce 100644 --- a/stripe/_plan_service.py +++ b/stripe/_plan_service.py @@ -248,7 +248,6 @@ def delete( self._request( "delete", "/v1/plans/{plan}".format(plan=sanitize_id(plan)), - api_mode="V1", base_address="api", params=params, options=options, @@ -269,7 +268,6 @@ async def delete_async( await self._request_async( "delete", "/v1/plans/{plan}".format(plan=sanitize_id(plan)), - api_mode="V1", base_address="api", params=params, options=options, @@ -290,7 +288,6 @@ def retrieve( self._request( "get", "/v1/plans/{plan}".format(plan=sanitize_id(plan)), - api_mode="V1", base_address="api", params=params, options=options, @@ -311,7 +308,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/plans/{plan}".format(plan=sanitize_id(plan)), - api_mode="V1", base_address="api", params=params, options=options, @@ -332,7 +328,6 @@ def update( self._request( "post", "/v1/plans/{plan}".format(plan=sanitize_id(plan)), - api_mode="V1", base_address="api", params=params, options=options, @@ -353,7 +348,6 @@ async def update_async( await self._request_async( "post", "/v1/plans/{plan}".format(plan=sanitize_id(plan)), - api_mode="V1", base_address="api", params=params, options=options, @@ -373,7 +367,6 @@ def list( self._request( "get", "/v1/plans", - api_mode="V1", base_address="api", params=params, options=options, @@ -393,7 +386,6 @@ async def list_async( await self._request_async( "get", "/v1/plans", - api_mode="V1", base_address="api", params=params, options=options, @@ -411,7 +403,6 @@ def create( self._request( "post", "/v1/plans", - api_mode="V1", base_address="api", params=params, options=options, @@ -429,7 +420,6 @@ async def create_async( await self._request_async( "post", "/v1/plans", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_price_service.py b/stripe/_price_service.py index 99e9aa15a..b6c56b366 100644 --- a/stripe/_price_service.py +++ b/stripe/_price_service.py @@ -516,7 +516,6 @@ def list( self._request( "get", "/v1/prices", - api_mode="V1", base_address="api", params=params, options=options, @@ -536,7 +535,6 @@ async def list_async( await self._request_async( "get", "/v1/prices", - api_mode="V1", base_address="api", params=params, options=options, @@ -554,7 +552,6 @@ def create( self._request( "post", "/v1/prices", - api_mode="V1", base_address="api", params=params, options=options, @@ -572,7 +569,6 @@ async def create_async( await self._request_async( "post", "/v1/prices", - api_mode="V1", base_address="api", params=params, options=options, @@ -593,7 +589,6 @@ def retrieve( self._request( "get", "/v1/prices/{price}".format(price=sanitize_id(price)), - api_mode="V1", base_address="api", params=params, options=options, @@ -614,7 +609,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/prices/{price}".format(price=sanitize_id(price)), - api_mode="V1", base_address="api", params=params, options=options, @@ -635,7 +629,6 @@ def update( self._request( "post", "/v1/prices/{price}".format(price=sanitize_id(price)), - api_mode="V1", base_address="api", params=params, options=options, @@ -656,7 +649,6 @@ async def update_async( await self._request_async( "post", "/v1/prices/{price}".format(price=sanitize_id(price)), - api_mode="V1", base_address="api", params=params, options=options, @@ -677,7 +669,6 @@ def search( self._request( "get", "/v1/prices/search", - api_mode="V1", base_address="api", params=params, options=options, @@ -698,7 +689,6 @@ async def search_async( await self._request_async( "get", "/v1/prices/search", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_product_feature_service.py b/stripe/_product_feature_service.py index dfda8ed8f..da0cc37ca 100644 --- a/stripe/_product_feature_service.py +++ b/stripe/_product_feature_service.py @@ -65,7 +65,6 @@ def delete( product=sanitize_id(product), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -90,7 +89,6 @@ async def delete_async( product=sanitize_id(product), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -115,7 +113,6 @@ def retrieve( product=sanitize_id(product), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -140,7 +137,6 @@ async def retrieve_async( product=sanitize_id(product), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -163,7 +159,6 @@ def list( "/v1/products/{product}/features".format( product=sanitize_id(product), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -186,7 +181,6 @@ async def list_async( "/v1/products/{product}/features".format( product=sanitize_id(product), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -209,7 +203,6 @@ def create( "/v1/products/{product}/features".format( product=sanitize_id(product), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -232,7 +225,6 @@ async def create_async( "/v1/products/{product}/features".format( product=sanitize_id(product), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_product_service.py b/stripe/_product_service.py index 9599517ec..47daf9d9c 100644 --- a/stripe/_product_service.py +++ b/stripe/_product_service.py @@ -451,7 +451,6 @@ def delete( self._request( "delete", "/v1/products/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -472,7 +471,6 @@ async def delete_async( await self._request_async( "delete", "/v1/products/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -493,7 +491,6 @@ def retrieve( self._request( "get", "/v1/products/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -514,7 +511,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/products/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -535,7 +531,6 @@ def update( self._request( "post", "/v1/products/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -556,7 +551,6 @@ async def update_async( await self._request_async( "post", "/v1/products/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -576,7 +570,6 @@ def list( self._request( "get", "/v1/products", - api_mode="V1", base_address="api", params=params, options=options, @@ -596,7 +589,6 @@ async def list_async( await self._request_async( "get", "/v1/products", - api_mode="V1", base_address="api", params=params, options=options, @@ -616,7 +608,6 @@ def create( self._request( "post", "/v1/products", - api_mode="V1", base_address="api", params=params, options=options, @@ -636,7 +627,6 @@ async def create_async( await self._request_async( "post", "/v1/products", - api_mode="V1", base_address="api", params=params, options=options, @@ -659,7 +649,6 @@ def search( self._request( "get", "/v1/products/search", - api_mode="V1", base_address="api", params=params, options=options, @@ -682,7 +671,6 @@ async def search_async( await self._request_async( "get", "/v1/products/search", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_promotion_code_service.py b/stripe/_promotion_code_service.py index bdd6734b2..b3eeed7b3 100644 --- a/stripe/_promotion_code_service.py +++ b/stripe/_promotion_code_service.py @@ -191,7 +191,6 @@ def list( self._request( "get", "/v1/promotion_codes", - api_mode="V1", base_address="api", params=params, options=options, @@ -211,7 +210,6 @@ async def list_async( await self._request_async( "get", "/v1/promotion_codes", - api_mode="V1", base_address="api", params=params, options=options, @@ -231,7 +229,6 @@ def create( self._request( "post", "/v1/promotion_codes", - api_mode="V1", base_address="api", params=params, options=options, @@ -251,7 +248,6 @@ async def create_async( await self._request_async( "post", "/v1/promotion_codes", - api_mode="V1", base_address="api", params=params, options=options, @@ -274,7 +270,6 @@ def retrieve( "/v1/promotion_codes/{promotion_code}".format( promotion_code=sanitize_id(promotion_code), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -297,7 +292,6 @@ async def retrieve_async( "/v1/promotion_codes/{promotion_code}".format( promotion_code=sanitize_id(promotion_code), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -320,7 +314,6 @@ def update( "/v1/promotion_codes/{promotion_code}".format( promotion_code=sanitize_id(promotion_code), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -343,7 +336,6 @@ async def update_async( "/v1/promotion_codes/{promotion_code}".format( promotion_code=sanitize_id(promotion_code), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_quote_computed_upfront_line_items_service.py b/stripe/_quote_computed_upfront_line_items_service.py index f653aeac3..a32accc96 100644 --- a/stripe/_quote_computed_upfront_line_items_service.py +++ b/stripe/_quote_computed_upfront_line_items_service.py @@ -44,7 +44,6 @@ def list( "/v1/quotes/{quote}/computed_upfront_line_items".format( quote=sanitize_id(quote), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -67,7 +66,6 @@ async def list_async( "/v1/quotes/{quote}/computed_upfront_line_items".format( quote=sanitize_id(quote), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_quote_line_item_service.py b/stripe/_quote_line_item_service.py index b69093b44..1f8b8e3d0 100644 --- a/stripe/_quote_line_item_service.py +++ b/stripe/_quote_line_item_service.py @@ -44,7 +44,6 @@ def list( "/v1/quotes/{quote}/line_items".format( quote=sanitize_id(quote), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -67,7 +66,6 @@ async def list_async( "/v1/quotes/{quote}/line_items".format( quote=sanitize_id(quote), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_quote_line_service.py b/stripe/_quote_line_service.py index ffecb818e..99e569228 100644 --- a/stripe/_quote_line_service.py +++ b/stripe/_quote_line_service.py @@ -42,7 +42,6 @@ def list( self._request( "get", "/v1/quotes/{quote}/lines".format(quote=sanitize_id(quote)), - api_mode="V1", base_address="api", params=params, options=options, @@ -63,7 +62,6 @@ async def list_async( await self._request_async( "get", "/v1/quotes/{quote}/lines".format(quote=sanitize_id(quote)), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_quote_phase_line_item_service.py b/stripe/_quote_phase_line_item_service.py index ded76ba7d..5569c4858 100644 --- a/stripe/_quote_phase_line_item_service.py +++ b/stripe/_quote_phase_line_item_service.py @@ -44,7 +44,6 @@ def list( "/v1/quote_phases/{quote_phase}/line_items".format( quote_phase=sanitize_id(quote_phase), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -67,7 +66,6 @@ async def list_async( "/v1/quote_phases/{quote_phase}/line_items".format( quote_phase=sanitize_id(quote_phase), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_quote_phase_service.py b/stripe/_quote_phase_service.py index f83f5708c..ce059f80b 100644 --- a/stripe/_quote_phase_service.py +++ b/stripe/_quote_phase_service.py @@ -56,7 +56,6 @@ def list( self._request( "get", "/v1/quote_phases", - api_mode="V1", base_address="api", params=params, options=options, @@ -76,7 +75,6 @@ async def list_async( await self._request_async( "get", "/v1/quote_phases", - api_mode="V1", base_address="api", params=params, options=options, @@ -99,7 +97,6 @@ def retrieve( "/v1/quote_phases/{quote_phase}".format( quote_phase=sanitize_id(quote_phase), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -122,7 +119,6 @@ async def retrieve_async( "/v1/quote_phases/{quote_phase}".format( quote_phase=sanitize_id(quote_phase), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_quote_preview_invoice_service.py b/stripe/_quote_preview_invoice_service.py index 6e911b9cd..40903eb98 100644 --- a/stripe/_quote_preview_invoice_service.py +++ b/stripe/_quote_preview_invoice_service.py @@ -44,7 +44,6 @@ def list( "/v1/quotes/{quote}/preview_invoices".format( quote=sanitize_id(quote), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -67,7 +66,6 @@ async def list_async( "/v1/quotes/{quote}/preview_invoices".format( quote=sanitize_id(quote), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_quote_preview_subscription_schedule_service.py b/stripe/_quote_preview_subscription_schedule_service.py index 53b2afdf5..085e30e47 100644 --- a/stripe/_quote_preview_subscription_schedule_service.py +++ b/stripe/_quote_preview_subscription_schedule_service.py @@ -46,7 +46,6 @@ def list( "/v1/quotes/{quote}/preview_subscription_schedules".format( quote=sanitize_id(quote), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -69,7 +68,6 @@ async def list_async( "/v1/quotes/{quote}/preview_subscription_schedules".format( quote=sanitize_id(quote), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_quote_service.py b/stripe/_quote_service.py index ca700c31b..d5ecad4b6 100644 --- a/stripe/_quote_service.py +++ b/stripe/_quote_service.py @@ -2455,7 +2455,6 @@ def list( self._request( "get", "/v1/quotes", - api_mode="V1", base_address="api", params=params, options=options, @@ -2475,7 +2474,6 @@ async def list_async( await self._request_async( "get", "/v1/quotes", - api_mode="V1", base_address="api", params=params, options=options, @@ -2495,7 +2493,6 @@ def create( self._request( "post", "/v1/quotes", - api_mode="V1", base_address="api", params=params, options=options, @@ -2515,7 +2512,6 @@ async def create_async( await self._request_async( "post", "/v1/quotes", - api_mode="V1", base_address="api", params=params, options=options, @@ -2536,7 +2532,6 @@ def retrieve( self._request( "get", "/v1/quotes/{quote}".format(quote=sanitize_id(quote)), - api_mode="V1", base_address="api", params=params, options=options, @@ -2557,7 +2552,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/quotes/{quote}".format(quote=sanitize_id(quote)), - api_mode="V1", base_address="api", params=params, options=options, @@ -2578,7 +2572,6 @@ def update( self._request( "post", "/v1/quotes/{quote}".format(quote=sanitize_id(quote)), - api_mode="V1", base_address="api", params=params, options=options, @@ -2599,7 +2592,6 @@ async def update_async( await self._request_async( "post", "/v1/quotes/{quote}".format(quote=sanitize_id(quote)), - api_mode="V1", base_address="api", params=params, options=options, @@ -2620,7 +2612,6 @@ def accept( self._request( "post", "/v1/quotes/{quote}/accept".format(quote=sanitize_id(quote)), - api_mode="V1", base_address="api", params=params, options=options, @@ -2641,7 +2632,6 @@ async def accept_async( await self._request_async( "post", "/v1/quotes/{quote}/accept".format(quote=sanitize_id(quote)), - api_mode="V1", base_address="api", params=params, options=options, @@ -2662,7 +2652,6 @@ def cancel( self._request( "post", "/v1/quotes/{quote}/cancel".format(quote=sanitize_id(quote)), - api_mode="V1", base_address="api", params=params, options=options, @@ -2683,7 +2672,6 @@ async def cancel_async( await self._request_async( "post", "/v1/quotes/{quote}/cancel".format(quote=sanitize_id(quote)), - api_mode="V1", base_address="api", params=params, options=options, @@ -2704,7 +2692,6 @@ def finalize_quote( self._request( "post", "/v1/quotes/{quote}/finalize".format(quote=sanitize_id(quote)), - api_mode="V1", base_address="api", params=params, options=options, @@ -2725,7 +2712,6 @@ async def finalize_quote_async( await self._request_async( "post", "/v1/quotes/{quote}/finalize".format(quote=sanitize_id(quote)), - api_mode="V1", base_address="api", params=params, options=options, @@ -2748,7 +2734,6 @@ def mark_draft( "/v1/quotes/{quote}/mark_draft".format( quote=sanitize_id(quote), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2771,7 +2756,6 @@ async def mark_draft_async( "/v1/quotes/{quote}/mark_draft".format( quote=sanitize_id(quote), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2794,7 +2778,6 @@ def mark_stale( "/v1/quotes/{quote}/mark_stale".format( quote=sanitize_id(quote), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2817,7 +2800,6 @@ async def mark_stale_async( "/v1/quotes/{quote}/mark_stale".format( quote=sanitize_id(quote), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2840,7 +2822,6 @@ def reestimate( "/v1/quotes/{quote}/reestimate".format( quote=sanitize_id(quote), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2863,7 +2844,6 @@ async def reestimate_async( "/v1/quotes/{quote}/reestimate".format( quote=sanitize_id(quote), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2884,7 +2864,6 @@ def pdf( self._request_stream( "get", "/v1/quotes/{quote}/pdf".format(quote=sanitize_id(quote)), - api_mode="V1", base_address="files", params=params, options=options, @@ -2905,7 +2884,6 @@ async def pdf_async( await self._request_stream_async( "get", "/v1/quotes/{quote}/pdf".format(quote=sanitize_id(quote)), - api_mode="V1", base_address="files", params=params, options=options, @@ -2930,7 +2908,6 @@ def list_preview_invoice_lines( quote=sanitize_id(quote), preview_invoice=sanitize_id(preview_invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2955,7 +2932,6 @@ async def list_preview_invoice_lines_async( quote=sanitize_id(quote), preview_invoice=sanitize_id(preview_invoice), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_refund_service.py b/stripe/_refund_service.py index 9608e8af7..ad8d7a418 100644 --- a/stripe/_refund_service.py +++ b/stripe/_refund_service.py @@ -144,7 +144,6 @@ def list( self._request( "get", "/v1/refunds", - api_mode="V1", base_address="api", params=params, options=options, @@ -164,7 +163,6 @@ async def list_async( await self._request_async( "get", "/v1/refunds", - api_mode="V1", base_address="api", params=params, options=options, @@ -194,7 +192,6 @@ def create( self._request( "post", "/v1/refunds", - api_mode="V1", base_address="api", params=params, options=options, @@ -224,7 +221,6 @@ async def create_async( await self._request_async( "post", "/v1/refunds", - api_mode="V1", base_address="api", params=params, options=options, @@ -245,7 +241,6 @@ def retrieve( self._request( "get", "/v1/refunds/{refund}".format(refund=sanitize_id(refund)), - api_mode="V1", base_address="api", params=params, options=options, @@ -266,7 +261,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/refunds/{refund}".format(refund=sanitize_id(refund)), - api_mode="V1", base_address="api", params=params, options=options, @@ -289,7 +283,6 @@ def update( self._request( "post", "/v1/refunds/{refund}".format(refund=sanitize_id(refund)), - api_mode="V1", base_address="api", params=params, options=options, @@ -312,7 +305,6 @@ async def update_async( await self._request_async( "post", "/v1/refunds/{refund}".format(refund=sanitize_id(refund)), - api_mode="V1", base_address="api", params=params, options=options, @@ -337,7 +329,6 @@ def cancel( "/v1/refunds/{refund}/cancel".format( refund=sanitize_id(refund), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -362,7 +353,6 @@ async def cancel_async( "/v1/refunds/{refund}/cancel".format( refund=sanitize_id(refund), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_request_options.py b/stripe/_request_options.py index d188818f8..caa26fa50 100644 --- a/stripe/_request_options.py +++ b/stripe/_request_options.py @@ -9,6 +9,7 @@ class RequestOptions(TypedDict): stripe_account: NotRequired["str|None"] max_network_retries: NotRequired["int|None"] idempotency_key: NotRequired["str|None"] + content_type: NotRequired["str|None"] headers: NotRequired["Mapping[str, str]|None"] @@ -27,6 +28,7 @@ def merge_options( "stripe_version": requestor.stripe_version, "max_network_retries": requestor.max_network_retries, "idempotency_key": None, + "content_type": None, "headers": None, } @@ -40,6 +42,7 @@ def merge_options( if request.get("max_network_retries") is not None else requestor.max_network_retries, "idempotency_key": request.get("idempotency_key"), + "content_type": request.get("content_type"), "headers": request.get("headers"), } @@ -61,6 +64,7 @@ def extract_options_from_dict( "stripe_account", "max_network_retries", "idempotency_key", + "content_type", "headers", ]: if key in d_copy: diff --git a/stripe/_review_service.py b/stripe/_review_service.py index 5d09a3301..b739b3a41 100644 --- a/stripe/_review_service.py +++ b/stripe/_review_service.py @@ -75,7 +75,6 @@ def list( self._request( "get", "/v1/reviews", - api_mode="V1", base_address="api", params=params, options=options, @@ -95,7 +94,6 @@ async def list_async( await self._request_async( "get", "/v1/reviews", - api_mode="V1", base_address="api", params=params, options=options, @@ -116,7 +114,6 @@ def retrieve( self._request( "get", "/v1/reviews/{review}".format(review=sanitize_id(review)), - api_mode="V1", base_address="api", params=params, options=options, @@ -137,7 +134,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/reviews/{review}".format(review=sanitize_id(review)), - api_mode="V1", base_address="api", params=params, options=options, @@ -160,7 +156,6 @@ def approve( "/v1/reviews/{review}/approve".format( review=sanitize_id(review), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -183,7 +178,6 @@ async def approve_async( "/v1/reviews/{review}/approve".format( review=sanitize_id(review), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_search_result_object.py b/stripe/_search_result_object.py index 9b78c848e..73b1329c7 100644 --- a/stripe/_search_result_object.py +++ b/stripe/_search_result_object.py @@ -56,7 +56,6 @@ def search(self, **params: Mapping[str, Any]) -> Self: self._get_url_for_search(), params=params, base_address="api", - api_mode="V1", ), ) @@ -68,7 +67,6 @@ async def _search_async(self, **params: Mapping[str, Any]) -> Self: self._get_url_for_search(), params=params, base_address="api", - api_mode="V1", ), ) diff --git a/stripe/_setup_attempt_service.py b/stripe/_setup_attempt_service.py index ba3ff2065..6be48b135 100644 --- a/stripe/_setup_attempt_service.py +++ b/stripe/_setup_attempt_service.py @@ -69,7 +69,6 @@ def list( self._request( "get", "/v1/setup_attempts", - api_mode="V1", base_address="api", params=params, options=options, @@ -89,7 +88,6 @@ async def list_async( await self._request_async( "get", "/v1/setup_attempts", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_setup_intent_service.py b/stripe/_setup_intent_service.py index b78faa832..43bf5947a 100644 --- a/stripe/_setup_intent_service.py +++ b/stripe/_setup_intent_service.py @@ -3942,7 +3942,6 @@ def list( self._request( "get", "/v1/setup_intents", - api_mode="V1", base_address="api", params=params, options=options, @@ -3962,7 +3961,6 @@ async def list_async( await self._request_async( "get", "/v1/setup_intents", - api_mode="V1", base_address="api", params=params, options=options, @@ -3985,7 +3983,6 @@ def create( self._request( "post", "/v1/setup_intents", - api_mode="V1", base_address="api", params=params, options=options, @@ -4008,7 +4005,6 @@ async def create_async( await self._request_async( "post", "/v1/setup_intents", - api_mode="V1", base_address="api", params=params, options=options, @@ -4035,7 +4031,6 @@ def retrieve( "/v1/setup_intents/{intent}".format( intent=sanitize_id(intent) ), - api_mode="V1", base_address="api", params=params, options=options, @@ -4062,7 +4057,6 @@ async def retrieve_async( "/v1/setup_intents/{intent}".format( intent=sanitize_id(intent) ), - api_mode="V1", base_address="api", params=params, options=options, @@ -4085,7 +4079,6 @@ def update( "/v1/setup_intents/{intent}".format( intent=sanitize_id(intent) ), - api_mode="V1", base_address="api", params=params, options=options, @@ -4108,7 +4101,6 @@ async def update_async( "/v1/setup_intents/{intent}".format( intent=sanitize_id(intent) ), - api_mode="V1", base_address="api", params=params, options=options, @@ -4133,7 +4125,6 @@ def cancel( "/v1/setup_intents/{intent}/cancel".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -4158,7 +4149,6 @@ async def cancel_async( "/v1/setup_intents/{intent}/cancel".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -4194,7 +4184,6 @@ def confirm( "/v1/setup_intents/{intent}/confirm".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -4230,7 +4219,6 @@ async def confirm_async( "/v1/setup_intents/{intent}/confirm".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -4253,7 +4241,6 @@ def verify_microdeposits( "/v1/setup_intents/{intent}/verify_microdeposits".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -4276,7 +4263,6 @@ async def verify_microdeposits_async( "/v1/setup_intents/{intent}/verify_microdeposits".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_shipping_rate_service.py b/stripe/_shipping_rate_service.py index 2e6c3f964..10c789582 100644 --- a/stripe/_shipping_rate_service.py +++ b/stripe/_shipping_rate_service.py @@ -231,7 +231,6 @@ def list( self._request( "get", "/v1/shipping_rates", - api_mode="V1", base_address="api", params=params, options=options, @@ -251,7 +250,6 @@ async def list_async( await self._request_async( "get", "/v1/shipping_rates", - api_mode="V1", base_address="api", params=params, options=options, @@ -271,7 +269,6 @@ def create( self._request( "post", "/v1/shipping_rates", - api_mode="V1", base_address="api", params=params, options=options, @@ -291,7 +288,6 @@ async def create_async( await self._request_async( "post", "/v1/shipping_rates", - api_mode="V1", base_address="api", params=params, options=options, @@ -314,7 +310,6 @@ def retrieve( "/v1/shipping_rates/{shipping_rate_token}".format( shipping_rate_token=sanitize_id(shipping_rate_token), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -337,7 +332,6 @@ async def retrieve_async( "/v1/shipping_rates/{shipping_rate_token}".format( shipping_rate_token=sanitize_id(shipping_rate_token), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -360,7 +354,6 @@ def update( "/v1/shipping_rates/{shipping_rate_token}".format( shipping_rate_token=sanitize_id(shipping_rate_token), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -383,7 +376,6 @@ async def update_async( "/v1/shipping_rates/{shipping_rate_token}".format( shipping_rate_token=sanitize_id(shipping_rate_token), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_source_service.py b/stripe/_source_service.py index d5444be03..34e60a857 100644 --- a/stripe/_source_service.py +++ b/stripe/_source_service.py @@ -555,7 +555,6 @@ def detach( customer=sanitize_id(customer), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -580,7 +579,6 @@ async def detach_async( customer=sanitize_id(customer), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -601,7 +599,6 @@ def retrieve( self._request( "get", "/v1/sources/{source}".format(source=sanitize_id(source)), - api_mode="V1", base_address="api", params=params, options=options, @@ -622,7 +619,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/sources/{source}".format(source=sanitize_id(source)), - api_mode="V1", base_address="api", params=params, options=options, @@ -645,7 +641,6 @@ def update( self._request( "post", "/v1/sources/{source}".format(source=sanitize_id(source)), - api_mode="V1", base_address="api", params=params, options=options, @@ -668,7 +663,6 @@ async def update_async( await self._request_async( "post", "/v1/sources/{source}".format(source=sanitize_id(source)), - api_mode="V1", base_address="api", params=params, options=options, @@ -688,7 +682,6 @@ def create( self._request( "post", "/v1/sources", - api_mode="V1", base_address="api", params=params, options=options, @@ -708,7 +701,6 @@ async def create_async( await self._request_async( "post", "/v1/sources", - api_mode="V1", base_address="api", params=params, options=options, @@ -731,7 +723,6 @@ def verify( "/v1/sources/{source}/verify".format( source=sanitize_id(source), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -754,7 +745,6 @@ async def verify_async( "/v1/sources/{source}/verify".format( source=sanitize_id(source), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_source_transaction_service.py b/stripe/_source_transaction_service.py index 022868032..8bb2db908 100644 --- a/stripe/_source_transaction_service.py +++ b/stripe/_source_transaction_service.py @@ -44,7 +44,6 @@ def list( "/v1/sources/{source}/source_transactions".format( source=sanitize_id(source), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -67,7 +66,6 @@ async def list_async( "/v1/sources/{source}/source_transactions".format( source=sanitize_id(source), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_stripe_object.py b/stripe/_stripe_object.py index 1e7bff5d9..2cc00104d 100644 --- a/stripe/_stripe_object.py +++ b/stripe/_stripe_object.py @@ -382,7 +382,6 @@ def request( params: Optional[Dict[str, Any]] = None, *, base_address: BaseAddress = "api", - api_mode: ApiMode = "V1", ) -> "StripeObject": return StripeObject._request( self, @@ -390,7 +389,6 @@ def request( url, params=params, base_address=base_address, - api_mode=api_mode, ) def _request( @@ -401,7 +399,6 @@ def _request( usage: Optional[List[str]] = None, *, base_address: BaseAddress, - api_mode: ApiMode, ) -> "StripeObject": if params is None: params = self._retrieve_params @@ -414,7 +411,6 @@ def _request( params=request_params, options=request_options, base_address=base_address, - api_mode=api_mode, usage=usage, ) @@ -426,7 +422,6 @@ async def _request_async( usage: Optional[List[str]] = None, *, base_address: BaseAddress, - api_mode: ApiMode, ) -> "StripeObject": if params is None: params = self._retrieve_params @@ -439,7 +434,6 @@ async def _request_async( params=request_params, options=request_options, base_address=base_address, - api_mode=api_mode, usage=usage, ) @@ -450,7 +444,6 @@ def _request_stream( params: Optional[Mapping[str, Any]] = None, *, base_address: BaseAddress = "api", - api_mode: ApiMode = "V1", ) -> StripeStreamResponse: if params is None: params = self._retrieve_params @@ -462,7 +455,6 @@ def _request_stream( params=request_params, options=request_options, base_address=base_address, - api_mode=api_mode, ) async def _request_stream_async( @@ -472,7 +464,6 @@ async def _request_stream_async( params: Optional[Mapping[str, Any]] = None, *, base_address: BaseAddress = "api", - api_mode: ApiMode = "V1", ) -> StripeStreamResponseAsync: if params is None: params = self._retrieve_params @@ -484,7 +475,6 @@ async def _request_stream_async( params=request_params, options=request_options, base_address=base_address, - api_mode=api_mode, ) def __repr__(self) -> str: diff --git a/stripe/_stripe_service.py b/stripe/_stripe_service.py index 218d8b39e..e72279f41 100644 --- a/stripe/_stripe_service.py +++ b/stripe/_stripe_service.py @@ -8,7 +8,6 @@ from stripe._stripe_object import StripeObject from stripe._request_options import RequestOptions from stripe._base_address import BaseAddress -from stripe._api_mode import ApiMode from typing import Any, Mapping, Optional @@ -27,7 +26,6 @@ def _request( options: Optional[RequestOptions] = None, *, base_address: BaseAddress, - api_mode: ApiMode, ) -> StripeObject: return self._requestor.request( method, @@ -35,7 +33,6 @@ def _request( params, options, base_address=base_address, - api_mode=api_mode, usage=["stripe_client"], ) @@ -47,7 +44,6 @@ async def _request_async( options: Optional[RequestOptions] = None, *, base_address: BaseAddress, - api_mode: ApiMode, ) -> StripeObject: return await self._requestor.request_async( method, @@ -55,7 +51,6 @@ async def _request_async( params, options, base_address=base_address, - api_mode=api_mode, usage=["stripe_client"], ) @@ -67,7 +62,6 @@ def _request_stream( options: Optional[RequestOptions] = None, *, base_address: BaseAddress, - api_mode: ApiMode, ) -> StripeStreamResponse: return self._requestor.request_stream( method, @@ -75,7 +69,6 @@ def _request_stream( params, options, base_address=base_address, - api_mode=api_mode, usage=["stripe_client"], ) @@ -87,7 +80,6 @@ async def _request_stream_async( options: Optional[RequestOptions] = None, *, base_address: BaseAddress, - api_mode: ApiMode, ) -> StripeStreamResponseAsync: return await self._requestor.request_stream_async( method, @@ -95,6 +87,5 @@ async def _request_stream_async( params, options, base_address=base_address, - api_mode=api_mode, usage=["stripe_client"], ) diff --git a/stripe/_subscription_item_service.py b/stripe/_subscription_item_service.py index f2eb8eb0b..edabdac1a 100644 --- a/stripe/_subscription_item_service.py +++ b/stripe/_subscription_item_service.py @@ -429,7 +429,6 @@ def delete( self._request( "delete", "/v1/subscription_items/{item}".format(item=sanitize_id(item)), - api_mode="V1", base_address="api", params=params, options=options, @@ -450,7 +449,6 @@ async def delete_async( await self._request_async( "delete", "/v1/subscription_items/{item}".format(item=sanitize_id(item)), - api_mode="V1", base_address="api", params=params, options=options, @@ -471,7 +469,6 @@ def retrieve( self._request( "get", "/v1/subscription_items/{item}".format(item=sanitize_id(item)), - api_mode="V1", base_address="api", params=params, options=options, @@ -492,7 +489,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/subscription_items/{item}".format(item=sanitize_id(item)), - api_mode="V1", base_address="api", params=params, options=options, @@ -513,7 +509,6 @@ def update( self._request( "post", "/v1/subscription_items/{item}".format(item=sanitize_id(item)), - api_mode="V1", base_address="api", params=params, options=options, @@ -534,7 +529,6 @@ async def update_async( await self._request_async( "post", "/v1/subscription_items/{item}".format(item=sanitize_id(item)), - api_mode="V1", base_address="api", params=params, options=options, @@ -554,7 +548,6 @@ def list( self._request( "get", "/v1/subscription_items", - api_mode="V1", base_address="api", params=params, options=options, @@ -574,7 +567,6 @@ async def list_async( await self._request_async( "get", "/v1/subscription_items", - api_mode="V1", base_address="api", params=params, options=options, @@ -594,7 +586,6 @@ def create( self._request( "post", "/v1/subscription_items", - api_mode="V1", base_address="api", params=params, options=options, @@ -614,7 +605,6 @@ async def create_async( await self._request_async( "post", "/v1/subscription_items", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_subscription_item_usage_record_service.py b/stripe/_subscription_item_usage_record_service.py index 85c41210d..76826d6f9 100644 --- a/stripe/_subscription_item_usage_record_service.py +++ b/stripe/_subscription_item_usage_record_service.py @@ -49,7 +49,6 @@ def create( "/v1/subscription_items/{subscription_item}/usage_records".format( subscription_item=sanitize_id(subscription_item), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -78,7 +77,6 @@ async def create_async( "/v1/subscription_items/{subscription_item}/usage_records".format( subscription_item=sanitize_id(subscription_item), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_subscription_item_usage_record_summary_service.py b/stripe/_subscription_item_usage_record_summary_service.py index 4eb3cfd31..c5e6d6543 100644 --- a/stripe/_subscription_item_usage_record_summary_service.py +++ b/stripe/_subscription_item_usage_record_summary_service.py @@ -46,7 +46,6 @@ def list( "/v1/subscription_items/{subscription_item}/usage_record_summaries".format( subscription_item=sanitize_id(subscription_item), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -71,7 +70,6 @@ async def list_async( "/v1/subscription_items/{subscription_item}/usage_record_summaries".format( subscription_item=sanitize_id(subscription_item), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_subscription_schedule_service.py b/stripe/_subscription_schedule_service.py index 6b503da14..21e9b1f58 100644 --- a/stripe/_subscription_schedule_service.py +++ b/stripe/_subscription_schedule_service.py @@ -2157,7 +2157,6 @@ def list( self._request( "get", "/v1/subscription_schedules", - api_mode="V1", base_address="api", params=params, options=options, @@ -2177,7 +2176,6 @@ async def list_async( await self._request_async( "get", "/v1/subscription_schedules", - api_mode="V1", base_address="api", params=params, options=options, @@ -2197,7 +2195,6 @@ def create( self._request( "post", "/v1/subscription_schedules", - api_mode="V1", base_address="api", params=params, options=options, @@ -2217,7 +2214,6 @@ async def create_async( await self._request_async( "post", "/v1/subscription_schedules", - api_mode="V1", base_address="api", params=params, options=options, @@ -2240,7 +2236,6 @@ def retrieve( "/v1/subscription_schedules/{schedule}".format( schedule=sanitize_id(schedule), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2263,7 +2258,6 @@ async def retrieve_async( "/v1/subscription_schedules/{schedule}".format( schedule=sanitize_id(schedule), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2286,7 +2280,6 @@ def update( "/v1/subscription_schedules/{schedule}".format( schedule=sanitize_id(schedule), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2309,7 +2302,6 @@ async def update_async( "/v1/subscription_schedules/{schedule}".format( schedule=sanitize_id(schedule), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2332,7 +2324,6 @@ def amend( "/v1/subscription_schedules/{schedule}/amend".format( schedule=sanitize_id(schedule), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2355,7 +2346,6 @@ async def amend_async( "/v1/subscription_schedules/{schedule}/amend".format( schedule=sanitize_id(schedule), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2378,7 +2368,6 @@ def cancel( "/v1/subscription_schedules/{schedule}/cancel".format( schedule=sanitize_id(schedule), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2401,7 +2390,6 @@ async def cancel_async( "/v1/subscription_schedules/{schedule}/cancel".format( schedule=sanitize_id(schedule), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2424,7 +2412,6 @@ def release( "/v1/subscription_schedules/{schedule}/release".format( schedule=sanitize_id(schedule), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2447,7 +2434,6 @@ async def release_async( "/v1/subscription_schedules/{schedule}/release".format( schedule=sanitize_id(schedule), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_subscription_service.py b/stripe/_subscription_service.py index 4c4f6e0f0..e2954af47 100644 --- a/stripe/_subscription_service.py +++ b/stripe/_subscription_service.py @@ -1912,7 +1912,6 @@ def cancel( subscription_exposed_id ), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1941,7 +1940,6 @@ async def cancel_async( subscription_exposed_id ), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1966,7 +1964,6 @@ def retrieve( subscription_exposed_id ), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1991,7 +1988,6 @@ async def retrieve_async( subscription_exposed_id ), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2036,7 +2032,6 @@ def update( subscription_exposed_id ), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2081,7 +2076,6 @@ async def update_async( subscription_exposed_id ), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2106,7 +2100,6 @@ def delete_discount( subscription_exposed_id ), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2131,7 +2124,6 @@ async def delete_discount_async( subscription_exposed_id ), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2151,7 +2143,6 @@ def list( self._request( "get", "/v1/subscriptions", - api_mode="V1", base_address="api", params=params, options=options, @@ -2171,7 +2162,6 @@ async def list_async( await self._request_async( "get", "/v1/subscriptions", - api_mode="V1", base_address="api", params=params, options=options, @@ -2197,7 +2187,6 @@ def create( self._request( "post", "/v1/subscriptions", - api_mode="V1", base_address="api", params=params, options=options, @@ -2223,7 +2212,6 @@ async def create_async( await self._request_async( "post", "/v1/subscriptions", - api_mode="V1", base_address="api", params=params, options=options, @@ -2246,7 +2234,6 @@ def search( self._request( "get", "/v1/subscriptions/search", - api_mode="V1", base_address="api", params=params, options=options, @@ -2269,7 +2256,6 @@ async def search_async( await self._request_async( "get", "/v1/subscriptions/search", - api_mode="V1", base_address="api", params=params, options=options, @@ -2292,7 +2278,6 @@ def resume( "/v1/subscriptions/{subscription}/resume".format( subscription=sanitize_id(subscription), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2315,7 +2300,6 @@ async def resume_async( "/v1/subscriptions/{subscription}/resume".format( subscription=sanitize_id(subscription), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_tax_code_service.py b/stripe/_tax_code_service.py index 4ed661d52..dfcb9c70b 100644 --- a/stripe/_tax_code_service.py +++ b/stripe/_tax_code_service.py @@ -47,7 +47,6 @@ def list( self._request( "get", "/v1/tax_codes", - api_mode="V1", base_address="api", params=params, options=options, @@ -67,7 +66,6 @@ async def list_async( await self._request_async( "get", "/v1/tax_codes", - api_mode="V1", base_address="api", params=params, options=options, @@ -88,7 +86,6 @@ def retrieve( self._request( "get", "/v1/tax_codes/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -109,7 +106,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/tax_codes/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_tax_id_service.py b/stripe/_tax_id_service.py index 980d02c45..87e07bc5b 100644 --- a/stripe/_tax_id_service.py +++ b/stripe/_tax_id_service.py @@ -176,7 +176,6 @@ def delete( self._request( "delete", "/v1/tax_ids/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -197,7 +196,6 @@ async def delete_async( await self._request_async( "delete", "/v1/tax_ids/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -218,7 +216,6 @@ def retrieve( self._request( "get", "/v1/tax_ids/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -239,7 +236,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/tax_ids/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -259,7 +255,6 @@ def list( self._request( "get", "/v1/tax_ids", - api_mode="V1", base_address="api", params=params, options=options, @@ -279,7 +274,6 @@ async def list_async( await self._request_async( "get", "/v1/tax_ids", - api_mode="V1", base_address="api", params=params, options=options, @@ -297,7 +291,6 @@ def create( self._request( "post", "/v1/tax_ids", - api_mode="V1", base_address="api", params=params, options=options, @@ -315,7 +308,6 @@ async def create_async( await self._request_async( "post", "/v1/tax_ids", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_tax_rate_service.py b/stripe/_tax_rate_service.py index ffcc6d5ef..61399dec6 100644 --- a/stripe/_tax_rate_service.py +++ b/stripe/_tax_rate_service.py @@ -191,7 +191,6 @@ def list( self._request( "get", "/v1/tax_rates", - api_mode="V1", base_address="api", params=params, options=options, @@ -211,7 +210,6 @@ async def list_async( await self._request_async( "get", "/v1/tax_rates", - api_mode="V1", base_address="api", params=params, options=options, @@ -231,7 +229,6 @@ def create( self._request( "post", "/v1/tax_rates", - api_mode="V1", base_address="api", params=params, options=options, @@ -251,7 +248,6 @@ async def create_async( await self._request_async( "post", "/v1/tax_rates", - api_mode="V1", base_address="api", params=params, options=options, @@ -274,7 +270,6 @@ def retrieve( "/v1/tax_rates/{tax_rate}".format( tax_rate=sanitize_id(tax_rate), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -297,7 +292,6 @@ async def retrieve_async( "/v1/tax_rates/{tax_rate}".format( tax_rate=sanitize_id(tax_rate), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -320,7 +314,6 @@ def update( "/v1/tax_rates/{tax_rate}".format( tax_rate=sanitize_id(tax_rate), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -343,7 +336,6 @@ async def update_async( "/v1/tax_rates/{tax_rate}".format( tax_rate=sanitize_id(tax_rate), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_token_service.py b/stripe/_token_service.py index 422b953dd..9fe918393 100644 --- a/stripe/_token_service.py +++ b/stripe/_token_service.py @@ -1059,7 +1059,6 @@ def retrieve( self._request( "get", "/v1/tokens/{token}".format(token=sanitize_id(token)), - api_mode="V1", base_address="api", params=params, options=options, @@ -1080,7 +1079,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/tokens/{token}".format(token=sanitize_id(token)), - api_mode="V1", base_address="api", params=params, options=options, @@ -1101,7 +1099,6 @@ def create( self._request( "post", "/v1/tokens", - api_mode="V1", base_address="api", params=params, options=options, @@ -1122,7 +1119,6 @@ async def create_async( await self._request_async( "post", "/v1/tokens", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_topup_service.py b/stripe/_topup_service.py index eeeeae7d9..db18e82a7 100644 --- a/stripe/_topup_service.py +++ b/stripe/_topup_service.py @@ -151,7 +151,6 @@ def list( self._request( "get", "/v1/topups", - api_mode="V1", base_address="api", params=params, options=options, @@ -171,7 +170,6 @@ async def list_async( await self._request_async( "get", "/v1/topups", - api_mode="V1", base_address="api", params=params, options=options, @@ -189,7 +187,6 @@ def create( self._request( "post", "/v1/topups", - api_mode="V1", base_address="api", params=params, options=options, @@ -207,7 +204,6 @@ async def create_async( await self._request_async( "post", "/v1/topups", - api_mode="V1", base_address="api", params=params, options=options, @@ -228,7 +224,6 @@ def retrieve( self._request( "get", "/v1/topups/{topup}".format(topup=sanitize_id(topup)), - api_mode="V1", base_address="api", params=params, options=options, @@ -249,7 +244,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/topups/{topup}".format(topup=sanitize_id(topup)), - api_mode="V1", base_address="api", params=params, options=options, @@ -270,7 +264,6 @@ def update( self._request( "post", "/v1/topups/{topup}".format(topup=sanitize_id(topup)), - api_mode="V1", base_address="api", params=params, options=options, @@ -291,7 +284,6 @@ async def update_async( await self._request_async( "post", "/v1/topups/{topup}".format(topup=sanitize_id(topup)), - api_mode="V1", base_address="api", params=params, options=options, @@ -312,7 +304,6 @@ def cancel( self._request( "post", "/v1/topups/{topup}/cancel".format(topup=sanitize_id(topup)), - api_mode="V1", base_address="api", params=params, options=options, @@ -333,7 +324,6 @@ async def cancel_async( await self._request_async( "post", "/v1/topups/{topup}/cancel".format(topup=sanitize_id(topup)), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_transfer_reversal_service.py b/stripe/_transfer_reversal_service.py index 4d083ce14..8b707162d 100644 --- a/stripe/_transfer_reversal_service.py +++ b/stripe/_transfer_reversal_service.py @@ -80,7 +80,6 @@ def list( self._request( "get", "/v1/transfers/{id}/reversals".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -101,7 +100,6 @@ async def list_async( await self._request_async( "get", "/v1/transfers/{id}/reversals".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -126,7 +124,6 @@ def create( self._request( "post", "/v1/transfers/{id}/reversals".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -151,7 +148,6 @@ async def create_async( await self._request_async( "post", "/v1/transfers/{id}/reversals".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -176,7 +172,6 @@ def retrieve( transfer=sanitize_id(transfer), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -201,7 +196,6 @@ async def retrieve_async( transfer=sanitize_id(transfer), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -228,7 +222,6 @@ def update( transfer=sanitize_id(transfer), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -255,7 +248,6 @@ async def update_async( transfer=sanitize_id(transfer), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_transfer_service.py b/stripe/_transfer_service.py index df63bcd02..cdf6436c8 100644 --- a/stripe/_transfer_service.py +++ b/stripe/_transfer_service.py @@ -134,7 +134,6 @@ def list( self._request( "get", "/v1/transfers", - api_mode="V1", base_address="api", params=params, options=options, @@ -154,7 +153,6 @@ async def list_async( await self._request_async( "get", "/v1/transfers", - api_mode="V1", base_address="api", params=params, options=options, @@ -174,7 +172,6 @@ def create( self._request( "post", "/v1/transfers", - api_mode="V1", base_address="api", params=params, options=options, @@ -194,7 +191,6 @@ async def create_async( await self._request_async( "post", "/v1/transfers", - api_mode="V1", base_address="api", params=params, options=options, @@ -217,7 +213,6 @@ def retrieve( "/v1/transfers/{transfer}".format( transfer=sanitize_id(transfer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -240,7 +235,6 @@ async def retrieve_async( "/v1/transfers/{transfer}".format( transfer=sanitize_id(transfer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -265,7 +259,6 @@ def update( "/v1/transfers/{transfer}".format( transfer=sanitize_id(transfer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -290,7 +283,6 @@ async def update_async( "/v1/transfers/{transfer}".format( transfer=sanitize_id(transfer), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/_usage_record.py b/stripe/_usage_record.py index fdd9cebd4..a53744404 100644 --- a/stripe/_usage_record.py +++ b/stripe/_usage_record.py @@ -54,5 +54,4 @@ def create(cls, **params): url, params=params, base_address="api", - api_mode="V1", ) diff --git a/stripe/_webhook_endpoint_service.py b/stripe/_webhook_endpoint_service.py index 3f1c076c5..4eeeb7850 100644 --- a/stripe/_webhook_endpoint_service.py +++ b/stripe/_webhook_endpoint_service.py @@ -752,7 +752,6 @@ def delete( "/v1/webhook_endpoints/{webhook_endpoint}".format( webhook_endpoint=sanitize_id(webhook_endpoint), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -775,7 +774,6 @@ async def delete_async( "/v1/webhook_endpoints/{webhook_endpoint}".format( webhook_endpoint=sanitize_id(webhook_endpoint), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -798,7 +796,6 @@ def retrieve( "/v1/webhook_endpoints/{webhook_endpoint}".format( webhook_endpoint=sanitize_id(webhook_endpoint), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -821,7 +818,6 @@ async def retrieve_async( "/v1/webhook_endpoints/{webhook_endpoint}".format( webhook_endpoint=sanitize_id(webhook_endpoint), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -844,7 +840,6 @@ def update( "/v1/webhook_endpoints/{webhook_endpoint}".format( webhook_endpoint=sanitize_id(webhook_endpoint), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -867,7 +862,6 @@ async def update_async( "/v1/webhook_endpoints/{webhook_endpoint}".format( webhook_endpoint=sanitize_id(webhook_endpoint), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -887,7 +881,6 @@ def list( self._request( "get", "/v1/webhook_endpoints", - api_mode="V1", base_address="api", params=params, options=options, @@ -907,7 +900,6 @@ async def list_async( await self._request_async( "get", "/v1/webhook_endpoints", - api_mode="V1", base_address="api", params=params, options=options, @@ -927,7 +919,6 @@ def create( self._request( "post", "/v1/webhook_endpoints", - api_mode="V1", base_address="api", params=params, options=options, @@ -947,7 +938,6 @@ async def create_async( await self._request_async( "post", "/v1/webhook_endpoints", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/apps/_secret_service.py b/stripe/apps/_secret_service.py index cdc3b0648..5bfc13786 100644 --- a/stripe/apps/_secret_service.py +++ b/stripe/apps/_secret_service.py @@ -132,7 +132,6 @@ def list( self._request( "get", "/v1/apps/secrets", - api_mode="V1", base_address="api", params=params, options=options, @@ -150,7 +149,6 @@ async def list_async( await self._request_async( "get", "/v1/apps/secrets", - api_mode="V1", base_address="api", params=params, options=options, @@ -170,7 +168,6 @@ def create( self._request( "post", "/v1/apps/secrets", - api_mode="V1", base_address="api", params=params, options=options, @@ -190,7 +187,6 @@ async def create_async( await self._request_async( "post", "/v1/apps/secrets", - api_mode="V1", base_address="api", params=params, options=options, @@ -208,7 +204,6 @@ def find( self._request( "get", "/v1/apps/secrets/find", - api_mode="V1", base_address="api", params=params, options=options, @@ -226,7 +221,6 @@ async def find_async( await self._request_async( "get", "/v1/apps/secrets/find", - api_mode="V1", base_address="api", params=params, options=options, @@ -246,7 +240,6 @@ def delete_where( self._request( "post", "/v1/apps/secrets/delete", - api_mode="V1", base_address="api", params=params, options=options, @@ -266,7 +259,6 @@ async def delete_where_async( await self._request_async( "post", "/v1/apps/secrets/delete", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/billing/_alert_service.py b/stripe/billing/_alert_service.py index b3952ac19..31bda7bdb 100644 --- a/stripe/billing/_alert_service.py +++ b/stripe/billing/_alert_service.py @@ -117,7 +117,6 @@ def list( self._request( "get", "/v1/billing/alerts", - api_mode="V1", base_address="api", params=params, options=options, @@ -137,7 +136,6 @@ async def list_async( await self._request_async( "get", "/v1/billing/alerts", - api_mode="V1", base_address="api", params=params, options=options, @@ -155,7 +153,6 @@ def create( self._request( "post", "/v1/billing/alerts", - api_mode="V1", base_address="api", params=params, options=options, @@ -173,7 +170,6 @@ async def create_async( await self._request_async( "post", "/v1/billing/alerts", - api_mode="V1", base_address="api", params=params, options=options, @@ -194,7 +190,6 @@ def retrieve( self._request( "get", "/v1/billing/alerts/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -215,7 +210,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/billing/alerts/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -236,7 +230,6 @@ def activate( self._request( "post", "/v1/billing/alerts/{id}/activate".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -257,7 +250,6 @@ async def activate_async( await self._request_async( "post", "/v1/billing/alerts/{id}/activate".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -278,7 +270,6 @@ def archive( self._request( "post", "/v1/billing/alerts/{id}/archive".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -299,7 +290,6 @@ async def archive_async( await self._request_async( "post", "/v1/billing/alerts/{id}/archive".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -322,7 +312,6 @@ def deactivate( "/v1/billing/alerts/{id}/deactivate".format( id=sanitize_id(id) ), - api_mode="V1", base_address="api", params=params, options=options, @@ -345,7 +334,6 @@ async def deactivate_async( "/v1/billing/alerts/{id}/deactivate".format( id=sanitize_id(id) ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/billing/_meter_event_adjustment_service.py b/stripe/billing/_meter_event_adjustment_service.py index 038c74cc6..383b4a764 100644 --- a/stripe/billing/_meter_event_adjustment_service.py +++ b/stripe/billing/_meter_event_adjustment_service.py @@ -45,7 +45,6 @@ def create( self._request( "post", "/v1/billing/meter_event_adjustments", - api_mode="V1", base_address="api", params=params, options=options, @@ -65,7 +64,6 @@ async def create_async( await self._request_async( "post", "/v1/billing/meter_event_adjustments", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/billing/_meter_event_service.py b/stripe/billing/_meter_event_service.py index a8ad2beba..53214b534 100644 --- a/stripe/billing/_meter_event_service.py +++ b/stripe/billing/_meter_event_service.py @@ -43,7 +43,6 @@ def create( self._request( "post", "/v1/billing/meter_events", - api_mode="V1", base_address="api", params=params, options=options, @@ -63,7 +62,6 @@ async def create_async( await self._request_async( "post", "/v1/billing/meter_events", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/billing/_meter_event_summary_service.py b/stripe/billing/_meter_event_summary_service.py index 9f61f603a..dbfe8d46a 100644 --- a/stripe/billing/_meter_event_summary_service.py +++ b/stripe/billing/_meter_event_summary_service.py @@ -60,7 +60,6 @@ def list( "/v1/billing/meters/{id}/event_summaries".format( id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -83,7 +82,6 @@ async def list_async( "/v1/billing/meters/{id}/event_summaries".format( id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/billing/_meter_service.py b/stripe/billing/_meter_service.py index a2e78e36a..aed7176e0 100644 --- a/stripe/billing/_meter_service.py +++ b/stripe/billing/_meter_service.py @@ -134,7 +134,6 @@ def list( self._request( "get", "/v1/billing/meters", - api_mode="V1", base_address="api", params=params, options=options, @@ -154,7 +153,6 @@ async def list_async( await self._request_async( "get", "/v1/billing/meters", - api_mode="V1", base_address="api", params=params, options=options, @@ -172,7 +170,6 @@ def create( self._request( "post", "/v1/billing/meters", - api_mode="V1", base_address="api", params=params, options=options, @@ -190,7 +187,6 @@ async def create_async( await self._request_async( "post", "/v1/billing/meters", - api_mode="V1", base_address="api", params=params, options=options, @@ -211,7 +207,6 @@ def retrieve( self._request( "get", "/v1/billing/meters/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -232,7 +227,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/billing/meters/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -253,7 +247,6 @@ def update( self._request( "post", "/v1/billing/meters/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -274,7 +267,6 @@ async def update_async( await self._request_async( "post", "/v1/billing/meters/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -297,7 +289,6 @@ def deactivate( "/v1/billing/meters/{id}/deactivate".format( id=sanitize_id(id) ), - api_mode="V1", base_address="api", params=params, options=options, @@ -320,7 +311,6 @@ async def deactivate_async( "/v1/billing/meters/{id}/deactivate".format( id=sanitize_id(id) ), - api_mode="V1", base_address="api", params=params, options=options, @@ -343,7 +333,6 @@ def reactivate( "/v1/billing/meters/{id}/reactivate".format( id=sanitize_id(id) ), - api_mode="V1", base_address="api", params=params, options=options, @@ -366,7 +355,6 @@ async def reactivate_async( "/v1/billing/meters/{id}/reactivate".format( id=sanitize_id(id) ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/billing_portal/_configuration_service.py b/stripe/billing_portal/_configuration_service.py index 6ccf99723..7cbc97444 100644 --- a/stripe/billing_portal/_configuration_service.py +++ b/stripe/billing_portal/_configuration_service.py @@ -418,7 +418,6 @@ def list( self._request( "get", "/v1/billing_portal/configurations", - api_mode="V1", base_address="api", params=params, options=options, @@ -438,7 +437,6 @@ async def list_async( await self._request_async( "get", "/v1/billing_portal/configurations", - api_mode="V1", base_address="api", params=params, options=options, @@ -458,7 +456,6 @@ def create( self._request( "post", "/v1/billing_portal/configurations", - api_mode="V1", base_address="api", params=params, options=options, @@ -478,7 +475,6 @@ async def create_async( await self._request_async( "post", "/v1/billing_portal/configurations", - api_mode="V1", base_address="api", params=params, options=options, @@ -501,7 +497,6 @@ def retrieve( "/v1/billing_portal/configurations/{configuration}".format( configuration=sanitize_id(configuration), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -524,7 +519,6 @@ async def retrieve_async( "/v1/billing_portal/configurations/{configuration}".format( configuration=sanitize_id(configuration), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -547,7 +541,6 @@ def update( "/v1/billing_portal/configurations/{configuration}".format( configuration=sanitize_id(configuration), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -570,7 +563,6 @@ async def update_async( "/v1/billing_portal/configurations/{configuration}".format( configuration=sanitize_id(configuration), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/billing_portal/_session_service.py b/stripe/billing_portal/_session_service.py index d34247ae0..d06d54667 100644 --- a/stripe/billing_portal/_session_service.py +++ b/stripe/billing_portal/_session_service.py @@ -246,7 +246,6 @@ def create( self._request( "post", "/v1/billing_portal/sessions", - api_mode="V1", base_address="api", params=params, options=options, @@ -266,7 +265,6 @@ async def create_async( await self._request_async( "post", "/v1/billing_portal/sessions", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/capital/_financing_offer_service.py b/stripe/capital/_financing_offer_service.py index 0e18bb991..192569bbb 100644 --- a/stripe/capital/_financing_offer_service.py +++ b/stripe/capital/_financing_offer_service.py @@ -96,7 +96,6 @@ def list( self._request( "get", "/v1/capital/financing_offers", - api_mode="V1", base_address="api", params=params, options=options, @@ -116,7 +115,6 @@ async def list_async( await self._request_async( "get", "/v1/capital/financing_offers", - api_mode="V1", base_address="api", params=params, options=options, @@ -139,7 +137,6 @@ def retrieve( "/v1/capital/financing_offers/{financing_offer}".format( financing_offer=sanitize_id(financing_offer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -162,7 +159,6 @@ async def retrieve_async( "/v1/capital/financing_offers/{financing_offer}".format( financing_offer=sanitize_id(financing_offer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -186,7 +182,6 @@ def mark_delivered( "/v1/capital/financing_offers/{financing_offer}/mark_delivered".format( financing_offer=sanitize_id(financing_offer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -210,7 +205,6 @@ async def mark_delivered_async( "/v1/capital/financing_offers/{financing_offer}/mark_delivered".format( financing_offer=sanitize_id(financing_offer), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/capital/_financing_summary_service.py b/stripe/capital/_financing_summary_service.py index 2f9a3193c..0cc994302 100644 --- a/stripe/capital/_financing_summary_service.py +++ b/stripe/capital/_financing_summary_service.py @@ -27,7 +27,6 @@ def retrieve( self._request( "get", "/v1/capital/financing_summary", - api_mode="V1", base_address="api", params=params, options=options, @@ -47,7 +46,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/capital/financing_summary", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/capital/_financing_transaction_service.py b/stripe/capital/_financing_transaction_service.py index 4519becff..4e99288db 100644 --- a/stripe/capital/_financing_transaction_service.py +++ b/stripe/capital/_financing_transaction_service.py @@ -64,7 +64,6 @@ def list( self._request( "get", "/v1/capital/financing_transactions", - api_mode="V1", base_address="api", params=params, options=options, @@ -85,7 +84,6 @@ async def list_async( await self._request_async( "get", "/v1/capital/financing_transactions", - api_mode="V1", base_address="api", params=params, options=options, @@ -108,7 +106,6 @@ def retrieve( "/v1/capital/financing_transactions/{financing_transaction}".format( financing_transaction=sanitize_id(financing_transaction), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -131,7 +128,6 @@ async def retrieve_async( "/v1/capital/financing_transactions/{financing_transaction}".format( financing_transaction=sanitize_id(financing_transaction), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/checkout/_session_line_item_service.py b/stripe/checkout/_session_line_item_service.py index dc7317d12..133e884b2 100644 --- a/stripe/checkout/_session_line_item_service.py +++ b/stripe/checkout/_session_line_item_service.py @@ -44,7 +44,6 @@ def list( "/v1/checkout/sessions/{session}/line_items".format( session=sanitize_id(session), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -67,7 +66,6 @@ async def list_async( "/v1/checkout/sessions/{session}/line_items".format( session=sanitize_id(session), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/checkout/_session_service.py b/stripe/checkout/_session_service.py index 75a104888..dff48ecb9 100644 --- a/stripe/checkout/_session_service.py +++ b/stripe/checkout/_session_service.py @@ -2640,7 +2640,6 @@ def list( self._request( "get", "/v1/checkout/sessions", - api_mode="V1", base_address="api", params=params, options=options, @@ -2660,7 +2659,6 @@ async def list_async( await self._request_async( "get", "/v1/checkout/sessions", - api_mode="V1", base_address="api", params=params, options=options, @@ -2680,7 +2678,6 @@ def create( self._request( "post", "/v1/checkout/sessions", - api_mode="V1", base_address="api", params=params, options=options, @@ -2700,7 +2697,6 @@ async def create_async( await self._request_async( "post", "/v1/checkout/sessions", - api_mode="V1", base_address="api", params=params, options=options, @@ -2723,7 +2719,6 @@ def retrieve( "/v1/checkout/sessions/{session}".format( session=sanitize_id(session), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2746,7 +2741,6 @@ async def retrieve_async( "/v1/checkout/sessions/{session}".format( session=sanitize_id(session), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2769,7 +2763,6 @@ def update( "/v1/checkout/sessions/{session}".format( session=sanitize_id(session), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2792,7 +2785,6 @@ async def update_async( "/v1/checkout/sessions/{session}".format( session=sanitize_id(session), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2817,7 +2809,6 @@ def expire( "/v1/checkout/sessions/{session}/expire".format( session=sanitize_id(session), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2842,7 +2833,6 @@ async def expire_async( "/v1/checkout/sessions/{session}/expire".format( session=sanitize_id(session), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/climate/_order_service.py b/stripe/climate/_order_service.py index 0df6d6ef3..0c89ff260 100644 --- a/stripe/climate/_order_service.py +++ b/stripe/climate/_order_service.py @@ -112,7 +112,6 @@ def list( self._request( "get", "/v1/climate/orders", - api_mode="V1", base_address="api", params=params, options=options, @@ -133,7 +132,6 @@ async def list_async( await self._request_async( "get", "/v1/climate/orders", - api_mode="V1", base_address="api", params=params, options=options, @@ -152,7 +150,6 @@ def create( self._request( "post", "/v1/climate/orders", - api_mode="V1", base_address="api", params=params, options=options, @@ -171,7 +168,6 @@ async def create_async( await self._request_async( "post", "/v1/climate/orders", - api_mode="V1", base_address="api", params=params, options=options, @@ -192,7 +188,6 @@ def retrieve( self._request( "get", "/v1/climate/orders/{order}".format(order=sanitize_id(order)), - api_mode="V1", base_address="api", params=params, options=options, @@ -213,7 +208,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/climate/orders/{order}".format(order=sanitize_id(order)), - api_mode="V1", base_address="api", params=params, options=options, @@ -234,7 +228,6 @@ def update( self._request( "post", "/v1/climate/orders/{order}".format(order=sanitize_id(order)), - api_mode="V1", base_address="api", params=params, options=options, @@ -255,7 +248,6 @@ async def update_async( await self._request_async( "post", "/v1/climate/orders/{order}".format(order=sanitize_id(order)), - api_mode="V1", base_address="api", params=params, options=options, @@ -281,7 +273,6 @@ def cancel( "/v1/climate/orders/{order}/cancel".format( order=sanitize_id(order), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -307,7 +298,6 @@ async def cancel_async( "/v1/climate/orders/{order}/cancel".format( order=sanitize_id(order), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/climate/_product_service.py b/stripe/climate/_product_service.py index b0c4d230d..feed57549 100644 --- a/stripe/climate/_product_service.py +++ b/stripe/climate/_product_service.py @@ -47,7 +47,6 @@ def list( self._request( "get", "/v1/climate/products", - api_mode="V1", base_address="api", params=params, options=options, @@ -67,7 +66,6 @@ async def list_async( await self._request_async( "get", "/v1/climate/products", - api_mode="V1", base_address="api", params=params, options=options, @@ -90,7 +88,6 @@ def retrieve( "/v1/climate/products/{product}".format( product=sanitize_id(product), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -113,7 +110,6 @@ async def retrieve_async( "/v1/climate/products/{product}".format( product=sanitize_id(product), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/climate/_supplier_service.py b/stripe/climate/_supplier_service.py index 6f4bf0b17..168e2221c 100644 --- a/stripe/climate/_supplier_service.py +++ b/stripe/climate/_supplier_service.py @@ -47,7 +47,6 @@ def list( self._request( "get", "/v1/climate/suppliers", - api_mode="V1", base_address="api", params=params, options=options, @@ -67,7 +66,6 @@ async def list_async( await self._request_async( "get", "/v1/climate/suppliers", - api_mode="V1", base_address="api", params=params, options=options, @@ -90,7 +88,6 @@ def retrieve( "/v1/climate/suppliers/{supplier}".format( supplier=sanitize_id(supplier), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -113,7 +110,6 @@ async def retrieve_async( "/v1/climate/suppliers/{supplier}".format( supplier=sanitize_id(supplier), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/entitlements/_active_entitlement_service.py b/stripe/entitlements/_active_entitlement_service.py index 862b41a6d..fedfb6111 100644 --- a/stripe/entitlements/_active_entitlement_service.py +++ b/stripe/entitlements/_active_entitlement_service.py @@ -51,7 +51,6 @@ def list( self._request( "get", "/v1/entitlements/active_entitlements", - api_mode="V1", base_address="api", params=params, options=options, @@ -71,7 +70,6 @@ async def list_async( await self._request_async( "get", "/v1/entitlements/active_entitlements", - api_mode="V1", base_address="api", params=params, options=options, @@ -94,7 +92,6 @@ def retrieve( "/v1/entitlements/active_entitlements/{id}".format( id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -117,7 +114,6 @@ async def retrieve_async( "/v1/entitlements/active_entitlements/{id}".format( id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/entitlements/_feature_service.py b/stripe/entitlements/_feature_service.py index dea34b0f2..b6e952283 100644 --- a/stripe/entitlements/_feature_service.py +++ b/stripe/entitlements/_feature_service.py @@ -91,7 +91,6 @@ def list( self._request( "get", "/v1/entitlements/features", - api_mode="V1", base_address="api", params=params, options=options, @@ -111,7 +110,6 @@ async def list_async( await self._request_async( "get", "/v1/entitlements/features", - api_mode="V1", base_address="api", params=params, options=options, @@ -131,7 +129,6 @@ def create( self._request( "post", "/v1/entitlements/features", - api_mode="V1", base_address="api", params=params, options=options, @@ -151,7 +148,6 @@ async def create_async( await self._request_async( "post", "/v1/entitlements/features", - api_mode="V1", base_address="api", params=params, options=options, @@ -172,7 +168,6 @@ def retrieve( self._request( "get", "/v1/entitlements/features/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -193,7 +188,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/entitlements/features/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -214,7 +208,6 @@ def update( self._request( "post", "/v1/entitlements/features/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -235,7 +228,6 @@ async def update_async( await self._request_async( "post", "/v1/entitlements/features/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/financial_connections/_account_inferred_balance_service.py b/stripe/financial_connections/_account_inferred_balance_service.py index d590bde48..2d5a09224 100644 --- a/stripe/financial_connections/_account_inferred_balance_service.py +++ b/stripe/financial_connections/_account_inferred_balance_service.py @@ -46,7 +46,6 @@ def list( "/v1/financial_connections/accounts/{account}/inferred_balances".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -69,7 +68,6 @@ async def list_async( "/v1/financial_connections/accounts/{account}/inferred_balances".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/financial_connections/_account_owner_service.py b/stripe/financial_connections/_account_owner_service.py index 43422e8c8..8369b750c 100644 --- a/stripe/financial_connections/_account_owner_service.py +++ b/stripe/financial_connections/_account_owner_service.py @@ -48,7 +48,6 @@ def list( "/v1/financial_connections/accounts/{account}/owners".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -71,7 +70,6 @@ async def list_async( "/v1/financial_connections/accounts/{account}/owners".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/financial_connections/_account_service.py b/stripe/financial_connections/_account_service.py index 98aa39c87..60ab03736 100644 --- a/stripe/financial_connections/_account_service.py +++ b/stripe/financial_connections/_account_service.py @@ -116,7 +116,6 @@ def list( self._request( "get", "/v1/financial_connections/accounts", - api_mode="V1", base_address="api", params=params, options=options, @@ -136,7 +135,6 @@ async def list_async( await self._request_async( "get", "/v1/financial_connections/accounts", - api_mode="V1", base_address="api", params=params, options=options, @@ -159,7 +157,6 @@ def retrieve( "/v1/financial_connections/accounts/{account}".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -182,7 +179,6 @@ async def retrieve_async( "/v1/financial_connections/accounts/{account}".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -205,7 +201,6 @@ def disconnect( "/v1/financial_connections/accounts/{account}/disconnect".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -228,7 +223,6 @@ async def disconnect_async( "/v1/financial_connections/accounts/{account}/disconnect".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -251,7 +245,6 @@ def refresh( "/v1/financial_connections/accounts/{account}/refresh".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -274,7 +267,6 @@ async def refresh_async( "/v1/financial_connections/accounts/{account}/refresh".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -297,7 +289,6 @@ def subscribe( "/v1/financial_connections/accounts/{account}/subscribe".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -320,7 +311,6 @@ async def subscribe_async( "/v1/financial_connections/accounts/{account}/subscribe".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -343,7 +333,6 @@ def unsubscribe( "/v1/financial_connections/accounts/{account}/unsubscribe".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -366,7 +355,6 @@ async def unsubscribe_async( "/v1/financial_connections/accounts/{account}/unsubscribe".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/financial_connections/_institution_service.py b/stripe/financial_connections/_institution_service.py index 03b224342..137143b60 100644 --- a/stripe/financial_connections/_institution_service.py +++ b/stripe/financial_connections/_institution_service.py @@ -47,7 +47,6 @@ def list( self._request( "get", "/v1/financial_connections/institutions", - api_mode="V1", base_address="api", params=params, options=options, @@ -67,7 +66,6 @@ async def list_async( await self._request_async( "get", "/v1/financial_connections/institutions", - api_mode="V1", base_address="api", params=params, options=options, @@ -90,7 +88,6 @@ def retrieve( "/v1/financial_connections/institutions/{institution}".format( institution=sanitize_id(institution), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -113,7 +110,6 @@ async def retrieve_async( "/v1/financial_connections/institutions/{institution}".format( institution=sanitize_id(institution), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/financial_connections/_session_service.py b/stripe/financial_connections/_session_service.py index f6ca6b773..baad3d0a4 100644 --- a/stripe/financial_connections/_session_service.py +++ b/stripe/financial_connections/_session_service.py @@ -128,7 +128,6 @@ def retrieve( "/v1/financial_connections/sessions/{session}".format( session=sanitize_id(session), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -151,7 +150,6 @@ async def retrieve_async( "/v1/financial_connections/sessions/{session}".format( session=sanitize_id(session), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -171,7 +169,6 @@ def create( self._request( "post", "/v1/financial_connections/sessions", - api_mode="V1", base_address="api", params=params, options=options, @@ -191,7 +188,6 @@ async def create_async( await self._request_async( "post", "/v1/financial_connections/sessions", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/financial_connections/_transaction_service.py b/stripe/financial_connections/_transaction_service.py index 362ea579a..66683ae29 100644 --- a/stripe/financial_connections/_transaction_service.py +++ b/stripe/financial_connections/_transaction_service.py @@ -87,7 +87,6 @@ def list( self._request( "get", "/v1/financial_connections/transactions", - api_mode="V1", base_address="api", params=params, options=options, @@ -107,7 +106,6 @@ async def list_async( await self._request_async( "get", "/v1/financial_connections/transactions", - api_mode="V1", base_address="api", params=params, options=options, @@ -130,7 +128,6 @@ def retrieve( "/v1/financial_connections/transactions/{transaction}".format( transaction=sanitize_id(transaction), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -153,7 +150,6 @@ async def retrieve_async( "/v1/financial_connections/transactions/{transaction}".format( transaction=sanitize_id(transaction), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/forwarding/_request_service.py b/stripe/forwarding/_request_service.py index d8e1dffc5..b9049a234 100644 --- a/stripe/forwarding/_request_service.py +++ b/stripe/forwarding/_request_service.py @@ -115,7 +115,6 @@ def list( self._request( "get", "/v1/forwarding/requests", - api_mode="V1", base_address="api", params=params, options=options, @@ -135,7 +134,6 @@ async def list_async( await self._request_async( "get", "/v1/forwarding/requests", - api_mode="V1", base_address="api", params=params, options=options, @@ -155,7 +153,6 @@ def create( self._request( "post", "/v1/forwarding/requests", - api_mode="V1", base_address="api", params=params, options=options, @@ -175,7 +172,6 @@ async def create_async( await self._request_async( "post", "/v1/forwarding/requests", - api_mode="V1", base_address="api", params=params, options=options, @@ -196,7 +192,6 @@ def retrieve( self._request( "get", "/v1/forwarding/requests/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -217,7 +212,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/forwarding/requests/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/gift_cards/_card_service.py b/stripe/gift_cards/_card_service.py index ee424faa0..4459519b8 100644 --- a/stripe/gift_cards/_card_service.py +++ b/stripe/gift_cards/_card_service.py @@ -117,7 +117,6 @@ def list( self._request( "get", "/v1/gift_cards/cards", - api_mode="V1", base_address="api", params=params, options=options, @@ -137,7 +136,6 @@ async def list_async( await self._request_async( "get", "/v1/gift_cards/cards", - api_mode="V1", base_address="api", params=params, options=options, @@ -155,7 +153,6 @@ def create( self._request( "post", "/v1/gift_cards/cards", - api_mode="V1", base_address="api", params=params, options=options, @@ -173,7 +170,6 @@ async def create_async( await self._request_async( "post", "/v1/gift_cards/cards", - api_mode="V1", base_address="api", params=params, options=options, @@ -194,7 +190,6 @@ def retrieve( self._request( "get", "/v1/gift_cards/cards/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -215,7 +210,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/gift_cards/cards/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -236,7 +230,6 @@ def update( self._request( "post", "/v1/gift_cards/cards/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -257,7 +250,6 @@ async def update_async( await self._request_async( "post", "/v1/gift_cards/cards/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -277,7 +269,6 @@ def validate( self._request( "post", "/v1/gift_cards/cards/validate", - api_mode="V1", base_address="api", params=params, options=options, @@ -297,7 +288,6 @@ async def validate_async( await self._request_async( "post", "/v1/gift_cards/cards/validate", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/gift_cards/_transaction_service.py b/stripe/gift_cards/_transaction_service.py index 2316132c8..62f9a149b 100644 --- a/stripe/gift_cards/_transaction_service.py +++ b/stripe/gift_cards/_transaction_service.py @@ -135,7 +135,6 @@ def list( self._request( "get", "/v1/gift_cards/transactions", - api_mode="V1", base_address="api", params=params, options=options, @@ -155,7 +154,6 @@ async def list_async( await self._request_async( "get", "/v1/gift_cards/transactions", - api_mode="V1", base_address="api", params=params, options=options, @@ -175,7 +173,6 @@ def create( self._request( "post", "/v1/gift_cards/transactions", - api_mode="V1", base_address="api", params=params, options=options, @@ -195,7 +192,6 @@ async def create_async( await self._request_async( "post", "/v1/gift_cards/transactions", - api_mode="V1", base_address="api", params=params, options=options, @@ -216,7 +212,6 @@ def retrieve( self._request( "get", "/v1/gift_cards/transactions/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -237,7 +232,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/gift_cards/transactions/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -258,7 +252,6 @@ def update( self._request( "post", "/v1/gift_cards/transactions/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -279,7 +272,6 @@ async def update_async( await self._request_async( "post", "/v1/gift_cards/transactions/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -302,7 +294,6 @@ def cancel( "/v1/gift_cards/transactions/{id}/cancel".format( id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -325,7 +316,6 @@ async def cancel_async( "/v1/gift_cards/transactions/{id}/cancel".format( id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -348,7 +338,6 @@ def confirm( "/v1/gift_cards/transactions/{id}/confirm".format( id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -371,7 +360,6 @@ async def confirm_async( "/v1/gift_cards/transactions/{id}/confirm".format( id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/identity/_verification_report_service.py b/stripe/identity/_verification_report_service.py index 7554c54e0..95cbb8319 100644 --- a/stripe/identity/_verification_report_service.py +++ b/stripe/identity/_verification_report_service.py @@ -81,7 +81,6 @@ def list( self._request( "get", "/v1/identity/verification_reports", - api_mode="V1", base_address="api", params=params, options=options, @@ -101,7 +100,6 @@ async def list_async( await self._request_async( "get", "/v1/identity/verification_reports", - api_mode="V1", base_address="api", params=params, options=options, @@ -124,7 +122,6 @@ def retrieve( "/v1/identity/verification_reports/{report}".format( report=sanitize_id(report), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -147,7 +144,6 @@ async def retrieve_async( "/v1/identity/verification_reports/{report}".format( report=sanitize_id(report), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/identity/_verification_session_service.py b/stripe/identity/_verification_session_service.py index 7cbe57bd0..341b795d6 100644 --- a/stripe/identity/_verification_session_service.py +++ b/stripe/identity/_verification_session_service.py @@ -234,7 +234,6 @@ def list( self._request( "get", "/v1/identity/verification_sessions", - api_mode="V1", base_address="api", params=params, options=options, @@ -254,7 +253,6 @@ async def list_async( await self._request_async( "get", "/v1/identity/verification_sessions", - api_mode="V1", base_address="api", params=params, options=options, @@ -280,7 +278,6 @@ def create( self._request( "post", "/v1/identity/verification_sessions", - api_mode="V1", base_address="api", params=params, options=options, @@ -306,7 +303,6 @@ async def create_async( await self._request_async( "post", "/v1/identity/verification_sessions", - api_mode="V1", base_address="api", params=params, options=options, @@ -332,7 +328,6 @@ def retrieve( "/v1/identity/verification_sessions/{session}".format( session=sanitize_id(session), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -358,7 +353,6 @@ async def retrieve_async( "/v1/identity/verification_sessions/{session}".format( session=sanitize_id(session), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -384,7 +378,6 @@ def update( "/v1/identity/verification_sessions/{session}".format( session=sanitize_id(session), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -410,7 +403,6 @@ async def update_async( "/v1/identity/verification_sessions/{session}".format( session=sanitize_id(session), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -435,7 +427,6 @@ def cancel( "/v1/identity/verification_sessions/{session}/cancel".format( session=sanitize_id(session), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -460,7 +451,6 @@ async def cancel_async( "/v1/identity/verification_sessions/{session}/cancel".format( session=sanitize_id(session), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -501,7 +491,6 @@ def redact( "/v1/identity/verification_sessions/{session}/redact".format( session=sanitize_id(session), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -542,7 +531,6 @@ async def redact_async( "/v1/identity/verification_sessions/{session}/redact".format( session=sanitize_id(session), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/issuing/_authorization_service.py b/stripe/issuing/_authorization_service.py index 20118487b..ad1c339c4 100644 --- a/stripe/issuing/_authorization_service.py +++ b/stripe/issuing/_authorization_service.py @@ -115,7 +115,6 @@ def list( self._request( "get", "/v1/issuing/authorizations", - api_mode="V1", base_address="api", params=params, options=options, @@ -135,7 +134,6 @@ async def list_async( await self._request_async( "get", "/v1/issuing/authorizations", - api_mode="V1", base_address="api", params=params, options=options, @@ -158,7 +156,6 @@ def retrieve( "/v1/issuing/authorizations/{authorization}".format( authorization=sanitize_id(authorization), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -181,7 +178,6 @@ async def retrieve_async( "/v1/issuing/authorizations/{authorization}".format( authorization=sanitize_id(authorization), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -204,7 +200,6 @@ def update( "/v1/issuing/authorizations/{authorization}".format( authorization=sanitize_id(authorization), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -227,7 +222,6 @@ async def update_async( "/v1/issuing/authorizations/{authorization}".format( authorization=sanitize_id(authorization), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -251,7 +245,6 @@ def approve( "/v1/issuing/authorizations/{authorization}/approve".format( authorization=sanitize_id(authorization), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -275,7 +268,6 @@ async def approve_async( "/v1/issuing/authorizations/{authorization}/approve".format( authorization=sanitize_id(authorization), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -299,7 +291,6 @@ def decline( "/v1/issuing/authorizations/{authorization}/decline".format( authorization=sanitize_id(authorization), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -323,7 +314,6 @@ async def decline_async( "/v1/issuing/authorizations/{authorization}/decline".format( authorization=sanitize_id(authorization), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/issuing/_card_service.py b/stripe/issuing/_card_service.py index d4b46520d..3a0dcb9ff 100644 --- a/stripe/issuing/_card_service.py +++ b/stripe/issuing/_card_service.py @@ -2240,7 +2240,6 @@ def list( self._request( "get", "/v1/issuing/cards", - api_mode="V1", base_address="api", params=params, options=options, @@ -2260,7 +2259,6 @@ async def list_async( await self._request_async( "get", "/v1/issuing/cards", - api_mode="V1", base_address="api", params=params, options=options, @@ -2278,7 +2276,6 @@ def create( self._request( "post", "/v1/issuing/cards", - api_mode="V1", base_address="api", params=params, options=options, @@ -2296,7 +2293,6 @@ async def create_async( await self._request_async( "post", "/v1/issuing/cards", - api_mode="V1", base_address="api", params=params, options=options, @@ -2317,7 +2313,6 @@ def retrieve( self._request( "get", "/v1/issuing/cards/{card}".format(card=sanitize_id(card)), - api_mode="V1", base_address="api", params=params, options=options, @@ -2338,7 +2333,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/issuing/cards/{card}".format(card=sanitize_id(card)), - api_mode="V1", base_address="api", params=params, options=options, @@ -2359,7 +2353,6 @@ def update( self._request( "post", "/v1/issuing/cards/{card}".format(card=sanitize_id(card)), - api_mode="V1", base_address="api", params=params, options=options, @@ -2380,7 +2373,6 @@ async def update_async( await self._request_async( "post", "/v1/issuing/cards/{card}".format(card=sanitize_id(card)), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/issuing/_cardholder_service.py b/stripe/issuing/_cardholder_service.py index 43d8b0e1d..8c5e32c18 100644 --- a/stripe/issuing/_cardholder_service.py +++ b/stripe/issuing/_cardholder_service.py @@ -2322,7 +2322,6 @@ def list( self._request( "get", "/v1/issuing/cardholders", - api_mode="V1", base_address="api", params=params, options=options, @@ -2342,7 +2341,6 @@ async def list_async( await self._request_async( "get", "/v1/issuing/cardholders", - api_mode="V1", base_address="api", params=params, options=options, @@ -2362,7 +2360,6 @@ def create( self._request( "post", "/v1/issuing/cardholders", - api_mode="V1", base_address="api", params=params, options=options, @@ -2382,7 +2379,6 @@ async def create_async( await self._request_async( "post", "/v1/issuing/cardholders", - api_mode="V1", base_address="api", params=params, options=options, @@ -2405,7 +2401,6 @@ def retrieve( "/v1/issuing/cardholders/{cardholder}".format( cardholder=sanitize_id(cardholder), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2428,7 +2423,6 @@ async def retrieve_async( "/v1/issuing/cardholders/{cardholder}".format( cardholder=sanitize_id(cardholder), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2451,7 +2445,6 @@ def update( "/v1/issuing/cardholders/{cardholder}".format( cardholder=sanitize_id(cardholder), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2474,7 +2467,6 @@ async def update_async( "/v1/issuing/cardholders/{cardholder}".format( cardholder=sanitize_id(cardholder), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/issuing/_credit_underwriting_record_service.py b/stripe/issuing/_credit_underwriting_record_service.py index 23090408a..f8b075336 100644 --- a/stripe/issuing/_credit_underwriting_record_service.py +++ b/stripe/issuing/_credit_underwriting_record_service.py @@ -913,7 +913,6 @@ def list( self._request( "get", "/v1/issuing/credit_underwriting_records", - api_mode="V1", base_address="api", params=params, options=options, @@ -933,7 +932,6 @@ async def list_async( await self._request_async( "get", "/v1/issuing/credit_underwriting_records", - api_mode="V1", base_address="api", params=params, options=options, @@ -958,7 +956,6 @@ def retrieve( credit_underwriting_record ), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -983,7 +980,6 @@ async def retrieve_async( credit_underwriting_record ), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1008,7 +1004,6 @@ def correct( credit_underwriting_record ), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1033,7 +1028,6 @@ async def correct_async( credit_underwriting_record ), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1058,7 +1052,6 @@ def report_decision( credit_underwriting_record ), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1083,7 +1076,6 @@ async def report_decision_async( credit_underwriting_record ), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1103,7 +1095,6 @@ def create_from_application( self._request( "post", "/v1/issuing/credit_underwriting_records/create_from_application", - api_mode="V1", base_address="api", params=params, options=options, @@ -1123,7 +1114,6 @@ async def create_from_application_async( await self._request_async( "post", "/v1/issuing/credit_underwriting_records/create_from_application", - api_mode="V1", base_address="api", params=params, options=options, @@ -1143,7 +1133,6 @@ def create_from_proactive_review( self._request( "post", "/v1/issuing/credit_underwriting_records/create_from_proactive_review", - api_mode="V1", base_address="api", params=params, options=options, @@ -1163,7 +1152,6 @@ async def create_from_proactive_review_async( await self._request_async( "post", "/v1/issuing/credit_underwriting_records/create_from_proactive_review", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/issuing/_dispute_service.py b/stripe/issuing/_dispute_service.py index 66492a871..fc7347bf0 100644 --- a/stripe/issuing/_dispute_service.py +++ b/stripe/issuing/_dispute_service.py @@ -641,7 +641,6 @@ def list( self._request( "get", "/v1/issuing/disputes", - api_mode="V1", base_address="api", params=params, options=options, @@ -661,7 +660,6 @@ async def list_async( await self._request_async( "get", "/v1/issuing/disputes", - api_mode="V1", base_address="api", params=params, options=options, @@ -681,7 +679,6 @@ def create( self._request( "post", "/v1/issuing/disputes", - api_mode="V1", base_address="api", params=params, options=options, @@ -701,7 +698,6 @@ async def create_async( await self._request_async( "post", "/v1/issuing/disputes", - api_mode="V1", base_address="api", params=params, options=options, @@ -724,7 +720,6 @@ def retrieve( "/v1/issuing/disputes/{dispute}".format( dispute=sanitize_id(dispute), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -747,7 +742,6 @@ async def retrieve_async( "/v1/issuing/disputes/{dispute}".format( dispute=sanitize_id(dispute), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -770,7 +764,6 @@ def update( "/v1/issuing/disputes/{dispute}".format( dispute=sanitize_id(dispute), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -793,7 +786,6 @@ async def update_async( "/v1/issuing/disputes/{dispute}".format( dispute=sanitize_id(dispute), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -816,7 +808,6 @@ def submit( "/v1/issuing/disputes/{dispute}/submit".format( dispute=sanitize_id(dispute), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -839,7 +830,6 @@ async def submit_async( "/v1/issuing/disputes/{dispute}/submit".format( dispute=sanitize_id(dispute), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/issuing/_personalization_design_service.py b/stripe/issuing/_personalization_design_service.py index 259746c88..a32c09090 100644 --- a/stripe/issuing/_personalization_design_service.py +++ b/stripe/issuing/_personalization_design_service.py @@ -205,7 +205,6 @@ def list( self._request( "get", "/v1/issuing/personalization_designs", - api_mode="V1", base_address="api", params=params, options=options, @@ -225,7 +224,6 @@ async def list_async( await self._request_async( "get", "/v1/issuing/personalization_designs", - api_mode="V1", base_address="api", params=params, options=options, @@ -245,7 +243,6 @@ def create( self._request( "post", "/v1/issuing/personalization_designs", - api_mode="V1", base_address="api", params=params, options=options, @@ -265,7 +262,6 @@ async def create_async( await self._request_async( "post", "/v1/issuing/personalization_designs", - api_mode="V1", base_address="api", params=params, options=options, @@ -288,7 +284,6 @@ def retrieve( "/v1/issuing/personalization_designs/{personalization_design}".format( personalization_design=sanitize_id(personalization_design), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -311,7 +306,6 @@ async def retrieve_async( "/v1/issuing/personalization_designs/{personalization_design}".format( personalization_design=sanitize_id(personalization_design), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -334,7 +328,6 @@ def update( "/v1/issuing/personalization_designs/{personalization_design}".format( personalization_design=sanitize_id(personalization_design), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -357,7 +350,6 @@ async def update_async( "/v1/issuing/personalization_designs/{personalization_design}".format( personalization_design=sanitize_id(personalization_design), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/issuing/_physical_bundle_service.py b/stripe/issuing/_physical_bundle_service.py index 39722924d..3c9f367ae 100644 --- a/stripe/issuing/_physical_bundle_service.py +++ b/stripe/issuing/_physical_bundle_service.py @@ -55,7 +55,6 @@ def list( self._request( "get", "/v1/issuing/physical_bundles", - api_mode="V1", base_address="api", params=params, options=options, @@ -75,7 +74,6 @@ async def list_async( await self._request_async( "get", "/v1/issuing/physical_bundles", - api_mode="V1", base_address="api", params=params, options=options, @@ -98,7 +96,6 @@ def retrieve( "/v1/issuing/physical_bundles/{physical_bundle}".format( physical_bundle=sanitize_id(physical_bundle), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -121,7 +118,6 @@ async def retrieve_async( "/v1/issuing/physical_bundles/{physical_bundle}".format( physical_bundle=sanitize_id(physical_bundle), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/issuing/_token_service.py b/stripe/issuing/_token_service.py index 6a6b99d20..9bb20e872 100644 --- a/stripe/issuing/_token_service.py +++ b/stripe/issuing/_token_service.py @@ -87,7 +87,6 @@ def list( self._request( "get", "/v1/issuing/tokens", - api_mode="V1", base_address="api", params=params, options=options, @@ -105,7 +104,6 @@ async def list_async( await self._request_async( "get", "/v1/issuing/tokens", - api_mode="V1", base_address="api", params=params, options=options, @@ -126,7 +124,6 @@ def retrieve( self._request( "get", "/v1/issuing/tokens/{token}".format(token=sanitize_id(token)), - api_mode="V1", base_address="api", params=params, options=options, @@ -147,7 +144,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/issuing/tokens/{token}".format(token=sanitize_id(token)), - api_mode="V1", base_address="api", params=params, options=options, @@ -168,7 +164,6 @@ def update( self._request( "post", "/v1/issuing/tokens/{token}".format(token=sanitize_id(token)), - api_mode="V1", base_address="api", params=params, options=options, @@ -189,7 +184,6 @@ async def update_async( await self._request_async( "post", "/v1/issuing/tokens/{token}".format(token=sanitize_id(token)), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/issuing/_transaction_service.py b/stripe/issuing/_transaction_service.py index 178c73832..f61d4622a 100644 --- a/stripe/issuing/_transaction_service.py +++ b/stripe/issuing/_transaction_service.py @@ -91,7 +91,6 @@ def list( self._request( "get", "/v1/issuing/transactions", - api_mode="V1", base_address="api", params=params, options=options, @@ -111,7 +110,6 @@ async def list_async( await self._request_async( "get", "/v1/issuing/transactions", - api_mode="V1", base_address="api", params=params, options=options, @@ -134,7 +132,6 @@ def retrieve( "/v1/issuing/transactions/{transaction}".format( transaction=sanitize_id(transaction), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -157,7 +154,6 @@ async def retrieve_async( "/v1/issuing/transactions/{transaction}".format( transaction=sanitize_id(transaction), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -180,7 +176,6 @@ def update( "/v1/issuing/transactions/{transaction}".format( transaction=sanitize_id(transaction), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -203,7 +198,6 @@ async def update_async( "/v1/issuing/transactions/{transaction}".format( transaction=sanitize_id(transaction), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/radar/_early_fraud_warning_service.py b/stripe/radar/_early_fraud_warning_service.py index 2118f15cb..552c95425 100644 --- a/stripe/radar/_early_fraud_warning_service.py +++ b/stripe/radar/_early_fraud_warning_service.py @@ -77,7 +77,6 @@ def list( self._request( "get", "/v1/radar/early_fraud_warnings", - api_mode="V1", base_address="api", params=params, options=options, @@ -97,7 +96,6 @@ async def list_async( await self._request_async( "get", "/v1/radar/early_fraud_warnings", - api_mode="V1", base_address="api", params=params, options=options, @@ -122,7 +120,6 @@ def retrieve( "/v1/radar/early_fraud_warnings/{early_fraud_warning}".format( early_fraud_warning=sanitize_id(early_fraud_warning), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -147,7 +144,6 @@ async def retrieve_async( "/v1/radar/early_fraud_warnings/{early_fraud_warning}".format( early_fraud_warning=sanitize_id(early_fraud_warning), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/radar/_value_list_item_service.py b/stripe/radar/_value_list_item_service.py index 60c54fec2..247d21d3e 100644 --- a/stripe/radar/_value_list_item_service.py +++ b/stripe/radar/_value_list_item_service.py @@ -97,7 +97,6 @@ def delete( "/v1/radar/value_list_items/{item}".format( item=sanitize_id(item), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -120,7 +119,6 @@ async def delete_async( "/v1/radar/value_list_items/{item}".format( item=sanitize_id(item), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -143,7 +141,6 @@ def retrieve( "/v1/radar/value_list_items/{item}".format( item=sanitize_id(item), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -166,7 +163,6 @@ async def retrieve_async( "/v1/radar/value_list_items/{item}".format( item=sanitize_id(item), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -186,7 +182,6 @@ def list( self._request( "get", "/v1/radar/value_list_items", - api_mode="V1", base_address="api", params=params, options=options, @@ -206,7 +201,6 @@ async def list_async( await self._request_async( "get", "/v1/radar/value_list_items", - api_mode="V1", base_address="api", params=params, options=options, @@ -226,7 +220,6 @@ def create( self._request( "post", "/v1/radar/value_list_items", - api_mode="V1", base_address="api", params=params, options=options, @@ -246,7 +239,6 @@ async def create_async( await self._request_async( "post", "/v1/radar/value_list_items", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/radar/_value_list_service.py b/stripe/radar/_value_list_service.py index f0e9e330d..ed270a34f 100644 --- a/stripe/radar/_value_list_service.py +++ b/stripe/radar/_value_list_service.py @@ -136,7 +136,6 @@ def delete( "/v1/radar/value_lists/{value_list}".format( value_list=sanitize_id(value_list), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -159,7 +158,6 @@ async def delete_async( "/v1/radar/value_lists/{value_list}".format( value_list=sanitize_id(value_list), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -182,7 +180,6 @@ def retrieve( "/v1/radar/value_lists/{value_list}".format( value_list=sanitize_id(value_list), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -205,7 +202,6 @@ async def retrieve_async( "/v1/radar/value_lists/{value_list}".format( value_list=sanitize_id(value_list), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -228,7 +224,6 @@ def update( "/v1/radar/value_lists/{value_list}".format( value_list=sanitize_id(value_list), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -251,7 +246,6 @@ async def update_async( "/v1/radar/value_lists/{value_list}".format( value_list=sanitize_id(value_list), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -271,7 +265,6 @@ def list( self._request( "get", "/v1/radar/value_lists", - api_mode="V1", base_address="api", params=params, options=options, @@ -291,7 +284,6 @@ async def list_async( await self._request_async( "get", "/v1/radar/value_lists", - api_mode="V1", base_address="api", params=params, options=options, @@ -311,7 +303,6 @@ def create( self._request( "post", "/v1/radar/value_lists", - api_mode="V1", base_address="api", params=params, options=options, @@ -331,7 +322,6 @@ async def create_async( await self._request_async( "post", "/v1/radar/value_lists", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/reporting/_report_run_service.py b/stripe/reporting/_report_run_service.py index 9e8c86dff..cc4505382 100644 --- a/stripe/reporting/_report_run_service.py +++ b/stripe/reporting/_report_run_service.py @@ -758,7 +758,6 @@ def list( self._request( "get", "/v1/reporting/report_runs", - api_mode="V1", base_address="api", params=params, options=options, @@ -778,7 +777,6 @@ async def list_async( await self._request_async( "get", "/v1/reporting/report_runs", - api_mode="V1", base_address="api", params=params, options=options, @@ -798,7 +796,6 @@ def create( self._request( "post", "/v1/reporting/report_runs", - api_mode="V1", base_address="api", params=params, options=options, @@ -818,7 +815,6 @@ async def create_async( await self._request_async( "post", "/v1/reporting/report_runs", - api_mode="V1", base_address="api", params=params, options=options, @@ -841,7 +837,6 @@ def retrieve( "/v1/reporting/report_runs/{report_run}".format( report_run=sanitize_id(report_run), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -864,7 +859,6 @@ async def retrieve_async( "/v1/reporting/report_runs/{report_run}".format( report_run=sanitize_id(report_run), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/reporting/_report_type_service.py b/stripe/reporting/_report_type_service.py index e50f78037..9f52e3be5 100644 --- a/stripe/reporting/_report_type_service.py +++ b/stripe/reporting/_report_type_service.py @@ -35,7 +35,6 @@ def list( self._request( "get", "/v1/reporting/report_types", - api_mode="V1", base_address="api", params=params, options=options, @@ -55,7 +54,6 @@ async def list_async( await self._request_async( "get", "/v1/reporting/report_types", - api_mode="V1", base_address="api", params=params, options=options, @@ -78,7 +76,6 @@ def retrieve( "/v1/reporting/report_types/{report_type}".format( report_type=sanitize_id(report_type), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -101,7 +98,6 @@ async def retrieve_async( "/v1/reporting/report_types/{report_type}".format( report_type=sanitize_id(report_type), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/sigma/_scheduled_query_run_service.py b/stripe/sigma/_scheduled_query_run_service.py index 55bec997f..4ea7ec6dd 100644 --- a/stripe/sigma/_scheduled_query_run_service.py +++ b/stripe/sigma/_scheduled_query_run_service.py @@ -47,7 +47,6 @@ def list( self._request( "get", "/v1/sigma/scheduled_query_runs", - api_mode="V1", base_address="api", params=params, options=options, @@ -67,7 +66,6 @@ async def list_async( await self._request_async( "get", "/v1/sigma/scheduled_query_runs", - api_mode="V1", base_address="api", params=params, options=options, @@ -90,7 +88,6 @@ def retrieve( "/v1/sigma/scheduled_query_runs/{scheduled_query_run}".format( scheduled_query_run=sanitize_id(scheduled_query_run), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -113,7 +110,6 @@ async def retrieve_async( "/v1/sigma/scheduled_query_runs/{scheduled_query_run}".format( scheduled_query_run=sanitize_id(scheduled_query_run), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/tax/_association_service.py b/stripe/tax/_association_service.py index a0559dc87..6ed5b6ee1 100644 --- a/stripe/tax/_association_service.py +++ b/stripe/tax/_association_service.py @@ -31,7 +31,6 @@ def find( self._request( "get", "/v1/tax/associations/find", - api_mode="V1", base_address="api", params=params, options=options, @@ -51,7 +50,6 @@ async def find_async( await self._request_async( "get", "/v1/tax/associations/find", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/tax/_calculation_line_item_service.py b/stripe/tax/_calculation_line_item_service.py index 08651f8eb..a679bb990 100644 --- a/stripe/tax/_calculation_line_item_service.py +++ b/stripe/tax/_calculation_line_item_service.py @@ -44,7 +44,6 @@ def list( "/v1/tax/calculations/{calculation}/line_items".format( calculation=sanitize_id(calculation), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -67,7 +66,6 @@ async def list_async( "/v1/tax/calculations/{calculation}/line_items".format( calculation=sanitize_id(calculation), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/tax/_calculation_service.py b/stripe/tax/_calculation_service.py index e83b6cc3e..cc367fc97 100644 --- a/stripe/tax/_calculation_service.py +++ b/stripe/tax/_calculation_service.py @@ -294,7 +294,6 @@ def retrieve( "/v1/tax/calculations/{calculation}".format( calculation=sanitize_id(calculation), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -317,7 +316,6 @@ async def retrieve_async( "/v1/tax/calculations/{calculation}".format( calculation=sanitize_id(calculation), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -337,7 +335,6 @@ def create( self._request( "post", "/v1/tax/calculations", - api_mode="V1", base_address="api", params=params, options=options, @@ -357,7 +354,6 @@ async def create_async( await self._request_async( "post", "/v1/tax/calculations", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/tax/_form_service.py b/stripe/tax/_form_service.py index d65c0343d..415212b45 100644 --- a/stripe/tax/_form_service.py +++ b/stripe/tax/_form_service.py @@ -69,7 +69,6 @@ def list( self._request( "get", "/v1/tax/forms", - api_mode="V1", base_address="api", params=params, options=options, @@ -87,7 +86,6 @@ async def list_async( await self._request_async( "get", "/v1/tax/forms", - api_mode="V1", base_address="api", params=params, options=options, @@ -108,7 +106,6 @@ def retrieve( self._request( "get", "/v1/tax/forms/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -129,7 +126,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/tax/forms/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -150,7 +146,6 @@ def pdf( self._request_stream( "get", "/v1/tax/forms/{id}/pdf".format(id=sanitize_id(id)), - api_mode="V1", base_address="files", params=params, options=options, @@ -171,7 +166,6 @@ async def pdf_async( await self._request_stream_async( "get", "/v1/tax/forms/{id}/pdf".format(id=sanitize_id(id)), - api_mode="V1", base_address="files", params=params, options=options, diff --git a/stripe/tax/_registration_service.py b/stripe/tax/_registration_service.py index 538f57e8f..1f9b4ba93 100644 --- a/stripe/tax/_registration_service.py +++ b/stripe/tax/_registration_service.py @@ -1023,7 +1023,6 @@ def list( self._request( "get", "/v1/tax/registrations", - api_mode="V1", base_address="api", params=params, options=options, @@ -1043,7 +1042,6 @@ async def list_async( await self._request_async( "get", "/v1/tax/registrations", - api_mode="V1", base_address="api", params=params, options=options, @@ -1063,7 +1061,6 @@ def create( self._request( "post", "/v1/tax/registrations", - api_mode="V1", base_address="api", params=params, options=options, @@ -1083,7 +1080,6 @@ async def create_async( await self._request_async( "post", "/v1/tax/registrations", - api_mode="V1", base_address="api", params=params, options=options, @@ -1104,7 +1100,6 @@ def retrieve( self._request( "get", "/v1/tax/registrations/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -1125,7 +1120,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/tax/registrations/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -1148,7 +1142,6 @@ def update( self._request( "post", "/v1/tax/registrations/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -1171,7 +1164,6 @@ async def update_async( await self._request_async( "post", "/v1/tax/registrations/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/tax/_settings_service.py b/stripe/tax/_settings_service.py index 63903ccff..84e04a55c 100644 --- a/stripe/tax/_settings_service.py +++ b/stripe/tax/_settings_service.py @@ -85,7 +85,6 @@ def retrieve( self._request( "get", "/v1/tax/settings", - api_mode="V1", base_address="api", params=params, options=options, @@ -105,7 +104,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/tax/settings", - api_mode="V1", base_address="api", params=params, options=options, @@ -125,7 +123,6 @@ def update( self._request( "post", "/v1/tax/settings", - api_mode="V1", base_address="api", params=params, options=options, @@ -145,7 +142,6 @@ async def update_async( await self._request_async( "post", "/v1/tax/settings", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/tax/_transaction_line_item_service.py b/stripe/tax/_transaction_line_item_service.py index 2a50b2fd5..be9927b8d 100644 --- a/stripe/tax/_transaction_line_item_service.py +++ b/stripe/tax/_transaction_line_item_service.py @@ -44,7 +44,6 @@ def list( "/v1/tax/transactions/{transaction}/line_items".format( transaction=sanitize_id(transaction), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -67,7 +66,6 @@ async def list_async( "/v1/tax/transactions/{transaction}/line_items".format( transaction=sanitize_id(transaction), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/tax/_transaction_service.py b/stripe/tax/_transaction_service.py index d76151cb0..3ccc0a339 100644 --- a/stripe/tax/_transaction_service.py +++ b/stripe/tax/_transaction_service.py @@ -134,7 +134,6 @@ def retrieve( "/v1/tax/transactions/{transaction}".format( transaction=sanitize_id(transaction), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -157,7 +156,6 @@ async def retrieve_async( "/v1/tax/transactions/{transaction}".format( transaction=sanitize_id(transaction), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -177,7 +175,6 @@ def create_from_calculation( self._request( "post", "/v1/tax/transactions/create_from_calculation", - api_mode="V1", base_address="api", params=params, options=options, @@ -197,7 +194,6 @@ async def create_from_calculation_async( await self._request_async( "post", "/v1/tax/transactions/create_from_calculation", - api_mode="V1", base_address="api", params=params, options=options, @@ -217,7 +213,6 @@ def create_reversal( self._request( "post", "/v1/tax/transactions/create_reversal", - api_mode="V1", base_address="api", params=params, options=options, @@ -237,7 +232,6 @@ async def create_reversal_async( await self._request_async( "post", "/v1/tax/transactions/create_reversal", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/terminal/_configuration_service.py b/stripe/terminal/_configuration_service.py index 002f55fb5..a47d12507 100644 --- a/stripe/terminal/_configuration_service.py +++ b/stripe/terminal/_configuration_service.py @@ -723,7 +723,6 @@ def delete( "/v1/terminal/configurations/{configuration}".format( configuration=sanitize_id(configuration), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -746,7 +745,6 @@ async def delete_async( "/v1/terminal/configurations/{configuration}".format( configuration=sanitize_id(configuration), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -769,7 +767,6 @@ def retrieve( "/v1/terminal/configurations/{configuration}".format( configuration=sanitize_id(configuration), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -792,7 +789,6 @@ async def retrieve_async( "/v1/terminal/configurations/{configuration}".format( configuration=sanitize_id(configuration), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -815,7 +811,6 @@ def update( "/v1/terminal/configurations/{configuration}".format( configuration=sanitize_id(configuration), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -838,7 +833,6 @@ async def update_async( "/v1/terminal/configurations/{configuration}".format( configuration=sanitize_id(configuration), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -858,7 +852,6 @@ def list( self._request( "get", "/v1/terminal/configurations", - api_mode="V1", base_address="api", params=params, options=options, @@ -878,7 +871,6 @@ async def list_async( await self._request_async( "get", "/v1/terminal/configurations", - api_mode="V1", base_address="api", params=params, options=options, @@ -898,7 +890,6 @@ def create( self._request( "post", "/v1/terminal/configurations", - api_mode="V1", base_address="api", params=params, options=options, @@ -918,7 +909,6 @@ async def create_async( await self._request_async( "post", "/v1/terminal/configurations", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/terminal/_connection_token_service.py b/stripe/terminal/_connection_token_service.py index 536ca8795..0a2db379c 100644 --- a/stripe/terminal/_connection_token_service.py +++ b/stripe/terminal/_connection_token_service.py @@ -31,7 +31,6 @@ def create( self._request( "post", "/v1/terminal/connection_tokens", - api_mode="V1", base_address="api", params=params, options=options, @@ -51,7 +50,6 @@ async def create_async( await self._request_async( "post", "/v1/terminal/connection_tokens", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/terminal/_location_service.py b/stripe/terminal/_location_service.py index 3da89f547..427c395f7 100644 --- a/stripe/terminal/_location_service.py +++ b/stripe/terminal/_location_service.py @@ -149,7 +149,6 @@ def delete( "/v1/terminal/locations/{location}".format( location=sanitize_id(location), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -172,7 +171,6 @@ async def delete_async( "/v1/terminal/locations/{location}".format( location=sanitize_id(location), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -195,7 +193,6 @@ def retrieve( "/v1/terminal/locations/{location}".format( location=sanitize_id(location), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -218,7 +215,6 @@ async def retrieve_async( "/v1/terminal/locations/{location}".format( location=sanitize_id(location), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -241,7 +237,6 @@ def update( "/v1/terminal/locations/{location}".format( location=sanitize_id(location), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -264,7 +259,6 @@ async def update_async( "/v1/terminal/locations/{location}".format( location=sanitize_id(location), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -284,7 +278,6 @@ def list( self._request( "get", "/v1/terminal/locations", - api_mode="V1", base_address="api", params=params, options=options, @@ -304,7 +297,6 @@ async def list_async( await self._request_async( "get", "/v1/terminal/locations", - api_mode="V1", base_address="api", params=params, options=options, @@ -325,7 +317,6 @@ def create( self._request( "post", "/v1/terminal/locations", - api_mode="V1", base_address="api", params=params, options=options, @@ -346,7 +337,6 @@ async def create_async( await self._request_async( "post", "/v1/terminal/locations", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/terminal/_reader_collected_data_service.py b/stripe/terminal/_reader_collected_data_service.py index 9da52755b..c4ab111a6 100644 --- a/stripe/terminal/_reader_collected_data_service.py +++ b/stripe/terminal/_reader_collected_data_service.py @@ -31,7 +31,6 @@ def retrieve( "/v1/terminal/reader_collected_data/{reader_collected_data}".format( reader_collected_data=sanitize_id(reader_collected_data), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -54,7 +53,6 @@ async def retrieve_async( "/v1/terminal/reader_collected_data/{reader_collected_data}".format( reader_collected_data=sanitize_id(reader_collected_data), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/terminal/_reader_service.py b/stripe/terminal/_reader_service.py index 09c9a70fb..6ffc54f38 100644 --- a/stripe/terminal/_reader_service.py +++ b/stripe/terminal/_reader_service.py @@ -412,7 +412,6 @@ def delete( "/v1/terminal/readers/{reader}".format( reader=sanitize_id(reader), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -435,7 +434,6 @@ async def delete_async( "/v1/terminal/readers/{reader}".format( reader=sanitize_id(reader), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -458,7 +456,6 @@ def retrieve( "/v1/terminal/readers/{reader}".format( reader=sanitize_id(reader), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -481,7 +478,6 @@ async def retrieve_async( "/v1/terminal/readers/{reader}".format( reader=sanitize_id(reader), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -504,7 +500,6 @@ def update( "/v1/terminal/readers/{reader}".format( reader=sanitize_id(reader), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -527,7 +522,6 @@ async def update_async( "/v1/terminal/readers/{reader}".format( reader=sanitize_id(reader), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -547,7 +541,6 @@ def list( self._request( "get", "/v1/terminal/readers", - api_mode="V1", base_address="api", params=params, options=options, @@ -567,7 +560,6 @@ async def list_async( await self._request_async( "get", "/v1/terminal/readers", - api_mode="V1", base_address="api", params=params, options=options, @@ -587,7 +579,6 @@ def create( self._request( "post", "/v1/terminal/readers", - api_mode="V1", base_address="api", params=params, options=options, @@ -607,7 +598,6 @@ async def create_async( await self._request_async( "post", "/v1/terminal/readers", - api_mode="V1", base_address="api", params=params, options=options, @@ -630,7 +620,6 @@ def cancel_action( "/v1/terminal/readers/{reader}/cancel_action".format( reader=sanitize_id(reader), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -653,7 +642,6 @@ async def cancel_action_async( "/v1/terminal/readers/{reader}/cancel_action".format( reader=sanitize_id(reader), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -676,7 +664,6 @@ def collect_inputs( "/v1/terminal/readers/{reader}/collect_inputs".format( reader=sanitize_id(reader), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -699,7 +686,6 @@ async def collect_inputs_async( "/v1/terminal/readers/{reader}/collect_inputs".format( reader=sanitize_id(reader), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -722,7 +708,6 @@ def collect_payment_method( "/v1/terminal/readers/{reader}/collect_payment_method".format( reader=sanitize_id(reader), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -745,7 +730,6 @@ async def collect_payment_method_async( "/v1/terminal/readers/{reader}/collect_payment_method".format( reader=sanitize_id(reader), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -768,7 +752,6 @@ def confirm_payment_intent( "/v1/terminal/readers/{reader}/confirm_payment_intent".format( reader=sanitize_id(reader), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -791,7 +774,6 @@ async def confirm_payment_intent_async( "/v1/terminal/readers/{reader}/confirm_payment_intent".format( reader=sanitize_id(reader), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -814,7 +796,6 @@ def process_payment_intent( "/v1/terminal/readers/{reader}/process_payment_intent".format( reader=sanitize_id(reader), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -837,7 +818,6 @@ async def process_payment_intent_async( "/v1/terminal/readers/{reader}/process_payment_intent".format( reader=sanitize_id(reader), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -860,7 +840,6 @@ def process_setup_intent( "/v1/terminal/readers/{reader}/process_setup_intent".format( reader=sanitize_id(reader), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -883,7 +862,6 @@ async def process_setup_intent_async( "/v1/terminal/readers/{reader}/process_setup_intent".format( reader=sanitize_id(reader), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -906,7 +884,6 @@ def refund_payment( "/v1/terminal/readers/{reader}/refund_payment".format( reader=sanitize_id(reader), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -929,7 +906,6 @@ async def refund_payment_async( "/v1/terminal/readers/{reader}/refund_payment".format( reader=sanitize_id(reader), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -952,7 +928,6 @@ def set_reader_display( "/v1/terminal/readers/{reader}/set_reader_display".format( reader=sanitize_id(reader), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -975,7 +950,6 @@ async def set_reader_display_async( "/v1/terminal/readers/{reader}/set_reader_display".format( reader=sanitize_id(reader), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/test_helpers/_confirmation_token_service.py b/stripe/test_helpers/_confirmation_token_service.py index 4a7d2ee13..f44e68336 100644 --- a/stripe/test_helpers/_confirmation_token_service.py +++ b/stripe/test_helpers/_confirmation_token_service.py @@ -791,7 +791,6 @@ def create( self._request( "post", "/v1/test_helpers/confirmation_tokens", - api_mode="V1", base_address="api", params=params, options=options, @@ -811,7 +810,6 @@ async def create_async( await self._request_async( "post", "/v1/test_helpers/confirmation_tokens", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/test_helpers/_customer_service.py b/stripe/test_helpers/_customer_service.py index f9870538b..fc4707179 100644 --- a/stripe/test_helpers/_customer_service.py +++ b/stripe/test_helpers/_customer_service.py @@ -45,7 +45,6 @@ def fund_cash_balance( "/v1/test_helpers/customers/{customer}/fund_cash_balance".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -68,7 +67,6 @@ async def fund_cash_balance_async( "/v1/test_helpers/customers/{customer}/fund_cash_balance".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/test_helpers/_refund_service.py b/stripe/test_helpers/_refund_service.py index 27d0a885f..0e4d2dd1a 100644 --- a/stripe/test_helpers/_refund_service.py +++ b/stripe/test_helpers/_refund_service.py @@ -31,7 +31,6 @@ def expire( "/v1/test_helpers/refunds/{refund}/expire".format( refund=sanitize_id(refund), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -54,7 +53,6 @@ async def expire_async( "/v1/test_helpers/refunds/{refund}/expire".format( refund=sanitize_id(refund), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/test_helpers/_test_clock_service.py b/stripe/test_helpers/_test_clock_service.py index 72e98b2dd..0584c0a4d 100644 --- a/stripe/test_helpers/_test_clock_service.py +++ b/stripe/test_helpers/_test_clock_service.py @@ -77,7 +77,6 @@ def delete( "/v1/test_helpers/test_clocks/{test_clock}".format( test_clock=sanitize_id(test_clock), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -100,7 +99,6 @@ async def delete_async( "/v1/test_helpers/test_clocks/{test_clock}".format( test_clock=sanitize_id(test_clock), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -123,7 +121,6 @@ def retrieve( "/v1/test_helpers/test_clocks/{test_clock}".format( test_clock=sanitize_id(test_clock), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -146,7 +143,6 @@ async def retrieve_async( "/v1/test_helpers/test_clocks/{test_clock}".format( test_clock=sanitize_id(test_clock), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -166,7 +162,6 @@ def list( self._request( "get", "/v1/test_helpers/test_clocks", - api_mode="V1", base_address="api", params=params, options=options, @@ -186,7 +181,6 @@ async def list_async( await self._request_async( "get", "/v1/test_helpers/test_clocks", - api_mode="V1", base_address="api", params=params, options=options, @@ -206,7 +200,6 @@ def create( self._request( "post", "/v1/test_helpers/test_clocks", - api_mode="V1", base_address="api", params=params, options=options, @@ -226,7 +219,6 @@ async def create_async( await self._request_async( "post", "/v1/test_helpers/test_clocks", - api_mode="V1", base_address="api", params=params, options=options, @@ -249,7 +241,6 @@ def advance( "/v1/test_helpers/test_clocks/{test_clock}/advance".format( test_clock=sanitize_id(test_clock), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -272,7 +263,6 @@ async def advance_async( "/v1/test_helpers/test_clocks/{test_clock}/advance".format( test_clock=sanitize_id(test_clock), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/test_helpers/issuing/_authorization_service.py b/stripe/test_helpers/issuing/_authorization_service.py index 7279e4d19..ff3ed6b0e 100644 --- a/stripe/test_helpers/issuing/_authorization_service.py +++ b/stripe/test_helpers/issuing/_authorization_service.py @@ -1068,7 +1068,6 @@ def create( self._request( "post", "/v1/test_helpers/issuing/authorizations", - api_mode="V1", base_address="api", params=params, options=options, @@ -1088,7 +1087,6 @@ async def create_async( await self._request_async( "post", "/v1/test_helpers/issuing/authorizations", - api_mode="V1", base_address="api", params=params, options=options, @@ -1111,7 +1109,6 @@ def capture( "/v1/test_helpers/issuing/authorizations/{authorization}/capture".format( authorization=sanitize_id(authorization), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1134,7 +1131,6 @@ async def capture_async( "/v1/test_helpers/issuing/authorizations/{authorization}/capture".format( authorization=sanitize_id(authorization), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1157,7 +1153,6 @@ def expire( "/v1/test_helpers/issuing/authorizations/{authorization}/expire".format( authorization=sanitize_id(authorization), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1180,7 +1175,6 @@ async def expire_async( "/v1/test_helpers/issuing/authorizations/{authorization}/expire".format( authorization=sanitize_id(authorization), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1203,7 +1197,6 @@ def finalize_amount( "/v1/test_helpers/issuing/authorizations/{authorization}/finalize_amount".format( authorization=sanitize_id(authorization), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1226,7 +1219,6 @@ async def finalize_amount_async( "/v1/test_helpers/issuing/authorizations/{authorization}/finalize_amount".format( authorization=sanitize_id(authorization), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1249,7 +1241,6 @@ def increment( "/v1/test_helpers/issuing/authorizations/{authorization}/increment".format( authorization=sanitize_id(authorization), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1272,7 +1263,6 @@ async def increment_async( "/v1/test_helpers/issuing/authorizations/{authorization}/increment".format( authorization=sanitize_id(authorization), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1295,7 +1285,6 @@ def reverse( "/v1/test_helpers/issuing/authorizations/{authorization}/reverse".format( authorization=sanitize_id(authorization), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1318,7 +1307,6 @@ async def reverse_async( "/v1/test_helpers/issuing/authorizations/{authorization}/reverse".format( authorization=sanitize_id(authorization), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/test_helpers/issuing/_card_service.py b/stripe/test_helpers/issuing/_card_service.py index 51b742f65..5add490c4 100644 --- a/stripe/test_helpers/issuing/_card_service.py +++ b/stripe/test_helpers/issuing/_card_service.py @@ -49,7 +49,6 @@ def deliver_card( "/v1/test_helpers/issuing/cards/{card}/shipping/deliver".format( card=sanitize_id(card), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -72,7 +71,6 @@ async def deliver_card_async( "/v1/test_helpers/issuing/cards/{card}/shipping/deliver".format( card=sanitize_id(card), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -95,7 +93,6 @@ def fail_card( "/v1/test_helpers/issuing/cards/{card}/shipping/fail".format( card=sanitize_id(card), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -118,7 +115,6 @@ async def fail_card_async( "/v1/test_helpers/issuing/cards/{card}/shipping/fail".format( card=sanitize_id(card), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -141,7 +137,6 @@ def return_card( "/v1/test_helpers/issuing/cards/{card}/shipping/return".format( card=sanitize_id(card), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -164,7 +159,6 @@ async def return_card_async( "/v1/test_helpers/issuing/cards/{card}/shipping/return".format( card=sanitize_id(card), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -187,7 +181,6 @@ def ship_card( "/v1/test_helpers/issuing/cards/{card}/shipping/ship".format( card=sanitize_id(card), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -210,7 +203,6 @@ async def ship_card_async( "/v1/test_helpers/issuing/cards/{card}/shipping/ship".format( card=sanitize_id(card), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/test_helpers/issuing/_personalization_design_service.py b/stripe/test_helpers/issuing/_personalization_design_service.py index 671952b57..e430d007a 100644 --- a/stripe/test_helpers/issuing/_personalization_design_service.py +++ b/stripe/test_helpers/issuing/_personalization_design_service.py @@ -84,7 +84,6 @@ def activate( "/v1/test_helpers/issuing/personalization_designs/{personalization_design}/activate".format( personalization_design=sanitize_id(personalization_design), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -107,7 +106,6 @@ async def activate_async( "/v1/test_helpers/issuing/personalization_designs/{personalization_design}/activate".format( personalization_design=sanitize_id(personalization_design), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -130,7 +128,6 @@ def deactivate( "/v1/test_helpers/issuing/personalization_designs/{personalization_design}/deactivate".format( personalization_design=sanitize_id(personalization_design), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -153,7 +150,6 @@ async def deactivate_async( "/v1/test_helpers/issuing/personalization_designs/{personalization_design}/deactivate".format( personalization_design=sanitize_id(personalization_design), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -176,7 +172,6 @@ def reject( "/v1/test_helpers/issuing/personalization_designs/{personalization_design}/reject".format( personalization_design=sanitize_id(personalization_design), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -199,7 +194,6 @@ async def reject_async( "/v1/test_helpers/issuing/personalization_designs/{personalization_design}/reject".format( personalization_design=sanitize_id(personalization_design), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/test_helpers/issuing/_transaction_service.py b/stripe/test_helpers/issuing/_transaction_service.py index a585ce908..bd92e04b7 100644 --- a/stripe/test_helpers/issuing/_transaction_service.py +++ b/stripe/test_helpers/issuing/_transaction_service.py @@ -1267,7 +1267,6 @@ def refund( "/v1/test_helpers/issuing/transactions/{transaction}/refund".format( transaction=sanitize_id(transaction), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1290,7 +1289,6 @@ async def refund_async( "/v1/test_helpers/issuing/transactions/{transaction}/refund".format( transaction=sanitize_id(transaction), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1310,7 +1308,6 @@ def create_force_capture( self._request( "post", "/v1/test_helpers/issuing/transactions/create_force_capture", - api_mode="V1", base_address="api", params=params, options=options, @@ -1330,7 +1327,6 @@ async def create_force_capture_async( await self._request_async( "post", "/v1/test_helpers/issuing/transactions/create_force_capture", - api_mode="V1", base_address="api", params=params, options=options, @@ -1350,7 +1346,6 @@ def create_unlinked_refund( self._request( "post", "/v1/test_helpers/issuing/transactions/create_unlinked_refund", - api_mode="V1", base_address="api", params=params, options=options, @@ -1370,7 +1365,6 @@ async def create_unlinked_refund_async( await self._request_async( "post", "/v1/test_helpers/issuing/transactions/create_unlinked_refund", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/test_helpers/terminal/_reader_service.py b/stripe/test_helpers/terminal/_reader_service.py index 04c64468a..b438dd213 100644 --- a/stripe/test_helpers/terminal/_reader_service.py +++ b/stripe/test_helpers/terminal/_reader_service.py @@ -63,7 +63,6 @@ def present_payment_method( "/v1/test_helpers/terminal/readers/{reader}/present_payment_method".format( reader=sanitize_id(reader), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -86,7 +85,6 @@ async def present_payment_method_async( "/v1/test_helpers/terminal/readers/{reader}/present_payment_method".format( reader=sanitize_id(reader), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/test_helpers/treasury/_inbound_transfer_service.py b/stripe/test_helpers/treasury/_inbound_transfer_service.py index 16b16359d..60dcd7b90 100644 --- a/stripe/test_helpers/treasury/_inbound_transfer_service.py +++ b/stripe/test_helpers/treasury/_inbound_transfer_service.py @@ -71,7 +71,6 @@ def fail( "/v1/test_helpers/treasury/inbound_transfers/{id}/fail".format( id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -94,7 +93,6 @@ async def fail_async( "/v1/test_helpers/treasury/inbound_transfers/{id}/fail".format( id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -117,7 +115,6 @@ def return_inbound_transfer( "/v1/test_helpers/treasury/inbound_transfers/{id}/return".format( id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -140,7 +137,6 @@ async def return_inbound_transfer_async( "/v1/test_helpers/treasury/inbound_transfers/{id}/return".format( id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -163,7 +159,6 @@ def succeed( "/v1/test_helpers/treasury/inbound_transfers/{id}/succeed".format( id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -186,7 +181,6 @@ async def succeed_async( "/v1/test_helpers/treasury/inbound_transfers/{id}/succeed".format( id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/test_helpers/treasury/_outbound_payment_service.py b/stripe/test_helpers/treasury/_outbound_payment_service.py index 8299fc12a..33aa4fff5 100644 --- a/stripe/test_helpers/treasury/_outbound_payment_service.py +++ b/stripe/test_helpers/treasury/_outbound_payment_service.py @@ -116,7 +116,6 @@ def update( "/v1/test_helpers/treasury/outbound_payments/{id}".format( id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -139,7 +138,6 @@ async def update_async( "/v1/test_helpers/treasury/outbound_payments/{id}".format( id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -162,7 +160,6 @@ def fail( "/v1/test_helpers/treasury/outbound_payments/{id}/fail".format( id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -185,7 +182,6 @@ async def fail_async( "/v1/test_helpers/treasury/outbound_payments/{id}/fail".format( id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -208,7 +204,6 @@ def post( "/v1/test_helpers/treasury/outbound_payments/{id}/post".format( id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -231,7 +226,6 @@ async def post_async( "/v1/test_helpers/treasury/outbound_payments/{id}/post".format( id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -254,7 +248,6 @@ def return_outbound_payment( "/v1/test_helpers/treasury/outbound_payments/{id}/return".format( id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -277,7 +270,6 @@ async def return_outbound_payment_async( "/v1/test_helpers/treasury/outbound_payments/{id}/return".format( id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/test_helpers/treasury/_outbound_transfer_service.py b/stripe/test_helpers/treasury/_outbound_transfer_service.py index 185038a5b..b6e48ccf6 100644 --- a/stripe/test_helpers/treasury/_outbound_transfer_service.py +++ b/stripe/test_helpers/treasury/_outbound_transfer_service.py @@ -116,7 +116,6 @@ def update( "/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}".format( outbound_transfer=sanitize_id(outbound_transfer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -139,7 +138,6 @@ async def update_async( "/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}".format( outbound_transfer=sanitize_id(outbound_transfer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -162,7 +160,6 @@ def fail( "/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/fail".format( outbound_transfer=sanitize_id(outbound_transfer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -185,7 +182,6 @@ async def fail_async( "/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/fail".format( outbound_transfer=sanitize_id(outbound_transfer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -208,7 +204,6 @@ def post( "/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/post".format( outbound_transfer=sanitize_id(outbound_transfer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -231,7 +226,6 @@ async def post_async( "/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/post".format( outbound_transfer=sanitize_id(outbound_transfer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -254,7 +248,6 @@ def return_outbound_transfer( "/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/return".format( outbound_transfer=sanitize_id(outbound_transfer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -277,7 +270,6 @@ async def return_outbound_transfer_async( "/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/return".format( outbound_transfer=sanitize_id(outbound_transfer), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/test_helpers/treasury/_received_credit_service.py b/stripe/test_helpers/treasury/_received_credit_service.py index e55e48e9b..efe30a58d 100644 --- a/stripe/test_helpers/treasury/_received_credit_service.py +++ b/stripe/test_helpers/treasury/_received_credit_service.py @@ -101,7 +101,6 @@ def create( self._request( "post", "/v1/test_helpers/treasury/received_credits", - api_mode="V1", base_address="api", params=params, options=options, @@ -121,7 +120,6 @@ async def create_async( await self._request_async( "post", "/v1/test_helpers/treasury/received_credits", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/test_helpers/treasury/_received_debit_service.py b/stripe/test_helpers/treasury/_received_debit_service.py index dff1db468..d06ed2dca 100644 --- a/stripe/test_helpers/treasury/_received_debit_service.py +++ b/stripe/test_helpers/treasury/_received_debit_service.py @@ -101,7 +101,6 @@ def create( self._request( "post", "/v1/test_helpers/treasury/received_debits", - api_mode="V1", base_address="api", params=params, options=options, @@ -121,7 +120,6 @@ async def create_async( await self._request_async( "post", "/v1/test_helpers/treasury/received_debits", - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/treasury/_credit_reversal_service.py b/stripe/treasury/_credit_reversal_service.py index 3ae920b0f..316da77b6 100644 --- a/stripe/treasury/_credit_reversal_service.py +++ b/stripe/treasury/_credit_reversal_service.py @@ -73,7 +73,6 @@ def list( self._request( "get", "/v1/treasury/credit_reversals", - api_mode="V1", base_address="api", params=params, options=options, @@ -93,7 +92,6 @@ async def list_async( await self._request_async( "get", "/v1/treasury/credit_reversals", - api_mode="V1", base_address="api", params=params, options=options, @@ -113,7 +111,6 @@ def create( self._request( "post", "/v1/treasury/credit_reversals", - api_mode="V1", base_address="api", params=params, options=options, @@ -133,7 +130,6 @@ async def create_async( await self._request_async( "post", "/v1/treasury/credit_reversals", - api_mode="V1", base_address="api", params=params, options=options, @@ -156,7 +152,6 @@ def retrieve( "/v1/treasury/credit_reversals/{credit_reversal}".format( credit_reversal=sanitize_id(credit_reversal), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -179,7 +174,6 @@ async def retrieve_async( "/v1/treasury/credit_reversals/{credit_reversal}".format( credit_reversal=sanitize_id(credit_reversal), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/treasury/_debit_reversal_service.py b/stripe/treasury/_debit_reversal_service.py index b8f54471b..a5037bf11 100644 --- a/stripe/treasury/_debit_reversal_service.py +++ b/stripe/treasury/_debit_reversal_service.py @@ -77,7 +77,6 @@ def list( self._request( "get", "/v1/treasury/debit_reversals", - api_mode="V1", base_address="api", params=params, options=options, @@ -97,7 +96,6 @@ async def list_async( await self._request_async( "get", "/v1/treasury/debit_reversals", - api_mode="V1", base_address="api", params=params, options=options, @@ -117,7 +115,6 @@ def create( self._request( "post", "/v1/treasury/debit_reversals", - api_mode="V1", base_address="api", params=params, options=options, @@ -137,7 +134,6 @@ async def create_async( await self._request_async( "post", "/v1/treasury/debit_reversals", - api_mode="V1", base_address="api", params=params, options=options, @@ -160,7 +156,6 @@ def retrieve( "/v1/treasury/debit_reversals/{debit_reversal}".format( debit_reversal=sanitize_id(debit_reversal), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -183,7 +178,6 @@ async def retrieve_async( "/v1/treasury/debit_reversals/{debit_reversal}".format( debit_reversal=sanitize_id(debit_reversal), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/treasury/_financial_account_features_service.py b/stripe/treasury/_financial_account_features_service.py index a165eb7f7..95ffff587 100644 --- a/stripe/treasury/_financial_account_features_service.py +++ b/stripe/treasury/_financial_account_features_service.py @@ -179,7 +179,6 @@ def update( "/v1/treasury/financial_accounts/{financial_account}/features".format( financial_account=sanitize_id(financial_account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -202,7 +201,6 @@ async def update_async( "/v1/treasury/financial_accounts/{financial_account}/features".format( financial_account=sanitize_id(financial_account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -225,7 +223,6 @@ def retrieve( "/v1/treasury/financial_accounts/{financial_account}/features".format( financial_account=sanitize_id(financial_account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -248,7 +245,6 @@ async def retrieve_async( "/v1/treasury/financial_accounts/{financial_account}/features".format( financial_account=sanitize_id(financial_account), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/treasury/_financial_account_service.py b/stripe/treasury/_financial_account_service.py index 2095e2c68..2450b3a9a 100644 --- a/stripe/treasury/_financial_account_service.py +++ b/stripe/treasury/_financial_account_service.py @@ -432,7 +432,6 @@ def list( self._request( "get", "/v1/treasury/financial_accounts", - api_mode="V1", base_address="api", params=params, options=options, @@ -452,7 +451,6 @@ async def list_async( await self._request_async( "get", "/v1/treasury/financial_accounts", - api_mode="V1", base_address="api", params=params, options=options, @@ -472,7 +470,6 @@ def create( self._request( "post", "/v1/treasury/financial_accounts", - api_mode="V1", base_address="api", params=params, options=options, @@ -492,7 +489,6 @@ async def create_async( await self._request_async( "post", "/v1/treasury/financial_accounts", - api_mode="V1", base_address="api", params=params, options=options, @@ -515,7 +511,6 @@ def retrieve( "/v1/treasury/financial_accounts/{financial_account}".format( financial_account=sanitize_id(financial_account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -538,7 +533,6 @@ async def retrieve_async( "/v1/treasury/financial_accounts/{financial_account}".format( financial_account=sanitize_id(financial_account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -561,7 +555,6 @@ def update( "/v1/treasury/financial_accounts/{financial_account}".format( financial_account=sanitize_id(financial_account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -584,7 +577,6 @@ async def update_async( "/v1/treasury/financial_accounts/{financial_account}".format( financial_account=sanitize_id(financial_account), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/treasury/_inbound_transfer_service.py b/stripe/treasury/_inbound_transfer_service.py index 40c7114b3..cf4e166e2 100644 --- a/stripe/treasury/_inbound_transfer_service.py +++ b/stripe/treasury/_inbound_transfer_service.py @@ -97,7 +97,6 @@ def list( self._request( "get", "/v1/treasury/inbound_transfers", - api_mode="V1", base_address="api", params=params, options=options, @@ -117,7 +116,6 @@ async def list_async( await self._request_async( "get", "/v1/treasury/inbound_transfers", - api_mode="V1", base_address="api", params=params, options=options, @@ -137,7 +135,6 @@ def create( self._request( "post", "/v1/treasury/inbound_transfers", - api_mode="V1", base_address="api", params=params, options=options, @@ -157,7 +154,6 @@ async def create_async( await self._request_async( "post", "/v1/treasury/inbound_transfers", - api_mode="V1", base_address="api", params=params, options=options, @@ -180,7 +176,6 @@ def retrieve( "/v1/treasury/inbound_transfers/{id}".format( id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -203,7 +198,6 @@ async def retrieve_async( "/v1/treasury/inbound_transfers/{id}".format( id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -226,7 +220,6 @@ def cancel( "/v1/treasury/inbound_transfers/{inbound_transfer}/cancel".format( inbound_transfer=sanitize_id(inbound_transfer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -249,7 +242,6 @@ async def cancel_async( "/v1/treasury/inbound_transfers/{inbound_transfer}/cancel".format( inbound_transfer=sanitize_id(inbound_transfer), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/treasury/_outbound_payment_service.py b/stripe/treasury/_outbound_payment_service.py index 2a22eb7e2..45305a619 100644 --- a/stripe/treasury/_outbound_payment_service.py +++ b/stripe/treasury/_outbound_payment_service.py @@ -265,7 +265,6 @@ def list( self._request( "get", "/v1/treasury/outbound_payments", - api_mode="V1", base_address="api", params=params, options=options, @@ -285,7 +284,6 @@ async def list_async( await self._request_async( "get", "/v1/treasury/outbound_payments", - api_mode="V1", base_address="api", params=params, options=options, @@ -305,7 +303,6 @@ def create( self._request( "post", "/v1/treasury/outbound_payments", - api_mode="V1", base_address="api", params=params, options=options, @@ -325,7 +322,6 @@ async def create_async( await self._request_async( "post", "/v1/treasury/outbound_payments", - api_mode="V1", base_address="api", params=params, options=options, @@ -348,7 +344,6 @@ def retrieve( "/v1/treasury/outbound_payments/{id}".format( id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -371,7 +366,6 @@ async def retrieve_async( "/v1/treasury/outbound_payments/{id}".format( id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -394,7 +388,6 @@ def cancel( "/v1/treasury/outbound_payments/{id}/cancel".format( id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -417,7 +410,6 @@ async def cancel_async( "/v1/treasury/outbound_payments/{id}/cancel".format( id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/treasury/_outbound_transfer_service.py b/stripe/treasury/_outbound_transfer_service.py index 073d6458c..32bd098e3 100644 --- a/stripe/treasury/_outbound_transfer_service.py +++ b/stripe/treasury/_outbound_transfer_service.py @@ -141,7 +141,6 @@ def list( self._request( "get", "/v1/treasury/outbound_transfers", - api_mode="V1", base_address="api", params=params, options=options, @@ -161,7 +160,6 @@ async def list_async( await self._request_async( "get", "/v1/treasury/outbound_transfers", - api_mode="V1", base_address="api", params=params, options=options, @@ -181,7 +179,6 @@ def create( self._request( "post", "/v1/treasury/outbound_transfers", - api_mode="V1", base_address="api", params=params, options=options, @@ -201,7 +198,6 @@ async def create_async( await self._request_async( "post", "/v1/treasury/outbound_transfers", - api_mode="V1", base_address="api", params=params, options=options, @@ -224,7 +220,6 @@ def retrieve( "/v1/treasury/outbound_transfers/{outbound_transfer}".format( outbound_transfer=sanitize_id(outbound_transfer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -247,7 +242,6 @@ async def retrieve_async( "/v1/treasury/outbound_transfers/{outbound_transfer}".format( outbound_transfer=sanitize_id(outbound_transfer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -270,7 +264,6 @@ def cancel( "/v1/treasury/outbound_transfers/{outbound_transfer}/cancel".format( outbound_transfer=sanitize_id(outbound_transfer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -293,7 +286,6 @@ async def cancel_async( "/v1/treasury/outbound_transfers/{outbound_transfer}/cancel".format( outbound_transfer=sanitize_id(outbound_transfer), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/treasury/_received_credit_service.py b/stripe/treasury/_received_credit_service.py index 250b663e4..0644fde0a 100644 --- a/stripe/treasury/_received_credit_service.py +++ b/stripe/treasury/_received_credit_service.py @@ -69,7 +69,6 @@ def list( self._request( "get", "/v1/treasury/received_credits", - api_mode="V1", base_address="api", params=params, options=options, @@ -89,7 +88,6 @@ async def list_async( await self._request_async( "get", "/v1/treasury/received_credits", - api_mode="V1", base_address="api", params=params, options=options, @@ -112,7 +110,6 @@ def retrieve( "/v1/treasury/received_credits/{id}".format( id=sanitize_id(id) ), - api_mode="V1", base_address="api", params=params, options=options, @@ -135,7 +132,6 @@ async def retrieve_async( "/v1/treasury/received_credits/{id}".format( id=sanitize_id(id) ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/treasury/_received_debit_service.py b/stripe/treasury/_received_debit_service.py index e1ef7306d..dd3d55cf6 100644 --- a/stripe/treasury/_received_debit_service.py +++ b/stripe/treasury/_received_debit_service.py @@ -55,7 +55,6 @@ def list( self._request( "get", "/v1/treasury/received_debits", - api_mode="V1", base_address="api", params=params, options=options, @@ -75,7 +74,6 @@ async def list_async( await self._request_async( "get", "/v1/treasury/received_debits", - api_mode="V1", base_address="api", params=params, options=options, @@ -96,7 +94,6 @@ def retrieve( self._request( "get", "/v1/treasury/received_debits/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -117,7 +114,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/treasury/received_debits/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/treasury/_transaction_entry_service.py b/stripe/treasury/_transaction_entry_service.py index 8d720fd40..cd456871b 100644 --- a/stripe/treasury/_transaction_entry_service.py +++ b/stripe/treasury/_transaction_entry_service.py @@ -102,7 +102,6 @@ def list( self._request( "get", "/v1/treasury/transaction_entries", - api_mode="V1", base_address="api", params=params, options=options, @@ -122,7 +121,6 @@ async def list_async( await self._request_async( "get", "/v1/treasury/transaction_entries", - api_mode="V1", base_address="api", params=params, options=options, @@ -145,7 +143,6 @@ def retrieve( "/v1/treasury/transaction_entries/{id}".format( id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -168,7 +165,6 @@ async def retrieve_async( "/v1/treasury/transaction_entries/{id}".format( id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/stripe/treasury/_transaction_service.py b/stripe/treasury/_transaction_service.py index ac91f7fd8..7012cd3d9 100644 --- a/stripe/treasury/_transaction_service.py +++ b/stripe/treasury/_transaction_service.py @@ -113,7 +113,6 @@ def list( self._request( "get", "/v1/treasury/transactions", - api_mode="V1", base_address="api", params=params, options=options, @@ -133,7 +132,6 @@ async def list_async( await self._request_async( "get", "/v1/treasury/transactions", - api_mode="V1", base_address="api", params=params, options=options, @@ -154,7 +152,6 @@ def retrieve( self._request( "get", "/v1/treasury/transactions/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -175,7 +172,6 @@ async def retrieve_async( await self._request_async( "get", "/v1/treasury/transactions/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, diff --git a/tests/test_api_requestor.py b/tests/test_api_requestor.py index 41a5daf44..a0d01c4b1 100644 --- a/tests/test_api_requestor.py +++ b/tests/test_api_requestor.py @@ -8,7 +8,6 @@ import stripe from stripe import util -from stripe._encode import _json_encode_date_callback from stripe._stripe_response import ( StripeStreamResponse, StripeStreamResponseAsync, @@ -159,34 +158,10 @@ def test_param_encoding(self, requestor, http_client_mock): "get", query_string=query_string, rbody="{}", rcode=200 ) - requestor.request( - "get", "", self.ENCODE_INPUTS, base_address="api", api_mode="V1" - ) + requestor.request("get", "", self.ENCODE_INPUTS, base_address="api") http_client_mock.assert_requested("get", query_string=query_string) - def test_param_api_mode_preview(self, requestor, http_client_mock): - http_client_mock.stub_request("post", path=self.valid_path) - - requestor.request( - "post", - self.valid_path, - self.ENCODE_INPUTS, - base_address="api", - api_mode="preview", - ) - - expectation = json.dumps( - self.ENCODE_INPUTS, default=_json_encode_date_callback - ) - - http_client_mock.assert_requested( - "post", - content_type="application/json", - post_data=expectation, - is_json=True, - ) - def test_dictionary_list_encoding(self): params = {"foo": {"0": {"bar": "bat"}}} encoded = list(_api_encode(params)) @@ -242,9 +217,7 @@ def test_url_construction(self, requestor, http_client_mock): rcode=200, ) - requestor.request( - "get", url, params, base_address="api", api_mode="V1" - ) + requestor.request("get", url, params, base_address="api") http_client_mock.assert_requested("get", abs_url=expected) @@ -255,7 +228,7 @@ def test_empty_methods(self, requestor, http_client_mock): ) resp = requestor.request( - meth, self.valid_path, {}, base_address="api", api_mode="V1" + meth, self.valid_path, {}, base_address="api" ) if meth == "post": @@ -279,7 +252,7 @@ async def test_empty_methods_async(self, requestor, http_client_mock): ) resp = await requestor.request_async( - meth, self.valid_path, {}, base_address="api", api_mode="V1" + meth, self.valid_path, {}, base_address="api" ) if meth == "post": @@ -314,7 +287,6 @@ async def async_iter(): self.valid_path, {}, base_address="api", - api_mode="V1", ) if meth == "post": @@ -343,7 +315,6 @@ def test_empty_methods_streaming_response( self.valid_path, {}, base_address="api", - api_mode="V1", ) if meth == "post": @@ -384,7 +355,6 @@ def test_methods_with_params_and_response( self.valid_path, params, base_address="api", - api_mode="V1", ) assert isinstance(resp, StripeObject) @@ -431,7 +401,6 @@ def test_methods_with_params_and_streaming_response( self.valid_path, params, base_address="api", - api_mode="V1", ) assert isinstance(resp, StripeStreamResponse) @@ -458,7 +427,6 @@ def test_uses_headers(self, requestor, http_client_mock): {}, options=request_options, base_address="api", - api_mode="V1", ) http_client_mock.assert_requested("get", extra_headers={"foo": "bar"}) @@ -472,7 +440,6 @@ def test_uses_api_version(self, requestor, http_client_mock): self.valid_path, options=request_options, base_address="api", - api_mode="V1", ) http_client_mock.assert_requested( "get", @@ -493,7 +460,6 @@ def test_prefers_headers_api_version(self, requestor, http_client_mock): {}, options=request_options, base_address="api", - api_mode="V1", ) http_client_mock.assert_requested( "get", @@ -508,9 +474,7 @@ def test_uses_instance_key(self, requestor, http_client_mock): "get", path=self.valid_path, rbody="{}", rcode=200 ) - requestor.request( - "get", self.valid_path, {}, base_address="api", api_mode="V1" - ) + requestor.request("get", self.valid_path, {}, base_address="api") http_client_mock.assert_requested("get", api_key=key) assert requestor.api_key == key @@ -525,9 +489,7 @@ def test_uses_instance_account(self, requestor, http_client_mock): "get", path=self.valid_path, rbody="{}", rcode=200 ) - requestor.request( - "get", self.valid_path, {}, base_address="api", api_mode="V1" - ) + requestor.request("get", self.valid_path, {}, base_address="api") http_client_mock.assert_requested( "get", @@ -578,9 +540,7 @@ def test_uses_app_info(self, requestor, http_client_mock): http_client_mock.stub_request( "get", path=self.valid_path, rbody="{}", rcode=200 ) - requestor.request( - "get", self.valid_path, {}, base_address="api", api_mode="V1" - ) + requestor.request("get", self.valid_path, {}, base_address="api") ua = "Stripe/v1 PythonBindings/%s" % (stripe.VERSION,) ua += " MyAwesomePlugin/1.2.34 (https://myawesomeplugin.info)" @@ -615,9 +575,7 @@ def fail(): mocker.patch("platform.platform", side_effect=fail) - requestor.request( - "get", self.valid_path, {}, {}, base_address="api", api_mode="V1" - ) + requestor.request("get", self.valid_path, {}, {}, base_address="api") last_call = http_client_mock.get_last_call() last_call.assert_method("get") @@ -640,7 +598,6 @@ def test_uses_given_idempotency_key(self, requestor, http_client_mock): {}, options=request_options, base_address="api", - api_mode="V1", ) http_client_mock.assert_requested( @@ -654,9 +611,7 @@ def test_uuid4_idempotency_key_when_not_given( http_client_mock.stub_request( meth, path=self.valid_path, rbody="{}", rcode=200 ) - requestor.request( - meth, self.valid_path, {}, base_address="api", api_mode="V1" - ) + requestor.request(meth, self.valid_path, {}, base_address="api") http_client_mock.assert_requested( meth, idempotency_key=AnyUUID4Matcher(), post_data="" @@ -666,9 +621,7 @@ def test_fails_without_api_key(self, requestor): stripe.api_key = None with pytest.raises(stripe.error.AuthenticationError): - requestor.request( - "get", self.valid_path, {}, base_address="api", api_mode="V1" - ) + requestor.request("get", self.valid_path, {}, base_address="api") def test_invalid_request_error_404(self, requestor, http_client_mock): http_client_mock.stub_request( @@ -676,9 +629,7 @@ def test_invalid_request_error_404(self, requestor, http_client_mock): ) with pytest.raises(stripe.error.InvalidRequestError): - requestor.request( - "get", self.valid_path, {}, base_address="api", api_mode="V1" - ) + requestor.request("get", self.valid_path, {}, base_address="api") def test_invalid_request_error_400(self, requestor, http_client_mock): http_client_mock.stub_request( @@ -686,9 +637,7 @@ def test_invalid_request_error_400(self, requestor, http_client_mock): ) with pytest.raises(stripe.error.InvalidRequestError): - requestor.request( - "get", self.valid_path, {}, base_address="api", api_mode="V1" - ) + requestor.request("get", self.valid_path, {}, base_address="api") def test_idempotency_error(self, requestor, http_client_mock): http_client_mock.stub_request( @@ -699,9 +648,7 @@ def test_idempotency_error(self, requestor, http_client_mock): ) with pytest.raises(stripe.error.IdempotencyError): - requestor.request( - "get", self.valid_path, {}, base_address="api", api_mode="V1" - ) + requestor.request("get", self.valid_path, {}, base_address="api") def test_authentication_error(self, requestor, http_client_mock): http_client_mock.stub_request( @@ -709,9 +656,7 @@ def test_authentication_error(self, requestor, http_client_mock): ) with pytest.raises(stripe.error.AuthenticationError): - requestor.request( - "get", self.valid_path, {}, base_address="api", api_mode="V1" - ) + requestor.request("get", self.valid_path, {}, base_address="api") def test_permissions_error(self, requestor, http_client_mock): http_client_mock.stub_request( @@ -719,9 +664,7 @@ def test_permissions_error(self, requestor, http_client_mock): ) with pytest.raises(stripe.error.PermissionError): - requestor.request( - "get", self.valid_path, {}, base_address="api", api_mode="V1" - ) + requestor.request("get", self.valid_path, {}, base_address="api") def test_card_error(self, requestor, http_client_mock): http_client_mock.stub_request( @@ -732,9 +675,7 @@ def test_card_error(self, requestor, http_client_mock): ) with pytest.raises(stripe.error.CardError) as excinfo: - requestor.request( - "get", self.valid_path, {}, base_address="api", api_mode="V1" - ) + requestor.request("get", self.valid_path, {}, base_address="api") assert excinfo.value.code == "invalid_expiry_year" def test_rate_limit_error(self, requestor, http_client_mock): @@ -743,9 +684,7 @@ def test_rate_limit_error(self, requestor, http_client_mock): ) with pytest.raises(stripe.error.RateLimitError): - requestor.request( - "get", self.valid_path, {}, base_address="api", api_mode="V1" - ) + requestor.request("get", self.valid_path, {}, base_address="api") def test_old_rate_limit_error(self, requestor, http_client_mock): """ @@ -759,9 +698,7 @@ def test_old_rate_limit_error(self, requestor, http_client_mock): ) with pytest.raises(stripe.error.RateLimitError): - requestor.request( - "get", self.valid_path, {}, base_address="api", api_mode="V1" - ) + requestor.request("get", self.valid_path, {}, base_address="api") def test_server_error(self, requestor, http_client_mock): http_client_mock.stub_request( @@ -769,9 +706,7 @@ def test_server_error(self, requestor, http_client_mock): ) with pytest.raises(stripe.error.APIError): - requestor.request( - "get", self.valid_path, {}, base_address="api", api_mode="V1" - ) + requestor.request("get", self.valid_path, {}, base_address="api") def test_invalid_json(self, requestor, http_client_mock): http_client_mock.stub_request( @@ -779,13 +714,11 @@ def test_invalid_json(self, requestor, http_client_mock): ) with pytest.raises(stripe.error.APIError): - requestor.request( - "get", self.valid_path, {}, base_address="api", api_mode="V1" - ) + requestor.request("get", self.valid_path, {}, base_address="api") def test_invalid_method(self, requestor): with pytest.raises(stripe.error.APIConnectionError): - requestor.request("foo", "bar", base_address="api", api_mode="V1") + requestor.request("foo", "bar", base_address="api") def test_oauth_invalid_requestor_error(self, requestor, http_client_mock): http_client_mock.stub_request( @@ -796,9 +729,7 @@ def test_oauth_invalid_requestor_error(self, requestor, http_client_mock): ) with pytest.raises(stripe.oauth_error.InvalidRequestError): - requestor.request( - "get", self.valid_path, {}, base_address="api", api_mode="V1" - ) + requestor.request("get", self.valid_path, {}, base_address="api") def test_invalid_client_error(self, requestor, http_client_mock): http_client_mock.stub_request( @@ -809,9 +740,7 @@ def test_invalid_client_error(self, requestor, http_client_mock): ) with pytest.raises(stripe.oauth_error.InvalidClientError): - requestor.request( - "get", self.valid_path, {}, base_address="api", api_mode="V1" - ) + requestor.request("get", self.valid_path, {}, base_address="api") def test_invalid_grant_error(self, requestor, http_client_mock): http_client_mock.stub_request( @@ -822,9 +751,7 @@ def test_invalid_grant_error(self, requestor, http_client_mock): ) with pytest.raises(stripe.oauth_error.InvalidGrantError): - requestor.request( - "get", self.valid_path, {}, base_address="api", api_mode="V1" - ) + requestor.request("get", self.valid_path, {}, base_address="api") def test_extract_error_from_stream_request_for_bytes( self, requestor, http_client_mock @@ -838,7 +765,7 @@ def test_extract_error_from_stream_request_for_bytes( with pytest.raises(stripe.oauth_error.InvalidGrantError): requestor.request_stream( - "get", self.valid_path, {}, base_address="api", api_mode="V1" + "get", self.valid_path, {}, base_address="api" ) def test_extract_error_from_stream_request_for_response( @@ -856,7 +783,7 @@ def test_extract_error_from_stream_request_for_response( ) with pytest.raises(stripe.oauth_error.InvalidGrantError): requestor.request_stream( - "get", self.valid_path, {}, base_address="api", api_mode="V1" + "get", self.valid_path, {}, base_address="api" ) def test_raw_request_with_file_param(self, requestor, http_client_mock): @@ -874,7 +801,6 @@ def test_raw_request_with_file_param(self, requestor, http_client_mock): params, supplied_headers, base_address="api", - api_mode="V1", ) assert supplied_headers["Content-Type"] == "multipart/form-data" diff --git a/tests/test_stripe_object.py b/tests/test_stripe_object.py index c75b06548..be893167a 100644 --- a/tests/test_stripe_object.py +++ b/tests/test_stripe_object.py @@ -405,7 +405,7 @@ def test_sends_request_with_api_key(self, http_client_mock): path="/foo", ) - obj._request("get", "/foo", base_address="api", api_mode="V1") + obj._request("get", "/foo", base_address="api") http_client_mock.assert_requested( api_key="key", @@ -416,9 +416,7 @@ def test_sends_request_with_api_key(self, http_client_mock): async def test_request_async_succeeds(self, http_client_mock): http_client_mock.stub_request("get", "/foo") obj = stripe.stripe_object.StripeObject("id", "key") - await obj._request_async( - "get", "/foo", base_address="api", api_mode="V1" - ) + await obj._request_async("get", "/foo", base_address="api") http_client_mock.assert_requested( api_key="key", stripe_account=None, @@ -448,7 +446,7 @@ def test_can_update_api_key(self, http_client_mock): ) obj.api_key = "key2" - obj._request("get", "/foo", base_address="api", api_mode="V1") + obj._request("get", "/foo", base_address="api") assert "api_key" not in obj.items()