Skip to content

Commit 29944e6

Browse files
speakeasybotfrankie567
authored andcommitted
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.414.1
1 parent 28f7ba4 commit 29944e6

File tree

86 files changed

+4033
-86
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+4033
-86
lines changed

.speakeasy/gen.lock

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

.speakeasy/gen.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ generation:
1515
auth:
1616
oAuth2ClientCredentialsEnabled: true
1717
python:
18-
version: 0.5.0
18+
version: 0.6.0
1919
additionalDependencies:
2020
dev: {}
2121
main: {}

.speakeasy/workflow.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
speakeasyVersion: 1.406.0
1+
speakeasyVersion: 1.414.1
22
sources:
33
Polar-OAS:
44
sourceNamespace: polar-oas
5-
sourceRevisionDigest: sha256:d07f8a90a433aaf79d72e8c499c3e840b54a0d499d6607b1225ec93920884262
6-
sourceBlobDigest: sha256:b64c86e2485d4fa343894a692d1b1de372cf92c350cc00a3cd55c4ad3b470d29
5+
sourceRevisionDigest: sha256:2f0fab250bdd2a15f4b8b225063ce16b4c2dcd0da7a7634bbd7889568e660f2c
6+
sourceBlobDigest: sha256:e17ea29a2bc4fc5f01ead9a66ea39f07913e6ea3732e5ecf47675de704af2041
77
tags:
88
- latest
99
- main
1010
targets:
1111
polar:
1212
source: Polar-OAS
1313
sourceNamespace: polar-oas
14-
sourceRevisionDigest: sha256:d07f8a90a433aaf79d72e8c499c3e840b54a0d499d6607b1225ec93920884262
15-
sourceBlobDigest: sha256:b64c86e2485d4fa343894a692d1b1de372cf92c350cc00a3cd55c4ad3b470d29
14+
sourceRevisionDigest: sha256:2f0fab250bdd2a15f4b8b225063ce16b4c2dcd0da7a7634bbd7889568e660f2c
15+
sourceBlobDigest: sha256:e17ea29a2bc4fc5f01ead9a66ea39f07913e6ea3732e5ecf47675de704af2041
1616
workflow:
1717
workflowVersion: 1.0.0
1818
speakeasyVersion: latest

README.md

+12-2
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,18 @@ asyncio.run(main())
121121

122122
### [checkouts](docs/sdks/checkouts/README.md)
123123

124-
* [create](docs/sdks/checkouts/README.md#create) - Create Checkout
125-
* [get](docs/sdks/checkouts/README.md#get) - Get Checkout
124+
* [~~create~~](docs/sdks/checkouts/README.md#create) - Create Checkout :warning: **Deprecated** Use `create` instead.
125+
* [~~get~~](docs/sdks/checkouts/README.md#get) - Get Checkout :warning: **Deprecated**
126+
127+
#### [checkouts.custom](docs/sdks/custom/README.md)
128+
129+
* [list](docs/sdks/custom/README.md#list) - List Checkout Sessions
130+
* [create](docs/sdks/custom/README.md#create) - Create Checkout Session
131+
* [get](docs/sdks/custom/README.md#get) - Get Checkout Session
132+
* [update](docs/sdks/custom/README.md#update) - Update Checkout Session
133+
* [client_get](docs/sdks/custom/README.md#client_get) - Get Checkout Session from Client
134+
* [client_update](docs/sdks/custom/README.md#client_update) - Update Checkout Session from Client
135+
* [client_confirm](docs/sdks/custom/README.md#client_confirm) - Confirm Checkout Session from Client
126136

127137
### [external_organizations](docs/sdks/externalorganizations/README.md)
128138

RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -203,4 +203,14 @@ Based on:
203203
### Generated
204204
- [python v0.5.0] .
205205
### Releases
206-
- [PyPI v0.5.0] https://pypi.org/project/polar-sdk/0.5.0 - .
206+
- [PyPI v0.5.0] https://pypi.org/project/polar-sdk/0.5.0 - .
207+
208+
## 2024-10-10 00:11:32
209+
### Changes
210+
Based on:
211+
- OpenAPI Doc
212+
- Speakeasy CLI 1.414.1 (2.437.1) https://github.com/speakeasy-api/speakeasy
213+
### Generated
214+
- [python v0.6.0] .
215+
### Releases
216+
- [PyPI v0.6.0] https://pypi.org/project/polar-sdk/0.6.0 - .

codeSamples.yaml

+34-4
Original file line numberDiff line numberDiff line change
@@ -99,18 +99,48 @@ actions:
9999
- "lang": "python"
100100
"label": "grants"
101101
"source": "from polar_sdk import Polar\n\ns = Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\nres = s.benefits.grants(id=\"<value>\")\n\nif res is not None:\n while True:\n # handle items\n\n res = res.next()\n if res is None:\n break"
102-
- target: $["paths"]["/v1/checkouts/"]["post"]
102+
- target: $["paths"]["/v1/checkouts/custom/"]["get"]
103+
update:
104+
"x-codeSamples":
105+
- "lang": "python"
106+
"label": "list"
107+
"source": "from polar_sdk import Polar\n\ns = Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\nres = s.checkouts.custom.list()\n\nif res is not None:\n while True:\n # handle items\n\n res = res.next()\n if res is None:\n break"
108+
- target: $["paths"]["/v1/checkouts/custom/"]["post"]
103109
update:
104110
"x-codeSamples":
105111
- "lang": "python"
106112
"label": "create"
107-
"source": "from polar_sdk import Polar\n\ns = Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\nres = s.checkouts.create(request={\n \"product_price_id\": \"<value>\",\n \"success_url\": \"https://probable-heating.com/\",\n})\n\nif res is not None:\n # handle response\n pass"
108-
- target: $["paths"]["/v1/checkouts/{id}"]["get"]
113+
"source": "import polar_sdk\nfrom polar_sdk import Polar\n\ns = Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\nres = s.checkouts.custom.create(request={\n \"payment_processor\": polar_sdk.PaymentProcessor.STRIPE,\n \"product_price_id\": \"<value>\",\n})\n\nif res is not None:\n # handle response\n pass"
114+
- target: $["paths"]["/v1/checkouts/custom/client/{client_secret}"]["get"]
115+
update:
116+
"x-codeSamples":
117+
- "lang": "python"
118+
"label": "client_get"
119+
"source": "from polar_sdk import Polar\n\ns = Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\nres = s.checkouts.custom.client_get(client_secret=\"<value>\")\n\nif res is not None:\n # handle response\n pass"
120+
- target: $["paths"]["/v1/checkouts/custom/client/{client_secret}"]["patch"]
121+
update:
122+
"x-codeSamples":
123+
- "lang": "python"
124+
"label": "client_update"
125+
"source": "from polar_sdk import Polar\n\ns = Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\nres = s.checkouts.custom.client_update(client_secret=\"<value>\", checkout_update_public={})\n\nif res is not None:\n # handle response\n pass"
126+
- target: $["paths"]["/v1/checkouts/custom/client/{client_secret}/confirm"]["post"]
127+
update:
128+
"x-codeSamples":
129+
- "lang": "python"
130+
"label": "client_confirm"
131+
"source": "from polar_sdk import Polar\n\ns = Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\nres = s.checkouts.custom.client_confirm(client_secret=\"<value>\", checkout_confirm_stripe={})\n\nif res is not None:\n # handle response\n pass"
132+
- target: $["paths"]["/v1/checkouts/custom/{id}"]["get"]
109133
update:
110134
"x-codeSamples":
111135
- "lang": "python"
112136
"label": "get"
113-
"source": "from polar_sdk import Polar\n\ns = Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\nres = s.checkouts.get(id=\"<id>\")\n\nif res is not None:\n # handle response\n pass"
137+
"source": "from polar_sdk import Polar\n\ns = Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\nres = s.checkouts.custom.get(id=\"<value>\")\n\nif res is not None:\n # handle response\n pass"
138+
- target: $["paths"]["/v1/checkouts/custom/{id}"]["patch"]
139+
update:
140+
"x-codeSamples":
141+
- "lang": "python"
142+
"label": "update"
143+
"source": "from polar_sdk import Polar\n\ns = Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\nres = s.checkouts.custom.update(id=\"<value>\", checkout_update={})\n\nif res is not None:\n # handle response\n pass"
114144
- target: $["paths"]["/v1/external_organizations/"]["get"]
115145
update:
116146
"x-codeSamples":

docs/models/address.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Address
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ----------------------- | ----------------------- | ----------------------- | ----------------------- |
8+
| `country` | *str* | :heavy_check_mark: | N/A |
9+
| `line1` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
10+
| `line2` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
11+
| `postal_code` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
12+
| `city` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
13+
| `state` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |

docs/models/benefitcustomcreate.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ Schema to create a benefit of type `custom`.
99
| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
1010
| `description` | *str* | :heavy_check_mark: | The description of the benefit. Will be displayed on products having this benefit. |
1111
| `is_tax_applicable` | *bool* | :heavy_check_mark: | Whether the benefit is taxable. |
12-
| `properties` | [models.BenefitCustomProperties](../models/benefitcustomproperties.md) | :heavy_check_mark: | Properties for a benefit of type `custom`. |
12+
| `properties` | [models.BenefitCustomCreateProperties](../models/benefitcustomcreateproperties.md) | :heavy_check_mark: | Properties for creating a benefit of type `custom`. |
1313
| `type` | [models.BenefitCustomCreateType](../models/benefitcustomcreatetype.md) | :heavy_check_mark: | N/A |
1414
| `organization_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The ID of the organization owning the benefit. **Required unless you use an organization token.** |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# BenefitCustomCreateProperties
2+
3+
Properties for creating a benefit of type `custom`.
4+
5+
6+
## Fields
7+
8+
| Field | Type | Required | Description |
9+
| ----------------------- | ----------------------- | ----------------------- | ----------------------- |
10+
| `note` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |

docs/models/checkoutconfirmstripe.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# CheckoutConfirmStripe
2+
3+
Confirm a checkout session using a Stripe confirmation token.
4+
5+
6+
## Fields
7+
8+
| Field | Type | Required | Description |
9+
| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
10+
| `product_price_id` | *OptionalNullable[str]* | :heavy_minus_sign: | ID of the product price to checkout. Must correspond to a price linked to the same product. |
11+
| `amount` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A |
12+
| `customer_name` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
13+
| `customer_email` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
14+
| `customer_billing_address` | [OptionalNullable[models.Address]](../models/address.md) | :heavy_minus_sign: | N/A |
15+
| `customer_tax_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
16+
| `confirmation_token_id` | *OptionalNullable[str]* | :heavy_minus_sign: | ID of the Stripe confirmation token. Required for fixed prices and custom prices. |

0 commit comments

Comments
 (0)