diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index b878448e..3c4e7aac 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 983150e6-ebc8-43fe-9b18-750461aad344 management: - docChecksum: 55c784471708066dc800f92d1ff780b7 + docChecksum: 258514d05cd9baa275da909c012ad284 docVersion: 0.1.0 - speakeasyVersion: 1.420.0 + speakeasyVersion: 1.421.1 generationVersion: 2.438.15 - releaseVersion: 0.13.3 - configChecksum: c69e4eeb974795587bf2c9f864a9fd82 + releaseVersion: 0.13.4 + configChecksum: d006b881fe75b76854274fee86997852 repoURL: https://github.com/polarsource/polar-js.git installationURL: https://github.com/polarsource/polar-js published: true @@ -1896,7 +1896,7 @@ examples: speakeasy-default-checkouts:custom:list: responses: "200": - application/json: {"items": [{"created_at": "2023-08-23T19:26:20.850Z", "modified_at": "2024-01-14T10:26:00.433Z", "id": "", "status": "open", "client_secret": "", "url": "https://average-fedora.org/", "expires_at": "2022-09-09T18:28:08.953Z", "success_url": "https://primary-paintwork.com/", "amount": 718303, "tax_amount": 86140, "currency": "Convertible Marks", "total_amount": 687960, "product_id": "", "product_price_id": "", "is_payment_required": false, "customer_id": "", "customer_name": "", "customer_email": "Adam7@yahoo.com", "customer_ip_address": "", "customer_billing_address": {"country": "Mauritius"}, "customer_tax_id": "", "metadata": {"key": "", "key1": "", "key2": ""}}, {"created_at": "2022-01-21T00:48:05.986Z", "modified_at": "2024-09-10T07:49:25.657Z", "id": "", "status": "confirmed", "client_secret": "", "url": "https://practical-trick.org/", "expires_at": "2024-09-28T03:47:03.515Z", "success_url": "https://blue-technologist.com/", "amount": 460276, "tax_amount": 425334, "currency": "Kenyan Shilling", "total_amount": 480616, "product_id": "", "product_price_id": "", "is_payment_required": true, "customer_id": "", "customer_name": "", "customer_email": "Roman.Stracke39@yahoo.com", "customer_ip_address": "", "customer_billing_address": {"country": "China"}, "customer_tax_id": "", "metadata": {"key": "", "key1": "", "key2": ""}}, {"created_at": "2022-04-03T06:30:19.876Z", "modified_at": "2024-01-30T10:30:11.361Z", "id": "", "status": "confirmed", "client_secret": "", "url": "https://bustling-plastic.info/", "expires_at": "2024-07-08T11:13:00.198Z", "success_url": "https://yummy-birdcage.com", "amount": 73973, "tax_amount": 836788, "currency": "Leone", "total_amount": 141764, "product_id": "", "product_price_id": "", "is_payment_required": false, "customer_id": "", "customer_name": "", "customer_email": "Oswald29@gmail.com", "customer_ip_address": "", "customer_billing_address": {"country": "Saint Helena"}, "customer_tax_id": "", "metadata": {"key": ""}}], "pagination": {"total_count": 5229, "max_page": 810770}} + application/json: {"items": [{"created_at": "2023-08-23T19:26:20.850Z", "modified_at": "2024-01-14T10:26:00.433Z", "id": "", "status": "open", "client_secret": "", "url": "https://average-fedora.org/", "expires_at": "2022-09-09T18:28:08.953Z", "success_url": "https://primary-paintwork.com/", "embed_origin": "", "amount": 718303, "tax_amount": 86140, "currency": "Convertible Marks", "total_amount": 687960, "product_id": "", "product_price_id": "", "is_payment_required": false, "customer_id": "", "customer_name": "", "customer_email": "Adam7@yahoo.com", "customer_ip_address": "", "customer_billing_address": {"country": "Mauritius"}, "customer_tax_id": "", "metadata": {"key": "", "key1": "", "key2": ""}}, {"created_at": "2022-01-21T00:48:05.986Z", "modified_at": "2024-09-10T07:49:25.657Z", "id": "", "status": "confirmed", "client_secret": "", "url": "https://practical-trick.org/", "expires_at": "2024-09-28T03:47:03.515Z", "success_url": "https://blue-technologist.com/", "embed_origin": "", "amount": 460276, "tax_amount": 425334, "currency": "Kenyan Shilling", "total_amount": 480616, "product_id": "", "product_price_id": "", "is_payment_required": true, "customer_id": "", "customer_name": "", "customer_email": "Roman.Stracke39@yahoo.com", "customer_ip_address": "", "customer_billing_address": {"country": "China"}, "customer_tax_id": "", "metadata": {"key": "", "key1": "", "key2": ""}}, {"created_at": "2022-04-03T06:30:19.876Z", "modified_at": "2024-01-30T10:30:11.361Z", "id": "", "status": "confirmed", "client_secret": "", "url": "https://bustling-plastic.info/", "expires_at": "2024-07-08T11:13:00.198Z", "success_url": "https://yummy-birdcage.com", "embed_origin": "", "amount": 73973, "tax_amount": 836788, "currency": "Leone", "total_amount": 141764, "product_id": "", "product_price_id": "", "is_payment_required": false, "customer_id": "", "customer_name": "", "customer_email": "Oswald29@gmail.com", "customer_ip_address": "", "customer_billing_address": {"country": "Saint Helena"}, "customer_tax_id": "", "metadata": {"key": ""}}], "pagination": {"total_count": 5229, "max_page": 810770}} "422": {} checkouts:custom:create: speakeasy-default-checkouts:custom:create: @@ -1904,7 +1904,7 @@ examples: application/json: {"product_price_id": ""} responses: "201": - application/json: {"created_at": "2023-06-18T07:14:55.338Z", "modified_at": "2023-12-01T17:06:07.804Z", "id": "", "status": "confirmed", "client_secret": "", "url": "https://blind-breastplate.name/", "expires_at": "2022-05-28T06:20:22.766Z", "success_url": "https://standard-utilization.com/", "amount": 169727, "tax_amount": 89964, "currency": "South Sudanese pound", "total_amount": 816588, "product_id": "", "product_price_id": "", "is_payment_required": false, "customer_id": "", "customer_name": "", "customer_email": "Vernice.Gerlach23@hotmail.com", "customer_ip_address": "", "customer_billing_address": {"country": "Bahamas"}, "customer_tax_id": "", "metadata": {"key": ""}} + application/json: {"created_at": "2023-06-18T07:14:55.338Z", "modified_at": "2023-12-01T17:06:07.804Z", "id": "", "status": "confirmed", "client_secret": "", "url": "https://blind-breastplate.name/", "expires_at": "2022-05-28T06:20:22.766Z", "success_url": "https://standard-utilization.com/", "embed_origin": "", "amount": 169727, "tax_amount": 89964, "currency": "South Sudanese pound", "total_amount": 816588, "product_id": "", "product_price_id": "", "is_payment_required": false, "customer_id": "", "customer_name": "", "customer_email": "Vernice.Gerlach23@hotmail.com", "customer_ip_address": "", "customer_billing_address": {"country": "Bahamas"}, "customer_tax_id": "", "metadata": {"key": ""}} "422": {} checkouts:custom:get: speakeasy-default-checkouts:custom:get: @@ -1913,7 +1913,7 @@ examples: id: "" responses: "200": - application/json: {"created_at": "2024-02-07T13:54:48.821Z", "modified_at": "2023-09-05T11:33:52.011Z", "id": "", "status": "confirmed", "client_secret": "", "url": "https://glossy-concentration.biz/", "expires_at": "2023-07-26T06:33:15.810Z", "success_url": "https://lavish-ice-cream.biz", "amount": 213457, "tax_amount": 937146, "currency": "Som", "total_amount": 801373, "product_id": "", "product_price_id": "", "is_payment_required": true, "customer_id": "", "customer_name": "", "customer_email": "Elyssa38@gmail.com", "customer_ip_address": "", "customer_billing_address": {"country": "Mozambique"}, "customer_tax_id": "", "metadata": {"key": "", "key1": ""}} + application/json: {"created_at": "2024-02-07T13:54:48.821Z", "modified_at": "2023-09-05T11:33:52.011Z", "id": "", "status": "confirmed", "client_secret": "", "url": "https://glossy-concentration.biz/", "expires_at": "2023-07-26T06:33:15.810Z", "success_url": "https://lavish-ice-cream.biz", "embed_origin": "", "amount": 213457, "tax_amount": 937146, "currency": "Som", "total_amount": 801373, "product_id": "", "product_price_id": "", "is_payment_required": true, "customer_id": "", "customer_name": "", "customer_email": "Elyssa38@gmail.com", "customer_ip_address": "", "customer_billing_address": {"country": "Mozambique"}, "customer_tax_id": "", "metadata": {"key": "", "key1": ""}} "404": application/json: {"detail": ""} "422": {} @@ -1924,7 +1924,7 @@ examples: id: "" responses: "200": - application/json: {"created_at": "2024-07-28T19:04:48.565Z", "modified_at": "2023-10-17T10:52:42.015Z", "id": "", "status": "expired", "client_secret": "", "url": "https://joyful-knight.com", "expires_at": "2024-12-22T15:27:45.882Z", "success_url": "https://lumbering-wheel.com", "amount": 896501, "tax_amount": 446863, "currency": "Gibraltar Pound", "total_amount": 249440, "product_id": "", "product_price_id": "", "is_payment_required": true, "customer_id": "", "customer_name": "", "customer_email": "Sienna_Kohler@hotmail.com", "customer_ip_address": "", "customer_billing_address": {"country": "Antarctica"}, "customer_tax_id": "", "metadata": {"key": "", "key1": "", "key2": ""}} + application/json: {"created_at": "2024-07-28T19:04:48.565Z", "modified_at": "2023-10-17T10:52:42.015Z", "id": "", "status": "expired", "client_secret": "", "url": "https://joyful-knight.com", "expires_at": "2024-12-22T15:27:45.882Z", "success_url": "https://lumbering-wheel.com", "embed_origin": "", "amount": 896501, "tax_amount": 446863, "currency": "Gibraltar Pound", "total_amount": 249440, "product_id": "", "product_price_id": "", "is_payment_required": true, "customer_id": "", "customer_name": "", "customer_email": "Sienna_Kohler@hotmail.com", "customer_ip_address": "", "customer_billing_address": {"country": "Antarctica"}, "customer_tax_id": "", "metadata": {"key": "", "key1": "", "key2": ""}} "404": application/json: {"detail": ""} "422": {} @@ -1935,7 +1935,7 @@ examples: client_secret: "" responses: "200": - application/json: {"created_at": "2022-06-23T19:45:02.115Z", "modified_at": "2022-11-26T05:04:17.930Z", "id": "", "status": "succeeded", "client_secret": "", "url": "https://lumpy-jellyfish.com", "expires_at": "2023-08-07T16:01:01.665Z", "success_url": "https://obedient-operating.org/", "amount": 553902, "tax_amount": 201138, "currency": "Seychelles Rupee", "total_amount": 493334, "product_id": "", "product_price_id": "", "is_payment_required": false, "customer_id": "", "customer_name": "", "customer_email": "Coleman_Rutherford@hotmail.com", "customer_ip_address": "", "customer_billing_address": {"country": "Maldives"}, "customer_tax_id": "", "product": {"created_at": "2022-09-10T21:17:06.373Z", "modified_at": "2024-10-11T12:01:20.600Z", "id": "", "name": "", "description": "of grave parade whereas wherever", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [], "benefits": [{"created_at": "2022-11-26T05:04:17.930Z", "modified_at": "2024-04-14T21:02:40.457Z", "id": "", "type": "discord", "description": "given impolite how astride cap", "selectable": false, "deletable": false, "organization_id": ""}, {"created_at": "2024-07-23T16:17:04.686Z", "modified_at": "2024-10-15T01:25:33.429Z", "id": "", "type": "ads", "description": "definitive as fluffy", "selectable": false, "deletable": true, "organization_id": ""}, {"created_at": "2023-05-06T11:19:10.077Z", "modified_at": "2023-11-17T04:52:10.824Z", "id": "", "type": "downloadables", "description": "yum lecture against alienated meanwhile unabashedly", "selectable": true, "deletable": true, "organization_id": ""}], "medias": []}, "product_price": {"created_at": "2024-04-14T21:02:40.457Z", "modified_at": "2023-08-07T16:01:01.665Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 564186, "recurring_interval": "year"}} + application/json: {"created_at": "2022-06-23T19:45:02.115Z", "modified_at": "2022-11-26T05:04:17.930Z", "id": "", "status": "succeeded", "client_secret": "", "url": "https://lumpy-jellyfish.com", "expires_at": "2023-08-07T16:01:01.665Z", "success_url": "https://obedient-operating.org/", "embed_origin": "", "amount": 553902, "tax_amount": 201138, "currency": "Seychelles Rupee", "total_amount": 493334, "product_id": "", "product_price_id": "", "is_payment_required": false, "customer_id": "", "customer_name": "", "customer_email": "Coleman_Rutherford@hotmail.com", "customer_ip_address": "", "customer_billing_address": {"country": "Maldives"}, "customer_tax_id": "", "product": {"created_at": "2022-09-10T21:17:06.373Z", "modified_at": "2024-10-11T12:01:20.600Z", "id": "", "name": "", "description": "of grave parade whereas wherever", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [], "benefits": [{"created_at": "2022-11-26T05:04:17.930Z", "modified_at": "2024-04-14T21:02:40.457Z", "id": "", "type": "discord", "description": "given impolite how astride cap", "selectable": false, "deletable": false, "organization_id": ""}, {"created_at": "2024-07-23T16:17:04.686Z", "modified_at": "2024-10-15T01:25:33.429Z", "id": "", "type": "ads", "description": "definitive as fluffy", "selectable": false, "deletable": true, "organization_id": ""}, {"created_at": "2023-05-06T11:19:10.077Z", "modified_at": "2023-11-17T04:52:10.824Z", "id": "", "type": "downloadables", "description": "yum lecture against alienated meanwhile unabashedly", "selectable": true, "deletable": true, "organization_id": ""}], "medias": []}, "product_price": {"created_at": "2024-04-14T21:02:40.457Z", "modified_at": "2023-08-07T16:01:01.665Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 564186, "recurring_interval": "year"}} "404": application/json: {"detail": ""} "422": {} @@ -1946,7 +1946,7 @@ examples: client_secret: "" responses: "200": - application/json: {"created_at": "2024-10-22T20:45:21.815Z", "modified_at": "2023-07-17T23:31:05.499Z", "id": "", "status": "expired", "client_secret": "", "url": "https://simple-flint.org/", "expires_at": "2023-07-14T01:44:24.320Z", "success_url": "https://passionate-understanding.com/", "amount": 573767, "tax_amount": 903274, "currency": "Sudanese Pound", "total_amount": 813143, "product_id": "", "product_price_id": "", "is_payment_required": true, "customer_id": "", "customer_name": "", "customer_email": "Leonie50@hotmail.com", "customer_ip_address": "", "customer_billing_address": {"country": "Bulgaria"}, "customer_tax_id": "", "product": {"created_at": "2023-09-04T23:39:15.429Z", "modified_at": "2022-06-30T18:11:17.062Z", "id": "", "name": "", "description": "ack notwithstanding lively into trusty", "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2022-11-16T20:51:18.745Z", "modified_at": "2023-07-14T01:44:24.320Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 597177, "maximum_amount": 947630, "preset_amount": 166401}, {"created_at": "2024-04-03T02:37:24.726Z", "modified_at": "2024-06-10T04:54:08.615Z", "id": "", "is_archived": true, "product_id": ""}, {"created_at": "2024-07-08T15:45:04.860Z", "modified_at": "2023-09-22T09:06:50.882Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 508864, "maximum_amount": 744619, "preset_amount": 137234}], "benefits": [{"created_at": "2024-04-13T01:40:05.694Z", "modified_at": "2024-07-12T13:33:11.703Z", "id": "", "type": "discord", "description": "prohibition where although negative where psst", "selectable": false, "deletable": false, "organization_id": ""}, {"created_at": "2022-11-01T16:37:11.315Z", "modified_at": "2024-11-11T09:22:51.554Z", "id": "", "type": "ads", "description": "anenst meanwhile little", "selectable": false, "deletable": false, "organization_id": ""}, {"created_at": "2023-12-08T07:51:27.800Z", "modified_at": "2022-03-18T21:13:49.993Z", "id": "", "type": "discord", "description": "long-term relative singe urgently questionably", "selectable": false, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt/share", "mime_type": "", "size": 389948, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-01-06T16:44:49.420Z", "version": "", "is_uploaded": false, "created_at": "2024-04-09T09:13:22.245Z", "size_readable": "", "public_url": "https://smoggy-graffiti.net/"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/obj", "mime_type": "", "size": 503125, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-06-27T13:22:35.587Z", "version": "", "is_uploaded": false, "created_at": "2022-06-08T06:40:16.558Z", "size_readable": "", "public_url": "https://lumbering-charlatan.biz/"}, {"id": "", "organization_id": "", "name": "", "path": "/var/mail", "mime_type": "", "size": 126531, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-10-20T22:04:15.588Z", "version": "", "is_uploaded": false, "created_at": "2023-02-02T22:10:58.341Z", "size_readable": "", "public_url": "https://which-entry.biz/"}]}, "product_price": {"created_at": "2022-10-09T22:41:34.766Z", "modified_at": "2024-06-14T00:54:00.547Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 172495}} + application/json: {"created_at": "2024-10-22T20:45:21.815Z", "modified_at": "2023-07-17T23:31:05.499Z", "id": "", "status": "expired", "client_secret": "", "url": "https://simple-flint.org/", "expires_at": "2023-07-14T01:44:24.320Z", "success_url": "https://passionate-understanding.com/", "embed_origin": "", "amount": 573767, "tax_amount": 903274, "currency": "Sudanese Pound", "total_amount": 813143, "product_id": "", "product_price_id": "", "is_payment_required": true, "customer_id": "", "customer_name": "", "customer_email": "Leonie50@hotmail.com", "customer_ip_address": "", "customer_billing_address": {"country": "Bulgaria"}, "customer_tax_id": "", "product": {"created_at": "2023-09-04T23:39:15.429Z", "modified_at": "2022-06-30T18:11:17.062Z", "id": "", "name": "", "description": "ack notwithstanding lively into trusty", "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2022-11-16T20:51:18.745Z", "modified_at": "2023-07-14T01:44:24.320Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 597177, "maximum_amount": 947630, "preset_amount": 166401}, {"created_at": "2024-04-03T02:37:24.726Z", "modified_at": "2024-06-10T04:54:08.615Z", "id": "", "is_archived": true, "product_id": ""}, {"created_at": "2024-07-08T15:45:04.860Z", "modified_at": "2023-09-22T09:06:50.882Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 508864, "maximum_amount": 744619, "preset_amount": 137234}], "benefits": [{"created_at": "2024-04-13T01:40:05.694Z", "modified_at": "2024-07-12T13:33:11.703Z", "id": "", "type": "discord", "description": "prohibition where although negative where psst", "selectable": false, "deletable": false, "organization_id": ""}, {"created_at": "2022-11-01T16:37:11.315Z", "modified_at": "2024-11-11T09:22:51.554Z", "id": "", "type": "ads", "description": "anenst meanwhile little", "selectable": false, "deletable": false, "organization_id": ""}, {"created_at": "2023-12-08T07:51:27.800Z", "modified_at": "2022-03-18T21:13:49.993Z", "id": "", "type": "discord", "description": "long-term relative singe urgently questionably", "selectable": false, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt/share", "mime_type": "", "size": 389948, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-01-06T16:44:49.420Z", "version": "", "is_uploaded": false, "created_at": "2024-04-09T09:13:22.245Z", "size_readable": "", "public_url": "https://smoggy-graffiti.net/"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/obj", "mime_type": "", "size": 503125, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-06-27T13:22:35.587Z", "version": "", "is_uploaded": false, "created_at": "2022-06-08T06:40:16.558Z", "size_readable": "", "public_url": "https://lumbering-charlatan.biz/"}, {"id": "", "organization_id": "", "name": "", "path": "/var/mail", "mime_type": "", "size": 126531, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-10-20T22:04:15.588Z", "version": "", "is_uploaded": false, "created_at": "2023-02-02T22:10:58.341Z", "size_readable": "", "public_url": "https://which-entry.biz/"}]}, "product_price": {"created_at": "2022-10-09T22:41:34.766Z", "modified_at": "2024-06-14T00:54:00.547Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 172495}} "404": application/json: {"detail": ""} "422": {} @@ -1957,7 +1957,7 @@ examples: client_secret: "" responses: "200": - application/json: {"created_at": "2024-09-27T22:33:04.250Z", "modified_at": "2024-07-24T02:45:26.067Z", "id": "", "status": "succeeded", "client_secret": "", "url": "https://apt-devastation.biz/", "expires_at": "2022-07-30T06:29:51.767Z", "success_url": "https://secondary-gallery.net", "amount": 662896, "tax_amount": 131007, "currency": "Nepalese Rupee", "total_amount": 714568, "product_id": "", "product_price_id": "", "is_payment_required": false, "customer_id": "", "customer_name": "", "customer_email": "Maggie18@gmail.com", "customer_ip_address": "", "customer_billing_address": {"country": "Nigeria"}, "customer_tax_id": "", "product": {"created_at": "2023-01-28T03:25:59.665Z", "modified_at": "2022-01-24T16:41:51.515Z", "id": "", "name": "", "description": "potentially thread toady subsidy probable motionless obedience clear-cut", "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2023-11-15T07:38:37.445Z", "modified_at": "2022-07-30T06:29:51.767Z", "id": "", "is_archived": false, "product_id": ""}], "benefits": [{"created_at": "2022-10-20T16:59:20.255Z", "modified_at": "2023-01-30T20:43:56.426Z", "id": "", "type": "articles", "description": "editor until ah daintily oof aw tarry impanel", "selectable": false, "deletable": false, "organization_id": ""}, {"created_at": "2024-07-26T21:52:00.436Z", "modified_at": "2024-03-11T23:49:19.061Z", "id": "", "type": "license_keys", "description": "forenenst aw or distorted legal cycle posh off", "selectable": true, "deletable": false, "organization_id": ""}, {"created_at": "2023-02-11T02:25:13.433Z", "modified_at": "2024-01-07T19:25:42.663Z", "id": "", "description": "hovel yuck absentmindedly oh anti joyous psst tender", "selectable": false, "deletable": true, "organization_id": "", "properties": {"paid_articles": true}}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/mnt", "mime_type": "", "size": 249646, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-06-10T13:10:48.480Z", "version": "", "is_uploaded": true, "created_at": "2022-02-28T04:49:04.106Z", "size_readable": "", "public_url": "https://glittering-confusion.biz/"}]}, "product_price": {"created_at": "2023-01-06T21:00:26.752Z", "modified_at": "2022-10-07T14:51:36.263Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 638939, "maximum_amount": 942266, "preset_amount": 508098}} + application/json: {"created_at": "2024-09-27T22:33:04.250Z", "modified_at": "2024-07-24T02:45:26.067Z", "id": "", "status": "succeeded", "client_secret": "", "url": "https://apt-devastation.biz/", "expires_at": "2022-07-30T06:29:51.767Z", "success_url": "https://secondary-gallery.net", "embed_origin": "", "amount": 662896, "tax_amount": 131007, "currency": "Nepalese Rupee", "total_amount": 714568, "product_id": "", "product_price_id": "", "is_payment_required": false, "customer_id": "", "customer_name": "", "customer_email": "Maggie18@gmail.com", "customer_ip_address": "", "customer_billing_address": {"country": "Nigeria"}, "customer_tax_id": "", "product": {"created_at": "2023-01-28T03:25:59.665Z", "modified_at": "2022-01-24T16:41:51.515Z", "id": "", "name": "", "description": "potentially thread toady subsidy probable motionless obedience clear-cut", "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2023-11-15T07:38:37.445Z", "modified_at": "2022-07-30T06:29:51.767Z", "id": "", "is_archived": false, "product_id": ""}], "benefits": [{"created_at": "2022-10-20T16:59:20.255Z", "modified_at": "2023-01-30T20:43:56.426Z", "id": "", "type": "articles", "description": "editor until ah daintily oof aw tarry impanel", "selectable": false, "deletable": false, "organization_id": ""}, {"created_at": "2024-07-26T21:52:00.436Z", "modified_at": "2024-03-11T23:49:19.061Z", "id": "", "type": "license_keys", "description": "forenenst aw or distorted legal cycle posh off", "selectable": true, "deletable": false, "organization_id": ""}, {"created_at": "2023-02-11T02:25:13.433Z", "modified_at": "2024-01-07T19:25:42.663Z", "id": "", "description": "hovel yuck absentmindedly oh anti joyous psst tender", "selectable": false, "deletable": true, "organization_id": "", "properties": {"paid_articles": true}}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/mnt", "mime_type": "", "size": 249646, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-06-10T13:10:48.480Z", "version": "", "is_uploaded": true, "created_at": "2022-02-28T04:49:04.106Z", "size_readable": "", "public_url": "https://glittering-confusion.biz/"}]}, "product_price": {"created_at": "2023-01-06T21:00:26.752Z", "modified_at": "2022-10-07T14:51:36.263Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 638939, "maximum_amount": 942266, "preset_amount": 508098}} "404": application/json: {"detail": ""} "422": {} diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 64f79371..b89d1a97 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -15,7 +15,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: true typescript: - version: 0.13.3 + version: 0.13.4 additionalDependencies: dependencies: {} devDependencies: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 4fac569b..bf387c7e 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.420.0 +speakeasyVersion: 1.421.1 sources: Polar-OAS: sourceNamespace: polar-oas - sourceRevisionDigest: sha256:a53271a526352407a56a330114f34000ed294192c2282469a0ce080e6b034d0f - sourceBlobDigest: sha256:7d0dddbc1b652f122a0fdfe0e312a72cade0d322590a5bb99e6dda789c61c5eb + sourceRevisionDigest: sha256:f6103548f368df47426a16ea11e73e7723a9c148abb583655869c1bf2a4b44fe + sourceBlobDigest: sha256:e4d5bea4ffc74b41e58b9fdd6396d43c95b3b069a564ed3e421efdf13716091a tags: - latest - main @@ -11,8 +11,8 @@ targets: polar: source: Polar-OAS sourceNamespace: polar-oas - sourceRevisionDigest: sha256:a53271a526352407a56a330114f34000ed294192c2282469a0ce080e6b034d0f - sourceBlobDigest: sha256:7d0dddbc1b652f122a0fdfe0e312a72cade0d322590a5bb99e6dda789c61c5eb + sourceRevisionDigest: sha256:f6103548f368df47426a16ea11e73e7723a9c148abb583655869c1bf2a4b44fe + sourceBlobDigest: sha256:e4d5bea4ffc74b41e58b9fdd6396d43c95b3b069a564ed3e421efdf13716091a workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index 3d9b5124..42b1342c 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -148,4 +148,14 @@ Based on: ### Generated - [typescript v0.13.3] . ### Releases -- [NPM v0.13.3] https://www.npmjs.com/package/@polar-sh/sdk/v/0.13.3 - . \ No newline at end of file +- [NPM v0.13.3] https://www.npmjs.com/package/@polar-sh/sdk/v/0.13.3 - . + +## 2024-10-24 00:25:54 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.421.1 (2.438.15) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.13.4] . +### Releases +- [NPM v0.13.4] https://www.npmjs.com/package/@polar-sh/sdk/v/0.13.4 - . \ No newline at end of file diff --git a/docs/models/components/checkoutpublic.md b/docs/models/components/checkoutpublic.md index 19ee0911..943c73ed 100644 --- a/docs/models/components/checkoutpublic.md +++ b/docs/models/components/checkoutpublic.md @@ -16,6 +16,7 @@ let value: CheckoutPublic = { url: "https://smooth-fencing.net/", expiresAt: new Date("2024-05-07T19:48:42.313Z"), successUrl: "https://different-pendant.info/", + embedOrigin: "", amount: 27636, taxAmount: 359649, currency: "Norwegian Krone", @@ -102,30 +103,31 @@ let value: CheckoutPublic = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | Creation timestamp of the object. | -| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | Last modification timestamp of the object. | -| `id` | *string* | :heavy_check_mark: | The ID of the object. | -| `paymentProcessor` | [components.PolarEnumsPaymentProcessor](../../models/components/polarenumspaymentprocessor.md) | :heavy_check_mark: | N/A | -| `status` | [components.CheckoutStatus](../../models/components/checkoutstatus.md) | :heavy_check_mark: | N/A | -| `clientSecret` | *string* | :heavy_check_mark: | Client secret used to update and complete the checkout session from the client. | -| `url` | *string* | :heavy_check_mark: | URL where the customer can access the checkout session. | -| `expiresAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | Expiration date and time of the checkout session. | -| `successUrl` | *string* | :heavy_check_mark: | URL where the customer will be redirected after a successful payment. | -| `amount` | *number* | :heavy_check_mark: | N/A | -| `taxAmount` | *number* | :heavy_check_mark: | Computed tax amount to pay in cents. | -| `currency` | *string* | :heavy_check_mark: | Currency code of the checkout session. | -| `totalAmount` | *number* | :heavy_check_mark: | Total amount to pay in cents. | -| `productId` | *string* | :heavy_check_mark: | ID of the product to checkout. | -| `productPriceId` | *string* | :heavy_check_mark: | ID of the product price to checkout. | -| `isPaymentRequired` | *boolean* | :heavy_check_mark: | Whether the checkout requires payment. Useful to detect free products. | -| `customerId` | *string* | :heavy_check_mark: | N/A | -| `customerName` | *string* | :heavy_check_mark: | N/A | -| `customerEmail` | *string* | :heavy_check_mark: | N/A | -| `customerIpAddress` | *string* | :heavy_check_mark: | N/A | -| `customerBillingAddress` | [components.Address](../../models/components/address.md) | :heavy_check_mark: | N/A | -| `customerTaxId` | *string* | :heavy_check_mark: | N/A | -| `paymentProcessorMetadata` | [components.CheckoutPublicPaymentProcessorMetadata](../../models/components/checkoutpublicpaymentprocessormetadata.md) | :heavy_check_mark: | N/A | -| `product` | [components.Product](../../models/components/product.md) | :heavy_check_mark: | A product. | -| `productPrice` | *components.ProductPrice* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | Creation timestamp of the object. | +| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | Last modification timestamp of the object. | +| `id` | *string* | :heavy_check_mark: | The ID of the object. | +| `paymentProcessor` | [components.PolarEnumsPaymentProcessor](../../models/components/polarenumspaymentprocessor.md) | :heavy_check_mark: | N/A | +| `status` | [components.CheckoutStatus](../../models/components/checkoutstatus.md) | :heavy_check_mark: | N/A | +| `clientSecret` | *string* | :heavy_check_mark: | Client secret used to update and complete the checkout session from the client. | +| `url` | *string* | :heavy_check_mark: | URL where the customer can access the checkout session. | +| `expiresAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | Expiration date and time of the checkout session. | +| `successUrl` | *string* | :heavy_check_mark: | URL where the customer will be redirected after a successful payment. | +| `embedOrigin` | *string* | :heavy_check_mark: | When checkout is embedded, represents the Origin of the page embedding the checkout. Used as a security measure to send messages only to the embedding page. | +| `amount` | *number* | :heavy_check_mark: | N/A | +| `taxAmount` | *number* | :heavy_check_mark: | Computed tax amount to pay in cents. | +| `currency` | *string* | :heavy_check_mark: | Currency code of the checkout session. | +| `totalAmount` | *number* | :heavy_check_mark: | Total amount to pay in cents. | +| `productId` | *string* | :heavy_check_mark: | ID of the product to checkout. | +| `productPriceId` | *string* | :heavy_check_mark: | ID of the product price to checkout. | +| `isPaymentRequired` | *boolean* | :heavy_check_mark: | Whether the checkout requires payment. Useful to detect free products. | +| `customerId` | *string* | :heavy_check_mark: | N/A | +| `customerName` | *string* | :heavy_check_mark: | N/A | +| `customerEmail` | *string* | :heavy_check_mark: | N/A | +| `customerIpAddress` | *string* | :heavy_check_mark: | N/A | +| `customerBillingAddress` | [components.Address](../../models/components/address.md) | :heavy_check_mark: | N/A | +| `customerTaxId` | *string* | :heavy_check_mark: | N/A | +| `paymentProcessorMetadata` | [components.CheckoutPublicPaymentProcessorMetadata](../../models/components/checkoutpublicpaymentprocessormetadata.md) | :heavy_check_mark: | N/A | +| `product` | [components.Product](../../models/components/product.md) | :heavy_check_mark: | A product. | +| `productPrice` | *components.ProductPrice* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/listresourcecheckout.md b/docs/models/components/listresourcecheckout.md index c705afbf..c57f16b3 100644 --- a/docs/models/components/listresourcecheckout.md +++ b/docs/models/components/listresourcecheckout.md @@ -16,6 +16,7 @@ let value: ListResourceCheckout = { url: "https://bustling-shark.biz/", expiresAt: new Date("2024-03-25T03:51:27.034Z"), successUrl: "https://sweet-yarmulke.com", + embedOrigin: "", amount: 150417, taxAmount: 636216, currency: "Kwanza", diff --git a/docs/models/components/polarcheckoutschemascheckout.md b/docs/models/components/polarcheckoutschemascheckout.md index d5b73bd7..dd9a49c3 100644 --- a/docs/models/components/polarcheckoutschemascheckout.md +++ b/docs/models/components/polarcheckoutschemascheckout.md @@ -16,6 +16,7 @@ let value: PolarCheckoutSchemasCheckout = { url: "https://little-creature.name/", expiresAt: new Date("2024-12-15T14:43:33.121Z"), successUrl: "https://qualified-electronics.biz", + embedOrigin: "", amount: 196355, taxAmount: 514602, currency: "Belarusian Ruble", @@ -40,29 +41,30 @@ let value: PolarCheckoutSchemasCheckout = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | Creation timestamp of the object. | -| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | Last modification timestamp of the object. | -| `id` | *string* | :heavy_check_mark: | The ID of the object. | -| `paymentProcessor` | [components.PolarEnumsPaymentProcessor](../../models/components/polarenumspaymentprocessor.md) | :heavy_check_mark: | N/A | -| `status` | [components.CheckoutStatus](../../models/components/checkoutstatus.md) | :heavy_check_mark: | N/A | -| `clientSecret` | *string* | :heavy_check_mark: | Client secret used to update and complete the checkout session from the client. | -| `url` | *string* | :heavy_check_mark: | URL where the customer can access the checkout session. | -| `expiresAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | Expiration date and time of the checkout session. | -| `successUrl` | *string* | :heavy_check_mark: | URL where the customer will be redirected after a successful payment. | -| `amount` | *number* | :heavy_check_mark: | N/A | -| `taxAmount` | *number* | :heavy_check_mark: | Computed tax amount to pay in cents. | -| `currency` | *string* | :heavy_check_mark: | Currency code of the checkout session. | -| `totalAmount` | *number* | :heavy_check_mark: | Total amount to pay in cents. | -| `productId` | *string* | :heavy_check_mark: | ID of the product to checkout. | -| `productPriceId` | *string* | :heavy_check_mark: | ID of the product price to checkout. | -| `isPaymentRequired` | *boolean* | :heavy_check_mark: | Whether the checkout requires payment. Useful to detect free products. | -| `customerId` | *string* | :heavy_check_mark: | N/A | -| `customerName` | *string* | :heavy_check_mark: | N/A | -| `customerEmail` | *string* | :heavy_check_mark: | N/A | -| `customerIpAddress` | *string* | :heavy_check_mark: | N/A | -| `customerBillingAddress` | [components.Address](../../models/components/address.md) | :heavy_check_mark: | N/A | -| `customerTaxId` | *string* | :heavy_check_mark: | N/A | -| `paymentProcessorMetadata` | [components.PaymentProcessorMetadata](../../models/components/paymentprocessormetadata.md) | :heavy_check_mark: | N/A | -| `metadata` | Record | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | Creation timestamp of the object. | +| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | Last modification timestamp of the object. | +| `id` | *string* | :heavy_check_mark: | The ID of the object. | +| `paymentProcessor` | [components.PolarEnumsPaymentProcessor](../../models/components/polarenumspaymentprocessor.md) | :heavy_check_mark: | N/A | +| `status` | [components.CheckoutStatus](../../models/components/checkoutstatus.md) | :heavy_check_mark: | N/A | +| `clientSecret` | *string* | :heavy_check_mark: | Client secret used to update and complete the checkout session from the client. | +| `url` | *string* | :heavy_check_mark: | URL where the customer can access the checkout session. | +| `expiresAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | Expiration date and time of the checkout session. | +| `successUrl` | *string* | :heavy_check_mark: | URL where the customer will be redirected after a successful payment. | +| `embedOrigin` | *string* | :heavy_check_mark: | When checkout is embedded, represents the Origin of the page embedding the checkout. Used as a security measure to send messages only to the embedding page. | +| `amount` | *number* | :heavy_check_mark: | N/A | +| `taxAmount` | *number* | :heavy_check_mark: | Computed tax amount to pay in cents. | +| `currency` | *string* | :heavy_check_mark: | Currency code of the checkout session. | +| `totalAmount` | *number* | :heavy_check_mark: | Total amount to pay in cents. | +| `productId` | *string* | :heavy_check_mark: | ID of the product to checkout. | +| `productPriceId` | *string* | :heavy_check_mark: | ID of the product price to checkout. | +| `isPaymentRequired` | *boolean* | :heavy_check_mark: | Whether the checkout requires payment. Useful to detect free products. | +| `customerId` | *string* | :heavy_check_mark: | N/A | +| `customerName` | *string* | :heavy_check_mark: | N/A | +| `customerEmail` | *string* | :heavy_check_mark: | N/A | +| `customerIpAddress` | *string* | :heavy_check_mark: | N/A | +| `customerBillingAddress` | [components.Address](../../models/components/address.md) | :heavy_check_mark: | N/A | +| `customerTaxId` | *string* | :heavy_check_mark: | N/A | +| `paymentProcessorMetadata` | [components.PaymentProcessorMetadata](../../models/components/paymentprocessormetadata.md) | :heavy_check_mark: | N/A | +| `metadata` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/webhookcheckoutcreatedpayload.md b/docs/models/components/webhookcheckoutcreatedpayload.md index 7961139f..31c844df 100644 --- a/docs/models/components/webhookcheckoutcreatedpayload.md +++ b/docs/models/components/webhookcheckoutcreatedpayload.md @@ -19,6 +19,7 @@ let value: WebhookCheckoutCreatedPayload = { url: "https://unlawful-rationale.org/", expiresAt: new Date("2023-03-01T00:50:01.666Z"), successUrl: "https://unlined-hornet.net/", + embedOrigin: "", amount: 424591, taxAmount: 708007, currency: "Naira", diff --git a/docs/models/components/webhookcheckoutupdatedpayload.md b/docs/models/components/webhookcheckoutupdatedpayload.md index b7681e23..d4ef5b76 100644 --- a/docs/models/components/webhookcheckoutupdatedpayload.md +++ b/docs/models/components/webhookcheckoutupdatedpayload.md @@ -19,6 +19,7 @@ let value: WebhookCheckoutUpdatedPayload = { url: "https://clear-cut-dream.biz", expiresAt: new Date("2024-02-16T11:29:47.688Z"), successUrl: "https://slushy-event.net/", + embedOrigin: "", amount: 366561, taxAmount: 426401, currency: "Brazilian Real", diff --git a/docs/models/operations/checkoutscustomlistresponse.md b/docs/models/operations/checkoutscustomlistresponse.md index 52c37478..37fd0e59 100644 --- a/docs/models/operations/checkoutscustomlistresponse.md +++ b/docs/models/operations/checkoutscustomlistresponse.md @@ -17,6 +17,7 @@ let value: CheckoutsCustomListResponse = { url: "https://whirlwind-section.com", expiresAt: new Date("2024-06-01T05:01:31.045Z"), successUrl: "https://esteemed-citizen.biz/", + embedOrigin: "", amount: 528315, taxAmount: 671690, currency: "Kuwaiti Dinar", diff --git a/jsr.json b/jsr.json index 78376130..24b9d4ac 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@polar-sh/sdk", - "version": "0.13.3", + "version": "0.13.4", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index d803bcdd..85cb57e2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@polar-sh/sdk", - "version": "0.13.3", + "version": "0.13.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@polar-sh/sdk", - "version": "0.13.3", + "version": "0.13.4", "devDependencies": { "@typescript-eslint/eslint-plugin": "^7.7.1", "@typescript-eslint/parser": "^7.7.1", diff --git a/package.json b/package.json index 25b2a47c..b8970f9e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@polar-sh/sdk", - "version": "0.13.3", + "version": "0.13.4", "author": "Speakeasy", "main": "./index.js", "sideEffects": false, diff --git a/src/lib/config.ts b/src/lib/config.ts index aa5f204f..28ed0658 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -60,7 +60,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "0.1.0", - sdkVersion: "0.13.3", + sdkVersion: "0.13.4", genVersion: "2.438.15", - userAgent: "speakeasy-sdk/typescript 0.13.3 2.438.15 0.1.0 @polar-sh/sdk", + userAgent: "speakeasy-sdk/typescript 0.13.4 2.438.15 0.1.0 @polar-sh/sdk", } as const; diff --git a/src/models/components/checkoutpublic.ts b/src/models/components/checkoutpublic.ts index 4ea10143..f5ead475 100644 --- a/src/models/components/checkoutpublic.ts +++ b/src/models/components/checkoutpublic.ts @@ -64,6 +64,10 @@ export type CheckoutPublic = { * URL where the customer will be redirected after a successful payment. */ successUrl: string; + /** + * When checkout is embedded, represents the Origin of the page embedding the checkout. Used as a security measure to send messages only to the embedding page. + */ + embedOrigin: string | null; amount: number | null; /** * Computed tax amount to pay in cents. @@ -152,6 +156,7 @@ export const CheckoutPublic$inboundSchema: z.ZodType< url: z.string(), expires_at: z.string().datetime({ offset: true }).transform(v => new Date(v)), success_url: z.string(), + embed_origin: z.nullable(z.string()), amount: z.nullable(z.number().int()), tax_amount: z.nullable(z.number().int()), currency: z.nullable(z.string()), @@ -178,6 +183,7 @@ export const CheckoutPublic$inboundSchema: z.ZodType< "client_secret": "clientSecret", "expires_at": "expiresAt", "success_url": "successUrl", + "embed_origin": "embedOrigin", "tax_amount": "taxAmount", "total_amount": "totalAmount", "product_id": "productId", @@ -205,6 +211,7 @@ export type CheckoutPublic$Outbound = { url: string; expires_at: string; success_url: string; + embed_origin: string | null; amount: number | null; tax_amount: number | null; currency: string | null; @@ -238,6 +245,7 @@ export const CheckoutPublic$outboundSchema: z.ZodType< url: z.string(), expiresAt: z.date().transform(v => v.toISOString()), successUrl: z.string(), + embedOrigin: z.nullable(z.string()), amount: z.nullable(z.number().int()), taxAmount: z.nullable(z.number().int()), currency: z.nullable(z.string()), @@ -264,6 +272,7 @@ export const CheckoutPublic$outboundSchema: z.ZodType< clientSecret: "client_secret", expiresAt: "expires_at", successUrl: "success_url", + embedOrigin: "embed_origin", taxAmount: "tax_amount", totalAmount: "total_amount", productId: "product_id", diff --git a/src/models/components/polarcheckoutschemascheckout.ts b/src/models/components/polarcheckoutschemascheckout.ts index f9e05867..df524c08 100644 --- a/src/models/components/polarcheckoutschemascheckout.ts +++ b/src/models/components/polarcheckoutschemascheckout.ts @@ -52,6 +52,10 @@ export type PolarCheckoutSchemasCheckout = { * URL where the customer will be redirected after a successful payment. */ successUrl: string; + /** + * When checkout is embedded, represents the Origin of the page embedding the checkout. Used as a security measure to send messages only to the embedding page. + */ + embedOrigin: string | null; amount: number | null; /** * Computed tax amount to pay in cents. @@ -134,6 +138,7 @@ export const PolarCheckoutSchemasCheckout$inboundSchema: z.ZodType< url: z.string(), expires_at: z.string().datetime({ offset: true }).transform(v => new Date(v)), success_url: z.string(), + embed_origin: z.nullable(z.string()), amount: z.nullable(z.number().int()), tax_amount: z.nullable(z.number().int()), currency: z.nullable(z.string()), @@ -159,6 +164,7 @@ export const PolarCheckoutSchemasCheckout$inboundSchema: z.ZodType< "client_secret": "clientSecret", "expires_at": "expiresAt", "success_url": "successUrl", + "embed_origin": "embedOrigin", "tax_amount": "taxAmount", "total_amount": "totalAmount", "product_id": "productId", @@ -185,6 +191,7 @@ export type PolarCheckoutSchemasCheckout$Outbound = { url: string; expires_at: string; success_url: string; + embed_origin: string | null; amount: number | null; tax_amount: number | null; currency: string | null; @@ -217,6 +224,7 @@ export const PolarCheckoutSchemasCheckout$outboundSchema: z.ZodType< url: z.string(), expiresAt: z.date().transform(v => v.toISOString()), successUrl: z.string(), + embedOrigin: z.nullable(z.string()), amount: z.nullable(z.number().int()), taxAmount: z.nullable(z.number().int()), currency: z.nullable(z.string()), @@ -242,6 +250,7 @@ export const PolarCheckoutSchemasCheckout$outboundSchema: z.ZodType< clientSecret: "client_secret", expiresAt: "expires_at", successUrl: "success_url", + embedOrigin: "embed_origin", taxAmount: "tax_amount", totalAmount: "total_amount", productId: "product_id",