Skip to content

Commit 01bc932

Browse files
committed
## Python SDK Changes Detected:
* `polar.organizations.list_organizations()`: **Added** * `polar.organizations.list()`: **Deleted** **Breaking** ⚠️ * `polar.customer_portal.customers.add_payment_method()`: `error.status[400]` **Added**
1 parent 331a4fe commit 01bc932

16 files changed

Lines changed: 143 additions & 51 deletions

File tree

.speakeasy/gen.lock

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: e7042734-e669-4c36-85da-bbb4a7500ac8
33
management:
4-
docChecksum: f9f2707053257f5298131d6530946e63
4+
docChecksum: c504f70503b145d00b057885937d0a89
55
docVersion: 0.1.0
66
speakeasyVersion: 1.648.0
77
generationVersion: 2.737.0
8-
releaseVersion: 0.31.5
9-
configChecksum: 0822c8291f14ca7037c4188b08d3ff60
8+
releaseVersion: 0.31.6
9+
configChecksum: f557b6fdf7b48246fcb012104230f817
1010
repoURL: https://github.com/polarsource/polar-python.git
1111
installationURL: https://github.com/polarsource/polar-python.git
1212
published: true
@@ -985,6 +985,7 @@ generatedFiles:
985985
- docs/models/paymentmethodcardmetadata.md
986986
- docs/models/paymentmethodgeneric.md
987987
- docs/models/paymentmethodinusebyactivesubscription.md
988+
- docs/models/paymentmethodsetupfailed.md
988989
- docs/models/paymentnotready.md
989990
- docs/models/paymentprocessor.md
990991
- docs/models/paymentsgetrequest.md
@@ -1910,6 +1911,7 @@ generatedFiles:
19101911
- src/polar_sdk/models/paymentmethodcardmetadata.py
19111912
- src/polar_sdk/models/paymentmethodgeneric.py
19121913
- src/polar_sdk/models/paymentmethodinusebyactivesubscription.py
1914+
- src/polar_sdk/models/paymentmethodsetupfailed.py
19131915
- src/polar_sdk/models/paymentnotready.py
19141916
- src/polar_sdk/models/paymentprocessor.py
19151917
- src/polar_sdk/models/payments_getop.py
@@ -3411,6 +3413,8 @@ examples:
34113413
application/json: {"status": "succeeded", "payment_method": {"id": "<value>", "created_at": "2025-12-23T00:32:19.874Z", "modified_at": "2025-02-22T23:44:51.542Z", "processor": "stripe", "customer_id": "<value>", "type": "card", "method_metadata": {"brand": "<value>", "last4": "<value>", "exp_month": 510329, "exp_year": 902331}}}
34123414
"422":
34133415
application/json: {}
3416+
"400":
3417+
application/json: {"error": "PaymentMethodSetupFailed", "detail": "<value>"}
34143418
customer_portal:customers:delete_payment_method:
34153419
speakeasy-default-customer-portal:customers:delete-payment-method:
34163420
parameters:
@@ -4696,7 +4700,11 @@ examples:
46964700
application/json: {}
46974701
examplesVersion: 1.0.2
46984702
generatedTests: {}
4699-
releaseNotes: "## Python SDK Changes Detected:\n* `polar.customer_portal.seats.assign_seat()`: \n * `request.checkout_client_secret` **Removed** **Breaking** :warning:\n* `polar.events.list()`: `response.[list_resource_event_].items.[].[system_event]` **Changed** **Breaking** :warning:\n* `polar._endpointorder_created_post()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar._endpointorder_updated_post()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar._endpointorder_paid_post()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar._endpointorder_refunded_post()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar._endpointorganization_updated_post()`: \n * `request.data.feature_settings` **Changed** **Breaking** :warning:\n* `polar.organizations.list()`: `response.items.[].feature_settings` **Changed** **Breaking** :warning:\n* `polar.organizations.create()`: \n * `request.feature_settings` **Changed** **Breaking** :warning:\n * `response.feature_settings` **Changed** **Breaking** :warning:\n* `polar.organizations.get()`: `response.feature_settings` **Changed** **Breaking** :warning:\n* `polar.organizations.update()`: \n * `request.organization_update.feature_settings` **Changed** **Breaking** :warning:\n * `response.feature_settings` **Changed** **Breaking** :warning:\n* `polar.event-types.list()`: `response.items.[]` **Changed** **Breaking** :warning:\n* `polar.events.get()`: `response.[system_event]` **Changed** **Breaking** :warning:\n* `polar.customer-seats.assign_seat()`: `request` **Changed** **Breaking** :warning:\n* `polar.discounts.create()`: `request` **Changed** **Breaking** :warning:\n* `polar.subscriptions.update()`: \n * `request.subscription_update.[subscription_update_clear]` **Added**\n* `polar.members.create_member()`: \n * `request.role` **Changed**\n* `polar.customer_portal.customers.update()`: \n * `request.default_payment_method_id` **Added**\n* `polar.orders.receipt()`: **Added**\n* `polar.customer_portal.orders.list()`: `response.items.[]` **Changed**\n* `polar.customer_portal.orders.get()`: `response` **Changed**\n* `polar.customer_portal.orders.update()`: `response` **Changed**\n* `polar.customer_portal.subscriptions.update()`: \n * `request.customer_subscription_update.[customer_subscription_update_clear]` **Added**\n* `polar.orders.list()`: `response.items.[]` **Changed**\n* `polar.orders.get()`: `response` **Changed**\n* `polar.customer_portal.orders.receipt()`: **Added**\n* `polar.orders.update()`: `response` **Changed**\n"
4703+
releaseNotes: |
4704+
## Python SDK Changes Detected:
4705+
* `polar.organizations.list_organizations()`: **Added**
4706+
* `polar.organizations.list()`: **Deleted** **Breaking** :warning:
4707+
* `polar.customer_portal.customers.add_payment_method()`: `error.status[400]` **Added**
47004708
trackedFiles:
47014709
.devcontainer/README.md:
47024710
last_write_checksum: sha1:e2a191a1fa8ceb27387eb32eabf36f7ad16a532c
@@ -4709,7 +4717,7 @@ trackedFiles:
47094717
.vscode/settings.json:
47104718
last_write_checksum: sha1:f84632c81029fcdda8c3b0c768d02b836fc80526
47114719
USAGE.md:
4712-
last_write_checksum: sha1:f0b26c208168f2dff9aa26cdbaf5c1a3a8fbff98
4720+
last_write_checksum: sha1:100ad323976442d76b2055854c14371dbb36e2d5
47134721
docs/models/activesubscriptions.md:
47144722
last_write_checksum: sha1:b3eaf87dcdf62890d684cfc6ec8ddb2f574475c9
47154723
docs/models/activeuserbyevent.md:
@@ -6584,6 +6592,8 @@ trackedFiles:
65846592
last_write_checksum: sha1:88efec40525c06ec229d0416d7f3b94692208d0f
65856593
docs/models/paymentmethodinusebyactivesubscription.md:
65866594
last_write_checksum: sha1:40d4ab667210c5d634601aa941be855d539b2160
6595+
docs/models/paymentmethodsetupfailed.md:
6596+
last_write_checksum: sha1:f5a98f6db8c9f98ea5d5bbbdb72eac4d44af46b3
65876597
docs/models/paymentnotready.md:
65886598
last_write_checksum: sha1:432398707451baaf2d86099de54b03ee760df963
65896599
docs/models/paymentprocessor.md:
@@ -7161,15 +7171,15 @@ trackedFiles:
71617171
docs/sdks/organizationaccesstokens/README.md:
71627172
last_write_checksum: sha1:05bb349d7b4ac8d0feda927af81a9a71de2e4684
71637173
docs/sdks/organizations/README.md:
7164-
last_write_checksum: sha1:539a9bb438f60e85284e0630399d566cdb139b2c
7174+
last_write_checksum: sha1:3fdbe442ff036467bbe8bfcd5befafc7d04c9d40
71657175
docs/sdks/payments/README.md:
71667176
last_write_checksum: sha1:c0c2c61bef213dfafcb00274baddd1c43ba3e602
71677177
docs/sdks/polarbenefitgrants/README.md:
71687178
last_write_checksum: sha1:3250975e14ed5f0eee012ac31d644de61fc8946e
71697179
docs/sdks/polarcustomermeters/README.md:
71707180
last_write_checksum: sha1:3afd1422131745f9eeaf55cb8a28e386d3684d83
71717181
docs/sdks/polarcustomers/README.md:
7172-
last_write_checksum: sha1:beef732c191b592284cf3511a7b31e05ac6f08a8
7182+
last_write_checksum: sha1:37ee8734ef1d43389ea8c19278f21c54c8cd673f
71737183
docs/sdks/polarlicensekeys/README.md:
71747184
last_write_checksum: sha1:01f6ad4f58453a9ef561beee742f8aebf20f42d8
71757185
docs/sdks/polarmembers/README.md:
@@ -7213,7 +7223,7 @@ trackedFiles:
72137223
src/polar_sdk/_hooks/types.py:
72147224
last_write_checksum: sha1:a218c66f3e2d1f1b9af54f270472b970b0cc1913
72157225
src/polar_sdk/_version.py:
7216-
last_write_checksum: sha1:d9ff953d823bfd0059ba15ec4ddc7d34b0cdd5a9
7226+
last_write_checksum: sha1:0cbd09261bddbdc5b1af2719c9fa121ee9e41738
72177227
src/polar_sdk/basesdk.py:
72187228
last_write_checksum: sha1:4523ea81f1381f171fe2d4e60f85b82203208d02
72197229
src/polar_sdk/benefit_grants.py:
@@ -7263,7 +7273,7 @@ trackedFiles:
72637273
src/polar_sdk/metrics_sdk.py:
72647274
last_write_checksum: sha1:c30599374f77c15def258831ff82e18b21155976
72657275
src/polar_sdk/models/__init__.py:
7266-
last_write_checksum: sha1:3eaefb9aeeaff31cb27ff3605b83384986504227
7276+
last_write_checksum: sha1:3096e0785f63236869bc703a25167e79bc694e62
72677277
src/polar_sdk/models/address.py:
72687278
last_write_checksum: sha1:083edb7f045174ac1aea30545e9981c33f07d57d
72697279
src/polar_sdk/models/addressdict.py:
@@ -8434,6 +8444,8 @@ trackedFiles:
84348444
last_write_checksum: sha1:479565160d08c6c40db2040dc9fc85ff91c1ef23
84358445
src/polar_sdk/models/paymentmethodinusebyactivesubscription.py:
84368446
last_write_checksum: sha1:4c48e18c0fd51dbe2e4da0388f22904a96fdf192
8447+
src/polar_sdk/models/paymentmethodsetupfailed.py:
8448+
last_write_checksum: sha1:49a24da7ab74cfe9800505934249743adf44717a
84378449
src/polar_sdk/models/paymentnotready.py:
84388450
last_write_checksum: sha1:984ca3217bddf6b7dff363723bbec523a8b3f836
84398451
src/polar_sdk/models/paymentprocessor.py:
@@ -8817,15 +8829,15 @@ trackedFiles:
88178829
src/polar_sdk/organization_access_tokens.py:
88188830
last_write_checksum: sha1:fc169e6debb5c6918755d3c3ce2dfdda2fad8ce0
88198831
src/polar_sdk/organizations.py:
8820-
last_write_checksum: sha1:3c21a0fcba6f317fa1ba9a6b7fcc3ca4f8d1e35a
8832+
last_write_checksum: sha1:7bbeff0d7a492c946b6eafc1ed411c5d63ecad00
88218833
src/polar_sdk/payments.py:
88228834
last_write_checksum: sha1:a5dded8ecdfef5faf4ce25fedaeed39c10adb881
88238835
src/polar_sdk/polar_benefit_grants.py:
88248836
last_write_checksum: sha1:0f8f499e162deaa8e1a570afc9327be5f24cda38
88258837
src/polar_sdk/polar_customer_meters.py:
88268838
last_write_checksum: sha1:b2831a77fd6408b00f32ff405a6815865673d569
88278839
src/polar_sdk/polar_customers.py:
8828-
last_write_checksum: sha1:2e9118e4bea24cfcd8ff21571c1f55826c816fae
8840+
last_write_checksum: sha1:7f5ae5234e5bb95f63c945eed6dd3d942176ddf3
88298841
src/polar_sdk/polar_license_keys.py:
88308842
last_write_checksum: sha1:21662dddfbe9a0df7f9e4d2992bb493d6fc60f4b
88318843
src/polar_sdk/polar_members.py:
@@ -8843,15 +8855,17 @@ trackedFiles:
88438855
src/polar_sdk/refunds.py:
88448856
last_write_checksum: sha1:3a40acdfa627d784ed220738c094536dbcd1a60f
88458857
src/polar_sdk/sdk.py:
8846-
last_write_checksum: sha1:8546539ea54f6b9708eff5e463e91e3059f27273
8858+
last_write_checksum: sha1:7a44c48c491ac2c41d1b0d049bacfd04fbcfcc00
88478859
src/polar_sdk/sdkconfiguration.py:
88488860
last_write_checksum: sha1:b9b14902f71407dd21a4b209f2e342c54a0a86a7
88498861
src/polar_sdk/seats.py:
88508862
last_write_checksum: sha1:157c57cd5aceea3ed4d99e7a78803123d1125de8
88518863
src/polar_sdk/subscriptions.py:
88528864
last_write_checksum: sha1:f0b56069383999baf694f765fbb009907a36b921
88538865
src/polar_sdk/types/__init__.py:
8854-
last_write_checksum: sha1:140ebdd01a46f92ffc710c52c958c4eba3cf68ed
8866+
last_write_checksum: sha1:f9ad14217f832e74f594285960125add50324be9
8867+
src/polar_sdk/types/base64fileinput.py:
8868+
last_write_checksum: sha1:4780e893d3853b5a6e28d9a6ca3ee102ce0f502d
88558869
src/polar_sdk/types/basemodel.py:
88568870
last_write_checksum: sha1:10d84aedeb9d35edfdadf2c3020caa1d24d8b584
88578871
src/polar_sdk/utils/__init__.py:

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ generation:
3232
persistentEdits: {}
3333
versioningStrategy: automatic
3434
python:
35-
version: 0.31.5
35+
version: 0.31.6
3636
additionalDependencies:
3737
dev:
3838
pydantic-ai-slim: ^0.1.0

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ speakeasyVersion: 1.648.0
22
sources:
33
Polar-OAS:
44
sourceNamespace: polar-oas
5-
sourceRevisionDigest: sha256:71002fcc451a5c21286dce02a4500670f3d77017019bf7fd20a4fd669d20c34c
6-
sourceBlobDigest: sha256:0effc8c2537f9cb96cc364f1b6d6e0eb3997dab0bf4b6803d46cca8099f4aa11
5+
sourceRevisionDigest: sha256:10be6bdfab6fc23f66d33b5abc98b0e4b16b3cab0bbe5029b8e2cca1b3a24e70
6+
sourceBlobDigest: sha256:d7d531e86846baa1ec580dbe57c76ab638715c1f303fab9635d88cd26c9c7451
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1779064662
9+
- speakeasy-sdk-regen-1779324054
1010
- 0.1.0
1111
targets:
1212
polar:
1313
source: Polar-OAS
1414
sourceNamespace: polar-oas
15-
sourceRevisionDigest: sha256:71002fcc451a5c21286dce02a4500670f3d77017019bf7fd20a4fd669d20c34c
16-
sourceBlobDigest: sha256:0effc8c2537f9cb96cc364f1b6d6e0eb3997dab0bf4b6803d46cca8099f4aa11
15+
sourceRevisionDigest: sha256:10be6bdfab6fc23f66d33b5abc98b0e4b16b3cab0bbe5029b8e2cca1b3a24e70
16+
sourceBlobDigest: sha256:d7d531e86846baa1ec580dbe57c76ab638715c1f303fab9635d88cd26c9c7451
1717
codeSamplesNamespace: polar-oas-py-code-samples
18-
codeSamplesRevisionDigest: sha256:32cd60a9a754af414d62c8516a90943306093cf779f184d73635f472848df454
18+
codeSamplesRevisionDigest: sha256:581545372f1e107474d0663b10b3ae87e0548feded0de1f7c509cc47d1a2a2bf
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ with Polar(
120120
access_token="<YOUR_BEARER_TOKEN_HERE>",
121121
) as polar:
122122

123-
res = polar.organizations.list(page=1, limit=10)
123+
res = polar.organizations.list_organizations(page=1, limit=10)
124124

125125
while res is not None:
126126
# Handle items
@@ -143,7 +143,7 @@ async def main():
143143
access_token="<YOUR_BEARER_TOKEN_HERE>",
144144
) as polar:
145145

146-
res = await polar.organizations.list_async(page=1, limit=10)
146+
res = await polar.organizations.list_organizations_async(page=1, limit=10)
147147

148148
while res is not None:
149149
# Handle items
@@ -460,7 +460,7 @@ of crashing on a `pydantic.ValidationError`.
460460

461461
### [organizations](docs/sdks/organizations/README.md)
462462

463-
* [list](docs/sdks/organizations/README.md#list) - List Organizations
463+
* [list_organizations](docs/sdks/organizations/README.md#list_organizations) - List Organizations
464464
* [create](docs/sdks/organizations/README.md#create) - Create Organization
465465
* [get](docs/sdks/organizations/README.md#get) - Get Organization
466466
* [update](docs/sdks/organizations/README.md#update) - Update Organization
@@ -521,7 +521,7 @@ with Polar(
521521
access_token="<YOUR_BEARER_TOKEN_HERE>",
522522
) as polar:
523523

524-
res = polar.organizations.list(page=1, limit=10,
524+
res = polar.organizations.list_organizations(page=1, limit=10,
525525
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
526526

527527
while res is not None:
@@ -542,7 +542,7 @@ with Polar(
542542
access_token="<YOUR_BEARER_TOKEN_HERE>",
543543
) as polar:
544544

545-
res = polar.organizations.list(page=1, limit=10)
545+
res = polar.organizations.list_organizations(page=1, limit=10)
546546

547547
while res is not None:
548548
# Handle items
@@ -578,7 +578,7 @@ with Polar(
578578
res = None
579579
try:
580580

581-
res = polar.organizations.list(page=1, limit=10)
581+
res = polar.organizations.list_organizations(page=1, limit=10)
582582

583583
while res is not None:
584584
# Handle items
@@ -604,7 +604,7 @@ with Polar(
604604
* [`PolarError`](./src/polar_sdk/models/polarerror.py): The base class for HTTP error responses.
605605
* [`HTTPValidationError`](./src/polar_sdk/models/httpvalidationerror.py): Validation Error. Status code `422`. *
606606

607-
<details><summary>Less common errors (25)</summary>
607+
<details><summary>Less common errors (26)</summary>
608608

609609
<br />
610610

@@ -629,6 +629,7 @@ with Polar(
629629
* [`MissingInvoiceBillingDetails`](./src/polar_sdk/models/missinginvoicebillingdetails.py): Order is not paid or is missing billing name or address. Status code `422`. Applicable to 2 of 183 methods.*
630630
* [`NotPaidOrder`](./src/polar_sdk/models/notpaidorder.py): Order is not paid or is missing billing name or address. Status code `422`. Applicable to 2 of 183 methods.*
631631
* [`PaymentError`](./src/polar_sdk/models/paymenterror.py): The payment failed. Status code `400`. Applicable to 1 of 183 methods.*
632+
* [`PaymentMethodSetupFailed`](./src/polar_sdk/models/paymentmethodsetupfailed.py): The card was declined while setting up the payment method. Status code `400`. Applicable to 1 of 183 methods.*
632633
* [`CustomerNotReady`](./src/polar_sdk/models/customernotready.py): Customer is not ready to confirm a payment method. Status code `400`. Applicable to 1 of 183 methods.*
633634
* [`PaymentMethodInUseByActiveSubscription`](./src/polar_sdk/models/paymentmethodinusebyactivesubscription.py): Payment method is used by active subscription(s). Status code `400`. Applicable to 1 of 183 methods.*
634635
* [`RefundedAlready`](./src/polar_sdk/models/refundedalready.py): Order is already fully refunded. Status code `403`. Applicable to 1 of 183 methods.*
@@ -665,7 +666,7 @@ with Polar(
665666
access_token="<YOUR_BEARER_TOKEN_HERE>",
666667
) as polar:
667668

668-
res = polar.organizations.list(page=1, limit=10)
669+
res = polar.organizations.list_organizations(page=1, limit=10)
669670

670671
while res is not None:
671672
# Handle items
@@ -686,7 +687,7 @@ with Polar(
686687
access_token="<YOUR_BEARER_TOKEN_HERE>",
687688
) as polar:
688689

689-
res = polar.organizations.list(page=1, limit=10)
690+
res = polar.organizations.list_organizations(page=1, limit=10)
690691

691692
while res is not None:
692693
# Handle items
@@ -797,7 +798,7 @@ with Polar(
797798
access_token="<YOUR_BEARER_TOKEN_HERE>",
798799
) as polar:
799800

800-
res = polar.organizations.list(page=1, limit=10)
801+
res = polar.organizations.list_organizations(page=1, limit=10)
801802

802803
while res is not None:
803804
# Handle items
@@ -886,7 +887,7 @@ with Polar(
886887
access_token="<YOUR_BEARER_TOKEN_HERE>",
887888
) as polar:
888889

889-
res = polar.organizations.list(page=1, limit=10)
890+
res = polar.organizations.list_organizations(page=1, limit=10)
890891

891892
while res is not None:
892893
# Handle items

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1123,4 +1123,14 @@ Based on:
11231123
### Generated
11241124
- [python v0.31.5] .
11251125
### Releases
1126-
- [PyPI v0.31.5] https://pypi.org/project/polar-sdk/0.31.5 - .
1126+
- [PyPI v0.31.5] https://pypi.org/project/polar-sdk/0.31.5 - .
1127+
1128+
## 2026-05-28 00:36:19
1129+
### Changes
1130+
Based on:
1131+
- OpenAPI Doc
1132+
- Speakeasy CLI 1.648.0 (2.737.0) https://github.com/speakeasy-api/speakeasy
1133+
### Generated
1134+
- [python v0.31.6] .
1135+
### Releases
1136+
- [PyPI v0.31.6] https://pypi.org/project/polar-sdk/0.31.6 - .

USAGE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ with Polar(
88
access_token="<YOUR_BEARER_TOKEN_HERE>",
99
) as polar:
1010

11-
res = polar.organizations.list(page=1, limit=10)
11+
res = polar.organizations.list_organizations(page=1, limit=10)
1212

1313
while res is not None:
1414
# Handle items
@@ -31,7 +31,7 @@ async def main():
3131
access_token="<YOUR_BEARER_TOKEN_HERE>",
3232
) as polar:
3333

34-
res = await polar.organizations.list_async(page=1, limit=10)
34+
res = await polar.organizations.list_organizations_async(page=1, limit=10)
3535

3636
while res is not None:
3737
# Handle items

codeSamples.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ actions:
944944
"x-codeSamples":
945945
- "lang": "python"
946946
"label": "Python (SDK)"
947-
"source": "from polar_sdk import Polar\n\n\nwith Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n) as polar:\n\n res = polar.organizations.list(page=1, limit=10)\n\n while res is not None:\n # Handle items\n\n res = res.next()"
947+
"source": "from polar_sdk import Polar\n\n\nwith Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n) as polar:\n\n res = polar.organizations.list_organizations(page=1, limit=10)\n\n while res is not None:\n # Handle items\n\n res = res.next()"
948948
- target: $["paths"]["/v1/organizations/"]["post"]
949949
update:
950950
"x-codeSamples":
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# PaymentMethodSetupFailed
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description | Example |
7+
| ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- |
8+
| `error` | *Literal["PaymentMethodSetupFailed"]* | :heavy_check_mark: | N/A | PaymentMethodSetupFailed |
9+
| `detail` | *str* | :heavy_check_mark: | N/A | |

docs/sdks/organizations/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55

66
### Available Operations
77

8-
* [list](#list) - List Organizations
8+
* [list_organizations](#list_organizations) - List Organizations
99
* [create](#create) - Create Organization
1010
* [get](#get) - Get Organization
1111
* [update](#update) - Update Organization
1212

13-
## list
13+
## list_organizations
1414

1515
List organizations.
1616

@@ -27,7 +27,7 @@ with Polar(
2727
access_token="<YOUR_BEARER_TOKEN_HERE>",
2828
) as polar:
2929

30-
res = polar.organizations.list(page=1, limit=10)
30+
res = polar.organizations.list_organizations(page=1, limit=10)
3131

3232
while res is not None:
3333
# Handle items

0 commit comments

Comments
 (0)