Skip to content

Commit 2e6d7af

Browse files
speakeasybotfrankie567
authored andcommitted
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.419.0
1 parent 16cda15 commit 2e6d7af

File tree

59 files changed

+2092
-235
lines changed

Some content is hidden

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

59 files changed

+2092
-235
lines changed

.speakeasy/gen.lock

+87-19
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.6.1
18+
version: 0.6.2
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.418.4
1+
speakeasyVersion: 1.419.0
22
sources:
33
Polar-OAS:
44
sourceNamespace: polar-oas
5-
sourceRevisionDigest: sha256:b083b473d9fd6021a6126b423b2a5516d609a816b8bcce935b1a585d1298290a
6-
sourceBlobDigest: sha256:8aa5bbab824b689955e2c1763c1751ce61965e9bddb63c207b0cbdaefac8d5ed
5+
sourceRevisionDigest: sha256:75503fa4ab4ea2b254b4e893a2865b946fefcad90893824f0598fd9652ba8b81
6+
sourceBlobDigest: sha256:f08236b46e40d4b60554aac287a0268ce101aeefda19b36c22f9fdfde9068091
77
tags:
88
- latest
99
- main
1010
targets:
1111
polar:
1212
source: Polar-OAS
1313
sourceNamespace: polar-oas
14-
sourceRevisionDigest: sha256:b083b473d9fd6021a6126b423b2a5516d609a816b8bcce935b1a585d1298290a
15-
sourceBlobDigest: sha256:8aa5bbab824b689955e2c1763c1751ce61965e9bddb63c207b0cbdaefac8d5ed
14+
sourceRevisionDigest: sha256:75503fa4ab4ea2b254b4e893a2865b946fefcad90893824f0598fd9652ba8b81
15+
sourceBlobDigest: sha256:f08236b46e40d4b60554aac287a0268ce101aeefda19b36c22f9fdfde9068091
1616
workflow:
1717
workflowVersion: 1.0.0
1818
speakeasyVersion: latest

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,14 @@ asyncio.run(main())
120120
* [delete](docs/sdks/benefits/README.md#delete) - Delete Benefit
121121
* [grants](docs/sdks/benefits/README.md#grants) - List Benefit Grants
122122

123+
### [checkout_links](docs/sdks/checkoutlinks/README.md)
124+
125+
* [list](docs/sdks/checkoutlinks/README.md#list) - List Checkout Links
126+
* [create](docs/sdks/checkoutlinks/README.md#create) - Create Checkout Link
127+
* [get](docs/sdks/checkoutlinks/README.md#get) - Get Checkout Link
128+
* [update](docs/sdks/checkoutlinks/README.md#update) - Update Checkout Link
129+
* [delete](docs/sdks/checkoutlinks/README.md#delete) - Delete Checkout Link
130+
123131
### [checkouts](docs/sdks/checkouts/README.md)
124132

125133
* [~~create~~](docs/sdks/checkouts/README.md#create) - Create Checkout :warning: **Deprecated** Use `create` instead.

RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -223,4 +223,14 @@ Based on:
223223
### Generated
224224
- [python v0.6.1] .
225225
### Releases
226-
- [PyPI v0.6.1] https://pypi.org/project/polar-sdk/0.6.1 - .
226+
- [PyPI v0.6.1] https://pypi.org/project/polar-sdk/0.6.1 - .
227+
228+
## 2024-10-17 00:11:45
229+
### Changes
230+
Based on:
231+
- OpenAPI Doc
232+
- Speakeasy CLI 1.419.0 (2.438.3) https://github.com/speakeasy-api/speakeasy
233+
### Generated
234+
- [python v0.6.2] .
235+
### Releases
236+
- [PyPI v0.6.2] https://pypi.org/project/polar-sdk/0.6.2 - .

codeSamples.yaml

+30
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,36 @@ actions:
105105
- "lang": "python"
106106
"label": "grants"
107107
"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"
108+
- target: $["paths"]["/v1/checkout-links/"]["get"]
109+
update:
110+
"x-codeSamples":
111+
- "lang": "python"
112+
"label": "list"
113+
"source": "from polar_sdk import Polar\n\ns = Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\nres = s.checkout_links.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"
114+
- target: $["paths"]["/v1/checkout-links/"]["post"]
115+
update:
116+
"x-codeSamples":
117+
- "lang": "python"
118+
"label": "create"
119+
"source": "import polar_sdk\nfrom polar_sdk import Polar\n\ns = Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\nres = s.checkout_links.create(request={\n \"payment_processor\": polar_sdk.CheckoutLinkCreatePaymentProcessor.STRIPE,\n \"product_price_id\": \"<value>\",\n})\n\nif res is not None:\n # handle response\n pass"
120+
- target: $["paths"]["/v1/checkout-links/{id}"]["delete"]
121+
update:
122+
"x-codeSamples":
123+
- "lang": "python"
124+
"label": "delete"
125+
"source": "from polar_sdk import Polar\n\ns = Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\ns.checkout_links.delete(id=\"<value>\")\n\n# Use the SDK ..."
126+
- target: $["paths"]["/v1/checkout-links/{id}"]["get"]
127+
update:
128+
"x-codeSamples":
129+
- "lang": "python"
130+
"label": "get"
131+
"source": "from polar_sdk import Polar\n\ns = Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\nres = s.checkout_links.get(id=\"<value>\")\n\nif res is not None:\n # handle response\n pass"
132+
- target: $["paths"]["/v1/checkout-links/{id}"]["patch"]
133+
update:
134+
"x-codeSamples":
135+
- "lang": "python"
136+
"label": "update"
137+
"source": "from polar_sdk import Polar\n\ns = Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\nres = s.checkout_links.update(id=\"<value>\", checkout_link_update={})\n\nif res is not None:\n # handle response\n pass"
108138
- target: $["paths"]["/v1/checkouts/custom/"]["get"]
109139
update:
110140
"x-codeSamples":

docs/models/checkoutlink.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# CheckoutLink
2+
3+
Checkout link data.
4+
5+
6+
## Fields
7+
8+
| Field | Type | Required | Description |
9+
| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
10+
| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Creation timestamp of the object. |
11+
| `modified_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Last modification timestamp of the object. |
12+
| `id` | *str* | :heavy_check_mark: | The ID of the object. |
13+
| `metadata` | Dict[str, *str*] | :heavy_check_mark: | N/A |
14+
| `client_secret` | *str* | :heavy_check_mark: | Client secret used to access the checkout link. |
15+
| `success_url` | *Nullable[str]* | :heavy_check_mark: | URL where the customer will be redirected after a successful payment. |
16+
| `product_price_id` | *str* | :heavy_check_mark: | ID of the product price to checkout. |
17+
| `product_price` | [models.ProductPrice](../models/productprice.md) | :heavy_check_mark: | N/A |
18+
| `url` | *str* | :heavy_check_mark: | N/A |
19+
| `payment_processor` | [models.PolarEnumsPaymentProcessor](../models/polarenumspaymentprocessor.md) | :heavy_check_mark: | N/A |

docs/models/checkoutlinkcreate.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# CheckoutLinkCreate
2+
3+
Schema to create a new checkout link.
4+
5+
6+
## Fields
7+
8+
| Field | Type | Required | Description |
9+
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
10+
| `product_price_id` | *str* | :heavy_check_mark: | ID of the product price to checkout. |
11+
| `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**. |
12+
| `payment_processor` | [models.CheckoutLinkCreatePaymentProcessor](../models/checkoutlinkcreatepaymentprocessor.md) | :heavy_check_mark: | Payment processor to use. Currently only Stripe is supported. |
13+
| `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. |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# CheckoutLinkCreatePaymentProcessor
2+
3+
Payment processor to use. Currently only Stripe is supported.
4+
5+
6+
## Values
7+
8+
| Name | Value |
9+
| -------- | -------- |
10+
| `STRIPE` | stripe |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# CheckoutLinksDeleteRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| --------------------- | --------------------- | --------------------- | --------------------- |
8+
| `id` | *str* | :heavy_check_mark: | The checkout link ID. |
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# CheckoutLinksGetRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| --------------------- | --------------------- | --------------------- | --------------------- |
8+
| `id` | *str* | :heavy_check_mark: | The checkout link ID. |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# CheckoutLinksListQueryParamOrganizationIDFilter
2+
3+
Filter by organization ID.
4+
5+
6+
## Supported Types
7+
8+
### `str`
9+
10+
```python
11+
value: str = /* values here */
12+
```
13+
14+
### `List[str]`
15+
16+
```python
17+
value: List[str] = /* values here */
18+
```
19+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# CheckoutLinksListQueryParamProductIDFilter
2+
3+
Filter by product ID.
4+
5+
6+
## Supported Types
7+
8+
### `str`
9+
10+
```python
11+
value: str = /* values here */
12+
```
13+
14+
### `List[str]`
15+
16+
```python
17+
value: List[str] = /* values here */
18+
```
19+

0 commit comments

Comments
 (0)