Skip to content

Commit 39f3e1a

Browse files
speakeasybotfrankie567
authored andcommitted
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.399.2
1 parent cf541d9 commit 39f3e1a

70 files changed

Lines changed: 1144 additions & 373 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: 45 additions & 23 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
@@ -15,7 +15,7 @@ generation:
1515
auth:
1616
oAuth2ClientCredentialsEnabled: true
1717
python:
18-
version: 0.2.2
18+
version: 0.3.0
1919
additionalDependencies:
2020
dev: {}
2121
main: {}

.speakeasy/workflow.lock

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
speakeasyVersion: 1.398.0
1+
speakeasyVersion: 1.399.2
22
sources:
33
Polar-OAS:
44
sourceNamespace: polar-oas
5-
sourceRevisionDigest: sha256:079c66417cf8ba0d4da343834e14c32111328f1cbd5a060f2e4b0e65705a64d1
6-
sourceBlobDigest: sha256:cfa0bf065ba416bba77fc02ee0ff34c6b24d3363ba1d7bf3f3158a065b661d7d
5+
sourceRevisionDigest: sha256:845dacdd7a7a8361e00244e91be8d5238df1630b8d43a880081955a4d0bc131a
6+
sourceBlobDigest: sha256:be5d595269c5d0a01528d11da1b2fbaea4a2f76c96d09aaab78fc853af5be99d
77
tags:
88
- latest
99
- main
1010
targets:
1111
polar:
1212
source: Polar-OAS
1313
sourceNamespace: polar-oas
14-
sourceRevisionDigest: sha256:079c66417cf8ba0d4da343834e14c32111328f1cbd5a060f2e4b0e65705a64d1
15-
sourceBlobDigest: sha256:cfa0bf065ba416bba77fc02ee0ff34c6b24d3363ba1d7bf3f3158a065b661d7d
14+
sourceRevisionDigest: sha256:845dacdd7a7a8361e00244e91be8d5238df1630b8d43a880081955a4d0bc131a
15+
sourceBlobDigest: sha256:be5d595269c5d0a01528d11da1b2fbaea4a2f76c96d09aaab78fc853af5be99d
1616
workflow:
1717
workflowVersion: 1.0.0
1818
speakeasyVersion: latest
@@ -23,6 +23,7 @@ workflow:
2323
overlays:
2424
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/security.yml
2525
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/type_parameter.yml
26+
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/product_price_discriminator.yml
2627
registry:
2728
location: registry.speakeasyapi.dev/polar/polar/polar-oas
2829
targets:

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -370,21 +370,22 @@ except models.SDKError as e:
370370
<!-- Start Server Selection [server] -->
371371
## Server Selection
372372

373-
### Select Server by Index
373+
### Select Server by Name
374374

375-
You can override the default server globally by passing a server index to the `server_idx: int` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
375+
You can override the default server globally by passing a server name to the `server: str` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the names associated with the available servers:
376376

377-
| # | Server | Variables |
378-
| - | ------ | --------- |
379-
| 0 | `https://api.polar.sh` | None |
377+
| Name | Server | Variables |
378+
| ----- | ------ | --------- |
379+
| `production` | `https://api.polar.sh` | None |
380+
| `sandbox` | `https://sandbox-api.polar.sh` | None |
380381

381382
#### Example
382383

383384
```python
384385
from polar_sdk import Polar
385386

386387
s = Polar(
387-
server_idx=0,
388+
server="sandbox",
388389
access_token="<YOUR_BEARER_TOKEN_HERE>",
389390
)
390391

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,4 +153,14 @@ Based on:
153153
### Generated
154154
- [python v0.2.2] .
155155
### Releases
156-
- [PyPI v0.2.2] https://pypi.org/project/polar-sdk/0.2.2 - .
156+
- [PyPI v0.2.2] https://pypi.org/project/polar-sdk/0.2.2 - .
157+
158+
## 2024-09-18 16:07:44
159+
### Changes
160+
Based on:
161+
- OpenAPI Doc
162+
- Speakeasy CLI 1.399.2 (2.416.6) https://github.com/speakeasy-api/speakeasy
163+
### Generated
164+
- [python v0.3.0] .
165+
### Releases
166+
- [PyPI v0.3.0] https://pypi.org/project/polar-sdk/0.3.0 - .

codeSamples.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -924,8 +924,8 @@ actions:
924924
"name": "<value>",
925925
"prices": [
926926
{
927-
"recurring_interval": polar_sdk.ProductPriceRecurringInterval.MONTH,
928-
"price_amount": 489382,
927+
"price_amount": 486589,
928+
"recurring_interval": polar_sdk.SubscriptionRecurringInterval.MONTH,
929929
},
930930
],
931931
"type": polar_sdk.ProductRecurringCreateType.INDIVIDUAL,

docs/models/amounttype.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# AmountType
2+
3+
4+
## Values
5+
6+
| Name | Value |
7+
| ------- | ------- |
8+
| `FIXED` | fixed |

docs/models/ordersubscription.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,20 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description |
7-
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
8-
| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Creation timestamp of the object. |
9-
| `modified_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Last modification timestamp of the object. |
10-
| `id` | *str* | :heavy_check_mark: | The ID of the object. |
11-
| `status` | [models.SubscriptionStatus](../models/subscriptionstatus.md) | :heavy_check_mark: | N/A |
12-
| `current_period_start` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A |
13-
| `current_period_end` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A |
14-
| `cancel_at_period_end` | *bool* | :heavy_check_mark: | N/A |
15-
| `started_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A |
16-
| `ended_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A |
17-
| `user_id` | *str* | :heavy_check_mark: | N/A |
18-
| `product_id` | *str* | :heavy_check_mark: | N/A |
19-
| `price_id` | *Nullable[str]* | :heavy_check_mark: | N/A |
6+
| Field | Type | Required | Description |
7+
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
8+
| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Creation timestamp of the object. |
9+
| `modified_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Last modification timestamp of the object. |
10+
| `id` | *str* | :heavy_check_mark: | The ID of the object. |
11+
| `amount` | *Nullable[int]* | :heavy_check_mark: | N/A |
12+
| `currency` | *Nullable[str]* | :heavy_check_mark: | N/A |
13+
| `recurring_interval` | [models.SubscriptionRecurringInterval](../models/subscriptionrecurringinterval.md) | :heavy_check_mark: | N/A |
14+
| `status` | [models.SubscriptionStatus](../models/subscriptionstatus.md) | :heavy_check_mark: | N/A |
15+
| `current_period_start` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A |
16+
| `current_period_end` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A |
17+
| `cancel_at_period_end` | *bool* | :heavy_check_mark: | N/A |
18+
| `started_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A |
19+
| `ended_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A |
20+
| `user_id` | *str* | :heavy_check_mark: | N/A |
21+
| `product_id` | *str* | :heavy_check_mark: | N/A |
22+
| `price_id` | *Nullable[str]* | :heavy_check_mark: | N/A |

docs/models/organizationfeaturesettings.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@
66
| Field | Type | Required | Description |
77
| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- |
88
| `articles_enabled` | *Optional[bool]* | :heavy_minus_sign: | If this organization has articles enabled |
9-
| `subscriptions_enabled` | *Optional[bool]* | :heavy_minus_sign: | If this organization has subscriptions enabled |
109
| `issue_funding_enabled` | *Optional[bool]* | :heavy_minus_sign: | If this organization has issue funding enabled |

docs/models/prices.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,15 @@
33

44
## Supported Types
55

6-
### `models.ExistingProductPrice`
6+
### `models.ProductPriceOneTimeFixedCreate`
77

88
```python
9-
value: models.ExistingProductPrice = /* values here */
9+
value: models.ProductPriceOneTimeFixedCreate = /* values here */
1010
```
1111

12-
### `models.ProductPriceRecurringCreate`
12+
### `models.ProductPriceOneTimeCustomCreate`
1313

1414
```python
15-
value: models.ProductPriceRecurringCreate = /* values here */
16-
```
17-
18-
### `models.ProductPriceOneTimeCreate`
19-
20-
```python
21-
value: models.ProductPriceOneTimeCreate = /* values here */
15+
value: models.ProductPriceOneTimeCustomCreate = /* values here */
2216
```
2317

0 commit comments

Comments
 (0)