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 a24f1e788..da1cddd79 100644 --- a/stripe/_account_link_service.py +++ b/stripe/_account_link_service.py @@ -63,7 +63,6 @@ def create( self._request( "post", "/v1/account_links", - api_mode="V1", base_address="api", params=params, options=options, @@ -83,7 +82,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_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 11ccec68e..bf8142bc8 100644 --- a/stripe/_account_service.py +++ b/stripe/_account_service.py @@ -3334,7 +3334,6 @@ def delete( self._request( "delete", "/v1/accounts/{account}".format(account=sanitize_id(account)), - api_mode="V1", base_address="api", params=params, options=options, @@ -3361,7 +3360,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, @@ -3382,7 +3380,6 @@ def retrieve( self._request( "get", "/v1/accounts/{account}".format(account=sanitize_id(account)), - api_mode="V1", base_address="api", params=params, options=options, @@ -3403,7 +3400,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, @@ -3436,7 +3432,6 @@ def update( self._request( "post", "/v1/accounts/{account}".format(account=sanitize_id(account)), - api_mode="V1", base_address="api", params=params, options=options, @@ -3469,7 +3464,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, @@ -3489,7 +3483,6 @@ def retrieve_current( self._request( "get", "/v1/account", - api_mode="V1", base_address="api", params=params, options=options, @@ -3509,7 +3502,6 @@ async def retrieve_current_async( await self._request_async( "get", "/v1/account", - api_mode="V1", base_address="api", params=params, options=options, @@ -3529,7 +3521,6 @@ def list( self._request( "get", "/v1/accounts", - api_mode="V1", base_address="api", params=params, options=options, @@ -3549,7 +3540,6 @@ async def list_async( await self._request_async( "get", "/v1/accounts", - api_mode="V1", base_address="api", params=params, options=options, @@ -3574,7 +3564,6 @@ def create( self._request( "post", "/v1/accounts", - api_mode="V1", base_address="api", params=params, options=options, @@ -3599,7 +3588,6 @@ async def create_async( await self._request_async( "post", "/v1/accounts", - api_mode="V1", base_address="api", params=params, options=options, @@ -3624,7 +3612,6 @@ def reject( "/v1/accounts/{account}/reject".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -3649,7 +3636,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 be5fb0dc0..52ea8afa3 100644 --- a/stripe/_account_session_service.py +++ b/stripe/_account_session_service.py @@ -337,7 +337,6 @@ def create( self._request( "post", "/v1/account_sessions", - api_mode="V1", base_address="api", params=params, options=options, @@ -357,7 +356,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_requestor.py b/stripe/_api_requestor.py index 62951eed8..61f3085eb 100644 --- a/stripe/_api_requestor.py +++ b/stripe/_api_requestor.py @@ -181,10 +181,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, @@ -212,9 +212,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(), @@ -243,9 +243,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, @@ -273,9 +273,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, 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 a079598a3..47506a7de 100644 --- a/stripe/_charge_service.py +++ b/stripe/_charge_service.py @@ -378,7 +378,6 @@ def list( self._request( "get", "/v1/charges", - api_mode="V1", base_address="api", params=params, options=options, @@ -398,7 +397,6 @@ async def list_async( await self._request_async( "get", "/v1/charges", - api_mode="V1", base_address="api", params=params, options=options, @@ -420,7 +418,6 @@ def create( self._request( "post", "/v1/charges", - api_mode="V1", base_address="api", params=params, options=options, @@ -442,7 +439,6 @@ async def create_async( await self._request_async( "post", "/v1/charges", - api_mode="V1", base_address="api", params=params, options=options, @@ -463,7 +459,6 @@ def retrieve( self._request( "get", "/v1/charges/{charge}".format(charge=sanitize_id(charge)), - api_mode="V1", base_address="api", params=params, options=options, @@ -484,7 +479,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, @@ -505,7 +499,6 @@ def update( self._request( "post", "/v1/charges/{charge}".format(charge=sanitize_id(charge)), - api_mode="V1", base_address="api", params=params, options=options, @@ -526,7 +519,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, @@ -549,7 +541,6 @@ def search( self._request( "get", "/v1/charges/search", - api_mode="V1", base_address="api", params=params, options=options, @@ -572,7 +563,6 @@ async def search_async( await self._request_async( "get", "/v1/charges/search", - api_mode="V1", base_address="api", params=params, options=options, @@ -599,7 +589,6 @@ def capture( "/v1/charges/{charge}/capture".format( charge=sanitize_id(charge), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -626,7 +615,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 15bda53f1..665088b22 100644 --- a/stripe/_coupon_service.py +++ b/stripe/_coupon_service.py @@ -167,7 +167,6 @@ def delete( self._request( "delete", "/v1/coupons/{coupon}".format(coupon=sanitize_id(coupon)), - api_mode="V1", base_address="api", params=params, options=options, @@ -188,7 +187,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, @@ -209,7 +207,6 @@ def retrieve( self._request( "get", "/v1/coupons/{coupon}".format(coupon=sanitize_id(coupon)), - api_mode="V1", base_address="api", params=params, options=options, @@ -230,7 +227,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, @@ -251,7 +247,6 @@ def update( self._request( "post", "/v1/coupons/{coupon}".format(coupon=sanitize_id(coupon)), - api_mode="V1", base_address="api", params=params, options=options, @@ -272,7 +267,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, @@ -292,7 +286,6 @@ def list( self._request( "get", "/v1/coupons", - api_mode="V1", base_address="api", params=params, options=options, @@ -312,7 +305,6 @@ async def list_async( await self._request_async( "get", "/v1/coupons", - api_mode="V1", base_address="api", params=params, options=options, @@ -334,7 +326,6 @@ def create( self._request( "post", "/v1/coupons", - api_mode="V1", base_address="api", params=params, options=options, @@ -356,7 +347,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 fa41fb7c0..10cc91426 100644 --- a/stripe/_credit_note_preview_lines_service.py +++ b/stripe/_credit_note_preview_lines_service.py @@ -163,7 +163,6 @@ def list( self._request( "get", "/v1/credit_notes/preview/lines", - api_mode="V1", base_address="api", params=params, options=options, @@ -183,7 +182,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 a076ce15b..774b1a8c8 100644 --- a/stripe/_credit_note_service.py +++ b/stripe/_credit_note_service.py @@ -360,7 +360,6 @@ def list( self._request( "get", "/v1/credit_notes", - api_mode="V1", base_address="api", params=params, options=options, @@ -380,7 +379,6 @@ async def list_async( await self._request_async( "get", "/v1/credit_notes", - api_mode="V1", base_address="api", params=params, options=options, @@ -413,7 +411,6 @@ def create( self._request( "post", "/v1/credit_notes", - api_mode="V1", base_address="api", params=params, options=options, @@ -446,7 +443,6 @@ async def create_async( await self._request_async( "post", "/v1/credit_notes", - api_mode="V1", base_address="api", params=params, options=options, @@ -467,7 +463,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, @@ -488,7 +483,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, @@ -509,7 +503,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, @@ -530,7 +523,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, @@ -550,7 +542,6 @@ def preview( self._request( "get", "/v1/credit_notes/preview", - api_mode="V1", base_address="api", params=params, options=options, @@ -570,7 +561,6 @@ async def preview_async( await self._request_async( "get", "/v1/credit_notes/preview", - api_mode="V1", base_address="api", params=params, options=options, @@ -591,7 +581,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, @@ -612,7 +601,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 31a03d337..e1749bf91 100644 --- a/stripe/_customer_payment_method_service.py +++ b/stripe/_customer_payment_method_service.py @@ -100,7 +100,6 @@ def list( "/v1/customers/{customer}/payment_methods".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -123,7 +122,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, @@ -148,7 +146,6 @@ def retrieve( customer=sanitize_id(customer), payment_method=sanitize_id(payment_method), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -173,7 +170,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 a3456afc3..16f5f092e 100644 --- a/stripe/_customer_service.py +++ b/stripe/_customer_service.py @@ -666,7 +666,6 @@ def delete( "/v1/customers/{customer}".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -689,7 +688,6 @@ async def delete_async( "/v1/customers/{customer}".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -712,7 +710,6 @@ def retrieve( "/v1/customers/{customer}".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -735,7 +732,6 @@ async def retrieve_async( "/v1/customers/{customer}".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -760,7 +756,6 @@ def update( "/v1/customers/{customer}".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -785,7 +780,6 @@ async def update_async( "/v1/customers/{customer}".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -808,7 +802,6 @@ def delete_discount( "/v1/customers/{customer}/discount".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -831,7 +824,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, @@ -851,7 +843,6 @@ def list( self._request( "get", "/v1/customers", - api_mode="V1", base_address="api", params=params, options=options, @@ -871,7 +862,6 @@ async def list_async( await self._request_async( "get", "/v1/customers", - api_mode="V1", base_address="api", params=params, options=options, @@ -891,7 +881,6 @@ def create( self._request( "post", "/v1/customers", - api_mode="V1", base_address="api", params=params, options=options, @@ -911,7 +900,6 @@ async def create_async( await self._request_async( "post", "/v1/customers", - api_mode="V1", base_address="api", params=params, options=options, @@ -934,7 +922,6 @@ def search( self._request( "get", "/v1/customers/search", - api_mode="V1", base_address="api", params=params, options=options, @@ -957,7 +944,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 ed126cdbf..5efa2382e 100644 --- a/stripe/_customer_tax_id_service.py +++ b/stripe/_customer_tax_id_service.py @@ -143,7 +143,6 @@ def delete( customer=sanitize_id(customer), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -168,7 +167,6 @@ async def delete_async( customer=sanitize_id(customer), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -193,7 +191,6 @@ def retrieve( customer=sanitize_id(customer), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -218,7 +215,6 @@ async def retrieve_async( customer=sanitize_id(customer), id=sanitize_id(id), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -241,7 +237,6 @@ def list( "/v1/customers/{customer}/tax_ids".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -264,7 +259,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, @@ -287,7 +281,6 @@ def create( "/v1/customers/{customer}/tax_ids".format( customer=sanitize_id(customer), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -310,7 +303,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 1502f1e50..e55049146 100644 --- a/stripe/_dispute_service.py +++ b/stripe/_dispute_service.py @@ -211,7 +211,6 @@ def list( self._request( "get", "/v1/disputes", - api_mode="V1", base_address="api", params=params, options=options, @@ -231,7 +230,6 @@ async def list_async( await self._request_async( "get", "/v1/disputes", - api_mode="V1", base_address="api", params=params, options=options, @@ -252,7 +250,6 @@ def retrieve( self._request( "get", "/v1/disputes/{dispute}".format(dispute=sanitize_id(dispute)), - api_mode="V1", base_address="api", params=params, options=options, @@ -273,7 +270,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, @@ -296,7 +292,6 @@ def update( self._request( "post", "/v1/disputes/{dispute}".format(dispute=sanitize_id(dispute)), - api_mode="V1", base_address="api", params=params, options=options, @@ -319,7 +314,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, @@ -344,7 +338,6 @@ def close( "/v1/disputes/{dispute}/close".format( dispute=sanitize_id(dispute), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -369,7 +362,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 20cf02120..65c797a6c 100644 --- a/stripe/_file.py +++ b/stripe/_file.py @@ -218,7 +218,6 @@ def create(cls, **params: Unpack["File.CreateParams"]) -> "File": cls.class_url(), params=params, base_address="files", - api_mode="V1", ), ) @@ -240,7 +239,6 @@ async def create_async( cls.class_url(), params=params, base_address="files", - api_mode="V1", ), ) diff --git a/stripe/_file_link_service.py b/stripe/_file_link_service.py index a7426ea13..41166ff6f 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 12162f285..367109272 100644 --- a/stripe/_file_service.py +++ b/stripe/_file_service.py @@ -134,7 +134,6 @@ def list( self._request( "get", "/v1/files", - api_mode="V1", base_address="api", params=params, options=options, @@ -154,7 +153,6 @@ async def list_async( await self._request_async( "get", "/v1/files", - api_mode="V1", base_address="api", params=params, options=options, @@ -175,7 +173,6 @@ def create( self._request( "post", "/v1/files", - api_mode="V1", base_address="files", params=params, options=options, @@ -196,7 +193,6 @@ async def create_async( await self._request_async( "post", "/v1/files", - api_mode="V1", base_address="files", params=params, options=options, @@ -217,7 +213,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 +233,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 aa97cd0c7..7a780a6b9 100644 --- a/stripe/_invoice_item_service.py +++ b/stripe/_invoice_item_service.py @@ -331,7 +331,6 @@ def delete( "/v1/invoiceitems/{invoiceitem}".format( invoiceitem=sanitize_id(invoiceitem), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -354,7 +353,6 @@ async def delete_async( "/v1/invoiceitems/{invoiceitem}".format( invoiceitem=sanitize_id(invoiceitem), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -377,7 +375,6 @@ def retrieve( "/v1/invoiceitems/{invoiceitem}".format( invoiceitem=sanitize_id(invoiceitem), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -400,7 +397,6 @@ async def retrieve_async( "/v1/invoiceitems/{invoiceitem}".format( invoiceitem=sanitize_id(invoiceitem), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -423,7 +419,6 @@ def update( "/v1/invoiceitems/{invoiceitem}".format( invoiceitem=sanitize_id(invoiceitem), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -446,7 +441,6 @@ async def update_async( "/v1/invoiceitems/{invoiceitem}".format( invoiceitem=sanitize_id(invoiceitem), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -466,7 +460,6 @@ def list( self._request( "get", "/v1/invoiceitems", - api_mode="V1", base_address="api", params=params, options=options, @@ -486,7 +479,6 @@ async def list_async( await self._request_async( "get", "/v1/invoiceitems", - api_mode="V1", base_address="api", params=params, options=options, @@ -506,7 +498,6 @@ def create( self._request( "post", "/v1/invoiceitems", - api_mode="V1", base_address="api", params=params, options=options, @@ -526,7 +517,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 b17ba4214..3130ebda8 100644 --- a/stripe/_invoice_line_item_service.py +++ b/stripe/_invoice_line_item_service.py @@ -241,7 +241,6 @@ def list( "/v1/invoices/{invoice}/lines".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -264,7 +263,6 @@ async def list_async( "/v1/invoices/{invoice}/lines".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -292,7 +290,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, @@ -320,7 +317,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_service.py b/stripe/_invoice_service.py index 6981cdccd..9ba1ab735 100644 --- a/stripe/_invoice_service.py +++ b/stripe/_invoice_service.py @@ -3978,7 +3978,6 @@ def delete( self._request( "delete", "/v1/invoices/{invoice}".format(invoice=sanitize_id(invoice)), - api_mode="V1", base_address="api", params=params, options=options, @@ -3999,7 +3998,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, @@ -4020,7 +4018,6 @@ def retrieve( self._request( "get", "/v1/invoices/{invoice}".format(invoice=sanitize_id(invoice)), - api_mode="V1", base_address="api", params=params, options=options, @@ -4041,7 +4038,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, @@ -4067,7 +4063,6 @@ def update( self._request( "post", "/v1/invoices/{invoice}".format(invoice=sanitize_id(invoice)), - api_mode="V1", base_address="api", params=params, options=options, @@ -4093,7 +4088,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, @@ -4113,7 +4107,6 @@ def list( self._request( "get", "/v1/invoices", - api_mode="V1", base_address="api", params=params, options=options, @@ -4133,7 +4126,6 @@ async def list_async( await self._request_async( "get", "/v1/invoices", - api_mode="V1", base_address="api", params=params, options=options, @@ -4153,7 +4145,6 @@ def create( self._request( "post", "/v1/invoices", - api_mode="V1", base_address="api", params=params, options=options, @@ -4173,7 +4164,6 @@ async def create_async( await self._request_async( "post", "/v1/invoices", - api_mode="V1", base_address="api", params=params, options=options, @@ -4196,7 +4186,6 @@ def search( self._request( "get", "/v1/invoices/search", - api_mode="V1", base_address="api", params=params, options=options, @@ -4219,7 +4208,6 @@ async def search_async( await self._request_async( "get", "/v1/invoices/search", - api_mode="V1", base_address="api", params=params, options=options, @@ -4245,7 +4233,6 @@ def upcoming( self._request( "get", "/v1/invoices/upcoming", - api_mode="V1", base_address="api", params=params, options=options, @@ -4271,7 +4258,6 @@ async def upcoming_async( await self._request_async( "get", "/v1/invoices/upcoming", - api_mode="V1", base_address="api", params=params, options=options, @@ -4294,7 +4280,6 @@ def add_lines( "/v1/invoices/{invoice}/add_lines".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -4317,7 +4302,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, @@ -4340,7 +4324,6 @@ def finalize_invoice( "/v1/invoices/{invoice}/finalize".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -4363,7 +4346,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, @@ -4386,7 +4368,6 @@ def mark_uncollectible( "/v1/invoices/{invoice}/mark_uncollectible".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -4409,7 +4390,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, @@ -4432,7 +4412,6 @@ def pay( "/v1/invoices/{invoice}/pay".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -4455,7 +4434,6 @@ async def pay_async( "/v1/invoices/{invoice}/pay".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -4478,7 +4456,6 @@ def remove_lines( "/v1/invoices/{invoice}/remove_lines".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -4501,7 +4478,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, @@ -4526,7 +4502,6 @@ def send_invoice( "/v1/invoices/{invoice}/send".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -4551,7 +4526,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, @@ -4574,7 +4548,6 @@ def update_lines( "/v1/invoices/{invoice}/update_lines".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -4597,7 +4570,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, @@ -4622,7 +4594,6 @@ def void_invoice( "/v1/invoices/{invoice}/void".format( invoice=sanitize_id(invoice), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -4647,7 +4618,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, @@ -4673,7 +4643,6 @@ def create_preview( self._request( "post", "/v1/invoices/create_preview", - api_mode="V1", base_address="api", params=params, options=options, @@ -4699,7 +4668,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 23216c534..80cb30a6a 100644 --- a/stripe/_invoice_upcoming_lines_service.py +++ b/stripe/_invoice_upcoming_lines_service.py @@ -1168,7 +1168,6 @@ def list( self._request( "get", "/v1/invoices/upcoming/lines", - api_mode="V1", base_address="api", params=params, options=options, @@ -1188,7 +1187,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/_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/_payment_intent_service.py b/stripe/_payment_intent_service.py index 7e005149d..b63deeff4 100644 --- a/stripe/_payment_intent_service.py +++ b/stripe/_payment_intent_service.py @@ -7214,7 +7214,6 @@ def list( self._request( "get", "/v1/payment_intents", - api_mode="V1", base_address="api", params=params, options=options, @@ -7234,7 +7233,6 @@ async def list_async( await self._request_async( "get", "/v1/payment_intents", - api_mode="V1", base_address="api", params=params, options=options, @@ -7263,7 +7261,6 @@ def create( self._request( "post", "/v1/payment_intents", - api_mode="V1", base_address="api", params=params, options=options, @@ -7292,7 +7289,6 @@ async def create_async( await self._request_async( "post", "/v1/payment_intents", - api_mode="V1", base_address="api", params=params, options=options, @@ -7319,7 +7315,6 @@ def retrieve( "/v1/payment_intents/{intent}".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -7346,7 +7341,6 @@ async def retrieve_async( "/v1/payment_intents/{intent}".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -7375,7 +7369,6 @@ def update( "/v1/payment_intents/{intent}".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -7404,7 +7397,6 @@ async def update_async( "/v1/payment_intents/{intent}".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -7427,7 +7419,6 @@ def search( self._request( "get", "/v1/payment_intents/search", - api_mode="V1", base_address="api", params=params, options=options, @@ -7450,7 +7441,6 @@ async def search_async( await self._request_async( "get", "/v1/payment_intents/search", - api_mode="V1", base_address="api", params=params, options=options, @@ -7473,7 +7463,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, @@ -7496,7 +7485,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, @@ -7523,7 +7511,6 @@ def cancel( "/v1/payment_intents/{intent}/cancel".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -7550,7 +7537,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, @@ -7577,7 +7563,6 @@ def capture( "/v1/payment_intents/{intent}/capture".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -7604,7 +7589,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, @@ -7648,7 +7632,6 @@ def confirm( "/v1/payment_intents/{intent}/confirm".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -7692,7 +7675,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, @@ -7738,7 +7720,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, @@ -7784,7 +7765,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, @@ -7807,7 +7787,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, @@ -7830,7 +7809,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 f6ee75608..b1dacbc1d 100644 --- a/stripe/_payment_link_service.py +++ b/stripe/_payment_link_service.py @@ -1685,7 +1685,6 @@ def list( self._request( "get", "/v1/payment_links", - api_mode="V1", base_address="api", params=params, options=options, @@ -1705,7 +1704,6 @@ async def list_async( await self._request_async( "get", "/v1/payment_links", - api_mode="V1", base_address="api", params=params, options=options, @@ -1725,7 +1723,6 @@ def create( self._request( "post", "/v1/payment_links", - api_mode="V1", base_address="api", params=params, options=options, @@ -1745,7 +1742,6 @@ async def create_async( await self._request_async( "post", "/v1/payment_links", - api_mode="V1", base_address="api", params=params, options=options, @@ -1768,7 +1764,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, @@ -1791,7 +1786,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, @@ -1814,7 +1808,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, @@ -1837,7 +1830,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 4b36c7c66..d43649ab1 100644 --- a/stripe/_payment_method_configuration_service.py +++ b/stripe/_payment_method_configuration_service.py @@ -1683,7 +1683,6 @@ def list( self._request( "get", "/v1/payment_method_configurations", - api_mode="V1", base_address="api", params=params, options=options, @@ -1703,7 +1702,6 @@ async def list_async( await self._request_async( "get", "/v1/payment_method_configurations", - api_mode="V1", base_address="api", params=params, options=options, @@ -1723,7 +1721,6 @@ def create( self._request( "post", "/v1/payment_method_configurations", - api_mode="V1", base_address="api", params=params, options=options, @@ -1743,7 +1740,6 @@ async def create_async( await self._request_async( "post", "/v1/payment_method_configurations", - api_mode="V1", base_address="api", params=params, options=options, @@ -1766,7 +1762,6 @@ def retrieve( "/v1/payment_method_configurations/{configuration}".format( configuration=sanitize_id(configuration), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1789,7 +1784,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, @@ -1812,7 +1806,6 @@ def update( "/v1/payment_method_configurations/{configuration}".format( configuration=sanitize_id(configuration), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1835,7 +1828,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 8f6a18872..45c33c23e 100644 --- a/stripe/_payment_method_service.py +++ b/stripe/_payment_method_service.py @@ -855,7 +855,6 @@ def list( self._request( "get", "/v1/payment_methods", - api_mode="V1", base_address="api", params=params, options=options, @@ -875,7 +874,6 @@ async def list_async( await self._request_async( "get", "/v1/payment_methods", - api_mode="V1", base_address="api", params=params, options=options, @@ -897,7 +895,6 @@ def create( self._request( "post", "/v1/payment_methods", - api_mode="V1", base_address="api", params=params, options=options, @@ -919,7 +916,6 @@ async def create_async( await self._request_async( "post", "/v1/payment_methods", - api_mode="V1", base_address="api", params=params, options=options, @@ -942,7 +938,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, @@ -965,7 +960,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, @@ -988,7 +982,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, @@ -1011,7 +1004,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, @@ -1046,7 +1038,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, @@ -1081,7 +1072,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, @@ -1104,7 +1094,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, @@ -1127,7 +1116,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 bf2388309..327d66fef 100644 --- a/stripe/_price_service.py +++ b/stripe/_price_service.py @@ -496,7 +496,6 @@ def list( self._request( "get", "/v1/prices", - api_mode="V1", base_address="api", params=params, options=options, @@ -516,7 +515,6 @@ async def list_async( await self._request_async( "get", "/v1/prices", - api_mode="V1", base_address="api", params=params, options=options, @@ -534,7 +532,6 @@ def create( self._request( "post", "/v1/prices", - api_mode="V1", base_address="api", params=params, options=options, @@ -552,7 +549,6 @@ async def create_async( await self._request_async( "post", "/v1/prices", - api_mode="V1", base_address="api", params=params, options=options, @@ -573,7 +569,6 @@ def retrieve( self._request( "get", "/v1/prices/{price}".format(price=sanitize_id(price)), - api_mode="V1", base_address="api", params=params, options=options, @@ -594,7 +589,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, @@ -615,7 +609,6 @@ def update( self._request( "post", "/v1/prices/{price}".format(price=sanitize_id(price)), - api_mode="V1", base_address="api", params=params, options=options, @@ -636,7 +629,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, @@ -657,7 +649,6 @@ def search( self._request( "get", "/v1/prices/search", - api_mode="V1", base_address="api", params=params, options=options, @@ -678,7 +669,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 cde4ad8a0..817c190b6 100644 --- a/stripe/_product_service.py +++ b/stripe/_product_service.py @@ -422,7 +422,6 @@ def delete( self._request( "delete", "/v1/products/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -443,7 +442,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, @@ -464,7 +462,6 @@ def retrieve( self._request( "get", "/v1/products/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -485,7 +482,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, @@ -506,7 +502,6 @@ def update( self._request( "post", "/v1/products/{id}".format(id=sanitize_id(id)), - api_mode="V1", base_address="api", params=params, options=options, @@ -527,7 +522,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, @@ -547,7 +541,6 @@ def list( self._request( "get", "/v1/products", - api_mode="V1", base_address="api", params=params, options=options, @@ -567,7 +560,6 @@ async def list_async( await self._request_async( "get", "/v1/products", - api_mode="V1", base_address="api", params=params, options=options, @@ -587,7 +579,6 @@ def create( self._request( "post", "/v1/products", - api_mode="V1", base_address="api", params=params, options=options, @@ -607,7 +598,6 @@ async def create_async( await self._request_async( "post", "/v1/products", - api_mode="V1", base_address="api", params=params, options=options, @@ -630,7 +620,6 @@ def search( self._request( "get", "/v1/products/search", - api_mode="V1", base_address="api", params=params, options=options, @@ -653,7 +642,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_service.py b/stripe/_quote_service.py index 8db87912b..c5d72560f 100644 --- a/stripe/_quote_service.py +++ b/stripe/_quote_service.py @@ -626,7 +626,6 @@ def list( self._request( "get", "/v1/quotes", - api_mode="V1", base_address="api", params=params, options=options, @@ -646,7 +645,6 @@ async def list_async( await self._request_async( "get", "/v1/quotes", - api_mode="V1", base_address="api", params=params, options=options, @@ -666,7 +664,6 @@ def create( self._request( "post", "/v1/quotes", - api_mode="V1", base_address="api", params=params, options=options, @@ -686,7 +683,6 @@ async def create_async( await self._request_async( "post", "/v1/quotes", - api_mode="V1", base_address="api", params=params, options=options, @@ -707,7 +703,6 @@ def retrieve( self._request( "get", "/v1/quotes/{quote}".format(quote=sanitize_id(quote)), - api_mode="V1", base_address="api", params=params, options=options, @@ -728,7 +723,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, @@ -749,7 +743,6 @@ def update( self._request( "post", "/v1/quotes/{quote}".format(quote=sanitize_id(quote)), - api_mode="V1", base_address="api", params=params, options=options, @@ -770,7 +763,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, @@ -791,7 +783,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, @@ -812,7 +803,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, @@ -833,7 +823,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, @@ -854,7 +843,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, @@ -875,7 +863,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, @@ -896,7 +883,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, @@ -917,7 +903,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, @@ -938,7 +923,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, 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/_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 fb4dda1ee..d65aaa4b6 100644 --- a/stripe/_setup_intent_service.py +++ b/stripe/_setup_intent_service.py @@ -3471,7 +3471,6 @@ def list( self._request( "get", "/v1/setup_intents", - api_mode="V1", base_address="api", params=params, options=options, @@ -3491,7 +3490,6 @@ async def list_async( await self._request_async( "get", "/v1/setup_intents", - api_mode="V1", base_address="api", params=params, options=options, @@ -3514,7 +3512,6 @@ def create( self._request( "post", "/v1/setup_intents", - api_mode="V1", base_address="api", params=params, options=options, @@ -3537,7 +3534,6 @@ async def create_async( await self._request_async( "post", "/v1/setup_intents", - api_mode="V1", base_address="api", params=params, options=options, @@ -3564,7 +3560,6 @@ def retrieve( "/v1/setup_intents/{intent}".format( intent=sanitize_id(intent) ), - api_mode="V1", base_address="api", params=params, options=options, @@ -3591,7 +3586,6 @@ async def retrieve_async( "/v1/setup_intents/{intent}".format( intent=sanitize_id(intent) ), - api_mode="V1", base_address="api", params=params, options=options, @@ -3614,7 +3608,6 @@ def update( "/v1/setup_intents/{intent}".format( intent=sanitize_id(intent) ), - api_mode="V1", base_address="api", params=params, options=options, @@ -3637,7 +3630,6 @@ async def update_async( "/v1/setup_intents/{intent}".format( intent=sanitize_id(intent) ), - api_mode="V1", base_address="api", params=params, options=options, @@ -3662,7 +3654,6 @@ def cancel( "/v1/setup_intents/{intent}/cancel".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -3687,7 +3678,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, @@ -3723,7 +3713,6 @@ def confirm( "/v1/setup_intents/{intent}/confirm".format( intent=sanitize_id(intent), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -3759,7 +3748,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, @@ -3782,7 +3770,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, @@ -3805,7 +3792,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 ae5d8232e..2fea81ff9 100644 --- a/stripe/_subscription_item_service.py +++ b/stripe/_subscription_item_service.py @@ -351,7 +351,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, @@ -372,7 +371,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, @@ -393,7 +391,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, @@ -414,7 +411,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, @@ -435,7 +431,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, @@ -456,7 +451,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, @@ -476,7 +470,6 @@ def list( self._request( "get", "/v1/subscription_items", - api_mode="V1", base_address="api", params=params, options=options, @@ -496,7 +489,6 @@ async def list_async( await self._request_async( "get", "/v1/subscription_items", - api_mode="V1", base_address="api", params=params, options=options, @@ -516,7 +508,6 @@ def create( self._request( "post", "/v1/subscription_items", - api_mode="V1", base_address="api", params=params, options=options, @@ -536,7 +527,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 48bd47bfb..4ec8d5603 100644 --- a/stripe/_subscription_schedule_service.py +++ b/stripe/_subscription_schedule_service.py @@ -1197,7 +1197,6 @@ def list( self._request( "get", "/v1/subscription_schedules", - api_mode="V1", base_address="api", params=params, options=options, @@ -1217,7 +1216,6 @@ async def list_async( await self._request_async( "get", "/v1/subscription_schedules", - api_mode="V1", base_address="api", params=params, options=options, @@ -1237,7 +1235,6 @@ def create( self._request( "post", "/v1/subscription_schedules", - api_mode="V1", base_address="api", params=params, options=options, @@ -1257,7 +1254,6 @@ async def create_async( await self._request_async( "post", "/v1/subscription_schedules", - api_mode="V1", base_address="api", params=params, options=options, @@ -1280,7 +1276,6 @@ def retrieve( "/v1/subscription_schedules/{schedule}".format( schedule=sanitize_id(schedule), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1303,7 +1298,6 @@ async def retrieve_async( "/v1/subscription_schedules/{schedule}".format( schedule=sanitize_id(schedule), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1326,7 +1320,6 @@ def update( "/v1/subscription_schedules/{schedule}".format( schedule=sanitize_id(schedule), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1349,7 +1342,6 @@ async def update_async( "/v1/subscription_schedules/{schedule}".format( schedule=sanitize_id(schedule), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1372,7 +1364,6 @@ def cancel( "/v1/subscription_schedules/{schedule}/cancel".format( schedule=sanitize_id(schedule), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1395,7 +1386,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, @@ -1418,7 +1408,6 @@ def release( "/v1/subscription_schedules/{schedule}/release".format( schedule=sanitize_id(schedule), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1441,7 +1430,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 527d44d93..f183dc291 100644 --- a/stripe/_subscription_service.py +++ b/stripe/_subscription_service.py @@ -1656,7 +1656,6 @@ def cancel( subscription_exposed_id ), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1685,7 +1684,6 @@ async def cancel_async( subscription_exposed_id ), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1710,7 +1708,6 @@ def retrieve( subscription_exposed_id ), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1735,7 +1732,6 @@ async def retrieve_async( subscription_exposed_id ), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1780,7 +1776,6 @@ def update( subscription_exposed_id ), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1825,7 +1820,6 @@ async def update_async( subscription_exposed_id ), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1850,7 +1844,6 @@ def delete_discount( subscription_exposed_id ), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1875,7 +1868,6 @@ async def delete_discount_async( subscription_exposed_id ), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -1895,7 +1887,6 @@ def list( self._request( "get", "/v1/subscriptions", - api_mode="V1", base_address="api", params=params, options=options, @@ -1915,7 +1906,6 @@ async def list_async( await self._request_async( "get", "/v1/subscriptions", - api_mode="V1", base_address="api", params=params, options=options, @@ -1941,7 +1931,6 @@ def create( self._request( "post", "/v1/subscriptions", - api_mode="V1", base_address="api", params=params, options=options, @@ -1967,7 +1956,6 @@ async def create_async( await self._request_async( "post", "/v1/subscriptions", - api_mode="V1", base_address="api", params=params, options=options, @@ -1990,7 +1978,6 @@ def search( self._request( "get", "/v1/subscriptions/search", - api_mode="V1", base_address="api", params=params, options=options, @@ -2013,7 +2000,6 @@ async def search_async( await self._request_async( "get", "/v1/subscriptions/search", - api_mode="V1", base_address="api", params=params, options=options, @@ -2036,7 +2022,6 @@ def resume( "/v1/subscriptions/{subscription}/resume".format( subscription=sanitize_id(subscription), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2059,7 +2044,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 aa6e28c27..c2b1546df 100644 --- a/stripe/_tax_id_service.py +++ b/stripe/_tax_id_service.py @@ -175,7 +175,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, @@ -196,7 +195,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, @@ -217,7 +215,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, @@ -238,7 +235,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, @@ -258,7 +254,6 @@ def list( self._request( "get", "/v1/tax_ids", - api_mode="V1", base_address="api", params=params, options=options, @@ -278,7 +273,6 @@ async def list_async( await self._request_async( "get", "/v1/tax_ids", - api_mode="V1", base_address="api", params=params, options=options, @@ -296,7 +290,6 @@ def create( self._request( "post", "/v1/tax_ids", - api_mode="V1", base_address="api", params=params, options=options, @@ -314,7 +307,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 0fc6698fc..2acb57b8c 100644 --- a/stripe/_webhook_endpoint_service.py +++ b/stripe/_webhook_endpoint_service.py @@ -698,7 +698,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, @@ -721,7 +720,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, @@ -744,7 +742,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, @@ -767,7 +764,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, @@ -790,7 +786,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, @@ -813,7 +808,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, @@ -833,7 +827,6 @@ def list( self._request( "get", "/v1/webhook_endpoints", - api_mode="V1", base_address="api", params=params, options=options, @@ -853,7 +846,6 @@ async def list_async( await self._request_async( "get", "/v1/webhook_endpoints", - api_mode="V1", base_address="api", params=params, options=options, @@ -873,7 +865,6 @@ def create( self._request( "post", "/v1/webhook_endpoints", - api_mode="V1", base_address="api", params=params, options=options, @@ -893,7 +884,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/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 59750df82..10c03dcb6 100644 --- a/stripe/checkout/_session_service.py +++ b/stripe/checkout/_session_service.py @@ -2343,7 +2343,6 @@ def list( self._request( "get", "/v1/checkout/sessions", - api_mode="V1", base_address="api", params=params, options=options, @@ -2363,7 +2362,6 @@ async def list_async( await self._request_async( "get", "/v1/checkout/sessions", - api_mode="V1", base_address="api", params=params, options=options, @@ -2383,7 +2381,6 @@ def create( self._request( "post", "/v1/checkout/sessions", - api_mode="V1", base_address="api", params=params, options=options, @@ -2403,7 +2400,6 @@ async def create_async( await self._request_async( "post", "/v1/checkout/sessions", - api_mode="V1", base_address="api", params=params, options=options, @@ -2426,7 +2422,6 @@ def retrieve( "/v1/checkout/sessions/{session}".format( session=sanitize_id(session), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2449,7 +2444,6 @@ async def retrieve_async( "/v1/checkout/sessions/{session}".format( session=sanitize_id(session), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2472,7 +2466,6 @@ def update( "/v1/checkout/sessions/{session}".format( session=sanitize_id(session), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2495,7 +2488,6 @@ async def update_async( "/v1/checkout/sessions/{session}".format( session=sanitize_id(session), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2520,7 +2512,6 @@ def expire( "/v1/checkout/sessions/{session}/expire".format( session=sanitize_id(session), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2545,7 +2536,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_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 6ab7ac485..18fcd6dd6 100644 --- a/stripe/financial_connections/_account_service.py +++ b/stripe/financial_connections/_account_service.py @@ -108,7 +108,6 @@ def list( self._request( "get", "/v1/financial_connections/accounts", - api_mode="V1", base_address="api", params=params, options=options, @@ -128,7 +127,6 @@ async def list_async( await self._request_async( "get", "/v1/financial_connections/accounts", - api_mode="V1", base_address="api", params=params, options=options, @@ -151,7 +149,6 @@ def retrieve( "/v1/financial_connections/accounts/{account}".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -174,7 +171,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, @@ -197,7 +193,6 @@ def disconnect( "/v1/financial_connections/accounts/{account}/disconnect".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -220,7 +215,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, @@ -243,7 +237,6 @@ def refresh( "/v1/financial_connections/accounts/{account}/refresh".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -266,7 +259,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, @@ -289,7 +281,6 @@ def subscribe( "/v1/financial_connections/accounts/{account}/subscribe".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -312,7 +303,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, @@ -335,7 +325,6 @@ def unsubscribe( "/v1/financial_connections/accounts/{account}/unsubscribe".format( account=sanitize_id(account), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -358,7 +347,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/_session_service.py b/stripe/financial_connections/_session_service.py index 3ca67b8bf..9295cb25f 100644 --- a/stripe/financial_connections/_session_service.py +++ b/stripe/financial_connections/_session_service.py @@ -97,7 +97,6 @@ def retrieve( "/v1/financial_connections/sessions/{session}".format( session=sanitize_id(session), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -120,7 +119,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, @@ -140,7 +138,6 @@ def create( self._request( "post", "/v1/financial_connections/sessions", - api_mode="V1", base_address="api", params=params, options=options, @@ -160,7 +157,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/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 02edd720b..34f4c468d 100644 --- a/stripe/issuing/_cardholder_service.py +++ b/stripe/issuing/_cardholder_service.py @@ -2321,7 +2321,6 @@ def list( self._request( "get", "/v1/issuing/cardholders", - api_mode="V1", base_address="api", params=params, options=options, @@ -2341,7 +2340,6 @@ async def list_async( await self._request_async( "get", "/v1/issuing/cardholders", - api_mode="V1", base_address="api", params=params, options=options, @@ -2361,7 +2359,6 @@ def create( self._request( "post", "/v1/issuing/cardholders", - api_mode="V1", base_address="api", params=params, options=options, @@ -2381,7 +2378,6 @@ async def create_async( await self._request_async( "post", "/v1/issuing/cardholders", - api_mode="V1", base_address="api", params=params, options=options, @@ -2404,7 +2400,6 @@ def retrieve( "/v1/issuing/cardholders/{cardholder}".format( cardholder=sanitize_id(cardholder), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2427,7 +2422,6 @@ async def retrieve_async( "/v1/issuing/cardholders/{cardholder}".format( cardholder=sanitize_id(cardholder), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2450,7 +2444,6 @@ def update( "/v1/issuing/cardholders/{cardholder}".format( cardholder=sanitize_id(cardholder), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -2473,7 +2466,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/_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/_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 ced36501f..c1b68be72 100644 --- a/stripe/tax/_calculation_service.py +++ b/stripe/tax/_calculation_service.py @@ -293,7 +293,6 @@ def retrieve( "/v1/tax/calculations/{calculation}".format( calculation=sanitize_id(calculation), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -316,7 +315,6 @@ async def retrieve_async( "/v1/tax/calculations/{calculation}".format( calculation=sanitize_id(calculation), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -336,7 +334,6 @@ def create( self._request( "post", "/v1/tax/calculations", - api_mode="V1", base_address="api", params=params, options=options, @@ -356,7 +353,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/_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_service.py b/stripe/terminal/_reader_service.py index 89aec481e..7b8739b94 100644 --- a/stripe/terminal/_reader_service.py +++ b/stripe/terminal/_reader_service.py @@ -274,7 +274,6 @@ def delete( "/v1/terminal/readers/{reader}".format( reader=sanitize_id(reader), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -297,7 +296,6 @@ async def delete_async( "/v1/terminal/readers/{reader}".format( reader=sanitize_id(reader), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -320,7 +318,6 @@ def retrieve( "/v1/terminal/readers/{reader}".format( reader=sanitize_id(reader), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -343,7 +340,6 @@ async def retrieve_async( "/v1/terminal/readers/{reader}".format( reader=sanitize_id(reader), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -366,7 +362,6 @@ def update( "/v1/terminal/readers/{reader}".format( reader=sanitize_id(reader), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -389,7 +384,6 @@ async def update_async( "/v1/terminal/readers/{reader}".format( reader=sanitize_id(reader), ), - api_mode="V1", base_address="api", params=params, options=options, @@ -409,7 +403,6 @@ def list( self._request( "get", "/v1/terminal/readers", - api_mode="V1", base_address="api", params=params, options=options, @@ -429,7 +422,6 @@ async def list_async( await self._request_async( "get", "/v1/terminal/readers", - api_mode="V1", base_address="api", params=params, options=options, @@ -449,7 +441,6 @@ def create( self._request( "post", "/v1/terminal/readers", - api_mode="V1", base_address="api", params=params, options=options, @@ -469,7 +460,6 @@ async def create_async( await self._request_async( "post", "/v1/terminal/readers", - api_mode="V1", base_address="api", params=params, options=options, @@ -492,7 +482,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, @@ -515,7 +504,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, @@ -538,7 +526,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, @@ -561,7 +548,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, @@ -584,7 +570,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, @@ -607,7 +592,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, @@ -630,7 +614,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, @@ -653,7 +636,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, @@ -676,7 +658,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, @@ -699,7 +680,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 6d3e3473f..c52789f0a 100644 --- a/stripe/test_helpers/_confirmation_token_service.py +++ b/stripe/test_helpers/_confirmation_token_service.py @@ -731,7 +731,6 @@ def create( self._request( "post", "/v1/test_helpers/confirmation_tokens", - api_mode="V1", base_address="api", params=params, options=options, @@ -751,7 +750,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 14ca527c8..2a7033187 100644 --- a/stripe/test_helpers/treasury/_received_credit_service.py +++ b/stripe/test_helpers/treasury/_received_credit_service.py @@ -79,7 +79,6 @@ def create( self._request( "post", "/v1/test_helpers/treasury/received_credits", - api_mode="V1", base_address="api", params=params, options=options, @@ -99,7 +98,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 2b0f761cc..918b269e3 100644 --- a/stripe/test_helpers/treasury/_received_debit_service.py +++ b/stripe/test_helpers/treasury/_received_debit_service.py @@ -79,7 +79,6 @@ def create( self._request( "post", "/v1/test_helpers/treasury/received_debits", - api_mode="V1", base_address="api", params=params, options=options, @@ -99,7 +98,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 c61f2e46e..87aa3ae03 100644 --- a/stripe/treasury/_financial_account_service.py +++ b/stripe/treasury/_financial_account_service.py @@ -424,7 +424,6 @@ def list( self._request( "get", "/v1/treasury/financial_accounts", - api_mode="V1", base_address="api", params=params, options=options, @@ -444,7 +443,6 @@ async def list_async( await self._request_async( "get", "/v1/treasury/financial_accounts", - api_mode="V1", base_address="api", params=params, options=options, @@ -464,7 +462,6 @@ def create( self._request( "post", "/v1/treasury/financial_accounts", - api_mode="V1", base_address="api", params=params, options=options, @@ -484,7 +481,6 @@ async def create_async( await self._request_async( "post", "/v1/treasury/financial_accounts", - api_mode="V1", base_address="api", params=params, options=options, @@ -507,7 +503,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, @@ -530,7 +525,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, @@ -553,7 +547,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, @@ -576,7 +569,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 c87bdde15..23f5e2275 100644 --- a/stripe/treasury/_outbound_transfer_service.py +++ b/stripe/treasury/_outbound_transfer_service.py @@ -117,7 +117,6 @@ def list( self._request( "get", "/v1/treasury/outbound_transfers", - api_mode="V1", base_address="api", params=params, options=options, @@ -137,7 +136,6 @@ async def list_async( await self._request_async( "get", "/v1/treasury/outbound_transfers", - api_mode="V1", base_address="api", params=params, options=options, @@ -157,7 +155,6 @@ def create( self._request( "post", "/v1/treasury/outbound_transfers", - api_mode="V1", base_address="api", params=params, options=options, @@ -177,7 +174,6 @@ async def create_async( await self._request_async( "post", "/v1/treasury/outbound_transfers", - api_mode="V1", base_address="api", params=params, options=options, @@ -200,7 +196,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, @@ -223,7 +218,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, @@ -246,7 +240,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, @@ -269,7 +262,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 a2d197430..8acb0e87d 100644 --- a/tests/test_api_requestor.py +++ b/tests/test_api_requestor.py @@ -158,9 +158,7 @@ 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) @@ -219,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) @@ -232,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": @@ -256,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": @@ -291,7 +287,6 @@ async def async_iter(): self.valid_path, {}, base_address="api", - api_mode="V1", ) if meth == "post": @@ -320,7 +315,6 @@ def test_empty_methods_streaming_response( self.valid_path, {}, base_address="api", - api_mode="V1", ) if meth == "post": @@ -361,7 +355,6 @@ def test_methods_with_params_and_response( self.valid_path, params, base_address="api", - api_mode="V1", ) assert isinstance(resp, StripeObject) @@ -408,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) @@ -435,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"}) @@ -449,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", @@ -470,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", @@ -485,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 @@ -502,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", @@ -545,9 +530,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)" @@ -582,9 +565,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") @@ -607,7 +588,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( @@ -621,9 +601,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="" @@ -633,9 +611,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( @@ -643,9 +619,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( @@ -653,9 +627,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( @@ -666,9 +638,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( @@ -676,9 +646,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( @@ -686,9 +654,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( @@ -699,9 +665,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): @@ -710,9 +674,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): """ @@ -726,9 +688,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( @@ -736,9 +696,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( @@ -746,13 +704,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( @@ -763,9 +719,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( @@ -776,9 +730,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( @@ -789,9 +741,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 @@ -805,7 +755,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( @@ -824,7 +774,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): @@ -842,7 +792,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()