Skip to content

Commit 4ef8b2f

Browse files
committed
## Python SDK Changes Detected:
* `polar._endpointsubscription_created_post()`: * `request.data.pending_update` **Added** **Breaking** ⚠️ * `polar._endpointsubscription_updated_post()`: * `request.data.pending_update` **Added** **Breaking** ⚠️ * `polar._endpointsubscription_active_post()`: * `request.data.pending_update` **Added** **Breaking** ⚠️ * `polar._endpointsubscription_canceled_post()`: * `request.data.pending_update` **Added** **Breaking** ⚠️ * `polar._endpointsubscription_uncanceled_post()`: * `request.data.pending_update` **Added** **Breaking** ⚠️ * `polar._endpointsubscription_revoked_post()`: * `request.data.pending_update` **Added** **Breaking** ⚠️ * `polar._endpointsubscription_past_due_post()`: * `request.data.pending_update` **Added** **Breaking** ⚠️ * `polar._endpointorganization_updated_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar.organizations.update()`: * `request.organization_update` **Changed** **Breaking** ⚠️ * `response` **Changed** * `polar.organizations.create()`: * `request` **Changed** **Breaking** ⚠️ * `response` **Changed** * `polar.organizations.get()`: `response` **Changed** * `polar.organizations.list()`: `response.items.[]` **Changed** * `polar.subscriptions.list()`: `response.items.[].pending_update` **Added** * `polar.subscriptions.create()`: `response.pending_update` **Added** * `polar.subscriptions.get()`: `response.pending_update` **Added** * `polar.subscriptions.revoke()`: `response.pending_update` **Added** * `polar.subscriptions.update()`: * `response.pending_update` **Added** * `error.status[402]` **Added** * `polar.members.list_members()`: `request.role` **Added** * `polar.customer_portal.seats.list_claimed_subscriptions()`: `response.items.[].pending_update` **Added** * `polar.customer_portal.subscriptions.list()`: `response.items.[].pending_update` **Added** * `polar.customer_portal.subscriptions.get()`: `response.pending_update` **Added** * `polar.customer_portal.subscriptions.cancel()`: `response.pending_update` **Added** * `polar.customer_portal.subscriptions.update()`: * `response.pending_update` **Added** * `error.status[402]` **Added**
1 parent 405c853 commit 4ef8b2f

64 files changed

Lines changed: 2322 additions & 250 deletions

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: 111 additions & 71 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.1
34+
version: 0.30.2
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:9de956700748d4ba74ceab55071b988d29ff7e364d0b08547c4d2dd9da6a5c59
6-
sourceBlobDigest: sha256:489987e5f6a3eec64ceed3ce48910664ac321fd652ba273a30a585b6cc27eee9
5+
sourceRevisionDigest: sha256:30cf058783963ca5597f64d7de5605d2152c22e4bd4a2d6ad9fb517ea1aa6785
6+
sourceBlobDigest: sha256:ab2b8cbcc12fbbb5593e571334c899ccd4f14f968cec0a8464c057d918b93947
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1772756675
9+
- speakeasy-sdk-regen-1773274673
1010
- 0.1.0
1111
targets:
1212
polar:
1313
source: Polar-OAS
1414
sourceNamespace: polar-oas
15-
sourceRevisionDigest: sha256:9de956700748d4ba74ceab55071b988d29ff7e364d0b08547c4d2dd9da6a5c59
16-
sourceBlobDigest: sha256:489987e5f6a3eec64ceed3ce48910664ac321fd652ba273a30a585b6cc27eee9
15+
sourceRevisionDigest: sha256:30cf058783963ca5597f64d7de5605d2152c22e4bd4a2d6ad9fb517ea1aa6785
16+
sourceBlobDigest: sha256:ab2b8cbcc12fbbb5593e571334c899ccd4f14f968cec0a8464c057d918b93947
1717
codeSamplesNamespace: polar-oas-py-code-samples
18-
codeSamplesRevisionDigest: sha256:095bb2040067efcbeb7e8a31d6492c882ef0f308671348f4c0d76e108ecdaded
18+
codeSamplesRevisionDigest: sha256:79522ea12eb98a9ce5807b7f37ac0427db10d4fed0e826be38d5879029deae0a
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ with Polar(
576576
* [`PolarError`](./src/polar_sdk/models/polarerror.py): The base class for HTTP error responses.
577577
* [`HTTPValidationError`](./src/polar_sdk/models/httpvalidationerror.py): Validation Error. Status code `422`. *
578578

579-
<details><summary>Less common errors (23)</summary>
579+
<details><summary>Less common errors (24)</summary>
580580

581581
<br />
582582

@@ -596,6 +596,7 @@ with Polar(
596596
* [`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 169 methods.*
597597
* [`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 169 methods.*
598598
* [`ExpiredCheckoutError`](./src/polar_sdk/models/expiredcheckouterror.py): The checkout session is expired. Status code `410`. Applicable to 3 of 169 methods.*
599+
* [`PaymentFailed`](./src/polar_sdk/models/paymentfailed.py): Payment required to apply the subscription update. Status code `402`. Applicable to 2 of 169 methods.*
599600
* [`SubscriptionLocked`](./src/polar_sdk/models/subscriptionlocked.py): Subscription is pending an update. Status code `409`. Applicable to 2 of 169 methods.*
600601
* [`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 169 methods.*
601602
* [`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 169 methods.*

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,4 +1053,14 @@ Based on:
10531053
### Generated
10541054
- [python v0.30.1] .
10551055
### Releases
1056-
- [PyPI v0.30.1] https://pypi.org/project/polar-sdk/0.30.1 - .
1056+
- [PyPI v0.30.1] https://pypi.org/project/polar-sdk/0.30.1 - .
1057+
1058+
## 2026-03-19 00:21:52
1059+
### Changes
1060+
Based on:
1061+
- OpenAPI Doc
1062+
- Speakeasy CLI 1.648.0 (2.737.0) https://github.com/speakeasy-api/speakeasy
1063+
### Generated
1064+
- [python v0.30.2] .
1065+
### Releases
1066+
- [PyPI v0.30.2] https://pypi.org/project/polar-sdk/0.30.2 - .

codeSamples.yaml

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

docs/models/address.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description | Example |
7-
| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- |
8-
| `line1` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | |
9-
| `line2` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | |
10-
| `postal_code` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | |
11-
| `city` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | |
12-
| `state` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | |
13-
| `country` | [models.CountryAlpha2](../models/countryalpha2.md) | :heavy_check_mark: | N/A | US |
6+
| Field | Type | Required | Description | Example |
7+
| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- |
8+
| `line1` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | |
9+
| `line2` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | |
10+
| `postal_code` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | |
11+
| `city` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | |
12+
| `state` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | |
13+
| `country` | [models.AddressCountryAlpha2](../models/addresscountryalpha2.md) | :heavy_check_mark: | N/A | US |
Lines changed: 256 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,256 @@
1+
# AddressCountryAlpha2
2+
3+
4+
## Values
5+
6+
| Name | Value |
7+
| ----- | ----- |
8+
| `AD` | AD |
9+
| `AE` | AE |
10+
| `AF` | AF |
11+
| `AG` | AG |
12+
| `AI` | AI |
13+
| `AL` | AL |
14+
| `AM` | AM |
15+
| `AO` | AO |
16+
| `AQ` | AQ |
17+
| `AR` | AR |
18+
| `AS` | AS |
19+
| `AT` | AT |
20+
| `AU` | AU |
21+
| `AW` | AW |
22+
| `AX` | AX |
23+
| `AZ` | AZ |
24+
| `BA` | BA |
25+
| `BB` | BB |
26+
| `BD` | BD |
27+
| `BE` | BE |
28+
| `BF` | BF |
29+
| `BG` | BG |
30+
| `BH` | BH |
31+
| `BI` | BI |
32+
| `BJ` | BJ |
33+
| `BL` | BL |
34+
| `BM` | BM |
35+
| `BN` | BN |
36+
| `BO` | BO |
37+
| `BQ` | BQ |
38+
| `BR` | BR |
39+
| `BS` | BS |
40+
| `BT` | BT |
41+
| `BV` | BV |
42+
| `BW` | BW |
43+
| `BY` | BY |
44+
| `BZ` | BZ |
45+
| `CA` | CA |
46+
| `CC` | CC |
47+
| `CD` | CD |
48+
| `CF` | CF |
49+
| `CG` | CG |
50+
| `CH` | CH |
51+
| `CI` | CI |
52+
| `CK` | CK |
53+
| `CL` | CL |
54+
| `CM` | CM |
55+
| `CN` | CN |
56+
| `CO` | CO |
57+
| `CR` | CR |
58+
| `CU` | CU |
59+
| `CV` | CV |
60+
| `CW` | CW |
61+
| `CX` | CX |
62+
| `CY` | CY |
63+
| `CZ` | CZ |
64+
| `DE` | DE |
65+
| `DJ` | DJ |
66+
| `DK` | DK |
67+
| `DM` | DM |
68+
| `DO` | DO |
69+
| `DZ` | DZ |
70+
| `EC` | EC |
71+
| `EE` | EE |
72+
| `EG` | EG |
73+
| `EH` | EH |
74+
| `ER` | ER |
75+
| `ES` | ES |
76+
| `ET` | ET |
77+
| `FI` | FI |
78+
| `FJ` | FJ |
79+
| `FK` | FK |
80+
| `FM` | FM |
81+
| `FO` | FO |
82+
| `FR` | FR |
83+
| `GA` | GA |
84+
| `GB` | GB |
85+
| `GD` | GD |
86+
| `GE` | GE |
87+
| `GF` | GF |
88+
| `GG` | GG |
89+
| `GH` | GH |
90+
| `GI` | GI |
91+
| `GL` | GL |
92+
| `GM` | GM |
93+
| `GN` | GN |
94+
| `GP` | GP |
95+
| `GQ` | GQ |
96+
| `GR` | GR |
97+
| `GS` | GS |
98+
| `GT` | GT |
99+
| `GU` | GU |
100+
| `GW` | GW |
101+
| `GY` | GY |
102+
| `HK` | HK |
103+
| `HM` | HM |
104+
| `HN` | HN |
105+
| `HR` | HR |
106+
| `HT` | HT |
107+
| `HU` | HU |
108+
| `ID` | ID |
109+
| `IE` | IE |
110+
| `IL` | IL |
111+
| `IM` | IM |
112+
| `IN` | IN |
113+
| `IO` | IO |
114+
| `IQ` | IQ |
115+
| `IR` | IR |
116+
| `IS` | IS |
117+
| `IT` | IT |
118+
| `JE` | JE |
119+
| `JM` | JM |
120+
| `JO` | JO |
121+
| `JP` | JP |
122+
| `KE` | KE |
123+
| `KG` | KG |
124+
| `KH` | KH |
125+
| `KI` | KI |
126+
| `KM` | KM |
127+
| `KN` | KN |
128+
| `KP` | KP |
129+
| `KR` | KR |
130+
| `KW` | KW |
131+
| `KY` | KY |
132+
| `KZ` | KZ |
133+
| `LA` | LA |
134+
| `LB` | LB |
135+
| `LC` | LC |
136+
| `LI` | LI |
137+
| `LK` | LK |
138+
| `LR` | LR |
139+
| `LS` | LS |
140+
| `LT` | LT |
141+
| `LU` | LU |
142+
| `LV` | LV |
143+
| `LY` | LY |
144+
| `MA` | MA |
145+
| `MC` | MC |
146+
| `MD` | MD |
147+
| `ME` | ME |
148+
| `MF` | MF |
149+
| `MG` | MG |
150+
| `MH` | MH |
151+
| `MK` | MK |
152+
| `ML` | ML |
153+
| `MM` | MM |
154+
| `MN` | MN |
155+
| `MO` | MO |
156+
| `MP` | MP |
157+
| `MQ` | MQ |
158+
| `MR` | MR |
159+
| `MS` | MS |
160+
| `MT` | MT |
161+
| `MU` | MU |
162+
| `MV` | MV |
163+
| `MW` | MW |
164+
| `MX` | MX |
165+
| `MY` | MY |
166+
| `MZ` | MZ |
167+
| `NA` | NA |
168+
| `NC` | NC |
169+
| `NE` | NE |
170+
| `NF` | NF |
171+
| `NG` | NG |
172+
| `NI` | NI |
173+
| `NL` | NL |
174+
| `NO` | NO |
175+
| `NP` | NP |
176+
| `NR` | NR |
177+
| `NU` | NU |
178+
| `NZ` | NZ |
179+
| `OM` | OM |
180+
| `PA` | PA |
181+
| `PE` | PE |
182+
| `PF` | PF |
183+
| `PG` | PG |
184+
| `PH` | PH |
185+
| `PK` | PK |
186+
| `PL` | PL |
187+
| `PM` | PM |
188+
| `PN` | PN |
189+
| `PR` | PR |
190+
| `PS` | PS |
191+
| `PT` | PT |
192+
| `PW` | PW |
193+
| `PY` | PY |
194+
| `QA` | QA |
195+
| `RE` | RE |
196+
| `RO` | RO |
197+
| `RS` | RS |
198+
| `RU` | RU |
199+
| `RW` | RW |
200+
| `SA` | SA |
201+
| `SB` | SB |
202+
| `SC` | SC |
203+
| `SD` | SD |
204+
| `SE` | SE |
205+
| `SG` | SG |
206+
| `SH` | SH |
207+
| `SI` | SI |
208+
| `SJ` | SJ |
209+
| `SK` | SK |
210+
| `SL` | SL |
211+
| `SM` | SM |
212+
| `SN` | SN |
213+
| `SO` | SO |
214+
| `SR` | SR |
215+
| `SS` | SS |
216+
| `ST` | ST |
217+
| `SV` | SV |
218+
| `SX` | SX |
219+
| `SY` | SY |
220+
| `SZ` | SZ |
221+
| `TC` | TC |
222+
| `TD` | TD |
223+
| `TF` | TF |
224+
| `TG` | TG |
225+
| `TH` | TH |
226+
| `TJ` | TJ |
227+
| `TK` | TK |
228+
| `TL` | TL |
229+
| `TM` | TM |
230+
| `TN` | TN |
231+
| `TO` | TO |
232+
| `TR` | TR |
233+
| `TT` | TT |
234+
| `TV` | TV |
235+
| `TW` | TW |
236+
| `TZ` | TZ |
237+
| `UA` | UA |
238+
| `UG` | UG |
239+
| `UM` | UM |
240+
| `US` | US |
241+
| `UY` | UY |
242+
| `UZ` | UZ |
243+
| `VA` | VA |
244+
| `VC` | VC |
245+
| `VE` | VE |
246+
| `VG` | VG |
247+
| `VI` | VI |
248+
| `VN` | VN |
249+
| `VU` | VU |
250+
| `WF` | WF |
251+
| `WS` | WS |
252+
| `YE` | YE |
253+
| `YT` | YT |
254+
| `ZA` | ZA |
255+
| `ZM` | ZM |
256+
| `ZW` | ZW |

docs/models/addressinput.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description | Example |
7-
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
8-
| `line1` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | |
9-
| `line2` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | |
10-
| `postal_code` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | |
11-
| `city` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | |
12-
| `state` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | |
13-
| `country` | [models.CountryAlpha2Input](../models/countryalpha2input.md) | :heavy_check_mark: | N/A | US |
6+
| Field | Type | Required | Description | Example |
7+
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
8+
| `line1` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | |
9+
| `line2` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | |
10+
| `postal_code` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | |
11+
| `city` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | |
12+
| `state` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | |
13+
| `country` | [models.AddressInputCountryAlpha2Input](../models/addressinputcountryalpha2input.md) | :heavy_check_mark: | N/A | US |

0 commit comments

Comments
 (0)