Skip to content

Commit b4abb99

Browse files
speakeasybotfrankie567
authored andcommitted
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.510.0
1 parent 087d529 commit b4abb99

13 files changed

+892
-912
lines changed

.speakeasy/gen.lock

+13-13
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.4
21+
version: 0.16.5
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.509.1
1+
speakeasyVersion: 1.510.0
22
sources:
33
Polar-OAS:
44
sourceNamespace: polar-oas
5-
sourceRevisionDigest: sha256:446a45023d179c8245f4e00aee011c84ea2aa160af7089352add714b702bd6b3
6-
sourceBlobDigest: sha256:4005f4f610b18f88f73db3ddfbcbe89980b6f39342110e3b7249013381a3a63a
5+
sourceRevisionDigest: sha256:3bb862ebbbf5599bdbba5cee5086521bf48cb2e5f3fa53a1aa1bfcc636648561
6+
sourceBlobDigest: sha256:eab033ed329343b543441cbd7c76e1a6f8e8c6fac3ccd47260b74cad3f8ccb0a
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1741193496
9+
- speakeasy-sdk-regen-1741254930
1010
- 0.1.0
1111
targets:
1212
polar:
1313
source: Polar-OAS
1414
sourceNamespace: polar-oas
15-
sourceRevisionDigest: sha256:446a45023d179c8245f4e00aee011c84ea2aa160af7089352add714b702bd6b3
16-
sourceBlobDigest: sha256:4005f4f610b18f88f73db3ddfbcbe89980b6f39342110e3b7249013381a3a63a
15+
sourceRevisionDigest: sha256:3bb862ebbbf5599bdbba5cee5086521bf48cb2e5f3fa53a1aa1bfcc636648561
16+
sourceBlobDigest: sha256:eab033ed329343b543441cbd7c76e1a6f8e8c6fac3ccd47260b74cad3f8ccb0a
1717
codeSamplesNamespace: polar-oas-py-code-samples
18-
codeSamplesRevisionDigest: sha256:7337043fa1a78236c22c4fd8b9f0a5e2a73e05b7760f6ffea113b2974d5860cb
18+
codeSamplesRevisionDigest: sha256:901737bb1808ae65d7348e2f7b6777d0a0b1d0386377d23e3152264a9643d064
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

+783-823
Large diffs are not rendered by default.

RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -583,4 +583,14 @@ Based on:
583583
### Generated
584584
- [python v0.16.4] .
585585
### Releases
586-
- [PyPI v0.16.4] https://pypi.org/project/polar-sdk/0.16.4 - .
586+
- [PyPI v0.16.4] https://pypi.org/project/polar-sdk/0.16.4 - .
587+
588+
## 2025-03-06 09:55:15
589+
### Changes
590+
Based on:
591+
- OpenAPI Doc
592+
- Speakeasy CLI 1.510.0 (2.541.0) https://github.com/speakeasy-api/speakeasy
593+
### Generated
594+
- [python v0.16.5] .
595+
### Releases
596+
- [PyPI v0.16.5] https://pypi.org/project/polar-sdk/0.16.5 - .

codeSamples.yaml

+15-15
Large diffs are not rendered by default.

docs/models/checkout.md

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

pylintrc

+4-1
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,10 @@ disable=raw-checker-failed,
456456
bare-except,
457457
broad-exception-caught,
458458
fixme,
459-
relative-beyond-top-level
459+
relative-beyond-top-level,
460+
consider-using-with,
461+
wildcard-import,
462+
unused-wildcard-import
460463

461464
# Enable the message, report, category or checker with the given id(s). You can
462465
# either give multiple identifier separated by comma (,) or put this option

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "polar-sdk"
3-
version = "0.16.4"
3+
version = "0.16.5"
44
description = "Polar SDK for Python"
55
authors = [{ name = "Polar" },]
66
readme = "README-PYPI.md"

scripts/prepare-readme.py scripts/prepare_readme.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import shutil
55

66
try:
7-
with open("README.md", "r") as rh:
7+
with open("README.md", "r", encoding="utf-8") as rh:
88
readme_contents = rh.read()
99
GITHUB_URL = "https://github.com/polarsource/polar-python.git"
1010
GITHUB_URL = (
@@ -21,13 +21,13 @@
2121
readme_contents,
2222
)
2323

24-
with open("README-PYPI.md", "w") as wh:
24+
with open("README-PYPI.md", "w", encoding="utf-8") as wh:
2525
wh.write(readme_contents)
2626
except Exception as e:
2727
try:
2828
print("Failed to rewrite README.md to README-PYPI.md, copying original instead")
2929
print(e)
3030
shutil.copyfile("README.md", "README-PYPI.md")
31-
except Exception as e:
31+
except Exception as ie:
3232
print("Failed to copy README.md to README-PYPI.md")
33-
print(e)
33+
print(ie)

scripts/publish.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
export POETRY_PYPI_TOKEN_PYPI=${PYPI_TOKEN}
44

5-
poetry run python scripts/prepare-readme.py
5+
poetry run python scripts/prepare_readme.py
66

77
poetry publish --build --skip-existing

src/polar_sdk/_version.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import importlib.metadata
44

55
__title__: str = "polar-sdk"
6-
__version__: str = "0.16.4"
6+
__version__: str = "0.16.5"
77
__openapi_doc_version__: str = "0.1.0"
8-
__gen_version__: str = "2.539.1"
9-
__user_agent__: str = "speakeasy-sdk/python 0.16.4 2.539.1 0.1.0 polar-sdk"
8+
__gen_version__: str = "2.541.0"
9+
__user_agent__: str = "speakeasy-sdk/python 0.16.5 2.541.0 0.1.0 polar-sdk"
1010

1111
try:
1212
if __package__ is not None:

src/polar_sdk/models/checkout.py

+6
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ class CheckoutTypedDict(TypedDict):
155155
customer_tax_id: Nullable[str]
156156
payment_processor_metadata: Dict[str, str]
157157
metadata: Dict[str, CheckoutMetadataTypedDict]
158+
customer_external_id: Nullable[str]
159+
r"""ID of the customer in your system. If a matching customer exists on Polar, the resulting order will be linked to this customer. Otherwise, a new customer will be created with this external ID set."""
158160
products: List[CheckoutProductTypedDict]
159161
r"""List of products available to select."""
160162
product: CheckoutProductTypedDict
@@ -261,6 +263,9 @@ class Checkout(BaseModel):
261263

262264
metadata: Dict[str, CheckoutMetadata]
263265

266+
customer_external_id: Nullable[str]
267+
r"""ID of the customer in your system. If a matching customer exists on Polar, the resulting order will be linked to this customer. Otherwise, a new customer will be created with this external ID set."""
268+
264269
products: List[CheckoutProduct]
265270
r"""List of products available to select."""
266271

@@ -299,6 +304,7 @@ def serialize_model(self, handler):
299304
"customer_ip_address",
300305
"customer_billing_address",
301306
"customer_tax_id",
307+
"customer_external_id",
302308
"discount",
303309
"subscription_id",
304310
]

0 commit comments

Comments
 (0)