Skip to content

Commit d682b28

Browse files
committed
## Python SDK Changes Detected:
* `polar.orders.list()`: `response.items.[]` **Changed** **Breaking** ⚠️ * `polar.orders.get()`: `response` **Changed** **Breaking** ⚠️ * `polar.orders.update()`: `response` **Changed** **Breaking** ⚠️ * `polar.customer_portal.orders.list()`: `response.items.[].invoice_number` **Changed** **Breaking** ⚠️ * `polar.customer_portal.orders.get()`: `response.invoice_number` **Changed** **Breaking** ⚠️ * `polar.events.get()`: `response.[system_event].[benefit.granted]` **Changed** **Breaking** ⚠️ * `polar.events.list()`: `response.[list_resource_event_].items.[].[system_event]` **Changed** **Breaking** ⚠️ * `polar.customer_portal.orders.update()`: `response.invoice_number` **Changed** **Breaking** ⚠️ * `polar.organizations.get()`: `response.feature_settings.off_session_charges_enabled` **Added** * `polar.subscriptions.revoke()`: `response.customer.default_payment_method_id` **Added** * `polar.organizations.list()`: **Deleted** **Breaking** ⚠️ * `polar._endpointcustomer_created_post()`: * `request.data` **Changed** * `polar._endpointcustomer_updated_post()`: * `request.data` **Changed** * `polar._endpointcustomer_deleted_post()`: * `request.data` **Changed** * `polar._endpointcustomer_state_changed_post()`: * `request.data` **Changed** * `polar._endpointorder_created_post()`: * `request.data` **Changed** * `polar._endpointorder_updated_post()`: * `request.data` **Changed** * `polar._endpointorder_paid_post()`: * `request.data` **Changed** * `polar._endpointorder_refunded_post()`: * `request.data` **Changed** * `polar._endpointsubscription_created_post()`: * `request.data.customer.default_payment_method_id` **Added** * `polar._endpointsubscription_updated_post()`: * `request.data.customer.default_payment_method_id` **Added** * `polar._endpointsubscription_active_post()`: * `request.data.customer.default_payment_method_id` **Added** * `polar._endpointsubscription_canceled_post()`: * `request.data.customer.default_payment_method_id` **Added** * `polar._endpointsubscription_uncanceled_post()`: * `request.data.customer.default_payment_method_id` **Added** * `polar._endpointsubscription_revoked_post()`: * `request.data.customer.default_payment_method_id` **Added** * `polar._endpointsubscription_past_due_post()`: * `request.data.customer.default_payment_method_id` **Added** * `polar._endpointorganization_updated_post()`: * `request.data.feature_settings.off_session_charges_enabled` **Added** * `polar._endpointbenefit_grant_created_post()`: * `request.data.[benefit_grant_feature_flag_webhook].customer` **Changed** * `polar._endpointbenefit_grant_updated_post()`: * `request.data.[benefit_grant_git_hub_repository_webhook].customer` **Changed** * `polar._endpointbenefit_grant_cycled_post()`: * `request.data.[benefit_grant_discord_webhook].customer` **Changed** * `polar._endpointbenefit_grant_revoked_post()`: * `request.data.[benefit_grant_custom_webhook].customer` **Changed** * `polar.organizations.create()`: * `request.feature_settings.off_session_charges_enabled` **Added** * `response.feature_settings.off_session_charges_enabled` **Added** * `polar.customers.list_payment_methods()`: **Added** * `polar.organizations.update()`: * `request.organization_update.feature_settings.off_session_charges_enabled` **Added** * `response.feature_settings.off_session_charges_enabled` **Added** * `polar.subscriptions.list()`: `response.items.[].customer.default_payment_method_id` **Added** * `polar.subscriptions.create()`: `response.customer.default_payment_method_id` **Added** * `polar.subscriptions.get()`: `response.customer.default_payment_method_id` **Added** * `polar.customers.list_payment_methods_external()`: **Added** * `polar.subscriptions.update()`: `response.customer.default_payment_method_id` **Added** * `polar.benefits.grants()`: `response.items.[].customer` **Changed** * `polar.benefit-grants.list()`: `response.items.[].customer` **Changed** * `polar.license_keys.list()`: `response.items.[].customer.default_payment_method_id` **Added** * `polar.license_keys.get()`: `response.customer.default_payment_method_id` **Added** * `polar.license_keys.update()`: `response.customer.default_payment_method_id` **Added** * `polar.license_keys.get_activation()`: `response.license_key.customer.default_payment_method_id` **Added** * `polar.license_keys.validate()`: `response.customer.default_payment_method_id` **Added** * `polar.license_keys.activate()`: `response.license_key.customer.default_payment_method_id` **Added** * `polar.customers.list()`: * `request.active` **Added** * `response.items.[]` **Changed** * `polar.customers.create()`: `response` **Changed** * `polar.customers.get()`: `response` **Changed** * `polar.customers.update()`: `response` **Changed** * `polar.customers.get_external()`: `response` **Changed** * `polar.customers.update_external()`: `response` **Changed** * `polar.customers.get_state()`: `response` **Changed** * `polar.customers.get_state_external()`: `response` **Changed** * `polar.customer_portal.customers.add_payment_method()`: `error.status[400]` **Added** * `polar.customer_portal.license_keys.list()`: `response.items.[].customer.default_payment_method_id` **Added** * `polar.customer_portal.license_keys.get()`: `response.customer.default_payment_method_id` **Added** * `polar.orders.finalize()`: **Added** * `polar.customer_portal.license_keys.validate()`: `response.customer.default_payment_method_id` **Added** * `polar.customer_portal.license_keys.activate()`: `response.license_key.customer.default_payment_method_id` **Added** * `polar.customer-sessions.create()`: `response.customer` **Changed** * `polar.orders.create()`: **Added** * `polar.organizations.list_organizations()`: **Added** * `polar.customer_meters.list()`: `response.items.[].customer` **Changed** * `polar.customer_meters.get()`: `response.customer` **Changed** * `polar.payments.list()`: `request.customer_id` **Added**
1 parent 331a4fe commit d682b28

101 files changed

Lines changed: 3019 additions & 460 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.speakeasy/gen.lock

Lines changed: 232 additions & 93 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 6 additions & 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
@@ -47,6 +47,7 @@ python:
4747
authors:
4848
- Polar
4949
baseErrorName: PolarError
50+
bodyVariantOverloads: false
5051
clientServerStatusCodesAsErrors: true
5152
constFieldCasing: upper
5253
defaultErrorName: SDKError
@@ -74,14 +75,18 @@ python:
7475
license: ""
7576
maxMethodParams: 100
7677
methodArguments: infer-optional-args
78+
methodTimeoutArgument: timeout-ms
79+
methodTimeoutUnits: milliseconds
7780
moduleName: ""
7881
multipartArrayFormat: legacy
82+
optionalDependencies: {}
7983
outputModelSuffix: output
8084
packageManager: poetry
8185
packageName: polar-sdk
8286
preApplyUnionDiscriminators: false
8387
pytestFilterWarnings: []
8488
pytestTimeout: 0
89+
rawResponseHelpers: false
8590
responseFormat: flat
8691
sseFlatResponse: false
8792
templateVersion: v2

.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:a4d15d23310aa36bc88911c219a8fad303f674c9067c7b246adb7ba0e9d596a8
6+
sourceBlobDigest: sha256:4c6191c850f793a2a5cd2ec2cb8af7e7102102f72010daad43c185d406fe0a9b
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:a4d15d23310aa36bc88911c219a8fad303f674c9067c7b246adb7ba0e9d596a8
16+
sourceBlobDigest: sha256:4c6191c850f793a2a5cd2ec2cb8af7e7102102f72010daad43c185d406fe0a9b
1717
codeSamplesNamespace: polar-oas-py-code-samples
18-
codeSamplesRevisionDigest: sha256:32cd60a9a754af414d62c8516a90943306093cf779f184d73635f472848df454
18+
codeSamplesRevisionDigest: sha256:47319d137669029b7a2c21047f3b1de02f00f22e08ce2a02a57ba3d26b23458a
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 40 additions & 31 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
@@ -352,6 +352,8 @@ of crashing on a `pydantic.ValidationError`.
352352
* [delete_external](docs/sdks/customers/README.md#delete_external) - Delete Customer by External ID
353353
* [get_state](docs/sdks/customers/README.md#get_state) - Get Customer State
354354
* [get_state_external](docs/sdks/customers/README.md#get_state_external) - Get Customer State by External ID
355+
* [list_payment_methods](docs/sdks/customers/README.md#list_payment_methods) - List Customer Payment Methods
356+
* [list_payment_methods_external](docs/sdks/customers/README.md#list_payment_methods_external) - List Customer Payment Methods by External ID
355357

356358
### [discounts](docs/sdks/discounts/README.md)
357359

@@ -444,9 +446,11 @@ of crashing on a `pydantic.ValidationError`.
444446
### [orders](docs/sdks/orders/README.md)
445447

446448
* [list](docs/sdks/orders/README.md#list) - List Orders
449+
* [create](docs/sdks/orders/README.md#create) - Create Order
447450
* [export](docs/sdks/orders/README.md#export) - Export Orders
448451
* [get](docs/sdks/orders/README.md#get) - Get Order
449452
* [update](docs/sdks/orders/README.md#update) - Update Order
453+
* [finalize](docs/sdks/orders/README.md#finalize) - Finalize Order
450454
* [generate_invoice](docs/sdks/orders/README.md#generate_invoice) - Generate Order Invoice
451455
* [invoice](docs/sdks/orders/README.md#invoice) - Get Order Invoice
452456
* [receipt](docs/sdks/orders/README.md#receipt) - Get Order Receipt
@@ -460,7 +464,7 @@ of crashing on a `pydantic.ValidationError`.
460464

461465
### [organizations](docs/sdks/organizations/README.md)
462466

463-
* [list](docs/sdks/organizations/README.md#list) - List Organizations
467+
* [list_organizations](docs/sdks/organizations/README.md#list_organizations) - List Organizations
464468
* [create](docs/sdks/organizations/README.md#create) - Create Organization
465469
* [get](docs/sdks/organizations/README.md#get) - Get Organization
466470
* [update](docs/sdks/organizations/README.md#update) - Update Organization
@@ -521,7 +525,7 @@ with Polar(
521525
access_token="<YOUR_BEARER_TOKEN_HERE>",
522526
) as polar:
523527

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

527531
while res is not None:
@@ -542,7 +546,7 @@ with Polar(
542546
access_token="<YOUR_BEARER_TOKEN_HERE>",
543547
) as polar:
544548

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

547551
while res is not None:
548552
# Handle items
@@ -578,7 +582,7 @@ with Polar(
578582
res = None
579583
try:
580584

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

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

607-
<details><summary>Less common errors (25)</summary>
611+
<details><summary>Less common errors (30)</summary>
608612

609613
<br />
610614

@@ -615,26 +619,31 @@ with Polar(
615619

616620

617621
**Inherit from [`PolarError`](./src/polar_sdk/models/polarerror.py)**:
618-
* [`ResourceNotFound`](./src/polar_sdk/models/resourcenotfound.py): Status code `404`. Applicable to 87 of 183 methods.*
619-
* [`NotPermitted`](./src/polar_sdk/models/notpermitted.py): Status code `403`. Applicable to 10 of 183 methods.*
620-
* [`Unauthorized`](./src/polar_sdk/models/unauthorized.py): Not authorized to manage license key. Status code `401`. Applicable to 5 of 183 methods.*
621-
* [`AlreadyCanceledSubscription`](./src/polar_sdk/models/alreadycanceledsubscription.py): Status code `403`. Applicable to 4 of 183 methods.*
622-
* [`AlreadyActiveSubscriptionError`](./src/polar_sdk/models/alreadyactivesubscriptionerror.py): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of 183 methods.*
623-
* [`NotOpenCheckout`](./src/polar_sdk/models/notopencheckout.py): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of 183 methods.*
624-
* [`PaymentNotReady`](./src/polar_sdk/models/paymentnotready.py): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of 183 methods.*
625-
* [`TrialAlreadyRedeemed`](./src/polar_sdk/models/trialalreadyredeemed.py): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of 183 methods.*
626-
* [`ExpiredCheckoutError`](./src/polar_sdk/models/expiredcheckouterror.py): The checkout session is expired. Status code `410`. Applicable to 3 of 183 methods.*
627-
* [`PaymentFailed`](./src/polar_sdk/models/paymentfailed.py): Payment required to apply the subscription update. Status code `402`. Applicable to 2 of 183 methods.*
628-
* [`SubscriptionLocked`](./src/polar_sdk/models/subscriptionlocked.py): Subscription is pending an update. Status code `409`. Applicable to 2 of 183 methods.*
629-
* [`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.*
630-
* [`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.*
631-
* [`PaymentError`](./src/polar_sdk/models/paymenterror.py): The payment failed. Status code `400`. Applicable to 1 of 183 methods.*
632-
* [`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.*
633-
* [`PaymentMethodInUseByActiveSubscription`](./src/polar_sdk/models/paymentmethodinusebyactivesubscription.py): Payment method is used by active subscription(s). Status code `400`. Applicable to 1 of 183 methods.*
634-
* [`RefundedAlready`](./src/polar_sdk/models/refundedalready.py): Order is already fully refunded. Status code `403`. Applicable to 1 of 183 methods.*
635-
* [`PaymentAlreadyInProgress`](./src/polar_sdk/models/paymentalreadyinprogress.py): Payment already in progress. Status code `409`. Applicable to 1 of 183 methods.*
636-
* [`OrderNotEligibleForRetry`](./src/polar_sdk/models/ordernoteligibleforretry.py): Order not eligible for retry or payment confirmation failed. Status code `422`. Applicable to 1 of 183 methods.*
637-
* [`ManualRetryLimitExceeded`](./src/polar_sdk/models/manualretrylimitexceeded.py): Manual retry limit exceeded. Status code `429`. Applicable to 1 of 183 methods.*
622+
* [`ResourceNotFound`](./src/polar_sdk/models/resourcenotfound.py): Status code `404`. Applicable to 90 of 187 methods.*
623+
* [`NotPermitted`](./src/polar_sdk/models/notpermitted.py): Status code `403`. Applicable to 10 of 187 methods.*
624+
* [`Unauthorized`](./src/polar_sdk/models/unauthorized.py): Not authorized to manage license key. Status code `401`. Applicable to 5 of 187 methods.*
625+
* [`AlreadyCanceledSubscription`](./src/polar_sdk/models/alreadycanceledsubscription.py): Status code `403`. Applicable to 4 of 187 methods.*
626+
* [`PaymentFailed`](./src/polar_sdk/models/paymentfailed.py): Status code `402`. Applicable to 3 of 187 methods.*
627+
* [`AlreadyActiveSubscriptionError`](./src/polar_sdk/models/alreadyactivesubscriptionerror.py): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of 187 methods.*
628+
* [`NotOpenCheckout`](./src/polar_sdk/models/notopencheckout.py): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of 187 methods.*
629+
* [`PaymentNotReady`](./src/polar_sdk/models/paymentnotready.py): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of 187 methods.*
630+
* [`TrialAlreadyRedeemed`](./src/polar_sdk/models/trialalreadyredeemed.py): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of 187 methods.*
631+
* [`ExpiredCheckoutError`](./src/polar_sdk/models/expiredcheckouterror.py): The checkout session is expired. Status code `410`. Applicable to 3 of 187 methods.*
632+
* [`SubscriptionLocked`](./src/polar_sdk/models/subscriptionlocked.py): Subscription is pending an update. Status code `409`. Applicable to 2 of 187 methods.*
633+
* [`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 187 methods.*
634+
* [`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 187 methods.*
635+
* [`PaymentError`](./src/polar_sdk/models/paymenterror.py): The payment failed. Status code `400`. Applicable to 1 of 187 methods.*
636+
* [`PaymentMethodSetupFailed`](./src/polar_sdk/models/paymentmethodsetupfailed.py): The card was declined while setting up the payment method. Status code `400`. Applicable to 1 of 187 methods.*
637+
* [`CustomerNotReady`](./src/polar_sdk/models/customernotready.py): Customer is not ready to confirm a payment method. Status code `400`. Applicable to 1 of 187 methods.*
638+
* [`PaymentMethodInUseByActiveSubscription`](./src/polar_sdk/models/paymentmethodinusebyactivesubscription.py): Payment method is used by active subscription(s). Status code `400`. Applicable to 1 of 187 methods.*
639+
* [`PaymentActionRequired`](./src/polar_sdk/models/paymentactionrequired.py): The charge failed, or requires customer authentication (e.g. a 3DS challenge) that can't be completed off-session. Status code `402`. Applicable to 1 of 187 methods.*
640+
* [`OffSessionChargesNotEnabled`](./src/polar_sdk/models/offsessionchargesnotenabled.py): Off-session charges are not enabled for this organization, or its account can't currently accept payments. Status code `403`. Applicable to 1 of 187 methods.*
641+
* [`OrganizationNotReadyForPayments`](./src/polar_sdk/models/organizationnotreadyforpayments.py): Off-session charges are not enabled for this organization, or its account can't currently accept payments. Status code `403`. Applicable to 1 of 187 methods.*
642+
* [`RefundedAlready`](./src/polar_sdk/models/refundedalready.py): Order is already fully refunded. Status code `403`. Applicable to 1 of 187 methods.*
643+
* [`PaymentAlreadyInProgress`](./src/polar_sdk/models/paymentalreadyinprogress.py): Payment already in progress. Status code `409`. Applicable to 1 of 187 methods.*
644+
* [`OrderNotDraft`](./src/polar_sdk/models/ordernotdraft.py): The order is not in `draft` status. Status code `412`. Applicable to 1 of 187 methods.*
645+
* [`OrderNotEligibleForRetry`](./src/polar_sdk/models/ordernoteligibleforretry.py): Order not eligible for retry or payment confirmation failed. Status code `422`. Applicable to 1 of 187 methods.*
646+
* [`ManualRetryLimitExceeded`](./src/polar_sdk/models/manualretrylimitexceeded.py): Manual retry limit exceeded. Status code `429`. Applicable to 1 of 187 methods.*
638647
* [`ResponseValidationError`](./src/polar_sdk/models/responsevalidationerror.py): Type mismatch between the response data and the expected Pydantic model. Provides access to the Pydantic validation error via the `cause` attribute.
639648

640649
</details>
@@ -665,7 +674,7 @@ with Polar(
665674
access_token="<YOUR_BEARER_TOKEN_HERE>",
666675
) as polar:
667676

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

670679
while res is not None:
671680
# Handle items
@@ -686,7 +695,7 @@ with Polar(
686695
access_token="<YOUR_BEARER_TOKEN_HERE>",
687696
) as polar:
688697

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

691700
while res is not None:
692701
# Handle items
@@ -797,7 +806,7 @@ with Polar(
797806
access_token="<YOUR_BEARER_TOKEN_HERE>",
798807
) as polar:
799808

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

802811
while res is not None:
803812
# Handle items
@@ -886,7 +895,7 @@ with Polar(
886895
access_token="<YOUR_BEARER_TOKEN_HERE>",
887896
) as polar:
888897

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

891900
while res is not None:
892901
# 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-06-05 00:42:43
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

0 commit comments

Comments
 (0)