Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 27 additions & 26 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ generation:
skipResponseBodyAssertions: false
persistentEdits: {}
python:
version: 0.28.1
version: 0.28.2
additionalDependencies:
dev:
pydantic-ai-slim: ^0.1.0
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ speakeasyVersion: 1.648.0
sources:
Polar-OAS:
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:a2296677356336366c4a76503e7e7ba132842f9a48a84c6ed0dbd330f6960c74
sourceBlobDigest: sha256:16616e0b00982de0e23eafdc326269a13c6a4de07ba55aaf350f4ee2399e6838
sourceRevisionDigest: sha256:bf819babffe2a37b682a20d0d82a540d39b5f30877626d4a7af6dedbadc7a8f8
sourceBlobDigest: sha256:40eb54c6f2e7571d4ccad40e2dcfcaa64e4c084abc9b4b01cca7ea0101812361
tags:
- latest
- speakeasy-sdk-regen-1762301662
- speakeasy-sdk-regen-1766276214
- 0.1.0
targets:
polar:
source: Polar-OAS
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:a2296677356336366c4a76503e7e7ba132842f9a48a84c6ed0dbd330f6960c74
sourceBlobDigest: sha256:16616e0b00982de0e23eafdc326269a13c6a4de07ba55aaf350f4ee2399e6838
sourceRevisionDigest: sha256:bf819babffe2a37b682a20d0d82a540d39b5f30877626d4a7af6dedbadc7a8f8
sourceBlobDigest: sha256:40eb54c6f2e7571d4ccad40e2dcfcaa64e4c084abc9b4b01cca7ea0101812361
codeSamplesNamespace: polar-oas-py-code-samples
codeSamplesRevisionDigest: sha256:1d25f2976eec11421b26ed079aebe38d6567c88c58f902fe28444c512fc090f6
codeSamplesRevisionDigest: sha256:9a85389c4250c2a02c5baf4104bef368482c0ddc8342db51ed4cc4a738c9e060
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -993,4 +993,14 @@ Based on:
### Generated
- [python v0.28.1] .
### Releases
- [PyPI v0.28.1] https://pypi.org/project/polar-sdk/0.28.1 - .
- [PyPI v0.28.1] https://pypi.org/project/polar-sdk/0.28.1 - .

## 2025-12-25 00:15:29
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.648.0 (2.737.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.28.2] .
### Releases
- [PyPI v0.28.2] https://pypi.org/project/polar-sdk/0.28.2 - .
12 changes: 6 additions & 6 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -428,13 +428,13 @@ actions:
"x-codeSamples":
- "lang": "python"
"label": "Python (SDK)"
"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()"
"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()"
- target: $["paths"]["/v1/customers/"]["post"]
update:
"x-codeSamples":
- "lang": "python"
"label": "Python (SDK)"
"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)"
"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)"
- target: $["paths"]["/v1/customers/export"]["get"]
update:
"x-codeSamples":
Expand All @@ -452,13 +452,13 @@ actions:
"x-codeSamples":
- "lang": "python"
"label": "Python (SDK)"
"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)"
"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)"
- target: $["paths"]["/v1/customers/external/{external_id}"]["patch"]
update:
"x-codeSamples":
- "lang": "python"
"label": "Python (SDK)"
"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)"
"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)"
- target: $["paths"]["/v1/customers/external/{external_id}/state"]["get"]
update:
"x-codeSamples":
Expand All @@ -476,13 +476,13 @@ actions:
"x-codeSamples":
- "lang": "python"
"label": "Python (SDK)"
"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)"
"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)"
- target: $["paths"]["/v1/customers/{id}"]["patch"]
update:
"x-codeSamples":
- "lang": "python"
"label": "Python (SDK)"
"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)"
"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)"
- target: $["paths"]["/v1/customers/{id}/state"]["get"]
update:
"x-codeSamples":
Expand Down
9 changes: 0 additions & 9 deletions docs/models/customerscreaterequest.md

This file was deleted.

7 changes: 3 additions & 4 deletions docs/models/customersgetexternalrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

## Fields

| Field | Type | Required | Description |
| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- |
| `external_id` | *str* | :heavy_check_mark: | The customer external ID. |
| `include_members` | *Optional[bool]* | :heavy_minus_sign: | Include members in the response. Only populated when set to true. |
| Field | Type | Required | Description |
| ------------------------- | ------------------------- | ------------------------- | ------------------------- |
| `external_id` | *str* | :heavy_check_mark: | The customer external ID. |
7 changes: 3 additions & 4 deletions docs/models/customersgetrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

## Fields

| Field | Type | Required | Description |
| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- |
| `id` | *str* | :heavy_check_mark: | The customer ID. |
| `include_members` | *Optional[bool]* | :heavy_minus_sign: | Include members in the response. Only populated when set to true. |
| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `id` | *str* | :heavy_check_mark: | The customer ID. |
1 change: 0 additions & 1 deletion docs/models/customerslistrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
| `organization_id` | [OptionalNullable[models.CustomersListQueryParamOrganizationIDFilter]](../models/customerslistqueryparamorganizationidfilter.md) | :heavy_minus_sign: | Filter by organization ID. |
| `email` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter by exact email. |
| `query` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter by name, email, or external ID. |
| `include_members` | *Optional[bool]* | :heavy_minus_sign: | Include members in the response. Only populated when set to true. |
| `page` | *Optional[int]* | :heavy_minus_sign: | Page number, defaults to 1. |
| `limit` | *Optional[int]* | :heavy_minus_sign: | Size of a page, defaults to 10. Maximum is 100. |
| `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. |
Expand Down
1 change: 0 additions & 1 deletion docs/models/customersupdateexternalrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
| Field | Type | Required | Description |
| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ |
| `external_id` | *str* | :heavy_check_mark: | The customer external ID. |
| `include_members` | *Optional[bool]* | :heavy_minus_sign: | Include members in the response. Only populated when set to true. |
| `customer_update_external_id` | [models.CustomerUpdateExternalID](../models/customerupdateexternalid.md) | :heavy_check_mark: | N/A |
Loading