Skip to content

Commit

Permalink
Merge from master after the changes to not pass api_mode from individ…
Browse files Browse the repository at this point in the history
…ual methods (#1384)

* Changed V1File implementation to pass content_type in options (#1382)

* No need for api_mode to be passed around from individual API methods (#1383)

* Generated code

* We have separate tests for preview mode

* Remove unused import

---------

Co-authored-by: prathmesh-stripe <165320323+prathmesh-stripe@users.noreply.github.com>
  • Loading branch information
ramya-stripe and prathmesh-stripe authored Aug 29, 2024
1 parent b4054fc commit 3f821c3
Show file tree
Hide file tree
Showing 181 changed files with 49 additions and 1,280 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 @@ -68,7 +68,6 @@ def create(
self._request(
"post",
"/v1/account_links",
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand All @@ -88,7 +87,6 @@ async def create_async(
await self._request_async(
"post",
"/v1/account_links",
api_mode="V1",
base_address="api",
params=params,
options=options,
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
6 changes: 0 additions & 6 deletions stripe/_account_notice_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ def list(
self._request(
"get",
"/v1/account_notices",
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand All @@ -103,7 +102,6 @@ async def list_async(
await self._request_async(
"get",
"/v1/account_notices",
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand All @@ -126,7 +124,6 @@ def retrieve(
"/v1/account_notices/{account_notice}".format(
account_notice=sanitize_id(account_notice),
),
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand All @@ -149,7 +146,6 @@ async def retrieve_async(
"/v1/account_notices/{account_notice}".format(
account_notice=sanitize_id(account_notice),
),
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand All @@ -172,7 +168,6 @@ def update(
"/v1/account_notices/{account_notice}".format(
account_notice=sanitize_id(account_notice),
),
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand All @@ -195,7 +190,6 @@ async def update_async(
"/v1/account_notices/{account_notice}".format(
account_notice=sanitize_id(account_notice),
),
api_mode="V1",
base_address="api",
params=params,
options=options,
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 @@ -3566,7 +3566,6 @@ def delete(
self._request(
"delete",
"/v1/accounts/{account}".format(account=sanitize_id(account)),
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand All @@ -3593,7 +3592,6 @@ async def delete_async(
await self._request_async(
"delete",
"/v1/accounts/{account}".format(account=sanitize_id(account)),
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand All @@ -3614,7 +3612,6 @@ def retrieve(
self._request(
"get",
"/v1/accounts/{account}".format(account=sanitize_id(account)),
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand All @@ -3635,7 +3632,6 @@ async def retrieve_async(
await self._request_async(
"get",
"/v1/accounts/{account}".format(account=sanitize_id(account)),
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand Down Expand Up @@ -3668,7 +3664,6 @@ def update(
self._request(
"post",
"/v1/accounts/{account}".format(account=sanitize_id(account)),
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand Down Expand Up @@ -3701,7 +3696,6 @@ async def update_async(
await self._request_async(
"post",
"/v1/accounts/{account}".format(account=sanitize_id(account)),
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand All @@ -3721,7 +3715,6 @@ def retrieve_current(
self._request(
"get",
"/v1/account",
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand All @@ -3741,7 +3734,6 @@ async def retrieve_current_async(
await self._request_async(
"get",
"/v1/account",
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand All @@ -3761,7 +3753,6 @@ def list(
self._request(
"get",
"/v1/accounts",
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand All @@ -3781,7 +3772,6 @@ async def list_async(
await self._request_async(
"get",
"/v1/accounts",
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand All @@ -3806,7 +3796,6 @@ def create(
self._request(
"post",
"/v1/accounts",
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand All @@ -3831,7 +3820,6 @@ async def create_async(
await self._request_async(
"post",
"/v1/accounts",
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand All @@ -3856,7 +3844,6 @@ def reject(
"/v1/accounts/{account}/reject".format(
account=sanitize_id(account),
),
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand All @@ -3881,7 +3868,6 @@ async def reject_async(
"/v1/accounts/{account}/reject".format(
account=sanitize_id(account),
),
api_mode="V1",
base_address="api",
params=params,
options=options,
Expand Down
Loading

0 comments on commit 3f821c3

Please sign in to comment.