Skip to content

Commit 05869f7

Browse files
speakeasybotfrankie567
authored andcommitted
## Python SDK Changes Detected:
* `polar._endpointcheckout_created_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar._endpointcheckout_updated_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar._endpointorder_created_post()`: * `request.data.platform_fee_amount` **Added** **Breaking** ⚠️ * `polar._endpointorder_updated_post()`: * `request.data.platform_fee_amount` **Added** **Breaking** ⚠️ * `polar._endpointorder_paid_post()`: * `request.data.platform_fee_amount` **Added** **Breaking** ⚠️ * `polar._endpointorder_refunded_post()`: * `request.data.platform_fee_amount` **Added** **Breaking** ⚠️ * `polar._endpointsubscription_created_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar._endpointsubscription_updated_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar._endpointsubscription_active_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar._endpointsubscription_canceled_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar._endpointsubscription_uncanceled_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar._endpointsubscription_revoked_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar._endpointproduct_created_post()`: * `request.data.prices.[]` **Changed** **Breaking** ⚠️ * `polar._endpointproduct_updated_post()`: * `request.data.prices.[]` **Changed** **Breaking** ⚠️ * `polar._endpointorganization_updated_post()`: * `request.data.customer_email_settings` **Added** **Breaking** ⚠️ * `polar.organizations.list()`: `response.items.[].customer_email_settings` **Added** * `polar.organizations.create()`: * `request.customer_email_settings` **Added** * `response.customer_email_settings` **Added** * `polar.organizations.get()`: `response.customer_email_settings` **Added** * `polar.organizations.update()`: * `request.organization_update.customer_email_settings` **Added** * `response.customer_email_settings` **Added** * `polar.subscriptions.list()`: `response.items.[]` **Changed** * `polar.subscriptions.get()`: `response` **Changed** * `polar.subscriptions.revoke()`: `response` **Changed** * `polar.subscriptions.update()`: `response` **Changed** * `polar.oauth2.clients.create()`: * `request.default_sub_type` **Added** * `polar.oauth2.clients.update()`: * `request.o_auth2client_configuration_update.default_sub_type` **Added** * `polar.products.list()`: `response.items.[].prices.[]` **Changed** * `polar.products.create()`: `response.prices.[]` **Changed** * `polar.products.get()`: `response.prices.[]` **Changed** * `polar.products.update()`: `response.prices.[]` **Changed** * `polar.products.update_benefits()`: `response.prices.[]` **Changed** * `polar.orders.list()`: `response.items.[].platform_fee_amount` **Added** * `polar.orders.get()`: `response.platform_fee_amount` **Added** * `polar.orders.update()`: `response.platform_fee_amount` **Added** * `polar.orders.generate_invoice()`: `error` **Changed** * `polar.checkouts.list()`: `response.items.[]` **Changed** * `polar.checkouts.create()`: `response` **Changed** * `polar.checkouts.get()`: `response` **Changed** * `polar.checkouts.update()`: `response` **Changed** * `polar.checkouts.client_get()`: `response` **Changed** * `polar.checkouts.client_update()`: `response` **Changed** * `polar.checkouts.client_confirm()`: `response` **Changed** * `polar.checkout-links.list()`: `response.items.[].products.[].prices.[]` **Changed** * `polar.checkout-links.create()`: `response.products.[].prices.[]` **Changed** * `polar.checkout-links.get()`: `response.products.[].prices.[]` **Changed** * `polar.checkout-links.update()`: `response.products.[].prices.[]` **Changed** * `polar.customer_portal.benefit-grants.list()`: `response.items.[].[customer_benefit_grant_discord].benefit.organization.customer_email_settings` **Added** * `polar.customer_portal.benefit-grants.get()`: `response.[customer_benefit_grant_downloadables].benefit.organization.customer_email_settings` **Added** * `polar.customer_portal.benefit-grants.update()`: `response.[customer_benefit_grant_discord].benefit.organization.customer_email_settings` **Added** * `polar.customer_portal.seats.list_claimed_subscriptions()`: `response.[]` **Changed** * `polar.customer_portal.orders.list()`: `response.items.[].product` **Changed** * `polar.customer_portal.orders.get()`: `response.product` **Changed** * `polar.customer_portal.orders.update()`: `response.product` **Changed** * `polar.customer_portal.orders.generate_invoice()`: `error` **Changed** * `polar.customer_portal.organizations.get()`: `response` **Changed** * `polar.customer_portal.subscriptions.list()`: `response.items.[]` **Changed** * `polar.customer_portal.subscriptions.get()`: `response` **Changed** * `polar.customer_portal.subscriptions.cancel()`: `response` **Changed** * `polar.customer_portal.subscriptions.update()`: `response` **Changed**
1 parent 3c747ed commit 05869f7

194 files changed

Lines changed: 2094 additions & 1926 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: 94 additions & 91 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ generation:
2020
oAuth2ClientCredentialsEnabled: true
2121
oAuth2PasswordEnabled: false
2222
hoistGlobalSecurity: true
23+
schemas:
24+
allOfMergeStrategy: shallowMerge
2325
tests:
2426
generateTests: true
2527
generateNewTests: false
2628
skipResponseBodyAssertions: false
2729
python:
28-
version: 0.26.0
30+
version: 0.27.0
2931
additionalDependencies:
3032
dev:
3133
pydantic-ai-slim: ^0.1.0

.speakeasy/workflow.lock

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.636.3
1+
speakeasyVersion: 1.637.3
22
sources:
33
Polar-OAS:
44
sourceNamespace: polar-oas
5-
sourceRevisionDigest: sha256:a2d47725aa55a8a44bd25f16906f28a8a24e41cd257a068284c1bda91dab06b6
6-
sourceBlobDigest: sha256:5f14ed6fd946b22d43124e554b9bc35847c0385ea345d3d248e6f6831c8d091f
5+
sourceRevisionDigest: sha256:4dcecb99c20b659e9b139610bd6f432313e69763c593763d96a5422100d23037
6+
sourceBlobDigest: sha256:2074ed7d421e66a16420096cb5d0f8d7b94f420e9a2bd079fd4cb7c216477612
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1759191232
9+
- speakeasy-sdk-regen-1761030657
1010
- 0.1.0
1111
targets:
1212
polar:
1313
source: Polar-OAS
1414
sourceNamespace: polar-oas
15-
sourceRevisionDigest: sha256:a2d47725aa55a8a44bd25f16906f28a8a24e41cd257a068284c1bda91dab06b6
16-
sourceBlobDigest: sha256:5f14ed6fd946b22d43124e554b9bc35847c0385ea345d3d248e6f6831c8d091f
15+
sourceRevisionDigest: sha256:4dcecb99c20b659e9b139610bd6f432313e69763c593763d96a5422100d23037
16+
sourceBlobDigest: sha256:2074ed7d421e66a16420096cb5d0f8d7b94f420e9a2bd079fd4cb7c216477612
1717
codeSamplesNamespace: polar-oas-py-code-samples
18-
codeSamplesRevisionDigest: sha256:7519a7102d3ac49f7ebf70b023e42654e87943c8e8b525509b7b49b1290f6342
18+
codeSamplesRevisionDigest: sha256:f374065d98be561140bd46482da9dac7d0e70dbb08dc3fc50123f54677eb112e
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest
@@ -29,6 +29,7 @@ workflow:
2929
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/read_only.yml
3030
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/event_discriminator.yml
3131
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/timezone_enum.yml
32+
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/event_metadata.yml
3233
registry:
3334
location: registry.speakeasyapi.dev/polar/polar/polar-oas
3435
targets:

.speakeasy/workflow.yaml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
workflowVersion: 1.0.0
22
speakeasyVersion: latest
33
sources:
4-
Polar-OAS:
5-
inputs:
6-
- location: https://api.polar.sh/openapi.json
7-
overlays:
8-
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/security.yml
9-
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/type_parameter.yml
10-
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/read_only.yml
11-
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/event_discriminator.yml
12-
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/timezone_enum.yml
13-
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/event_metadata.yml
14-
registry:
15-
location: registry.speakeasyapi.dev/polar/polar/polar-oas
4+
Polar-OAS:
5+
inputs:
6+
- location: https://api.polar.sh/openapi.json
7+
overlays:
8+
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/security.yml
9+
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/type_parameter.yml
10+
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/read_only.yml
11+
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/event_discriminator.yml
12+
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/timezone_enum.yml
13+
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/event_metadata.yml
14+
registry:
15+
location: registry.speakeasyapi.dev/polar/polar/polar-oas
1616
targets:
17-
polar:
18-
target: python
19-
source: Polar-OAS
20-
publish:
21-
pypi:
22-
token: $pypi_token
23-
codeSamples:
24-
output: codeSamples.yaml
25-
registry:
26-
location: registry.speakeasyapi.dev/polar/polar/polar-oas-py-code-samples
27-
labelOverride:
28-
fixedValue: Python (SDK)
17+
polar:
18+
target: python
19+
source: Polar-OAS
20+
publish:
21+
pypi:
22+
token: $pypi_token
23+
codeSamples:
24+
output: codeSamples.yaml
25+
registry:
26+
location: registry.speakeasyapi.dev/polar/polar/polar-oas-py-code-samples
27+
labelOverride:
28+
fixedValue: Python (SDK)

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -355,10 +355,10 @@ def webhook():
355355
* [update](docs/sdks/meters/README.md#update) - Update Meter
356356
* [quantities](docs/sdks/meters/README.md#quantities) - Get Meter Quantities
357357

358-
### [metrics](docs/sdks/metricssdk/README.md)
358+
### [metrics](docs/sdks/metrics/README.md)
359359

360-
* [get](docs/sdks/metricssdk/README.md#get) - Get Metrics
361-
* [limits](docs/sdks/metricssdk/README.md#limits) - Get Metrics Limits
360+
* [get](docs/sdks/metrics/README.md#get) - Get Metrics
361+
* [limits](docs/sdks/metrics/README.md#limits) - Get Metrics Limits
362362

363363
### [oauth2](docs/sdks/oauth2/README.md)
364364

@@ -539,18 +539,18 @@ with Polar(
539539

540540

541541
**Inherit from [`PolarError`](./src/polar_sdk/models/polarerror.py)**:
542-
* [`ResourceNotFound`](./src/polar_sdk/models/resourcenotfound.py): Status code `404`. Applicable to 77 of 142 methods.*
543-
* [`NotPermitted`](./src/polar_sdk/models/notpermitted.py): Status code `403`. Applicable to 10 of 142 methods.*
542+
* [`PolarExceptionsResourceNotFound`](./src/polar_sdk/models/polarexceptionsresourcenotfound.py): Status code `404`. Applicable to 77 of 142 methods.*
543+
* [`PolarExceptionsNotPermitted`](./src/polar_sdk/models/polarexceptionsnotpermitted.py): Status code `403`. Applicable to 10 of 142 methods.*
544544
* [`Unauthorized`](./src/polar_sdk/models/unauthorized.py): Not authorized to manage license key. Status code `401`. Applicable to 5 of 142 methods.*
545-
* [`AlreadyCanceledSubscription`](./src/polar_sdk/models/alreadycanceledsubscription.py): Status code `403`. Applicable to 4 of 142 methods.*
545+
* [`PolarExceptionsAlreadyCanceledSubscription`](./src/polar_sdk/models/polarexceptionsalreadycanceledsubscription.py): Status code `403`. Applicable to 4 of 142 methods.*
546546
* [`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 142 methods.*
547547
* [`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 142 methods.*
548548
* [`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 142 methods.*
549549
* [`ExpiredCheckoutError`](./src/polar_sdk/models/expiredcheckouterror.py): The checkout session is expired. Status code `410`. Applicable to 3 of 142 methods.*
550-
* [`SubscriptionLocked`](./src/polar_sdk/models/subscriptionlocked.py): Subscription is pending an update. Status code `409`. Applicable to 2 of 142 methods.*
551-
* [`InvoiceAlreadyExists`](./src/polar_sdk/models/invoicealreadyexists.py): Order already has an invoice. Status code `409`. Applicable to 2 of 142 methods.*
552-
* [`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 142 methods.*
553-
* [`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 142 methods.*
550+
* [`PolarExceptionsSubscriptionLocked`](./src/polar_sdk/models/polarexceptionssubscriptionlocked.py): Subscription is pending an update. Status code `409`. Applicable to 2 of 142 methods.*
551+
* [`PolarExceptionsInvoiceAlreadyExists`](./src/polar_sdk/models/polarexceptionsinvoicealreadyexists.py): Order already has an invoice. Status code `409`. Applicable to 2 of 142 methods.*
552+
* [`PolarExceptionsMissingInvoiceBillingDetails`](./src/polar_sdk/models/polarexceptionsmissinginvoicebillingdetails.py): Order is not paid or is missing billing name or address. Status code `422`. Applicable to 2 of 142 methods.*
553+
* [`PolarExceptionsNotPaidOrder`](./src/polar_sdk/models/polarexceptionsnotpaidorder.py): Order is not paid or is missing billing name or address. Status code `422`. Applicable to 2 of 142 methods.*
554554
* [`RefundAmountTooHigh`](./src/polar_sdk/models/refundamounttoohigh.py): Refund amount exceeds remaining order balance. Status code `400`. Applicable to 1 of 142 methods.*
555555
* [`PaymentError`](./src/polar_sdk/models/paymenterror.py): The payment failed. Status code `400`. Applicable to 1 of 142 methods.*
556556
* [`CustomerNotReady`](./src/polar_sdk/models/customernotready.py): Customer is not ready to confirm a payment method. Status code `400`. Applicable to 1 of 142 methods.*

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,4 +933,14 @@ Based on:
933933
### Generated
934934
- [python v0.26.0] .
935935
### Releases
936-
- [PyPI v0.26.0] https://pypi.org/project/polar-sdk/0.26.0 - .
936+
- [PyPI v0.26.0] https://pypi.org/project/polar-sdk/0.26.0 - .
937+
938+
## 2025-10-21 07:10:37
939+
### Changes
940+
Based on:
941+
- OpenAPI Doc
942+
- Speakeasy CLI 1.637.3 (2.727.9) https://github.com/speakeasy-api/speakeasy
943+
### Generated
944+
- [python v0.27.0] .
945+
### Releases
946+
- [PyPI v0.27.0] https://pypi.org/project/polar-sdk/0.27.0 - .

0 commit comments

Comments
 (0)