Skip to content

Commit 211e1ae

Browse files
speakeasybotfrankie567
authored andcommitted
## Python SDK Changes Detected:
* `polar.customer_portal.license_keys.list()`: `request.organization_id` **Removed** **Breaking** ⚠️ * `polar.customer_portal.orders.list()`: * `request.organization_id` **Removed** **Breaking** ⚠️ * `response.items.[].product.organization` **Changed** * `polar.events.get()`: `response` **Changed** **Breaking** ⚠️ * `polar.events.list()`: * `request.parent_id` **Added** * `response.items.[]` **Changed** **Breaking** ⚠️ * `polar.checkouts.client_update()`: `response` **Changed** **Breaking** ⚠️ * `polar.checkouts.update()`: `response` **Changed** **Breaking** ⚠️ * `polar._endpointcheckout_created_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar._endpointcheckout_updated_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar._endpointorganization_updated_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar.customer_portal.downloadables.list()`: `request.organization_id` **Removed** **Breaking** ⚠️ * `polar.organizations.create()`: * `request` **Changed** **Breaking** ⚠️ * `response` **Changed** * `polar.customer_portal.benefit-grants.list()`: * `request.organization_id` **Removed** **Breaking** ⚠️ * `response.items.[].[customer_benefit_grant_discord].benefit.organization` **Changed** * `polar.organizations.update()`: * `request.organization_update` **Changed** **Breaking** ⚠️ * `response` **Changed** * `polar.checkouts.client_confirm()`: `response` **Changed** **Breaking** ⚠️ * `polar.customer_portal.subscriptions.list()`: * `request.organization_id` **Removed** **Breaking** ⚠️ * `response.items.[].product.organization` **Changed** * `polar.checkouts.client_get()`: `response` **Changed** **Breaking** ⚠️ * `polar.checkouts.get()`: `response` **Changed** **Breaking** ⚠️ * `polar.checkouts.create()`: `response` **Changed** **Breaking** ⚠️ * `polar.checkouts.list()`: `response.items.[]` **Changed** **Breaking** ⚠️ * `polar.customer_portal.subscriptions.update()`: * `request.customer_subscription_update.[customer_subscription_update_seats]` **Added** * `response.product.organization` **Changed** * `polar.wallets.list()`: **Added** * `polar.webhooks.get_webhook_endpoint()`: `response.enabled` **Added** * `polar.organizations.list()`: `response.items.[]` **Changed** * `polar.webhooks.create_webhook_endpoint()`: `response.enabled` **Added** * `polar.webhooks.list_webhook_endpoints()`: `response.items.[].enabled` **Added** * `polar.subscriptions.update()`: * `request.subscription_update.[subscription_update_seats]` **Added** * `polar.metrics.get()`: `response` **Changed** * `polar.organizations.get()`: `response` **Changed** * `polar.customer_portal.benefit-grants.get()`: `response.[customer_benefit_grant_meter_credit].benefit.organization` **Changed** * `polar.customer_portal.benefit-grants.update()`: `response.[customer_benefit_grant_discord].benefit.organization` **Changed** * `polar.subscriptions.create()`: **Added** * `polar.webhooks.update_webhook_endpoint()`: * `request.webhook_endpoint_update.enabled` **Added** * `response.enabled` **Added** * `polar.customer_portal.seats.assign_seat()`: * `request.immediate_claim` **Added** * `polar.webhooks.reset_webhook_endpoint_secret()`: `response.enabled` **Added** * `polar.wallets.top_up()`: **Added** * `polar.customer_portal.orders.get()`: `response.product.organization` **Changed** * `polar.customer_portal.orders.update()`: `response.product.organization` **Changed** * `polar.customer_portal.organizations.get()`: `response.organization` **Changed** * `polar.wallets.get()`: **Added** * `polar.customer_portal.subscriptions.get()`: `response.product.organization` **Changed** * `polar.customer_portal.subscriptions.cancel()`: `response.product.organization` **Changed** * `polar.customer_portal.seats.list_claimed_subscriptions()`: `response.[].product.organization` **Changed** * `polar.customer-seats.assign_seat()`: * `request.immediate_claim` **Added** * `polar.customer_portal.wallets.list()`: **Added** * `polar.customer_portal.wallets.get()`: **Added** * `polar.events.ingest()`: * `request.events.[]` **Changed** * `response.duplicates` **Added**
1 parent 6667b86 commit 211e1ae

File tree

232 files changed

+5895
-748
lines changed

Some content is hidden

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

232 files changed

+5895
-748
lines changed

.speakeasy/gen.lock

Lines changed: 223 additions & 62 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ generation:
2727
generateNewTests: false
2828
skipResponseBodyAssertions: false
2929
python:
30-
version: 0.27.3
30+
version: 0.28.0
3131
additionalDependencies:
3232
dev:
3333
pydantic-ai-slim: ^0.1.0

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.639.1
1+
speakeasyVersion: 1.648.0
22
sources:
33
Polar-OAS:
44
sourceNamespace: polar-oas
5-
sourceRevisionDigest: sha256:9343d6aa497c1c405b9cf88797a95d9c859ddf6f0367906bd35868e23f755446
6-
sourceBlobDigest: sha256:e9577a783ad76bf532532b92267e85d0ada3d8e54d75117599f4644e7cf5ab30
5+
sourceRevisionDigest: sha256:c0187c3b97b30297429930c9b97513e82a6fb748fa42bb6ef632b447899f4063
6+
sourceBlobDigest: sha256:64e17fc520f1c7b5bf6663aa5279d8655e70ee7240fa77085f5486aa632e0275
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1761300543
9+
- speakeasy-sdk-regen-1761956132
1010
- 0.1.0
1111
targets:
1212
polar:
1313
source: Polar-OAS
1414
sourceNamespace: polar-oas
15-
sourceRevisionDigest: sha256:9343d6aa497c1c405b9cf88797a95d9c859ddf6f0367906bd35868e23f755446
16-
sourceBlobDigest: sha256:e9577a783ad76bf532532b92267e85d0ada3d8e54d75117599f4644e7cf5ab30
15+
sourceRevisionDigest: sha256:c0187c3b97b30297429930c9b97513e82a6fb748fa42bb6ef632b447899f4063
16+
sourceBlobDigest: sha256:64e17fc520f1c7b5bf6663aa5279d8655e70ee7240fa77085f5486aa632e0275
1717
codeSamplesNamespace: polar-oas-py-code-samples
18-
codeSamplesRevisionDigest: sha256:ad2a5dd69ea297d72f797840951943c56000c7e7c6a8cdead8ef7b20b1c78fb4
18+
codeSamplesRevisionDigest: sha256:b5f5b4797959ba0b423abb100d9e63089ed790c5741f080bb93f10d561b59823
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 35 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,11 @@ def webhook():
295295
* [update](docs/sdks/polarsubscriptions/README.md#update) - Update Subscription
296296
* [cancel](docs/sdks/polarsubscriptions/README.md#cancel) - Cancel Subscription
297297

298+
#### [customer_portal.wallets](docs/sdks/polarwallets/README.md)
299+
300+
* [list](docs/sdks/polarwallets/README.md#list) - List Wallets
301+
* [get](docs/sdks/polarwallets/README.md#get) - Get Wallet
302+
298303
### [customer_seats](docs/sdks/customerseats/README.md)
299304

300305
* [assign_seat](docs/sdks/customerseats/README.md#assign_seat) - Assign Seat
@@ -421,11 +426,18 @@ def webhook():
421426
### [subscriptions](docs/sdks/subscriptions/README.md)
422427

423428
* [list](docs/sdks/subscriptions/README.md#list) - List Subscriptions
429+
* [create](docs/sdks/subscriptions/README.md#create) - Create Subscription
424430
* [export](docs/sdks/subscriptions/README.md#export) - Export Subscriptions
425431
* [get](docs/sdks/subscriptions/README.md#get) - Get Subscription
426432
* [update](docs/sdks/subscriptions/README.md#update) - Update Subscription
427433
* [revoke](docs/sdks/subscriptions/README.md#revoke) - Revoke Subscription
428434

435+
### [wallets](docs/sdks/wallets/README.md)
436+
437+
* [list](docs/sdks/wallets/README.md#list) - List Wallets
438+
* [get](docs/sdks/wallets/README.md#get) - Get Wallet
439+
* [top_up](docs/sdks/wallets/README.md#top_up) - Top-Up Wallet
440+
429441
### [webhooks](docs/sdks/webhooks/README.md)
430442

431443
* [list_webhook_endpoints](docs/sdks/webhooks/README.md#list_webhook_endpoints) - List Webhook Endpoints
@@ -538,7 +550,7 @@ with Polar(
538550
* [`PolarError`](./src/polar_sdk/models/polarerror.py): The base class for HTTP error responses.
539551
* [`HTTPValidationError`](./src/polar_sdk/models/httpvalidationerror.py): Validation Error. Status code `422`. *
540552

541-
<details><summary>Less common errors (23)</summary>
553+
<details><summary>Less common errors (25)</summary>
542554

543555
<br />
544556

@@ -549,24 +561,26 @@ with Polar(
549561

550562

551563
**Inherit from [`PolarError`](./src/polar_sdk/models/polarerror.py)**:
552-
* [`ResourceNotFound`](./src/polar_sdk/models/resourcenotfound.py): Status code `404`. Applicable to 77 of 149 methods.*
553-
* [`NotPermitted`](./src/polar_sdk/models/notpermitted.py): Status code `403`. Applicable to 10 of 149 methods.*
554-
* [`Unauthorized`](./src/polar_sdk/models/unauthorized.py): Not authorized to manage license key. Status code `401`. Applicable to 5 of 149 methods.*
555-
* [`AlreadyCanceledSubscription`](./src/polar_sdk/models/alreadycanceledsubscription.py): Status code `403`. Applicable to 4 of 149 methods.*
556-
* [`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 149 methods.*
557-
* [`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 149 methods.*
558-
* [`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 149 methods.*
559-
* [`ExpiredCheckoutError`](./src/polar_sdk/models/expiredcheckouterror.py): The checkout session is expired. Status code `410`. Applicable to 3 of 149 methods.*
560-
* [`SubscriptionLocked`](./src/polar_sdk/models/subscriptionlocked.py): Subscription is pending an update. Status code `409`. Applicable to 2 of 149 methods.*
561-
* [`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 149 methods.*
562-
* [`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 149 methods.*
563-
* [`RefundAmountTooHigh`](./src/polar_sdk/models/refundamounttoohigh.py): Refund amount exceeds remaining order balance. Status code `400`. Applicable to 1 of 149 methods.*
564-
* [`PaymentError`](./src/polar_sdk/models/paymenterror.py): The payment failed. Status code `400`. Applicable to 1 of 149 methods.*
565-
* [`CustomerNotReady`](./src/polar_sdk/models/customernotready.py): Customer is not ready to confirm a payment method. Status code `400`. Applicable to 1 of 149 methods.*
566-
* [`PaymentMethodInUseByActiveSubscription`](./src/polar_sdk/models/paymentmethodinusebyactivesubscription.py): Payment method is used by active subscription(s). Status code `400`. Applicable to 1 of 149 methods.*
567-
* [`RefundedAlready`](./src/polar_sdk/models/refundedalready.py): Order is already fully refunded. Status code `403`. Applicable to 1 of 149 methods.*
568-
* [`PaymentAlreadyInProgress`](./src/polar_sdk/models/paymentalreadyinprogress.py): Payment already in progress. Status code `409`. Applicable to 1 of 149 methods.*
569-
* [`OrderNotEligibleForRetry`](./src/polar_sdk/models/ordernoteligibleforretry.py): Order not eligible for retry or payment confirmation failed. Status code `422`. Applicable to 1 of 149 methods.*
564+
* [`ResourceNotFound`](./src/polar_sdk/models/resourcenotfound.py): Status code `404`. Applicable to 80 of 155 methods.*
565+
* [`NotPermitted`](./src/polar_sdk/models/notpermitted.py): Status code `403`. Applicable to 10 of 155 methods.*
566+
* [`Unauthorized`](./src/polar_sdk/models/unauthorized.py): Not authorized to manage license key. Status code `401`. Applicable to 5 of 155 methods.*
567+
* [`AlreadyCanceledSubscription`](./src/polar_sdk/models/alreadycanceledsubscription.py): Status code `403`. Applicable to 4 of 155 methods.*
568+
* [`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 155 methods.*
569+
* [`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 155 methods.*
570+
* [`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 155 methods.*
571+
* [`ExpiredCheckoutError`](./src/polar_sdk/models/expiredcheckouterror.py): The checkout session is expired. Status code `410`. Applicable to 3 of 155 methods.*
572+
* [`SubscriptionLocked`](./src/polar_sdk/models/subscriptionlocked.py): Subscription is pending an update. Status code `409`. Applicable to 2 of 155 methods.*
573+
* [`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 155 methods.*
574+
* [`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 155 methods.*
575+
* [`RefundAmountTooHigh`](./src/polar_sdk/models/refundamounttoohigh.py): Refund amount exceeds remaining order balance. Status code `400`. Applicable to 1 of 155 methods.*
576+
* [`PaymentError`](./src/polar_sdk/models/paymenterror.py): The payment failed. Status code `400`. Applicable to 1 of 155 methods.*
577+
* [`PaymentIntentFailedError`](./src/polar_sdk/models/paymentintentfailederror.py): The payment request failed. Status code `400`. Applicable to 1 of 155 methods.*
578+
* [`CustomerNotReady`](./src/polar_sdk/models/customernotready.py): Customer is not ready to confirm a payment method. Status code `400`. Applicable to 1 of 155 methods.*
579+
* [`PaymentMethodInUseByActiveSubscription`](./src/polar_sdk/models/paymentmethodinusebyactivesubscription.py): Payment method is used by active subscription(s). Status code `400`. Applicable to 1 of 155 methods.*
580+
* [`MissingPaymentMethodError`](./src/polar_sdk/models/missingpaymentmethoderror.py): No payment method available. Status code `402`. Applicable to 1 of 155 methods.*
581+
* [`RefundedAlready`](./src/polar_sdk/models/refundedalready.py): Order is already fully refunded. Status code `403`. Applicable to 1 of 155 methods.*
582+
* [`PaymentAlreadyInProgress`](./src/polar_sdk/models/paymentalreadyinprogress.py): Payment already in progress. Status code `409`. Applicable to 1 of 155 methods.*
583+
* [`OrderNotEligibleForRetry`](./src/polar_sdk/models/ordernoteligibleforretry.py): Order not eligible for retry or payment confirmation failed. Status code `422`. Applicable to 1 of 155 methods.*
570584
* [`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.
571585

572586
</details>
@@ -593,7 +607,7 @@ from polar_sdk import Polar
593607

594608

595609
with Polar(
596-
server="sandbox",
610+
server="production",
597611
access_token="<YOUR_BEARER_TOKEN_HERE>",
598612
) as polar:
599613

@@ -750,7 +764,7 @@ with Polar() as polar:
750764

751765
res = polar.customer_portal.benefit_grants.list(security=polar_sdk.CustomerPortalBenefitGrantsListSecurity(
752766
customer_session="<YOUR_BEARER_TOKEN_HERE>",
753-
), organization_id=None, page=1, limit=10)
767+
), page=1, limit=10)
754768

755769
while res is not None:
756770
# Handle items

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,4 +973,14 @@ Based on:
973973
### Generated
974974
- [python v0.27.3] .
975975
### Releases
976-
- [PyPI v0.27.3] https://pypi.org/project/polar-sdk/0.27.3 - .
976+
- [PyPI v0.27.3] https://pypi.org/project/polar-sdk/0.27.3 - .
977+
978+
## 2025-11-04 00:13:33
979+
### Changes
980+
Based on:
981+
- OpenAPI Doc
982+
- Speakeasy CLI 1.648.0 (2.737.0) https://github.com/speakeasy-api/speakeasy
983+
### Generated
984+
- [python v0.28.0] .
985+
### Releases
986+
- [PyPI v0.28.0] https://pypi.org/project/polar-sdk/0.28.0 - .

0 commit comments

Comments
 (0)