Skip to content

Commit 35182a8

Browse files
speakeasybotfrankie567
authored andcommitted
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.583.1
1 parent 3ae2953 commit 35182a8

33 files changed

+460
-191
lines changed

.speakeasy/gen.lock

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: e7042734-e669-4c36-85da-bbb4a7500ac8
33
management:
4-
docChecksum: 70f4b001216eeab70ec5d029d5e430c3
4+
docChecksum: b0f01aec457cc91ea8f087c1cb410d91
55
docVersion: 0.1.0
6-
speakeasyVersion: 1.581.2
7-
generationVersion: 2.656.9
8-
releaseVersion: 0.22.2
9-
configChecksum: 2ded8da8aff22d65399e1ec73e55d93e
6+
speakeasyVersion: 1.583.1
7+
generationVersion: 2.658.3
8+
releaseVersion: 0.22.4
9+
configChecksum: 1462b0c961b81104788d38d30ab2fe07
1010
repoURL: https://github.com/polarsource/polar-python.git
1111
installationURL: https://github.com/polarsource/polar-python.git
1212
published: true
@@ -284,6 +284,7 @@ generatedFiles:
284284
- docs/models/customerordersubscription.md
285285
- docs/models/customerorderupdate.md
286286
- docs/models/customerorganization.md
287+
- docs/models/customerpaymentmethod.md
287288
- docs/models/customerpaymentmethodcreate.md
288289
- docs/models/customerportalbenefitgrantsgetrequest.md
289290
- docs/models/customerportalbenefitgrantsgetsecurity.md
@@ -300,7 +301,6 @@ generatedFiles:
300301
- docs/models/customerportalcustomermeterslistrequest.md
301302
- docs/models/customerportalcustomermeterslistresponse.md
302303
- docs/models/customerportalcustomermeterslistsecurity.md
303-
- docs/models/customerportalcustomersaddpaymentmethodresponsecustomerportalcustomersaddpaymentmethod.md
304304
- docs/models/customerportalcustomersaddpaymentmethodsecurity.md
305305
- docs/models/customerportalcustomersdeletepaymentmethodrequest.md
306306
- docs/models/customerportalcustomersdeletepaymentmethodsecurity.md
@@ -541,7 +541,6 @@ generatedFiles:
541541
- docs/models/introspecttokenrequesttokentypehint.md
542542
- docs/models/introspecttokenresponse.md
543543
- docs/models/invoicealreadyexists.md
544-
- docs/models/items.md
545544
- docs/models/legacyrecurringproductprice.md
546545
- docs/models/legacyrecurringproductpricecustom.md
547546
- docs/models/legacyrecurringproductpricefixed.md
@@ -577,6 +576,7 @@ generatedFiles:
577576
- docs/models/listresourcecustomercustomermeter.md
578577
- docs/models/listresourcecustomermeter.md
579578
- docs/models/listresourcecustomerorder.md
579+
- docs/models/listresourcecustomerpaymentmethod.md
580580
- docs/models/listresourcecustomersubscription.md
581581
- docs/models/listresourcecustomfield.md
582582
- docs/models/listresourcediscount.md
@@ -591,7 +591,6 @@ generatedFiles:
591591
- docs/models/listresourceproduct.md
592592
- docs/models/listresourcerefund.md
593593
- docs/models/listresourcesubscription.md
594-
- docs/models/listresourceunionpaymentmethodcardpaymentmethodgeneric.md
595594
- docs/models/listresourcewebhookdelivery.md
596595
- docs/models/listresourcewebhookendpoint.md
597596
- docs/models/loc.md
@@ -888,6 +887,7 @@ generatedFiles:
888887
- docs/models/webhookslistwebhookendpointsrequest.md
889888
- docs/models/webhookslistwebhookendpointsresponse.md
890889
- docs/models/webhooksredeliverwebhookeventrequest.md
890+
- docs/models/webhooksresetwebhookendpointsecretrequest.md
891891
- docs/models/webhooksubscriptionactivepayload.md
892892
- docs/models/webhooksubscriptioncanceledpayload.md
893893
- docs/models/webhooksubscriptioncreatedpayload.md
@@ -1134,6 +1134,7 @@ generatedFiles:
11341134
- src/polar_sdk/models/customerordersubscription.py
11351135
- src/polar_sdk/models/customerorderupdate.py
11361136
- src/polar_sdk/models/customerorganization.py
1137+
- src/polar_sdk/models/customerpaymentmethod.py
11371138
- src/polar_sdk/models/customerpaymentmethodcreate.py
11381139
- src/polar_sdk/models/customerportalcustomer.py
11391140
- src/polar_sdk/models/customerportalcustomerupdate.py
@@ -1278,6 +1279,7 @@ generatedFiles:
12781279
- src/polar_sdk/models/listresource_customercustomermeter_.py
12791280
- src/polar_sdk/models/listresource_customermeter_.py
12801281
- src/polar_sdk/models/listresource_customerorder_.py
1282+
- src/polar_sdk/models/listresource_customerpaymentmethod_.py
12811283
- src/polar_sdk/models/listresource_customersubscription_.py
12821284
- src/polar_sdk/models/listresource_customfield_.py
12831285
- src/polar_sdk/models/listresource_discount_.py
@@ -1292,7 +1294,6 @@ generatedFiles:
12921294
- src/polar_sdk/models/listresource_product_.py
12931295
- src/polar_sdk/models/listresource_refund_.py
12941296
- src/polar_sdk/models/listresource_subscription_.py
1295-
- src/polar_sdk/models/listresource_union_paymentmethodcard_paymentmethodgeneric_.py
12961297
- src/polar_sdk/models/listresource_webhookdelivery_.py
12971298
- src/polar_sdk/models/listresource_webhookendpoint_.py
12981299
- src/polar_sdk/models/meter.py
@@ -1473,6 +1474,7 @@ generatedFiles:
14731474
- src/polar_sdk/models/webhooks_list_webhook_deliveriesop.py
14741475
- src/polar_sdk/models/webhooks_list_webhook_endpointsop.py
14751476
- src/polar_sdk/models/webhooks_redeliver_webhook_eventop.py
1477+
- src/polar_sdk/models/webhooks_reset_webhook_endpoint_secretop.py
14761478
- src/polar_sdk/models/webhooks_update_webhook_endpointop.py
14771479
- src/polar_sdk/models/webhooksubscriptionactivepayload.py
14781480
- src/polar_sdk/models/webhooksubscriptioncanceledpayload.py
@@ -3207,16 +3209,16 @@ examples:
32073209
limit: 10
32083210
responses:
32093211
"200":
3210-
application/json: {"items": [{"created_at": "2023-07-05T09:44:10.221Z", "modified_at": null, "id": "<value>", "url": "https://webhook.site/cb791d80-f26e-4f8c-be88-6e56054192b0", "format": "discord", "organization_id": "<value>", "events": ["order.created"]}], "pagination": {"total_count": 849585, "max_page": 594288}}
3212+
application/json: {"items": [{"created_at": "2023-07-05T09:44:10.221Z", "modified_at": null, "id": "<value>", "url": "https://webhook.site/cb791d80-f26e-4f8c-be88-6e56054192b0", "format": "discord", "secret": "polar_whs_ovyN6cPrTv56AApvzCaJno08SSmGJmgbWilb33N2JuK", "organization_id": "<value>", "events": ["order.created"]}], "pagination": {"total_count": 849585, "max_page": 594288}}
32113213
"422":
32123214
application/json: {}
32133215
webhooks:create_webhook_endpoint:
32143216
speakeasy-default-webhooks:create-webhook-endpoint:
32153217
requestBody:
3216-
application/json: {"url": "https://webhook.site/cb791d80-f26e-4f8c-be88-6e56054192b0", "format": "slack", "secret": "f_z6mfSpxkjogyw3FkA2aH2gYE5huxruNf34MpdWMcA", "events": ["subscription.uncanceled"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}
3218+
application/json: {"url": "https://webhook.site/cb791d80-f26e-4f8c-be88-6e56054192b0", "format": "slack", "events": ["subscription.uncanceled"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}
32173219
responses:
32183220
"201":
3219-
application/json: {"created_at": "2023-03-20T06:36:18.270Z", "modified_at": "2023-08-13T00:46:23.703Z", "id": "<value>", "url": "https://webhook.site/cb791d80-f26e-4f8c-be88-6e56054192b0", "format": "slack", "organization_id": "<value>", "events": []}
3221+
application/json: {"created_at": "2023-03-20T06:36:18.270Z", "modified_at": "2023-08-13T00:46:23.703Z", "id": "<value>", "url": "https://webhook.site/cb791d80-f26e-4f8c-be88-6e56054192b0", "format": "slack", "secret": "polar_whs_ovyN6cPrTv56AApvzCaJno08SSmGJmgbWilb33N2JuK", "organization_id": "<value>", "events": []}
32203222
"422":
32213223
application/json: {}
32223224
webhooks:get_webhook_endpoint:
@@ -3226,7 +3228,7 @@ examples:
32263228
id: "<value>"
32273229
responses:
32283230
"200":
3229-
application/json: {"created_at": "2023-03-03T22:08:56.417Z", "modified_at": "2023-01-08T15:26:21.241Z", "id": "<value>", "url": "https://webhook.site/cb791d80-f26e-4f8c-be88-6e56054192b0", "format": "slack", "organization_id": "<value>", "events": []}
3231+
application/json: {"created_at": "2023-03-03T22:08:56.417Z", "modified_at": "2023-01-08T15:26:21.241Z", "id": "<value>", "url": "https://webhook.site/cb791d80-f26e-4f8c-be88-6e56054192b0", "format": "slack", "secret": "polar_whs_ovyN6cPrTv56AApvzCaJno08SSmGJmgbWilb33N2JuK", "organization_id": "<value>", "events": []}
32303232
"404":
32313233
application/json: {"error": "ResourceNotFound", "detail": "<value>"}
32323234
"422":
@@ -3237,10 +3239,10 @@ examples:
32373239
path:
32383240
id: "<value>"
32393241
requestBody:
3240-
application/json: {"url": "https://webhook.site/cb791d80-f26e-4f8c-be88-6e56054192b0", "secret": "f_z6mfSpxkjogyw3FkA2aH2gYE5huxruNf34MpdWMcA"}
3242+
application/json: {"url": "https://webhook.site/cb791d80-f26e-4f8c-be88-6e56054192b0"}
32413243
responses:
32423244
"200":
3243-
application/json: {"created_at": "2023-03-16T20:44:41.718Z", "modified_at": "2023-02-18T12:18:32.442Z", "id": "<value>", "url": "https://webhook.site/cb791d80-f26e-4f8c-be88-6e56054192b0", "format": "slack", "organization_id": "<value>", "events": ["customer.updated"]}
3245+
application/json: {"created_at": "2023-03-16T20:44:41.718Z", "modified_at": "2023-02-18T12:18:32.442Z", "id": "<value>", "url": "https://webhook.site/cb791d80-f26e-4f8c-be88-6e56054192b0", "format": "slack", "secret": "polar_whs_ovyN6cPrTv56AApvzCaJno08SSmGJmgbWilb33N2JuK", "organization_id": "<value>", "events": ["customer.updated"]}
32443246
"404":
32453247
application/json: {"error": "ResourceNotFound", "detail": "<value>"}
32463248
"422":
@@ -3289,5 +3291,17 @@ examples:
32893291
application/json: {"items": [{"id": "<value>", "created_at": "2024-05-30T20:57:40.238Z", "modified_at": "2024-08-27T22:17:32.042Z", "processor": "stripe", "customer_id": "<value>", "type": "<value>"}], "pagination": {"total_count": 429718, "max_page": 448702}}
32903292
"422":
32913293
application/json: {}
3294+
webhooks:reset_webhook_endpoint_secret:
3295+
speakeasy-default-webhooks:reset-webhook-endpoint-secret:
3296+
parameters:
3297+
path:
3298+
id: "<value>"
3299+
responses:
3300+
"200":
3301+
application/json: {"created_at": "2025-06-29T10:59:52.479Z", "modified_at": "2025-03-25T12:04:45.812Z", "id": "<value>", "url": "https://webhook.site/cb791d80-f26e-4f8c-be88-6e56054192b0", "format": "slack", "secret": "polar_whs_ovyN6cPrTv56AApvzCaJno08SSmGJmgbWilb33N2JuK", "organization_id": "<value>", "events": []}
3302+
"404":
3303+
application/json: {"error": "ResourceNotFound", "detail": "<value>"}
3304+
"422":
3305+
application/json: {}
32923306
examplesVersion: 1.0.2
32933307
generatedTests: {}

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ generation:
2424
generateNewTests: false
2525
skipResponseBodyAssertions: false
2626
python:
27-
version: 0.22.2
27+
version: 0.22.4
2828
additionalDependencies:
2929
dev:
3030
pydantic-ai-slim: ^0.1.0

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.581.2
1+
speakeasyVersion: 1.583.1
22
sources:
33
Polar-OAS:
44
sourceNamespace: polar-oas
5-
sourceRevisionDigest: sha256:9e4f29b476148b87dbcbc39c978d6d860e8a025f5ceb2380aed27feab0e7d176
6-
sourceBlobDigest: sha256:c1808c03b5c463281affcfcd41c77346f92cd1c4faa37fe2c66d98ed30b2bc6e
5+
sourceRevisionDigest: sha256:81e4d7d214f3b946d1a3b13681128652971a5ae04def48633473fa6dab9a93c2
6+
sourceBlobDigest: sha256:6ae69257f8f372c638f2d75c6110568867e13965232c078df99392a6cfdf8d60
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1751328994
9+
- speakeasy-sdk-regen-1753110323
1010
- 0.1.0
1111
targets:
1212
polar:
1313
source: Polar-OAS
1414
sourceNamespace: polar-oas
15-
sourceRevisionDigest: sha256:9e4f29b476148b87dbcbc39c978d6d860e8a025f5ceb2380aed27feab0e7d176
16-
sourceBlobDigest: sha256:c1808c03b5c463281affcfcd41c77346f92cd1c4faa37fe2c66d98ed30b2bc6e
15+
sourceRevisionDigest: sha256:81e4d7d214f3b946d1a3b13681128652971a5ae04def48633473fa6dab9a93c2
16+
sourceBlobDigest: sha256:6ae69257f8f372c638f2d75c6110568867e13965232c078df99392a6cfdf8d60
1717
codeSamplesNamespace: polar-oas-py-code-samples
18-
codeSamplesRevisionDigest: sha256:0ad7ed5ff862d6d0a8582eddde5c7b0213e1b5e35d494cf0f7f4d04e4081aaf7
18+
codeSamplesRevisionDigest: sha256:d7c85d3afb9ab743c4f5448652cfda5d8d44b204ad6f8c12658e9c0973435bea
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,7 @@ def webhook():
913913
* [get_webhook_endpoint](docs/sdks/webhooks/README.md#get_webhook_endpoint) - Get Webhook Endpoint
914914
* [update_webhook_endpoint](docs/sdks/webhooks/README.md#update_webhook_endpoint) - Update Webhook Endpoint
915915
* [delete_webhook_endpoint](docs/sdks/webhooks/README.md#delete_webhook_endpoint) - Delete Webhook Endpoint
916+
* [reset_webhook_endpoint_secret](docs/sdks/webhooks/README.md#reset_webhook_endpoint_secret) - Reset Webhook Endpoint Secret
916917
* [list_webhook_deliveries](docs/sdks/webhooks/README.md#list_webhook_deliveries) - List Webhook Deliveries
917918
* [redeliver_webhook_event](docs/sdks/webhooks/README.md#redeliver_webhook_event) - Redeliver Webhook Event
918919

@@ -1028,19 +1029,19 @@ with Polar(
10281029

10291030

10301031
**Inherit from [`PolarError`](./src/polar_sdk/models/polarerror.py)**:
1031-
* [`ResourceNotFound`](./src/polar_sdk/models/resourcenotfound.py): Status code `404`. Applicable to 70 of 122 methods.*
1032-
* [`NotPermitted`](./src/polar_sdk/models/notpermitted.py): Status code `403`. Applicable to 9 of 122 methods.*
1033-
* [`Unauthorized`](./src/polar_sdk/models/unauthorized.py): Not authorized to manage license key. Status code `401`. Applicable to 5 of 122 methods.*
1034-
* [`AlreadyCanceledSubscription`](./src/polar_sdk/models/alreadycanceledsubscription.py): Status code `403`. Applicable to 4 of 122 methods.*
1035-
* [`AlreadyActiveSubscriptionError`](./src/polar_sdk/models/alreadyactivesubscriptionerror.py): The checkout is expired or the customer already has an active subscription. Status code `403`. Applicable to 3 of 122 methods.*
1036-
* [`NotOpenCheckout`](./src/polar_sdk/models/notopencheckout.py): The checkout is expired or the customer already has an active subscription. Status code `403`. Applicable to 3 of 122 methods.*
1037-
* [`ExpiredCheckoutError`](./src/polar_sdk/models/expiredcheckouterror.py): The checkout session is expired. Status code `410`. Applicable to 3 of 122 methods.*
1038-
* [`InvoiceAlreadyExists`](./src/polar_sdk/models/invoicealreadyexists.py): Order already has an invoice. Status code `409`. Applicable to 2 of 122 methods.*
1039-
* [`MissingInvoiceBillingDetails`](./src/polar_sdk/models/missinginvoicebillingdetails.py): Order is not paid or is missing billing name or address. Status code `422`. Applicable to 2 of 122 methods.*
1040-
* [`NotPaidOrder`](./src/polar_sdk/models/notpaidorder.py): Order is not paid or is missing billing name or address. Status code `422`. Applicable to 2 of 122 methods.*
1041-
* [`RefundAmountTooHigh`](./src/polar_sdk/models/refundamounttoohigh.py): Refund amount exceeds remaining order balance. Status code `400`. Applicable to 1 of 122 methods.*
1042-
* [`PaymentError`](./src/polar_sdk/models/paymenterror.py): The payment failed. Status code `400`. Applicable to 1 of 122 methods.*
1043-
* [`RefundedAlready`](./src/polar_sdk/models/refundedalready.py): Order is already fully refunded. Status code `403`. Applicable to 1 of 122 methods.*
1032+
* [`ResourceNotFound`](./src/polar_sdk/models/resourcenotfound.py): Status code `404`. Applicable to 71 of 123 methods.*
1033+
* [`NotPermitted`](./src/polar_sdk/models/notpermitted.py): Status code `403`. Applicable to 9 of 123 methods.*
1034+
* [`Unauthorized`](./src/polar_sdk/models/unauthorized.py): Not authorized to manage license key. Status code `401`. Applicable to 5 of 123 methods.*
1035+
* [`AlreadyCanceledSubscription`](./src/polar_sdk/models/alreadycanceledsubscription.py): Status code `403`. Applicable to 4 of 123 methods.*
1036+
* [`AlreadyActiveSubscriptionError`](./src/polar_sdk/models/alreadyactivesubscriptionerror.py): The checkout is expired or the customer already has an active subscription. Status code `403`. Applicable to 3 of 123 methods.*
1037+
* [`NotOpenCheckout`](./src/polar_sdk/models/notopencheckout.py): The checkout is expired or the customer already has an active subscription. Status code `403`. Applicable to 3 of 123 methods.*
1038+
* [`ExpiredCheckoutError`](./src/polar_sdk/models/expiredcheckouterror.py): The checkout session is expired. Status code `410`. Applicable to 3 of 123 methods.*
1039+
* [`InvoiceAlreadyExists`](./src/polar_sdk/models/invoicealreadyexists.py): Order already has an invoice. Status code `409`. Applicable to 2 of 123 methods.*
1040+
* [`MissingInvoiceBillingDetails`](./src/polar_sdk/models/missinginvoicebillingdetails.py): Order is not paid or is missing billing name or address. Status code `422`. Applicable to 2 of 123 methods.*
1041+
* [`NotPaidOrder`](./src/polar_sdk/models/notpaidorder.py): Order is not paid or is missing billing name or address. Status code `422`. Applicable to 2 of 123 methods.*
1042+
* [`RefundAmountTooHigh`](./src/polar_sdk/models/refundamounttoohigh.py): Refund amount exceeds remaining order balance. Status code `400`. Applicable to 1 of 123 methods.*
1043+
* [`PaymentError`](./src/polar_sdk/models/paymenterror.py): The payment failed. Status code `400`. Applicable to 1 of 123 methods.*
1044+
* [`RefundedAlready`](./src/polar_sdk/models/refundedalready.py): Order is already fully refunded. Status code `403`. Applicable to 1 of 123 methods.*
10441045
* [`ResponseValidationError`](./src/polar_sdk/models/responsevalidationerror.py): Type mismatch between the response data and the expected Pydantic model. Provides access to the Pydantic validation error via the `cause` attribute.
10451046

10461047
</details>

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,4 +823,14 @@ Based on:
823823
### Generated
824824
- [python v0.22.2] .
825825
### Releases
826-
- [PyPI v0.22.2] https://pypi.org/project/polar-sdk/0.22.2 - .
826+
- [PyPI v0.22.2] https://pypi.org/project/polar-sdk/0.22.2 - .
827+
828+
## 2025-07-21 15:08:39
829+
### Changes
830+
Based on:
831+
- OpenAPI Doc
832+
- Speakeasy CLI 1.583.1 (2.658.3) https://github.com/speakeasy-api/speakeasy
833+
### Generated
834+
- [python v0.22.4] .
835+
### Releases
836+
- [PyPI v0.22.4] https://pypi.org/project/polar-sdk/0.22.4 - .

codeSamples.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ actions:
710710
"x-codeSamples":
711711
- "lang": "python"
712712
"label": "Python (SDK)"
713-
"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.webhooks.create_webhook_endpoint(request={\n \"url\": \"https://webhook.site/cb791d80-f26e-4f8c-be88-6e56054192b0\",\n \"format_\": polar_sdk.WebhookFormat.SLACK,\n \"secret\": \"f_z6mfSpxkjogyw3FkA2aH2gYE5huxruNf34MpdWMcA\",\n \"events\": [\n polar_sdk.WebhookEventType.SUBSCRIPTION_UNCANCELED,\n ],\n \"organization_id\": \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n })\n\n # Handle response\n print(res)"
713+
"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.webhooks.create_webhook_endpoint(request={\n \"url\": \"https://webhook.site/cb791d80-f26e-4f8c-be88-6e56054192b0\",\n \"format_\": polar_sdk.WebhookFormat.SLACK,\n \"events\": [\n polar_sdk.WebhookEventType.SUBSCRIPTION_UNCANCELED,\n ],\n \"organization_id\": \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n })\n\n # Handle response\n print(res)"
714714
- target: $["paths"]["/v1/webhooks/endpoints/{id}"]["delete"]
715715
update:
716716
"x-codeSamples":
@@ -728,7 +728,13 @@ actions:
728728
"x-codeSamples":
729729
- "lang": "python"
730730
"label": "Python (SDK)"
731-
"source": "from polar_sdk import Polar\n\n\nwith Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n) as polar:\n\n res = polar.webhooks.update_webhook_endpoint(id=\"<value>\", webhook_endpoint_update={\n \"url\": \"https://webhook.site/cb791d80-f26e-4f8c-be88-6e56054192b0\",\n \"secret\": \"f_z6mfSpxkjogyw3FkA2aH2gYE5huxruNf34MpdWMcA\",\n })\n\n # Handle response\n print(res)"
731+
"source": "from polar_sdk import Polar\n\n\nwith Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n) as polar:\n\n res = polar.webhooks.update_webhook_endpoint(id=\"<value>\", webhook_endpoint_update={\n \"url\": \"https://webhook.site/cb791d80-f26e-4f8c-be88-6e56054192b0\",\n })\n\n # Handle response\n print(res)"
732+
- target: $["paths"]["/v1/webhooks/endpoints/{id}/secret"]["patch"]
733+
update:
734+
"x-codeSamples":
735+
- "lang": "python"
736+
"label": "Python (SDK)"
737+
"source": "from polar_sdk import Polar\n\n\nwith Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n) as polar:\n\n res = polar.webhooks.reset_webhook_endpoint_secret(id=\"<value>\")\n\n # Handle response\n print(res)"
732738
- target: $["paths"]["/v1/webhooks/events/{id}/redeliver"]["post"]
733739
update:
734740
"x-codeSamples":

docs/models/items.md renamed to docs/models/customerpaymentmethod.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Items
1+
# CustomerPaymentMethod
22

33

44
## Supported Types

0 commit comments

Comments
 (0)