Skip to content

Commit 2a11ff4

Browse files
speakeasybotfrankie567
authored andcommitted
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.505.2
1 parent ec26232 commit 2a11ff4

File tree

82 files changed

+1659
-337
lines changed

Some content is hidden

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

82 files changed

+1659
-337
lines changed

.speakeasy/gen.lock

+110-42
Large diffs are not rendered by default.

.speakeasy/gen.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ generation:
1818
oAuth2ClientCredentialsEnabled: true
1919
oAuth2PasswordEnabled: false
2020
python:
21-
version: 0.16.0
21+
version: 0.16.1
2222
additionalDependencies:
2323
dev:
2424
pytest: ^8.3.3

.speakeasy/workflow.lock

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.503.0
1+
speakeasyVersion: 1.505.2
22
sources:
33
Polar-OAS:
44
sourceNamespace: polar-oas
5-
sourceRevisionDigest: sha256:16fd7be222c6c3904c7ef2c9705ee8ea88d0d39441a1e96555a3fa3cf038a9ed
6-
sourceBlobDigest: sha256:8576f7abe4e3ede26dd81dcf754e97232ff5907f92d61e89e4c3649729d62af7
5+
sourceRevisionDigest: sha256:3e5af0457ef6dda422a06a14048622910c8b2f0efd0f92482c6fd6218d462555
6+
sourceBlobDigest: sha256:e8c271d918ce36481891a718e7a8729e4ba758d2057c51727b947fb5d8413ca4
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1740505827
9+
- speakeasy-sdk-regen-1740615159
1010
- 0.1.0
1111
targets:
1212
polar:
1313
source: Polar-OAS
1414
sourceNamespace: polar-oas
15-
sourceRevisionDigest: sha256:16fd7be222c6c3904c7ef2c9705ee8ea88d0d39441a1e96555a3fa3cf038a9ed
16-
sourceBlobDigest: sha256:8576f7abe4e3ede26dd81dcf754e97232ff5907f92d61e89e4c3649729d62af7
15+
sourceRevisionDigest: sha256:3e5af0457ef6dda422a06a14048622910c8b2f0efd0f92482c6fd6218d462555
16+
sourceBlobDigest: sha256:e8c271d918ce36481891a718e7a8729e4ba758d2057c51727b947fb5d8413ca4
1717
codeSamplesNamespace: polar-oas-py-code-samples
18-
codeSamplesRevisionDigest: sha256:1073f73829d634a5eccf7642ebb51c12627952c70821209b893b72de18c36796
18+
codeSamplesRevisionDigest: sha256:18b2a40cb76f0289e2ac4ec393094c991f378fca0ae9097ca3e498d475af07b3
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ import dateutil.parser
109109
import polar_sdk
110110
from polar_sdk import Polar
111111

112+
112113
with Polar() as polar:
113114

114115
res = polar.endpointcheckout_created_post(request=polar_sdk.WebhookCheckoutCreatedPayload(
@@ -614,6 +615,7 @@ import polar_sdk
614615
from polar_sdk import Polar
615616

616617
async def main():
618+
617619
async with Polar() as polar:
618620

619621
res = await polar.endpointcheckout_created_post_async(request=polar_sdk.WebhookCheckoutCreatedPayload(
@@ -1235,6 +1237,9 @@ def webhook():
12351237
* [get](docs/sdks/customers/README.md#get) - Get Customer
12361238
* [update](docs/sdks/customers/README.md#update) - Update Customer
12371239
* [delete](docs/sdks/customers/README.md#delete) - Delete Customer
1240+
* [get_external](docs/sdks/customers/README.md#get_external) - Get Customer by External ID
1241+
* [update_external](docs/sdks/customers/README.md#update_external) - Update Customer by External ID
1242+
* [delete_external](docs/sdks/customers/README.md#delete_external) - Delete Customer by External ID
12381243

12391244
### [discounts](docs/sdks/discounts/README.md)
12401245

@@ -1353,6 +1358,7 @@ To change the default retry strategy for a single API call, simply provide a `Re
13531358
from polar_sdk import Polar
13541359
from polar_sdk.utils import BackoffStrategy, RetryConfig
13551360

1361+
13561362
with Polar(
13571363
access_token="<YOUR_BEARER_TOKEN_HERE>",
13581364
) as polar:
@@ -1372,6 +1378,7 @@ If you'd like to override the default retry strategy for all operations that sup
13721378
from polar_sdk import Polar
13731379
from polar_sdk.utils import BackoffStrategy, RetryConfig
13741380

1381+
13751382
with Polar(
13761383
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
13771384
access_token="<YOUR_BEARER_TOKEN_HERE>",
@@ -1413,6 +1420,7 @@ When custom error responses are specified for an operation, the SDK may also rai
14131420
```python
14141421
from polar_sdk import Polar, models
14151422

1423+
14161424
with Polar(
14171425
access_token="<YOUR_BEARER_TOKEN_HERE>",
14181426
) as polar:
@@ -1452,6 +1460,7 @@ You can override the default server globally by passing a server name to the `se
14521460
```python
14531461
from polar_sdk import Polar
14541462

1463+
14551464
with Polar(
14561465
server="sandbox",
14571466
access_token="<YOUR_BEARER_TOKEN_HERE>",
@@ -1472,6 +1481,7 @@ The default server can also be overridden globally by passing a URL to the `serv
14721481
```python
14731482
from polar_sdk import Polar
14741483

1484+
14751485
with Polar(
14761486
server_url="https://api.polar.sh",
14771487
access_token="<YOUR_BEARER_TOKEN_HERE>",
@@ -1583,6 +1593,7 @@ To authenticate with the API the `access_token` parameter must be set when initi
15831593
```python
15841594
from polar_sdk import Polar
15851595

1596+
15861597
with Polar(
15871598
access_token="<YOUR_BEARER_TOKEN_HERE>",
15881599
) as polar:
@@ -1603,6 +1614,7 @@ Some operations in this SDK require the security scheme to be specified at the r
16031614
import polar_sdk
16041615
from polar_sdk import Polar
16051616

1617+
16061618
with Polar() as polar:
16071619

16081620
res = polar.customer_portal.benefit_grants.list(security=polar_sdk.CustomerPortalBenefitGrantsListSecurity(
@@ -1627,6 +1639,7 @@ The `Polar` class implements the context manager protocol and registers a finali
16271639
```python
16281640
from polar_sdk import Polar
16291641
def main():
1642+
16301643
with Polar(
16311644
access_token="<YOUR_BEARER_TOKEN_HERE>",
16321645
) as polar:
@@ -1635,6 +1648,7 @@ def main():
16351648

16361649
# Or when using async:
16371650
async def amain():
1651+
16381652
async with Polar(
16391653
access_token="<YOUR_BEARER_TOKEN_HERE>",
16401654
) as polar:
@@ -1668,6 +1682,7 @@ Here's an example of one such pagination call:
16681682
```python
16691683
from polar_sdk import Polar
16701684

1685+
16711686
with Polar(
16721687
access_token="<YOUR_BEARER_TOKEN_HERE>",
16731688
) as polar:

RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -543,4 +543,14 @@ Based on:
543543
### Generated
544544
- [python v0.16.0] .
545545
### Releases
546-
- [PyPI v0.16.0] https://pypi.org/project/polar-sdk/0.16.0 - .
546+
- [PyPI v0.16.0] https://pypi.org/project/polar-sdk/0.16.0 - .
547+
548+
## 2025-02-27 15:49:54
549+
### Changes
550+
Based on:
551+
- OpenAPI Doc
552+
- Speakeasy CLI 1.505.2 (2.531.3) https://github.com/speakeasy-api/speakeasy
553+
### Generated
554+
- [python v0.16.1] .
555+
### Releases
556+
- [PyPI v0.16.1] https://pypi.org/project/polar-sdk/0.16.1 - .

USAGE.md

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Synchronous Example
44
from polar_sdk import Polar
55

6+
67
with Polar(
78
access_token="<YOUR_BEARER_TOKEN_HERE>",
89
) as polar:
@@ -24,6 +25,7 @@ import asyncio
2425
from polar_sdk import Polar
2526

2627
async def main():
28+
2729
async with Polar(
2830
access_token="<YOUR_BEARER_TOKEN_HERE>",
2931
) as polar:

0 commit comments

Comments
 (0)