Skip to content

Commit

Permalink
No need for api_mode to be passed around from individual API methods (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-stripe authored Aug 28, 2024
1 parent 2326675 commit 25343ed
Show file tree
Hide file tree
Showing 158 changed files with 34 additions and 1,125 deletions.
6 changes: 0 additions & 6 deletions stripe/_account_capability_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -98,7 +96,6 @@ def retrieve(
account=sanitize_id(account),
capability=sanitize_id(capability),
),
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand All @@ -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,
Expand All @@ -148,7 +144,6 @@ def update(
account=sanitize_id(account),
capability=sanitize_id(capability),
),
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand All @@ -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,
Expand Down
10 changes: 0 additions & 10 deletions stripe/_account_external_account_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ def delete(
account=sanitize_id(account),
id=sanitize_id(id),
),
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand All @@ -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,
Expand All @@ -270,7 +268,6 @@ def retrieve(
account=sanitize_id(account),
id=sanitize_id(id),
),
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand All @@ -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,
Expand Down Expand Up @@ -327,7 +323,6 @@ def update(
account=sanitize_id(account),
id=sanitize_id(id),
),
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down
2 changes: 0 additions & 2 deletions stripe/_account_link_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ def create(
self._request(
"post",
"/v1/account_links",
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand All @@ -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,
Expand Down
2 changes: 0 additions & 2 deletions stripe/_account_login_link_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
10 changes: 0 additions & 10 deletions stripe/_account_person_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,6 @@ def delete(
account=sanitize_id(account),
person=sanitize_id(person),
),
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand All @@ -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,
Expand All @@ -881,7 +879,6 @@ def retrieve(
account=sanitize_id(account),
person=sanitize_id(person),
),
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand All @@ -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,
Expand All @@ -931,7 +927,6 @@ def update(
account=sanitize_id(account),
person=sanitize_id(person),
),
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down
14 changes: 0 additions & 14 deletions stripe/_account_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -3489,7 +3483,6 @@ def retrieve_current(
self._request(
"get",
"/v1/account",
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand All @@ -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,
Expand All @@ -3529,7 +3521,6 @@ def list(
self._request(
"get",
"/v1/accounts",
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand All @@ -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,
Expand All @@ -3574,7 +3564,6 @@ def create(
self._request(
"post",
"/v1/accounts",
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down
2 changes: 0 additions & 2 deletions stripe/_account_session_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,6 @@ def create(
self._request(
"post",
"/v1/account_sessions",
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand All @@ -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,
Expand Down
Loading

0 comments on commit 25343ed

Please sign in to comment.