Skip to content

Commit c6201f9

Browse files
committed
## Python SDK Changes Detected:
* `polar.customers.list()`: `request.include_members` **Removed** **Breaking** ⚠️ * `polar.customers.create()`: `request` **Changed** **Breaking** ⚠️ * `polar.customers.get()`: `request.include_members` **Removed** **Breaking** ⚠️ * `polar.customers.update()`: `request.include_members` **Removed** **Breaking** ⚠️ * `polar.customers.get_external()`: `request.include_members` **Removed** **Breaking** ⚠️ * `polar.customers.update_external()`: `request.include_members` **Removed** **Breaking** ⚠️
1 parent b50ae5b commit c6201f9

24 files changed

+109
-238
lines changed

.speakeasy/gen.lock

Lines changed: 27 additions & 26 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
@@ -28,7 +28,7 @@ generation:
2828
skipResponseBodyAssertions: false
2929
persistentEdits: {}
3030
python:
31-
version: 0.28.1
31+
version: 0.28.2
3232
additionalDependencies:
3333
dev:
3434
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:a2296677356336366c4a76503e7e7ba132842f9a48a84c6ed0dbd330f6960c74
6-
sourceBlobDigest: sha256:16616e0b00982de0e23eafdc326269a13c6a4de07ba55aaf350f4ee2399e6838
5+
sourceRevisionDigest: sha256:bf819babffe2a37b682a20d0d82a540d39b5f30877626d4a7af6dedbadc7a8f8
6+
sourceBlobDigest: sha256:40eb54c6f2e7571d4ccad40e2dcfcaa64e4c084abc9b4b01cca7ea0101812361
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1762301662
9+
- speakeasy-sdk-regen-1766276214
1010
- 0.1.0
1111
targets:
1212
polar:
1313
source: Polar-OAS
1414
sourceNamespace: polar-oas
15-
sourceRevisionDigest: sha256:a2296677356336366c4a76503e7e7ba132842f9a48a84c6ed0dbd330f6960c74
16-
sourceBlobDigest: sha256:16616e0b00982de0e23eafdc326269a13c6a4de07ba55aaf350f4ee2399e6838
15+
sourceRevisionDigest: sha256:bf819babffe2a37b682a20d0d82a540d39b5f30877626d4a7af6dedbadc7a8f8
16+
sourceBlobDigest: sha256:40eb54c6f2e7571d4ccad40e2dcfcaa64e4c084abc9b4b01cca7ea0101812361
1717
codeSamplesNamespace: polar-oas-py-code-samples
18-
codeSamplesRevisionDigest: sha256:1d25f2976eec11421b26ed079aebe38d6567c88c58f902fe28444c512fc090f6
18+
codeSamplesRevisionDigest: sha256:9a85389c4250c2a02c5baf4104bef368482c0ddc8342db51ed4cc4a738c9e060
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,4 +993,14 @@ Based on:
993993
### Generated
994994
- [python v0.28.1] .
995995
### Releases
996-
- [PyPI v0.28.1] https://pypi.org/project/polar-sdk/0.28.1 - .
996+
- [PyPI v0.28.1] https://pypi.org/project/polar-sdk/0.28.1 - .
997+
998+
## 2025-12-28 00:17:36
999+
### Changes
1000+
Based on:
1001+
- OpenAPI Doc
1002+
- Speakeasy CLI 1.648.0 (2.737.0) https://github.com/speakeasy-api/speakeasy
1003+
### Generated
1004+
- [python v0.28.2] .
1005+
### Releases
1006+
- [PyPI v0.28.2] https://pypi.org/project/polar-sdk/0.28.2 - .

codeSamples.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -428,13 +428,13 @@ actions:
428428
"x-codeSamples":
429429
- "lang": "python"
430430
"label": "Python (SDK)"
431-
"source": "from polar_sdk import Polar\n\n\nwith Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n) as polar:\n\n res = polar.customers.list(organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\", include_members=False, page=1, limit=10)\n\n while res is not None:\n # Handle items\n\n res = res.next()"
431+
"source": "from polar_sdk import Polar\n\n\nwith Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n) as polar:\n\n res = polar.customers.list(organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\", page=1, limit=10)\n\n while res is not None:\n # Handle items\n\n res = res.next()"
432432
- target: $["paths"]["/v1/customers/"]["post"]
433433
update:
434434
"x-codeSamples":
435435
- "lang": "python"
436436
"label": "Python (SDK)"
437-
"source": "import polar_sdk\nfrom polar_sdk import Polar\n\n\nwith Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n) as polar:\n\n res = polar.customers.create(customer_create={\n \"external_id\": \"usr_1337\",\n \"email\": \"[email protected]\",\n \"name\": \"John Doe\",\n \"billing_address\": {\n \"country\": polar_sdk.CountryAlpha2Input.US,\n },\n \"tax_id\": [\n \"911144442\",\n \"us_ein\",\n ],\n \"organization_id\": \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n \"owner\": {\n \"email\": \"[email protected]\",\n \"name\": \"Jane Doe\",\n \"external_id\": \"usr_1337\",\n },\n }, include_members=False)\n\n # Handle response\n print(res)"
437+
"source": "import polar_sdk\nfrom polar_sdk import Polar\n\n\nwith Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n) as polar:\n\n res = polar.customers.create(request={\n \"external_id\": \"usr_1337\",\n \"email\": \"[email protected]\",\n \"name\": \"John Doe\",\n \"billing_address\": {\n \"country\": polar_sdk.CountryAlpha2Input.US,\n },\n \"tax_id\": [\n \"911144442\",\n \"us_ein\",\n ],\n \"organization_id\": \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n \"owner\": {\n \"email\": \"[email protected]\",\n \"name\": \"Jane Doe\",\n \"external_id\": \"usr_1337\",\n },\n })\n\n # Handle response\n print(res)"
438438
- target: $["paths"]["/v1/customers/export"]["get"]
439439
update:
440440
"x-codeSamples":
@@ -452,13 +452,13 @@ actions:
452452
"x-codeSamples":
453453
- "lang": "python"
454454
"label": "Python (SDK)"
455-
"source": "from polar_sdk import Polar\n\n\nwith Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n) as polar:\n\n res = polar.customers.get_external(external_id=\"<id>\", include_members=False)\n\n # Handle response\n print(res)"
455+
"source": "from polar_sdk import Polar\n\n\nwith Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n) as polar:\n\n res = polar.customers.get_external(external_id=\"<id>\")\n\n # Handle response\n print(res)"
456456
- target: $["paths"]["/v1/customers/external/{external_id}"]["patch"]
457457
update:
458458
"x-codeSamples":
459459
- "lang": "python"
460460
"label": "Python (SDK)"
461-
"source": "from polar_sdk import Polar\n\n\nwith Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n) as polar:\n\n res = polar.customers.update_external(external_id=\"<id>\", customer_update_external_id={\n \"email\": \"[email protected]\",\n \"name\": \"John Doe\",\n \"billing_address\": None,\n \"tax_id\": [\n \"911144442\",\n \"us_ein\",\n ],\n }, include_members=False)\n\n # Handle response\n print(res)"
461+
"source": "from polar_sdk import Polar\n\n\nwith Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n) as polar:\n\n res = polar.customers.update_external(external_id=\"<id>\", customer_update_external_id={\n \"email\": \"[email protected]\",\n \"name\": \"John Doe\",\n \"billing_address\": None,\n \"tax_id\": [\n \"911144442\",\n \"us_ein\",\n ],\n })\n\n # Handle response\n print(res)"
462462
- target: $["paths"]["/v1/customers/external/{external_id}/state"]["get"]
463463
update:
464464
"x-codeSamples":
@@ -476,13 +476,13 @@ actions:
476476
"x-codeSamples":
477477
- "lang": "python"
478478
"label": "Python (SDK)"
479-
"source": "from polar_sdk import Polar\n\n\nwith Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n) as polar:\n\n res = polar.customers.get(id=\"<value>\", include_members=False)\n\n # Handle response\n print(res)"
479+
"source": "from polar_sdk import Polar\n\n\nwith Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n) as polar:\n\n res = polar.customers.get(id=\"<value>\")\n\n # Handle response\n print(res)"
480480
- target: $["paths"]["/v1/customers/{id}"]["patch"]
481481
update:
482482
"x-codeSamples":
483483
- "lang": "python"
484484
"label": "Python (SDK)"
485-
"source": "import polar_sdk\nfrom polar_sdk import Polar\n\n\nwith Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n) as polar:\n\n res = polar.customers.update(id=\"<value>\", customer_update={\n \"email\": \"[email protected]\",\n \"name\": \"John Doe\",\n \"billing_address\": {\n \"country\": polar_sdk.CountryAlpha2Input.US,\n },\n \"tax_id\": [\n \"911144442\",\n \"us_ein\",\n ],\n \"external_id\": \"usr_1337\",\n }, include_members=False)\n\n # Handle response\n print(res)"
485+
"source": "import polar_sdk\nfrom polar_sdk import Polar\n\n\nwith Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n) as polar:\n\n res = polar.customers.update(id=\"<value>\", customer_update={\n \"email\": \"[email protected]\",\n \"name\": \"John Doe\",\n \"billing_address\": {\n \"country\": polar_sdk.CountryAlpha2Input.US,\n },\n \"tax_id\": [\n \"911144442\",\n \"us_ein\",\n ],\n \"external_id\": \"usr_1337\",\n })\n\n # Handle response\n print(res)"
486486
- target: $["paths"]["/v1/customers/{id}/state"]["get"]
487487
update:
488488
"x-codeSamples":

docs/models/customerscreaterequest.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/models/customersgetexternalrequest.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description |
7-
| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- |
8-
| `external_id` | *str* | :heavy_check_mark: | The customer external ID. |
9-
| `include_members` | *Optional[bool]* | :heavy_minus_sign: | Include members in the response. Only populated when set to true. |
6+
| Field | Type | Required | Description |
7+
| ------------------------- | ------------------------- | ------------------------- | ------------------------- |
8+
| `external_id` | *str* | :heavy_check_mark: | The customer external ID. |

docs/models/customersgetrequest.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description |
7-
| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- |
8-
| `id` | *str* | :heavy_check_mark: | The customer ID. |
9-
| `include_members` | *Optional[bool]* | :heavy_minus_sign: | Include members in the response. Only populated when set to true. |
6+
| Field | Type | Required | Description |
7+
| ------------------ | ------------------ | ------------------ | ------------------ |
8+
| `id` | *str* | :heavy_check_mark: | The customer ID. |

docs/models/customerslistrequest.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
| `organization_id` | [OptionalNullable[models.CustomersListQueryParamOrganizationIDFilter]](../models/customerslistqueryparamorganizationidfilter.md) | :heavy_minus_sign: | Filter by organization ID. |
99
| `email` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter by exact email. |
1010
| `query` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter by name, email, or external ID. |
11-
| `include_members` | *Optional[bool]* | :heavy_minus_sign: | Include members in the response. Only populated when set to true. |
1211
| `page` | *Optional[int]* | :heavy_minus_sign: | Page number, defaults to 1. |
1312
| `limit` | *Optional[int]* | :heavy_minus_sign: | Size of a page, defaults to 10. Maximum is 100. |
1413
| `sorting` | List[[models.CustomerSortProperty](../models/customersortproperty.md)] | :heavy_minus_sign: | Sorting criterion. Several criteria can be used simultaneously and will be applied in order. Add a minus sign `-` before the criteria name to sort by descending order. |

docs/models/customersupdateexternalrequest.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
| `external_id` | *str* | :heavy_check_mark: | The customer external ID. |
9-
| `include_members` | *Optional[bool]* | :heavy_minus_sign: | Include members in the response. Only populated when set to true. |
109
| `customer_update_external_id` | [models.CustomerUpdateExternalID](../models/customerupdateexternalid.md) | :heavy_check_mark: | N/A |

0 commit comments

Comments
 (0)