Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.431.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot authored and frankie567 committed Nov 6, 2024
1 parent 4d16076 commit 8f47b6e
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 29 deletions.
34 changes: 17 additions & 17 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 @@ -16,7 +16,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
python:
version: 0.7.1
version: 0.7.2
additionalDependencies:
dev: {}
main: {}
Expand Down
8 changes: 4 additions & 4 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ speakeasyVersion: 1.431.0
sources:
Polar-OAS:
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:bdfd06b23a17ee112bbcfaaf77e0e5293d2305ec4704ab750626221f270c5bfc
sourceBlobDigest: sha256:7316038513ebb138e351a2af12f12b570b62f9691c2be6df032216ee0406f91a
sourceRevisionDigest: sha256:24ce22f912266c290b90a984be308b37c71712a60a136bd2a24fbe08555eec7d
sourceBlobDigest: sha256:0e4a2d08c7f1223110e726f0037614363ba877289fef1c97a1a12fd3d5a7dc59
tags:
- latest
- main
targets:
polar:
source: Polar-OAS
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:bdfd06b23a17ee112bbcfaaf77e0e5293d2305ec4704ab750626221f270c5bfc
sourceBlobDigest: sha256:7316038513ebb138e351a2af12f12b570b62f9691c2be6df032216ee0406f91a
sourceRevisionDigest: sha256:24ce22f912266c290b90a984be308b37c71712a60a136bd2a24fbe08555eec7d
sourceBlobDigest: sha256:0e4a2d08c7f1223110e726f0037614363ba877289fef1c97a1a12fd3d5a7dc59
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 @@ -283,4 +283,14 @@ Based on:
### Generated
- [python v0.7.1] .
### Releases
- [PyPI v0.7.1] https://pypi.org/project/polar-sdk/0.7.1 - .
- [PyPI v0.7.1] https://pypi.org/project/polar-sdk/0.7.1 - .

## 2024-11-06 14:14:37
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.431.0 (2.451.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.7.2] .
### Releases
- [PyPI v0.7.2] https://pypi.org/project/polar-sdk/0.7.2 - .
3 changes: 2 additions & 1 deletion docs/models/checkoutupdate.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ Update an existing checkout session using an access token.
| `customer_tax_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
| `metadata` | Dict[str, *str*] | :heavy_minus_sign: | Key-value object allowing you to store additional information.<br/><br/>The key must be a string with a maximum length of **40 characters**.<br/>The value must be a string with a maximum length of **500 characters**.<br/>You can store up to **50 key-value pairs**. |
| `customer_ip_address` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
| `success_url` | *OptionalNullable[str]* | :heavy_minus_sign: | URL where the customer will be redirected after a successful payment.You can add the `checkout_id={CHECKOUT_ID}` query parameter to retrieve the checkout session id. |
| `success_url` | *OptionalNullable[str]* | :heavy_minus_sign: | URL where the customer will be redirected after a successful payment.You can add the `checkout_id={CHECKOUT_ID}` query parameter to retrieve the checkout session id. |
| `embed_origin` | *OptionalNullable[str]* | :heavy_minus_sign: | If you plan to embed the checkout session, set this to the Origin of the embedding page. It'll allow the Polar iframe to communicate with the parent page. |
3 changes: 2 additions & 1 deletion docs/models/polarcheckoutschemascheckoutcreate.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ to the resulting order and/or subscription.
| `customer_billing_address` | [OptionalNullable[models.Address]](../models/address.md) | :heavy_minus_sign: | N/A |
| `customer_tax_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
| `subscription_id` | *OptionalNullable[str]* | :heavy_minus_sign: | ID of a subscription to upgrade. It must be on a free pricing. If checkout is successful, metadata set on this checkout will be copied to the subscription, and existing keys will be overwritten. |
| `success_url` | *OptionalNullable[str]* | :heavy_minus_sign: | URL where the customer will be redirected after a successful payment.You can add the `checkout_id={CHECKOUT_ID}` query parameter to retrieve the checkout session id. |
| `success_url` | *OptionalNullable[str]* | :heavy_minus_sign: | URL where the customer will be redirected after a successful payment.You can add the `checkout_id={CHECKOUT_ID}` query parameter to retrieve the checkout session id. |
| `embed_origin` | *OptionalNullable[str]* | :heavy_minus_sign: | If you plan to embed the checkout session, set this to the Origin of the embedding page. It'll allow the Polar iframe to communicate with the parent page. |
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "polar-sdk"
version = "0.7.1"
version = "0.7.2"
description = "Polar SDK for Python"
authors = ["Polar",]
readme = "README-PYPI.md"
Expand Down
2 changes: 1 addition & 1 deletion src/polar_sdk/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import importlib.metadata

__title__: str = "polar-sdk"
__version__: str = "0.7.1"
__version__: str = "0.7.2"

try:
if __package__ is not None:
Expand Down
7 changes: 7 additions & 0 deletions src/polar_sdk/models/checkoutupdate.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ class CheckoutUpdateTypedDict(TypedDict):
customer_ip_address: NotRequired[Nullable[str]]
success_url: NotRequired[Nullable[str]]
r"""URL where the customer will be redirected after a successful payment.You can add the `checkout_id={CHECKOUT_ID}` query parameter to retrieve the checkout session id."""
embed_origin: NotRequired[Nullable[str]]
r"""If you plan to embed the checkout session, set this to the Origin of the embedding page. It'll allow the Polar iframe to communicate with the parent page."""


class CheckoutUpdate(BaseModel):
Expand Down Expand Up @@ -72,6 +74,9 @@ class CheckoutUpdate(BaseModel):
success_url: OptionalNullable[str] = UNSET
r"""URL where the customer will be redirected after a successful payment.You can add the `checkout_id={CHECKOUT_ID}` query parameter to retrieve the checkout session id."""

embed_origin: OptionalNullable[str] = UNSET
r"""If you plan to embed the checkout session, set this to the Origin of the embedding page. It'll allow the Polar iframe to communicate with the parent page."""

@model_serializer(mode="wrap")
def serialize_model(self, handler):
optional_fields = [
Expand All @@ -85,6 +90,7 @@ def serialize_model(self, handler):
"metadata",
"customer_ip_address",
"success_url",
"embed_origin",
]
nullable_fields = [
"custom_field_data",
Expand All @@ -97,6 +103,7 @@ def serialize_model(self, handler):
"metadata",
"customer_ip_address",
"success_url",
"embed_origin",
]
null_default_fields = []

Expand Down
7 changes: 7 additions & 0 deletions src/polar_sdk/models/polar_checkout_schemas_checkoutcreate.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ class PolarCheckoutSchemasCheckoutCreateTypedDict(TypedDict):
r"""ID of a subscription to upgrade. It must be on a free pricing. If checkout is successful, metadata set on this checkout will be copied to the subscription, and existing keys will be overwritten."""
success_url: NotRequired[Nullable[str]]
r"""URL where the customer will be redirected after a successful payment.You can add the `checkout_id={CHECKOUT_ID}` query parameter to retrieve the checkout session id."""
embed_origin: NotRequired[Nullable[str]]
r"""If you plan to embed the checkout session, set this to the Origin of the embedding page. It'll allow the Polar iframe to communicate with the parent page."""


class PolarCheckoutSchemasCheckoutCreate(BaseModel):
Expand Down Expand Up @@ -109,6 +111,9 @@ class PolarCheckoutSchemasCheckoutCreate(BaseModel):
success_url: OptionalNullable[str] = UNSET
r"""URL where the customer will be redirected after a successful payment.You can add the `checkout_id={CHECKOUT_ID}` query parameter to retrieve the checkout session id."""

embed_origin: OptionalNullable[str] = UNSET
r"""If you plan to embed the checkout session, set this to the Origin of the embedding page. It'll allow the Polar iframe to communicate with the parent page."""

@model_serializer(mode="wrap")
def serialize_model(self, handler):
optional_fields = [
Expand All @@ -122,6 +127,7 @@ def serialize_model(self, handler):
"customer_tax_id",
"subscription_id",
"success_url",
"embed_origin",
]
nullable_fields = [
"amount",
Expand All @@ -132,6 +138,7 @@ def serialize_model(self, handler):
"customer_tax_id",
"subscription_id",
"success_url",
"embed_origin",
]
null_default_fields = []

Expand Down
4 changes: 2 additions & 2 deletions src/polar_sdk/sdkconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ class SDKConfiguration:
server: Optional[str] = ""
language: str = "python"
openapi_doc_version: str = "0.1.0"
sdk_version: str = "0.7.1"
sdk_version: str = "0.7.2"
gen_version: str = "2.451.0"
user_agent: str = "speakeasy-sdk/python 0.7.1 2.451.0 0.1.0 polar-sdk"
user_agent: str = "speakeasy-sdk/python 0.7.2 2.451.0 0.1.0 polar-sdk"
retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET)
timeout_ms: Optional[int] = None

Expand Down

0 comments on commit 8f47b6e

Please sign in to comment.