Skip to content

Commit 028e14c

Browse files
committed
## Python SDK Changes Detected:
* `polar._endpointcheckout_created_post()`: * `request.data.discount` **Changed** **Breaking** ⚠️ * `polar._endpointcheckout_updated_post()`: * `request.data.discount` **Changed** **Breaking** ⚠️ * `polar._endpointcheckout_expired_post()`: * `request.data.discount` **Changed** **Breaking** ⚠️ * `polar._endpointorder_created_post()`: * `request.data.discount` **Changed** **Breaking** ⚠️ * `polar._endpointorder_updated_post()`: * `request.data.discount` **Changed** **Breaking** ⚠️ * `polar._endpointorder_paid_post()`: * `request.data.discount` **Changed** **Breaking** ⚠️ * `polar._endpointorder_refunded_post()`: * `request.data.discount` **Changed** **Breaking** ⚠️ * `polar._endpointsubscription_created_post()`: * `request.data.discount` **Changed** **Breaking** ⚠️ * `polar._endpointsubscription_updated_post()`: * `request.data.discount` **Changed** **Breaking** ⚠️ * `polar._endpointsubscription_active_post()`: * `request.data.discount` **Changed** **Breaking** ⚠️ * `polar._endpointsubscription_canceled_post()`: * `request.data.discount` **Changed** **Breaking** ⚠️ * `polar._endpointsubscription_uncanceled_post()`: * `request.data.discount` **Changed** **Breaking** ⚠️ * `polar._endpointsubscription_revoked_post()`: * `request.data.discount` **Changed** **Breaking** ⚠️ * `polar._endpointsubscription_past_due_post()`: * `request.data.discount` **Changed** **Breaking** ⚠️ * `polar.events.get()`: `response.[system_event]` **Changed** **Breaking** ⚠️ * `polar.events.list()`: `response.[list_resource_event_].items.[].[system_event]` **Changed** **Breaking** ⚠️ * `polar.customers.update_external()`: * `request.customer_update_external_id.tax_id` **Changed** **Breaking** ⚠️ * `polar.customers.update()`: * `request.customer_update.tax_id` **Changed** **Breaking** ⚠️ * `polar.customers.create()`: * `request.tax_id` **Changed** **Breaking** ⚠️ * `polar.oauth2.token()`: `response` **Changed** **Breaking** ⚠️ * `polar.orders.list()`: `response.items.[].discount` **Changed** * `polar.checkout-links.create()`: `response.discount` **Changed** * `polar.orders.update()`: `response.discount` **Changed** * `polar.checkouts.list()`: `response.items.[].discount` **Changed** * `polar.checkouts.create()`: `response.discount` **Changed** * `polar.checkouts.get()`: `response.discount` **Changed** * `polar.checkouts.update()`: `response.discount` **Changed** * `polar.checkouts.client_get()`: `response.discount` **Changed** * `polar.checkouts.client_update()`: `response.discount` **Changed** * `polar.checkouts.client_confirm()`: `response.discount` **Changed** * `polar.checkout-links.list()`: `response.items.[].discount` **Changed** * `polar.orders.get()`: `response.discount` **Changed** * `polar.checkout-links.get()`: `response.discount` **Changed** * `polar.checkout-links.update()`: `response.discount` **Changed** * `polar.discounts.list()`: * `request.sorting` **Changed** * `response.items.[]` **Changed** * `polar.discounts.create()`: * `request` **Changed** * `response` **Changed** * `polar.discounts.get()`: `response` **Changed** * `polar.discounts.update()`: * `request.discount_update.amounts` **Added** * `response` **Changed** * `polar.subscriptions.update()`: `response.discount` **Changed** * `polar.subscriptions.revoke()`: `response.discount` **Changed** * `polar.subscriptions.get()`: `response.discount` **Changed** * `polar.subscriptions.create()`: `response.discount` **Changed** * `polar.subscriptions.list()`: `response.items.[].discount` **Changed**
1 parent 924d5f0 commit 028e14c

71 files changed

Lines changed: 1358 additions & 793 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: 461 additions & 431 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
@@ -31,7 +31,7 @@ generation:
3131
persistentEdits: {}
3232
versioningStrategy: automatic
3333
python:
34-
version: 0.30.0
34+
version: 0.30.1
3535
additionalDependencies:
3636
dev:
3737
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:fb09cd702785e107d39ecaf2cc8d2bc721d6fe490ecdfbb9823010da122595b8
6-
sourceBlobDigest: sha256:0cd4811a2ce8fba889db18ca1a2fb81306593396d1e04c30fc75ecac618b1fd8
5+
sourceRevisionDigest: sha256:9de956700748d4ba74ceab55071b988d29ff7e364d0b08547c4d2dd9da6a5c59
6+
sourceBlobDigest: sha256:489987e5f6a3eec64ceed3ce48910664ac321fd652ba273a30a585b6cc27eee9
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1772065082
9+
- speakeasy-sdk-regen-1772756675
1010
- 0.1.0
1111
targets:
1212
polar:
1313
source: Polar-OAS
1414
sourceNamespace: polar-oas
15-
sourceRevisionDigest: sha256:fb09cd702785e107d39ecaf2cc8d2bc721d6fe490ecdfbb9823010da122595b8
16-
sourceBlobDigest: sha256:0cd4811a2ce8fba889db18ca1a2fb81306593396d1e04c30fc75ecac618b1fd8
15+
sourceRevisionDigest: sha256:9de956700748d4ba74ceab55071b988d29ff7e364d0b08547c4d2dd9da6a5c59
16+
sourceBlobDigest: sha256:489987e5f6a3eec64ceed3ce48910664ac321fd652ba273a30a585b6cc27eee9
1717
codeSamplesNamespace: polar-oas-py-code-samples
18-
codeSamplesRevisionDigest: sha256:b46fe810463d807c96a892b3c8518260cd4928d90d1610e122463dd3cc6c1b45
18+
codeSamplesRevisionDigest: sha256:095bb2040067efcbeb7e8a31d6492c882ef0f308671348f4c0d76e108ecdaded
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1043,4 +1043,14 @@ Based on:
10431043
### Generated
10441044
- [python v0.30.0] .
10451045
### Releases
1046-
- [PyPI v0.30.0] https://pypi.org/project/polar-sdk/0.30.0 - .
1046+
- [PyPI v0.30.0] https://pypi.org/project/polar-sdk/0.30.0 - .
1047+
1048+
## 2026-03-11 00:17:32
1049+
### Changes
1050+
Based on:
1051+
- OpenAPI Doc
1052+
- Speakeasy CLI 1.648.0 (2.737.0) https://github.com/speakeasy-api/speakeasy
1053+
### Generated
1054+
- [python v0.30.1] .
1055+
### Releases
1056+
- [PyPI v0.30.1] https://pypi.org/project/polar-sdk/0.30.1 - .

codeSamples.yaml

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

docs/models/checkoutdiscountfixedonceforeverduration.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ Schema for a fixed amount discount that is applied once or forever.
55

66
## Fields
77

8-
| Field | Type | Required | Description | Example |
9-
| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- |
10-
| `duration` | [models.DiscountDuration](../models/discountduration.md) | :heavy_check_mark: | N/A | |
11-
| `type` | [models.DiscountType](../models/discounttype.md) | :heavy_check_mark: | N/A | |
12-
| `amount` | *int* | :heavy_check_mark: | N/A | 1000 |
13-
| `currency` | *str* | :heavy_check_mark: | N/A | usd |
14-
| `id` | *str* | :heavy_check_mark: | The ID of the object. | |
15-
| `name` | *str* | :heavy_check_mark: | N/A | |
16-
| `code` | *Nullable[str]* | :heavy_check_mark: | N/A | |
8+
| Field | Type | Required | Description | Example |
9+
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
10+
| `duration` | [models.DiscountDuration](../models/discountduration.md) | :heavy_check_mark: | N/A | |
11+
| `type` | [models.DiscountType](../models/discounttype.md) | :heavy_check_mark: | N/A | |
12+
| ~~`amount`~~ | *int* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | 1000 |
13+
| ~~`currency`~~ | *str* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | usd |
14+
| `amounts` | Dict[str, *int*] | :heavy_check_mark: | Map of currency to fixed amount to discount from the total. | {<br/>"eur": 900,<br/>"usd": 1000<br/>} |
15+
| `id` | *str* | :heavy_check_mark: | The ID of the object. | |
16+
| `name` | *str* | :heavy_check_mark: | N/A | |
17+
| `code` | *Nullable[str]* | :heavy_check_mark: | N/A | |

0 commit comments

Comments
 (0)