File tree 13 files changed +892
-912
lines changed
Filter options
13 files changed +892
-912
lines changed
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ generation:
18
18
oAuth2ClientCredentialsEnabled : true
19
19
oAuth2PasswordEnabled : false
20
20
python :
21
- version : 0.16.4
21
+ version : 0.16.5
22
22
additionalDependencies :
23
23
dev :
24
24
pytest : ^8.3.3
Original file line number Diff line number Diff line change 1
- speakeasyVersion: 1.509.1
1
+ speakeasyVersion: 1.510.0
2
2
sources:
3
3
Polar-OAS:
4
4
sourceNamespace: polar-oas
5
- sourceRevisionDigest: sha256:446a45023d179c8245f4e00aee011c84ea2aa160af7089352add714b702bd6b3
6
- sourceBlobDigest: sha256:4005f4f610b18f88f73db3ddfbcbe89980b6f39342110e3b7249013381a3a63a
5
+ sourceRevisionDigest: sha256:3bb862ebbbf5599bdbba5cee5086521bf48cb2e5f3fa53a1aa1bfcc636648561
6
+ sourceBlobDigest: sha256:eab033ed329343b543441cbd7c76e1a6f8e8c6fac3ccd47260b74cad3f8ccb0a
7
7
tags:
8
8
- latest
9
- - speakeasy-sdk-regen-1741193496
9
+ - speakeasy-sdk-regen-1741254930
10
10
- 0.1.0
11
11
targets:
12
12
polar:
13
13
source: Polar-OAS
14
14
sourceNamespace: polar-oas
15
- sourceRevisionDigest: sha256:446a45023d179c8245f4e00aee011c84ea2aa160af7089352add714b702bd6b3
16
- sourceBlobDigest: sha256:4005f4f610b18f88f73db3ddfbcbe89980b6f39342110e3b7249013381a3a63a
15
+ sourceRevisionDigest: sha256:3bb862ebbbf5599bdbba5cee5086521bf48cb2e5f3fa53a1aa1bfcc636648561
16
+ sourceBlobDigest: sha256:eab033ed329343b543441cbd7c76e1a6f8e8c6fac3ccd47260b74cad3f8ccb0a
17
17
codeSamplesNamespace: polar-oas-py-code-samples
18
- codeSamplesRevisionDigest: sha256:7337043fa1a78236c22c4fd8b9f0a5e2a73e05b7760f6ffea113b2974d5860cb
18
+ codeSamplesRevisionDigest: sha256:901737bb1808ae65d7348e2f7b6777d0a0b1d0386377d23e3152264a9643d064
19
19
workflow:
20
20
workflowVersion: 1.0.0
21
21
speakeasyVersion: latest
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -583,4 +583,14 @@ Based on:
583
583
### Generated
584
584
- [ python v0.16.4] .
585
585
### 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 - .
Load Diff Large diffs are not rendered by default.
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -456,7 +456,10 @@ disable=raw-checker-failed,
456
456
bare-except,
457
457
broad-exception-caught,
458
458
fixme,
459
- relative-beyond-top-level
459
+ relative-beyond-top-level,
460
+ consider-using-with,
461
+ wildcard-import,
462
+ unused-wildcard-import
460
463
461
464
# Enable the message, report, category or checker with the given id(s). You can
462
465
# either give multiple identifier separated by comma (,) or put this option
Original file line number Diff line number Diff line change 1
1
[project ]
2
2
name = " polar-sdk"
3
- version = " 0.16.4 "
3
+ version = " 0.16.5 "
4
4
description = " Polar SDK for Python"
5
5
authors = [{ name = " Polar" },]
6
6
readme = " README-PYPI.md"
Original file line number Diff line number Diff line change 4
4
import shutil
5
5
6
6
try :
7
- with open ("README.md" , "r" ) as rh :
7
+ with open ("README.md" , "r" , encoding = "utf-8" ) as rh :
8
8
readme_contents = rh .read ()
9
9
GITHUB_URL = "https://github.com/polarsource/polar-python.git"
10
10
GITHUB_URL = (
21
21
readme_contents ,
22
22
)
23
23
24
- with open ("README-PYPI.md" , "w" ) as wh :
24
+ with open ("README-PYPI.md" , "w" , encoding = "utf-8" ) as wh :
25
25
wh .write (readme_contents )
26
26
except Exception as e :
27
27
try :
28
28
print ("Failed to rewrite README.md to README-PYPI.md, copying original instead" )
29
29
print (e )
30
30
shutil .copyfile ("README.md" , "README-PYPI.md" )
31
- except Exception as e :
31
+ except Exception as ie :
32
32
print ("Failed to copy README.md to README-PYPI.md" )
33
- print (e )
33
+ print (ie )
Original file line number Diff line number Diff line change 2
2
3
3
export POETRY_PYPI_TOKEN_PYPI=${PYPI_TOKEN}
4
4
5
- poetry run python scripts/prepare-readme .py
5
+ poetry run python scripts/prepare_readme .py
6
6
7
7
poetry publish --build --skip-existing
Original file line number Diff line number Diff line change 3
3
import importlib .metadata
4
4
5
5
__title__ : str = "polar-sdk"
6
- __version__ : str = "0.16.4 "
6
+ __version__ : str = "0.16.5 "
7
7
__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"
10
10
11
11
try :
12
12
if __package__ is not None :
Original file line number Diff line number Diff line change @@ -155,6 +155,8 @@ class CheckoutTypedDict(TypedDict):
155
155
customer_tax_id : Nullable [str ]
156
156
payment_processor_metadata : Dict [str , str ]
157
157
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."""
158
160
products : List [CheckoutProductTypedDict ]
159
161
r"""List of products available to select."""
160
162
product : CheckoutProductTypedDict
@@ -261,6 +263,9 @@ class Checkout(BaseModel):
261
263
262
264
metadata : Dict [str , CheckoutMetadata ]
263
265
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
+
264
269
products : List [CheckoutProduct ]
265
270
r"""List of products available to select."""
266
271
@@ -299,6 +304,7 @@ def serialize_model(self, handler):
299
304
"customer_ip_address" ,
300
305
"customer_billing_address" ,
301
306
"customer_tax_id" ,
307
+ "customer_external_id" ,
302
308
"discount" ,
303
309
"subscription_id" ,
304
310
]
You can’t perform that action at this time.
0 commit comments