diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index b774e26d..8633b11e 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: d98f0afb6456414d1ff72ca3b167e5fd + docChecksum: 5123f1aaefc72fe0dd517919285c972c docVersion: 0.1.0 - speakeasyVersion: 1.637.3 - generationVersion: 2.727.9 - releaseVersion: 0.38.1 - configChecksum: 3b256adb8c214bcfe452048fa7615308 + speakeasyVersion: 1.638.1 + generationVersion: 2.729.2 + releaseVersion: 0.39.0 + configChecksum: 0755c9a01c3084749ef5b47db234c18e repoURL: https://github.com/polarsource/polar-js.git installationURL: https://github.com/polarsource/polar-js published: true @@ -14,7 +14,7 @@ features: typescript: additionalDependencies: 0.1.0 constsAndDefaults: 0.1.12 - core: 3.22.0 + core: 3.23.0 defaultEnabledRetries: 0.1.0 deprecations: 2.81.1 devContainers: 2.90.1 @@ -225,9 +225,11 @@ generatedFiles: - docs/models/components/clauses.md - docs/models/components/committedmonthlyrecurringrevenue.md - docs/models/components/conditions.md + - docs/models/components/costs.md - docs/models/components/countaggregation.md - docs/models/components/countryalpha2.md - docs/models/components/countryalpha2input.md + - docs/models/components/cumulativecosts.md - docs/models/components/cumulativerevenue.md - docs/models/components/customer.md - docs/models/components/customerbalance.md @@ -511,6 +513,8 @@ generatedFiles: - docs/models/components/metricstotalscheckouts.md - docs/models/components/metricstotalscheckoutsconversion.md - docs/models/components/metricstotalscommittedmonthlyrecurringrevenue.md + - docs/models/components/metricstotalscosts.md + - docs/models/components/metricstotalscumulativecosts.md - docs/models/components/metricstotalscumulativerevenue.md - docs/models/components/metricstotalsmonthlyrecurringrevenue.md - docs/models/components/metricstotalsnetaverageordervalue.md @@ -732,7 +736,6 @@ generatedFiles: - docs/models/errors/customerportalordersgenerateinvoiceresponse422customerportalordersgenerateinvoice.md - docs/models/errors/expiredcheckouterror.md - docs/models/errors/httpvalidationerror.md - - docs/models/errors/invoicealreadyexists.md - docs/models/errors/missinginvoicebillingdetails.md - docs/models/errors/notopencheckout.md - docs/models/errors/notpaidorder.md @@ -1673,7 +1676,6 @@ generatedFiles: - src/models/errors/expiredcheckouterror.ts - src/models/errors/httpclienterrors.ts - src/models/errors/httpvalidationerror.ts - - src/models/errors/invoicealreadyexists.ts - src/models/errors/missinginvoicebillingdetails.ts - src/models/errors/notopencheckout.ts - src/models/errors/notpaidorder.ts @@ -1861,7 +1863,7 @@ examples: _endpointcheckout_created_post: speakeasy-default-endpointcheckout-created-post: requestBody: - application/json: {"type": "checkout.created", "timestamp": "2023-02-15T15:44:21.478Z", "data": {"id": "", "created_at": "2023-02-15T15:44:21.478Z", "modified_at": "2025-09-12T19:48:15.814Z", "payment_processor": "stripe", "status": "expired", "client_secret": "", "url": "https://fair-veto.com/", "expires_at": "2025-03-15T14:26:53.109Z", "success_url": "https://junior-linseed.net/", "return_url": null, "embed_origin": "", "amount": 631188, "discount_amount": 968968, "net_amount": 929514, "tax_amount": 323773, "total_amount": 115799, "currency": "Som", "active_trial_interval": null, "active_trial_interval_count": 232991, "trial_end": "2023-10-05T12:55:46.428Z", "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": true, "require_billing_address": false, "is_discount_applicable": true, "is_free_product_price": true, "is_payment_required": true, "is_payment_setup_required": true, "is_payment_form_required": true, "customer_id": "", "is_business_customer": true, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_processor_metadata": {}, "billing_address_fields": {"country": "required", "state": "disabled", "city": "required", "postal_code": "required", "line1": "required", "line2": "disabled"}, "trial_interval": "day", "trial_interval_count": 329779, "metadata": {"key": ""}, "external_customer_id": null, "customer_external_id": "", "products": [], "product": {"id": "", "created_at": "2025-03-29T00:34:40.708Z", "modified_at": "2024-04-06T18:48:21.449Z", "trial_interval": "month", "trial_interval_count": 631188, "name": "", "description": "stall for mousse", "recurring_interval": "year", "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2023-09-13T08:36:46.434Z", "modified_at": "2023-10-05T12:55:46.428Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "legacy": true}, {"created_at": "2024-05-02T18:25:33.974Z", "modified_at": "2025-02-06T12:55:07.640Z", "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "price_amount": 115799, "legacy": true}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/private/tmp", "mime_type": "", "size": 225502, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-07-06T07:35:44.280Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-10-08T20:45:26.653Z", "size_readable": "", "public_url": "https://graceful-battle.info"}, {"id": "", "organization_id": "", "name": "", "path": "/private/tmp", "mime_type": "", "size": 225502, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-07-06T07:35:44.280Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-10-08T20:45:26.653Z", "size_readable": "", "public_url": "https://graceful-battle.info"}, {"id": "", "organization_id": "", "name": "", "path": "/private/tmp", "mime_type": "", "size": 225502, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-07-06T07:35:44.280Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-10-08T20:45:26.653Z", "size_readable": "", "public_url": "https://graceful-battle.info"}]}, "product_price": {"created_at": "2025-09-16T11:22:24.287Z", "modified_at": "2025-11-04T08:41:40.941Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}, "discount": {"duration": "once", "type": "fixed", "amount": 405691, "currency": "Dobra", "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2025-06-07T12:37:50.969Z", "modified_at": "2023-11-20T09:37:39.033Z", "id": "", "metadata": {"key": true, "key1": "", "key2": ""}, "type": "text", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 168537, "required": false}], "customer_metadata": {"key": true, "key1": false, "key2": 851435}}} + application/json: {"type": "checkout.created", "timestamp": "2023-02-15T15:44:21.478Z", "data": {"id": "", "created_at": "2023-02-15T15:44:21.478Z", "modified_at": "2025-09-12T19:48:15.814Z", "payment_processor": "stripe", "status": "expired", "client_secret": "", "url": "https://fair-veto.com/", "expires_at": "2025-03-15T14:26:53.109Z", "success_url": "https://junior-linseed.net/", "return_url": null, "embed_origin": "", "amount": 631188, "discount_amount": 968968, "net_amount": 929514, "tax_amount": 323773, "total_amount": 115799, "currency": "Som", "active_trial_interval": null, "active_trial_interval_count": 232991, "trial_end": "2023-10-05T12:55:46.428Z", "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": true, "require_billing_address": false, "is_discount_applicable": true, "is_free_product_price": true, "is_payment_required": true, "is_payment_setup_required": true, "is_payment_form_required": true, "customer_id": "", "is_business_customer": true, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_processor_metadata": {}, "billing_address_fields": {"country": "required", "state": "disabled", "city": "required", "postal_code": "required", "line1": "required", "line2": "disabled"}, "trial_interval": "day", "trial_interval_count": 329779, "metadata": {"key": ""}, "external_customer_id": null, "customer_external_id": "", "products": [], "product": {"id": "", "created_at": "2025-03-29T00:34:40.708Z", "modified_at": "2024-04-06T18:48:21.449Z", "trial_interval": "month", "trial_interval_count": 631188, "name": "", "description": "stall for mousse", "recurring_interval": "year", "recurring_interval_count": null, "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2023-09-13T08:36:46.434Z", "modified_at": "2023-10-05T12:55:46.428Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "legacy": true}, {"created_at": "2024-05-02T18:25:33.974Z", "modified_at": "2025-02-06T12:55:07.640Z", "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "price_amount": 115799, "legacy": true}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/private/tmp", "mime_type": "", "size": 225502, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-07-06T07:35:44.280Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-10-08T20:45:26.653Z", "size_readable": "", "public_url": "https://graceful-battle.info"}, {"id": "", "organization_id": "", "name": "", "path": "/private/tmp", "mime_type": "", "size": 225502, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-07-06T07:35:44.280Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-10-08T20:45:26.653Z", "size_readable": "", "public_url": "https://graceful-battle.info"}, {"id": "", "organization_id": "", "name": "", "path": "/private/tmp", "mime_type": "", "size": 225502, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-07-06T07:35:44.280Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-10-08T20:45:26.653Z", "size_readable": "", "public_url": "https://graceful-battle.info"}]}, "product_price": {"created_at": "2025-09-16T11:22:24.287Z", "modified_at": "2025-11-04T08:41:40.941Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}, "discount": {"duration": "once", "type": "fixed", "amount": 405691, "currency": "Dobra", "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2025-06-07T12:37:50.969Z", "modified_at": "2023-11-20T09:37:39.033Z", "id": "", "metadata": {"key": true, "key1": "", "key2": ""}, "type": "text", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 168537, "required": false}], "customer_metadata": {"key": true, "key1": false, "key2": 851435}}} responses: "200": application/json: "" @@ -1870,7 +1872,7 @@ examples: _endpointcheckout_updated_post: speakeasy-default-endpointcheckout-updated-post: requestBody: - application/json: {"type": "checkout.updated", "timestamp": "2023-03-19T05:40:46.816Z", "data": {"id": "", "created_at": "2023-03-19T05:40:46.816Z", "modified_at": "2024-09-17T13:52:37.257Z", "payment_processor": "stripe", "status": "succeeded", "client_secret": "", "url": "https://grave-tusk.info", "expires_at": "2025-02-28T06:09:51.100Z", "success_url": "https://silent-thyme.name", "return_url": null, "embed_origin": "", "amount": 558100, "discount_amount": 443582, "net_amount": 328864, "tax_amount": 67168, "total_amount": 710560, "currency": "CFP Franc", "active_trial_interval": null, "active_trial_interval_count": 682397, "trial_end": "2024-01-01T01:21:07.047Z", "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": true, "require_billing_address": false, "is_discount_applicable": false, "is_free_product_price": true, "is_payment_required": true, "is_payment_setup_required": true, "is_payment_form_required": true, "customer_id": "", "is_business_customer": true, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_processor_metadata": {}, "billing_address_fields": {"country": "required", "state": "optional", "city": "disabled", "postal_code": "optional", "line1": "required", "line2": "disabled"}, "trial_interval": "week", "trial_interval_count": 510328, "metadata": {"key": 70808, "key1": false, "key2": 6755.63}, "external_customer_id": null, "customer_external_id": "", "products": [{"id": "", "created_at": "2023-11-03T00:27:36.754Z", "modified_at": "2025-07-16T15:01:26.410Z", "trial_interval": "year", "trial_interval_count": 558100, "name": "", "description": "wherever wisely provided", "recurring_interval": "month", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2025-01-17T21:45:54.449Z", "modified_at": "2024-01-01T01:21:07.047Z", "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "price_amount": 720125, "legacy": true}, {"created_at": "2025-09-27T00:00:25.178Z", "modified_at": "2024-09-03T16:16:06.332Z", "id": "", "amount_type": "free", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "legacy": true}], "benefits": [{"id": "", "created_at": "2025-12-25T20:10:09.580Z", "modified_at": "2025-11-13T22:40:13.181Z", "type": "meter_credit", "description": "rapidly ugh regarding", "selectable": true, "deletable": false, "organization_id": ""}, {"id": "", "created_at": "2025-12-25T20:10:09.580Z", "modified_at": "2025-11-13T22:40:13.181Z", "type": "meter_credit", "description": "rapidly ugh regarding", "selectable": true, "deletable": false, "organization_id": ""}, {"id": "", "created_at": "2025-12-25T20:10:09.580Z", "modified_at": "2025-11-13T22:40:13.181Z", "type": "meter_credit", "description": "rapidly ugh regarding", "selectable": true, "deletable": false, "organization_id": ""}], "medias": []}, {"id": "", "created_at": "2023-11-03T00:27:36.754Z", "modified_at": "2025-07-16T15:01:26.410Z", "trial_interval": "week", "trial_interval_count": null, "name": "", "description": "wherever wisely provided", "recurring_interval": "month", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2023-06-29T23:54:25.932Z", "modified_at": "2025-08-08T18:57:45.007Z", "id": "", "amount_type": "metered_unit", "is_archived": true, "product_id": "", "type": "one_time", "recurring_interval": "month", "price_currency": "", "unit_amount": "", "cap_amount": null, "meter_id": "", "meter": {"id": "", "name": ""}}, {"created_at": "2024-04-12T18:30:19.906Z", "modified_at": null, "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}], "benefits": [{"id": "", "created_at": "2025-12-25T20:10:09.580Z", "modified_at": "2025-11-13T22:40:13.181Z", "type": "meter_credit", "description": "rapidly ugh regarding", "selectable": true, "deletable": false, "organization_id": ""}, {"id": "", "created_at": "2025-12-25T20:10:09.580Z", "modified_at": "2025-11-13T22:40:13.181Z", "type": "meter_credit", "description": "rapidly ugh regarding", "selectable": true, "deletable": false, "organization_id": ""}, {"id": "", "created_at": "2025-12-25T20:10:09.580Z", "modified_at": "2025-11-13T22:40:13.181Z", "type": "meter_credit", "description": "rapidly ugh regarding", "selectable": true, "deletable": false, "organization_id": ""}], "medias": []}, {"id": "", "created_at": "2023-11-03T00:27:36.754Z", "modified_at": "2025-07-16T15:01:26.410Z", "trial_interval": "year", "trial_interval_count": 754328, "name": "", "description": "wherever wisely provided", "recurring_interval": "month", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2025-04-08T09:51:58.249Z", "modified_at": "2025-07-16T15:01:26.410Z", "id": "", "amount_type": "free", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}, {"created_at": "2023-11-28T19:26:30.837Z", "modified_at": "2025-10-14T04:57:44.285Z", "id": "", "amount_type": "fixed", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 801449, "legacy": true}], "benefits": [{"id": "", "created_at": "2025-12-25T20:10:09.580Z", "modified_at": "2025-11-13T22:40:13.181Z", "type": "meter_credit", "description": "rapidly ugh regarding", "selectable": true, "deletable": false, "organization_id": ""}, {"id": "", "created_at": "2025-12-25T20:10:09.580Z", "modified_at": "2025-11-13T22:40:13.181Z", "type": "meter_credit", "description": "rapidly ugh regarding", "selectable": true, "deletable": false, "organization_id": ""}, {"id": "", "created_at": "2025-12-25T20:10:09.580Z", "modified_at": "2025-11-13T22:40:13.181Z", "type": "meter_credit", "description": "rapidly ugh regarding", "selectable": true, "deletable": false, "organization_id": ""}], "medias": []}], "product": {"id": "", "created_at": "2024-07-29T03:49:32.399Z", "modified_at": "2025-12-15T21:21:03.211Z", "trial_interval": "week", "trial_interval_count": 140837, "name": "", "description": "strict militate soupy partially simple gleefully upon", "recurring_interval": "month", "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2025-11-27T17:16:31.119Z", "modified_at": "2025-06-04T15:43:18.802Z", "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "price_amount": 72487, "legacy": true}], "benefits": [{"id": "", "created_at": "2025-12-25T20:10:09.580Z", "modified_at": "2025-11-13T22:40:13.181Z", "type": "meter_credit", "description": "rapidly ugh regarding", "selectable": true, "deletable": false, "organization_id": ""}, {"id": "", "created_at": "2025-12-25T20:10:09.580Z", "modified_at": "2025-11-13T22:40:13.181Z", "type": "meter_credit", "description": "rapidly ugh regarding", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/home", "mime_type": "", "size": 984517, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-01-14T03:40:20.035Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-12-10T00:12:54.180Z", "size_readable": "", "public_url": "https://edible-chops.biz"}, {"id": "", "organization_id": "", "name": "", "path": "/home", "mime_type": "", "size": 984517, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-01-14T03:40:20.035Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-12-10T00:12:54.180Z", "size_readable": "", "public_url": "https://edible-chops.biz"}, {"id": "", "organization_id": "", "name": "", "path": "/home", "mime_type": "", "size": 984517, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-01-14T03:40:20.035Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-12-10T00:12:54.180Z", "size_readable": "", "public_url": "https://edible-chops.biz"}]}, "product_price": {"created_at": "2025-02-04T17:26:32.669Z", "modified_at": "2024-12-18T05:03:51.229Z", "id": "", "amount_type": "custom", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "minimum_amount": 729807, "maximum_amount": 244538, "preset_amount": 692266, "legacy": true}, "discount": {"duration": "forever", "duration_in_months": 878100, "type": "percentage", "basis_points": 908913, "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2025-07-30T15:59:44.918Z", "modified_at": "2024-09-18T19:29:21.169Z", "id": "", "metadata": {"key": 9574.64, "key1": 54261}, "type": "select", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {"options": [{"value": "", "label": ""}, {"value": "", "label": ""}]}}, "order": 509308, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2025-07-30T15:59:44.918Z", "modified_at": "2024-09-18T19:29:21.169Z", "id": "", "metadata": {"key": 9574.64, "key1": 54261}, "type": "select", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {"options": [{"value": "", "label": ""}, {"value": "", "label": ""}]}}, "order": 509308, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2025-07-30T15:59:44.918Z", "modified_at": "2024-09-18T19:29:21.169Z", "id": "", "metadata": {"key": 9574.64, "key1": 54261}, "type": "select", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {"options": [{"value": "", "label": ""}, {"value": "", "label": ""}]}}, "order": 509308, "required": true}], "customer_metadata": {}}} + application/json: {"type": "checkout.updated", "timestamp": "2023-03-19T05:40:46.816Z", "data": {"id": "", "created_at": "2023-03-19T05:40:46.816Z", "modified_at": "2024-09-17T13:52:37.257Z", "payment_processor": "stripe", "status": "succeeded", "client_secret": "", "url": "https://grave-tusk.info", "expires_at": "2025-02-28T06:09:51.100Z", "success_url": "https://silent-thyme.name", "return_url": null, "embed_origin": "", "amount": 558100, "discount_amount": 443582, "net_amount": 328864, "tax_amount": 67168, "total_amount": 710560, "currency": "CFP Franc", "active_trial_interval": null, "active_trial_interval_count": 682397, "trial_end": "2024-01-01T01:21:07.047Z", "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": true, "require_billing_address": false, "is_discount_applicable": false, "is_free_product_price": true, "is_payment_required": true, "is_payment_setup_required": true, "is_payment_form_required": true, "customer_id": "", "is_business_customer": true, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_processor_metadata": {}, "billing_address_fields": {"country": "required", "state": "optional", "city": "disabled", "postal_code": "optional", "line1": "required", "line2": "disabled"}, "trial_interval": "week", "trial_interval_count": 510328, "metadata": {"key": 70808, "key1": false, "key2": 6755.63}, "external_customer_id": null, "customer_external_id": "", "products": [{"id": "", "created_at": "2023-11-03T00:27:36.754Z", "modified_at": "2025-07-16T15:01:26.410Z", "trial_interval": "year", "trial_interval_count": 558100, "name": "", "description": "wherever wisely provided", "recurring_interval": "month", "recurring_interval_count": null, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2025-01-17T21:45:54.449Z", "modified_at": "2024-01-01T01:21:07.047Z", "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "price_amount": 720125, "legacy": true}, {"created_at": "2025-09-27T00:00:25.178Z", "modified_at": "2024-09-03T16:16:06.332Z", "id": "", "amount_type": "free", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "legacy": true}], "benefits": [{"id": "", "created_at": "2025-12-25T20:10:09.580Z", "modified_at": "2025-11-13T22:40:13.181Z", "type": "meter_credit", "description": "rapidly ugh regarding", "selectable": true, "deletable": false, "organization_id": ""}, {"id": "", "created_at": "2025-12-25T20:10:09.580Z", "modified_at": "2025-11-13T22:40:13.181Z", "type": "meter_credit", "description": "rapidly ugh regarding", "selectable": true, "deletable": false, "organization_id": ""}, {"id": "", "created_at": "2025-12-25T20:10:09.580Z", "modified_at": "2025-11-13T22:40:13.181Z", "type": "meter_credit", "description": "rapidly ugh regarding", "selectable": true, "deletable": false, "organization_id": ""}], "medias": []}, {"id": "", "created_at": "2023-11-03T00:27:36.754Z", "modified_at": "2025-07-16T15:01:26.410Z", "trial_interval": "week", "trial_interval_count": null, "name": "", "description": "wherever wisely provided", "recurring_interval": "month", "recurring_interval_count": 682397, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2023-06-29T23:54:25.932Z", "modified_at": "2025-08-08T18:57:45.007Z", "id": "", "amount_type": "metered_unit", "is_archived": true, "product_id": "", "type": "one_time", "recurring_interval": "month", "price_currency": "", "unit_amount": "", "cap_amount": null, "meter_id": "", "meter": {"id": "", "name": ""}}, {"created_at": "2024-04-12T18:30:19.906Z", "modified_at": null, "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}], "benefits": [{"id": "", "created_at": "2025-12-25T20:10:09.580Z", "modified_at": "2025-11-13T22:40:13.181Z", "type": "meter_credit", "description": "rapidly ugh regarding", "selectable": true, "deletable": false, "organization_id": ""}, {"id": "", "created_at": "2025-12-25T20:10:09.580Z", "modified_at": "2025-11-13T22:40:13.181Z", "type": "meter_credit", "description": "rapidly ugh regarding", "selectable": true, "deletable": false, "organization_id": ""}, {"id": "", "created_at": "2025-12-25T20:10:09.580Z", "modified_at": "2025-11-13T22:40:13.181Z", "type": "meter_credit", "description": "rapidly ugh regarding", "selectable": true, "deletable": false, "organization_id": ""}], "medias": []}, {"id": "", "created_at": "2023-11-03T00:27:36.754Z", "modified_at": "2025-07-16T15:01:26.410Z", "trial_interval": "year", "trial_interval_count": 754328, "name": "", "description": "wherever wisely provided", "recurring_interval": "month", "recurring_interval_count": 333080, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2025-04-08T09:51:58.249Z", "modified_at": "2025-07-16T15:01:26.410Z", "id": "", "amount_type": "free", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}, {"created_at": "2023-11-28T19:26:30.837Z", "modified_at": "2025-10-14T04:57:44.285Z", "id": "", "amount_type": "fixed", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 801449, "legacy": true}], "benefits": [{"id": "", "created_at": "2025-12-25T20:10:09.580Z", "modified_at": "2025-11-13T22:40:13.181Z", "type": "meter_credit", "description": "rapidly ugh regarding", "selectable": true, "deletable": false, "organization_id": ""}, {"id": "", "created_at": "2025-12-25T20:10:09.580Z", "modified_at": "2025-11-13T22:40:13.181Z", "type": "meter_credit", "description": "rapidly ugh regarding", "selectable": true, "deletable": false, "organization_id": ""}, {"id": "", "created_at": "2025-12-25T20:10:09.580Z", "modified_at": "2025-11-13T22:40:13.181Z", "type": "meter_credit", "description": "rapidly ugh regarding", "selectable": true, "deletable": false, "organization_id": ""}], "medias": []}], "product": {"id": "", "created_at": "2024-07-29T03:49:32.399Z", "modified_at": "2025-12-15T21:21:03.211Z", "trial_interval": "week", "trial_interval_count": 140837, "name": "", "description": "strict militate soupy partially simple gleefully upon", "recurring_interval": "month", "recurring_interval_count": 496454, "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2025-11-27T17:16:31.119Z", "modified_at": "2025-06-04T15:43:18.802Z", "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "price_amount": 72487, "legacy": true}], "benefits": [{"id": "", "created_at": "2025-12-25T20:10:09.580Z", "modified_at": "2025-11-13T22:40:13.181Z", "type": "meter_credit", "description": "rapidly ugh regarding", "selectable": true, "deletable": false, "organization_id": ""}, {"id": "", "created_at": "2025-12-25T20:10:09.580Z", "modified_at": "2025-11-13T22:40:13.181Z", "type": "meter_credit", "description": "rapidly ugh regarding", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/home", "mime_type": "", "size": 984517, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-01-14T03:40:20.035Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-12-10T00:12:54.180Z", "size_readable": "", "public_url": "https://edible-chops.biz"}, {"id": "", "organization_id": "", "name": "", "path": "/home", "mime_type": "", "size": 984517, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-01-14T03:40:20.035Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-12-10T00:12:54.180Z", "size_readable": "", "public_url": "https://edible-chops.biz"}, {"id": "", "organization_id": "", "name": "", "path": "/home", "mime_type": "", "size": 984517, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-01-14T03:40:20.035Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-12-10T00:12:54.180Z", "size_readable": "", "public_url": "https://edible-chops.biz"}]}, "product_price": {"created_at": "2025-02-04T17:26:32.669Z", "modified_at": "2024-12-18T05:03:51.229Z", "id": "", "amount_type": "custom", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "minimum_amount": 729807, "maximum_amount": 244538, "preset_amount": 692266, "legacy": true}, "discount": {"duration": "forever", "duration_in_months": 878100, "type": "percentage", "basis_points": 908913, "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2025-07-30T15:59:44.918Z", "modified_at": "2024-09-18T19:29:21.169Z", "id": "", "metadata": {"key": 9574.64, "key1": 54261}, "type": "select", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {"options": [{"value": "", "label": ""}, {"value": "", "label": ""}]}}, "order": 509308, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2025-07-30T15:59:44.918Z", "modified_at": "2024-09-18T19:29:21.169Z", "id": "", "metadata": {"key": 9574.64, "key1": 54261}, "type": "select", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {"options": [{"value": "", "label": ""}, {"value": "", "label": ""}]}}, "order": 509308, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2025-07-30T15:59:44.918Z", "modified_at": "2024-09-18T19:29:21.169Z", "id": "", "metadata": {"key": 9574.64, "key1": 54261}, "type": "select", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {"options": [{"value": "", "label": ""}, {"value": "", "label": ""}]}}, "order": 509308, "required": true}], "customer_metadata": {}}} responses: "200": application/json: "" @@ -1915,7 +1917,7 @@ examples: _endpointorder_created_post: speakeasy-default-endpointorder-created-post: requestBody: - application/json: {"type": "order.created", "timestamp": "2024-08-21T06:55:49.348Z", "data": {"id": "", "created_at": "2024-08-21T06:55:49.348Z", "modified_at": "2023-01-02T23:31:01.991Z", "status": "refunded", "paid": true, "subtotal_amount": 10000, "discount_amount": 1000, "net_amount": 9000, "tax_amount": 720, "total_amount": 9720, "applied_balance_amount": 0, "due_amount": 0, "refunded_amount": 0, "refunded_tax_amount": 0, "currency": "usd", "billing_reason": "subscription_cycle", "billing_name": "", "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": true, "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "metadata": {}, "platform_fee_amount": 500, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2025-08-09T17:02:40.706Z", "modified_at": "2025-03-27T22:54:28.054Z", "metadata": {"key": true, "key1": 2184.01, "key2": ""}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2024-06-30T16:49:49.935Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "user_id": "", "product": {"metadata": {"key": 268152, "key1": 4807.86, "key2": 271259}, "id": "", "created_at": "2023-07-25T14:06:55.496Z", "modified_at": "2025-02-09T20:19:15.400Z", "trial_interval": "day", "trial_interval_count": 952546, "name": "", "description": "hence hoof amid nimble", "recurring_interval": "month", "is_recurring": false, "is_archived": false, "organization_id": ""}, "discount": {"duration": "forever", "type": "percentage", "basis_points": 734817, "created_at": "2023-01-30T13:01:14.788Z", "modified_at": "2025-04-19T01:44:34.202Z", "id": "", "metadata": {"key": 165492, "key1": 3496.27, "key2": 5903.56}, "name": "", "code": "", "starts_at": "2024-11-16T22:02:37.250Z", "ends_at": "2024-11-14T21:15:37.421Z", "max_redemptions": 564618, "redemptions_count": 59456, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "subscription": {"metadata": {}, "created_at": "2023-02-01T10:16:46.294Z", "modified_at": "2025-11-26T14:34:44.815Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "status": "incomplete_expired", "current_period_start": "2025-12-03T03:30:23.797Z", "current_period_end": "2023-11-24T08:15:27.683Z", "trial_start": null, "trial_end": "2025-07-04T03:57:16.555Z", "cancel_at_period_end": true, "canceled_at": "2023-07-04T06:42:37.163Z", "started_at": "2023-08-21T01:49:53.293Z", "ends_at": "2023-07-06T04:28:24.973Z", "ended_at": "2024-04-25T04:13:04.313Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "switched_service", "customer_cancellation_comment": ""}, "items": [{"created_at": "2023-10-13T16:35:24.054Z", "modified_at": "2025-08-06T13:46:26.730Z", "id": "", "label": "", "amount": 425196, "tax_amount": 196715, "proration": false, "product_price_id": ""}]}} + application/json: {"type": "order.created", "timestamp": "2024-08-21T06:55:49.348Z", "data": {"id": "", "created_at": "2024-08-21T06:55:49.348Z", "modified_at": "2023-01-02T23:31:01.991Z", "status": "refunded", "paid": true, "subtotal_amount": 10000, "discount_amount": 1000, "net_amount": 9000, "tax_amount": 720, "total_amount": 9720, "applied_balance_amount": 0, "due_amount": 0, "refunded_amount": 0, "refunded_tax_amount": 0, "currency": "usd", "billing_reason": "subscription_cycle", "billing_name": "", "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": true, "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "metadata": {}, "platform_fee_amount": 500, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2025-08-09T17:02:40.706Z", "modified_at": "2025-03-27T22:54:28.054Z", "metadata": {"key": true, "key1": 2184.01, "key2": ""}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2024-06-30T16:49:49.935Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "user_id": "", "product": {"metadata": {"key": 268152, "key1": 4807.86, "key2": 271259}, "id": "", "created_at": "2023-07-25T14:06:55.496Z", "modified_at": "2025-02-09T20:19:15.400Z", "trial_interval": "day", "trial_interval_count": 952546, "name": "", "description": "hence hoof amid nimble", "recurring_interval": "month", "recurring_interval_count": 1806, "is_recurring": false, "is_archived": false, "organization_id": ""}, "discount": {"duration": "forever", "type": "percentage", "basis_points": 734817, "created_at": "2023-01-30T13:01:14.788Z", "modified_at": "2025-04-19T01:44:34.202Z", "id": "", "metadata": {"key": 165492, "key1": 3496.27, "key2": 5903.56}, "name": "", "code": "", "starts_at": "2024-11-16T22:02:37.250Z", "ends_at": "2024-11-14T21:15:37.421Z", "max_redemptions": 564618, "redemptions_count": 59456, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "subscription": {"metadata": {}, "created_at": "2023-02-01T10:16:46.294Z", "modified_at": "2025-11-26T14:34:44.815Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "recurring_interval_count": 555380, "status": "incomplete_expired", "current_period_start": "2025-12-03T03:30:23.797Z", "current_period_end": "2023-11-24T08:15:27.683Z", "trial_start": null, "trial_end": "2025-07-04T03:57:16.555Z", "cancel_at_period_end": true, "canceled_at": "2023-07-04T06:42:37.163Z", "started_at": "2023-08-21T01:49:53.293Z", "ends_at": "2023-07-06T04:28:24.973Z", "ended_at": "2024-04-25T04:13:04.313Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "switched_service", "customer_cancellation_comment": ""}, "items": [{"created_at": "2023-10-13T16:35:24.054Z", "modified_at": "2025-08-06T13:46:26.730Z", "id": "", "label": "", "amount": 425196, "tax_amount": 196715, "proration": false, "product_price_id": ""}], "description": "Pro Plan"}} responses: "200": application/json: "" @@ -1924,7 +1926,7 @@ examples: _endpointorder_updated_post: speakeasy-default-endpointorder-updated-post: requestBody: - application/json: {"type": "order.updated", "timestamp": "2023-10-25T00:08:50.290Z", "data": {"id": "", "created_at": "2023-10-25T00:08:50.290Z", "modified_at": "2024-04-30T23:35:35.375Z", "status": "paid", "paid": true, "subtotal_amount": 10000, "discount_amount": 1000, "net_amount": 9000, "tax_amount": 720, "total_amount": 9720, "applied_balance_amount": 0, "due_amount": 0, "refunded_amount": 0, "refunded_tax_amount": 0, "currency": "usd", "billing_reason": "subscription_cycle", "billing_name": "", "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": true, "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "metadata": {"key": true}, "platform_fee_amount": 500, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-03-08T23:35:59.086Z", "modified_at": "2025-02-15T17:44:03.209Z", "metadata": {"key": 4784.54, "key1": "", "key2": 2744.69}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2023-01-17T18:03:47.629Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "user_id": "", "product": {"metadata": {}, "id": "", "created_at": "2024-09-18T06:12:57.188Z", "modified_at": "2023-06-26T15:51:37.068Z", "trial_interval": "week", "trial_interval_count": 804823, "name": "", "description": "unwelcome limply optimistically rudely", "recurring_interval": "year", "is_recurring": true, "is_archived": false, "organization_id": ""}, "discount": {"duration": "forever", "type": "percentage", "amount": 400666, "currency": "Lesotho Loti", "created_at": "2024-06-18T02:52:24.759Z", "modified_at": "2024-02-28T06:12:39.096Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2023-10-01T05:16:42.046Z", "ends_at": "2023-01-01T17:07:32.356Z", "max_redemptions": 945673, "redemptions_count": 550178, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "subscription": {"metadata": {"key": true, "key1": 970746}, "created_at": "2023-12-11T14:38:48.351Z", "modified_at": "2023-04-07T09:45:48.153Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "status": "incomplete", "current_period_start": "2023-09-07T20:14:26.104Z", "current_period_end": "2024-05-12T23:36:17.099Z", "trial_start": "2024-01-06T18:11:55.943Z", "trial_end": "2025-06-26T08:06:49.783Z", "cancel_at_period_end": false, "canceled_at": "2023-03-20T19:10:25.976Z", "started_at": "2025-08-02T14:17:04.679Z", "ends_at": "2023-05-05T04:27:56.002Z", "ended_at": "2023-04-10T21:27:35.876Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "too_complex", "customer_cancellation_comment": ""}, "items": []}} + application/json: {"type": "order.updated", "timestamp": "2023-10-25T00:08:50.290Z", "data": {"id": "", "created_at": "2023-10-25T00:08:50.290Z", "modified_at": "2024-04-30T23:35:35.375Z", "status": "paid", "paid": true, "subtotal_amount": 10000, "discount_amount": 1000, "net_amount": 9000, "tax_amount": 720, "total_amount": 9720, "applied_balance_amount": 0, "due_amount": 0, "refunded_amount": 0, "refunded_tax_amount": 0, "currency": "usd", "billing_reason": "subscription_cycle", "billing_name": "", "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": true, "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "metadata": {"key": true}, "platform_fee_amount": 500, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-03-08T23:35:59.086Z", "modified_at": "2025-02-15T17:44:03.209Z", "metadata": {"key": 4784.54, "key1": "", "key2": 2744.69}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2023-01-17T18:03:47.629Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "user_id": "", "product": {"metadata": {}, "id": "", "created_at": "2024-09-18T06:12:57.188Z", "modified_at": "2023-06-26T15:51:37.068Z", "trial_interval": "week", "trial_interval_count": 804823, "name": "", "description": "unwelcome limply optimistically rudely", "recurring_interval": "year", "recurring_interval_count": 443415, "is_recurring": true, "is_archived": false, "organization_id": ""}, "discount": {"duration": "forever", "type": "percentage", "amount": 400666, "currency": "Lesotho Loti", "created_at": "2024-06-18T02:52:24.759Z", "modified_at": "2024-02-28T06:12:39.096Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2023-10-01T05:16:42.046Z", "ends_at": "2023-01-01T17:07:32.356Z", "max_redemptions": 945673, "redemptions_count": 550178, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "subscription": {"metadata": {"key": true, "key1": 970746}, "created_at": "2023-12-11T14:38:48.351Z", "modified_at": "2023-04-07T09:45:48.153Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "recurring_interval_count": 340177, "status": "incomplete", "current_period_start": "2023-09-07T20:14:26.104Z", "current_period_end": "2024-05-12T23:36:17.099Z", "trial_start": "2024-01-06T18:11:55.943Z", "trial_end": "2025-06-26T08:06:49.783Z", "cancel_at_period_end": false, "canceled_at": "2023-03-20T19:10:25.976Z", "started_at": "2025-08-02T14:17:04.679Z", "ends_at": "2023-05-05T04:27:56.002Z", "ended_at": "2023-04-10T21:27:35.876Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "too_complex", "customer_cancellation_comment": ""}, "items": [], "description": "Pro Plan"}} responses: "200": application/json: "" @@ -1933,7 +1935,7 @@ examples: _endpointorder_paid_post: speakeasy-default-endpointorder-paid-post: requestBody: - application/json: {"type": "order.paid", "timestamp": "2025-12-05T07:44:21.172Z", "data": {"id": "", "created_at": "2025-12-05T07:44:21.172Z", "modified_at": "2025-07-27T09:45:49.517Z", "status": "refunded", "paid": true, "subtotal_amount": 10000, "discount_amount": 1000, "net_amount": 9000, "tax_amount": 720, "total_amount": 9720, "applied_balance_amount": 0, "due_amount": 0, "refunded_amount": 0, "refunded_tax_amount": 0, "currency": "usd", "billing_reason": "subscription_cycle", "billing_name": "", "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": false, "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "metadata": {"key": "", "key1": false, "key2": ""}, "platform_fee_amount": 500, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2023-08-30T09:47:22.437Z", "modified_at": "2025-10-27T20:31:30.562Z", "metadata": {"key": true, "key1": "", "key2": false}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2023-12-20T02:23:05.399Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "user_id": "", "product": {"metadata": {}, "id": "", "created_at": "2023-05-18T09:50:39.456Z", "modified_at": "2024-06-08T00:11:47.056Z", "trial_interval": "year", "trial_interval_count": 650431, "name": "", "description": "easily carouse plus quietly reservation bright injunction plastic gah", "recurring_interval": "year", "is_recurring": false, "is_archived": true, "organization_id": ""}, "discount": {"duration": "forever", "duration_in_months": 400985, "type": "percentage", "amount": 268755, "currency": "Metical", "created_at": "2024-02-16T18:36:48.341Z", "modified_at": "2024-09-15T08:32:57.027Z", "id": "", "metadata": {"key": 4661.41}, "name": "", "code": "", "starts_at": "2023-11-24T17:59:56.836Z", "ends_at": "2023-11-15T15:18:02.031Z", "max_redemptions": 871130, "redemptions_count": 568256, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "subscription": {"metadata": {"key": 5641.72, "key1": ""}, "created_at": "2025-07-17T03:39:23.964Z", "modified_at": "2023-09-16T09:43:57.152Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "year", "status": "past_due", "current_period_start": "2025-06-10T20:57:22.896Z", "current_period_end": "2023-02-24T15:15:22.018Z", "trial_start": "2025-12-21T22:38:27.436Z", "trial_end": "2024-01-10T03:46:58.354Z", "cancel_at_period_end": true, "canceled_at": "2023-12-07T15:09:08.144Z", "started_at": "2025-06-21T05:10:18.037Z", "ends_at": "2023-11-20T10:20:23.628Z", "ended_at": "2023-07-01T03:36:16.430Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "unused", "customer_cancellation_comment": ""}, "items": [{"created_at": "2023-12-05T06:32:48.307Z", "modified_at": "2023-01-21T03:35:38.158Z", "id": "", "label": "", "amount": 870773, "tax_amount": 305914, "proration": true, "product_price_id": ""}, {"created_at": "2023-12-05T06:32:48.307Z", "modified_at": "2023-01-21T03:35:38.158Z", "id": "", "label": "", "amount": 870773, "tax_amount": 305914, "proration": true, "product_price_id": ""}]}} + application/json: {"type": "order.paid", "timestamp": "2025-12-05T07:44:21.172Z", "data": {"id": "", "created_at": "2025-12-05T07:44:21.172Z", "modified_at": "2025-07-27T09:45:49.517Z", "status": "refunded", "paid": true, "subtotal_amount": 10000, "discount_amount": 1000, "net_amount": 9000, "tax_amount": 720, "total_amount": 9720, "applied_balance_amount": 0, "due_amount": 0, "refunded_amount": 0, "refunded_tax_amount": 0, "currency": "usd", "billing_reason": "subscription_cycle", "billing_name": "", "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": false, "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "metadata": {"key": "", "key1": false, "key2": ""}, "platform_fee_amount": 500, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2023-08-30T09:47:22.437Z", "modified_at": "2025-10-27T20:31:30.562Z", "metadata": {"key": true, "key1": "", "key2": false}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2023-12-20T02:23:05.399Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "user_id": "", "product": {"metadata": {}, "id": "", "created_at": "2023-05-18T09:50:39.456Z", "modified_at": "2024-06-08T00:11:47.056Z", "trial_interval": "year", "trial_interval_count": 650431, "name": "", "description": "easily carouse plus quietly reservation bright injunction plastic gah", "recurring_interval": "year", "recurring_interval_count": 856211, "is_recurring": false, "is_archived": true, "organization_id": ""}, "discount": {"duration": "forever", "duration_in_months": 400985, "type": "percentage", "amount": 268755, "currency": "Metical", "created_at": "2024-02-16T18:36:48.341Z", "modified_at": "2024-09-15T08:32:57.027Z", "id": "", "metadata": {"key": 4661.41}, "name": "", "code": "", "starts_at": "2023-11-24T17:59:56.836Z", "ends_at": "2023-11-15T15:18:02.031Z", "max_redemptions": 871130, "redemptions_count": 568256, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "subscription": {"metadata": {"key": 5641.72, "key1": ""}, "created_at": "2025-07-17T03:39:23.964Z", "modified_at": "2023-09-16T09:43:57.152Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "year", "recurring_interval_count": 648656, "status": "past_due", "current_period_start": "2025-06-10T20:57:22.896Z", "current_period_end": "2023-02-24T15:15:22.018Z", "trial_start": "2025-12-21T22:38:27.436Z", "trial_end": "2024-01-10T03:46:58.354Z", "cancel_at_period_end": true, "canceled_at": "2023-12-07T15:09:08.144Z", "started_at": "2025-06-21T05:10:18.037Z", "ends_at": "2023-11-20T10:20:23.628Z", "ended_at": "2023-07-01T03:36:16.430Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "unused", "customer_cancellation_comment": ""}, "items": [{"created_at": "2023-12-05T06:32:48.307Z", "modified_at": "2023-01-21T03:35:38.158Z", "id": "", "label": "", "amount": 870773, "tax_amount": 305914, "proration": true, "product_price_id": ""}, {"created_at": "2023-12-05T06:32:48.307Z", "modified_at": "2023-01-21T03:35:38.158Z", "id": "", "label": "", "amount": 870773, "tax_amount": 305914, "proration": true, "product_price_id": ""}], "description": "Pro Plan"}} responses: "200": application/json: "" @@ -1942,7 +1944,7 @@ examples: _endpointorder_refunded_post: speakeasy-default-endpointorder-refunded-post: requestBody: - application/json: {"type": "order.refunded", "timestamp": "2024-07-23T18:00:11.615Z", "data": {"id": "", "created_at": "2024-07-23T18:00:11.615Z", "modified_at": "2025-03-19T11:53:59.744Z", "status": "refunded", "paid": true, "subtotal_amount": 10000, "discount_amount": 1000, "net_amount": 9000, "tax_amount": 720, "total_amount": 9720, "applied_balance_amount": 0, "due_amount": 0, "refunded_amount": 0, "refunded_tax_amount": 0, "currency": "usd", "billing_reason": "subscription_create", "billing_name": "", "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": false, "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "metadata": {"key": 5486.55}, "platform_fee_amount": 500, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2025-04-02T07:55:28.069Z", "modified_at": "2024-02-03T04:00:16.399Z", "metadata": {"key": 537174, "key1": 494.76}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2024-06-26T08:20:21.481Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "user_id": "", "product": {"metadata": {}, "id": "", "created_at": "2023-12-07T01:03:54.754Z", "modified_at": "2025-11-16T15:53:42.571Z", "trial_interval": "month", "trial_interval_count": 638840, "name": "", "description": "until righteously grave", "recurring_interval": "year", "is_recurring": false, "is_archived": false, "organization_id": ""}, "discount": {"duration": "once", "type": "percentage", "basis_points": 131950, "created_at": "2023-12-23T12:07:28.553Z", "modified_at": "2023-02-07T04:47:48.033Z", "id": "", "metadata": {"key": false}, "name": "", "code": "", "starts_at": "2025-12-17T15:59:13.647Z", "ends_at": "2025-01-27T15:44:47.653Z", "max_redemptions": 956321, "redemptions_count": 185464, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "subscription": {"metadata": {}, "created_at": "2025-04-24T02:49:46.525Z", "modified_at": "2024-08-12T02:18:50.288Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "status": "past_due", "current_period_start": "2025-08-22T13:19:25.286Z", "current_period_end": "2024-03-10T13:09:21.650Z", "trial_start": "2023-11-19T10:04:04.704Z", "trial_end": "2025-09-27T15:34:09.130Z", "cancel_at_period_end": false, "canceled_at": "2024-02-07T00:48:11.521Z", "started_at": "2025-03-07T08:42:11.322Z", "ends_at": "2023-11-21T12:57:47.903Z", "ended_at": "2024-02-02T10:49:58.055Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "low_quality", "customer_cancellation_comment": ""}, "items": [{"created_at": "2023-10-30T23:29:28.584Z", "modified_at": "2023-07-17T15:21:26.230Z", "id": "", "label": "", "amount": 794498, "tax_amount": 469710, "proration": true, "product_price_id": ""}]}} + application/json: {"type": "order.refunded", "timestamp": "2024-07-23T18:00:11.615Z", "data": {"id": "", "created_at": "2024-07-23T18:00:11.615Z", "modified_at": "2025-03-19T11:53:59.744Z", "status": "refunded", "paid": true, "subtotal_amount": 10000, "discount_amount": 1000, "net_amount": 9000, "tax_amount": 720, "total_amount": 9720, "applied_balance_amount": 0, "due_amount": 0, "refunded_amount": 0, "refunded_tax_amount": 0, "currency": "usd", "billing_reason": "subscription_create", "billing_name": "", "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": false, "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "metadata": {"key": 5486.55}, "platform_fee_amount": 500, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2025-04-02T07:55:28.069Z", "modified_at": "2024-02-03T04:00:16.399Z", "metadata": {"key": 537174, "key1": 494.76}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2024-06-26T08:20:21.481Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "user_id": "", "product": {"metadata": {}, "id": "", "created_at": "2023-12-07T01:03:54.754Z", "modified_at": "2025-11-16T15:53:42.571Z", "trial_interval": "month", "trial_interval_count": 638840, "name": "", "description": "until righteously grave", "recurring_interval": "year", "recurring_interval_count": 737679, "is_recurring": false, "is_archived": false, "organization_id": ""}, "discount": {"duration": "once", "type": "percentage", "basis_points": 131950, "created_at": "2023-12-23T12:07:28.553Z", "modified_at": "2023-02-07T04:47:48.033Z", "id": "", "metadata": {"key": false}, "name": "", "code": "", "starts_at": "2025-12-17T15:59:13.647Z", "ends_at": "2025-01-27T15:44:47.653Z", "max_redemptions": 956321, "redemptions_count": 185464, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "subscription": {"metadata": {}, "created_at": "2025-04-24T02:49:46.525Z", "modified_at": "2024-08-12T02:18:50.288Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "recurring_interval_count": 547568, "status": "past_due", "current_period_start": "2025-08-22T13:19:25.286Z", "current_period_end": "2024-03-10T13:09:21.650Z", "trial_start": "2023-11-19T10:04:04.704Z", "trial_end": "2025-09-27T15:34:09.130Z", "cancel_at_period_end": false, "canceled_at": "2024-02-07T00:48:11.521Z", "started_at": "2025-03-07T08:42:11.322Z", "ends_at": "2023-11-21T12:57:47.903Z", "ended_at": "2024-02-02T10:49:58.055Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "low_quality", "customer_cancellation_comment": ""}, "items": [{"created_at": "2023-10-30T23:29:28.584Z", "modified_at": "2023-07-17T15:21:26.230Z", "id": "", "label": "", "amount": 794498, "tax_amount": 469710, "proration": true, "product_price_id": ""}], "description": "Pro Plan"}} responses: "200": application/json: "" @@ -1951,7 +1953,7 @@ examples: _endpointsubscription_created_post: speakeasy-default-endpointsubscription-created-post: requestBody: - application/json: {"type": "subscription.created", "timestamp": "2024-05-03T11:46:21.459Z", "data": {"created_at": "2024-05-03T11:46:21.459Z", "modified_at": "2023-12-03T10:52:23.880Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "status": "unpaid", "current_period_start": "2023-05-17T21:41:04.799Z", "current_period_end": "2024-01-07T06:33:36.381Z", "trial_start": "2023-12-03T10:52:23.880Z", "trial_end": "2024-05-29T05:21:44.072Z", "cancel_at_period_end": true, "canceled_at": "2024-07-30T16:54:44.427Z", "started_at": "2023-10-20T18:48:25.568Z", "ends_at": "2025-01-24T01:20:23.589Z", "ended_at": "2023-09-10T18:39:16.136Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "low_quality", "customer_cancellation_comment": "", "metadata": {"key": 4962.75, "key1": "", "key2": 673.37}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2023-06-29T01:44:05.919Z", "modified_at": "2024-04-01T08:29:51.925Z", "metadata": {"key": 3500.62}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2023-05-18T22:55:50.482Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2024-09-10T08:59:46.091Z", "modified_at": "2024-08-04T23:52:10.438Z", "trial_interval": "year", "trial_interval_count": 338753, "name": "", "description": "cluttered knavishly penalise jeopardise easily now generally", "recurring_interval": "month", "is_recurring": false, "is_archived": false, "organization_id": "", "metadata": {"key": 827138, "key1": 7184.85, "key2": 164793}, "prices": [], "benefits": [{"id": "", "created_at": "2024-08-21T20:10:38.723Z", "modified_at": "2023-07-11T09:43:44.061Z", "type": "license_keys", "description": "clearly drug wonderfully coincide pop phony why", "selectable": true, "deletable": true, "organization_id": "", "metadata": {"key": 652379}, "properties": {"prefix": "", "expires": {"ttl": 987410, "timeframe": "day"}, "activations": {"limit": 521439, "enable_customer_admin": false}, "limit_usage": 166124}}], "medias": [], "attached_custom_fields": []}, "discount": {"duration": "repeating", "duration_in_months": 585274, "type": "percentage", "basis_points": 20618, "created_at": "2025-09-23T22:50:26.075Z", "modified_at": "2023-04-06T04:38:07.420Z", "id": "", "metadata": {"key": true, "key1": ""}, "name": "", "code": "", "starts_at": "2023-06-26T04:13:56.448Z", "ends_at": "2024-05-15T09:08:15.414Z", "max_redemptions": 329079, "redemptions_count": 112539, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2025-01-12T06:30:14.360Z", "modified_at": "2023-05-11T16:29:33.481Z", "id": "", "amount_type": "custom", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "minimum_amount": 363951, "maximum_amount": 267138, "preset_amount": 230636, "legacy": true}], "meters": [{"created_at": "2024-07-10T07:47:06.998Z", "modified_at": "2024-12-27T22:27:01.664Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": false}, "created_at": "2024-12-03T20:34:07.084Z", "modified_at": "2023-02-24T10:59:35.793Z", "id": "", "name": "", "filter": {"conjunction": "and", "clauses": [{"property": "", "operator": "ne", "value": ""}]}, "aggregation": {"func": "count"}, "organization_id": ""}}]}} + application/json: {"type": "subscription.created", "timestamp": "2024-05-03T11:46:21.459Z", "data": {"created_at": "2024-05-03T11:46:21.459Z", "modified_at": "2023-12-03T10:52:23.880Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "recurring_interval_count": 445703, "status": "unpaid", "current_period_start": "2023-05-17T21:41:04.799Z", "current_period_end": "2024-01-07T06:33:36.381Z", "trial_start": "2023-12-03T10:52:23.880Z", "trial_end": "2024-05-29T05:21:44.072Z", "cancel_at_period_end": true, "canceled_at": "2024-07-30T16:54:44.427Z", "started_at": "2023-10-20T18:48:25.568Z", "ends_at": "2025-01-24T01:20:23.589Z", "ended_at": "2023-09-10T18:39:16.136Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "low_quality", "customer_cancellation_comment": "", "metadata": {"key": 4962.75, "key1": "", "key2": 673.37}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2023-06-29T01:44:05.919Z", "modified_at": "2024-04-01T08:29:51.925Z", "metadata": {"key": 3500.62}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2023-05-18T22:55:50.482Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2024-09-10T08:59:46.091Z", "modified_at": "2024-08-04T23:52:10.438Z", "trial_interval": "year", "trial_interval_count": 338753, "name": "", "description": "cluttered knavishly penalise jeopardise easily now generally", "recurring_interval": "month", "recurring_interval_count": 677255, "is_recurring": false, "is_archived": false, "organization_id": "", "metadata": {"key": 827138, "key1": 7184.85, "key2": 164793}, "prices": [], "benefits": [{"id": "", "created_at": "2024-08-21T20:10:38.723Z", "modified_at": "2023-07-11T09:43:44.061Z", "type": "license_keys", "description": "clearly drug wonderfully coincide pop phony why", "selectable": true, "deletable": true, "organization_id": "", "metadata": {"key": 652379}, "properties": {"prefix": "", "expires": {"ttl": 987410, "timeframe": "day"}, "activations": {"limit": 521439, "enable_customer_admin": false}, "limit_usage": 166124}}], "medias": [], "attached_custom_fields": []}, "discount": {"duration": "repeating", "duration_in_months": 585274, "type": "percentage", "basis_points": 20618, "created_at": "2025-09-23T22:50:26.075Z", "modified_at": "2023-04-06T04:38:07.420Z", "id": "", "metadata": {"key": true, "key1": ""}, "name": "", "code": "", "starts_at": "2023-06-26T04:13:56.448Z", "ends_at": "2024-05-15T09:08:15.414Z", "max_redemptions": 329079, "redemptions_count": 112539, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2025-01-12T06:30:14.360Z", "modified_at": "2023-05-11T16:29:33.481Z", "id": "", "amount_type": "custom", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "minimum_amount": 363951, "maximum_amount": 267138, "preset_amount": 230636, "legacy": true}], "meters": [{"created_at": "2024-07-10T07:47:06.998Z", "modified_at": "2024-12-27T22:27:01.664Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": false}, "created_at": "2024-12-03T20:34:07.084Z", "modified_at": "2023-02-24T10:59:35.793Z", "id": "", "name": "", "filter": {"conjunction": "and", "clauses": [{"property": "", "operator": "ne", "value": ""}]}, "aggregation": {"func": "count"}, "organization_id": ""}}]}} responses: "200": application/json: "" @@ -1960,7 +1962,7 @@ examples: _endpointsubscription_updated_post: speakeasy-default-endpointsubscription-updated-post: requestBody: - application/json: {"type": "subscription.updated", "timestamp": "2023-06-24T13:26:25.969Z", "data": {"created_at": "2023-06-24T13:26:25.969Z", "modified_at": "2024-05-25T12:11:24.717Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "status": "active", "current_period_start": "2025-03-19T13:26:31.175Z", "current_period_end": "2024-06-19T12:29:28.503Z", "trial_start": "2024-05-25T12:11:24.717Z", "trial_end": "2024-07-08T02:17:23.799Z", "cancel_at_period_end": true, "canceled_at": "2023-08-24T22:14:10.131Z", "started_at": "2025-04-17T18:51:57.213Z", "ends_at": "2025-12-11T02:41:54.261Z", "ended_at": "2025-08-31T06:08:08.476Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "other", "customer_cancellation_comment": "", "metadata": {}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-10-12T01:39:46.850Z", "modified_at": "2025-01-23T22:07:32.693Z", "metadata": {"key": false, "key1": 7698.72}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2025-04-17T07:25:40.078Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2023-11-21T01:50:00.976Z", "modified_at": "2024-06-07T17:53:19.130Z", "trial_interval": "week", "trial_interval_count": 488614, "name": "", "description": "lay towards than ew reiterate ack mmm prudent sensitize upward", "recurring_interval": "year", "is_recurring": true, "is_archived": true, "organization_id": "", "metadata": {"key": true}, "prices": [{"created_at": "2024-10-16T16:24:20.274Z", "modified_at": "2024-01-05T22:20:15.867Z", "id": "", "amount_type": "fixed", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 488614, "legacy": true}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/etc/mail", "mime_type": "", "size": 190194, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-02-18T21:04:21.628Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-10-03T10:28:13.472Z", "size_readable": "", "public_url": "https://lean-mortise.info/"}, {"id": "", "organization_id": "", "name": "", "path": "/etc/mail", "mime_type": "", "size": 190194, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-02-18T21:04:21.628Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-10-03T10:28:13.472Z", "size_readable": "", "public_url": "https://lean-mortise.info/"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2025-10-30T07:18:57.755Z", "modified_at": "2024-02-01T04:27:33.638Z", "id": "", "metadata": {}, "type": "select", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {"options": [{"value": "", "label": ""}]}}, "order": 200325, "required": true}]}, "discount": {"duration": "repeating", "type": "percentage", "amount": 842251, "currency": "Kuwaiti Dinar", "created_at": "2023-09-03T20:25:41.136Z", "modified_at": "2025-09-04T19:30:54.013Z", "id": "", "metadata": {"key": true}, "name": "", "code": "", "starts_at": "2023-06-09T06:11:59.062Z", "ends_at": "2025-04-06T20:17:51.689Z", "max_redemptions": 580493, "redemptions_count": 595442, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2025-04-17T18:51:57.213Z", "modified_at": "2025-08-31T06:08:08.476Z", "id": "", "amount_type": "custom", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "minimum_amount": 687885, "maximum_amount": 788851, "preset_amount": 604961, "legacy": true}], "meters": [{"created_at": "2023-02-28T06:14:05.829Z", "modified_at": "2024-09-22T05:03:44.888Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": "", "key1": 957478, "key2": 6882}, "created_at": "2024-01-07T22:47:09.497Z", "modified_at": "2024-09-01T20:11:20.592Z", "id": "", "name": "", "filter": {"conjunction": "and", "clauses": []}, "aggregation": {"func": "avg", "property": ""}, "organization_id": ""}}, {"created_at": "2023-02-28T06:14:05.829Z", "modified_at": "2024-09-22T05:03:44.888Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": "", "key1": 957478, "key2": 6882}, "created_at": "2024-01-07T22:47:09.497Z", "modified_at": "2024-09-01T20:11:20.592Z", "id": "", "name": "", "filter": {"conjunction": "and", "clauses": []}, "aggregation": {"func": "avg", "property": ""}, "organization_id": ""}}]}} + application/json: {"type": "subscription.updated", "timestamp": "2023-06-24T13:26:25.969Z", "data": {"created_at": "2023-06-24T13:26:25.969Z", "modified_at": "2024-05-25T12:11:24.717Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "recurring_interval_count": 159270, "status": "active", "current_period_start": "2025-03-19T13:26:31.175Z", "current_period_end": "2024-06-19T12:29:28.503Z", "trial_start": "2024-05-25T12:11:24.717Z", "trial_end": "2024-07-08T02:17:23.799Z", "cancel_at_period_end": true, "canceled_at": "2023-08-24T22:14:10.131Z", "started_at": "2025-04-17T18:51:57.213Z", "ends_at": "2025-12-11T02:41:54.261Z", "ended_at": "2025-08-31T06:08:08.476Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "other", "customer_cancellation_comment": "", "metadata": {}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-10-12T01:39:46.850Z", "modified_at": "2025-01-23T22:07:32.693Z", "metadata": {"key": false, "key1": 7698.72}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2025-04-17T07:25:40.078Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2023-11-21T01:50:00.976Z", "modified_at": "2024-06-07T17:53:19.130Z", "trial_interval": "week", "trial_interval_count": 488614, "name": "", "description": "lay towards than ew reiterate ack mmm prudent sensitize upward", "recurring_interval": "year", "recurring_interval_count": 597339, "is_recurring": true, "is_archived": true, "organization_id": "", "metadata": {"key": true}, "prices": [{"created_at": "2024-10-16T16:24:20.274Z", "modified_at": "2024-01-05T22:20:15.867Z", "id": "", "amount_type": "fixed", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 488614, "legacy": true}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/etc/mail", "mime_type": "", "size": 190194, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-02-18T21:04:21.628Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-10-03T10:28:13.472Z", "size_readable": "", "public_url": "https://lean-mortise.info/"}, {"id": "", "organization_id": "", "name": "", "path": "/etc/mail", "mime_type": "", "size": 190194, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-02-18T21:04:21.628Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-10-03T10:28:13.472Z", "size_readable": "", "public_url": "https://lean-mortise.info/"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2025-10-30T07:18:57.755Z", "modified_at": "2024-02-01T04:27:33.638Z", "id": "", "metadata": {}, "type": "select", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {"options": [{"value": "", "label": ""}]}}, "order": 200325, "required": true}]}, "discount": {"duration": "repeating", "type": "percentage", "amount": 842251, "currency": "Kuwaiti Dinar", "created_at": "2023-09-03T20:25:41.136Z", "modified_at": "2025-09-04T19:30:54.013Z", "id": "", "metadata": {"key": true}, "name": "", "code": "", "starts_at": "2023-06-09T06:11:59.062Z", "ends_at": "2025-04-06T20:17:51.689Z", "max_redemptions": 580493, "redemptions_count": 595442, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2025-04-17T18:51:57.213Z", "modified_at": "2025-08-31T06:08:08.476Z", "id": "", "amount_type": "custom", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "minimum_amount": 687885, "maximum_amount": 788851, "preset_amount": 604961, "legacy": true}], "meters": [{"created_at": "2023-02-28T06:14:05.829Z", "modified_at": "2024-09-22T05:03:44.888Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": "", "key1": 957478, "key2": 6882}, "created_at": "2024-01-07T22:47:09.497Z", "modified_at": "2024-09-01T20:11:20.592Z", "id": "", "name": "", "filter": {"conjunction": "and", "clauses": []}, "aggregation": {"func": "avg", "property": ""}, "organization_id": ""}}, {"created_at": "2023-02-28T06:14:05.829Z", "modified_at": "2024-09-22T05:03:44.888Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": "", "key1": 957478, "key2": 6882}, "created_at": "2024-01-07T22:47:09.497Z", "modified_at": "2024-09-01T20:11:20.592Z", "id": "", "name": "", "filter": {"conjunction": "and", "clauses": []}, "aggregation": {"func": "avg", "property": ""}, "organization_id": ""}}]}} responses: "200": application/json: "" @@ -1969,7 +1971,7 @@ examples: _endpointsubscription_active_post: speakeasy-default-endpointsubscription-active-post: requestBody: - application/json: {"type": "subscription.active", "timestamp": "2023-08-13T01:28:21.362Z", "data": {"created_at": "2023-08-13T01:28:21.362Z", "modified_at": "2023-10-12T10:17:29.274Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "year", "status": "trialing", "current_period_start": "2024-10-11T10:49:29.519Z", "current_period_end": "2023-06-09T14:14:48.363Z", "trial_start": "2023-10-12T10:17:29.274Z", "trial_end": "2023-12-18T04:45:55.702Z", "cancel_at_period_end": true, "canceled_at": "2023-02-09T14:19:47.352Z", "started_at": "2023-02-11T00:38:47.217Z", "ends_at": "2024-09-09T22:42:06.531Z", "ended_at": "2023-07-21T07:29:31.409Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "too_complex", "customer_cancellation_comment": "", "metadata": {"key": 5594.76, "key1": 487098, "key2": 514935}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2025-02-28T12:08:18.728Z", "modified_at": "2023-11-01T07:50:51.068Z", "metadata": {"key": false, "key1": 667866, "key2": 6670.85}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2025-05-22T16:11:00.138Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2025-01-22T16:21:33.475Z", "modified_at": "2023-04-08T22:28:00.101Z", "trial_interval": "week", "trial_interval_count": 145614, "name": "", "description": "over wrongly lest celebrate er through carelessly sleepily instead hmph", "recurring_interval": "month", "is_recurring": true, "is_archived": true, "organization_id": "", "metadata": {"key": "", "key1": false}, "prices": [{"created_at": "2024-06-25T00:41:05.678Z", "modified_at": "2025-09-12T00:30:21.037Z", "id": "", "amount_type": "custom", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "minimum_amount": 89762, "maximum_amount": null, "preset_amount": null, "legacy": true}, {"created_at": "2024-09-14T15:19:58.463Z", "modified_at": "2024-07-30T05:01:30.550Z", "id": "", "amount_type": "custom", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "minimum_amount": 720352, "maximum_amount": 761885, "preset_amount": 542678, "legacy": true}, {"created_at": "2025-02-14T12:59:50.680Z", "modified_at": "2025-03-11T11:17:02.540Z", "id": "", "amount_type": "free", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}], "benefits": [{"id": "", "created_at": "2023-04-08T22:28:00.101Z", "modified_at": "2023-07-14T06:57:35.554Z", "type": "license_keys", "description": "rightfully chow zowie deceivingly reassuringly meh", "selectable": false, "deletable": true, "organization_id": "", "metadata": {}, "properties": {"prefix": "", "expires": null, "activations": {"limit": 791750, "enable_customer_admin": false}, "limit_usage": 327839}}, {"id": "", "created_at": "2023-10-05T22:54:04.847Z", "modified_at": "2023-08-05T01:14:52.294Z", "type": "meter_credit", "description": "wisely unfreeze upliftingly", "selectable": true, "deletable": false, "organization_id": "", "metadata": {"key": 522492, "key1": "", "key2": ""}, "properties": {"units": 313365, "rollover": false, "meter_id": ""}}, {"id": "", "created_at": "2023-06-08T12:15:29.494Z", "modified_at": "2025-08-06T11:32:20.929Z", "type": "downloadables", "description": "dime front schlep vaguely astride caring what", "selectable": false, "deletable": true, "organization_id": "", "metadata": {}, "properties": {"archived": {"key": false, "key1": false, "key2": true}, "files": []}}], "medias": [], "attached_custom_fields": []}, "discount": {"duration": "forever", "duration_in_months": 562004, "type": "percentage", "amount": 118341, "currency": "Gibraltar Pound", "created_at": "2024-10-08T16:07:35.852Z", "modified_at": "2023-10-05T03:31:51.188Z", "id": "", "metadata": {"key": true, "key1": ""}, "name": "", "code": "", "starts_at": "2025-11-05T21:10:11.986Z", "ends_at": "2023-05-17T22:52:59.366Z", "max_redemptions": 981359, "redemptions_count": 903286, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2024-08-20T09:23:26.342Z", "modified_at": "2025-12-30T12:34:41.071Z", "id": "", "amount_type": "free", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}, {"created_at": "2025-05-03T08:41:24.445Z", "modified_at": "2025-06-27T23:32:23.314Z", "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "price_amount": 420133, "legacy": true}], "meters": [{"created_at": "2024-03-04T15:06:28.623Z", "modified_at": "2025-07-25T23:22:10.470Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": 731602, "key1": 7389.38, "key2": ""}, "created_at": "2023-08-14T13:30:57.852Z", "modified_at": "2023-02-28T10:09:49.453Z", "id": "", "name": "", "filter": {"conjunction": "and", "clauses": [{"property": "", "operator": "lt", "value": ""}]}, "aggregation": {"func": "avg", "property": ""}, "organization_id": ""}}, {"created_at": "2024-03-04T15:06:28.623Z", "modified_at": "2025-07-25T23:22:10.470Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": 731602, "key1": 7389.38, "key2": ""}, "created_at": "2023-08-14T13:30:57.852Z", "modified_at": "2023-02-28T10:09:49.453Z", "id": "", "name": "", "filter": {"conjunction": "and", "clauses": [{"property": "", "operator": "lt", "value": ""}]}, "aggregation": {"func": "avg", "property": ""}, "organization_id": ""}}, {"created_at": "2024-03-04T15:06:28.623Z", "modified_at": "2025-07-25T23:22:10.470Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": 731602, "key1": 7389.38, "key2": ""}, "created_at": "2023-08-14T13:30:57.852Z", "modified_at": "2023-02-28T10:09:49.453Z", "id": "", "name": "", "filter": {"conjunction": "and", "clauses": [{"property": "", "operator": "lt", "value": ""}]}, "aggregation": {"func": "avg", "property": ""}, "organization_id": ""}}]}} + application/json: {"type": "subscription.active", "timestamp": "2023-08-13T01:28:21.362Z", "data": {"created_at": "2023-08-13T01:28:21.362Z", "modified_at": "2023-10-12T10:17:29.274Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "year", "recurring_interval_count": 204435, "status": "trialing", "current_period_start": "2024-10-11T10:49:29.519Z", "current_period_end": "2023-06-09T14:14:48.363Z", "trial_start": "2023-10-12T10:17:29.274Z", "trial_end": "2023-12-18T04:45:55.702Z", "cancel_at_period_end": true, "canceled_at": "2023-02-09T14:19:47.352Z", "started_at": "2023-02-11T00:38:47.217Z", "ends_at": "2024-09-09T22:42:06.531Z", "ended_at": "2023-07-21T07:29:31.409Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "too_complex", "customer_cancellation_comment": "", "metadata": {"key": 5594.76, "key1": 487098, "key2": 514935}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2025-02-28T12:08:18.728Z", "modified_at": "2023-11-01T07:50:51.068Z", "metadata": {"key": false, "key1": 667866, "key2": 6670.85}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2025-05-22T16:11:00.138Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2025-01-22T16:21:33.475Z", "modified_at": "2023-04-08T22:28:00.101Z", "trial_interval": "week", "trial_interval_count": 145614, "name": "", "description": "over wrongly lest celebrate er through carelessly sleepily instead hmph", "recurring_interval": "month", "recurring_interval_count": 493639, "is_recurring": true, "is_archived": true, "organization_id": "", "metadata": {"key": "", "key1": false}, "prices": [{"created_at": "2024-06-25T00:41:05.678Z", "modified_at": "2025-09-12T00:30:21.037Z", "id": "", "amount_type": "custom", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "minimum_amount": 89762, "maximum_amount": null, "preset_amount": null, "legacy": true}, {"created_at": "2024-09-14T15:19:58.463Z", "modified_at": "2024-07-30T05:01:30.550Z", "id": "", "amount_type": "custom", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "minimum_amount": 720352, "maximum_amount": 761885, "preset_amount": 542678, "legacy": true}, {"created_at": "2025-02-14T12:59:50.680Z", "modified_at": "2025-03-11T11:17:02.540Z", "id": "", "amount_type": "free", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}], "benefits": [{"id": "", "created_at": "2023-04-08T22:28:00.101Z", "modified_at": "2023-07-14T06:57:35.554Z", "type": "license_keys", "description": "rightfully chow zowie deceivingly reassuringly meh", "selectable": false, "deletable": true, "organization_id": "", "metadata": {}, "properties": {"prefix": "", "expires": null, "activations": {"limit": 791750, "enable_customer_admin": false}, "limit_usage": 327839}}, {"id": "", "created_at": "2023-10-05T22:54:04.847Z", "modified_at": "2023-08-05T01:14:52.294Z", "type": "meter_credit", "description": "wisely unfreeze upliftingly", "selectable": true, "deletable": false, "organization_id": "", "metadata": {"key": 522492, "key1": "", "key2": ""}, "properties": {"units": 313365, "rollover": false, "meter_id": ""}}, {"id": "", "created_at": "2023-06-08T12:15:29.494Z", "modified_at": "2025-08-06T11:32:20.929Z", "type": "downloadables", "description": "dime front schlep vaguely astride caring what", "selectable": false, "deletable": true, "organization_id": "", "metadata": {}, "properties": {"archived": {"key": false, "key1": false, "key2": true}, "files": []}}], "medias": [], "attached_custom_fields": []}, "discount": {"duration": "forever", "duration_in_months": 562004, "type": "percentage", "amount": 118341, "currency": "Gibraltar Pound", "created_at": "2024-10-08T16:07:35.852Z", "modified_at": "2023-10-05T03:31:51.188Z", "id": "", "metadata": {"key": true, "key1": ""}, "name": "", "code": "", "starts_at": "2025-11-05T21:10:11.986Z", "ends_at": "2023-05-17T22:52:59.366Z", "max_redemptions": 981359, "redemptions_count": 903286, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2024-08-20T09:23:26.342Z", "modified_at": "2025-12-30T12:34:41.071Z", "id": "", "amount_type": "free", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}, {"created_at": "2025-05-03T08:41:24.445Z", "modified_at": "2025-06-27T23:32:23.314Z", "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "price_amount": 420133, "legacy": true}], "meters": [{"created_at": "2024-03-04T15:06:28.623Z", "modified_at": "2025-07-25T23:22:10.470Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": 731602, "key1": 7389.38, "key2": ""}, "created_at": "2023-08-14T13:30:57.852Z", "modified_at": "2023-02-28T10:09:49.453Z", "id": "", "name": "", "filter": {"conjunction": "and", "clauses": [{"property": "", "operator": "lt", "value": ""}]}, "aggregation": {"func": "avg", "property": ""}, "organization_id": ""}}, {"created_at": "2024-03-04T15:06:28.623Z", "modified_at": "2025-07-25T23:22:10.470Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": 731602, "key1": 7389.38, "key2": ""}, "created_at": "2023-08-14T13:30:57.852Z", "modified_at": "2023-02-28T10:09:49.453Z", "id": "", "name": "", "filter": {"conjunction": "and", "clauses": [{"property": "", "operator": "lt", "value": ""}]}, "aggregation": {"func": "avg", "property": ""}, "organization_id": ""}}, {"created_at": "2024-03-04T15:06:28.623Z", "modified_at": "2025-07-25T23:22:10.470Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": 731602, "key1": 7389.38, "key2": ""}, "created_at": "2023-08-14T13:30:57.852Z", "modified_at": "2023-02-28T10:09:49.453Z", "id": "", "name": "", "filter": {"conjunction": "and", "clauses": [{"property": "", "operator": "lt", "value": ""}]}, "aggregation": {"func": "avg", "property": ""}, "organization_id": ""}}]}} responses: "200": application/json: "" @@ -1978,7 +1980,7 @@ examples: _endpointsubscription_canceled_post: speakeasy-default-endpointsubscription-canceled-post: requestBody: - application/json: {"type": "subscription.canceled", "timestamp": "2025-02-09T04:39:02.332Z", "data": {"created_at": "2025-02-09T04:39:02.332Z", "modified_at": "2025-04-09T17:46:08.645Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "year", "status": "incomplete_expired", "current_period_start": "2024-08-12T22:41:41.907Z", "current_period_end": "2023-06-17T04:15:56.819Z", "trial_start": "2025-04-09T17:46:08.645Z", "trial_end": null, "cancel_at_period_end": true, "canceled_at": "2023-06-02T15:48:16.857Z", "started_at": "2025-03-21T15:50:39.816Z", "ends_at": "2025-07-17T03:56:59.092Z", "ended_at": "2024-01-07T18:54:45.602Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "unused", "customer_cancellation_comment": "", "metadata": {"key": "", "key1": 544796}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2023-07-21T16:25:14.433Z", "modified_at": "2023-01-03T22:38:10.292Z", "metadata": {}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2023-08-10T09:00:25.178Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2023-10-25T05:52:42.846Z", "modified_at": "2023-05-20T04:28:47.140Z", "trial_interval": "year", "trial_interval_count": 538272, "name": "", "description": "whereas neatly between publicize", "recurring_interval": "month", "is_recurring": false, "is_archived": true, "organization_id": "", "metadata": {"key": 6152.44, "key1": 518.97}, "prices": [{"created_at": "2023-04-18T10:38:03.481Z", "modified_at": "2025-08-08T10:15:56.533Z", "id": "", "amount_type": "metered_unit", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "unit_amount": "", "cap_amount": 739654, "meter_id": "", "meter": {"id": "", "name": ""}}], "benefits": [{"id": "", "created_at": "2024-01-07T18:54:45.602Z", "modified_at": "2025-02-23T12:23:49.579Z", "type": "meter_credit", "description": "wisely yowza provided", "selectable": true, "deletable": false, "organization_id": "", "metadata": {}, "properties": {"units": 512066, "rollover": false, "meter_id": ""}}, {"id": "", "created_at": "2023-02-11T20:34:40.620Z", "modified_at": "2025-04-27T08:16:10.239Z", "type": "license_keys", "description": "boiling plump consequently ferociously ugh haversack whoa", "selectable": false, "deletable": false, "organization_id": "", "metadata": {}, "properties": {"prefix": "", "expires": {"ttl": 823401, "timeframe": "month"}, "activations": {"limit": 814000, "enable_customer_admin": true}, "limit_usage": 684040}}, {"id": "", "created_at": "2024-01-24T04:52:40.375Z", "modified_at": "2023-06-12T01:01:05.841Z", "type": "downloadables", "description": "near failing gloomy phooey opposite cannibalise ew", "selectable": true, "deletable": true, "organization_id": "", "metadata": {"key": 2707.01, "key1": 808088, "key2": ""}, "properties": {"archived": {"key": false, "key1": false, "key2": false}, "files": ["", "", ""]}}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/etc", "mime_type": "", "size": 712321, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-08-04T15:57:39.277Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-09-22T03:23:09.725Z", "size_readable": "", "public_url": "https://sad-nephew.info/"}, {"id": "", "organization_id": "", "name": "", "path": "/etc", "mime_type": "", "size": 712321, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-08-04T15:57:39.277Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-09-22T03:23:09.725Z", "size_readable": "", "public_url": "https://sad-nephew.info/"}], "attached_custom_fields": []}, "discount": {"duration": "repeating", "type": "percentage", "amount": 426614, "currency": "Leone", "created_at": "2023-09-18T16:23:07.059Z", "modified_at": "2024-03-16T14:49:43.969Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2024-06-07T09:41:45.226Z", "ends_at": "2024-01-20T14:29:52.074Z", "max_redemptions": 860957, "redemptions_count": 614440, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2024-10-06T16:56:54.830Z", "modified_at": "2024-09-20T02:04:48.363Z", "id": "", "amount_type": "custom", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "minimum_amount": 16995, "maximum_amount": null, "preset_amount": 462884, "legacy": true}, {"created_at": "2025-10-21T12:01:00.311Z", "modified_at": "2025-10-04T04:05:21.180Z", "id": "", "amount_type": "custom", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "minimum_amount": 366667, "maximum_amount": 42991, "preset_amount": null, "legacy": true}], "meters": []}} + application/json: {"type": "subscription.canceled", "timestamp": "2025-02-09T04:39:02.332Z", "data": {"created_at": "2025-02-09T04:39:02.332Z", "modified_at": "2025-04-09T17:46:08.645Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "year", "recurring_interval_count": 702732, "status": "incomplete_expired", "current_period_start": "2024-08-12T22:41:41.907Z", "current_period_end": "2023-06-17T04:15:56.819Z", "trial_start": "2025-04-09T17:46:08.645Z", "trial_end": null, "cancel_at_period_end": true, "canceled_at": "2023-06-02T15:48:16.857Z", "started_at": "2025-03-21T15:50:39.816Z", "ends_at": "2025-07-17T03:56:59.092Z", "ended_at": "2024-01-07T18:54:45.602Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "unused", "customer_cancellation_comment": "", "metadata": {"key": "", "key1": 544796}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2023-07-21T16:25:14.433Z", "modified_at": "2023-01-03T22:38:10.292Z", "metadata": {}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2023-08-10T09:00:25.178Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2023-10-25T05:52:42.846Z", "modified_at": "2023-05-20T04:28:47.140Z", "trial_interval": "year", "trial_interval_count": 538272, "name": "", "description": "whereas neatly between publicize", "recurring_interval": "month", "recurring_interval_count": 98032, "is_recurring": false, "is_archived": true, "organization_id": "", "metadata": {"key": 6152.44, "key1": 518.97}, "prices": [{"created_at": "2023-04-18T10:38:03.481Z", "modified_at": "2025-08-08T10:15:56.533Z", "id": "", "amount_type": "metered_unit", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "unit_amount": "", "cap_amount": 739654, "meter_id": "", "meter": {"id": "", "name": ""}}], "benefits": [{"id": "", "created_at": "2024-01-07T18:54:45.602Z", "modified_at": "2025-02-23T12:23:49.579Z", "type": "meter_credit", "description": "wisely yowza provided", "selectable": true, "deletable": false, "organization_id": "", "metadata": {}, "properties": {"units": 512066, "rollover": false, "meter_id": ""}}, {"id": "", "created_at": "2023-02-11T20:34:40.620Z", "modified_at": "2025-04-27T08:16:10.239Z", "type": "license_keys", "description": "boiling plump consequently ferociously ugh haversack whoa", "selectable": false, "deletable": false, "organization_id": "", "metadata": {}, "properties": {"prefix": "", "expires": {"ttl": 823401, "timeframe": "month"}, "activations": {"limit": 814000, "enable_customer_admin": true}, "limit_usage": 684040}}, {"id": "", "created_at": "2024-01-24T04:52:40.375Z", "modified_at": "2023-06-12T01:01:05.841Z", "type": "downloadables", "description": "near failing gloomy phooey opposite cannibalise ew", "selectable": true, "deletable": true, "organization_id": "", "metadata": {"key": 2707.01, "key1": 808088, "key2": ""}, "properties": {"archived": {"key": false, "key1": false, "key2": false}, "files": ["", "", ""]}}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/etc", "mime_type": "", "size": 712321, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-08-04T15:57:39.277Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-09-22T03:23:09.725Z", "size_readable": "", "public_url": "https://sad-nephew.info/"}, {"id": "", "organization_id": "", "name": "", "path": "/etc", "mime_type": "", "size": 712321, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-08-04T15:57:39.277Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-09-22T03:23:09.725Z", "size_readable": "", "public_url": "https://sad-nephew.info/"}], "attached_custom_fields": []}, "discount": {"duration": "repeating", "type": "percentage", "amount": 426614, "currency": "Leone", "created_at": "2023-09-18T16:23:07.059Z", "modified_at": "2024-03-16T14:49:43.969Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2024-06-07T09:41:45.226Z", "ends_at": "2024-01-20T14:29:52.074Z", "max_redemptions": 860957, "redemptions_count": 614440, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2024-10-06T16:56:54.830Z", "modified_at": "2024-09-20T02:04:48.363Z", "id": "", "amount_type": "custom", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "minimum_amount": 16995, "maximum_amount": null, "preset_amount": 462884, "legacy": true}, {"created_at": "2025-10-21T12:01:00.311Z", "modified_at": "2025-10-04T04:05:21.180Z", "id": "", "amount_type": "custom", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "minimum_amount": 366667, "maximum_amount": 42991, "preset_amount": null, "legacy": true}], "meters": []}} responses: "200": application/json: "" @@ -1987,7 +1989,7 @@ examples: _endpointsubscription_uncanceled_post: speakeasy-default-endpointsubscription-uncanceled-post: requestBody: - application/json: {"type": "subscription.uncanceled", "timestamp": "2023-02-06T17:25:10.106Z", "data": {"created_at": "2023-02-06T17:25:10.106Z", "modified_at": "2023-05-13T11:53:26.507Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "status": "incomplete_expired", "current_period_start": "2025-06-06T02:06:49.326Z", "current_period_end": "2024-04-11T19:08:16.655Z", "trial_start": null, "trial_end": "2023-01-25T07:20:02.381Z", "cancel_at_period_end": true, "canceled_at": "2023-08-23T01:03:59.107Z", "started_at": "2023-10-03T23:40:30.923Z", "ends_at": "2024-08-30T15:34:10.479Z", "ended_at": "2024-11-16T02:01:16.824Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "customer_service", "customer_cancellation_comment": "", "metadata": {"key": 658685}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-10-18T16:25:47.209Z", "modified_at": "2025-08-14T20:42:46.275Z", "metadata": {}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2025-10-28T17:32:11.511Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2023-04-15T22:44:37.320Z", "modified_at": "2025-10-01T20:42:25.530Z", "trial_interval": "week", "trial_interval_count": 809387, "name": "", "description": "once scared upwardly shell excitedly stabilise", "recurring_interval": "year", "is_recurring": false, "is_archived": false, "organization_id": "", "metadata": {"key": ""}, "prices": [{"created_at": "2023-01-25T07:20:02.381Z", "modified_at": "2024-03-21T16:37:42.322Z", "id": "", "amount_type": "custom", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "minimum_amount": 107066, "maximum_amount": 251812, "preset_amount": 625077, "legacy": true}], "benefits": [{"id": "", "created_at": "2024-12-20T04:38:50.493Z", "modified_at": "2023-11-01T03:56:36.911Z", "type": "github_repository", "description": "vibrant upset meanwhile into huzzah", "selectable": true, "deletable": true, "organization_id": "", "metadata": {}, "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "push"}}, {"id": "", "created_at": "2023-12-03T14:31:04.807Z", "modified_at": "2024-12-22T22:02:24.412Z", "type": "custom", "description": "valiantly during rotating oh geez however circa", "selectable": false, "deletable": false, "organization_id": "", "metadata": {"key": 3067.15}, "properties": {"note": ""}}, {"id": "", "created_at": "2025-07-24T08:03:07.011Z", "modified_at": "2025-10-28T06:54:00.088Z", "type": "meter_credit", "description": "zesty whereas before instruction unearth loftily blah yippee bleakly", "selectable": false, "deletable": false, "organization_id": "", "metadata": {"key": false, "key1": 6504.59, "key2": false}, "properties": {"units": 569407, "rollover": true, "meter_id": ""}}], "medias": [], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-05-04T03:50:13.687Z", "modified_at": "2023-08-11T10:26:43.160Z", "id": "", "metadata": {"key": 5554.11, "key1": false}, "type": "select", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {"options": [{"value": "", "label": ""}, {"value": "", "label": ""}]}}, "order": 138280, "required": false}]}, "discount": {"duration": "repeating", "duration_in_months": 941515, "type": "percentage", "basis_points": 167188, "created_at": "2025-08-26T15:24:24.781Z", "modified_at": "2025-10-15T04:26:03.108Z", "id": "", "metadata": {"key": "", "key1": false}, "name": "", "code": "", "starts_at": "2023-08-16T23:40:35.980Z", "ends_at": "2025-04-21T03:02:05.553Z", "max_redemptions": 205092, "redemptions_count": 782565, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2023-05-24T07:18:01.100Z", "modified_at": null, "id": "", "amount_type": "fixed", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 547055, "legacy": true}], "meters": [{"created_at": "2024-05-09T09:03:29.862Z", "modified_at": "2023-04-03T07:00:26.646Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": "", "key1": false}, "created_at": "2023-09-01T09:11:21.542Z", "modified_at": "2024-02-11T19:32:01.843Z", "id": "", "name": "", "filter": {"conjunction": "and", "clauses": []}, "aggregation": {"func": "min", "property": ""}, "organization_id": ""}}]}} + application/json: {"type": "subscription.uncanceled", "timestamp": "2023-02-06T17:25:10.106Z", "data": {"created_at": "2023-02-06T17:25:10.106Z", "modified_at": "2023-05-13T11:53:26.507Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "recurring_interval_count": 33508, "status": "incomplete_expired", "current_period_start": "2025-06-06T02:06:49.326Z", "current_period_end": "2024-04-11T19:08:16.655Z", "trial_start": null, "trial_end": "2023-01-25T07:20:02.381Z", "cancel_at_period_end": true, "canceled_at": "2023-08-23T01:03:59.107Z", "started_at": "2023-10-03T23:40:30.923Z", "ends_at": "2024-08-30T15:34:10.479Z", "ended_at": "2024-11-16T02:01:16.824Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "customer_service", "customer_cancellation_comment": "", "metadata": {"key": 658685}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-10-18T16:25:47.209Z", "modified_at": "2025-08-14T20:42:46.275Z", "metadata": {}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2025-10-28T17:32:11.511Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2023-04-15T22:44:37.320Z", "modified_at": "2025-10-01T20:42:25.530Z", "trial_interval": "week", "trial_interval_count": 809387, "name": "", "description": "once scared upwardly shell excitedly stabilise", "recurring_interval": "year", "recurring_interval_count": 22176, "is_recurring": false, "is_archived": false, "organization_id": "", "metadata": {"key": ""}, "prices": [{"created_at": "2023-01-25T07:20:02.381Z", "modified_at": "2024-03-21T16:37:42.322Z", "id": "", "amount_type": "custom", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "minimum_amount": 107066, "maximum_amount": 251812, "preset_amount": 625077, "legacy": true}], "benefits": [{"id": "", "created_at": "2024-12-20T04:38:50.493Z", "modified_at": "2023-11-01T03:56:36.911Z", "type": "github_repository", "description": "vibrant upset meanwhile into huzzah", "selectable": true, "deletable": true, "organization_id": "", "metadata": {}, "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "push"}}, {"id": "", "created_at": "2023-12-03T14:31:04.807Z", "modified_at": "2024-12-22T22:02:24.412Z", "type": "custom", "description": "valiantly during rotating oh geez however circa", "selectable": false, "deletable": false, "organization_id": "", "metadata": {"key": 3067.15}, "properties": {"note": ""}}, {"id": "", "created_at": "2025-07-24T08:03:07.011Z", "modified_at": "2025-10-28T06:54:00.088Z", "type": "meter_credit", "description": "zesty whereas before instruction unearth loftily blah yippee bleakly", "selectable": false, "deletable": false, "organization_id": "", "metadata": {"key": false, "key1": 6504.59, "key2": false}, "properties": {"units": 569407, "rollover": true, "meter_id": ""}}], "medias": [], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-05-04T03:50:13.687Z", "modified_at": "2023-08-11T10:26:43.160Z", "id": "", "metadata": {"key": 5554.11, "key1": false}, "type": "select", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {"options": [{"value": "", "label": ""}, {"value": "", "label": ""}]}}, "order": 138280, "required": false}]}, "discount": {"duration": "repeating", "duration_in_months": 941515, "type": "percentage", "basis_points": 167188, "created_at": "2025-08-26T15:24:24.781Z", "modified_at": "2025-10-15T04:26:03.108Z", "id": "", "metadata": {"key": "", "key1": false}, "name": "", "code": "", "starts_at": "2023-08-16T23:40:35.980Z", "ends_at": "2025-04-21T03:02:05.553Z", "max_redemptions": 205092, "redemptions_count": 782565, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2023-05-24T07:18:01.100Z", "modified_at": null, "id": "", "amount_type": "fixed", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 547055, "legacy": true}], "meters": [{"created_at": "2024-05-09T09:03:29.862Z", "modified_at": "2023-04-03T07:00:26.646Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": "", "key1": false}, "created_at": "2023-09-01T09:11:21.542Z", "modified_at": "2024-02-11T19:32:01.843Z", "id": "", "name": "", "filter": {"conjunction": "and", "clauses": []}, "aggregation": {"func": "min", "property": ""}, "organization_id": ""}}]}} responses: "200": application/json: "" @@ -1996,7 +1998,7 @@ examples: _endpointsubscription_revoked_post: speakeasy-default-endpointsubscription-revoked-post: requestBody: - application/json: {"type": "subscription.revoked", "timestamp": "2024-01-02T06:40:50.860Z", "data": {"created_at": "2024-01-02T06:40:50.860Z", "modified_at": "2023-03-16T08:42:29.566Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "status": "canceled", "current_period_start": "2024-04-30T10:39:59.432Z", "current_period_end": "2023-05-30T02:07:20.021Z", "trial_start": "2023-03-16T08:42:29.566Z", "trial_end": "2023-10-28T01:20:21.930Z", "cancel_at_period_end": false, "canceled_at": "2023-06-01T18:10:42.435Z", "started_at": "2023-11-20T08:24:19.529Z", "ends_at": "2023-02-17T04:59:11.584Z", "ended_at": "2024-08-10T07:05:17.018Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "missing_features", "customer_cancellation_comment": "", "metadata": {"key": true, "key1": "", "key2": 375849}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-01-26T10:24:50.250Z", "modified_at": "2023-05-15T02:43:42.966Z", "metadata": {"key": 298861}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2025-07-31T11:36:41.678Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2025-12-12T02:48:12.123Z", "modified_at": "2024-11-12T05:10:40.368Z", "trial_interval": null, "trial_interval_count": 442924, "name": "", "description": "whereas longingly apparatus since acidly anti canter dimly fatherly", "recurring_interval": "year", "is_recurring": false, "is_archived": true, "organization_id": "", "metadata": {"key": "", "key1": 726.87, "key2": true}, "prices": [{"created_at": "2024-01-27T23:05:56.976Z", "modified_at": "2023-04-08T08:09:36.278Z", "id": "", "amount_type": "custom", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "minimum_amount": 737664, "maximum_amount": 295027, "preset_amount": null, "legacy": true}], "benefits": [{"id": "", "created_at": "2025-11-28T05:50:39.876Z", "modified_at": "2023-05-09T16:38:05.908Z", "type": "github_repository", "description": "after plus meh", "selectable": false, "deletable": true, "organization_id": "", "metadata": {"key": "", "key1": ""}, "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "pull"}}, {"id": "", "created_at": "2024-02-14T23:20:57.498Z", "modified_at": "2025-04-28T23:19:31.379Z", "type": "downloadables", "description": "aha trusting whereas longingly apparatus", "selectable": true, "deletable": false, "organization_id": "", "metadata": {}, "properties": {"archived": {}, "files": ["", ""]}}, {"id": "", "created_at": "2025-06-26T17:31:52.486Z", "modified_at": "2024-09-11T21:28:54.462Z", "type": "meter_credit", "description": "busy gadzooks solidly", "selectable": true, "deletable": true, "organization_id": "", "metadata": {"key": true, "key1": 3822.1}, "properties": {"units": 802217, "rollover": false, "meter_id": ""}}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/private/tmp", "mime_type": "", "size": 174338, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-08-09T21:14:20.503Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-04-15T21:30:37.498Z", "size_readable": "", "public_url": "https://monthly-intervention.info"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-10-05T19:08:04.228Z", "modified_at": "2024-04-03T03:31:05.112Z", "id": "", "metadata": {}, "type": "select", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {"options": [{"value": "", "label": ""}, {"value": "", "label": ""}, {"value": "", "label": ""}]}}, "order": 22381, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2024-10-05T19:08:04.228Z", "modified_at": "2024-04-03T03:31:05.112Z", "id": "", "metadata": {}, "type": "select", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {"options": [{"value": "", "label": ""}, {"value": "", "label": ""}, {"value": "", "label": ""}]}}, "order": 22381, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2024-10-05T19:08:04.228Z", "modified_at": "2024-04-03T03:31:05.112Z", "id": "", "metadata": {}, "type": "select", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {"options": [{"value": "", "label": ""}, {"value": "", "label": ""}, {"value": "", "label": ""}]}}, "order": 22381, "required": false}]}, "discount": {"duration": "repeating", "type": "fixed", "amount": 649519, "currency": "UAE Dirham", "created_at": "2023-02-23T07:57:08.868Z", "modified_at": "2023-03-07T06:41:13.984Z", "id": "", "metadata": {"key": 115143, "key1": true}, "name": "", "code": "", "starts_at": "2025-01-21T17:43:15.113Z", "ends_at": "2023-06-11T15:49:01.684Z", "max_redemptions": 398641, "redemptions_count": 352059, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2025-01-19T04:25:07.708Z", "modified_at": "2024-05-09T22:24:33.024Z", "id": "", "amount_type": "metered_unit", "is_archived": false, "product_id": "", "type": "one_time", "recurring_interval": "month", "price_currency": "", "unit_amount": "", "cap_amount": 631434, "meter_id": "", "meter": {"id": "", "name": ""}}], "meters": []}} + application/json: {"type": "subscription.revoked", "timestamp": "2024-01-02T06:40:50.860Z", "data": {"created_at": "2024-01-02T06:40:50.860Z", "modified_at": "2023-03-16T08:42:29.566Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "recurring_interval_count": 334195, "status": "canceled", "current_period_start": "2024-04-30T10:39:59.432Z", "current_period_end": "2023-05-30T02:07:20.021Z", "trial_start": "2023-03-16T08:42:29.566Z", "trial_end": "2023-10-28T01:20:21.930Z", "cancel_at_period_end": false, "canceled_at": "2023-06-01T18:10:42.435Z", "started_at": "2023-11-20T08:24:19.529Z", "ends_at": "2023-02-17T04:59:11.584Z", "ended_at": "2024-08-10T07:05:17.018Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "missing_features", "customer_cancellation_comment": "", "metadata": {"key": true, "key1": "", "key2": 375849}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-01-26T10:24:50.250Z", "modified_at": "2023-05-15T02:43:42.966Z", "metadata": {"key": 298861}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2025-07-31T11:36:41.678Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2025-12-12T02:48:12.123Z", "modified_at": "2024-11-12T05:10:40.368Z", "trial_interval": null, "trial_interval_count": 442924, "name": "", "description": "whereas longingly apparatus since acidly anti canter dimly fatherly", "recurring_interval": "year", "recurring_interval_count": null, "is_recurring": false, "is_archived": true, "organization_id": "", "metadata": {"key": "", "key1": 726.87, "key2": true}, "prices": [{"created_at": "2024-01-27T23:05:56.976Z", "modified_at": "2023-04-08T08:09:36.278Z", "id": "", "amount_type": "custom", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "minimum_amount": 737664, "maximum_amount": 295027, "preset_amount": null, "legacy": true}], "benefits": [{"id": "", "created_at": "2025-11-28T05:50:39.876Z", "modified_at": "2023-05-09T16:38:05.908Z", "type": "github_repository", "description": "after plus meh", "selectable": false, "deletable": true, "organization_id": "", "metadata": {"key": "", "key1": ""}, "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "pull"}}, {"id": "", "created_at": "2024-02-14T23:20:57.498Z", "modified_at": "2025-04-28T23:19:31.379Z", "type": "downloadables", "description": "aha trusting whereas longingly apparatus", "selectable": true, "deletable": false, "organization_id": "", "metadata": {}, "properties": {"archived": {}, "files": ["", ""]}}, {"id": "", "created_at": "2025-06-26T17:31:52.486Z", "modified_at": "2024-09-11T21:28:54.462Z", "type": "meter_credit", "description": "busy gadzooks solidly", "selectable": true, "deletable": true, "organization_id": "", "metadata": {"key": true, "key1": 3822.1}, "properties": {"units": 802217, "rollover": false, "meter_id": ""}}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/private/tmp", "mime_type": "", "size": 174338, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-08-09T21:14:20.503Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-04-15T21:30:37.498Z", "size_readable": "", "public_url": "https://monthly-intervention.info"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-10-05T19:08:04.228Z", "modified_at": "2024-04-03T03:31:05.112Z", "id": "", "metadata": {}, "type": "select", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {"options": [{"value": "", "label": ""}, {"value": "", "label": ""}, {"value": "", "label": ""}]}}, "order": 22381, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2024-10-05T19:08:04.228Z", "modified_at": "2024-04-03T03:31:05.112Z", "id": "", "metadata": {}, "type": "select", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {"options": [{"value": "", "label": ""}, {"value": "", "label": ""}, {"value": "", "label": ""}]}}, "order": 22381, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2024-10-05T19:08:04.228Z", "modified_at": "2024-04-03T03:31:05.112Z", "id": "", "metadata": {}, "type": "select", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {"options": [{"value": "", "label": ""}, {"value": "", "label": ""}, {"value": "", "label": ""}]}}, "order": 22381, "required": false}]}, "discount": {"duration": "repeating", "type": "fixed", "amount": 649519, "currency": "UAE Dirham", "created_at": "2023-02-23T07:57:08.868Z", "modified_at": "2023-03-07T06:41:13.984Z", "id": "", "metadata": {"key": 115143, "key1": true}, "name": "", "code": "", "starts_at": "2025-01-21T17:43:15.113Z", "ends_at": "2023-06-11T15:49:01.684Z", "max_redemptions": 398641, "redemptions_count": 352059, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2025-01-19T04:25:07.708Z", "modified_at": "2024-05-09T22:24:33.024Z", "id": "", "amount_type": "metered_unit", "is_archived": false, "product_id": "", "type": "one_time", "recurring_interval": "month", "price_currency": "", "unit_amount": "", "cap_amount": 631434, "meter_id": "", "meter": {"id": "", "name": ""}}], "meters": []}} responses: "200": application/json: "" @@ -2023,7 +2025,7 @@ examples: _endpointproduct_created_post: speakeasy-default-endpointproduct-created-post: requestBody: - application/json: {"type": "product.created", "timestamp": "2023-10-13T02:47:55.082Z", "data": {"id": "", "created_at": "2023-10-13T02:47:55.082Z", "modified_at": "2023-01-15T03:15:59.062Z", "trial_interval": "day", "trial_interval_count": 168322, "name": "", "description": "mash generously as at filthy busy athwart", "recurring_interval": "month", "is_recurring": false, "is_archived": true, "organization_id": "", "metadata": {"key": 4134.56, "key1": "", "key2": 984082}, "prices": [{"created_at": "2024-07-28T01:37:16.074Z", "modified_at": "2024-06-21T04:06:38.404Z", "id": "", "amount_type": "custom", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "minimum_amount": 351958, "maximum_amount": 675813, "preset_amount": 835712, "legacy": true}], "benefits": [{"id": "", "created_at": "2025-05-31T08:27:53.858Z", "modified_at": "2023-10-30T14:13:01.119Z", "type": "license_keys", "description": "ick gadzooks thunderbolt unlawful usable", "selectable": true, "deletable": false, "organization_id": "", "metadata": {"key": true, "key1": 514522, "key2": 495299}, "properties": {"prefix": "", "expires": {"ttl": 887459, "timeframe": "year"}, "activations": {"limit": 251979, "enable_customer_admin": false}, "limit_usage": 580706}}, {"id": "", "created_at": "2025-06-22T09:47:57.328Z", "modified_at": "2023-11-13T15:31:37.843Z", "type": "discord", "description": "ew put ack innocently whoa pfft athwart straight", "selectable": true, "deletable": true, "organization_id": "", "metadata": {}, "properties": {"guild_id": "", "role_id": "", "kick_member": true, "guild_token": ""}}, {"id": "", "created_at": "2024-03-09T12:18:57.121Z", "modified_at": "2025-07-23T06:34:18.245Z", "type": "github_repository", "description": "granular an yippee", "selectable": true, "deletable": true, "organization_id": "", "metadata": {}, "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "maintain"}}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/System", "mime_type": "", "size": 555924, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-03-02T06:30:18.185Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-11-29T05:57:23.958Z", "size_readable": "", "public_url": "https://worthless-strait.name"}, {"id": "", "organization_id": "", "name": "", "path": "/System", "mime_type": "", "size": 555924, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-03-02T06:30:18.185Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-11-29T05:57:23.958Z", "size_readable": "", "public_url": "https://worthless-strait.name"}], "attached_custom_fields": []}} + application/json: {"type": "product.created", "timestamp": "2023-10-13T02:47:55.082Z", "data": {"id": "", "created_at": "2023-10-13T02:47:55.082Z", "modified_at": "2023-01-15T03:15:59.062Z", "trial_interval": "day", "trial_interval_count": 168322, "name": "", "description": "mash generously as at filthy busy athwart", "recurring_interval": "month", "recurring_interval_count": 12897, "is_recurring": false, "is_archived": true, "organization_id": "", "metadata": {"key": 4134.56, "key1": "", "key2": 984082}, "prices": [{"created_at": "2024-07-28T01:37:16.074Z", "modified_at": "2024-06-21T04:06:38.404Z", "id": "", "amount_type": "custom", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "minimum_amount": 351958, "maximum_amount": 675813, "preset_amount": 835712, "legacy": true}], "benefits": [{"id": "", "created_at": "2025-05-31T08:27:53.858Z", "modified_at": "2023-10-30T14:13:01.119Z", "type": "license_keys", "description": "ick gadzooks thunderbolt unlawful usable", "selectable": true, "deletable": false, "organization_id": "", "metadata": {"key": true, "key1": 514522, "key2": 495299}, "properties": {"prefix": "", "expires": {"ttl": 887459, "timeframe": "year"}, "activations": {"limit": 251979, "enable_customer_admin": false}, "limit_usage": 580706}}, {"id": "", "created_at": "2025-06-22T09:47:57.328Z", "modified_at": "2023-11-13T15:31:37.843Z", "type": "discord", "description": "ew put ack innocently whoa pfft athwart straight", "selectable": true, "deletable": true, "organization_id": "", "metadata": {}, "properties": {"guild_id": "", "role_id": "", "kick_member": true, "guild_token": ""}}, {"id": "", "created_at": "2024-03-09T12:18:57.121Z", "modified_at": "2025-07-23T06:34:18.245Z", "type": "github_repository", "description": "granular an yippee", "selectable": true, "deletable": true, "organization_id": "", "metadata": {}, "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "maintain"}}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/System", "mime_type": "", "size": 555924, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-03-02T06:30:18.185Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-11-29T05:57:23.958Z", "size_readable": "", "public_url": "https://worthless-strait.name"}, {"id": "", "organization_id": "", "name": "", "path": "/System", "mime_type": "", "size": 555924, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-03-02T06:30:18.185Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-11-29T05:57:23.958Z", "size_readable": "", "public_url": "https://worthless-strait.name"}], "attached_custom_fields": []}} responses: "200": application/json: "" @@ -2032,7 +2034,7 @@ examples: _endpointproduct_updated_post: speakeasy-default-endpointproduct-updated-post: requestBody: - application/json: {"type": "product.updated", "timestamp": "2024-08-25T02:00:54.049Z", "data": {"id": "", "created_at": "2024-08-25T02:00:54.049Z", "modified_at": "2025-02-11T18:19:05.372Z", "trial_interval": "month", "trial_interval_count": 860221, "name": "", "description": "aha square extract modulo", "recurring_interval": "year", "is_recurring": true, "is_archived": false, "organization_id": "", "metadata": {"key": 7221.66, "key1": "", "key2": ""}, "prices": [{"created_at": "2023-07-21T03:22:42.071Z", "modified_at": "2025-05-10T05:05:05.968Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}], "benefits": [{"id": "", "created_at": "2023-05-13T14:14:38.012Z", "modified_at": "2025-08-18T15:37:39.268Z", "type": "downloadables", "description": "mmm dependency softly desecrate carelessly inasmuch magnetize", "selectable": false, "deletable": false, "organization_id": "", "metadata": {"key": 6051.07, "key1": 327689, "key2": false}, "properties": {"archived": {"key": false, "key1": true}, "files": [""]}}], "medias": [], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-06-10T10:15:04.582Z", "modified_at": "2023-03-30T01:46:17.072Z", "id": "", "metadata": {"key": true, "key1": 323621, "key2": 4226.98}, "type": "text", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 844128, "required": true}]}} + application/json: {"type": "product.updated", "timestamp": "2024-08-25T02:00:54.049Z", "data": {"id": "", "created_at": "2024-08-25T02:00:54.049Z", "modified_at": "2025-02-11T18:19:05.372Z", "trial_interval": "month", "trial_interval_count": 860221, "name": "", "description": "aha square extract modulo", "recurring_interval": "year", "recurring_interval_count": 705076, "is_recurring": true, "is_archived": false, "organization_id": "", "metadata": {"key": 7221.66, "key1": "", "key2": ""}, "prices": [{"created_at": "2023-07-21T03:22:42.071Z", "modified_at": "2025-05-10T05:05:05.968Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}], "benefits": [{"id": "", "created_at": "2023-05-13T14:14:38.012Z", "modified_at": "2025-08-18T15:37:39.268Z", "type": "downloadables", "description": "mmm dependency softly desecrate carelessly inasmuch magnetize", "selectable": false, "deletable": false, "organization_id": "", "metadata": {"key": 6051.07, "key1": 327689, "key2": false}, "properties": {"archived": {"key": false, "key1": true}, "files": [""]}}], "medias": [], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-06-10T10:15:04.582Z", "modified_at": "2023-03-30T01:46:17.072Z", "id": "", "metadata": {"key": true, "key1": 323621, "key2": 4226.98}, "type": "text", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 844128, "required": true}]}} responses: "200": application/json: "" @@ -2041,7 +2043,7 @@ examples: _endpointorganization_updated_post: speakeasy-default-endpointorganization-updated-post: requestBody: - application/json: {"type": "organization.updated", "timestamp": "2025-08-19T15:02:44.139Z", "data": {"created_at": "2025-08-19T15:02:44.139Z", "modified_at": "2025-05-07T21:24:48.059Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://bustling-cellar.com", "email": "Gerardo.Pagac@yahoo.com", "website": "", "socials": [{"platform": "tiktok", "url": "https://grizzled-patroller.info/"}, {"platform": "tiktok", "url": "https://grizzled-patroller.info/"}], "status": "active", "details_submitted_at": "2023-03-18T14:40:01.326Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": true, "allow_customer_updates": true, "proration_behavior": "prorate"}, "notification_settings": {"new_order": false, "new_subscription": false}, "customer_email_settings": {"order_confirmation": false, "subscription_cancellation": false, "subscription_confirmation": false, "subscription_cycled": true, "subscription_past_due": true, "subscription_revoked": true, "subscription_uncanceled": false, "subscription_updated": true}}} + application/json: {"type": "organization.updated", "timestamp": "2025-08-19T15:02:44.139Z", "data": {"created_at": "2025-08-19T15:02:44.139Z", "modified_at": "2025-05-07T21:24:48.059Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://bustling-cellar.com", "email": "Gerardo.Pagac@yahoo.com", "website": "", "socials": [{"platform": "tiktok", "url": "https://grizzled-patroller.info/"}, {"platform": "tiktok", "url": "https://grizzled-patroller.info/"}], "status": "active", "details_submitted_at": "2023-03-18T14:40:01.326Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false, "revops_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": true, "allow_customer_updates": true, "proration_behavior": "prorate"}, "notification_settings": {"new_order": false, "new_subscription": false}, "customer_email_settings": {"order_confirmation": false, "subscription_cancellation": false, "subscription_confirmation": false, "subscription_cycled": true, "subscription_past_due": true, "subscription_revoked": true, "subscription_uncanceled": false, "subscription_updated": true}}} responses: "200": application/json: "" @@ -2118,7 +2120,7 @@ examples: application/json: {"name": "", "slug": ""} responses: "201": - application/json: {"created_at": "2024-12-19T02:20:41.368Z", "modified_at": "2025-03-11T17:26:29.230Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://substantial-wasabi.name", "email": "Queen_Homenick@gmail.com", "website": "", "socials": [{"platform": "other", "url": "https://enchanted-hose.biz"}, {"platform": "other", "url": "https://enchanted-hose.biz"}, {"platform": "other", "url": "https://enchanted-hose.biz"}], "status": "denied", "details_submitted_at": "2023-03-22T18:01:32.205Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": true, "allow_customer_updates": true, "proration_behavior": "invoice"}, "notification_settings": {"new_order": false, "new_subscription": false}, "customer_email_settings": {"order_confirmation": false, "subscription_cancellation": false, "subscription_confirmation": false, "subscription_cycled": false, "subscription_past_due": false, "subscription_revoked": false, "subscription_uncanceled": true, "subscription_updated": false}} + application/json: {"created_at": "2024-12-19T02:20:41.368Z", "modified_at": "2025-03-11T17:26:29.230Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://substantial-wasabi.name", "email": "Queen_Homenick@gmail.com", "website": "", "socials": [{"platform": "other", "url": "https://enchanted-hose.biz"}, {"platform": "other", "url": "https://enchanted-hose.biz"}, {"platform": "other", "url": "https://enchanted-hose.biz"}], "status": "denied", "details_submitted_at": "2023-03-22T18:01:32.205Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false, "revops_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": true, "allow_customer_updates": true, "proration_behavior": "invoice"}, "notification_settings": {"new_order": false, "new_subscription": false}, "customer_email_settings": {"order_confirmation": false, "subscription_cancellation": false, "subscription_confirmation": false, "subscription_cycled": false, "subscription_past_due": false, "subscription_revoked": false, "subscription_uncanceled": true, "subscription_updated": false}} "422": application/json: {} organizations:get: @@ -2128,7 +2130,7 @@ examples: id: "1dbfc517-0bbf-4301-9ba8-555ca42b9737" responses: "200": - application/json: {"created_at": "2024-06-18T23:12:24.609Z", "modified_at": "2024-04-06T22:00:49.347Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://vast-shipper.biz/", "email": "Aron.Aufderhar@hotmail.com", "website": "", "socials": [], "status": "under_review", "details_submitted_at": "2023-03-07T16:26:10.747Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": true, "allow_customer_updates": true, "proration_behavior": "invoice"}, "notification_settings": {"new_order": true, "new_subscription": true}, "customer_email_settings": {"order_confirmation": true, "subscription_cancellation": true, "subscription_confirmation": true, "subscription_cycled": false, "subscription_past_due": false, "subscription_revoked": true, "subscription_uncanceled": false, "subscription_updated": true}} + application/json: {"created_at": "2024-06-18T23:12:24.609Z", "modified_at": "2024-04-06T22:00:49.347Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://vast-shipper.biz/", "email": "Aron.Aufderhar@hotmail.com", "website": "", "socials": [], "status": "under_review", "details_submitted_at": "2023-03-07T16:26:10.747Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false, "revops_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": true, "allow_customer_updates": true, "proration_behavior": "invoice"}, "notification_settings": {"new_order": true, "new_subscription": true}, "customer_email_settings": {"order_confirmation": true, "subscription_cancellation": true, "subscription_confirmation": true, "subscription_cycled": false, "subscription_past_due": false, "subscription_revoked": true, "subscription_uncanceled": false, "subscription_updated": true}} "404": application/json: {"error": "ResourceNotFound", "detail": ""} "422": @@ -2142,7 +2144,7 @@ examples: application/json: {} responses: "200": - application/json: {"created_at": "2024-01-10T12:09:47.665Z", "modified_at": "2025-05-23T11:37:55.182Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://outstanding-gastropod.info", "email": "Kaleb36@gmail.com", "website": "", "socials": [{"platform": "tiktok", "url": "https://official-gerbil.biz/"}], "status": "onboarding_started", "details_submitted_at": "2024-05-05T07:08:22.735Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": false, "allow_customer_updates": false, "proration_behavior": "prorate"}, "notification_settings": {"new_order": true, "new_subscription": false}, "customer_email_settings": {"order_confirmation": true, "subscription_cancellation": false, "subscription_confirmation": false, "subscription_cycled": false, "subscription_past_due": true, "subscription_revoked": true, "subscription_uncanceled": true, "subscription_updated": false}} + application/json: {"created_at": "2024-01-10T12:09:47.665Z", "modified_at": "2025-05-23T11:37:55.182Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://outstanding-gastropod.info", "email": "Kaleb36@gmail.com", "website": "", "socials": [{"platform": "tiktok", "url": "https://official-gerbil.biz/"}], "status": "onboarding_started", "details_submitted_at": "2024-05-05T07:08:22.735Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false, "revops_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": false, "allow_customer_updates": false, "proration_behavior": "prorate"}, "notification_settings": {"new_order": true, "new_subscription": false}, "customer_email_settings": {"order_confirmation": true, "subscription_cancellation": false, "subscription_confirmation": false, "subscription_cycled": false, "subscription_past_due": true, "subscription_revoked": true, "subscription_uncanceled": true, "subscription_updated": false}} "403": application/json: {"error": "NotPermitted", "detail": ""} "404": @@ -2158,7 +2160,7 @@ examples: limit: 10 responses: "200": - application/json: {"items": [{"created_at": "2024-11-06T13:01:30.486Z", "modified_at": "2023-12-05T04:37:49.573Z", "id": "", "amount": 410969, "currency": "Kip", "recurring_interval": "year", "status": "unpaid", "current_period_start": "2025-04-10T00:55:03.476Z", "current_period_end": "2025-09-23T15:13:06.761Z", "trial_start": "2024-10-01T10:10:26.018Z", "trial_end": "2023-12-05T04:37:49.573Z", "cancel_at_period_end": true, "canceled_at": "2023-09-22T22:50:40.236Z", "started_at": "2024-02-22T10:33:19.887Z", "ends_at": "2025-05-03T04:33:34.190Z", "ended_at": "2024-06-12T10:43:36.497Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "missing_features", "customer_cancellation_comment": "", "metadata": {"key": false, "key1": true}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2025-04-30T02:52:35.936Z", "modified_at": "2025-01-06T09:33:07.581Z", "metadata": {"key": ""}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["FR61954506077", "eu_vat"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2025-09-12T12:57:56.639Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=blank"}, "product": {"id": "", "created_at": "2023-10-15T10:48:47.131Z", "modified_at": "2023-11-11T17:51:02.571Z", "trial_interval": "week", "trial_interval_count": 960252, "name": "", "description": "wherever pfft average shampoo", "recurring_interval": "month", "is_recurring": true, "is_archived": false, "organization_id": "", "metadata": {"key": 56869, "key1": "", "key2": ""}, "prices": [{"created_at": "2024-11-06T13:01:30.486Z", "modified_at": "2024-03-26T10:08:00.196Z", "id": "", "amount_type": "free", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}], "benefits": [{"id": "", "created_at": "2023-10-24T11:39:40.303Z", "modified_at": "2024-02-22T10:33:19.887Z", "type": "meter_credit", "description": "impressive while boo an nor uh-huh who metabolise engender", "selectable": false, "deletable": true, "organization_id": "", "metadata": {}, "properties": {"units": 578414, "rollover": true, "meter_id": ""}}], "medias": [], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2025-04-05T16:53:07.702Z", "modified_at": "2024-02-13T11:39:50.769Z", "id": "", "metadata": {"key": false}, "type": "checkbox", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 391050, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2025-04-05T16:53:07.702Z", "modified_at": "2024-02-13T11:39:50.769Z", "id": "", "metadata": {"key": false}, "type": "checkbox", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 391050, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2025-04-05T16:53:07.702Z", "modified_at": "2024-02-13T11:39:50.769Z", "id": "", "metadata": {"key": false}, "type": "checkbox", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 391050, "required": false}]}, "discount": {"duration": "once", "duration_in_months": 787830, "type": "fixed", "amount": 979875, "currency": "Dong", "created_at": "2025-08-12T16:41:58.949Z", "modified_at": "2025-09-23T18:14:38.674Z", "id": "", "metadata": {"key": false}, "name": "", "code": "", "starts_at": "2023-03-23T08:56:59.806Z", "ends_at": "2023-08-31T21:55:20.866Z", "max_redemptions": 924430, "redemptions_count": 978453, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2023-02-14T11:40:41.604Z", "modified_at": "2025-06-20T00:08:29.689Z", "id": "", "amount_type": "fixed", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 333829, "legacy": true}], "meters": [{"created_at": "2025-05-06T10:58:26.450Z", "modified_at": "2023-02-03T13:37:09.685Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": false, "key1": 3339.89}, "created_at": "2023-08-27T05:28:27.611Z", "modified_at": "2025-09-09T13:09:53.525Z", "id": "", "name": "", "filter": {"conjunction": "and", "clauses": []}, "aggregation": {"func": "max", "property": ""}, "organization_id": ""}}]}, {"created_at": "2024-11-06T13:01:30.486Z", "modified_at": "2023-12-05T04:37:49.573Z", "id": "", "amount": 410969, "currency": "Kip", "recurring_interval": "year", "status": "unpaid", "current_period_start": "2025-04-10T00:55:03.476Z", "current_period_end": "2025-09-23T15:13:06.761Z", "trial_start": "2025-09-23T15:13:06.761Z", "trial_end": "2023-09-22T22:50:40.236Z", "cancel_at_period_end": true, "canceled_at": "2023-09-22T22:50:40.236Z", "started_at": "2024-02-22T10:33:19.887Z", "ends_at": "2025-05-03T04:33:34.190Z", "ended_at": "2024-06-12T10:43:36.497Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "missing_features", "customer_cancellation_comment": "", "metadata": {"key": false, "key1": true}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2025-04-30T02:52:35.936Z", "modified_at": "2025-01-06T09:33:07.581Z", "metadata": {"key": ""}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["FR61954506077", "eu_vat"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2025-09-12T12:57:56.639Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=blank"}, "product": {"id": "", "created_at": "2023-10-15T10:48:47.131Z", "modified_at": "2023-11-11T17:51:02.571Z", "trial_interval": "year", "trial_interval_count": 265915, "name": "", "description": "wherever pfft average shampoo", "recurring_interval": "month", "is_recurring": true, "is_archived": false, "organization_id": "", "metadata": {"key": 56869, "key1": "", "key2": ""}, "prices": [{"created_at": "2023-11-06T17:01:08.513Z", "modified_at": "2024-02-16T13:52:05.620Z", "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 316443, "legacy": true}], "benefits": [{"id": "", "created_at": "2023-10-31T03:07:25.971Z", "modified_at": "2025-10-19T08:25:34.806Z", "type": "discord", "description": "even polished which border", "selectable": false, "deletable": false, "organization_id": "", "metadata": {"key": true}, "properties": {"guild_id": "", "role_id": "", "kick_member": false, "guild_token": ""}}], "medias": [], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2025-04-05T16:53:07.702Z", "modified_at": "2024-02-13T11:39:50.769Z", "id": "", "metadata": {"key": false}, "type": "checkbox", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 391050, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2025-04-05T16:53:07.702Z", "modified_at": "2024-02-13T11:39:50.769Z", "id": "", "metadata": {"key": false}, "type": "checkbox", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 391050, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2025-04-05T16:53:07.702Z", "modified_at": "2024-02-13T11:39:50.769Z", "id": "", "metadata": {"key": false}, "type": "checkbox", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 391050, "required": false}]}, "discount": {"duration": "once", "duration_in_months": 787830, "type": "fixed", "amount": 979875, "currency": "Dong", "created_at": "2025-08-12T16:41:58.949Z", "modified_at": "2025-09-23T18:14:38.674Z", "id": "", "metadata": {"key": false}, "name": "", "code": "", "starts_at": "2023-03-23T08:56:59.806Z", "ends_at": "2023-08-31T21:55:20.866Z", "max_redemptions": 924430, "redemptions_count": 978453, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2023-08-31T21:55:20.866Z", "modified_at": "2025-12-08T09:13:20.599Z", "id": "", "amount_type": "custom", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "minimum_amount": 132233, "maximum_amount": 740610, "preset_amount": 832181, "legacy": true}], "meters": [{"created_at": "2025-05-06T10:58:26.450Z", "modified_at": "2023-02-03T13:37:09.685Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": false, "key1": 3339.89}, "created_at": "2023-08-27T05:28:27.611Z", "modified_at": "2025-09-09T13:09:53.525Z", "id": "", "name": "", "filter": {"conjunction": "and", "clauses": []}, "aggregation": {"func": "max", "property": ""}, "organization_id": ""}}]}], "pagination": {"total_count": 736417, "max_page": 265899}} + application/json: {"items": [{"created_at": "2024-11-06T13:01:30.486Z", "modified_at": "2023-12-05T04:37:49.573Z", "id": "", "amount": 410969, "currency": "Kip", "recurring_interval": "year", "recurring_interval_count": 742797, "status": "unpaid", "current_period_start": "2025-04-10T00:55:03.476Z", "current_period_end": "2025-09-23T15:13:06.761Z", "trial_start": "2024-10-01T10:10:26.018Z", "trial_end": "2023-12-05T04:37:49.573Z", "cancel_at_period_end": true, "canceled_at": "2023-09-22T22:50:40.236Z", "started_at": "2024-02-22T10:33:19.887Z", "ends_at": "2025-05-03T04:33:34.190Z", "ended_at": "2024-06-12T10:43:36.497Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "missing_features", "customer_cancellation_comment": "", "metadata": {"key": false, "key1": true}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2025-04-30T02:52:35.936Z", "modified_at": "2025-01-06T09:33:07.581Z", "metadata": {"key": ""}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["FR61954506077", "eu_vat"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2025-09-12T12:57:56.639Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=blank"}, "product": {"id": "", "created_at": "2023-10-15T10:48:47.131Z", "modified_at": "2023-11-11T17:51:02.571Z", "trial_interval": "week", "trial_interval_count": 960252, "name": "", "description": "wherever pfft average shampoo", "recurring_interval": "month", "recurring_interval_count": 616371, "is_recurring": true, "is_archived": false, "organization_id": "", "metadata": {"key": 56869, "key1": "", "key2": ""}, "prices": [{"created_at": "2024-11-06T13:01:30.486Z", "modified_at": "2024-03-26T10:08:00.196Z", "id": "", "amount_type": "free", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}], "benefits": [{"id": "", "created_at": "2023-10-24T11:39:40.303Z", "modified_at": "2024-02-22T10:33:19.887Z", "type": "meter_credit", "description": "impressive while boo an nor uh-huh who metabolise engender", "selectable": false, "deletable": true, "organization_id": "", "metadata": {}, "properties": {"units": 578414, "rollover": true, "meter_id": ""}}], "medias": [], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2025-04-05T16:53:07.702Z", "modified_at": "2024-02-13T11:39:50.769Z", "id": "", "metadata": {"key": false}, "type": "checkbox", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 391050, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2025-04-05T16:53:07.702Z", "modified_at": "2024-02-13T11:39:50.769Z", "id": "", "metadata": {"key": false}, "type": "checkbox", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 391050, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2025-04-05T16:53:07.702Z", "modified_at": "2024-02-13T11:39:50.769Z", "id": "", "metadata": {"key": false}, "type": "checkbox", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 391050, "required": false}]}, "discount": {"duration": "once", "duration_in_months": 787830, "type": "fixed", "amount": 979875, "currency": "Dong", "created_at": "2025-08-12T16:41:58.949Z", "modified_at": "2025-09-23T18:14:38.674Z", "id": "", "metadata": {"key": false}, "name": "", "code": "", "starts_at": "2023-03-23T08:56:59.806Z", "ends_at": "2023-08-31T21:55:20.866Z", "max_redemptions": 924430, "redemptions_count": 978453, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2023-02-14T11:40:41.604Z", "modified_at": "2025-06-20T00:08:29.689Z", "id": "", "amount_type": "fixed", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 333829, "legacy": true}], "meters": [{"created_at": "2025-05-06T10:58:26.450Z", "modified_at": "2023-02-03T13:37:09.685Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": false, "key1": 3339.89}, "created_at": "2023-08-27T05:28:27.611Z", "modified_at": "2025-09-09T13:09:53.525Z", "id": "", "name": "", "filter": {"conjunction": "and", "clauses": []}, "aggregation": {"func": "max", "property": ""}, "organization_id": ""}}]}, {"created_at": "2024-11-06T13:01:30.486Z", "modified_at": "2023-12-05T04:37:49.573Z", "id": "", "amount": 410969, "currency": "Kip", "recurring_interval": "year", "recurring_interval_count": 308570, "status": "unpaid", "current_period_start": "2025-04-10T00:55:03.476Z", "current_period_end": "2025-09-23T15:13:06.761Z", "trial_start": "2025-09-23T15:13:06.761Z", "trial_end": "2023-09-22T22:50:40.236Z", "cancel_at_period_end": true, "canceled_at": "2023-09-22T22:50:40.236Z", "started_at": "2024-02-22T10:33:19.887Z", "ends_at": "2025-05-03T04:33:34.190Z", "ended_at": "2024-06-12T10:43:36.497Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "missing_features", "customer_cancellation_comment": "", "metadata": {"key": false, "key1": true}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2025-04-30T02:52:35.936Z", "modified_at": "2025-01-06T09:33:07.581Z", "metadata": {"key": ""}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["FR61954506077", "eu_vat"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2025-09-12T12:57:56.639Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=blank"}, "product": {"id": "", "created_at": "2023-10-15T10:48:47.131Z", "modified_at": "2023-11-11T17:51:02.571Z", "trial_interval": "year", "trial_interval_count": 265915, "name": "", "description": "wherever pfft average shampoo", "recurring_interval": "month", "recurring_interval_count": 492124, "is_recurring": true, "is_archived": false, "organization_id": "", "metadata": {"key": 56869, "key1": "", "key2": ""}, "prices": [{"created_at": "2023-11-06T17:01:08.513Z", "modified_at": "2024-02-16T13:52:05.620Z", "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 316443, "legacy": true}], "benefits": [{"id": "", "created_at": "2023-10-31T03:07:25.971Z", "modified_at": "2025-10-19T08:25:34.806Z", "type": "discord", "description": "even polished which border", "selectable": false, "deletable": false, "organization_id": "", "metadata": {"key": true}, "properties": {"guild_id": "", "role_id": "", "kick_member": false, "guild_token": ""}}], "medias": [], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2025-04-05T16:53:07.702Z", "modified_at": "2024-02-13T11:39:50.769Z", "id": "", "metadata": {"key": false}, "type": "checkbox", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 391050, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2025-04-05T16:53:07.702Z", "modified_at": "2024-02-13T11:39:50.769Z", "id": "", "metadata": {"key": false}, "type": "checkbox", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 391050, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2025-04-05T16:53:07.702Z", "modified_at": "2024-02-13T11:39:50.769Z", "id": "", "metadata": {"key": false}, "type": "checkbox", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 391050, "required": false}]}, "discount": {"duration": "once", "duration_in_months": 787830, "type": "fixed", "amount": 979875, "currency": "Dong", "created_at": "2025-08-12T16:41:58.949Z", "modified_at": "2025-09-23T18:14:38.674Z", "id": "", "metadata": {"key": false}, "name": "", "code": "", "starts_at": "2023-03-23T08:56:59.806Z", "ends_at": "2023-08-31T21:55:20.866Z", "max_redemptions": 924430, "redemptions_count": 978453, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2023-08-31T21:55:20.866Z", "modified_at": "2025-12-08T09:13:20.599Z", "id": "", "amount_type": "custom", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "minimum_amount": 132233, "maximum_amount": 740610, "preset_amount": 832181, "legacy": true}], "meters": [{"created_at": "2025-05-06T10:58:26.450Z", "modified_at": "2023-02-03T13:37:09.685Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": false, "key1": 3339.89}, "created_at": "2023-08-27T05:28:27.611Z", "modified_at": "2025-09-09T13:09:53.525Z", "id": "", "name": "", "filter": {"conjunction": "and", "clauses": []}, "aggregation": {"func": "max", "property": ""}, "organization_id": ""}}]}], "pagination": {"total_count": 736417, "max_page": 265899}} "422": application/json: {} subscriptions:export: @@ -2178,7 +2180,7 @@ examples: id: "" responses: "200": - application/json: {"created_at": "2023-10-24T15:26:40.431Z", "modified_at": "2024-06-09T21:26:52.968Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "year", "status": "unpaid", "current_period_start": "2024-08-08T06:50:28.568Z", "current_period_end": "2025-04-05T21:01:12.454Z", "trial_start": "2024-06-09T21:26:52.968Z", "trial_end": "2025-09-03T08:50:28.234Z", "cancel_at_period_end": true, "canceled_at": "2024-03-25T01:30:57.659Z", "started_at": "2023-10-17T03:10:19.145Z", "ends_at": "2025-05-09T12:42:07.453Z", "ended_at": "2024-12-02T16:50:43.309Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "other", "customer_cancellation_comment": "", "metadata": {}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2025-07-23T18:45:11.258Z", "modified_at": "2023-03-16T09:19:01.969Z", "metadata": {"key": 66093}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2025-06-01T00:25:19.556Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2023-01-21T13:43:56.084Z", "modified_at": "2025-01-27T14:51:45.522Z", "trial_interval": "year", "trial_interval_count": 753537, "name": "", "description": "excluding than per until sans supposing soup gladly", "recurring_interval": "month", "is_recurring": false, "is_archived": true, "organization_id": "", "metadata": {}, "prices": [], "benefits": [{"id": "", "created_at": "2025-04-22T15:06:50.313Z", "modified_at": "2024-10-18T20:55:38.436Z", "type": "meter_credit", "description": "swift ugh aha", "selectable": true, "deletable": true, "organization_id": "", "metadata": {"key": false}, "properties": {"units": 99876, "rollover": true, "meter_id": ""}}, {"id": "", "created_at": "2023-01-12T12:52:41.018Z", "modified_at": "2025-09-24T09:48:44.500Z", "type": "custom", "description": "geez apropos aw if apud tail", "selectable": true, "deletable": true, "organization_id": "", "metadata": {"key": 470795, "key1": "", "key2": ""}, "properties": {"note": ""}}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/etc/periodic", "mime_type": "", "size": 247655, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-08-04T09:06:43.687Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-09-10T17:20:17.965Z", "size_readable": "", "public_url": "https://mild-porter.com/"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-09-24T19:46:09.102Z", "modified_at": "2023-12-29T15:05:13.747Z", "id": "", "metadata": {}, "type": "checkbox", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 338803, "required": false}]}, "discount": {"duration": "repeating", "duration_in_months": 22373, "type": "percentage", "basis_points": 226600, "created_at": "2024-02-07T10:08:38.227Z", "modified_at": "2025-12-12T09:46:30.426Z", "id": "", "metadata": {"key": "", "key1": 417.38}, "name": "", "code": "", "starts_at": "2024-11-17T04:20:58.427Z", "ends_at": "2023-10-09T10:14:25.579Z", "max_redemptions": 203995, "redemptions_count": 217253, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2023-07-28T23:00:02.724Z", "modified_at": "2025-03-22T08:23:39.797Z", "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 753537, "legacy": true}, {"created_at": "2023-10-17T03:10:19.145Z", "modified_at": "2024-12-02T16:50:43.309Z", "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "price_amount": 852903, "legacy": true}, {"created_at": "2023-12-06T04:13:55.667Z", "modified_at": null, "id": "", "amount_type": "custom", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "minimum_amount": 18770, "maximum_amount": 664150, "preset_amount": 592977, "legacy": true}], "meters": [{"created_at": "2024-08-06T06:35:30.893Z", "modified_at": "2024-07-29T20:54:27.953Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": 954227, "key1": "", "key2": 891827}, "created_at": "2023-01-22T09:16:54.137Z", "modified_at": "2025-05-04T06:38:30.807Z", "id": "", "name": "", "filter": {"conjunction": "and", "clauses": [{"property": "", "operator": "like", "value": ""}]}, "aggregation": {"func": "sum", "property": ""}, "organization_id": ""}}]} + application/json: {"created_at": "2023-10-24T15:26:40.431Z", "modified_at": "2024-06-09T21:26:52.968Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "year", "recurring_interval_count": 270660, "status": "unpaid", "current_period_start": "2024-08-08T06:50:28.568Z", "current_period_end": "2025-04-05T21:01:12.454Z", "trial_start": "2024-06-09T21:26:52.968Z", "trial_end": "2025-09-03T08:50:28.234Z", "cancel_at_period_end": true, "canceled_at": "2024-03-25T01:30:57.659Z", "started_at": "2023-10-17T03:10:19.145Z", "ends_at": "2025-05-09T12:42:07.453Z", "ended_at": "2024-12-02T16:50:43.309Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "other", "customer_cancellation_comment": "", "metadata": {}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2025-07-23T18:45:11.258Z", "modified_at": "2023-03-16T09:19:01.969Z", "metadata": {"key": 66093}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2025-06-01T00:25:19.556Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2023-01-21T13:43:56.084Z", "modified_at": "2025-01-27T14:51:45.522Z", "trial_interval": "year", "trial_interval_count": 753537, "name": "", "description": "excluding than per until sans supposing soup gladly", "recurring_interval": "month", "recurring_interval_count": 190655, "is_recurring": false, "is_archived": true, "organization_id": "", "metadata": {}, "prices": [], "benefits": [{"id": "", "created_at": "2025-04-22T15:06:50.313Z", "modified_at": "2024-10-18T20:55:38.436Z", "type": "meter_credit", "description": "swift ugh aha", "selectable": true, "deletable": true, "organization_id": "", "metadata": {"key": false}, "properties": {"units": 99876, "rollover": true, "meter_id": ""}}, {"id": "", "created_at": "2023-01-12T12:52:41.018Z", "modified_at": "2025-09-24T09:48:44.500Z", "type": "custom", "description": "geez apropos aw if apud tail", "selectable": true, "deletable": true, "organization_id": "", "metadata": {"key": 470795, "key1": "", "key2": ""}, "properties": {"note": ""}}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/etc/periodic", "mime_type": "", "size": 247655, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-08-04T09:06:43.687Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-09-10T17:20:17.965Z", "size_readable": "", "public_url": "https://mild-porter.com/"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-09-24T19:46:09.102Z", "modified_at": "2023-12-29T15:05:13.747Z", "id": "", "metadata": {}, "type": "checkbox", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 338803, "required": false}]}, "discount": {"duration": "repeating", "duration_in_months": 22373, "type": "percentage", "basis_points": 226600, "created_at": "2024-02-07T10:08:38.227Z", "modified_at": "2025-12-12T09:46:30.426Z", "id": "", "metadata": {"key": "", "key1": 417.38}, "name": "", "code": "", "starts_at": "2024-11-17T04:20:58.427Z", "ends_at": "2023-10-09T10:14:25.579Z", "max_redemptions": 203995, "redemptions_count": 217253, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2023-07-28T23:00:02.724Z", "modified_at": "2025-03-22T08:23:39.797Z", "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 753537, "legacy": true}, {"created_at": "2023-10-17T03:10:19.145Z", "modified_at": "2024-12-02T16:50:43.309Z", "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "price_amount": 852903, "legacy": true}, {"created_at": "2023-12-06T04:13:55.667Z", "modified_at": null, "id": "", "amount_type": "custom", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "minimum_amount": 18770, "maximum_amount": 664150, "preset_amount": 592977, "legacy": true}], "meters": [{"created_at": "2024-08-06T06:35:30.893Z", "modified_at": "2024-07-29T20:54:27.953Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": 954227, "key1": "", "key2": 891827}, "created_at": "2023-01-22T09:16:54.137Z", "modified_at": "2025-05-04T06:38:30.807Z", "id": "", "name": "", "filter": {"conjunction": "and", "clauses": [{"property": "", "operator": "like", "value": ""}]}, "aggregation": {"func": "sum", "property": ""}, "organization_id": ""}}]} "404": application/json: {"error": "ResourceNotFound", "detail": ""} "422": @@ -2192,7 +2194,7 @@ examples: application/json: {"product_id": ""} responses: "200": - application/json: {"created_at": "2023-12-04T14:44:14.136Z", "modified_at": "2025-09-04T13:39:15.428Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "year", "status": "unpaid", "current_period_start": "2025-06-25T20:21:44.675Z", "current_period_end": "2024-10-27T19:14:25.505Z", "trial_start": "2023-12-04T14:44:14.136Z", "trial_end": "2023-05-01T08:54:32.351Z", "cancel_at_period_end": true, "canceled_at": "2025-11-08T09:51:13.337Z", "started_at": "2024-09-07T02:23:54.975Z", "ends_at": "2025-07-07T21:05:18.372Z", "ended_at": "2023-05-16T23:35:19.423Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "switched_service", "customer_cancellation_comment": "", "metadata": {"key": 7599.26}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-04-18T02:08:01.183Z", "modified_at": "2023-12-10T00:14:34.013Z", "metadata": {}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2024-02-05T08:01:02.549Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2023-04-14T01:28:56.798Z", "modified_at": "2024-12-22T22:29:17.140Z", "trial_interval": "year", "trial_interval_count": 827417, "name": "", "description": "gratefully unknown mathematics descendant carpool beneath folklore readies", "recurring_interval": "year", "is_recurring": true, "is_archived": false, "organization_id": "", "metadata": {}, "prices": [{"created_at": "2025-09-04T13:39:15.428Z", "modified_at": "2023-06-09T23:09:57.743Z", "id": "", "amount_type": "custom", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "minimum_amount": 607483, "maximum_amount": 951105, "preset_amount": 838393, "legacy": true}, {"created_at": "2023-11-02T08:09:24.083Z", "modified_at": "2025-04-12T21:04:51.008Z", "id": "", "amount_type": "fixed", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "price_amount": 203413, "legacy": true}], "benefits": [{"id": "", "created_at": "2024-11-16T13:49:08.722Z", "modified_at": "2023-04-14T01:28:56.798Z", "type": "license_keys", "description": "even naughty exactly airbrush bench tuber oof unto", "selectable": false, "deletable": false, "organization_id": "", "metadata": {}, "properties": {"prefix": "", "expires": {"ttl": 618413, "timeframe": "year"}, "activations": {"limit": 264689, "enable_customer_admin": false}, "limit_usage": 695724}}, {"id": "", "created_at": "2023-11-21T14:30:03.884Z", "modified_at": "2023-11-01T15:07:10.181Z", "type": "github_repository", "description": "loose meh coaxingly front till", "selectable": false, "deletable": true, "organization_id": "", "metadata": {"key": true}, "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "admin"}}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/obj", "mime_type": "", "size": 775761, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-06-05T23:40:53.246Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-12-16T17:05:05.262Z", "size_readable": "", "public_url": "https://superb-affiliate.info/"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-05-21T22:48:07.053Z", "modified_at": "2025-02-07T00:36:09.693Z", "id": "", "metadata": {"key": 918253}, "type": "text", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 813700, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2024-05-21T22:48:07.053Z", "modified_at": "2025-02-07T00:36:09.693Z", "id": "", "metadata": {"key": 918253}, "type": "text", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 813700, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2024-05-21T22:48:07.053Z", "modified_at": "2025-02-07T00:36:09.693Z", "id": "", "metadata": {"key": 918253}, "type": "text", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 813700, "required": false}]}, "discount": {"duration": "repeating", "duration_in_months": 654209, "type": "fixed", "amount": 728832, "currency": "Lek", "created_at": "2024-12-22T18:45:55.995Z", "modified_at": "2023-10-25T19:43:58.641Z", "id": "", "metadata": {"key": 439701, "key1": false}, "name": "", "code": "", "starts_at": "2024-07-19T02:04:07.878Z", "ends_at": "2025-06-28T09:54:16.532Z", "max_redemptions": 790930, "redemptions_count": 804484, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2025-08-23T21:00:15.788Z", "modified_at": "2023-07-03T20:56:01.589Z", "id": "", "amount_type": "custom", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "minimum_amount": 470672, "maximum_amount": 112104, "preset_amount": 56828, "legacy": true}, {"created_at": "2023-07-25T04:53:58.897Z", "modified_at": "2024-05-04T07:42:36.145Z", "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 601191, "legacy": true}], "meters": [{"created_at": "2025-04-26T17:12:22.786Z", "modified_at": "2023-04-28T00:55:49.762Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {}, "created_at": "2025-03-03T20:20:51.909Z", "modified_at": "2023-04-27T13:02:42.826Z", "id": "", "name": "", "filter": {"conjunction": "and", "clauses": []}, "aggregation": {"func": "min", "property": ""}, "organization_id": ""}}, {"created_at": "2025-04-26T17:12:22.786Z", "modified_at": "2023-04-28T00:55:49.762Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {}, "created_at": "2025-03-03T20:20:51.909Z", "modified_at": "2023-04-27T13:02:42.826Z", "id": "", "name": "", "filter": {"conjunction": "and", "clauses": []}, "aggregation": {"func": "min", "property": ""}, "organization_id": ""}}]} + application/json: {"created_at": "2023-12-04T14:44:14.136Z", "modified_at": "2025-09-04T13:39:15.428Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "year", "recurring_interval_count": 297120, "status": "unpaid", "current_period_start": "2025-06-25T20:21:44.675Z", "current_period_end": "2024-10-27T19:14:25.505Z", "trial_start": "2023-12-04T14:44:14.136Z", "trial_end": "2023-05-01T08:54:32.351Z", "cancel_at_period_end": true, "canceled_at": "2025-11-08T09:51:13.337Z", "started_at": "2024-09-07T02:23:54.975Z", "ends_at": "2025-07-07T21:05:18.372Z", "ended_at": "2023-05-16T23:35:19.423Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "switched_service", "customer_cancellation_comment": "", "metadata": {"key": 7599.26}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-04-18T02:08:01.183Z", "modified_at": "2023-12-10T00:14:34.013Z", "metadata": {}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2024-02-05T08:01:02.549Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2023-04-14T01:28:56.798Z", "modified_at": "2024-12-22T22:29:17.140Z", "trial_interval": "year", "trial_interval_count": 827417, "name": "", "description": "gratefully unknown mathematics descendant carpool beneath folklore readies", "recurring_interval": "year", "recurring_interval_count": 891943, "is_recurring": true, "is_archived": false, "organization_id": "", "metadata": {}, "prices": [{"created_at": "2025-09-04T13:39:15.428Z", "modified_at": "2023-06-09T23:09:57.743Z", "id": "", "amount_type": "custom", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "minimum_amount": 607483, "maximum_amount": 951105, "preset_amount": 838393, "legacy": true}, {"created_at": "2023-11-02T08:09:24.083Z", "modified_at": "2025-04-12T21:04:51.008Z", "id": "", "amount_type": "fixed", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "price_amount": 203413, "legacy": true}], "benefits": [{"id": "", "created_at": "2024-11-16T13:49:08.722Z", "modified_at": "2023-04-14T01:28:56.798Z", "type": "license_keys", "description": "even naughty exactly airbrush bench tuber oof unto", "selectable": false, "deletable": false, "organization_id": "", "metadata": {}, "properties": {"prefix": "", "expires": {"ttl": 618413, "timeframe": "year"}, "activations": {"limit": 264689, "enable_customer_admin": false}, "limit_usage": 695724}}, {"id": "", "created_at": "2023-11-21T14:30:03.884Z", "modified_at": "2023-11-01T15:07:10.181Z", "type": "github_repository", "description": "loose meh coaxingly front till", "selectable": false, "deletable": true, "organization_id": "", "metadata": {"key": true}, "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "admin"}}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/obj", "mime_type": "", "size": 775761, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-06-05T23:40:53.246Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-12-16T17:05:05.262Z", "size_readable": "", "public_url": "https://superb-affiliate.info/"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-05-21T22:48:07.053Z", "modified_at": "2025-02-07T00:36:09.693Z", "id": "", "metadata": {"key": 918253}, "type": "text", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 813700, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2024-05-21T22:48:07.053Z", "modified_at": "2025-02-07T00:36:09.693Z", "id": "", "metadata": {"key": 918253}, "type": "text", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 813700, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2024-05-21T22:48:07.053Z", "modified_at": "2025-02-07T00:36:09.693Z", "id": "", "metadata": {"key": 918253}, "type": "text", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 813700, "required": false}]}, "discount": {"duration": "repeating", "duration_in_months": 654209, "type": "fixed", "amount": 728832, "currency": "Lek", "created_at": "2024-12-22T18:45:55.995Z", "modified_at": "2023-10-25T19:43:58.641Z", "id": "", "metadata": {"key": 439701, "key1": false}, "name": "", "code": "", "starts_at": "2024-07-19T02:04:07.878Z", "ends_at": "2025-06-28T09:54:16.532Z", "max_redemptions": 790930, "redemptions_count": 804484, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2025-08-23T21:00:15.788Z", "modified_at": "2023-07-03T20:56:01.589Z", "id": "", "amount_type": "custom", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "minimum_amount": 470672, "maximum_amount": 112104, "preset_amount": 56828, "legacy": true}, {"created_at": "2023-07-25T04:53:58.897Z", "modified_at": "2024-05-04T07:42:36.145Z", "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 601191, "legacy": true}], "meters": [{"created_at": "2025-04-26T17:12:22.786Z", "modified_at": "2023-04-28T00:55:49.762Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {}, "created_at": "2025-03-03T20:20:51.909Z", "modified_at": "2023-04-27T13:02:42.826Z", "id": "", "name": "", "filter": {"conjunction": "and", "clauses": []}, "aggregation": {"func": "min", "property": ""}, "organization_id": ""}}, {"created_at": "2025-04-26T17:12:22.786Z", "modified_at": "2023-04-28T00:55:49.762Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {}, "created_at": "2025-03-03T20:20:51.909Z", "modified_at": "2023-04-27T13:02:42.826Z", "id": "", "name": "", "filter": {"conjunction": "and", "clauses": []}, "aggregation": {"func": "min", "property": ""}, "organization_id": ""}}]} "403": application/json: {"error": "AlreadyCanceledSubscription", "detail": ""} "404": @@ -2208,7 +2210,7 @@ examples: id: "" responses: "200": - application/json: {"created_at": "2023-04-13T16:53:14.377Z", "modified_at": "2024-01-29T22:30:46.801Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "status": "incomplete", "current_period_start": "2024-11-08T14:37:06.133Z", "current_period_end": "2024-09-21T11:35:55.569Z", "trial_start": null, "trial_end": "2023-10-09T16:03:24.107Z", "cancel_at_period_end": false, "canceled_at": "2025-03-29T10:01:06.463Z", "started_at": "2023-03-31T11:27:51.165Z", "ends_at": "2025-05-03T12:35:08.460Z", "ended_at": "2025-09-12T16:35:27.128Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "too_complex", "customer_cancellation_comment": "", "metadata": {"key": "", "key1": "", "key2": 423433}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2025-09-25T04:14:25.732Z", "modified_at": "2023-09-27T07:00:27.919Z", "metadata": {"key": "", "key1": false, "key2": ""}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2025-02-06T08:24:11.064Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2023-04-05T19:10:22.088Z", "modified_at": "2023-04-10T09:03:41.839Z", "trial_interval": "week", "trial_interval_count": 618257, "name": "", "description": "nor yowza meh ethyl where once exotic", "recurring_interval": "year", "is_recurring": true, "is_archived": false, "organization_id": "", "metadata": {}, "prices": [{"created_at": "2023-10-09T16:03:24.107Z", "modified_at": "2023-10-18T20:01:51.483Z", "id": "", "amount_type": "fixed", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 574346, "legacy": true}, {"created_at": "2023-03-31T11:27:51.165Z", "modified_at": "2025-09-12T16:35:27.128Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "legacy": true}], "benefits": [{"id": "", "created_at": "2024-01-06T03:14:58.710Z", "modified_at": "2025-10-19T08:05:33.466Z", "type": "meter_credit", "description": "oh outlying minister yuck boastfully meh forenenst", "selectable": false, "deletable": false, "organization_id": "", "metadata": {"key": true, "key1": "", "key2": ""}, "properties": {"units": 662183, "rollover": false, "meter_id": ""}}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/boot/defaults", "mime_type": "", "size": 502181, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-09-11T21:28:13.979Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2025-11-25T14:48:27.950Z", "size_readable": "", "public_url": "https://sugary-backburn.info/"}, {"id": "", "organization_id": "", "name": "", "path": "/boot/defaults", "mime_type": "", "size": 502181, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-09-11T21:28:13.979Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2025-11-25T14:48:27.950Z", "size_readable": "", "public_url": "https://sugary-backburn.info/"}, {"id": "", "organization_id": "", "name": "", "path": "/boot/defaults", "mime_type": "", "size": 502181, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-09-11T21:28:13.979Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2025-11-25T14:48:27.950Z", "size_readable": "", "public_url": "https://sugary-backburn.info/"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-12-16T04:55:22.696Z", "modified_at": "2025-07-13T21:55:11.751Z", "id": "", "metadata": {}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 712744, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2023-12-16T04:55:22.696Z", "modified_at": "2025-07-13T21:55:11.751Z", "id": "", "metadata": {}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 712744, "required": false}]}, "discount": {"duration": "repeating", "duration_in_months": 940650, "type": "fixed", "amount": 88536, "currency": "Falkland Islands Pound", "created_at": "2024-03-23T02:00:57.683Z", "modified_at": "2025-12-03T01:54:33.549Z", "id": "", "metadata": {"key": 6385.42, "key1": 535188}, "name": "", "code": "", "starts_at": "2024-03-07T13:08:37.198Z", "ends_at": "2023-03-31T15:44:09.382Z", "max_redemptions": 130085, "redemptions_count": 811746, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2025-09-25T04:14:25.732Z", "modified_at": "2025-11-14T15:31:42.442Z", "id": "", "amount_type": "fixed", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 606069, "legacy": true}, {"created_at": "2025-05-21T20:43:29.354Z", "modified_at": "2023-04-05T19:10:22.088Z", "id": "", "amount_type": "free", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}, {"created_at": "2023-04-14T01:49:23.359Z", "modified_at": "2023-02-27T03:18:26.391Z", "id": "", "amount_type": "custom", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "minimum_amount": null, "maximum_amount": 75257, "preset_amount": 135909, "legacy": true}], "meters": [{"created_at": "2024-06-12T17:02:50.103Z", "modified_at": "2023-12-20T01:23:41.559Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": "", "key1": false, "key2": true}, "created_at": "2023-07-25T11:48:05.422Z", "modified_at": "2025-08-20T14:57:29.284Z", "id": "", "name": "", "filter": {"conjunction": "and", "clauses": []}, "aggregation": {"func": "min", "property": ""}, "organization_id": ""}}]} + application/json: {"created_at": "2023-04-13T16:53:14.377Z", "modified_at": "2024-01-29T22:30:46.801Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "recurring_interval_count": 93707, "status": "incomplete", "current_period_start": "2024-11-08T14:37:06.133Z", "current_period_end": "2024-09-21T11:35:55.569Z", "trial_start": null, "trial_end": "2023-10-09T16:03:24.107Z", "cancel_at_period_end": false, "canceled_at": "2025-03-29T10:01:06.463Z", "started_at": "2023-03-31T11:27:51.165Z", "ends_at": "2025-05-03T12:35:08.460Z", "ended_at": "2025-09-12T16:35:27.128Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "too_complex", "customer_cancellation_comment": "", "metadata": {"key": "", "key1": "", "key2": 423433}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2025-09-25T04:14:25.732Z", "modified_at": "2023-09-27T07:00:27.919Z", "metadata": {"key": "", "key1": false, "key2": ""}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2025-02-06T08:24:11.064Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2023-04-05T19:10:22.088Z", "modified_at": "2023-04-10T09:03:41.839Z", "trial_interval": "week", "trial_interval_count": 618257, "name": "", "description": "nor yowza meh ethyl where once exotic", "recurring_interval": "year", "recurring_interval_count": 256997, "is_recurring": true, "is_archived": false, "organization_id": "", "metadata": {}, "prices": [{"created_at": "2023-10-09T16:03:24.107Z", "modified_at": "2023-10-18T20:01:51.483Z", "id": "", "amount_type": "fixed", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 574346, "legacy": true}, {"created_at": "2023-03-31T11:27:51.165Z", "modified_at": "2025-09-12T16:35:27.128Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "legacy": true}], "benefits": [{"id": "", "created_at": "2024-01-06T03:14:58.710Z", "modified_at": "2025-10-19T08:05:33.466Z", "type": "meter_credit", "description": "oh outlying minister yuck boastfully meh forenenst", "selectable": false, "deletable": false, "organization_id": "", "metadata": {"key": true, "key1": "", "key2": ""}, "properties": {"units": 662183, "rollover": false, "meter_id": ""}}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/boot/defaults", "mime_type": "", "size": 502181, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-09-11T21:28:13.979Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2025-11-25T14:48:27.950Z", "size_readable": "", "public_url": "https://sugary-backburn.info/"}, {"id": "", "organization_id": "", "name": "", "path": "/boot/defaults", "mime_type": "", "size": 502181, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-09-11T21:28:13.979Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2025-11-25T14:48:27.950Z", "size_readable": "", "public_url": "https://sugary-backburn.info/"}, {"id": "", "organization_id": "", "name": "", "path": "/boot/defaults", "mime_type": "", "size": 502181, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-09-11T21:28:13.979Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2025-11-25T14:48:27.950Z", "size_readable": "", "public_url": "https://sugary-backburn.info/"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-12-16T04:55:22.696Z", "modified_at": "2025-07-13T21:55:11.751Z", "id": "", "metadata": {}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 712744, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2023-12-16T04:55:22.696Z", "modified_at": "2025-07-13T21:55:11.751Z", "id": "", "metadata": {}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 712744, "required": false}]}, "discount": {"duration": "repeating", "duration_in_months": 940650, "type": "fixed", "amount": 88536, "currency": "Falkland Islands Pound", "created_at": "2024-03-23T02:00:57.683Z", "modified_at": "2025-12-03T01:54:33.549Z", "id": "", "metadata": {"key": 6385.42, "key1": 535188}, "name": "", "code": "", "starts_at": "2024-03-07T13:08:37.198Z", "ends_at": "2023-03-31T15:44:09.382Z", "max_redemptions": 130085, "redemptions_count": 811746, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2025-09-25T04:14:25.732Z", "modified_at": "2025-11-14T15:31:42.442Z", "id": "", "amount_type": "fixed", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 606069, "legacy": true}, {"created_at": "2025-05-21T20:43:29.354Z", "modified_at": "2023-04-05T19:10:22.088Z", "id": "", "amount_type": "free", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}, {"created_at": "2023-04-14T01:49:23.359Z", "modified_at": "2023-02-27T03:18:26.391Z", "id": "", "amount_type": "custom", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "minimum_amount": null, "maximum_amount": 75257, "preset_amount": 135909, "legacy": true}], "meters": [{"created_at": "2024-06-12T17:02:50.103Z", "modified_at": "2023-12-20T01:23:41.559Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": "", "key1": false, "key2": true}, "created_at": "2023-07-25T11:48:05.422Z", "modified_at": "2025-08-20T14:57:29.284Z", "id": "", "name": "", "filter": {"conjunction": "and", "clauses": []}, "aggregation": {"func": "min", "property": ""}, "organization_id": ""}}]} "403": application/json: {"error": "AlreadyCanceledSubscription", "detail": ""} "404": @@ -2262,7 +2264,7 @@ examples: oauth2:clients:oauth2:create_client: speakeasy-default-oauth2-:clients:oauth2-:create-client: requestBody: - application/json: {"redirect_uris": ["https://impolite-hippodrome.com/", "https://acidic-tomography.net/"], "token_endpoint_auth_method": "client_secret_post", "scope": "openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write transactions:read transactions:write payouts:read payouts:write products:read products:write benefits:read benefits:write events:read events:write meters:read meters:write files:read files:write subscriptions:read subscriptions:write customers:read customers:write customer_meters:read customer_sessions:write orders:read orders:write refunds:read refunds:write payments:read metrics:read webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write customer_portal:read customer_portal:write notifications:read notifications:write notification_recipients:read notification_recipients:write", "client_name": ""} + application/json: {"redirect_uris": ["https://impolite-hippodrome.com/", "https://acidic-tomography.net/"], "token_endpoint_auth_method": "client_secret_post", "scope": "openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write transactions:read transactions:write payouts:read payouts:write products:read products:write benefits:read benefits:write events:read events:write meters:read meters:write files:read files:write subscriptions:read subscriptions:write customers:read customers:write customer_meters:read customer_sessions:write customer_seats:read customer_seats:write orders:read orders:write refunds:read refunds:write payments:read metrics:read webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write customer_portal:read customer_portal:write notifications:read notifications:write notification_recipients:read notification_recipients:write", "client_name": ""} responses: "200": application/json: "" @@ -2284,7 +2286,7 @@ examples: path: client_id: "" requestBody: - application/json: {"redirect_uris": ["https://classic-cantaloupe.org", "https://corrupt-status.biz/"], "token_endpoint_auth_method": "client_secret_post", "scope": "openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write transactions:read transactions:write payouts:read payouts:write products:read products:write benefits:read benefits:write events:read events:write meters:read meters:write files:read files:write subscriptions:read subscriptions:write customers:read customers:write customer_meters:read customer_sessions:write orders:read orders:write refunds:read refunds:write payments:read metrics:read webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write customer_portal:read customer_portal:write notifications:read notifications:write notification_recipients:read notification_recipients:write", "client_name": "", "client_id": ""} + application/json: {"redirect_uris": ["https://classic-cantaloupe.org", "https://corrupt-status.biz/"], "token_endpoint_auth_method": "client_secret_post", "scope": "openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write transactions:read transactions:write payouts:read payouts:write products:read products:write benefits:read benefits:write events:read events:write meters:read meters:write files:read files:write subscriptions:read subscriptions:write customers:read customers:write customer_meters:read customer_sessions:write customer_seats:read customer_seats:write orders:read orders:write refunds:read refunds:write payments:read metrics:read webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write customer_portal:read customer_portal:write notifications:read notifications:write notification_recipients:read notification_recipients:write", "client_name": "", "client_id": ""} responses: "200": application/json: "" @@ -2392,7 +2394,7 @@ examples: application/json: {"name": "", "prices": [{"amount_type": "fixed", "price_amount": 677078, "price_currency": "usd"}, {"amount_type": "free"}], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "recurring_interval": "year"} responses: "201": - application/json: {"id": "", "created_at": "2025-11-10T04:18:09.355Z", "modified_at": "2025-05-29T07:43:37.272Z", "trial_interval": "month", "trial_interval_count": null, "name": "", "description": "well-worn against cash unless offensively chromakey exempt dense cruelly peony", "recurring_interval": "month", "is_recurring": false, "is_archived": true, "organization_id": "", "metadata": {"key": 80552, "key1": true}, "prices": [{"created_at": "2023-04-20T14:04:54.240Z", "modified_at": "2024-11-07T17:01:01.790Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}, {"created_at": "2024-03-29T16:30:59.890Z", "modified_at": "2025-08-23T16:40:00.782Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}, {"created_at": "2023-11-12T20:54:36.929Z", "modified_at": null, "id": "", "amount_type": "custom", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "minimum_amount": 845799, "maximum_amount": 402294, "preset_amount": 275452, "legacy": true}], "benefits": [{"id": "", "created_at": "2024-09-03T10:29:09.446Z", "modified_at": "2023-04-05T23:26:37.255Z", "type": "meter_credit", "description": "if enlightened altruistic now defendant against rough generally", "selectable": false, "deletable": false, "organization_id": "", "metadata": {"key": true, "key1": true}, "properties": {"units": 59387, "rollover": true, "meter_id": ""}}, {"id": "", "created_at": "2025-09-01T18:31:34.532Z", "modified_at": "2025-01-16T14:11:06.328Z", "type": "license_keys", "description": "laughter considering cruelly tuber outfit regarding searchingly cheerful backburn uncork", "selectable": false, "deletable": false, "organization_id": "", "metadata": {"key": false}, "properties": {"prefix": "", "expires": {"ttl": 440726, "timeframe": "year"}, "activations": {"limit": 22376, "enable_customer_admin": false}, "limit_usage": 941841}}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt/share", "mime_type": "", "size": 240583, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-03-26T21:01:01.612Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-05-24T09:45:08.513Z", "size_readable": "", "public_url": "https://enlightened-bend.org/"}, {"id": "", "organization_id": "", "name": "", "path": "/opt/share", "mime_type": "", "size": 240583, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-03-26T21:01:01.612Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-05-24T09:45:08.513Z", "size_readable": "", "public_url": "https://enlightened-bend.org/"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-01-25T19:00:17.332Z", "modified_at": "2025-03-21T18:41:22.294Z", "id": "", "metadata": {"key": false, "key1": false}, "type": "select", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {"options": [{"value": "", "label": ""}]}}, "order": 731078, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2023-01-25T19:00:17.332Z", "modified_at": "2025-03-21T18:41:22.294Z", "id": "", "metadata": {"key": false, "key1": false}, "type": "select", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {"options": [{"value": "", "label": ""}]}}, "order": 731078, "required": false}]} + application/json: {"id": "", "created_at": "2025-11-10T04:18:09.355Z", "modified_at": "2025-05-29T07:43:37.272Z", "trial_interval": "month", "trial_interval_count": null, "name": "", "description": "well-worn against cash unless offensively chromakey exempt dense cruelly peony", "recurring_interval": "month", "recurring_interval_count": 746612, "is_recurring": false, "is_archived": true, "organization_id": "", "metadata": {"key": 80552, "key1": true}, "prices": [{"created_at": "2023-04-20T14:04:54.240Z", "modified_at": "2024-11-07T17:01:01.790Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}, {"created_at": "2024-03-29T16:30:59.890Z", "modified_at": "2025-08-23T16:40:00.782Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}, {"created_at": "2023-11-12T20:54:36.929Z", "modified_at": null, "id": "", "amount_type": "custom", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "minimum_amount": 845799, "maximum_amount": 402294, "preset_amount": 275452, "legacy": true}], "benefits": [{"id": "", "created_at": "2024-09-03T10:29:09.446Z", "modified_at": "2023-04-05T23:26:37.255Z", "type": "meter_credit", "description": "if enlightened altruistic now defendant against rough generally", "selectable": false, "deletable": false, "organization_id": "", "metadata": {"key": true, "key1": true}, "properties": {"units": 59387, "rollover": true, "meter_id": ""}}, {"id": "", "created_at": "2025-09-01T18:31:34.532Z", "modified_at": "2025-01-16T14:11:06.328Z", "type": "license_keys", "description": "laughter considering cruelly tuber outfit regarding searchingly cheerful backburn uncork", "selectable": false, "deletable": false, "organization_id": "", "metadata": {"key": false}, "properties": {"prefix": "", "expires": {"ttl": 440726, "timeframe": "year"}, "activations": {"limit": 22376, "enable_customer_admin": false}, "limit_usage": 941841}}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt/share", "mime_type": "", "size": 240583, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-03-26T21:01:01.612Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-05-24T09:45:08.513Z", "size_readable": "", "public_url": "https://enlightened-bend.org/"}, {"id": "", "organization_id": "", "name": "", "path": "/opt/share", "mime_type": "", "size": 240583, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-03-26T21:01:01.612Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-05-24T09:45:08.513Z", "size_readable": "", "public_url": "https://enlightened-bend.org/"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-01-25T19:00:17.332Z", "modified_at": "2025-03-21T18:41:22.294Z", "id": "", "metadata": {"key": false, "key1": false}, "type": "select", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {"options": [{"value": "", "label": ""}]}}, "order": 731078, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2023-01-25T19:00:17.332Z", "modified_at": "2025-03-21T18:41:22.294Z", "id": "", "metadata": {"key": false, "key1": false}, "type": "select", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {"options": [{"value": "", "label": ""}]}}, "order": 731078, "required": false}]} "422": application/json: {} products:get: @@ -2402,7 +2404,7 @@ examples: id: "" responses: "200": - application/json: {"id": "", "created_at": "2024-02-13T06:53:33.624Z", "modified_at": "2024-11-15T06:10:35.209Z", "trial_interval": "month", "trial_interval_count": 612534, "name": "", "description": "openly far aha", "recurring_interval": "month", "is_recurring": true, "is_archived": true, "organization_id": "", "metadata": {"key": 645523, "key1": 6512.93}, "prices": [{"created_at": "2023-05-12T13:18:24.858Z", "modified_at": "2023-05-14T01:41:35.647Z", "id": "", "amount_type": "fixed", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 730788, "legacy": true}, {"created_at": "2023-11-27T09:27:19.424Z", "modified_at": "2025-05-27T01:17:58.930Z", "id": "", "amount_type": "fixed", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 949423, "legacy": true}], "benefits": [], "medias": [], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2025-08-18T18:14:37.343Z", "modified_at": "2023-08-05T17:10:22.217Z", "id": "", "metadata": {"key": 9460.87}, "type": "date", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 803169, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2025-08-18T18:14:37.343Z", "modified_at": "2023-08-05T17:10:22.217Z", "id": "", "metadata": {"key": 9460.87}, "type": "date", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 803169, "required": true}]} + application/json: {"id": "", "created_at": "2024-02-13T06:53:33.624Z", "modified_at": "2024-11-15T06:10:35.209Z", "trial_interval": "month", "trial_interval_count": 612534, "name": "", "description": "openly far aha", "recurring_interval": "month", "recurring_interval_count": 624323, "is_recurring": true, "is_archived": true, "organization_id": "", "metadata": {"key": 645523, "key1": 6512.93}, "prices": [{"created_at": "2023-05-12T13:18:24.858Z", "modified_at": "2023-05-14T01:41:35.647Z", "id": "", "amount_type": "fixed", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 730788, "legacy": true}, {"created_at": "2023-11-27T09:27:19.424Z", "modified_at": "2025-05-27T01:17:58.930Z", "id": "", "amount_type": "fixed", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 949423, "legacy": true}], "benefits": [], "medias": [], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2025-08-18T18:14:37.343Z", "modified_at": "2023-08-05T17:10:22.217Z", "id": "", "metadata": {"key": 9460.87}, "type": "date", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 803169, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2025-08-18T18:14:37.343Z", "modified_at": "2023-08-05T17:10:22.217Z", "id": "", "metadata": {"key": 9460.87}, "type": "date", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 803169, "required": true}]} "404": application/json: {"error": "ResourceNotFound", "detail": ""} "422": @@ -2416,7 +2418,7 @@ examples: application/json: {} responses: "200": - application/json: {"id": "", "created_at": "2025-08-13T18:42:45.673Z", "modified_at": "2025-09-30T18:01:46.763Z", "trial_interval": "year", "trial_interval_count": 568567, "name": "", "description": "alongside whereas between furthermore nectarine continually eventually almost", "recurring_interval": "month", "is_recurring": true, "is_archived": false, "organization_id": "", "metadata": {"key": "", "key1": 9813.27}, "prices": [{"created_at": "2025-03-29T03:16:47.365Z", "modified_at": "2024-11-10T13:10:18.334Z", "id": "", "amount_type": "metered_unit", "is_archived": true, "product_id": "", "type": "one_time", "recurring_interval": "year", "price_currency": "", "unit_amount": "", "cap_amount": 810331, "meter_id": "", "meter": {"id": "", "name": ""}}, {"created_at": "2023-03-16T05:56:58.712Z", "modified_at": "2023-10-14T10:41:20.148Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}, {"created_at": "2023-03-13T00:56:00.286Z", "modified_at": null, "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "legacy": true}], "benefits": [{"id": "", "created_at": "2025-03-26T19:40:33.861Z", "modified_at": "2025-11-12T21:49:08.100Z", "type": "license_keys", "description": "ugh vet where congregate boo private", "selectable": true, "deletable": false, "organization_id": "", "metadata": {}, "properties": {"prefix": "", "expires": {"ttl": 690038, "timeframe": "month"}, "activations": {"limit": 758922, "enable_customer_admin": true}, "limit_usage": 960181}}, {"id": "", "created_at": "2025-07-11T04:31:49.594Z", "modified_at": "2023-10-02T14:57:16.070Z", "type": "github_repository", "description": "devastation via over youthful calculus after ectoderm remark", "selectable": true, "deletable": true, "organization_id": "", "metadata": {"key": 2975.13, "key1": 6724.05, "key2": 3431.33}, "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "pull"}}, {"id": "", "created_at": "2025-07-11T04:31:49.594Z", "modified_at": "2023-10-02T14:57:16.070Z", "type": "github_repository", "description": "devastation via over youthful calculus after ectoderm remark", "selectable": true, "deletable": true, "organization_id": "", "metadata": {"key": 2975.13, "key1": 6724.05, "key2": 3431.33}, "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "pull"}}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/local/bin", "mime_type": "", "size": 323073, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-03-27T05:23:22.243Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-10-03T15:14:36.417Z", "size_readable": "", "public_url": "https://impolite-sanity.name"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-06-22T21:14:52.198Z", "modified_at": "2023-03-16T13:18:02.502Z", "id": "", "metadata": {"key": "", "key1": 841085}, "type": "date", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 221074, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2024-06-22T21:14:52.198Z", "modified_at": "2023-03-16T13:18:02.502Z", "id": "", "metadata": {"key": "", "key1": 841085}, "type": "date", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 221074, "required": true}]} + application/json: {"id": "", "created_at": "2025-08-13T18:42:45.673Z", "modified_at": "2025-09-30T18:01:46.763Z", "trial_interval": "year", "trial_interval_count": 568567, "name": "", "description": "alongside whereas between furthermore nectarine continually eventually almost", "recurring_interval": "month", "recurring_interval_count": 915832, "is_recurring": true, "is_archived": false, "organization_id": "", "metadata": {"key": "", "key1": 9813.27}, "prices": [{"created_at": "2025-03-29T03:16:47.365Z", "modified_at": "2024-11-10T13:10:18.334Z", "id": "", "amount_type": "metered_unit", "is_archived": true, "product_id": "", "type": "one_time", "recurring_interval": "year", "price_currency": "", "unit_amount": "", "cap_amount": 810331, "meter_id": "", "meter": {"id": "", "name": ""}}, {"created_at": "2023-03-16T05:56:58.712Z", "modified_at": "2023-10-14T10:41:20.148Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}, {"created_at": "2023-03-13T00:56:00.286Z", "modified_at": null, "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "legacy": true}], "benefits": [{"id": "", "created_at": "2025-03-26T19:40:33.861Z", "modified_at": "2025-11-12T21:49:08.100Z", "type": "license_keys", "description": "ugh vet where congregate boo private", "selectable": true, "deletable": false, "organization_id": "", "metadata": {}, "properties": {"prefix": "", "expires": {"ttl": 690038, "timeframe": "month"}, "activations": {"limit": 758922, "enable_customer_admin": true}, "limit_usage": 960181}}, {"id": "", "created_at": "2025-07-11T04:31:49.594Z", "modified_at": "2023-10-02T14:57:16.070Z", "type": "github_repository", "description": "devastation via over youthful calculus after ectoderm remark", "selectable": true, "deletable": true, "organization_id": "", "metadata": {"key": 2975.13, "key1": 6724.05, "key2": 3431.33}, "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "pull"}}, {"id": "", "created_at": "2025-07-11T04:31:49.594Z", "modified_at": "2023-10-02T14:57:16.070Z", "type": "github_repository", "description": "devastation via over youthful calculus after ectoderm remark", "selectable": true, "deletable": true, "organization_id": "", "metadata": {"key": 2975.13, "key1": 6724.05, "key2": 3431.33}, "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "pull"}}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/local/bin", "mime_type": "", "size": 323073, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-03-27T05:23:22.243Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-10-03T15:14:36.417Z", "size_readable": "", "public_url": "https://impolite-sanity.name"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-06-22T21:14:52.198Z", "modified_at": "2023-03-16T13:18:02.502Z", "id": "", "metadata": {"key": "", "key1": 841085}, "type": "date", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 221074, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2024-06-22T21:14:52.198Z", "modified_at": "2023-03-16T13:18:02.502Z", "id": "", "metadata": {"key": "", "key1": 841085}, "type": "date", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 221074, "required": true}]} "403": application/json: {"error": "NotPermitted", "detail": ""} "404": @@ -2432,7 +2434,7 @@ examples: application/json: {"benefits": ["", "", ""]} responses: "200": - application/json: {"id": "", "created_at": "2023-09-28T22:38:03.685Z", "modified_at": "2025-09-11T11:40:02.608Z", "trial_interval": "day", "trial_interval_count": 342996, "name": "", "description": "furthermore gadzooks along heartfelt armchair", "recurring_interval": "year", "is_recurring": false, "is_archived": true, "organization_id": "", "metadata": {"key": "", "key1": 824508}, "prices": [{"created_at": "2025-09-11T11:40:02.608Z", "modified_at": "2024-11-03T09:56:56.385Z", "id": "", "amount_type": "custom", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "minimum_amount": 223202, "maximum_amount": 66059, "preset_amount": 500347, "legacy": true}, {"created_at": "2024-12-31T19:50:34.155Z", "modified_at": "2023-04-02T14:04:41.494Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "legacy": true}], "benefits": [{"id": "", "created_at": "2023-06-02T00:23:22.540Z", "modified_at": "2024-05-31T05:24:52.742Z", "type": "downloadables", "description": "smoothly thoughtfully ew vastly", "selectable": false, "deletable": true, "organization_id": "", "metadata": {}, "properties": {"archived": {"key": true, "key1": false, "key2": true}, "files": [""]}}, {"id": "", "created_at": "2025-07-14T20:28:09.518Z", "modified_at": "2023-03-24T02:05:49.942Z", "type": "license_keys", "description": "hurtful pfft as", "selectable": false, "deletable": false, "organization_id": "", "metadata": {"key": 727586}, "properties": {"prefix": "", "expires": {"ttl": 773982, "timeframe": "year"}, "activations": {"limit": 767164, "enable_customer_admin": true}, "limit_usage": 290705}}], "medias": [], "attached_custom_fields": []} + application/json: {"id": "", "created_at": "2023-09-28T22:38:03.685Z", "modified_at": "2025-09-11T11:40:02.608Z", "trial_interval": "day", "trial_interval_count": 342996, "name": "", "description": "furthermore gadzooks along heartfelt armchair", "recurring_interval": "year", "recurring_interval_count": 247211, "is_recurring": false, "is_archived": true, "organization_id": "", "metadata": {"key": "", "key1": 824508}, "prices": [{"created_at": "2025-09-11T11:40:02.608Z", "modified_at": "2024-11-03T09:56:56.385Z", "id": "", "amount_type": "custom", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "minimum_amount": 223202, "maximum_amount": 66059, "preset_amount": 500347, "legacy": true}, {"created_at": "2024-12-31T19:50:34.155Z", "modified_at": "2023-04-02T14:04:41.494Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "legacy": true}], "benefits": [{"id": "", "created_at": "2023-06-02T00:23:22.540Z", "modified_at": "2024-05-31T05:24:52.742Z", "type": "downloadables", "description": "smoothly thoughtfully ew vastly", "selectable": false, "deletable": true, "organization_id": "", "metadata": {}, "properties": {"archived": {"key": true, "key1": false, "key2": true}, "files": [""]}}, {"id": "", "created_at": "2025-07-14T20:28:09.518Z", "modified_at": "2023-03-24T02:05:49.942Z", "type": "license_keys", "description": "hurtful pfft as", "selectable": false, "deletable": false, "organization_id": "", "metadata": {"key": 727586}, "properties": {"prefix": "", "expires": {"ttl": 773982, "timeframe": "year"}, "activations": {"limit": 767164, "enable_customer_admin": true}, "limit_usage": 290705}}], "medias": [], "attached_custom_fields": []} "403": application/json: {"error": "NotPermitted", "detail": ""} "404": @@ -2448,7 +2450,7 @@ examples: limit: 10 responses: "200": - application/json: {"items": [{"id": "", "created_at": "2023-03-26T01:22:53.189Z", "modified_at": "2024-11-04T15:48:31.857Z", "status": "paid", "paid": true, "subtotal_amount": 683153, "discount_amount": 15468, "net_amount": 962179, "tax_amount": 991685, "total_amount": 449820, "applied_balance_amount": 901379, "due_amount": 465509, "refunded_amount": 375942, "refunded_tax_amount": 70124, "currency": "Lari", "billing_reason": "subscription_cycle", "billing_name": "", "billing_address": {"country": "SE"}, "invoice_number": "", "is_invoice_generated": true, "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "metadata": {"key": "", "key1": 168484}, "platform_fee_amount": 901379, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2023-06-07T16:49:48.090Z", "modified_at": "2024-03-16T14:29:40.056Z", "metadata": {"key": 4796.75, "key1": 7966.23}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "SE"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2023-11-19T00:38:00.028Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=blank"}, "user_id": "", "product": {"metadata": {"key": "", "key1": 7205.08, "key2": true}, "id": "", "created_at": "2024-12-17T18:55:26.610Z", "modified_at": "2023-11-20T18:12:18.120Z", "trial_interval": "week", "trial_interval_count": null, "name": "", "description": "oh or vaguely quirkily duh", "recurring_interval": "month", "is_recurring": false, "is_archived": false, "organization_id": ""}, "discount": {"duration": "once", "type": "fixed", "basis_points": 921804, "created_at": "2025-05-29T03:48:01.862Z", "modified_at": "2025-08-06T07:48:44.190Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2024-10-17T01:51:06.324Z", "ends_at": "2025-12-29T08:26:12.317Z", "max_redemptions": 601808, "redemptions_count": 424670, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "subscription": {"metadata": {"key": true, "key1": 8768.62, "key2": ""}, "created_at": "2025-06-23T19:27:45.328Z", "modified_at": "2023-12-18T01:13:35.875Z", "id": "", "amount": 627024, "currency": "Zloty", "recurring_interval": "year", "status": "incomplete", "current_period_start": "2025-05-07T19:16:05.707Z", "current_period_end": "2024-09-09T03:33:00.669Z", "trial_start": "2024-02-10T15:29:33.963Z", "trial_end": "2023-01-17T22:53:29.526Z", "cancel_at_period_end": true, "canceled_at": "2024-11-05T22:56:54.203Z", "started_at": "2023-11-09T23:24:19.979Z", "ends_at": "2024-08-14T13:19:22.767Z", "ended_at": "2023-08-05T05:15:40.074Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "switched_service", "customer_cancellation_comment": ""}, "items": [{"created_at": "2023-03-15T19:46:41.506Z", "modified_at": "2025-07-11T05:36:23.203Z", "id": "", "label": "", "amount": 830628, "tax_amount": 546296, "proration": false, "product_price_id": ""}, {"created_at": "2023-03-15T19:46:41.506Z", "modified_at": "2025-07-11T05:36:23.203Z", "id": "", "label": "", "amount": 830628, "tax_amount": 546296, "proration": false, "product_price_id": ""}]}], "pagination": {"total_count": 214063, "max_page": 775794}} + application/json: {"items": [{"id": "", "created_at": "2023-03-26T01:22:53.189Z", "modified_at": "2024-11-04T15:48:31.857Z", "status": "paid", "paid": true, "subtotal_amount": 683153, "discount_amount": 15468, "net_amount": 962179, "tax_amount": 991685, "total_amount": 449820, "applied_balance_amount": 901379, "due_amount": 465509, "refunded_amount": 375942, "refunded_tax_amount": 70124, "currency": "Lari", "billing_reason": "subscription_cycle", "billing_name": "", "billing_address": {"country": "SE"}, "invoice_number": "", "is_invoice_generated": true, "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "metadata": {"key": "", "key1": 168484}, "platform_fee_amount": 901379, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2023-06-07T16:49:48.090Z", "modified_at": "2024-03-16T14:29:40.056Z", "metadata": {"key": 4796.75, "key1": 7966.23}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "SE"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2023-11-19T00:38:00.028Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=blank"}, "user_id": "", "product": {"metadata": {"key": "", "key1": 7205.08, "key2": true}, "id": "", "created_at": "2024-12-17T18:55:26.610Z", "modified_at": "2023-11-20T18:12:18.120Z", "trial_interval": "week", "trial_interval_count": null, "name": "", "description": "oh or vaguely quirkily duh", "recurring_interval": "month", "recurring_interval_count": 465509, "is_recurring": false, "is_archived": false, "organization_id": ""}, "discount": {"duration": "once", "type": "fixed", "basis_points": 921804, "created_at": "2025-05-29T03:48:01.862Z", "modified_at": "2025-08-06T07:48:44.190Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2024-10-17T01:51:06.324Z", "ends_at": "2025-12-29T08:26:12.317Z", "max_redemptions": 601808, "redemptions_count": 424670, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "subscription": {"metadata": {"key": true, "key1": 8768.62, "key2": ""}, "created_at": "2025-06-23T19:27:45.328Z", "modified_at": "2023-12-18T01:13:35.875Z", "id": "", "amount": 627024, "currency": "Zloty", "recurring_interval": "year", "recurring_interval_count": 76694, "status": "incomplete", "current_period_start": "2025-05-07T19:16:05.707Z", "current_period_end": "2024-09-09T03:33:00.669Z", "trial_start": "2024-02-10T15:29:33.963Z", "trial_end": "2023-01-17T22:53:29.526Z", "cancel_at_period_end": true, "canceled_at": "2024-11-05T22:56:54.203Z", "started_at": "2023-11-09T23:24:19.979Z", "ends_at": "2024-08-14T13:19:22.767Z", "ended_at": "2023-08-05T05:15:40.074Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "switched_service", "customer_cancellation_comment": ""}, "items": [{"created_at": "2023-03-15T19:46:41.506Z", "modified_at": "2025-07-11T05:36:23.203Z", "id": "", "label": "", "amount": 830628, "tax_amount": 546296, "proration": false, "product_price_id": ""}, {"created_at": "2023-03-15T19:46:41.506Z", "modified_at": "2025-07-11T05:36:23.203Z", "id": "", "label": "", "amount": 830628, "tax_amount": 546296, "proration": false, "product_price_id": ""}], "description": "Pro Plan"}], "pagination": {"total_count": 214063, "max_page": 775794}} "422": application/json: {} orders:get: @@ -2458,7 +2460,7 @@ examples: id: "" responses: "200": - application/json: {"id": "", "created_at": "2023-12-28T18:05:05.494Z", "modified_at": "2024-09-12T14:13:02.565Z", "status": "partially_refunded", "paid": true, "subtotal_amount": 10000, "discount_amount": 1000, "net_amount": 9000, "tax_amount": 720, "total_amount": 9720, "applied_balance_amount": 0, "due_amount": 0, "refunded_amount": 0, "refunded_tax_amount": 0, "currency": "usd", "billing_reason": "subscription_cycle", "billing_name": "", "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": false, "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "metadata": {"key": true, "key1": "", "key2": 118198}, "platform_fee_amount": 500, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-07-30T11:43:08.034Z", "modified_at": "2025-05-05T10:55:45.051Z", "metadata": {"key": 901534, "key1": "", "key2": ""}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2023-03-07T16:00:18.030Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "user_id": "", "product": {"metadata": {"key": 709557, "key1": true, "key2": 1589.86}, "id": "", "created_at": "2024-06-13T05:22:39.981Z", "modified_at": "2023-05-10T23:15:10.867Z", "trial_interval": "month", "trial_interval_count": 421146, "name": "", "description": "best overtrain butter of conclude uniform following duffel unnecessarily", "recurring_interval": "month", "is_recurring": true, "is_archived": false, "organization_id": ""}, "discount": {"duration": "repeating", "duration_in_months": 594941, "type": "fixed", "amount": 291748, "currency": "Zloty", "created_at": "2024-08-24T05:56:05.000Z", "modified_at": "2025-05-25T10:55:47.553Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2025-05-02T18:03:09.146Z", "ends_at": "2025-04-12T12:12:55.923Z", "max_redemptions": 367166, "redemptions_count": 163344, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "subscription": {"metadata": {}, "created_at": "2024-05-07T19:12:33.893Z", "modified_at": "2023-09-11T04:53:01.419Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "year", "status": "past_due", "current_period_start": "2024-01-24T18:55:58.020Z", "current_period_end": "2023-02-25T20:57:53.229Z", "trial_start": "2023-08-07T20:14:05.528Z", "trial_end": "2025-06-12T18:47:01.288Z", "cancel_at_period_end": false, "canceled_at": "2023-08-27T00:00:57.478Z", "started_at": "2025-10-21T11:44:53.761Z", "ends_at": "2024-11-20T14:53:33.415Z", "ended_at": "2025-10-07T14:07:23.284Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "unused", "customer_cancellation_comment": ""}, "items": [{"created_at": "2023-10-06T06:04:08.584Z", "modified_at": "2023-02-22T21:24:50.701Z", "id": "", "label": "", "amount": 935974, "tax_amount": 558821, "proration": false, "product_price_id": ""}, {"created_at": "2023-10-06T06:04:08.584Z", "modified_at": "2023-02-22T21:24:50.701Z", "id": "", "label": "", "amount": 935974, "tax_amount": 558821, "proration": false, "product_price_id": ""}, {"created_at": "2023-10-06T06:04:08.584Z", "modified_at": "2023-02-22T21:24:50.701Z", "id": "", "label": "", "amount": 935974, "tax_amount": 558821, "proration": false, "product_price_id": ""}]} + application/json: {"id": "", "created_at": "2023-12-28T18:05:05.494Z", "modified_at": "2024-09-12T14:13:02.565Z", "status": "partially_refunded", "paid": true, "subtotal_amount": 10000, "discount_amount": 1000, "net_amount": 9000, "tax_amount": 720, "total_amount": 9720, "applied_balance_amount": 0, "due_amount": 0, "refunded_amount": 0, "refunded_tax_amount": 0, "currency": "usd", "billing_reason": "subscription_cycle", "billing_name": "", "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": false, "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "metadata": {"key": true, "key1": "", "key2": 118198}, "platform_fee_amount": 500, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-07-30T11:43:08.034Z", "modified_at": "2025-05-05T10:55:45.051Z", "metadata": {"key": 901534, "key1": "", "key2": ""}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2023-03-07T16:00:18.030Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "user_id": "", "product": {"metadata": {"key": 709557, "key1": true, "key2": 1589.86}, "id": "", "created_at": "2024-06-13T05:22:39.981Z", "modified_at": "2023-05-10T23:15:10.867Z", "trial_interval": "month", "trial_interval_count": 421146, "name": "", "description": "best overtrain butter of conclude uniform following duffel unnecessarily", "recurring_interval": "month", "recurring_interval_count": 566234, "is_recurring": true, "is_archived": false, "organization_id": ""}, "discount": {"duration": "repeating", "duration_in_months": 594941, "type": "fixed", "amount": 291748, "currency": "Zloty", "created_at": "2024-08-24T05:56:05.000Z", "modified_at": "2025-05-25T10:55:47.553Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2025-05-02T18:03:09.146Z", "ends_at": "2025-04-12T12:12:55.923Z", "max_redemptions": 367166, "redemptions_count": 163344, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "subscription": {"metadata": {}, "created_at": "2024-05-07T19:12:33.893Z", "modified_at": "2023-09-11T04:53:01.419Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "year", "recurring_interval_count": 876893, "status": "past_due", "current_period_start": "2024-01-24T18:55:58.020Z", "current_period_end": "2023-02-25T20:57:53.229Z", "trial_start": "2023-08-07T20:14:05.528Z", "trial_end": "2025-06-12T18:47:01.288Z", "cancel_at_period_end": false, "canceled_at": "2023-08-27T00:00:57.478Z", "started_at": "2025-10-21T11:44:53.761Z", "ends_at": "2024-11-20T14:53:33.415Z", "ended_at": "2025-10-07T14:07:23.284Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "unused", "customer_cancellation_comment": ""}, "items": [{"created_at": "2023-10-06T06:04:08.584Z", "modified_at": "2023-02-22T21:24:50.701Z", "id": "", "label": "", "amount": 935974, "tax_amount": 558821, "proration": false, "product_price_id": ""}, {"created_at": "2023-10-06T06:04:08.584Z", "modified_at": "2023-02-22T21:24:50.701Z", "id": "", "label": "", "amount": 935974, "tax_amount": 558821, "proration": false, "product_price_id": ""}, {"created_at": "2023-10-06T06:04:08.584Z", "modified_at": "2023-02-22T21:24:50.701Z", "id": "", "label": "", "amount": 935974, "tax_amount": 558821, "proration": false, "product_price_id": ""}], "description": "Pro Plan"} "404": application/json: {"error": "ResourceNotFound", "detail": ""} "422": @@ -2509,7 +2511,7 @@ examples: limit: 10 responses: "200": - application/json: {"items": [{"id": "", "created_at": "2023-07-14T12:00:22.546Z", "modified_at": "2023-12-31T18:16:55.252Z", "payment_processor": "stripe", "status": "failed", "client_secret": "", "url": "https://old-fashioned-parsnip.info", "expires_at": "2025-09-16T06:18:32.077Z", "success_url": "https://well-documented-basket.com/", "return_url": "https://definite-finer.org/", "embed_origin": "", "amount": 136812, "discount_amount": 815152, "net_amount": 780504, "tax_amount": 766358, "total_amount": 630886, "currency": "Moroccan Dirham", "active_trial_interval": "week", "active_trial_interval_count": 332812, "trial_end": "2024-12-26T22:49:45.749Z", "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "require_billing_address": false, "is_discount_applicable": true, "is_free_product_price": true, "is_payment_required": false, "is_payment_setup_required": false, "is_payment_form_required": true, "customer_id": "", "is_business_customer": true, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "FR"}, "customer_tax_id": "", "payment_processor_metadata": {}, "billing_address_fields": {"country": "required", "state": "optional", "city": "required", "postal_code": "required", "line1": "disabled", "line2": "optional"}, "trial_interval": "month", "trial_interval_count": 902613, "metadata": {}, "external_customer_id": "", "customer_external_id": "", "products": [{"id": "", "created_at": "2025-01-04T19:59:21.584Z", "modified_at": "2023-12-22T17:07:35.582Z", "trial_interval": "year", "trial_interval_count": null, "name": "", "description": "partially flowery how keenly analogy presume smuggle along tennis", "recurring_interval": "year", "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2023-07-14T12:00:22.546Z", "modified_at": "2025-12-02T21:32:42.156Z", "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 645390, "legacy": true}, {"created_at": "2023-08-19T15:22:33.462Z", "modified_at": "2023-03-15T09:19:49.081Z", "id": "", "amount_type": "free", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "legacy": true}, {"created_at": "2025-04-19T22:15:44.328Z", "modified_at": "2024-07-26T10:32:13.861Z", "id": "", "amount_type": "metered_unit", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "unit_amount": "", "cap_amount": 762494, "meter_id": "", "meter": {"id": "", "name": ""}}], "benefits": [{"id": "", "created_at": "2025-02-09T15:50:30.304Z", "modified_at": "2025-01-28T15:09:33.411Z", "type": "downloadables", "description": "where store rim yippee accidentally likely councilman since but supposing", "selectable": true, "deletable": true, "organization_id": ""}, {"id": "", "created_at": "2025-02-09T15:50:30.304Z", "modified_at": "2025-01-28T15:09:33.411Z", "type": "downloadables", "description": "where store rim yippee accidentally likely councilman since but supposing", "selectable": true, "deletable": true, "organization_id": ""}, {"id": "", "created_at": "2025-02-09T15:50:30.304Z", "modified_at": "2025-01-28T15:09:33.411Z", "type": "downloadables", "description": "where store rim yippee accidentally likely councilman since but supposing", "selectable": true, "deletable": true, "organization_id": ""}], "medias": []}], "product": {"id": "", "created_at": "2025-12-18T01:46:49.772Z", "modified_at": "2024-11-19T22:32:44.522Z", "trial_interval": "day", "trial_interval_count": 780504, "name": "", "description": "capsize regularly before maintainer whitewash", "recurring_interval": "month", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2023-04-08T17:49:25.686Z", "modified_at": "2023-10-28T07:54:05.646Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "legacy": true}, {"created_at": "2024-11-04T23:36:29.431Z", "modified_at": "2025-12-08T17:45:07.884Z", "id": "", "amount_type": "metered_unit", "is_archived": false, "product_id": "", "type": "one_time", "recurring_interval": "month", "price_currency": "", "unit_amount": "", "cap_amount": 381287, "meter_id": "", "meter": {"id": "", "name": ""}}], "benefits": [{"id": "", "created_at": "2025-02-09T15:50:30.304Z", "modified_at": "2025-01-28T15:09:33.411Z", "type": "downloadables", "description": "where store rim yippee accidentally likely councilman since but supposing", "selectable": true, "deletable": true, "organization_id": ""}, {"id": "", "created_at": "2025-02-09T15:50:30.304Z", "modified_at": "2025-01-28T15:09:33.411Z", "type": "downloadables", "description": "where store rim yippee accidentally likely councilman since but supposing", "selectable": true, "deletable": true, "organization_id": ""}, {"id": "", "created_at": "2025-02-09T15:50:30.304Z", "modified_at": "2025-01-28T15:09:33.411Z", "type": "downloadables", "description": "where store rim yippee accidentally likely councilman since but supposing", "selectable": true, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/Network", "mime_type": "", "size": 331360, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-02-10T04:14:48.186Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2024-04-04T18:01:42.388Z", "size_readable": "", "public_url": "https://eminent-dandelion.biz/"}, {"id": "", "organization_id": "", "name": "", "path": "/Network", "mime_type": "", "size": 331360, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-02-10T04:14:48.186Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2024-04-04T18:01:42.388Z", "size_readable": "", "public_url": "https://eminent-dandelion.biz/"}]}, "product_price": {"created_at": "2024-09-10T18:33:19.981Z", "modified_at": "2023-03-17T07:48:37.284Z", "id": "", "amount_type": "metered_unit", "is_archived": false, "product_id": "", "type": "one_time", "recurring_interval": "year", "price_currency": "", "unit_amount": "", "cap_amount": null, "meter_id": "", "meter": {"id": "", "name": ""}}, "discount": {"duration": "once", "type": "percentage", "basis_points": 484258, "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2025-07-24T12:38:52.606Z", "modified_at": "2024-08-31T06:13:03.406Z", "id": "", "metadata": {"key": 5379.07, "key1": 55288}, "type": "text", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 499873, "required": true}], "customer_metadata": {"key": true, "key1": 645893, "key2": ""}}], "pagination": {"total_count": 187979, "max_page": 912185}} + application/json: {"items": [{"id": "", "created_at": "2023-07-14T12:00:22.546Z", "modified_at": "2023-12-31T18:16:55.252Z", "payment_processor": "stripe", "status": "failed", "client_secret": "", "url": "https://old-fashioned-parsnip.info", "expires_at": "2025-09-16T06:18:32.077Z", "success_url": "https://well-documented-basket.com/", "return_url": "https://definite-finer.org/", "embed_origin": "", "amount": 136812, "discount_amount": 815152, "net_amount": 780504, "tax_amount": 766358, "total_amount": 630886, "currency": "Moroccan Dirham", "active_trial_interval": "week", "active_trial_interval_count": 332812, "trial_end": "2024-12-26T22:49:45.749Z", "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "require_billing_address": false, "is_discount_applicable": true, "is_free_product_price": true, "is_payment_required": false, "is_payment_setup_required": false, "is_payment_form_required": true, "customer_id": "", "is_business_customer": true, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "FR"}, "customer_tax_id": "", "payment_processor_metadata": {}, "billing_address_fields": {"country": "required", "state": "optional", "city": "required", "postal_code": "required", "line1": "disabled", "line2": "optional"}, "trial_interval": "month", "trial_interval_count": 902613, "metadata": {}, "external_customer_id": "", "customer_external_id": "", "products": [{"id": "", "created_at": "2025-01-04T19:59:21.584Z", "modified_at": "2023-12-22T17:07:35.582Z", "trial_interval": "year", "trial_interval_count": null, "name": "", "description": "partially flowery how keenly analogy presume smuggle along tennis", "recurring_interval": "year", "recurring_interval_count": 345801, "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2023-07-14T12:00:22.546Z", "modified_at": "2025-12-02T21:32:42.156Z", "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 645390, "legacy": true}, {"created_at": "2023-08-19T15:22:33.462Z", "modified_at": "2023-03-15T09:19:49.081Z", "id": "", "amount_type": "free", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "legacy": true}, {"created_at": "2025-04-19T22:15:44.328Z", "modified_at": "2024-07-26T10:32:13.861Z", "id": "", "amount_type": "metered_unit", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "unit_amount": "", "cap_amount": 762494, "meter_id": "", "meter": {"id": "", "name": ""}}], "benefits": [{"id": "", "created_at": "2025-02-09T15:50:30.304Z", "modified_at": "2025-01-28T15:09:33.411Z", "type": "downloadables", "description": "where store rim yippee accidentally likely councilman since but supposing", "selectable": true, "deletable": true, "organization_id": ""}, {"id": "", "created_at": "2025-02-09T15:50:30.304Z", "modified_at": "2025-01-28T15:09:33.411Z", "type": "downloadables", "description": "where store rim yippee accidentally likely councilman since but supposing", "selectable": true, "deletable": true, "organization_id": ""}, {"id": "", "created_at": "2025-02-09T15:50:30.304Z", "modified_at": "2025-01-28T15:09:33.411Z", "type": "downloadables", "description": "where store rim yippee accidentally likely councilman since but supposing", "selectable": true, "deletable": true, "organization_id": ""}], "medias": []}], "product": {"id": "", "created_at": "2025-12-18T01:46:49.772Z", "modified_at": "2024-11-19T22:32:44.522Z", "trial_interval": "day", "trial_interval_count": 780504, "name": "", "description": "capsize regularly before maintainer whitewash", "recurring_interval": "month", "recurring_interval_count": 332812, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2023-04-08T17:49:25.686Z", "modified_at": "2023-10-28T07:54:05.646Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "legacy": true}, {"created_at": "2024-11-04T23:36:29.431Z", "modified_at": "2025-12-08T17:45:07.884Z", "id": "", "amount_type": "metered_unit", "is_archived": false, "product_id": "", "type": "one_time", "recurring_interval": "month", "price_currency": "", "unit_amount": "", "cap_amount": 381287, "meter_id": "", "meter": {"id": "", "name": ""}}], "benefits": [{"id": "", "created_at": "2025-02-09T15:50:30.304Z", "modified_at": "2025-01-28T15:09:33.411Z", "type": "downloadables", "description": "where store rim yippee accidentally likely councilman since but supposing", "selectable": true, "deletable": true, "organization_id": ""}, {"id": "", "created_at": "2025-02-09T15:50:30.304Z", "modified_at": "2025-01-28T15:09:33.411Z", "type": "downloadables", "description": "where store rim yippee accidentally likely councilman since but supposing", "selectable": true, "deletable": true, "organization_id": ""}, {"id": "", "created_at": "2025-02-09T15:50:30.304Z", "modified_at": "2025-01-28T15:09:33.411Z", "type": "downloadables", "description": "where store rim yippee accidentally likely councilman since but supposing", "selectable": true, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/Network", "mime_type": "", "size": 331360, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-02-10T04:14:48.186Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2024-04-04T18:01:42.388Z", "size_readable": "", "public_url": "https://eminent-dandelion.biz/"}, {"id": "", "organization_id": "", "name": "", "path": "/Network", "mime_type": "", "size": 331360, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-02-10T04:14:48.186Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2024-04-04T18:01:42.388Z", "size_readable": "", "public_url": "https://eminent-dandelion.biz/"}]}, "product_price": {"created_at": "2024-09-10T18:33:19.981Z", "modified_at": "2023-03-17T07:48:37.284Z", "id": "", "amount_type": "metered_unit", "is_archived": false, "product_id": "", "type": "one_time", "recurring_interval": "year", "price_currency": "", "unit_amount": "", "cap_amount": null, "meter_id": "", "meter": {"id": "", "name": ""}}, "discount": {"duration": "once", "type": "percentage", "basis_points": 484258, "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2025-07-24T12:38:52.606Z", "modified_at": "2024-08-31T06:13:03.406Z", "id": "", "metadata": {"key": 5379.07, "key1": 55288}, "type": "text", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 499873, "required": true}], "customer_metadata": {"key": true, "key1": 645893, "key2": ""}}], "pagination": {"total_count": 187979, "max_page": 912185}} "422": application/json: {} checkouts:create: @@ -2518,7 +2520,7 @@ examples: application/json: {"allow_discount_codes": true, "require_billing_address": false, "is_business_customer": false, "customer_billing_address": {"country": "US"}, "products": ["", "", ""]} responses: "201": - application/json: {"id": "", "created_at": "2024-01-03T23:26:44.843Z", "modified_at": "2023-12-22T12:47:17.057Z", "payment_processor": "stripe", "status": "open", "client_secret": "", "url": "https://limp-violin.name", "expires_at": "2024-03-25T01:44:28.012Z", "success_url": "https://turbulent-wasabi.com", "return_url": "https://great-fen.com", "embed_origin": "", "amount": 441643, "discount_amount": 452269, "net_amount": 267381, "tax_amount": 51493, "total_amount": 549002, "currency": "Peso Uruguayo", "active_trial_interval": "year", "active_trial_interval_count": 324391, "trial_end": null, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": true, "require_billing_address": false, "is_discount_applicable": false, "is_free_product_price": false, "is_payment_required": false, "is_payment_setup_required": true, "is_payment_form_required": true, "customer_id": "", "is_business_customer": false, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_processor_metadata": {"key": ""}, "billing_address_fields": {"country": "disabled", "state": "disabled", "city": "optional", "postal_code": "required", "line1": "required", "line2": "disabled"}, "trial_interval": "week", "trial_interval_count": 632047, "metadata": {"key": 646.57, "key1": true}, "external_customer_id": "", "customer_external_id": "", "products": [], "product": {"id": "", "created_at": "2025-03-23T05:05:48.260Z", "modified_at": "2024-06-06T11:28:02.687Z", "trial_interval": "year", "trial_interval_count": 978623, "name": "", "description": "fondly ew pish until alongside needily", "recurring_interval": "month", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [], "benefits": [{"id": "", "created_at": "2023-12-26T14:14:21.531Z", "modified_at": "2023-11-04T06:09:05.151Z", "type": "discord", "description": "circa now optimistically instruction around toothbrush knottily valuable fashion fedora", "selectable": true, "deletable": false, "organization_id": ""}], "medias": []}, "product_price": {"created_at": "2025-12-16T09:34:38.043Z", "modified_at": "2025-05-29T23:22:21.803Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}, "discount": {"duration": "once", "duration_in_months": 960371, "type": "percentage", "basis_points": 131002, "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-11-07T21:05:16.725Z", "modified_at": "2023-04-03T18:53:55.774Z", "id": "", "metadata": {"key": "", "key1": 3794.08, "key2": 2451.1}, "type": "date", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 202429, "required": true}], "customer_metadata": {"key": true, "key1": false, "key2": ""}} + application/json: {"id": "", "created_at": "2024-01-03T23:26:44.843Z", "modified_at": "2023-12-22T12:47:17.057Z", "payment_processor": "stripe", "status": "open", "client_secret": "", "url": "https://limp-violin.name", "expires_at": "2024-03-25T01:44:28.012Z", "success_url": "https://turbulent-wasabi.com", "return_url": "https://great-fen.com", "embed_origin": "", "amount": 441643, "discount_amount": 452269, "net_amount": 267381, "tax_amount": 51493, "total_amount": 549002, "currency": "Peso Uruguayo", "active_trial_interval": "year", "active_trial_interval_count": 324391, "trial_end": null, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": true, "require_billing_address": false, "is_discount_applicable": false, "is_free_product_price": false, "is_payment_required": false, "is_payment_setup_required": true, "is_payment_form_required": true, "customer_id": "", "is_business_customer": false, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_processor_metadata": {"key": ""}, "billing_address_fields": {"country": "disabled", "state": "disabled", "city": "optional", "postal_code": "required", "line1": "required", "line2": "disabled"}, "trial_interval": "week", "trial_interval_count": 632047, "metadata": {"key": 646.57, "key1": true}, "external_customer_id": "", "customer_external_id": "", "products": [], "product": {"id": "", "created_at": "2025-03-23T05:05:48.260Z", "modified_at": "2024-06-06T11:28:02.687Z", "trial_interval": "year", "trial_interval_count": 978623, "name": "", "description": "fondly ew pish until alongside needily", "recurring_interval": "month", "recurring_interval_count": 974785, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [], "benefits": [{"id": "", "created_at": "2023-12-26T14:14:21.531Z", "modified_at": "2023-11-04T06:09:05.151Z", "type": "discord", "description": "circa now optimistically instruction around toothbrush knottily valuable fashion fedora", "selectable": true, "deletable": false, "organization_id": ""}], "medias": []}, "product_price": {"created_at": "2025-12-16T09:34:38.043Z", "modified_at": "2025-05-29T23:22:21.803Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}, "discount": {"duration": "once", "duration_in_months": 960371, "type": "percentage", "basis_points": 131002, "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-11-07T21:05:16.725Z", "modified_at": "2023-04-03T18:53:55.774Z", "id": "", "metadata": {"key": "", "key1": 3794.08, "key2": 2451.1}, "type": "date", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 202429, "required": true}], "customer_metadata": {"key": true, "key1": false, "key2": ""}} "422": application/json: {} checkouts:get: @@ -2528,7 +2530,7 @@ examples: id: "" responses: "200": - application/json: {"id": "", "created_at": "2024-08-11T03:11:01.239Z", "modified_at": "2023-07-09T08:26:25.978Z", "payment_processor": "stripe", "status": "failed", "client_secret": "", "url": "https://second-hand-costume.name", "expires_at": "2024-02-29T17:22:54.724Z", "success_url": "https://powerful-jogging.info/", "return_url": "https://willing-ribbon.net/", "embed_origin": "", "amount": 601699, "discount_amount": 565134, "net_amount": 604568, "tax_amount": 435126, "total_amount": 202456, "currency": "Chilean Peso", "active_trial_interval": "day", "active_trial_interval_count": 759954, "trial_end": "2023-08-04T19:41:02.160Z", "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "require_billing_address": false, "is_discount_applicable": false, "is_free_product_price": true, "is_payment_required": false, "is_payment_setup_required": true, "is_payment_form_required": false, "customer_id": "", "is_business_customer": false, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_processor_metadata": {"key": "", "key1": "", "key2": ""}, "billing_address_fields": {"country": "optional", "state": "required", "city": "disabled", "postal_code": "disabled", "line1": "disabled", "line2": "required"}, "trial_interval": "week", "trial_interval_count": 626845, "metadata": {"key": ""}, "external_customer_id": "", "customer_external_id": "", "products": [], "product": {"id": "", "created_at": "2024-05-24T23:34:40.295Z", "modified_at": "2023-06-24T17:35:50.631Z", "trial_interval": "week", "trial_interval_count": 565134, "name": "", "description": "defensive before litter", "recurring_interval": "month", "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/sbin", "mime_type": "", "size": 88132, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-08-25T12:06:48.574Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-05-24T20:26:10.981Z", "size_readable": "", "public_url": "https://untried-pomelo.info/"}, {"id": "", "organization_id": "", "name": "", "path": "/sbin", "mime_type": "", "size": 88132, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-08-25T12:06:48.574Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-05-24T20:26:10.981Z", "size_readable": "", "public_url": "https://untried-pomelo.info/"}]}, "product_price": {"created_at": "2024-08-17T13:31:09.375Z", "modified_at": "2023-03-31T08:32:51.153Z", "id": "", "amount_type": "free", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "legacy": true}, "discount": {"duration": "repeating", "duration_in_months": 798046, "type": "fixed", "basis_points": 969481, "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [], "customer_metadata": {"key": 35277}} + application/json: {"id": "", "created_at": "2024-08-11T03:11:01.239Z", "modified_at": "2023-07-09T08:26:25.978Z", "payment_processor": "stripe", "status": "failed", "client_secret": "", "url": "https://second-hand-costume.name", "expires_at": "2024-02-29T17:22:54.724Z", "success_url": "https://powerful-jogging.info/", "return_url": "https://willing-ribbon.net/", "embed_origin": "", "amount": 601699, "discount_amount": 565134, "net_amount": 604568, "tax_amount": 435126, "total_amount": 202456, "currency": "Chilean Peso", "active_trial_interval": "day", "active_trial_interval_count": 759954, "trial_end": "2023-08-04T19:41:02.160Z", "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "require_billing_address": false, "is_discount_applicable": false, "is_free_product_price": true, "is_payment_required": false, "is_payment_setup_required": true, "is_payment_form_required": false, "customer_id": "", "is_business_customer": false, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_processor_metadata": {"key": "", "key1": "", "key2": ""}, "billing_address_fields": {"country": "optional", "state": "required", "city": "disabled", "postal_code": "disabled", "line1": "disabled", "line2": "required"}, "trial_interval": "week", "trial_interval_count": 626845, "metadata": {"key": ""}, "external_customer_id": "", "customer_external_id": "", "products": [], "product": {"id": "", "created_at": "2024-05-24T23:34:40.295Z", "modified_at": "2023-06-24T17:35:50.631Z", "trial_interval": "week", "trial_interval_count": 565134, "name": "", "description": "defensive before litter", "recurring_interval": "month", "recurring_interval_count": 172766, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/sbin", "mime_type": "", "size": 88132, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-08-25T12:06:48.574Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-05-24T20:26:10.981Z", "size_readable": "", "public_url": "https://untried-pomelo.info/"}, {"id": "", "organization_id": "", "name": "", "path": "/sbin", "mime_type": "", "size": 88132, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-08-25T12:06:48.574Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-05-24T20:26:10.981Z", "size_readable": "", "public_url": "https://untried-pomelo.info/"}]}, "product_price": {"created_at": "2024-08-17T13:31:09.375Z", "modified_at": "2023-03-31T08:32:51.153Z", "id": "", "amount_type": "free", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "legacy": true}, "discount": {"duration": "repeating", "duration_in_months": 798046, "type": "fixed", "basis_points": 969481, "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [], "customer_metadata": {"key": 35277}} "404": application/json: {"error": "ResourceNotFound", "detail": ""} "422": @@ -2542,7 +2544,7 @@ examples: application/json: {"customer_billing_address": {"country": "US"}} responses: "200": - application/json: {"id": "", "created_at": "2025-08-11T13:37:19.351Z", "modified_at": "2025-11-30T19:59:27.996Z", "payment_processor": "stripe", "status": "succeeded", "client_secret": "", "url": "https://bruised-perp.name/", "expires_at": "2024-09-30T14:39:02.951Z", "success_url": "https://acceptable-dusk.biz/", "return_url": "https://winding-pliers.biz", "embed_origin": "", "amount": 108195, "discount_amount": 124468, "net_amount": 854455, "tax_amount": 294901, "total_amount": 889166, "currency": "Tala", "active_trial_interval": "year", "active_trial_interval_count": 682201, "trial_end": "2023-04-12T18:01:42.534Z", "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "require_billing_address": false, "is_discount_applicable": false, "is_free_product_price": true, "is_payment_required": false, "is_payment_setup_required": true, "is_payment_form_required": false, "customer_id": "", "is_business_customer": true, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_processor_metadata": {"key": ""}, "billing_address_fields": {"country": "required", "state": "disabled", "city": "disabled", "postal_code": "disabled", "line1": "required", "line2": "required"}, "trial_interval": "month", "trial_interval_count": 495203, "metadata": {}, "external_customer_id": "", "customer_external_id": "", "products": [{"id": "", "created_at": "2025-05-05T13:39:49.079Z", "modified_at": "2024-03-05T03:00:29.583Z", "trial_interval": null, "trial_interval_count": 186577, "name": "", "description": "verve apologise following yowza", "recurring_interval": "month", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2025-11-30T19:59:27.996Z", "modified_at": "2023-09-30T23:37:22.091Z", "id": "", "amount_type": "free", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}, {"created_at": "2024-06-26T17:48:32.882Z", "modified_at": null, "id": "", "amount_type": "free", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "legacy": true}], "benefits": [{"id": "", "created_at": "2024-10-05T13:48:24.141Z", "modified_at": "2025-06-22T07:10:28.238Z", "type": "meter_credit", "description": "zowie busy flint at fedora minor ew surge now uh-huh", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt/share", "mime_type": "", "size": 399656, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-07-24T16:16:41.264Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-11-20T09:06:18.045Z", "size_readable": "", "public_url": "https://dirty-ownership.net/"}]}, {"id": "", "created_at": "2025-05-05T13:39:49.079Z", "modified_at": "2024-03-05T03:00:29.583Z", "trial_interval": "day", "trial_interval_count": 294901, "name": "", "description": "verve apologise following yowza", "recurring_interval": "month", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2025-09-01T12:37:02.777Z", "modified_at": "2025-10-07T13:38:06.522Z", "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "price_amount": 615287, "legacy": true}, {"created_at": "2024-02-21T06:51:40.935Z", "modified_at": null, "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 391538, "legacy": true}], "benefits": [{"id": "", "created_at": "2024-10-05T13:48:24.141Z", "modified_at": "2025-06-22T07:10:28.238Z", "type": "meter_credit", "description": "zowie busy flint at fedora minor ew surge now uh-huh", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt/share", "mime_type": "", "size": 399656, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-07-24T16:16:41.264Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-11-20T09:06:18.045Z", "size_readable": "", "public_url": "https://dirty-ownership.net/"}]}], "product": {"id": "", "created_at": "2024-03-28T11:40:03.936Z", "modified_at": "2025-11-05T10:03:58.979Z", "trial_interval": "year", "trial_interval_count": 719988, "name": "", "description": "er pupil tangible yogurt pinion", "recurring_interval": "month", "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2024-10-02T23:57:01.225Z", "modified_at": "2024-07-15T07:37:05.227Z", "id": "", "amount_type": "custom", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "minimum_amount": 840966, "maximum_amount": 175107, "preset_amount": 254794, "legacy": true}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt/share", "mime_type": "", "size": 399656, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-07-24T16:16:41.264Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-11-20T09:06:18.045Z", "size_readable": "", "public_url": "https://dirty-ownership.net/"}]}, "product_price": {"created_at": "2025-08-05T13:24:05.246Z", "modified_at": "2025-10-12T01:25:31.801Z", "id": "", "amount_type": "free", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}, "discount": {"duration": "once", "type": "percentage", "basis_points": 6892, "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [], "customer_metadata": {"key": false}} + application/json: {"id": "", "created_at": "2025-08-11T13:37:19.351Z", "modified_at": "2025-11-30T19:59:27.996Z", "payment_processor": "stripe", "status": "succeeded", "client_secret": "", "url": "https://bruised-perp.name/", "expires_at": "2024-09-30T14:39:02.951Z", "success_url": "https://acceptable-dusk.biz/", "return_url": "https://winding-pliers.biz", "embed_origin": "", "amount": 108195, "discount_amount": 124468, "net_amount": 854455, "tax_amount": 294901, "total_amount": 889166, "currency": "Tala", "active_trial_interval": "year", "active_trial_interval_count": 682201, "trial_end": "2023-04-12T18:01:42.534Z", "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "require_billing_address": false, "is_discount_applicable": false, "is_free_product_price": true, "is_payment_required": false, "is_payment_setup_required": true, "is_payment_form_required": false, "customer_id": "", "is_business_customer": true, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_processor_metadata": {"key": ""}, "billing_address_fields": {"country": "required", "state": "disabled", "city": "disabled", "postal_code": "disabled", "line1": "required", "line2": "required"}, "trial_interval": "month", "trial_interval_count": 495203, "metadata": {}, "external_customer_id": "", "customer_external_id": "", "products": [{"id": "", "created_at": "2025-05-05T13:39:49.079Z", "modified_at": "2024-03-05T03:00:29.583Z", "trial_interval": null, "trial_interval_count": 186577, "name": "", "description": "verve apologise following yowza", "recurring_interval": "month", "recurring_interval_count": 870044, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2025-11-30T19:59:27.996Z", "modified_at": "2023-09-30T23:37:22.091Z", "id": "", "amount_type": "free", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}, {"created_at": "2024-06-26T17:48:32.882Z", "modified_at": null, "id": "", "amount_type": "free", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "legacy": true}], "benefits": [{"id": "", "created_at": "2024-10-05T13:48:24.141Z", "modified_at": "2025-06-22T07:10:28.238Z", "type": "meter_credit", "description": "zowie busy flint at fedora minor ew surge now uh-huh", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt/share", "mime_type": "", "size": 399656, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-07-24T16:16:41.264Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-11-20T09:06:18.045Z", "size_readable": "", "public_url": "https://dirty-ownership.net/"}]}, {"id": "", "created_at": "2025-05-05T13:39:49.079Z", "modified_at": "2024-03-05T03:00:29.583Z", "trial_interval": "day", "trial_interval_count": 294901, "name": "", "description": "verve apologise following yowza", "recurring_interval": "month", "recurring_interval_count": 682201, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2025-09-01T12:37:02.777Z", "modified_at": "2025-10-07T13:38:06.522Z", "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "price_amount": 615287, "legacy": true}, {"created_at": "2024-02-21T06:51:40.935Z", "modified_at": null, "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 391538, "legacy": true}], "benefits": [{"id": "", "created_at": "2024-10-05T13:48:24.141Z", "modified_at": "2025-06-22T07:10:28.238Z", "type": "meter_credit", "description": "zowie busy flint at fedora minor ew surge now uh-huh", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt/share", "mime_type": "", "size": 399656, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-07-24T16:16:41.264Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-11-20T09:06:18.045Z", "size_readable": "", "public_url": "https://dirty-ownership.net/"}]}], "product": {"id": "", "created_at": "2024-03-28T11:40:03.936Z", "modified_at": "2025-11-05T10:03:58.979Z", "trial_interval": "year", "trial_interval_count": 719988, "name": "", "description": "er pupil tangible yogurt pinion", "recurring_interval": "month", "recurring_interval_count": 92838, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2024-10-02T23:57:01.225Z", "modified_at": "2024-07-15T07:37:05.227Z", "id": "", "amount_type": "custom", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "minimum_amount": 840966, "maximum_amount": 175107, "preset_amount": 254794, "legacy": true}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt/share", "mime_type": "", "size": 399656, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-07-24T16:16:41.264Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-11-20T09:06:18.045Z", "size_readable": "", "public_url": "https://dirty-ownership.net/"}]}, "product_price": {"created_at": "2025-08-05T13:24:05.246Z", "modified_at": "2025-10-12T01:25:31.801Z", "id": "", "amount_type": "free", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}, "discount": {"duration": "once", "type": "percentage", "basis_points": 6892, "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [], "customer_metadata": {"key": false}} "403": application/json: {"error": "AlreadyActiveSubscriptionError", "detail": ""} "404": @@ -2556,7 +2558,7 @@ examples: client_secret: "" responses: "200": - application/json: {"id": "", "created_at": "2025-06-24T05:51:11.116Z", "modified_at": "2025-07-15T02:19:22.581Z", "payment_processor": "stripe", "status": "failed", "client_secret": "", "url": "https://stable-republican.name", "expires_at": "2025-01-13T08:45:44.792Z", "success_url": "https://trim-coil.name", "return_url": "https://thorny-mathematics.net", "embed_origin": "", "amount": 701062, "discount_amount": 173963, "net_amount": 129651, "tax_amount": 979690, "total_amount": 68566, "currency": "Ethiopian Birr", "active_trial_interval": "year", "active_trial_interval_count": 558443, "trial_end": "2025-03-31T17:00:49.512Z", "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "require_billing_address": false, "is_discount_applicable": false, "is_free_product_price": true, "is_payment_required": false, "is_payment_setup_required": false, "is_payment_form_required": false, "customer_id": "", "is_business_customer": false, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_processor_metadata": {"key": "", "key1": "", "key2": ""}, "billing_address_fields": {"country": "disabled", "state": "disabled", "city": "disabled", "postal_code": "optional", "line1": "disabled", "line2": "disabled"}, "products": [{"id": "", "created_at": "2025-01-14T04:52:19.310Z", "modified_at": "2024-04-20T06:15:24.056Z", "trial_interval": "month", "trial_interval_count": 867631, "name": "", "description": "outrank sometimes round heavily the lest while vastly", "recurring_interval": "year", "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [], "benefits": [{"id": "", "created_at": "2025-06-18T16:43:11.992Z", "modified_at": "2023-06-16T13:07:12.807Z", "type": "downloadables", "description": "but between harangue train boo polished", "selectable": true, "deletable": false, "organization_id": ""}, {"id": "", "created_at": "2025-06-18T16:43:11.992Z", "modified_at": "2023-06-16T13:07:12.807Z", "type": "downloadables", "description": "but between harangue train boo polished", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/etc", "mime_type": "", "size": 894708, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-09-28T05:14:12.847Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-11-15T04:02:31.401Z", "size_readable": "", "public_url": "https://blushing-cinder.com"}]}, {"id": "", "created_at": "2025-01-14T04:52:19.310Z", "modified_at": "2024-04-20T06:15:24.056Z", "trial_interval": "month", "trial_interval_count": 173963, "name": "", "description": "outrank sometimes round heavily the lest while vastly", "recurring_interval": "year", "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [], "benefits": [{"id": "", "created_at": "2025-06-18T16:43:11.992Z", "modified_at": "2023-06-16T13:07:12.807Z", "type": "downloadables", "description": "but between harangue train boo polished", "selectable": true, "deletable": false, "organization_id": ""}, {"id": "", "created_at": "2025-06-18T16:43:11.992Z", "modified_at": "2023-06-16T13:07:12.807Z", "type": "downloadables", "description": "but between harangue train boo polished", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/etc", "mime_type": "", "size": 894708, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-09-28T05:14:12.847Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-11-15T04:02:31.401Z", "size_readable": "", "public_url": "https://blushing-cinder.com"}]}], "product": {"id": "", "created_at": "2024-03-24T04:29:38.701Z", "modified_at": "2025-05-05T01:21:17.988Z", "trial_interval": "year", "trial_interval_count": null, "name": "", "description": "meh including winged mundane spirit snow deselect phew yowza expert", "recurring_interval": "month", "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2025-07-21T02:35:25.261Z", "modified_at": "2025-05-19T02:18:24.778Z", "id": "", "amount_type": "metered_unit", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "unit_amount": "", "cap_amount": 162606, "meter_id": "", "meter": {"id": "", "name": ""}}], "benefits": [{"id": "", "created_at": "2025-06-18T16:43:11.992Z", "modified_at": "2023-06-16T13:07:12.807Z", "type": "downloadables", "description": "but between harangue train boo polished", "selectable": true, "deletable": false, "organization_id": ""}, {"id": "", "created_at": "2025-06-18T16:43:11.992Z", "modified_at": "2023-06-16T13:07:12.807Z", "type": "downloadables", "description": "but between harangue train boo polished", "selectable": true, "deletable": false, "organization_id": ""}, {"id": "", "created_at": "2025-06-18T16:43:11.992Z", "modified_at": "2023-06-16T13:07:12.807Z", "type": "downloadables", "description": "but between harangue train boo polished", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/etc", "mime_type": "", "size": 894708, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-09-28T05:14:12.847Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-11-15T04:02:31.401Z", "size_readable": "", "public_url": "https://blushing-cinder.com"}, {"id": "", "organization_id": "", "name": "", "path": "/etc", "mime_type": "", "size": 894708, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-09-28T05:14:12.847Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-11-15T04:02:31.401Z", "size_readable": "", "public_url": "https://blushing-cinder.com"}]}, "product_price": {"created_at": "2023-11-01T12:44:53.457Z", "modified_at": "2023-02-18T14:14:30.242Z", "id": "", "amount_type": "fixed", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 820923, "legacy": true}, "discount": {"duration": "once", "type": "percentage", "basis_points": 569074, "id": "", "name": "", "code": ""}, "organization": {"created_at": "2024-06-12T08:42:49.560Z", "modified_at": "2025-06-30T05:17:18.282Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://straight-testing.biz", "email": "Aracely20@hotmail.com", "website": "", "socials": [{"platform": "x", "url": "https://energetic-muscat.name/"}], "status": "active", "details_submitted_at": "2023-10-19T10:30:41.227Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": true, "allow_customer_updates": false, "proration_behavior": "prorate"}, "notification_settings": {"new_order": false, "new_subscription": true}, "customer_email_settings": {"order_confirmation": false, "subscription_cancellation": false, "subscription_confirmation": false, "subscription_cycled": false, "subscription_past_due": false, "subscription_revoked": false, "subscription_uncanceled": false, "subscription_updated": false}}, "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2025-07-30T02:52:43.070Z", "modified_at": "2023-06-26T05:50:35.070Z", "id": "", "metadata": {"key": ""}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 848447, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2025-07-30T02:52:43.070Z", "modified_at": "2023-06-26T05:50:35.070Z", "id": "", "metadata": {"key": ""}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 848447, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2025-07-30T02:52:43.070Z", "modified_at": "2023-06-26T05:50:35.070Z", "id": "", "metadata": {"key": ""}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 848447, "required": false}]} + application/json: {"id": "", "created_at": "2025-06-24T05:51:11.116Z", "modified_at": "2025-07-15T02:19:22.581Z", "payment_processor": "stripe", "status": "failed", "client_secret": "", "url": "https://stable-republican.name", "expires_at": "2025-01-13T08:45:44.792Z", "success_url": "https://trim-coil.name", "return_url": "https://thorny-mathematics.net", "embed_origin": "", "amount": 701062, "discount_amount": 173963, "net_amount": 129651, "tax_amount": 979690, "total_amount": 68566, "currency": "Ethiopian Birr", "active_trial_interval": "year", "active_trial_interval_count": 558443, "trial_end": "2025-03-31T17:00:49.512Z", "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "require_billing_address": false, "is_discount_applicable": false, "is_free_product_price": true, "is_payment_required": false, "is_payment_setup_required": false, "is_payment_form_required": false, "customer_id": "", "is_business_customer": false, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_processor_metadata": {"key": "", "key1": "", "key2": ""}, "billing_address_fields": {"country": "disabled", "state": "disabled", "city": "disabled", "postal_code": "optional", "line1": "disabled", "line2": "disabled"}, "products": [{"id": "", "created_at": "2025-01-14T04:52:19.310Z", "modified_at": "2024-04-20T06:15:24.056Z", "trial_interval": "month", "trial_interval_count": 867631, "name": "", "description": "outrank sometimes round heavily the lest while vastly", "recurring_interval": "year", "recurring_interval_count": 844979, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [], "benefits": [{"id": "", "created_at": "2025-06-18T16:43:11.992Z", "modified_at": "2023-06-16T13:07:12.807Z", "type": "downloadables", "description": "but between harangue train boo polished", "selectable": true, "deletable": false, "organization_id": ""}, {"id": "", "created_at": "2025-06-18T16:43:11.992Z", "modified_at": "2023-06-16T13:07:12.807Z", "type": "downloadables", "description": "but between harangue train boo polished", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/etc", "mime_type": "", "size": 894708, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-09-28T05:14:12.847Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-11-15T04:02:31.401Z", "size_readable": "", "public_url": "https://blushing-cinder.com"}]}, {"id": "", "created_at": "2025-01-14T04:52:19.310Z", "modified_at": "2024-04-20T06:15:24.056Z", "trial_interval": "month", "trial_interval_count": 173963, "name": "", "description": "outrank sometimes round heavily the lest while vastly", "recurring_interval": "year", "recurring_interval_count": 558443, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [], "benefits": [{"id": "", "created_at": "2025-06-18T16:43:11.992Z", "modified_at": "2023-06-16T13:07:12.807Z", "type": "downloadables", "description": "but between harangue train boo polished", "selectable": true, "deletable": false, "organization_id": ""}, {"id": "", "created_at": "2025-06-18T16:43:11.992Z", "modified_at": "2023-06-16T13:07:12.807Z", "type": "downloadables", "description": "but between harangue train boo polished", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/etc", "mime_type": "", "size": 894708, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-09-28T05:14:12.847Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-11-15T04:02:31.401Z", "size_readable": "", "public_url": "https://blushing-cinder.com"}]}], "product": {"id": "", "created_at": "2024-03-24T04:29:38.701Z", "modified_at": "2025-05-05T01:21:17.988Z", "trial_interval": "year", "trial_interval_count": null, "name": "", "description": "meh including winged mundane spirit snow deselect phew yowza expert", "recurring_interval": "month", "recurring_interval_count": 748822, "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2025-07-21T02:35:25.261Z", "modified_at": "2025-05-19T02:18:24.778Z", "id": "", "amount_type": "metered_unit", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "unit_amount": "", "cap_amount": 162606, "meter_id": "", "meter": {"id": "", "name": ""}}], "benefits": [{"id": "", "created_at": "2025-06-18T16:43:11.992Z", "modified_at": "2023-06-16T13:07:12.807Z", "type": "downloadables", "description": "but between harangue train boo polished", "selectable": true, "deletable": false, "organization_id": ""}, {"id": "", "created_at": "2025-06-18T16:43:11.992Z", "modified_at": "2023-06-16T13:07:12.807Z", "type": "downloadables", "description": "but between harangue train boo polished", "selectable": true, "deletable": false, "organization_id": ""}, {"id": "", "created_at": "2025-06-18T16:43:11.992Z", "modified_at": "2023-06-16T13:07:12.807Z", "type": "downloadables", "description": "but between harangue train boo polished", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/etc", "mime_type": "", "size": 894708, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-09-28T05:14:12.847Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-11-15T04:02:31.401Z", "size_readable": "", "public_url": "https://blushing-cinder.com"}, {"id": "", "organization_id": "", "name": "", "path": "/etc", "mime_type": "", "size": 894708, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-09-28T05:14:12.847Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-11-15T04:02:31.401Z", "size_readable": "", "public_url": "https://blushing-cinder.com"}]}, "product_price": {"created_at": "2023-11-01T12:44:53.457Z", "modified_at": "2023-02-18T14:14:30.242Z", "id": "", "amount_type": "fixed", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 820923, "legacy": true}, "discount": {"duration": "once", "type": "percentage", "basis_points": 569074, "id": "", "name": "", "code": ""}, "organization": {"created_at": "2024-06-12T08:42:49.560Z", "modified_at": "2025-06-30T05:17:18.282Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://straight-testing.biz", "email": "Aracely20@hotmail.com", "website": "", "socials": [{"platform": "x", "url": "https://energetic-muscat.name/"}], "status": "active", "details_submitted_at": "2023-10-19T10:30:41.227Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false, "revops_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": true, "allow_customer_updates": false, "proration_behavior": "prorate"}, "notification_settings": {"new_order": false, "new_subscription": true}, "customer_email_settings": {"order_confirmation": false, "subscription_cancellation": false, "subscription_confirmation": false, "subscription_cycled": false, "subscription_past_due": false, "subscription_revoked": false, "subscription_uncanceled": false, "subscription_updated": false}}, "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2025-07-30T02:52:43.070Z", "modified_at": "2023-06-26T05:50:35.070Z", "id": "", "metadata": {"key": ""}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 848447, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2025-07-30T02:52:43.070Z", "modified_at": "2023-06-26T05:50:35.070Z", "id": "", "metadata": {"key": ""}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 848447, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2025-07-30T02:52:43.070Z", "modified_at": "2023-06-26T05:50:35.070Z", "id": "", "metadata": {"key": ""}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 848447, "required": false}]} "404": application/json: {"error": "ResourceNotFound", "detail": ""} "410": @@ -2572,7 +2574,7 @@ examples: application/json: {"customer_billing_address": {"country": "US"}} responses: "200": - application/json: {"id": "", "created_at": "2024-07-23T03:29:25.334Z", "modified_at": "2023-07-30T20:21:38.608Z", "payment_processor": "stripe", "status": "expired", "client_secret": "", "url": "https://wordy-metabolite.biz/", "expires_at": "2023-06-01T07:35:27.557Z", "success_url": "https://direct-gradient.name/", "return_url": null, "embed_origin": "", "amount": 128460, "discount_amount": 784848, "net_amount": 566134, "tax_amount": 108102, "total_amount": 304494, "currency": "CFP Franc", "active_trial_interval": null, "active_trial_interval_count": 192380, "trial_end": "2023-10-31T15:08:35.342Z", "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "require_billing_address": false, "is_discount_applicable": true, "is_free_product_price": false, "is_payment_required": true, "is_payment_setup_required": true, "is_payment_form_required": false, "customer_id": "", "is_business_customer": true, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_processor_metadata": {"key": ""}, "billing_address_fields": {"country": "required", "state": "optional", "city": "required", "postal_code": "required", "line1": "required", "line2": "disabled"}, "products": [{"id": "", "created_at": "2024-08-21T22:47:32.897Z", "modified_at": "2024-12-28T18:58:22.635Z", "trial_interval": "month", "trial_interval_count": 138062, "name": "", "description": "until synthesise instead divert indeed oh phrase fisherman bowling", "recurring_interval": "year", "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2023-07-30T20:21:38.608Z", "modified_at": "2023-10-31T15:08:35.342Z", "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 330194, "legacy": true}], "benefits": [{"id": "", "created_at": "2024-09-04T19:51:17.364Z", "modified_at": "2025-08-17T17:13:08.432Z", "type": "license_keys", "description": "aha instead forenenst brush next bah", "selectable": false, "deletable": false, "organization_id": ""}, {"id": "", "created_at": "2024-09-04T19:51:17.364Z", "modified_at": "2025-08-17T17:13:08.432Z", "type": "license_keys", "description": "aha instead forenenst brush next bah", "selectable": false, "deletable": false, "organization_id": ""}, {"id": "", "created_at": "2024-09-04T19:51:17.364Z", "modified_at": "2025-08-17T17:13:08.432Z", "type": "license_keys", "description": "aha instead forenenst brush next bah", "selectable": false, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/src", "mime_type": "", "size": 451285, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-10-12T21:33:36.481Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-08-15T21:23:17.230Z", "size_readable": "", "public_url": "https://gracious-formula.name/"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/src", "mime_type": "", "size": 451285, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-10-12T21:33:36.481Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-08-15T21:23:17.230Z", "size_readable": "", "public_url": "https://gracious-formula.name/"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/src", "mime_type": "", "size": 451285, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-10-12T21:33:36.481Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-08-15T21:23:17.230Z", "size_readable": "", "public_url": "https://gracious-formula.name/"}]}], "product": {"id": "", "created_at": "2025-09-02T13:33:06.739Z", "modified_at": "2024-07-21T15:33:47.494Z", "trial_interval": "day", "trial_interval_count": 636727, "name": "", "description": "overburden loftily pfft silently shudder mmm who", "recurring_interval": "year", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2023-08-03T11:06:01.091Z", "modified_at": "2024-11-28T20:27:45.245Z", "id": "", "amount_type": "fixed", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 566134, "legacy": true}], "benefits": [{"id": "", "created_at": "2024-09-04T19:51:17.364Z", "modified_at": "2025-08-17T17:13:08.432Z", "type": "license_keys", "description": "aha instead forenenst brush next bah", "selectable": false, "deletable": false, "organization_id": ""}, {"id": "", "created_at": "2024-09-04T19:51:17.364Z", "modified_at": "2025-08-17T17:13:08.432Z", "type": "license_keys", "description": "aha instead forenenst brush next bah", "selectable": false, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/src", "mime_type": "", "size": 451285, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-10-12T21:33:36.481Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-08-15T21:23:17.230Z", "size_readable": "", "public_url": "https://gracious-formula.name/"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/src", "mime_type": "", "size": 451285, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-10-12T21:33:36.481Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-08-15T21:23:17.230Z", "size_readable": "", "public_url": "https://gracious-formula.name/"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/src", "mime_type": "", "size": 451285, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-10-12T21:33:36.481Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-08-15T21:23:17.230Z", "size_readable": "", "public_url": "https://gracious-formula.name/"}]}, "product_price": {"created_at": "2023-01-08T23:00:31.069Z", "modified_at": "2023-09-07T11:25:07.070Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "legacy": true}, "discount": {"duration": "forever", "duration_in_months": 601738, "type": "fixed", "amount": 458064, "currency": "Armenian Dram", "id": "", "name": "", "code": ""}, "organization": {"created_at": "2025-04-12T05:47:02.565Z", "modified_at": "2025-01-28T05:59:52.906Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://well-groomed-embarrassment.net/", "email": "Dorthy.Crona6@gmail.com", "website": "", "socials": [], "status": "created", "details_submitted_at": "2025-08-13T01:23:21.707Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": false, "allow_customer_updates": false, "proration_behavior": "invoice"}, "notification_settings": {"new_order": true, "new_subscription": false}, "customer_email_settings": {"order_confirmation": true, "subscription_cancellation": false, "subscription_confirmation": true, "subscription_cycled": true, "subscription_past_due": true, "subscription_revoked": false, "subscription_uncanceled": false, "subscription_updated": true}}, "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-03-31T08:25:33.432Z", "modified_at": "2025-03-21T01:21:45.618Z", "id": "", "metadata": {"key": "", "key1": 848391, "key2": 422.88}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 47495, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2023-03-31T08:25:33.432Z", "modified_at": "2025-03-21T01:21:45.618Z", "id": "", "metadata": {"key": "", "key1": 848391, "key2": 422.88}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 47495, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2023-03-31T08:25:33.432Z", "modified_at": "2025-03-21T01:21:45.618Z", "id": "", "metadata": {"key": "", "key1": 848391, "key2": 422.88}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 47495, "required": false}]} + application/json: {"id": "", "created_at": "2024-07-23T03:29:25.334Z", "modified_at": "2023-07-30T20:21:38.608Z", "payment_processor": "stripe", "status": "expired", "client_secret": "", "url": "https://wordy-metabolite.biz/", "expires_at": "2023-06-01T07:35:27.557Z", "success_url": "https://direct-gradient.name/", "return_url": null, "embed_origin": "", "amount": 128460, "discount_amount": 784848, "net_amount": 566134, "tax_amount": 108102, "total_amount": 304494, "currency": "CFP Franc", "active_trial_interval": null, "active_trial_interval_count": 192380, "trial_end": "2023-10-31T15:08:35.342Z", "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "require_billing_address": false, "is_discount_applicable": true, "is_free_product_price": false, "is_payment_required": true, "is_payment_setup_required": true, "is_payment_form_required": false, "customer_id": "", "is_business_customer": true, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_processor_metadata": {"key": ""}, "billing_address_fields": {"country": "required", "state": "optional", "city": "required", "postal_code": "required", "line1": "required", "line2": "disabled"}, "products": [{"id": "", "created_at": "2024-08-21T22:47:32.897Z", "modified_at": "2024-12-28T18:58:22.635Z", "trial_interval": "month", "trial_interval_count": 138062, "name": "", "description": "until synthesise instead divert indeed oh phrase fisherman bowling", "recurring_interval": "year", "recurring_interval_count": null, "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2023-07-30T20:21:38.608Z", "modified_at": "2023-10-31T15:08:35.342Z", "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 330194, "legacy": true}], "benefits": [{"id": "", "created_at": "2024-09-04T19:51:17.364Z", "modified_at": "2025-08-17T17:13:08.432Z", "type": "license_keys", "description": "aha instead forenenst brush next bah", "selectable": false, "deletable": false, "organization_id": ""}, {"id": "", "created_at": "2024-09-04T19:51:17.364Z", "modified_at": "2025-08-17T17:13:08.432Z", "type": "license_keys", "description": "aha instead forenenst brush next bah", "selectable": false, "deletable": false, "organization_id": ""}, {"id": "", "created_at": "2024-09-04T19:51:17.364Z", "modified_at": "2025-08-17T17:13:08.432Z", "type": "license_keys", "description": "aha instead forenenst brush next bah", "selectable": false, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/src", "mime_type": "", "size": 451285, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-10-12T21:33:36.481Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-08-15T21:23:17.230Z", "size_readable": "", "public_url": "https://gracious-formula.name/"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/src", "mime_type": "", "size": 451285, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-10-12T21:33:36.481Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-08-15T21:23:17.230Z", "size_readable": "", "public_url": "https://gracious-formula.name/"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/src", "mime_type": "", "size": 451285, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-10-12T21:33:36.481Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-08-15T21:23:17.230Z", "size_readable": "", "public_url": "https://gracious-formula.name/"}]}], "product": {"id": "", "created_at": "2025-09-02T13:33:06.739Z", "modified_at": "2024-07-21T15:33:47.494Z", "trial_interval": "day", "trial_interval_count": 636727, "name": "", "description": "overburden loftily pfft silently shudder mmm who", "recurring_interval": "year", "recurring_interval_count": 192380, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2023-08-03T11:06:01.091Z", "modified_at": "2024-11-28T20:27:45.245Z", "id": "", "amount_type": "fixed", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 566134, "legacy": true}], "benefits": [{"id": "", "created_at": "2024-09-04T19:51:17.364Z", "modified_at": "2025-08-17T17:13:08.432Z", "type": "license_keys", "description": "aha instead forenenst brush next bah", "selectable": false, "deletable": false, "organization_id": ""}, {"id": "", "created_at": "2024-09-04T19:51:17.364Z", "modified_at": "2025-08-17T17:13:08.432Z", "type": "license_keys", "description": "aha instead forenenst brush next bah", "selectable": false, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/src", "mime_type": "", "size": 451285, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-10-12T21:33:36.481Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-08-15T21:23:17.230Z", "size_readable": "", "public_url": "https://gracious-formula.name/"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/src", "mime_type": "", "size": 451285, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-10-12T21:33:36.481Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-08-15T21:23:17.230Z", "size_readable": "", "public_url": "https://gracious-formula.name/"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/src", "mime_type": "", "size": 451285, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-10-12T21:33:36.481Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-08-15T21:23:17.230Z", "size_readable": "", "public_url": "https://gracious-formula.name/"}]}, "product_price": {"created_at": "2023-01-08T23:00:31.069Z", "modified_at": "2023-09-07T11:25:07.070Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "legacy": true}, "discount": {"duration": "forever", "duration_in_months": 601738, "type": "fixed", "amount": 458064, "currency": "Armenian Dram", "id": "", "name": "", "code": ""}, "organization": {"created_at": "2025-04-12T05:47:02.565Z", "modified_at": "2025-01-28T05:59:52.906Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://well-groomed-embarrassment.net/", "email": "Dorthy.Crona6@gmail.com", "website": "", "socials": [], "status": "created", "details_submitted_at": "2025-08-13T01:23:21.707Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false, "revops_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": false, "allow_customer_updates": false, "proration_behavior": "invoice"}, "notification_settings": {"new_order": true, "new_subscription": false}, "customer_email_settings": {"order_confirmation": true, "subscription_cancellation": false, "subscription_confirmation": true, "subscription_cycled": true, "subscription_past_due": true, "subscription_revoked": false, "subscription_uncanceled": false, "subscription_updated": true}}, "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-03-31T08:25:33.432Z", "modified_at": "2025-03-21T01:21:45.618Z", "id": "", "metadata": {"key": "", "key1": 848391, "key2": 422.88}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 47495, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2023-03-31T08:25:33.432Z", "modified_at": "2025-03-21T01:21:45.618Z", "id": "", "metadata": {"key": "", "key1": 848391, "key2": 422.88}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 47495, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2023-03-31T08:25:33.432Z", "modified_at": "2025-03-21T01:21:45.618Z", "id": "", "metadata": {"key": "", "key1": 848391, "key2": 422.88}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 47495, "required": false}]} "403": application/json: {"error": "AlreadyActiveSubscriptionError", "detail": ""} "404": @@ -2590,7 +2592,7 @@ examples: application/json: {"customer_billing_address": {"country": "US"}} responses: "200": - application/json: {"id": "", "created_at": "2023-03-02T01:35:00.551Z", "modified_at": "2025-07-29T04:50:02.330Z", "payment_processor": "stripe", "status": "confirmed", "client_secret": "", "url": "https://acidic-custom.name/", "expires_at": "2023-12-11T11:25:25.211Z", "success_url": "https://primary-alb.com/", "return_url": "https://tinted-fun.com/", "embed_origin": "", "amount": 220742, "discount_amount": 489240, "net_amount": 340812, "tax_amount": 983591, "total_amount": 119432, "currency": "Nepalese Rupee", "active_trial_interval": "day", "active_trial_interval_count": 366642, "trial_end": null, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": true, "require_billing_address": true, "is_discount_applicable": true, "is_free_product_price": true, "is_payment_required": true, "is_payment_setup_required": false, "is_payment_form_required": true, "customer_id": "", "is_business_customer": true, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": null, "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_processor_metadata": {"key": ""}, "billing_address_fields": {"country": "required", "state": "required", "city": "disabled", "postal_code": "optional", "line1": "required", "line2": "required"}, "products": [], "product": {"id": "", "created_at": "2024-06-24T04:19:45.378Z", "modified_at": "2023-12-01T03:53:42.600Z", "trial_interval": "month", "trial_interval_count": 111568, "name": "", "description": "elegant bowling weird", "recurring_interval": "month", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [], "benefits": [{"id": "", "created_at": "2024-07-21T13:00:39.500Z", "modified_at": "2023-06-07T14:28:46.442Z", "type": "meter_credit", "description": "zowie gosh scary jovially", "selectable": true, "deletable": true, "organization_id": ""}, {"id": "", "created_at": "2024-07-21T13:00:39.500Z", "modified_at": "2023-06-07T14:28:46.442Z", "type": "meter_credit", "description": "zowie gosh scary jovially", "selectable": true, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/Network", "mime_type": "", "size": 626000, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-10-02T17:29:36.222Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-12-16T02:40:00.082Z", "size_readable": "", "public_url": "https://uniform-solution.org/"}, {"id": "", "organization_id": "", "name": "", "path": "/Network", "mime_type": "", "size": 626000, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-10-02T17:29:36.222Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-12-16T02:40:00.082Z", "size_readable": "", "public_url": "https://uniform-solution.org/"}, {"id": "", "organization_id": "", "name": "", "path": "/Network", "mime_type": "", "size": 626000, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-10-02T17:29:36.222Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-12-16T02:40:00.082Z", "size_readable": "", "public_url": "https://uniform-solution.org/"}]}, "product_price": {"created_at": "2025-06-09T00:20:15.979Z", "modified_at": "2025-09-19T14:06:39.329Z", "id": "", "amount_type": "custom", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "minimum_amount": 366642, "maximum_amount": null, "preset_amount": 589673, "legacy": true}, "discount": {"duration": "forever", "type": "fixed", "amount": 573564, "currency": "Hong Kong Dollar", "id": "", "name": "", "code": ""}, "organization": {"created_at": "2023-03-16T14:14:34.549Z", "modified_at": "2024-12-02T19:01:59.173Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://exalted-marketplace.name", "email": "Corbin_Kreiger83@hotmail.com", "website": "", "socials": [{"platform": "instagram", "url": "https://handsome-riser.com"}, {"platform": "instagram", "url": "https://handsome-riser.com"}, {"platform": "instagram", "url": "https://handsome-riser.com"}], "status": "onboarding_started", "details_submitted_at": "2023-06-26T01:06:55.900Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": false, "allow_customer_updates": true, "proration_behavior": "prorate"}, "notification_settings": {"new_order": true, "new_subscription": false}, "customer_email_settings": {"order_confirmation": true, "subscription_cancellation": true, "subscription_confirmation": false, "subscription_cycled": true, "subscription_past_due": true, "subscription_revoked": true, "subscription_uncanceled": false, "subscription_updated": true}}, "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2025-05-26T10:51:42.547Z", "modified_at": "2025-04-27T20:55:40.071Z", "id": "", "metadata": {"key": true, "key1": 1804.85}, "type": "select", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {"options": [{"value": "", "label": ""}]}}, "order": 762509, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2025-05-26T10:51:42.547Z", "modified_at": "2025-04-27T20:55:40.071Z", "id": "", "metadata": {"key": true, "key1": 1804.85}, "type": "select", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {"options": [{"value": "", "label": ""}]}}, "order": 762509, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2025-05-26T10:51:42.547Z", "modified_at": "2025-04-27T20:55:40.071Z", "id": "", "metadata": {"key": true, "key1": 1804.85}, "type": "select", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {"options": [{"value": "", "label": ""}]}}, "order": 762509, "required": true}], "customer_session_token": ""} + application/json: {"id": "", "created_at": "2023-03-02T01:35:00.551Z", "modified_at": "2025-07-29T04:50:02.330Z", "payment_processor": "stripe", "status": "confirmed", "client_secret": "", "url": "https://acidic-custom.name/", "expires_at": "2023-12-11T11:25:25.211Z", "success_url": "https://primary-alb.com/", "return_url": "https://tinted-fun.com/", "embed_origin": "", "amount": 220742, "discount_amount": 489240, "net_amount": 340812, "tax_amount": 983591, "total_amount": 119432, "currency": "Nepalese Rupee", "active_trial_interval": "day", "active_trial_interval_count": 366642, "trial_end": null, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": true, "require_billing_address": true, "is_discount_applicable": true, "is_free_product_price": true, "is_payment_required": true, "is_payment_setup_required": false, "is_payment_form_required": true, "customer_id": "", "is_business_customer": true, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": null, "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_processor_metadata": {"key": ""}, "billing_address_fields": {"country": "required", "state": "required", "city": "disabled", "postal_code": "optional", "line1": "required", "line2": "required"}, "products": [], "product": {"id": "", "created_at": "2024-06-24T04:19:45.378Z", "modified_at": "2023-12-01T03:53:42.600Z", "trial_interval": "month", "trial_interval_count": 111568, "name": "", "description": "elegant bowling weird", "recurring_interval": "month", "recurring_interval_count": 54804, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [], "benefits": [{"id": "", "created_at": "2024-07-21T13:00:39.500Z", "modified_at": "2023-06-07T14:28:46.442Z", "type": "meter_credit", "description": "zowie gosh scary jovially", "selectable": true, "deletable": true, "organization_id": ""}, {"id": "", "created_at": "2024-07-21T13:00:39.500Z", "modified_at": "2023-06-07T14:28:46.442Z", "type": "meter_credit", "description": "zowie gosh scary jovially", "selectable": true, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/Network", "mime_type": "", "size": 626000, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-10-02T17:29:36.222Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-12-16T02:40:00.082Z", "size_readable": "", "public_url": "https://uniform-solution.org/"}, {"id": "", "organization_id": "", "name": "", "path": "/Network", "mime_type": "", "size": 626000, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-10-02T17:29:36.222Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-12-16T02:40:00.082Z", "size_readable": "", "public_url": "https://uniform-solution.org/"}, {"id": "", "organization_id": "", "name": "", "path": "/Network", "mime_type": "", "size": 626000, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-10-02T17:29:36.222Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-12-16T02:40:00.082Z", "size_readable": "", "public_url": "https://uniform-solution.org/"}]}, "product_price": {"created_at": "2025-06-09T00:20:15.979Z", "modified_at": "2025-09-19T14:06:39.329Z", "id": "", "amount_type": "custom", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "minimum_amount": 366642, "maximum_amount": null, "preset_amount": 589673, "legacy": true}, "discount": {"duration": "forever", "type": "fixed", "amount": 573564, "currency": "Hong Kong Dollar", "id": "", "name": "", "code": ""}, "organization": {"created_at": "2023-03-16T14:14:34.549Z", "modified_at": "2024-12-02T19:01:59.173Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://exalted-marketplace.name", "email": "Corbin_Kreiger83@hotmail.com", "website": "", "socials": [{"platform": "instagram", "url": "https://handsome-riser.com"}, {"platform": "instagram", "url": "https://handsome-riser.com"}, {"platform": "instagram", "url": "https://handsome-riser.com"}], "status": "onboarding_started", "details_submitted_at": "2023-06-26T01:06:55.900Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false, "revops_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": false, "allow_customer_updates": true, "proration_behavior": "prorate"}, "notification_settings": {"new_order": true, "new_subscription": false}, "customer_email_settings": {"order_confirmation": true, "subscription_cancellation": true, "subscription_confirmation": false, "subscription_cycled": true, "subscription_past_due": true, "subscription_revoked": true, "subscription_uncanceled": false, "subscription_updated": true}}, "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2025-05-26T10:51:42.547Z", "modified_at": "2025-04-27T20:55:40.071Z", "id": "", "metadata": {"key": true, "key1": 1804.85}, "type": "select", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {"options": [{"value": "", "label": ""}]}}, "order": 762509, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2025-05-26T10:51:42.547Z", "modified_at": "2025-04-27T20:55:40.071Z", "id": "", "metadata": {"key": true, "key1": 1804.85}, "type": "select", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {"options": [{"value": "", "label": ""}]}}, "order": 762509, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2025-05-26T10:51:42.547Z", "modified_at": "2025-04-27T20:55:40.071Z", "id": "", "metadata": {"key": true, "key1": 1804.85}, "type": "select", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {"options": [{"value": "", "label": ""}]}}, "order": 762509, "required": true}], "customer_session_token": ""} "400": application/json: {"error": "PaymentError", "detail": ""} "403": @@ -2677,7 +2679,7 @@ examples: timezone: "UTC" responses: "200": - application/json: {"periods": [{"timestamp": "2024-11-05T16:37:46.152Z", "orders": 2313.41, "revenue": 3697.18, "net_revenue": 7366.16, "cumulative_revenue": 160547, "net_cumulative_revenue": 620.86, "average_order_value": 8348.91, "net_average_order_value": 615596, "one_time_products": 6315.62, "one_time_products_revenue": 271957, "one_time_products_net_revenue": 2313.41, "new_subscriptions": 225346, "new_subscriptions_revenue": 5903.37, "new_subscriptions_net_revenue": 3697.18, "renewed_subscriptions": 146.2, "renewed_subscriptions_revenue": 3772.41, "renewed_subscriptions_net_revenue": 160547, "active_subscriptions": 1692.89, "monthly_recurring_revenue": 5809.97, "committed_monthly_recurring_revenue": 7366.16, "checkouts": 6229.46, "succeeded_checkouts": 464.75, "checkouts_conversion": 536209, "canceled_subscriptions": 7366.16, "canceled_subscriptions_customer_service": 620.86, "canceled_subscriptions_low_quality": 615596, "canceled_subscriptions_missing_features": 2313.41, "canceled_subscriptions_switched_service": 3697.18, "canceled_subscriptions_too_complex": 160547, "canceled_subscriptions_too_expensive": 8348.91, "canceled_subscriptions_unused": 6315.62, "canceled_subscriptions_other": 271957}], "totals": {"orders": 300394, "revenue": 980988, "net_revenue": 8348.91, "cumulative_revenue": 5367.66, "net_cumulative_revenue": 6315.62, "average_order_value": 7320.73, "net_average_order_value": 271957, "one_time_products": 772559, "one_time_products_revenue": 875093, "one_time_products_net_revenue": 225346, "new_subscriptions": 903196, "new_subscriptions_revenue": 18.97, "new_subscriptions_net_revenue": 5903.37, "renewed_subscriptions": 723.93, "renewed_subscriptions_revenue": 846052, "renewed_subscriptions_net_revenue": 146.2, "active_subscriptions": 5698.58, "monthly_recurring_revenue": 180851, "committed_monthly_recurring_revenue": 620.86, "checkouts": 5307.17, "succeeded_checkouts": 9995.79, "checkouts_conversion": 5883.46, "canceled_subscriptions": 225346, "canceled_subscriptions_customer_service": 5903.37, "canceled_subscriptions_low_quality": 146.2, "canceled_subscriptions_missing_features": 3772.41, "canceled_subscriptions_switched_service": 1692.89, "canceled_subscriptions_too_complex": 5809.97, "canceled_subscriptions_too_expensive": 6229.46, "canceled_subscriptions_unused": 464.75, "canceled_subscriptions_other": 536209}, "metrics": {"orders": {"slug": "", "display_name": "Mortimer35", "type": "percentage"}, "revenue": {"slug": "", "display_name": "Cruz.Yundt29", "type": "scalar"}, "net_revenue": {"slug": "", "display_name": "Noemie.Pagac", "type": "currency"}, "cumulative_revenue": {"slug": "", "display_name": "Keshaun_Mraz87", "type": "scalar"}, "net_cumulative_revenue": {"slug": "", "display_name": "Lina.Bayer53", "type": "scalar"}, "average_order_value": {"slug": "", "display_name": "Therese_Marks93", "type": "percentage"}, "net_average_order_value": {"slug": "", "display_name": "Christine_Mertz-Leuschke73", "type": "percentage"}, "one_time_products": {"slug": "", "display_name": "Roslyn.White86", "type": "scalar"}, "one_time_products_revenue": {"slug": "", "display_name": "Henderson.Herman17", "type": "percentage"}, "one_time_products_net_revenue": {"slug": "", "display_name": "Daniella_Herzog72", "type": "percentage"}, "new_subscriptions": {"slug": "", "display_name": "Jamaal_Mueller91", "type": "percentage"}, "new_subscriptions_revenue": {"slug": "", "display_name": "Kaylee25", "type": "currency"}, "new_subscriptions_net_revenue": {"slug": "", "display_name": "Antonina_Stamm", "type": "scalar"}, "renewed_subscriptions": {"slug": "", "display_name": "Leland_Yundt", "type": "scalar"}, "renewed_subscriptions_revenue": {"slug": "", "display_name": "Dalton_Waters92", "type": "scalar"}, "renewed_subscriptions_net_revenue": {"slug": "", "display_name": "Vincenza_Yundt", "type": "percentage"}, "active_subscriptions": {"slug": "", "display_name": "Alfonzo_Daugherty", "type": "percentage"}, "monthly_recurring_revenue": {"slug": "", "display_name": "Diana97", "type": "currency"}, "committed_monthly_recurring_revenue": {"slug": "", "display_name": "Garrett.Stokes", "type": "scalar"}, "checkouts": {"slug": "", "display_name": "Magdalen_Goodwin-Schoen", "type": "scalar"}, "succeeded_checkouts": {"slug": "", "display_name": "Ida37", "type": "scalar"}, "checkouts_conversion": {"slug": "", "display_name": "Savion.Gerlach", "type": "percentage"}, "canceled_subscriptions": {"slug": "", "display_name": "Corine_Denesik", "type": "percentage"}, "canceled_subscriptions_customer_service": {"slug": "", "display_name": "Moses.Rutherford", "type": "percentage"}, "canceled_subscriptions_low_quality": {"slug": "", "display_name": "Modesta6", "type": "percentage"}, "canceled_subscriptions_missing_features": {"slug": "", "display_name": "Kevon53", "type": "percentage"}, "canceled_subscriptions_switched_service": {"slug": "", "display_name": "Wilmer_Renner55", "type": "currency"}, "canceled_subscriptions_too_complex": {"slug": "", "display_name": "Maximo.Emard98", "type": "scalar"}, "canceled_subscriptions_too_expensive": {"slug": "", "display_name": "Eleazar_Mante", "type": "percentage"}, "canceled_subscriptions_unused": {"slug": "", "display_name": "Alford.Walker", "type": "percentage"}, "canceled_subscriptions_other": {"slug": "", "display_name": "Arnold.Stanton94", "type": "percentage"}}} + application/json: {"periods": [{"timestamp": "2024-11-05T16:37:46.152Z", "orders": 2313.41, "revenue": 3697.18, "net_revenue": 7366.16, "cumulative_revenue": 160547, "net_cumulative_revenue": 620.86, "costs": 7366.16, "cumulative_costs": 620.86, "average_order_value": 8348.91, "net_average_order_value": 615596, "one_time_products": 6315.62, "one_time_products_revenue": 271957, "one_time_products_net_revenue": 2313.41, "new_subscriptions": 225346, "new_subscriptions_revenue": 5903.37, "new_subscriptions_net_revenue": 3697.18, "renewed_subscriptions": 146.2, "renewed_subscriptions_revenue": 3772.41, "renewed_subscriptions_net_revenue": 160547, "active_subscriptions": 1692.89, "monthly_recurring_revenue": 5809.97, "committed_monthly_recurring_revenue": 7366.16, "checkouts": 6229.46, "succeeded_checkouts": 464.75, "checkouts_conversion": 536209, "canceled_subscriptions": 7366.16, "canceled_subscriptions_customer_service": 620.86, "canceled_subscriptions_low_quality": 615596, "canceled_subscriptions_missing_features": 2313.41, "canceled_subscriptions_switched_service": 3697.18, "canceled_subscriptions_too_complex": 160547, "canceled_subscriptions_too_expensive": 8348.91, "canceled_subscriptions_unused": 6315.62, "canceled_subscriptions_other": 271957}], "totals": {"orders": 300394, "revenue": 980988, "net_revenue": 8348.91, "cumulative_revenue": 5367.66, "net_cumulative_revenue": 6315.62, "costs": 615596, "cumulative_costs": 2313.41, "average_order_value": 7320.73, "net_average_order_value": 271957, "one_time_products": 772559, "one_time_products_revenue": 875093, "one_time_products_net_revenue": 225346, "new_subscriptions": 903196, "new_subscriptions_revenue": 18.97, "new_subscriptions_net_revenue": 5903.37, "renewed_subscriptions": 723.93, "renewed_subscriptions_revenue": 846052, "renewed_subscriptions_net_revenue": 146.2, "active_subscriptions": 5698.58, "monthly_recurring_revenue": 180851, "committed_monthly_recurring_revenue": 620.86, "checkouts": 5307.17, "succeeded_checkouts": 9995.79, "checkouts_conversion": 5883.46, "canceled_subscriptions": 225346, "canceled_subscriptions_customer_service": 5903.37, "canceled_subscriptions_low_quality": 146.2, "canceled_subscriptions_missing_features": 3772.41, "canceled_subscriptions_switched_service": 1692.89, "canceled_subscriptions_too_complex": 5809.97, "canceled_subscriptions_too_expensive": 6229.46, "canceled_subscriptions_unused": 464.75, "canceled_subscriptions_other": 536209}, "metrics": {"orders": {"slug": "", "display_name": "Mortimer35", "type": "percentage"}, "revenue": {"slug": "", "display_name": "Cruz.Yundt29", "type": "scalar"}, "net_revenue": {"slug": "", "display_name": "Noemie.Pagac", "type": "currency"}, "cumulative_revenue": {"slug": "", "display_name": "Keshaun_Mraz87", "type": "scalar"}, "net_cumulative_revenue": {"slug": "", "display_name": "Lina.Bayer53", "type": "scalar"}, "costs": {"slug": "", "display_name": "Piper65", "type": "currency"}, "cumulative_costs": {"slug": "", "display_name": "Lonnie22", "type": "currency"}, "average_order_value": {"slug": "", "display_name": "Therese_Marks93", "type": "percentage"}, "net_average_order_value": {"slug": "", "display_name": "Christine_Mertz-Leuschke73", "type": "percentage"}, "one_time_products": {"slug": "", "display_name": "Roslyn.White86", "type": "scalar"}, "one_time_products_revenue": {"slug": "", "display_name": "Henderson.Herman17", "type": "percentage"}, "one_time_products_net_revenue": {"slug": "", "display_name": "Daniella_Herzog72", "type": "percentage"}, "new_subscriptions": {"slug": "", "display_name": "Jamaal_Mueller91", "type": "percentage"}, "new_subscriptions_revenue": {"slug": "", "display_name": "Kaylee25", "type": "currency"}, "new_subscriptions_net_revenue": {"slug": "", "display_name": "Antonina_Stamm", "type": "scalar"}, "renewed_subscriptions": {"slug": "", "display_name": "Leland_Yundt", "type": "scalar"}, "renewed_subscriptions_revenue": {"slug": "", "display_name": "Dalton_Waters92", "type": "scalar"}, "renewed_subscriptions_net_revenue": {"slug": "", "display_name": "Vincenza_Yundt", "type": "percentage"}, "active_subscriptions": {"slug": "", "display_name": "Alfonzo_Daugherty", "type": "percentage"}, "monthly_recurring_revenue": {"slug": "", "display_name": "Diana97", "type": "currency"}, "committed_monthly_recurring_revenue": {"slug": "", "display_name": "Garrett.Stokes", "type": "scalar"}, "checkouts": {"slug": "", "display_name": "Magdalen_Goodwin-Schoen", "type": "scalar"}, "succeeded_checkouts": {"slug": "", "display_name": "Ida37", "type": "scalar"}, "checkouts_conversion": {"slug": "", "display_name": "Savion.Gerlach", "type": "percentage"}, "canceled_subscriptions": {"slug": "", "display_name": "Corine_Denesik", "type": "percentage"}, "canceled_subscriptions_customer_service": {"slug": "", "display_name": "Moses.Rutherford", "type": "percentage"}, "canceled_subscriptions_low_quality": {"slug": "", "display_name": "Modesta6", "type": "percentage"}, "canceled_subscriptions_missing_features": {"slug": "", "display_name": "Kevon53", "type": "percentage"}, "canceled_subscriptions_switched_service": {"slug": "", "display_name": "Wilmer_Renner55", "type": "currency"}, "canceled_subscriptions_too_complex": {"slug": "", "display_name": "Maximo.Emard98", "type": "scalar"}, "canceled_subscriptions_too_expensive": {"slug": "", "display_name": "Eleazar_Mante", "type": "percentage"}, "canceled_subscriptions_unused": {"slug": "", "display_name": "Alford.Walker", "type": "percentage"}, "canceled_subscriptions_other": {"slug": "", "display_name": "Arnold.Stanton94", "type": "percentage"}}} "422": application/json: {} metrics:limits: @@ -2755,7 +2757,7 @@ examples: limit: 10 responses: "200": - application/json: {"items": [{"id": "", "created_at": "2024-12-08T18:31:28.967Z", "modified_at": "2024-02-20T14:07:28.433Z", "trial_interval": "year", "trial_interval_count": 379186, "metadata": {"key": 349360, "key1": 889885, "key2": 987277}, "payment_processor": "stripe", "client_secret": "", "success_url": "https://damaged-priesthood.org", "label": "", "allow_discount_codes": false, "require_billing_address": false, "discount_id": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": [{"metadata": {"key": false}, "id": "", "created_at": "2025-06-23T06:29:06.861Z", "modified_at": "2024-04-23T19:25:34.418Z", "trial_interval": "week", "trial_interval_count": 269522, "name": "", "description": "sideboard safely how while yum sparse", "recurring_interval": "month", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2024-12-08T18:31:28.967Z", "modified_at": "2025-08-25T12:12:46.370Z", "id": "", "amount_type": "metered_unit", "is_archived": true, "product_id": "", "type": "one_time", "recurring_interval": "year", "price_currency": "", "unit_amount": "", "cap_amount": 987277, "meter_id": "", "meter": {"id": "", "name": ""}}], "benefits": [], "medias": []}], "discount": {"duration": "once", "type": "fixed", "amount": 907882, "currency": "Costa Rican Colon", "created_at": "2023-02-04T06:20:00.635Z", "modified_at": "2023-04-26T17:44:06.847Z", "id": "", "metadata": {"key": 941584, "key1": "", "key2": 9138.15}, "name": "", "code": "", "starts_at": "2024-08-08T12:43:01.620Z", "ends_at": "2025-02-28T00:43:20.943Z", "max_redemptions": 417300, "redemptions_count": 788565, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "url": "https://unfinished-plain.name"}, {"id": "", "created_at": "2024-12-08T18:31:28.967Z", "modified_at": "2024-02-20T14:07:28.433Z", "trial_interval": "week", "trial_interval_count": 656194, "metadata": {"key": 349360, "key1": 889885, "key2": 987277}, "payment_processor": "stripe", "client_secret": "", "success_url": "https://damaged-priesthood.org", "label": "", "allow_discount_codes": false, "require_billing_address": false, "discount_id": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": [{"metadata": {"key": false}, "id": "", "created_at": "2025-06-23T06:29:06.861Z", "modified_at": "2024-04-23T19:25:34.418Z", "trial_interval": "month", "trial_interval_count": 743139, "name": "", "description": "sideboard safely how while yum sparse", "recurring_interval": "month", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2025-02-11T18:32:20.472Z", "modified_at": "2025-03-25T11:30:39.715Z", "id": "", "amount_type": "custom", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "minimum_amount": 825064, "maximum_amount": 470214, "preset_amount": 586539, "legacy": true}], "benefits": [], "medias": []}], "discount": {"duration": "once", "type": "fixed", "amount": 907882, "currency": "Costa Rican Colon", "created_at": "2023-02-04T06:20:00.635Z", "modified_at": "2023-04-26T17:44:06.847Z", "id": "", "metadata": {"key": 941584, "key1": "", "key2": 9138.15}, "name": "", "code": "", "starts_at": "2024-08-08T12:43:01.620Z", "ends_at": "2025-02-28T00:43:20.943Z", "max_redemptions": 417300, "redemptions_count": 788565, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "url": "https://unfinished-plain.name"}, {"id": "", "created_at": "2024-12-08T18:31:28.967Z", "modified_at": "2024-02-20T14:07:28.433Z", "trial_interval": "week", "trial_interval_count": 958373, "metadata": {"key": 349360, "key1": 889885, "key2": 987277}, "payment_processor": "stripe", "client_secret": "", "success_url": "https://damaged-priesthood.org", "label": "", "allow_discount_codes": false, "require_billing_address": false, "discount_id": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": [{"metadata": {"key": false}, "id": "", "created_at": "2025-06-23T06:29:06.861Z", "modified_at": "2024-04-23T19:25:34.418Z", "trial_interval": "year", "trial_interval_count": 470214, "name": "", "description": "sideboard safely how while yum sparse", "recurring_interval": "month", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2023-05-11T01:12:44.937Z", "modified_at": "2025-06-06T13:16:03.281Z", "id": "", "amount_type": "free", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}], "benefits": [], "medias": []}], "discount": {"duration": "once", "type": "fixed", "amount": 907882, "currency": "Costa Rican Colon", "created_at": "2023-02-04T06:20:00.635Z", "modified_at": "2023-04-26T17:44:06.847Z", "id": "", "metadata": {"key": 941584, "key1": "", "key2": 9138.15}, "name": "", "code": "", "starts_at": "2024-08-08T12:43:01.620Z", "ends_at": "2025-02-28T00:43:20.943Z", "max_redemptions": 417300, "redemptions_count": 788565, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "url": "https://unfinished-plain.name"}], "pagination": {"total_count": 109542, "max_page": 664611}} + application/json: {"items": [{"id": "", "created_at": "2024-12-08T18:31:28.967Z", "modified_at": "2024-02-20T14:07:28.433Z", "trial_interval": "year", "trial_interval_count": 379186, "metadata": {"key": 349360, "key1": 889885, "key2": 987277}, "payment_processor": "stripe", "client_secret": "", "success_url": "https://damaged-priesthood.org", "label": "", "allow_discount_codes": false, "require_billing_address": false, "discount_id": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": [{"metadata": {"key": false}, "id": "", "created_at": "2025-06-23T06:29:06.861Z", "modified_at": "2024-04-23T19:25:34.418Z", "trial_interval": "week", "trial_interval_count": 269522, "name": "", "description": "sideboard safely how while yum sparse", "recurring_interval": "month", "recurring_interval_count": 962255, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2024-12-08T18:31:28.967Z", "modified_at": "2025-08-25T12:12:46.370Z", "id": "", "amount_type": "metered_unit", "is_archived": true, "product_id": "", "type": "one_time", "recurring_interval": "year", "price_currency": "", "unit_amount": "", "cap_amount": 987277, "meter_id": "", "meter": {"id": "", "name": ""}}], "benefits": [], "medias": []}], "discount": {"duration": "once", "type": "fixed", "amount": 907882, "currency": "Costa Rican Colon", "created_at": "2023-02-04T06:20:00.635Z", "modified_at": "2023-04-26T17:44:06.847Z", "id": "", "metadata": {"key": 941584, "key1": "", "key2": 9138.15}, "name": "", "code": "", "starts_at": "2024-08-08T12:43:01.620Z", "ends_at": "2025-02-28T00:43:20.943Z", "max_redemptions": 417300, "redemptions_count": 788565, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "url": "https://unfinished-plain.name"}, {"id": "", "created_at": "2024-12-08T18:31:28.967Z", "modified_at": "2024-02-20T14:07:28.433Z", "trial_interval": "week", "trial_interval_count": 656194, "metadata": {"key": 349360, "key1": 889885, "key2": 987277}, "payment_processor": "stripe", "client_secret": "", "success_url": "https://damaged-priesthood.org", "label": "", "allow_discount_codes": false, "require_billing_address": false, "discount_id": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": [{"metadata": {"key": false}, "id": "", "created_at": "2025-06-23T06:29:06.861Z", "modified_at": "2024-04-23T19:25:34.418Z", "trial_interval": "month", "trial_interval_count": 743139, "name": "", "description": "sideboard safely how while yum sparse", "recurring_interval": "month", "recurring_interval_count": 379186, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2025-02-11T18:32:20.472Z", "modified_at": "2025-03-25T11:30:39.715Z", "id": "", "amount_type": "custom", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "minimum_amount": 825064, "maximum_amount": 470214, "preset_amount": 586539, "legacy": true}], "benefits": [], "medias": []}], "discount": {"duration": "once", "type": "fixed", "amount": 907882, "currency": "Costa Rican Colon", "created_at": "2023-02-04T06:20:00.635Z", "modified_at": "2023-04-26T17:44:06.847Z", "id": "", "metadata": {"key": 941584, "key1": "", "key2": 9138.15}, "name": "", "code": "", "starts_at": "2024-08-08T12:43:01.620Z", "ends_at": "2025-02-28T00:43:20.943Z", "max_redemptions": 417300, "redemptions_count": 788565, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "url": "https://unfinished-plain.name"}, {"id": "", "created_at": "2024-12-08T18:31:28.967Z", "modified_at": "2024-02-20T14:07:28.433Z", "trial_interval": "week", "trial_interval_count": 958373, "metadata": {"key": 349360, "key1": 889885, "key2": 987277}, "payment_processor": "stripe", "client_secret": "", "success_url": "https://damaged-priesthood.org", "label": "", "allow_discount_codes": false, "require_billing_address": false, "discount_id": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": [{"metadata": {"key": false}, "id": "", "created_at": "2025-06-23T06:29:06.861Z", "modified_at": "2024-04-23T19:25:34.418Z", "trial_interval": "year", "trial_interval_count": 470214, "name": "", "description": "sideboard safely how while yum sparse", "recurring_interval": "month", "recurring_interval_count": 438333, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2023-05-11T01:12:44.937Z", "modified_at": "2025-06-06T13:16:03.281Z", "id": "", "amount_type": "free", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}], "benefits": [], "medias": []}], "discount": {"duration": "once", "type": "fixed", "amount": 907882, "currency": "Costa Rican Colon", "created_at": "2023-02-04T06:20:00.635Z", "modified_at": "2023-04-26T17:44:06.847Z", "id": "", "metadata": {"key": 941584, "key1": "", "key2": 9138.15}, "name": "", "code": "", "starts_at": "2024-08-08T12:43:01.620Z", "ends_at": "2025-02-28T00:43:20.943Z", "max_redemptions": 417300, "redemptions_count": 788565, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "url": "https://unfinished-plain.name"}], "pagination": {"total_count": 109542, "max_page": 664611}} "422": application/json: {} checkout-links:create: @@ -2764,7 +2766,7 @@ examples: application/json: {"payment_processor": "stripe", "allow_discount_codes": true, "require_billing_address": false, "product_price_id": ""} responses: "201": - application/json: {"id": "", "created_at": "2024-08-31T23:36:33.061Z", "modified_at": "2023-08-31T12:25:48.677Z", "trial_interval": "month", "trial_interval_count": 65495, "metadata": {}, "payment_processor": "stripe", "client_secret": "", "success_url": "https://definitive-angle.org", "label": "", "allow_discount_codes": false, "require_billing_address": true, "discount_id": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": [{"metadata": {"key": 269238}, "id": "", "created_at": "2024-04-26T01:22:46.199Z", "modified_at": "2024-09-20T20:41:22.523Z", "trial_interval": "day", "trial_interval_count": null, "name": "", "description": "nor event accomplished", "recurring_interval": "month", "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/libexec", "mime_type": "", "size": 933378, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-07-17T20:56:12.264Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2024-10-13T14:07:36.969Z", "size_readable": "", "public_url": "https://violent-impact.biz"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/libexec", "mime_type": "", "size": 933378, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-07-17T20:56:12.264Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2024-10-13T14:07:36.969Z", "size_readable": "", "public_url": "https://violent-impact.biz"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/libexec", "mime_type": "", "size": 933378, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-07-17T20:56:12.264Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2024-10-13T14:07:36.969Z", "size_readable": "", "public_url": "https://violent-impact.biz"}]}], "discount": {"duration": "repeating", "type": "percentage", "amount": 268264, "currency": "Algerian Dinar", "created_at": "2023-12-12T00:27:25.576Z", "modified_at": "2025-11-01T19:05:48.639Z", "id": "", "metadata": {"key": 611485, "key1": true}, "name": "", "code": "", "starts_at": "2024-03-20T09:33:41.148Z", "ends_at": "2025-09-18T13:50:21.110Z", "max_redemptions": 808913, "redemptions_count": 744506, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "url": "https://electric-stir-fry.info/"} + application/json: {"id": "", "created_at": "2024-08-31T23:36:33.061Z", "modified_at": "2023-08-31T12:25:48.677Z", "trial_interval": "month", "trial_interval_count": 65495, "metadata": {}, "payment_processor": "stripe", "client_secret": "", "success_url": "https://definitive-angle.org", "label": "", "allow_discount_codes": false, "require_billing_address": true, "discount_id": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": [{"metadata": {"key": 269238}, "id": "", "created_at": "2024-04-26T01:22:46.199Z", "modified_at": "2024-09-20T20:41:22.523Z", "trial_interval": "day", "trial_interval_count": null, "name": "", "description": "nor event accomplished", "recurring_interval": "month", "recurring_interval_count": 555642, "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/libexec", "mime_type": "", "size": 933378, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-07-17T20:56:12.264Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2024-10-13T14:07:36.969Z", "size_readable": "", "public_url": "https://violent-impact.biz"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/libexec", "mime_type": "", "size": 933378, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-07-17T20:56:12.264Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2024-10-13T14:07:36.969Z", "size_readable": "", "public_url": "https://violent-impact.biz"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/libexec", "mime_type": "", "size": 933378, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-07-17T20:56:12.264Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2024-10-13T14:07:36.969Z", "size_readable": "", "public_url": "https://violent-impact.biz"}]}], "discount": {"duration": "repeating", "type": "percentage", "amount": 268264, "currency": "Algerian Dinar", "created_at": "2023-12-12T00:27:25.576Z", "modified_at": "2025-11-01T19:05:48.639Z", "id": "", "metadata": {"key": 611485, "key1": true}, "name": "", "code": "", "starts_at": "2024-03-20T09:33:41.148Z", "ends_at": "2025-09-18T13:50:21.110Z", "max_redemptions": 808913, "redemptions_count": 744506, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "url": "https://electric-stir-fry.info/"} "422": application/json: {} checkout-links:get: @@ -2774,7 +2776,7 @@ examples: id: "" responses: "200": - application/json: {"id": "", "created_at": "2023-11-21T22:10:03.326Z", "modified_at": "2023-01-06T13:50:49.699Z", "trial_interval": "day", "trial_interval_count": 12647, "metadata": {"key": ""}, "payment_processor": "stripe", "client_secret": "", "success_url": "https://insecure-wear.org/", "label": "", "allow_discount_codes": false, "require_billing_address": false, "discount_id": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": [{"metadata": {}, "id": "", "created_at": "2025-12-17T13:45:34.269Z", "modified_at": "2024-12-30T14:30:13.277Z", "trial_interval": null, "trial_interval_count": 980330, "name": "", "description": "border vice round brr black-and-white creamy yippee", "recurring_interval": "year", "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2023-12-09T10:41:20.310Z", "modified_at": null, "id": "", "amount_type": "custom", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "minimum_amount": 963333, "maximum_amount": 668898, "preset_amount": 59077, "legacy": true}, {"created_at": "2024-09-15T19:56:47.175Z", "modified_at": "2023-06-23T03:47:03.028Z", "id": "", "amount_type": "free", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}, {"created_at": "2023-08-17T06:40:30.623Z", "modified_at": "2024-09-04T14:49:56.878Z", "id": "", "amount_type": "custom", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "minimum_amount": 885695, "maximum_amount": 296066, "preset_amount": 906017, "legacy": true}], "benefits": [{"id": "", "created_at": "2025-08-08T09:31:37.166Z", "modified_at": "2023-01-02T11:42:53.418Z", "type": "discord", "description": "blond till and icy boo of hmph", "selectable": true, "deletable": false, "organization_id": ""}, {"id": "", "created_at": "2025-08-08T09:31:37.166Z", "modified_at": "2023-01-02T11:42:53.418Z", "type": "discord", "description": "blond till and icy boo of hmph", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/libexec", "mime_type": "", "size": 197596, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-10-17T01:52:21.587Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-05-31T14:32:10.257Z", "size_readable": "", "public_url": "https://trustworthy-gripper.org"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/libexec", "mime_type": "", "size": 197596, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-10-17T01:52:21.587Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-05-31T14:32:10.257Z", "size_readable": "", "public_url": "https://trustworthy-gripper.org"}]}], "discount": {"duration": "repeating", "duration_in_months": 805834, "type": "fixed", "basis_points": 390697, "created_at": "2023-02-21T03:40:47.205Z", "modified_at": "2024-09-29T08:08:42.309Z", "id": "", "metadata": {"key": "", "key1": false, "key2": 845701}, "name": "", "code": "", "starts_at": "2024-08-10T16:58:23.596Z", "ends_at": "2023-01-24T06:47:36.139Z", "max_redemptions": 151529, "redemptions_count": 572960, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "url": "https://delicious-silk.net/"} + application/json: {"id": "", "created_at": "2023-11-21T22:10:03.326Z", "modified_at": "2023-01-06T13:50:49.699Z", "trial_interval": "day", "trial_interval_count": 12647, "metadata": {"key": ""}, "payment_processor": "stripe", "client_secret": "", "success_url": "https://insecure-wear.org/", "label": "", "allow_discount_codes": false, "require_billing_address": false, "discount_id": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": [{"metadata": {}, "id": "", "created_at": "2025-12-17T13:45:34.269Z", "modified_at": "2024-12-30T14:30:13.277Z", "trial_interval": null, "trial_interval_count": 980330, "name": "", "description": "border vice round brr black-and-white creamy yippee", "recurring_interval": "year", "recurring_interval_count": 5088, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2023-12-09T10:41:20.310Z", "modified_at": null, "id": "", "amount_type": "custom", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "minimum_amount": 963333, "maximum_amount": 668898, "preset_amount": 59077, "legacy": true}, {"created_at": "2024-09-15T19:56:47.175Z", "modified_at": "2023-06-23T03:47:03.028Z", "id": "", "amount_type": "free", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}, {"created_at": "2023-08-17T06:40:30.623Z", "modified_at": "2024-09-04T14:49:56.878Z", "id": "", "amount_type": "custom", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "minimum_amount": 885695, "maximum_amount": 296066, "preset_amount": 906017, "legacy": true}], "benefits": [{"id": "", "created_at": "2025-08-08T09:31:37.166Z", "modified_at": "2023-01-02T11:42:53.418Z", "type": "discord", "description": "blond till and icy boo of hmph", "selectable": true, "deletable": false, "organization_id": ""}, {"id": "", "created_at": "2025-08-08T09:31:37.166Z", "modified_at": "2023-01-02T11:42:53.418Z", "type": "discord", "description": "blond till and icy boo of hmph", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/libexec", "mime_type": "", "size": 197596, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-10-17T01:52:21.587Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-05-31T14:32:10.257Z", "size_readable": "", "public_url": "https://trustworthy-gripper.org"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/libexec", "mime_type": "", "size": 197596, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-10-17T01:52:21.587Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-05-31T14:32:10.257Z", "size_readable": "", "public_url": "https://trustworthy-gripper.org"}]}], "discount": {"duration": "repeating", "duration_in_months": 805834, "type": "fixed", "basis_points": 390697, "created_at": "2023-02-21T03:40:47.205Z", "modified_at": "2024-09-29T08:08:42.309Z", "id": "", "metadata": {"key": "", "key1": false, "key2": 845701}, "name": "", "code": "", "starts_at": "2024-08-10T16:58:23.596Z", "ends_at": "2023-01-24T06:47:36.139Z", "max_redemptions": 151529, "redemptions_count": 572960, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "url": "https://delicious-silk.net/"} "404": application/json: {"error": "ResourceNotFound", "detail": ""} "422": @@ -2788,7 +2790,7 @@ examples: application/json: {} responses: "200": - application/json: {"id": "", "created_at": "2024-02-14T03:05:16.462Z", "modified_at": "2025-04-11T20:27:07.595Z", "trial_interval": "year", "trial_interval_count": 763251, "metadata": {"key": true}, "payment_processor": "stripe", "client_secret": "", "success_url": "https://interesting-governance.info", "label": "", "allow_discount_codes": true, "require_billing_address": true, "discount_id": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": [{"metadata": {"key": 911224, "key1": 296152}, "id": "", "created_at": "2025-08-23T04:17:09.210Z", "modified_at": "2024-01-23T09:47:28.845Z", "trial_interval": "month", "trial_interval_count": 386368, "name": "", "description": "alongside coordination thread lest hairy lest elegant forager primary phew", "recurring_interval": "month", "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2023-10-02T17:43:12.732Z", "modified_at": "2024-03-22T06:34:43.285Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "legacy": true}, {"created_at": "2023-03-13T08:40:55.883Z", "modified_at": null, "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 250061, "legacy": true}, {"created_at": "2023-11-21T13:59:32.118Z", "modified_at": "2024-01-23T09:47:28.845Z", "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "price_amount": 496878, "legacy": true}], "benefits": [{"id": "", "created_at": "2024-04-26T17:05:58.126Z", "modified_at": "2025-07-21T06:43:45.921Z", "type": "meter_credit", "description": "overwork truly zebra pfft cheese since cycle meanwhile controvert", "selectable": true, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt/sbin", "mime_type": "", "size": 229668, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-03-16T20:21:45.535Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-22T07:55:56.321Z", "size_readable": "", "public_url": "https://fat-dusk.com/"}, {"id": "", "organization_id": "", "name": "", "path": "/opt/sbin", "mime_type": "", "size": 229668, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-03-16T20:21:45.535Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-22T07:55:56.321Z", "size_readable": "", "public_url": "https://fat-dusk.com/"}, {"id": "", "organization_id": "", "name": "", "path": "/opt/sbin", "mime_type": "", "size": 229668, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-03-16T20:21:45.535Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-22T07:55:56.321Z", "size_readable": "", "public_url": "https://fat-dusk.com/"}]}, {"metadata": {"key": 911224, "key1": 296152}, "id": "", "created_at": "2025-08-23T04:17:09.210Z", "modified_at": "2024-01-23T09:47:28.845Z", "trial_interval": "day", "trial_interval_count": null, "name": "", "description": "alongside coordination thread lest hairy lest elegant forager primary phew", "recurring_interval": "month", "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2023-05-01T01:31:25.874Z", "modified_at": "2024-03-09T14:43:03.649Z", "id": "", "amount_type": "metered_unit", "is_archived": false, "product_id": "", "type": "one_time", "recurring_interval": "year", "price_currency": "", "unit_amount": "", "cap_amount": 537641, "meter_id": "", "meter": {"id": "", "name": ""}}, {"created_at": "2024-12-19T11:21:41.094Z", "modified_at": "2025-08-26T04:01:30.432Z", "id": "", "amount_type": "custom", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "minimum_amount": 977251, "maximum_amount": null, "preset_amount": 691005, "legacy": true}, {"created_at": "2025-12-17T09:02:02.652Z", "modified_at": "2025-10-31T18:29:47.575Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}], "benefits": [{"id": "", "created_at": "2024-04-26T17:05:58.126Z", "modified_at": "2025-07-21T06:43:45.921Z", "type": "meter_credit", "description": "overwork truly zebra pfft cheese since cycle meanwhile controvert", "selectable": true, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt/sbin", "mime_type": "", "size": 229668, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-03-16T20:21:45.535Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-22T07:55:56.321Z", "size_readable": "", "public_url": "https://fat-dusk.com/"}, {"id": "", "organization_id": "", "name": "", "path": "/opt/sbin", "mime_type": "", "size": 229668, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-03-16T20:21:45.535Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-22T07:55:56.321Z", "size_readable": "", "public_url": "https://fat-dusk.com/"}, {"id": "", "organization_id": "", "name": "", "path": "/opt/sbin", "mime_type": "", "size": 229668, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-03-16T20:21:45.535Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-22T07:55:56.321Z", "size_readable": "", "public_url": "https://fat-dusk.com/"}]}, {"metadata": {"key": 911224, "key1": 296152}, "id": "", "created_at": "2025-08-23T04:17:09.210Z", "modified_at": "2024-01-23T09:47:28.845Z", "trial_interval": "month", "trial_interval_count": 911224, "name": "", "description": "alongside coordination thread lest hairy lest elegant forager primary phew", "recurring_interval": "month", "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2025-08-04T01:04:24.189Z", "modified_at": "2023-07-16T02:45:46.995Z", "id": "", "amount_type": "fixed", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 399653, "legacy": true}, {"created_at": "2024-10-23T21:43:17.023Z", "modified_at": "2025-12-20T19:54:20.697Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}, {"created_at": "2025-11-22T23:56:40.197Z", "modified_at": "2024-01-23T14:22:15.631Z", "id": "", "amount_type": "custom", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "minimum_amount": 400055, "maximum_amount": 888276, "preset_amount": 86646, "legacy": true}], "benefits": [{"id": "", "created_at": "2024-04-26T17:05:58.126Z", "modified_at": "2025-07-21T06:43:45.921Z", "type": "meter_credit", "description": "overwork truly zebra pfft cheese since cycle meanwhile controvert", "selectable": true, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt/sbin", "mime_type": "", "size": 229668, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-03-16T20:21:45.535Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-22T07:55:56.321Z", "size_readable": "", "public_url": "https://fat-dusk.com/"}, {"id": "", "organization_id": "", "name": "", "path": "/opt/sbin", "mime_type": "", "size": 229668, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-03-16T20:21:45.535Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-22T07:55:56.321Z", "size_readable": "", "public_url": "https://fat-dusk.com/"}, {"id": "", "organization_id": "", "name": "", "path": "/opt/sbin", "mime_type": "", "size": 229668, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-03-16T20:21:45.535Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-22T07:55:56.321Z", "size_readable": "", "public_url": "https://fat-dusk.com/"}]}], "discount": {"duration": "repeating", "duration_in_months": 326419, "type": "percentage", "amount": 745195, "currency": "Netherlands Antillian Guilder", "created_at": "2025-06-23T21:17:26.010Z", "modified_at": "2025-06-26T01:05:36.243Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2023-01-28T19:17:48.748Z", "ends_at": "2024-09-01T16:19:02.542Z", "max_redemptions": 709108, "redemptions_count": 314886, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "url": "https://zealous-gastropod.info/"} + application/json: {"id": "", "created_at": "2024-02-14T03:05:16.462Z", "modified_at": "2025-04-11T20:27:07.595Z", "trial_interval": "year", "trial_interval_count": 763251, "metadata": {"key": true}, "payment_processor": "stripe", "client_secret": "", "success_url": "https://interesting-governance.info", "label": "", "allow_discount_codes": true, "require_billing_address": true, "discount_id": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": [{"metadata": {"key": 911224, "key1": 296152}, "id": "", "created_at": "2025-08-23T04:17:09.210Z", "modified_at": "2024-01-23T09:47:28.845Z", "trial_interval": "month", "trial_interval_count": 386368, "name": "", "description": "alongside coordination thread lest hairy lest elegant forager primary phew", "recurring_interval": "month", "recurring_interval_count": 758989, "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2023-10-02T17:43:12.732Z", "modified_at": "2024-03-22T06:34:43.285Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "legacy": true}, {"created_at": "2023-03-13T08:40:55.883Z", "modified_at": null, "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 250061, "legacy": true}, {"created_at": "2023-11-21T13:59:32.118Z", "modified_at": "2024-01-23T09:47:28.845Z", "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "price_amount": 496878, "legacy": true}], "benefits": [{"id": "", "created_at": "2024-04-26T17:05:58.126Z", "modified_at": "2025-07-21T06:43:45.921Z", "type": "meter_credit", "description": "overwork truly zebra pfft cheese since cycle meanwhile controvert", "selectable": true, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt/sbin", "mime_type": "", "size": 229668, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-03-16T20:21:45.535Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-22T07:55:56.321Z", "size_readable": "", "public_url": "https://fat-dusk.com/"}, {"id": "", "organization_id": "", "name": "", "path": "/opt/sbin", "mime_type": "", "size": 229668, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-03-16T20:21:45.535Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-22T07:55:56.321Z", "size_readable": "", "public_url": "https://fat-dusk.com/"}, {"id": "", "organization_id": "", "name": "", "path": "/opt/sbin", "mime_type": "", "size": 229668, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-03-16T20:21:45.535Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-22T07:55:56.321Z", "size_readable": "", "public_url": "https://fat-dusk.com/"}]}, {"metadata": {"key": 911224, "key1": 296152}, "id": "", "created_at": "2025-08-23T04:17:09.210Z", "modified_at": "2024-01-23T09:47:28.845Z", "trial_interval": "day", "trial_interval_count": null, "name": "", "description": "alongside coordination thread lest hairy lest elegant forager primary phew", "recurring_interval": "month", "recurring_interval_count": 763251, "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2023-05-01T01:31:25.874Z", "modified_at": "2024-03-09T14:43:03.649Z", "id": "", "amount_type": "metered_unit", "is_archived": false, "product_id": "", "type": "one_time", "recurring_interval": "year", "price_currency": "", "unit_amount": "", "cap_amount": 537641, "meter_id": "", "meter": {"id": "", "name": ""}}, {"created_at": "2024-12-19T11:21:41.094Z", "modified_at": "2025-08-26T04:01:30.432Z", "id": "", "amount_type": "custom", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "minimum_amount": 977251, "maximum_amount": null, "preset_amount": 691005, "legacy": true}, {"created_at": "2025-12-17T09:02:02.652Z", "modified_at": "2025-10-31T18:29:47.575Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}], "benefits": [{"id": "", "created_at": "2024-04-26T17:05:58.126Z", "modified_at": "2025-07-21T06:43:45.921Z", "type": "meter_credit", "description": "overwork truly zebra pfft cheese since cycle meanwhile controvert", "selectable": true, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt/sbin", "mime_type": "", "size": 229668, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-03-16T20:21:45.535Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-22T07:55:56.321Z", "size_readable": "", "public_url": "https://fat-dusk.com/"}, {"id": "", "organization_id": "", "name": "", "path": "/opt/sbin", "mime_type": "", "size": 229668, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-03-16T20:21:45.535Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-22T07:55:56.321Z", "size_readable": "", "public_url": "https://fat-dusk.com/"}, {"id": "", "organization_id": "", "name": "", "path": "/opt/sbin", "mime_type": "", "size": 229668, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-03-16T20:21:45.535Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-22T07:55:56.321Z", "size_readable": "", "public_url": "https://fat-dusk.com/"}]}, {"metadata": {"key": 911224, "key1": 296152}, "id": "", "created_at": "2025-08-23T04:17:09.210Z", "modified_at": "2024-01-23T09:47:28.845Z", "trial_interval": "month", "trial_interval_count": 911224, "name": "", "description": "alongside coordination thread lest hairy lest elegant forager primary phew", "recurring_interval": "month", "recurring_interval_count": 634930, "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2025-08-04T01:04:24.189Z", "modified_at": "2023-07-16T02:45:46.995Z", "id": "", "amount_type": "fixed", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 399653, "legacy": true}, {"created_at": "2024-10-23T21:43:17.023Z", "modified_at": "2025-12-20T19:54:20.697Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}, {"created_at": "2025-11-22T23:56:40.197Z", "modified_at": "2024-01-23T14:22:15.631Z", "id": "", "amount_type": "custom", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "minimum_amount": 400055, "maximum_amount": 888276, "preset_amount": 86646, "legacy": true}], "benefits": [{"id": "", "created_at": "2024-04-26T17:05:58.126Z", "modified_at": "2025-07-21T06:43:45.921Z", "type": "meter_credit", "description": "overwork truly zebra pfft cheese since cycle meanwhile controvert", "selectable": true, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt/sbin", "mime_type": "", "size": 229668, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-03-16T20:21:45.535Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-22T07:55:56.321Z", "size_readable": "", "public_url": "https://fat-dusk.com/"}, {"id": "", "organization_id": "", "name": "", "path": "/opt/sbin", "mime_type": "", "size": 229668, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-03-16T20:21:45.535Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-22T07:55:56.321Z", "size_readable": "", "public_url": "https://fat-dusk.com/"}, {"id": "", "organization_id": "", "name": "", "path": "/opt/sbin", "mime_type": "", "size": 229668, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-03-16T20:21:45.535Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-22T07:55:56.321Z", "size_readable": "", "public_url": "https://fat-dusk.com/"}]}], "discount": {"duration": "repeating", "duration_in_months": 326419, "type": "percentage", "amount": 745195, "currency": "Netherlands Antillian Guilder", "created_at": "2025-06-23T21:17:26.010Z", "modified_at": "2025-06-26T01:05:36.243Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2023-01-28T19:17:48.748Z", "ends_at": "2024-09-01T16:19:02.542Z", "max_redemptions": 709108, "redemptions_count": 314886, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "url": "https://zealous-gastropod.info/"} "404": application/json: {"error": "ResourceNotFound", "detail": ""} "422": @@ -2878,7 +2880,7 @@ examples: application/json: {"duration": "once", "type": "fixed", "basis_points": 449604, "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"} responses: "201": - application/json: {"duration": "repeating", "type": "percentage", "basis_points": 554206, "created_at": "2024-06-28T22:01:22.215Z", "modified_at": "2023-10-28T11:28:49.382Z", "id": "", "metadata": {"key": 861617, "key1": ""}, "name": "", "code": "", "starts_at": "2025-06-12T13:13:14.148Z", "ends_at": "2025-10-03T09:51:48.305Z", "max_redemptions": 770360, "redemptions_count": 808721, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": [{"metadata": {"key": 6929.92}, "id": "", "created_at": "2023-03-30T03:01:36.624Z", "modified_at": "2023-02-17T03:01:59.421Z", "trial_interval": null, "trial_interval_count": 449604, "name": "", "description": "yuck cap ah never goose tenant supposing", "recurring_interval": "year", "is_recurring": false, "is_archived": true, "organization_id": ""}, {"metadata": {"key": 6929.92}, "id": "", "created_at": "2023-03-30T03:01:36.624Z", "modified_at": "2023-02-17T03:01:59.421Z", "trial_interval": "year", "trial_interval_count": 778295, "name": "", "description": "yuck cap ah never goose tenant supposing", "recurring_interval": "year", "is_recurring": false, "is_archived": true, "organization_id": ""}]} + application/json: {"duration": "repeating", "type": "percentage", "basis_points": 1000, "created_at": "2024-06-28T22:01:22.215Z", "modified_at": "2023-10-28T11:28:49.382Z", "id": "", "metadata": {"key": 861617, "key1": ""}, "name": "", "code": "", "starts_at": "2025-06-12T13:13:14.148Z", "ends_at": "2025-10-03T09:51:48.305Z", "max_redemptions": 770360, "redemptions_count": 808721, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": [{"metadata": {"key": 6929.92}, "id": "", "created_at": "2023-03-30T03:01:36.624Z", "modified_at": "2023-02-17T03:01:59.421Z", "trial_interval": null, "trial_interval_count": 449604, "name": "", "description": "yuck cap ah never goose tenant supposing", "recurring_interval": "year", "recurring_interval_count": null, "is_recurring": false, "is_archived": true, "organization_id": ""}, {"metadata": {"key": 6929.92}, "id": "", "created_at": "2023-03-30T03:01:36.624Z", "modified_at": "2023-02-17T03:01:59.421Z", "trial_interval": "year", "trial_interval_count": 778295, "name": "", "description": "yuck cap ah never goose tenant supposing", "recurring_interval": "year", "recurring_interval_count": 449604, "is_recurring": false, "is_archived": true, "organization_id": ""}]} "422": application/json: {} discounts:get: @@ -2902,7 +2904,7 @@ examples: application/json: {} responses: "200": - application/json: {"duration": "once", "duration_in_months": 117, "type": "fixed", "basis_points": 973440, "created_at": "2024-09-05T17:29:55.720Z", "modified_at": "2024-10-12T14:38:27.615Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2023-08-26T01:45:34.164Z", "ends_at": "2024-06-13T23:22:33.257Z", "max_redemptions": 507599, "redemptions_count": 925227, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": [{"metadata": {"key": "", "key1": ""}, "id": "", "created_at": "2024-04-10T14:21:09.490Z", "modified_at": "2025-12-29T22:34:07.692Z", "trial_interval": null, "trial_interval_count": null, "name": "", "description": "hm forenenst knickers instead afore ack whereas", "recurring_interval": "year", "is_recurring": true, "is_archived": true, "organization_id": ""}]} + application/json: {"duration": "once", "duration_in_months": 117, "type": "fixed", "basis_points": 1000, "created_at": "2024-09-05T17:29:55.720Z", "modified_at": "2024-10-12T14:38:27.615Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2023-08-26T01:45:34.164Z", "ends_at": "2024-06-13T23:22:33.257Z", "max_redemptions": 507599, "redemptions_count": 925227, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": [{"metadata": {"key": "", "key1": ""}, "id": "", "created_at": "2024-04-10T14:21:09.490Z", "modified_at": "2025-12-29T22:34:07.692Z", "trial_interval": null, "trial_interval_count": null, "name": "", "description": "hm forenenst knickers instead afore ack whereas", "recurring_interval": "year", "recurring_interval_count": null, "is_recurring": true, "is_archived": true, "organization_id": ""}]} "404": application/json: {"error": "ResourceNotFound", "detail": ""} "422": @@ -3043,7 +3045,7 @@ examples: limit: 10 responses: "200": - application/json: {"items": [{"created_at": "2023-10-06T18:19:15.209Z", "modified_at": "2023-01-16T21:16:44.906Z", "id": "", "granted_at": "2025-09-12T06:08:19.548Z", "revoked_at": "2024-07-27T16:14:40.792Z", "customer_id": "", "benefit_id": "", "subscription_id": "", "order_id": "", "is_granted": false, "is_revoked": false, "customer": {"created_at": "2024-01-30T06:11:54.152Z", "modified_at": "2024-10-14T21:25:11.296Z", "id": "", "email": "Vicente.Kirlin@hotmail.com", "email_verified": true, "name": "", "billing_name": "", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "oauth_accounts": {"key": {"account_id": "", "account_username": ""}}}, "benefit": {"id": "", "created_at": "2025-10-21T22:16:50.607Z", "modified_at": "2023-01-05T08:53:06.816Z", "type": "discord", "description": "blindly forage boo consequently apostrophize because gee like", "selectable": false, "deletable": true, "organization_id": "", "metadata": {"key": 25686}, "organization": {"created_at": "2023-07-24T13:25:35.655Z", "modified_at": "2024-11-21T03:40:07.983Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://zealous-privilege.name", "email": "Aida.Legros3@yahoo.com", "website": "", "socials": [], "status": "active", "details_submitted_at": "2024-11-28T06:50:24.190Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": false, "allow_customer_updates": true, "proration_behavior": "invoice"}, "notification_settings": {"new_order": false, "new_subscription": true}, "customer_email_settings": {"order_confirmation": true, "subscription_cancellation": true, "subscription_confirmation": false, "subscription_cycled": false, "subscription_past_due": true, "subscription_revoked": false, "subscription_uncanceled": true, "subscription_updated": false}}, "properties": {"guild_id": ""}}, "properties": {}}], "pagination": {"total_count": 807142, "max_page": 415643}} + application/json: {"items": [{"created_at": "2023-10-06T18:19:15.209Z", "modified_at": "2023-01-16T21:16:44.906Z", "id": "", "granted_at": "2025-09-12T06:08:19.548Z", "revoked_at": "2024-07-27T16:14:40.792Z", "customer_id": "", "benefit_id": "", "subscription_id": "", "order_id": "", "is_granted": false, "is_revoked": false, "customer": {"created_at": "2024-01-30T06:11:54.152Z", "modified_at": "2024-10-14T21:25:11.296Z", "id": "", "email": "Vicente.Kirlin@hotmail.com", "email_verified": true, "name": "", "billing_name": "", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "oauth_accounts": {"key": {"account_id": "", "account_username": ""}}}, "benefit": {"id": "", "created_at": "2025-10-21T22:16:50.607Z", "modified_at": "2023-01-05T08:53:06.816Z", "type": "discord", "description": "blindly forage boo consequently apostrophize because gee like", "selectable": false, "deletable": true, "organization_id": "", "metadata": {"key": 25686}, "organization": {"created_at": "2023-07-24T13:25:35.655Z", "modified_at": "2024-11-21T03:40:07.983Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://zealous-privilege.name", "email": "Aida.Legros3@yahoo.com", "website": "", "socials": [], "status": "active", "details_submitted_at": "2024-11-28T06:50:24.190Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false, "revops_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": false, "allow_customer_updates": true, "proration_behavior": "invoice"}, "notification_settings": {"new_order": false, "new_subscription": true}, "customer_email_settings": {"order_confirmation": true, "subscription_cancellation": true, "subscription_confirmation": false, "subscription_cycled": false, "subscription_past_due": true, "subscription_revoked": false, "subscription_uncanceled": true, "subscription_updated": false}}, "properties": {"guild_id": ""}}, "properties": {}}], "pagination": {"total_count": 807142, "max_page": 415643}} "422": application/json: {} customer_portal:benefit-grants:get: @@ -3053,7 +3055,7 @@ examples: id: "" responses: "200": - application/json: {"created_at": "2023-03-15T12:31:38.233Z", "modified_at": "2024-02-13T22:07:31.852Z", "id": "", "granted_at": "2024-01-09T12:49:39.354Z", "revoked_at": "2024-02-23T12:20:05.574Z", "customer_id": "", "benefit_id": "", "subscription_id": "", "order_id": "", "is_granted": true, "is_revoked": true, "customer": {"created_at": "2025-03-28T16:05:13.207Z", "modified_at": "2024-06-09T07:03:07.238Z", "id": "", "email": "Xzavier.Kulas@yahoo.com", "email_verified": false, "name": "", "billing_name": null, "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "oauth_accounts": {"key": {"account_id": "", "account_username": ""}, "key1": {"account_id": "", "account_username": ""}, "key2": {"account_id": "", "account_username": ""}}}, "benefit": {"id": "", "created_at": "2023-08-07T17:03:14.237Z", "modified_at": "2025-11-05T17:02:30.549Z", "type": "downloadables", "description": "status coaxingly likewise comestible", "selectable": true, "deletable": true, "organization_id": "", "metadata": {"key": 6941.29, "key1": true, "key2": ""}, "organization": {"created_at": "2025-12-31T12:09:33.011Z", "modified_at": "2024-08-15T16:11:29.574Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://troubled-starboard.com/", "email": "Orville_Kiehn40@hotmail.com", "website": "", "socials": [{"platform": "github", "url": "https://fair-elver.com/"}, {"platform": "github", "url": "https://fair-elver.com/"}, {"platform": "github", "url": "https://fair-elver.com/"}], "status": "onboarding_started", "details_submitted_at": "2024-05-23T08:49:35.651Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": false, "allow_customer_updates": false, "proration_behavior": "invoice"}, "notification_settings": {"new_order": true, "new_subscription": true}, "customer_email_settings": {"order_confirmation": true, "subscription_cancellation": true, "subscription_confirmation": true, "subscription_cycled": true, "subscription_past_due": true, "subscription_revoked": true, "subscription_uncanceled": false, "subscription_updated": true}}, "properties": {"active_files": ["", "", ""]}}, "properties": {}} + application/json: {"created_at": "2023-03-15T12:31:38.233Z", "modified_at": "2024-02-13T22:07:31.852Z", "id": "", "granted_at": "2024-01-09T12:49:39.354Z", "revoked_at": "2024-02-23T12:20:05.574Z", "customer_id": "", "benefit_id": "", "subscription_id": "", "order_id": "", "is_granted": true, "is_revoked": true, "customer": {"created_at": "2025-03-28T16:05:13.207Z", "modified_at": "2024-06-09T07:03:07.238Z", "id": "", "email": "Xzavier.Kulas@yahoo.com", "email_verified": false, "name": "", "billing_name": null, "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "oauth_accounts": {"key": {"account_id": "", "account_username": ""}, "key1": {"account_id": "", "account_username": ""}, "key2": {"account_id": "", "account_username": ""}}}, "benefit": {"id": "", "created_at": "2023-08-07T17:03:14.237Z", "modified_at": "2025-11-05T17:02:30.549Z", "type": "downloadables", "description": "status coaxingly likewise comestible", "selectable": true, "deletable": true, "organization_id": "", "metadata": {"key": 6941.29, "key1": true, "key2": ""}, "organization": {"created_at": "2025-12-31T12:09:33.011Z", "modified_at": "2024-08-15T16:11:29.574Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://troubled-starboard.com/", "email": "Orville_Kiehn40@hotmail.com", "website": "", "socials": [{"platform": "github", "url": "https://fair-elver.com/"}, {"platform": "github", "url": "https://fair-elver.com/"}, {"platform": "github", "url": "https://fair-elver.com/"}], "status": "onboarding_started", "details_submitted_at": "2024-05-23T08:49:35.651Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false, "revops_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": false, "allow_customer_updates": false, "proration_behavior": "invoice"}, "notification_settings": {"new_order": true, "new_subscription": true}, "customer_email_settings": {"order_confirmation": true, "subscription_cancellation": true, "subscription_confirmation": true, "subscription_cycled": true, "subscription_past_due": true, "subscription_revoked": true, "subscription_uncanceled": false, "subscription_updated": true}}, "properties": {"active_files": ["", "", ""]}}, "properties": {}} "404": application/json: {"error": "ResourceNotFound", "detail": ""} "422": @@ -3067,7 +3069,7 @@ examples: application/json: {"benefit_type": "license_keys"} responses: "200": - application/json: {"created_at": "2025-07-10T10:56:59.187Z", "modified_at": "2024-11-29T22:52:47.998Z", "id": "", "granted_at": "2024-11-21T02:12:57.379Z", "revoked_at": "2024-01-20T03:02:07.139Z", "customer_id": "", "benefit_id": "", "subscription_id": "", "order_id": "", "is_granted": true, "is_revoked": true, "customer": {"created_at": "2025-06-22T09:01:10.015Z", "modified_at": "2025-12-26T04:03:17.755Z", "id": "", "email": "Willow_Roob@hotmail.com", "email_verified": false, "name": "", "billing_name": "", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "oauth_accounts": {"key": {"account_id": "", "account_username": ""}, "key1": {"account_id": "", "account_username": ""}, "key2": {"account_id": "", "account_username": ""}}}, "benefit": {"id": "", "created_at": "2023-11-27T05:25:19.719Z", "modified_at": "2023-07-22T16:23:00.918Z", "type": "custom", "description": "for lest psst distinct", "selectable": true, "deletable": false, "organization_id": "", "metadata": {}, "organization": {"created_at": "2025-08-20T12:19:54.050Z", "modified_at": "2023-08-23T02:58:50.453Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://determined-curl.info/", "email": "Aletha42@gmail.com", "website": "", "socials": [], "status": "active", "details_submitted_at": "2024-09-19T13:32:23.170Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": true, "allow_customer_updates": false, "proration_behavior": "invoice"}, "notification_settings": {"new_order": true, "new_subscription": false}, "customer_email_settings": {"order_confirmation": true, "subscription_cancellation": false, "subscription_confirmation": false, "subscription_cycled": false, "subscription_past_due": true, "subscription_revoked": true, "subscription_uncanceled": true, "subscription_updated": false}}, "properties": {"note": ""}}, "properties": {}} + application/json: {"created_at": "2025-07-10T10:56:59.187Z", "modified_at": "2024-11-29T22:52:47.998Z", "id": "", "granted_at": "2024-11-21T02:12:57.379Z", "revoked_at": "2024-01-20T03:02:07.139Z", "customer_id": "", "benefit_id": "", "subscription_id": "", "order_id": "", "is_granted": true, "is_revoked": true, "customer": {"created_at": "2025-06-22T09:01:10.015Z", "modified_at": "2025-12-26T04:03:17.755Z", "id": "", "email": "Willow_Roob@hotmail.com", "email_verified": false, "name": "", "billing_name": "", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "oauth_accounts": {"key": {"account_id": "", "account_username": ""}, "key1": {"account_id": "", "account_username": ""}, "key2": {"account_id": "", "account_username": ""}}}, "benefit": {"id": "", "created_at": "2023-11-27T05:25:19.719Z", "modified_at": "2023-07-22T16:23:00.918Z", "type": "custom", "description": "for lest psst distinct", "selectable": true, "deletable": false, "organization_id": "", "metadata": {}, "organization": {"created_at": "2025-08-20T12:19:54.050Z", "modified_at": "2023-08-23T02:58:50.453Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://determined-curl.info/", "email": "Aletha42@gmail.com", "website": "", "socials": [], "status": "active", "details_submitted_at": "2024-09-19T13:32:23.170Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false, "revops_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": true, "allow_customer_updates": false, "proration_behavior": "invoice"}, "notification_settings": {"new_order": true, "new_subscription": false}, "customer_email_settings": {"order_confirmation": true, "subscription_cancellation": false, "subscription_confirmation": false, "subscription_cycled": false, "subscription_past_due": true, "subscription_revoked": true, "subscription_uncanceled": true, "subscription_updated": false}}, "properties": {"note": ""}}, "properties": {}} "403": application/json: {"error": "NotPermitted", "detail": ""} "404": @@ -3235,7 +3237,7 @@ examples: limit: 10 responses: "200": - application/json: {"items": [{"id": "", "created_at": "2025-11-20T11:42:23.721Z", "modified_at": "2024-05-18T16:54:56.965Z", "status": "refunded", "paid": true, "subtotal_amount": 819161, "discount_amount": 845676, "net_amount": 924720, "tax_amount": 63217, "total_amount": 598982, "applied_balance_amount": 281470, "due_amount": 702832, "refunded_amount": 539673, "refunded_tax_amount": 14405, "currency": "Zambian Kwacha", "billing_reason": "subscription_cycle", "billing_name": "", "billing_address": {"country": "FR"}, "invoice_number": "", "is_invoice_generated": false, "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "user_id": "", "product": {"id": "", "created_at": "2025-09-22T00:37:01.920Z", "modified_at": "2023-05-31T06:38:55.188Z", "trial_interval": "month", "trial_interval_count": 459585, "name": "", "description": "fiercely apud before tinderbox aboard blah affect how spork afford", "recurring_interval": "year", "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2025-11-20T11:42:23.721Z", "modified_at": "2025-01-24T20:31:05.561Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}, {"created_at": "2023-03-11T06:52:22.440Z", "modified_at": "2024-08-14T11:34:08.193Z", "id": "", "amount_type": "custom", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "minimum_amount": 137114, "maximum_amount": 429591, "preset_amount": 912957, "legacy": true}], "benefits": [{"id": "", "created_at": "2023-11-27T01:22:01.788Z", "modified_at": "2024-06-26T00:10:46.957Z", "type": "discord", "description": "into mortally sizzle candid deliquesce descendant", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/boot", "mime_type": "", "size": 118717, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-02-22T18:42:21.517Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-10-14T04:26:27.485Z", "size_readable": "", "public_url": "https://unkempt-pasta.net"}, {"id": "", "organization_id": "", "name": "", "path": "/boot", "mime_type": "", "size": 118717, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-02-22T18:42:21.517Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-10-14T04:26:27.485Z", "size_readable": "", "public_url": "https://unkempt-pasta.net"}, {"id": "", "organization_id": "", "name": "", "path": "/boot", "mime_type": "", "size": 118717, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-02-22T18:42:21.517Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-10-14T04:26:27.485Z", "size_readable": "", "public_url": "https://unkempt-pasta.net"}], "organization": {"created_at": "2025-06-04T05:46:13.875Z", "modified_at": "2025-02-04T00:06:48.998Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://similar-hyphenation.org/", "email": "Ashlynn.Koepp48@gmail.com", "website": "", "socials": [{"platform": "other", "url": "https://narrow-pick.name"}, {"platform": "other", "url": "https://narrow-pick.name"}], "status": "onboarding_started", "details_submitted_at": "2024-04-03T15:58:01.711Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": true, "allow_customer_updates": true, "proration_behavior": "prorate"}, "notification_settings": {"new_order": true, "new_subscription": false}, "customer_email_settings": {"order_confirmation": true, "subscription_cancellation": false, "subscription_confirmation": false, "subscription_cycled": true, "subscription_past_due": false, "subscription_revoked": false, "subscription_uncanceled": false, "subscription_updated": false}}}, "subscription": {"created_at": "2024-08-13T08:41:59.340Z", "modified_at": "2023-12-03T21:20:26.944Z", "id": "", "amount": 871599, "currency": "Libyan Dinar", "recurring_interval": "month", "status": "unpaid", "current_period_start": "2023-08-19T10:55:51.517Z", "current_period_end": "2024-02-18T12:53:08.743Z", "trial_start": "2025-06-16T19:11:41.518Z", "trial_end": "2025-10-10T11:49:01.641Z", "cancel_at_period_end": false, "canceled_at": "2025-03-18T00:10:37.394Z", "started_at": "2024-03-22T06:31:06.826Z", "ends_at": "2023-04-25T20:41:07.944Z", "ended_at": "2024-01-11T00:16:27.501Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "low_quality", "customer_cancellation_comment": ""}, "items": [{"created_at": "2023-03-28T11:43:12.063Z", "modified_at": "2024-08-31T19:05:47.710Z", "id": "", "label": "", "amount": 838116, "tax_amount": 970865, "proration": true, "product_price_id": ""}]}, {"id": "", "created_at": "2025-11-20T11:42:23.721Z", "modified_at": "2024-05-18T16:54:56.965Z", "status": "refunded", "paid": true, "subtotal_amount": 819161, "discount_amount": 845676, "net_amount": 924720, "tax_amount": 63217, "total_amount": 598982, "applied_balance_amount": 962124, "due_amount": 459585, "refunded_amount": 539673, "refunded_tax_amount": 14405, "currency": "Zambian Kwacha", "billing_reason": "subscription_cycle", "billing_name": "", "billing_address": {"country": "FR"}, "invoice_number": "", "is_invoice_generated": true, "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "user_id": "", "product": {"id": "", "created_at": "2025-09-22T00:37:01.920Z", "modified_at": "2023-05-31T06:38:55.188Z", "trial_interval": null, "trial_interval_count": null, "name": "", "description": "fiercely apud before tinderbox aboard blah affect how spork afford", "recurring_interval": "year", "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2023-10-16T20:01:02.505Z", "modified_at": "2025-05-05T13:21:53.464Z", "id": "", "amount_type": "custom", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "minimum_amount": 189389, "maximum_amount": 822701, "preset_amount": 822806, "legacy": true}, {"created_at": "2023-04-21T17:38:42.994Z", "modified_at": "2024-04-28T08:49:12.731Z", "id": "", "amount_type": "custom", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "minimum_amount": 557013, "maximum_amount": 974759, "preset_amount": 262240, "legacy": true}], "benefits": [{"id": "", "created_at": "2023-11-27T01:22:01.788Z", "modified_at": "2024-06-26T00:10:46.957Z", "type": "discord", "description": "into mortally sizzle candid deliquesce descendant", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/boot", "mime_type": "", "size": 118717, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-02-22T18:42:21.517Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-10-14T04:26:27.485Z", "size_readable": "", "public_url": "https://unkempt-pasta.net"}, {"id": "", "organization_id": "", "name": "", "path": "/boot", "mime_type": "", "size": 118717, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-02-22T18:42:21.517Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-10-14T04:26:27.485Z", "size_readable": "", "public_url": "https://unkempt-pasta.net"}, {"id": "", "organization_id": "", "name": "", "path": "/boot", "mime_type": "", "size": 118717, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-02-22T18:42:21.517Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-10-14T04:26:27.485Z", "size_readable": "", "public_url": "https://unkempt-pasta.net"}], "organization": {"created_at": "2025-06-04T05:46:13.875Z", "modified_at": "2025-02-04T00:06:48.998Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://similar-hyphenation.org/", "email": "Ashlynn.Koepp48@gmail.com", "website": "", "socials": [{"platform": "other", "url": "https://narrow-pick.name"}, {"platform": "other", "url": "https://narrow-pick.name"}], "status": "denied", "details_submitted_at": "2024-04-03T15:58:01.711Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": true, "allow_customer_updates": true, "proration_behavior": "prorate"}, "notification_settings": {"new_order": true, "new_subscription": false}, "customer_email_settings": {"order_confirmation": true, "subscription_cancellation": false, "subscription_confirmation": false, "subscription_cycled": true, "subscription_past_due": false, "subscription_revoked": false, "subscription_uncanceled": false, "subscription_updated": false}}}, "subscription": {"created_at": "2024-08-13T08:41:59.340Z", "modified_at": "2023-12-03T21:20:26.944Z", "id": "", "amount": 871599, "currency": "Libyan Dinar", "recurring_interval": "month", "status": "unpaid", "current_period_start": "2023-08-19T10:55:51.517Z", "current_period_end": "2024-02-18T12:53:08.743Z", "trial_start": "2024-08-14T11:34:08.193Z", "trial_end": null, "cancel_at_period_end": false, "canceled_at": "2025-03-18T00:10:37.394Z", "started_at": "2024-03-22T06:31:06.826Z", "ends_at": "2023-04-25T20:41:07.944Z", "ended_at": "2024-01-11T00:16:27.501Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "low_quality", "customer_cancellation_comment": ""}, "items": [{"created_at": "2023-03-28T11:43:12.063Z", "modified_at": "2024-08-31T19:05:47.710Z", "id": "", "label": "", "amount": 838116, "tax_amount": 970865, "proration": true, "product_price_id": ""}]}], "pagination": {"total_count": 217242, "max_page": 911504}} + application/json: {"items": [{"id": "", "created_at": "2025-11-20T11:42:23.721Z", "modified_at": "2024-05-18T16:54:56.965Z", "status": "refunded", "paid": true, "subtotal_amount": 819161, "discount_amount": 845676, "net_amount": 924720, "tax_amount": 63217, "total_amount": 598982, "applied_balance_amount": 281470, "due_amount": 702832, "refunded_amount": 539673, "refunded_tax_amount": 14405, "currency": "Zambian Kwacha", "billing_reason": "subscription_cycle", "billing_name": "", "billing_address": {"country": "FR"}, "invoice_number": "", "is_invoice_generated": false, "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "user_id": "", "product": {"id": "", "created_at": "2025-09-22T00:37:01.920Z", "modified_at": "2023-05-31T06:38:55.188Z", "trial_interval": "month", "trial_interval_count": 459585, "name": "", "description": "fiercely apud before tinderbox aboard blah affect how spork afford", "recurring_interval": "year", "recurring_interval_count": 702832, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2025-11-20T11:42:23.721Z", "modified_at": "2025-01-24T20:31:05.561Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}, {"created_at": "2023-03-11T06:52:22.440Z", "modified_at": "2024-08-14T11:34:08.193Z", "id": "", "amount_type": "custom", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "minimum_amount": 137114, "maximum_amount": 429591, "preset_amount": 912957, "legacy": true}], "benefits": [{"id": "", "created_at": "2023-11-27T01:22:01.788Z", "modified_at": "2024-06-26T00:10:46.957Z", "type": "discord", "description": "into mortally sizzle candid deliquesce descendant", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/boot", "mime_type": "", "size": 118717, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-02-22T18:42:21.517Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-10-14T04:26:27.485Z", "size_readable": "", "public_url": "https://unkempt-pasta.net"}, {"id": "", "organization_id": "", "name": "", "path": "/boot", "mime_type": "", "size": 118717, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-02-22T18:42:21.517Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-10-14T04:26:27.485Z", "size_readable": "", "public_url": "https://unkempt-pasta.net"}, {"id": "", "organization_id": "", "name": "", "path": "/boot", "mime_type": "", "size": 118717, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-02-22T18:42:21.517Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-10-14T04:26:27.485Z", "size_readable": "", "public_url": "https://unkempt-pasta.net"}], "organization": {"created_at": "2025-06-04T05:46:13.875Z", "modified_at": "2025-02-04T00:06:48.998Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://similar-hyphenation.org/", "email": "Ashlynn.Koepp48@gmail.com", "website": "", "socials": [{"platform": "other", "url": "https://narrow-pick.name"}, {"platform": "other", "url": "https://narrow-pick.name"}], "status": "onboarding_started", "details_submitted_at": "2024-04-03T15:58:01.711Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false, "revops_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": true, "allow_customer_updates": true, "proration_behavior": "prorate"}, "notification_settings": {"new_order": true, "new_subscription": false}, "customer_email_settings": {"order_confirmation": true, "subscription_cancellation": false, "subscription_confirmation": false, "subscription_cycled": true, "subscription_past_due": false, "subscription_revoked": false, "subscription_uncanceled": false, "subscription_updated": false}}}, "subscription": {"created_at": "2024-08-13T08:41:59.340Z", "modified_at": "2023-12-03T21:20:26.944Z", "id": "", "amount": 871599, "currency": "Libyan Dinar", "recurring_interval": "month", "recurring_interval_count": 962124, "status": "unpaid", "current_period_start": "2023-08-19T10:55:51.517Z", "current_period_end": "2024-02-18T12:53:08.743Z", "trial_start": "2025-06-16T19:11:41.518Z", "trial_end": "2025-10-10T11:49:01.641Z", "cancel_at_period_end": false, "canceled_at": "2025-03-18T00:10:37.394Z", "started_at": "2024-03-22T06:31:06.826Z", "ends_at": "2023-04-25T20:41:07.944Z", "ended_at": "2024-01-11T00:16:27.501Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "low_quality", "customer_cancellation_comment": ""}, "items": [{"created_at": "2023-03-28T11:43:12.063Z", "modified_at": "2024-08-31T19:05:47.710Z", "id": "", "label": "", "amount": 838116, "tax_amount": 970865, "proration": true, "product_price_id": ""}], "description": "Pro Plan"}, {"id": "", "created_at": "2025-11-20T11:42:23.721Z", "modified_at": "2024-05-18T16:54:56.965Z", "status": "refunded", "paid": true, "subtotal_amount": 819161, "discount_amount": 845676, "net_amount": 924720, "tax_amount": 63217, "total_amount": 598982, "applied_balance_amount": 962124, "due_amount": 459585, "refunded_amount": 539673, "refunded_tax_amount": 14405, "currency": "Zambian Kwacha", "billing_reason": "subscription_cycle", "billing_name": "", "billing_address": {"country": "FR"}, "invoice_number": "", "is_invoice_generated": true, "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "user_id": "", "product": {"id": "", "created_at": "2025-09-22T00:37:01.920Z", "modified_at": "2023-05-31T06:38:55.188Z", "trial_interval": null, "trial_interval_count": null, "name": "", "description": "fiercely apud before tinderbox aboard blah affect how spork afford", "recurring_interval": "year", "recurring_interval_count": 688736, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2023-10-16T20:01:02.505Z", "modified_at": "2025-05-05T13:21:53.464Z", "id": "", "amount_type": "custom", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "minimum_amount": 189389, "maximum_amount": 822701, "preset_amount": 822806, "legacy": true}, {"created_at": "2023-04-21T17:38:42.994Z", "modified_at": "2024-04-28T08:49:12.731Z", "id": "", "amount_type": "custom", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "minimum_amount": 557013, "maximum_amount": 974759, "preset_amount": 262240, "legacy": true}], "benefits": [{"id": "", "created_at": "2023-11-27T01:22:01.788Z", "modified_at": "2024-06-26T00:10:46.957Z", "type": "discord", "description": "into mortally sizzle candid deliquesce descendant", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/boot", "mime_type": "", "size": 118717, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-02-22T18:42:21.517Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-10-14T04:26:27.485Z", "size_readable": "", "public_url": "https://unkempt-pasta.net"}, {"id": "", "organization_id": "", "name": "", "path": "/boot", "mime_type": "", "size": 118717, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-02-22T18:42:21.517Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-10-14T04:26:27.485Z", "size_readable": "", "public_url": "https://unkempt-pasta.net"}, {"id": "", "organization_id": "", "name": "", "path": "/boot", "mime_type": "", "size": 118717, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-02-22T18:42:21.517Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-10-14T04:26:27.485Z", "size_readable": "", "public_url": "https://unkempt-pasta.net"}], "organization": {"created_at": "2025-06-04T05:46:13.875Z", "modified_at": "2025-02-04T00:06:48.998Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://similar-hyphenation.org/", "email": "Ashlynn.Koepp48@gmail.com", "website": "", "socials": [{"platform": "other", "url": "https://narrow-pick.name"}, {"platform": "other", "url": "https://narrow-pick.name"}], "status": "denied", "details_submitted_at": "2024-04-03T15:58:01.711Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false, "revops_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": true, "allow_customer_updates": true, "proration_behavior": "prorate"}, "notification_settings": {"new_order": true, "new_subscription": false}, "customer_email_settings": {"order_confirmation": true, "subscription_cancellation": false, "subscription_confirmation": false, "subscription_cycled": true, "subscription_past_due": false, "subscription_revoked": false, "subscription_uncanceled": false, "subscription_updated": false}}}, "subscription": {"created_at": "2024-08-13T08:41:59.340Z", "modified_at": "2023-12-03T21:20:26.944Z", "id": "", "amount": 871599, "currency": "Libyan Dinar", "recurring_interval": "month", "recurring_interval_count": 819161, "status": "unpaid", "current_period_start": "2023-08-19T10:55:51.517Z", "current_period_end": "2024-02-18T12:53:08.743Z", "trial_start": "2024-08-14T11:34:08.193Z", "trial_end": null, "cancel_at_period_end": false, "canceled_at": "2025-03-18T00:10:37.394Z", "started_at": "2024-03-22T06:31:06.826Z", "ends_at": "2023-04-25T20:41:07.944Z", "ended_at": "2024-01-11T00:16:27.501Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "low_quality", "customer_cancellation_comment": ""}, "items": [{"created_at": "2023-03-28T11:43:12.063Z", "modified_at": "2024-08-31T19:05:47.710Z", "id": "", "label": "", "amount": 838116, "tax_amount": 970865, "proration": true, "product_price_id": ""}], "description": "Pro Plan"}], "pagination": {"total_count": 217242, "max_page": 911504}} "422": application/json: {} customer_portal:orders:get: @@ -3245,7 +3247,7 @@ examples: id: "" responses: "200": - application/json: {"id": "", "created_at": "2025-11-07T01:29:33.239Z", "modified_at": "2024-05-19T13:54:46.070Z", "status": "partially_refunded", "paid": true, "subtotal_amount": 10000, "discount_amount": 1000, "net_amount": 9000, "tax_amount": 720, "total_amount": 9720, "applied_balance_amount": 0, "due_amount": 0, "refunded_amount": 0, "refunded_tax_amount": 0, "currency": "usd", "billing_reason": "subscription_update", "billing_name": "", "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": true, "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "user_id": "", "product": {"id": "", "created_at": "2023-07-18T15:45:42.662Z", "modified_at": "2025-09-21T13:22:43.123Z", "trial_interval": "week", "trial_interval_count": 836532, "name": "", "description": "excluding below instead especially around crowded", "recurring_interval": "month", "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2025-10-01T14:10:31.444Z", "modified_at": "2025-11-12T18:03:36.492Z", "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "price_amount": 953506, "legacy": true}, {"created_at": "2025-11-13T23:04:52.208Z", "modified_at": "2023-07-18T15:45:42.662Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "legacy": true}, {"created_at": "2025-11-28T10:02:29.850Z", "modified_at": "2025-10-31T04:09:20.708Z", "id": "", "amount_type": "fixed", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "price_amount": 887993, "legacy": true}], "benefits": [{"id": "", "created_at": "2023-11-13T18:57:39.316Z", "modified_at": "2023-04-29T11:32:36.819Z", "type": "meter_credit", "description": "bobble cappelletti slime ah in-joke", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/private/var", "mime_type": "", "size": 597925, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-12-05T16:14:08.598Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-04-10T23:36:40.097Z", "size_readable": "", "public_url": "https://sudden-vicinity.org"}], "organization": {"created_at": "2024-05-25T14:56:03.555Z", "modified_at": "2024-09-13T23:34:30.029Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://tasty-procurement.biz", "email": "Eugenia.Crist@gmail.com", "website": "", "socials": [{"platform": "github", "url": "https://devoted-tusk.net/"}], "status": "active", "details_submitted_at": "2024-01-14T14:41:07.540Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": true, "allow_customer_updates": true, "proration_behavior": "invoice"}, "notification_settings": {"new_order": true, "new_subscription": true}, "customer_email_settings": {"order_confirmation": false, "subscription_cancellation": true, "subscription_confirmation": false, "subscription_cycled": false, "subscription_past_due": false, "subscription_revoked": false, "subscription_uncanceled": true, "subscription_updated": false}}}, "subscription": {"created_at": "2023-11-22T00:35:42.709Z", "modified_at": "2025-01-02T22:15:08.835Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "year", "status": "incomplete_expired", "current_period_start": "2023-06-07T17:49:09.159Z", "current_period_end": "2025-09-02T13:45:06.535Z", "trial_start": "2025-01-24T05:08:03.541Z", "trial_end": null, "cancel_at_period_end": true, "canceled_at": "2025-11-20T05:04:08.720Z", "started_at": "2024-08-31T06:02:38.009Z", "ends_at": "2024-04-13T05:40:37.441Z", "ended_at": "2024-07-31T04:00:00.849Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "too_complex", "customer_cancellation_comment": ""}, "items": [{"created_at": "2023-01-16T11:36:24.673Z", "modified_at": "2024-12-03T06:40:18.477Z", "id": "", "label": "", "amount": 778927, "tax_amount": 586171, "proration": false, "product_price_id": ""}, {"created_at": "2023-01-16T11:36:24.673Z", "modified_at": "2024-12-03T06:40:18.477Z", "id": "", "label": "", "amount": 778927, "tax_amount": 586171, "proration": false, "product_price_id": ""}, {"created_at": "2023-01-16T11:36:24.673Z", "modified_at": "2024-12-03T06:40:18.477Z", "id": "", "label": "", "amount": 778927, "tax_amount": 586171, "proration": false, "product_price_id": ""}]} + application/json: {"id": "", "created_at": "2025-11-07T01:29:33.239Z", "modified_at": "2024-05-19T13:54:46.070Z", "status": "partially_refunded", "paid": true, "subtotal_amount": 10000, "discount_amount": 1000, "net_amount": 9000, "tax_amount": 720, "total_amount": 9720, "applied_balance_amount": 0, "due_amount": 0, "refunded_amount": 0, "refunded_tax_amount": 0, "currency": "usd", "billing_reason": "subscription_update", "billing_name": "", "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": true, "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "user_id": "", "product": {"id": "", "created_at": "2023-07-18T15:45:42.662Z", "modified_at": "2025-09-21T13:22:43.123Z", "trial_interval": "week", "trial_interval_count": 836532, "name": "", "description": "excluding below instead especially around crowded", "recurring_interval": "month", "recurring_interval_count": 460383, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2025-10-01T14:10:31.444Z", "modified_at": "2025-11-12T18:03:36.492Z", "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "price_amount": 953506, "legacy": true}, {"created_at": "2025-11-13T23:04:52.208Z", "modified_at": "2023-07-18T15:45:42.662Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "legacy": true}, {"created_at": "2025-11-28T10:02:29.850Z", "modified_at": "2025-10-31T04:09:20.708Z", "id": "", "amount_type": "fixed", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "price_amount": 887993, "legacy": true}], "benefits": [{"id": "", "created_at": "2023-11-13T18:57:39.316Z", "modified_at": "2023-04-29T11:32:36.819Z", "type": "meter_credit", "description": "bobble cappelletti slime ah in-joke", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/private/var", "mime_type": "", "size": 597925, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-12-05T16:14:08.598Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-04-10T23:36:40.097Z", "size_readable": "", "public_url": "https://sudden-vicinity.org"}], "organization": {"created_at": "2024-05-25T14:56:03.555Z", "modified_at": "2024-09-13T23:34:30.029Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://tasty-procurement.biz", "email": "Eugenia.Crist@gmail.com", "website": "", "socials": [{"platform": "github", "url": "https://devoted-tusk.net/"}], "status": "active", "details_submitted_at": "2024-01-14T14:41:07.540Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false, "revops_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": true, "allow_customer_updates": true, "proration_behavior": "invoice"}, "notification_settings": {"new_order": true, "new_subscription": true}, "customer_email_settings": {"order_confirmation": false, "subscription_cancellation": true, "subscription_confirmation": false, "subscription_cycled": false, "subscription_past_due": false, "subscription_revoked": false, "subscription_uncanceled": true, "subscription_updated": false}}}, "subscription": {"created_at": "2023-11-22T00:35:42.709Z", "modified_at": "2025-01-02T22:15:08.835Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "year", "recurring_interval_count": 916598, "status": "incomplete_expired", "current_period_start": "2023-06-07T17:49:09.159Z", "current_period_end": "2025-09-02T13:45:06.535Z", "trial_start": "2025-01-24T05:08:03.541Z", "trial_end": null, "cancel_at_period_end": true, "canceled_at": "2025-11-20T05:04:08.720Z", "started_at": "2024-08-31T06:02:38.009Z", "ends_at": "2024-04-13T05:40:37.441Z", "ended_at": "2024-07-31T04:00:00.849Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "too_complex", "customer_cancellation_comment": ""}, "items": [{"created_at": "2023-01-16T11:36:24.673Z", "modified_at": "2024-12-03T06:40:18.477Z", "id": "", "label": "", "amount": 778927, "tax_amount": 586171, "proration": false, "product_price_id": ""}, {"created_at": "2023-01-16T11:36:24.673Z", "modified_at": "2024-12-03T06:40:18.477Z", "id": "", "label": "", "amount": 778927, "tax_amount": 586171, "proration": false, "product_price_id": ""}, {"created_at": "2023-01-16T11:36:24.673Z", "modified_at": "2024-12-03T06:40:18.477Z", "id": "", "label": "", "amount": 778927, "tax_amount": 586171, "proration": false, "product_price_id": ""}], "description": "Pro Plan"} "404": application/json: {"error": "ResourceNotFound", "detail": ""} "422": @@ -3269,7 +3271,7 @@ examples: slug: "" responses: "200": - application/json: {"organization": {"created_at": "2025-06-05T07:04:36.562Z", "modified_at": "2024-11-04T18:26:01.006Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://that-disadvantage.biz", "email": "Kameron.Armstrong@yahoo.com", "website": "", "socials": [{"platform": "other", "url": "https://frozen-pigsty.name"}, {"platform": "other", "url": "https://frozen-pigsty.name"}], "status": "active", "details_submitted_at": "2024-11-20T11:32:22.608Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": false, "allow_customer_updates": false, "proration_behavior": "invoice"}, "notification_settings": {"new_order": false, "new_subscription": false}, "customer_email_settings": {"order_confirmation": false, "subscription_cancellation": false, "subscription_confirmation": false, "subscription_cycled": false, "subscription_past_due": true, "subscription_revoked": true, "subscription_uncanceled": false, "subscription_updated": false}}, "products": []} + application/json: {"organization": {"created_at": "2025-06-05T07:04:36.562Z", "modified_at": "2024-11-04T18:26:01.006Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://that-disadvantage.biz", "email": "Kameron.Armstrong@yahoo.com", "website": "", "socials": [{"platform": "other", "url": "https://frozen-pigsty.name"}, {"platform": "other", "url": "https://frozen-pigsty.name"}], "status": "active", "details_submitted_at": "2024-11-20T11:32:22.608Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false, "revops_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": false, "allow_customer_updates": false, "proration_behavior": "invoice"}, "notification_settings": {"new_order": false, "new_subscription": false}, "customer_email_settings": {"order_confirmation": false, "subscription_cancellation": false, "subscription_confirmation": false, "subscription_cycled": false, "subscription_past_due": true, "subscription_revoked": true, "subscription_uncanceled": false, "subscription_updated": false}}, "products": []} "404": application/json: {"error": "ResourceNotFound", "detail": ""} "422": @@ -3283,7 +3285,7 @@ examples: limit: 10 responses: "200": - application/json: {"items": [{"created_at": "2023-01-03T00:35:12.592Z", "modified_at": "2024-09-28T03:20:00.312Z", "id": "", "amount": 31846, "currency": "Pakistan Rupee", "recurring_interval": "month", "status": "unpaid", "current_period_start": "2023-11-09T06:12:04.123Z", "current_period_end": "2025-01-25T11:12:42.694Z", "trial_start": "2024-07-18T17:21:46.759Z", "trial_end": null, "cancel_at_period_end": true, "canceled_at": "2023-11-12T13:08:09.571Z", "started_at": "2023-08-04T11:59:00.224Z", "ends_at": "2025-05-27T18:23:00.769Z", "ended_at": "2025-10-28T08:23:28.446Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "switched_service", "customer_cancellation_comment": "", "product": {"id": "", "created_at": "2024-01-04T03:39:38.578Z", "modified_at": "2025-05-06T00:46:00.044Z", "trial_interval": "day", "trial_interval_count": 96114, "name": "", "description": "growing opposite tomography telescope quiet why phew", "recurring_interval": "year", "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2023-01-03T00:35:12.592Z", "modified_at": "2023-02-04T21:40:45.220Z", "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "price_amount": 944637, "legacy": true}], "benefits": [{"id": "", "created_at": "2024-03-14T21:13:40.961Z", "modified_at": "2023-12-24T01:29:54.279Z", "type": "meter_credit", "description": "huzzah tomorrow duh yum gray cycle of", "selectable": false, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/var", "mime_type": "", "size": 746159, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-05-29T22:38:24.131Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-10-04T11:44:37.534Z", "size_readable": "", "public_url": "https://old-calculus.biz/"}], "organization": {"created_at": "2024-02-09T13:11:33.758Z", "modified_at": "2025-12-02T08:22:49.298Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://definitive-toaster.biz", "email": "Carole.Gutmann@hotmail.com", "website": "", "socials": [{"platform": "instagram", "url": "https://heavy-pendant.biz"}], "status": "created", "details_submitted_at": "2025-09-01T14:17:02.975Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": false, "allow_customer_updates": false, "proration_behavior": "prorate"}, "notification_settings": {"new_order": true, "new_subscription": false}, "customer_email_settings": {"order_confirmation": true, "subscription_cancellation": false, "subscription_confirmation": true, "subscription_cycled": false, "subscription_past_due": true, "subscription_revoked": false, "subscription_uncanceled": true, "subscription_updated": false}}}, "prices": [{"created_at": "2023-08-04T11:59:00.224Z", "modified_at": "2025-10-28T08:23:28.446Z", "id": "", "amount_type": "custom", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "minimum_amount": 576386, "maximum_amount": 434809, "preset_amount": 746007, "legacy": true}], "meters": [{"created_at": "2024-01-02T23:41:03.483Z", "modified_at": "2024-07-07T11:53:07.154Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"created_at": "2024-12-27T05:30:39.834Z", "modified_at": "2024-11-06T16:58:02.245Z", "id": "", "name": ""}}], "is_polar_managed": true}, {"created_at": "2023-01-03T00:35:12.592Z", "modified_at": "2024-09-28T03:20:00.312Z", "id": "", "amount": 31846, "currency": "Pakistan Rupee", "recurring_interval": "month", "status": "unpaid", "current_period_start": "2023-11-09T06:12:04.123Z", "current_period_end": "2025-01-25T11:12:42.694Z", "trial_start": "2023-11-09T06:12:04.123Z", "trial_end": "2024-04-28T23:59:29.324Z", "cancel_at_period_end": true, "canceled_at": "2023-11-12T13:08:09.571Z", "started_at": "2023-08-04T11:59:00.224Z", "ends_at": "2025-05-27T18:23:00.769Z", "ended_at": "2025-10-28T08:23:28.446Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "switched_service", "customer_cancellation_comment": "", "product": {"id": "", "created_at": "2024-01-04T03:39:38.578Z", "modified_at": "2025-05-06T00:46:00.044Z", "trial_interval": "day", "trial_interval_count": 941013, "name": "", "description": "growing opposite tomography telescope quiet why phew", "recurring_interval": "year", "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2024-01-12T09:39:36.733Z", "modified_at": "2023-09-02T17:20:24.135Z", "id": "", "amount_type": "metered_unit", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": null, "price_currency": "", "unit_amount": "", "cap_amount": 655254, "meter_id": "", "meter": {"id": "", "name": ""}}], "benefits": [{"id": "", "created_at": "2024-03-14T21:13:40.961Z", "modified_at": "2023-12-24T01:29:54.279Z", "type": "meter_credit", "description": "huzzah tomorrow duh yum gray cycle of", "selectable": false, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/var", "mime_type": "", "size": 746159, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-05-29T22:38:24.131Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-10-04T11:44:37.534Z", "size_readable": "", "public_url": "https://old-calculus.biz/"}], "organization": {"created_at": "2024-02-09T13:11:33.758Z", "modified_at": "2025-12-02T08:22:49.298Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://definitive-toaster.biz", "email": "Carole.Gutmann@hotmail.com", "website": "", "socials": [{"platform": "instagram", "url": "https://heavy-pendant.biz"}], "status": "under_review", "details_submitted_at": "2025-09-01T14:17:02.975Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": false, "allow_customer_updates": false, "proration_behavior": "prorate"}, "notification_settings": {"new_order": true, "new_subscription": false}, "customer_email_settings": {"order_confirmation": true, "subscription_cancellation": false, "subscription_confirmation": true, "subscription_cycled": false, "subscription_past_due": true, "subscription_revoked": false, "subscription_uncanceled": true, "subscription_updated": false}}}, "prices": [{"created_at": "2023-08-23T16:58:58.285Z", "modified_at": "2023-06-20T17:27:13.322Z", "id": "", "amount_type": "fixed", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 850254, "legacy": true}], "meters": [{"created_at": "2024-01-02T23:41:03.483Z", "modified_at": "2024-07-07T11:53:07.154Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"created_at": "2024-12-27T05:30:39.834Z", "modified_at": "2024-11-06T16:58:02.245Z", "id": "", "name": ""}}], "is_polar_managed": false}], "pagination": {"total_count": 99404, "max_page": 312046}} + application/json: {"items": [{"created_at": "2023-01-03T00:35:12.592Z", "modified_at": "2024-09-28T03:20:00.312Z", "id": "", "amount": 31846, "currency": "Pakistan Rupee", "recurring_interval": "month", "recurring_interval_count": 180288, "status": "unpaid", "current_period_start": "2023-11-09T06:12:04.123Z", "current_period_end": "2025-01-25T11:12:42.694Z", "trial_start": "2024-07-18T17:21:46.759Z", "trial_end": null, "cancel_at_period_end": true, "canceled_at": "2023-11-12T13:08:09.571Z", "started_at": "2023-08-04T11:59:00.224Z", "ends_at": "2025-05-27T18:23:00.769Z", "ended_at": "2025-10-28T08:23:28.446Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "switched_service", "customer_cancellation_comment": "", "product": {"id": "", "created_at": "2024-01-04T03:39:38.578Z", "modified_at": "2025-05-06T00:46:00.044Z", "trial_interval": "day", "trial_interval_count": 96114, "name": "", "description": "growing opposite tomography telescope quiet why phew", "recurring_interval": "year", "recurring_interval_count": 1847, "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2023-01-03T00:35:12.592Z", "modified_at": "2023-02-04T21:40:45.220Z", "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "price_amount": 944637, "legacy": true}], "benefits": [{"id": "", "created_at": "2024-03-14T21:13:40.961Z", "modified_at": "2023-12-24T01:29:54.279Z", "type": "meter_credit", "description": "huzzah tomorrow duh yum gray cycle of", "selectable": false, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/var", "mime_type": "", "size": 746159, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-05-29T22:38:24.131Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-10-04T11:44:37.534Z", "size_readable": "", "public_url": "https://old-calculus.biz/"}], "organization": {"created_at": "2024-02-09T13:11:33.758Z", "modified_at": "2025-12-02T08:22:49.298Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://definitive-toaster.biz", "email": "Carole.Gutmann@hotmail.com", "website": "", "socials": [{"platform": "instagram", "url": "https://heavy-pendant.biz"}], "status": "created", "details_submitted_at": "2025-09-01T14:17:02.975Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false, "revops_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": false, "allow_customer_updates": false, "proration_behavior": "prorate"}, "notification_settings": {"new_order": true, "new_subscription": false}, "customer_email_settings": {"order_confirmation": true, "subscription_cancellation": false, "subscription_confirmation": true, "subscription_cycled": false, "subscription_past_due": true, "subscription_revoked": false, "subscription_uncanceled": true, "subscription_updated": false}}}, "prices": [{"created_at": "2023-08-04T11:59:00.224Z", "modified_at": "2025-10-28T08:23:28.446Z", "id": "", "amount_type": "custom", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "minimum_amount": 576386, "maximum_amount": 434809, "preset_amount": 746007, "legacy": true}], "meters": [{"created_at": "2024-01-02T23:41:03.483Z", "modified_at": "2024-07-07T11:53:07.154Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"created_at": "2024-12-27T05:30:39.834Z", "modified_at": "2024-11-06T16:58:02.245Z", "id": "", "name": ""}}], "is_polar_managed": true}, {"created_at": "2023-01-03T00:35:12.592Z", "modified_at": "2024-09-28T03:20:00.312Z", "id": "", "amount": 31846, "currency": "Pakistan Rupee", "recurring_interval": "month", "recurring_interval_count": 580419, "status": "unpaid", "current_period_start": "2023-11-09T06:12:04.123Z", "current_period_end": "2025-01-25T11:12:42.694Z", "trial_start": "2023-11-09T06:12:04.123Z", "trial_end": "2024-04-28T23:59:29.324Z", "cancel_at_period_end": true, "canceled_at": "2023-11-12T13:08:09.571Z", "started_at": "2023-08-04T11:59:00.224Z", "ends_at": "2025-05-27T18:23:00.769Z", "ended_at": "2025-10-28T08:23:28.446Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "switched_service", "customer_cancellation_comment": "", "product": {"id": "", "created_at": "2024-01-04T03:39:38.578Z", "modified_at": "2025-05-06T00:46:00.044Z", "trial_interval": "day", "trial_interval_count": 941013, "name": "", "description": "growing opposite tomography telescope quiet why phew", "recurring_interval": "year", "recurring_interval_count": null, "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2024-01-12T09:39:36.733Z", "modified_at": "2023-09-02T17:20:24.135Z", "id": "", "amount_type": "metered_unit", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": null, "price_currency": "", "unit_amount": "", "cap_amount": 655254, "meter_id": "", "meter": {"id": "", "name": ""}}], "benefits": [{"id": "", "created_at": "2024-03-14T21:13:40.961Z", "modified_at": "2023-12-24T01:29:54.279Z", "type": "meter_credit", "description": "huzzah tomorrow duh yum gray cycle of", "selectable": false, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/var", "mime_type": "", "size": 746159, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-05-29T22:38:24.131Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-10-04T11:44:37.534Z", "size_readable": "", "public_url": "https://old-calculus.biz/"}], "organization": {"created_at": "2024-02-09T13:11:33.758Z", "modified_at": "2025-12-02T08:22:49.298Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://definitive-toaster.biz", "email": "Carole.Gutmann@hotmail.com", "website": "", "socials": [{"platform": "instagram", "url": "https://heavy-pendant.biz"}], "status": "under_review", "details_submitted_at": "2025-09-01T14:17:02.975Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false, "revops_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": false, "allow_customer_updates": false, "proration_behavior": "prorate"}, "notification_settings": {"new_order": true, "new_subscription": false}, "customer_email_settings": {"order_confirmation": true, "subscription_cancellation": false, "subscription_confirmation": true, "subscription_cycled": false, "subscription_past_due": true, "subscription_revoked": false, "subscription_uncanceled": true, "subscription_updated": false}}}, "prices": [{"created_at": "2023-08-23T16:58:58.285Z", "modified_at": "2023-06-20T17:27:13.322Z", "id": "", "amount_type": "fixed", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 850254, "legacy": true}], "meters": [{"created_at": "2024-01-02T23:41:03.483Z", "modified_at": "2024-07-07T11:53:07.154Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"created_at": "2024-12-27T05:30:39.834Z", "modified_at": "2024-11-06T16:58:02.245Z", "id": "", "name": ""}}], "is_polar_managed": false}], "pagination": {"total_count": 99404, "max_page": 312046}} "422": application/json: {} customer_portal:subscriptions:get: @@ -3293,7 +3295,7 @@ examples: id: "" responses: "200": - application/json: {"created_at": "2023-07-12T17:28:38.797Z", "modified_at": "2025-06-29T15:49:22.120Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "status": "incomplete", "current_period_start": "2025-01-28T04:47:39.807Z", "current_period_end": "2024-12-11T03:15:34.736Z", "trial_start": "2025-06-29T15:49:22.120Z", "trial_end": "2024-11-13T19:04:25.284Z", "cancel_at_period_end": true, "canceled_at": "2025-04-27T11:18:42.852Z", "started_at": "2023-09-11T20:47:05.678Z", "ends_at": "2025-08-05T11:04:05.877Z", "ended_at": "2024-01-29T06:39:34.276Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "too_complex", "customer_cancellation_comment": "", "product": {"id": "", "created_at": "2024-12-08T10:29:34.380Z", "modified_at": "2023-01-27T20:11:12.304Z", "trial_interval": "day", "trial_interval_count": 647934, "name": "", "description": "rightfully breastplate pretend because", "recurring_interval": "month", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2023-06-27T14:55:14.822Z", "modified_at": "2024-06-06T10:00:39.244Z", "id": "", "amount_type": "free", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}], "benefits": [{"id": "", "created_at": "2024-05-10T07:46:44.640Z", "modified_at": "2023-05-10T03:58:02.060Z", "type": "license_keys", "description": "importance whole whoever whoa furthermore hole nervously wrongly young crackle", "selectable": true, "deletable": true, "organization_id": ""}, {"id": "", "created_at": "2024-05-10T07:46:44.640Z", "modified_at": "2023-05-10T03:58:02.060Z", "type": "license_keys", "description": "importance whole whoever whoa furthermore hole nervously wrongly young crackle", "selectable": true, "deletable": true, "organization_id": ""}, {"id": "", "created_at": "2024-05-10T07:46:44.640Z", "modified_at": "2023-05-10T03:58:02.060Z", "type": "license_keys", "description": "importance whole whoever whoa furthermore hole nervously wrongly young crackle", "selectable": true, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/libexec", "mime_type": "", "size": 884334, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-01-27T02:02:41.503Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-01-17T23:03:26.187Z", "size_readable": "", "public_url": "https://dirty-step-mother.com"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/libexec", "mime_type": "", "size": 884334, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-01-27T02:02:41.503Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-01-17T23:03:26.187Z", "size_readable": "", "public_url": "https://dirty-step-mother.com"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/libexec", "mime_type": "", "size": 884334, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-01-27T02:02:41.503Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-01-17T23:03:26.187Z", "size_readable": "", "public_url": "https://dirty-step-mother.com"}], "organization": {"created_at": "2023-08-25T19:23:01.014Z", "modified_at": "2023-02-14T08:44:05.506Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://broken-breastplate.net", "email": "Kaylin_Koss46@hotmail.com", "website": "", "socials": [{"platform": "other", "url": "https://stupendous-gift.biz"}], "status": "created", "details_submitted_at": "2025-04-03T14:37:45.295Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": false, "allow_customer_updates": true, "proration_behavior": "invoice"}, "notification_settings": {"new_order": false, "new_subscription": true}, "customer_email_settings": {"order_confirmation": true, "subscription_cancellation": false, "subscription_confirmation": true, "subscription_cycled": false, "subscription_past_due": true, "subscription_revoked": true, "subscription_uncanceled": false, "subscription_updated": false}}}, "prices": [], "meters": [], "is_polar_managed": true} + application/json: {"created_at": "2023-07-12T17:28:38.797Z", "modified_at": "2025-06-29T15:49:22.120Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "recurring_interval_count": 175847, "status": "incomplete", "current_period_start": "2025-01-28T04:47:39.807Z", "current_period_end": "2024-12-11T03:15:34.736Z", "trial_start": "2025-06-29T15:49:22.120Z", "trial_end": "2024-11-13T19:04:25.284Z", "cancel_at_period_end": true, "canceled_at": "2025-04-27T11:18:42.852Z", "started_at": "2023-09-11T20:47:05.678Z", "ends_at": "2025-08-05T11:04:05.877Z", "ended_at": "2024-01-29T06:39:34.276Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "too_complex", "customer_cancellation_comment": "", "product": {"id": "", "created_at": "2024-12-08T10:29:34.380Z", "modified_at": "2023-01-27T20:11:12.304Z", "trial_interval": "day", "trial_interval_count": 647934, "name": "", "description": "rightfully breastplate pretend because", "recurring_interval": "month", "recurring_interval_count": 162063, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2023-06-27T14:55:14.822Z", "modified_at": "2024-06-06T10:00:39.244Z", "id": "", "amount_type": "free", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}], "benefits": [{"id": "", "created_at": "2024-05-10T07:46:44.640Z", "modified_at": "2023-05-10T03:58:02.060Z", "type": "license_keys", "description": "importance whole whoever whoa furthermore hole nervously wrongly young crackle", "selectable": true, "deletable": true, "organization_id": ""}, {"id": "", "created_at": "2024-05-10T07:46:44.640Z", "modified_at": "2023-05-10T03:58:02.060Z", "type": "license_keys", "description": "importance whole whoever whoa furthermore hole nervously wrongly young crackle", "selectable": true, "deletable": true, "organization_id": ""}, {"id": "", "created_at": "2024-05-10T07:46:44.640Z", "modified_at": "2023-05-10T03:58:02.060Z", "type": "license_keys", "description": "importance whole whoever whoa furthermore hole nervously wrongly young crackle", "selectable": true, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/libexec", "mime_type": "", "size": 884334, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-01-27T02:02:41.503Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-01-17T23:03:26.187Z", "size_readable": "", "public_url": "https://dirty-step-mother.com"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/libexec", "mime_type": "", "size": 884334, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-01-27T02:02:41.503Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-01-17T23:03:26.187Z", "size_readable": "", "public_url": "https://dirty-step-mother.com"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/libexec", "mime_type": "", "size": 884334, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-01-27T02:02:41.503Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-01-17T23:03:26.187Z", "size_readable": "", "public_url": "https://dirty-step-mother.com"}], "organization": {"created_at": "2023-08-25T19:23:01.014Z", "modified_at": "2023-02-14T08:44:05.506Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://broken-breastplate.net", "email": "Kaylin_Koss46@hotmail.com", "website": "", "socials": [{"platform": "other", "url": "https://stupendous-gift.biz"}], "status": "created", "details_submitted_at": "2025-04-03T14:37:45.295Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false, "revops_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": false, "allow_customer_updates": true, "proration_behavior": "invoice"}, "notification_settings": {"new_order": false, "new_subscription": true}, "customer_email_settings": {"order_confirmation": true, "subscription_cancellation": false, "subscription_confirmation": true, "subscription_cycled": false, "subscription_past_due": true, "subscription_revoked": true, "subscription_uncanceled": false, "subscription_updated": false}}}, "prices": [], "meters": [], "is_polar_managed": true} "404": application/json: {"error": "ResourceNotFound", "detail": ""} "422": @@ -3307,7 +3309,7 @@ examples: application/json: {} responses: "200": - application/json: {"created_at": "2025-02-02T12:28:03.145Z", "modified_at": "2024-05-05T11:52:58.589Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "status": "incomplete", "current_period_start": "2024-05-02T00:48:47.943Z", "current_period_end": "2025-04-10T15:02:11.907Z", "trial_start": "2025-02-02T12:28:03.145Z", "trial_end": "2025-08-15T14:46:08.118Z", "cancel_at_period_end": true, "canceled_at": "2025-10-25T22:10:52.328Z", "started_at": "2025-02-06T13:35:55.076Z", "ends_at": "2024-03-16T11:27:11.204Z", "ended_at": "2025-11-12T16:20:13.096Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "other", "customer_cancellation_comment": "", "product": {"id": "", "created_at": "2025-10-01T04:09:15.514Z", "modified_at": "2023-05-18T04:03:20.458Z", "trial_interval": "day", "trial_interval_count": 444374, "name": "", "description": "after about shy remark blindly gut surge mysteriously", "recurring_interval": "year", "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2024-05-05T11:52:58.589Z", "modified_at": "2023-07-27T15:38:08.165Z", "id": "", "amount_type": "free", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}, {"created_at": "2025-02-06T13:35:55.076Z", "modified_at": "2025-11-12T16:20:13.096Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}, {"created_at": "2023-06-12T13:50:06.969Z", "modified_at": null, "id": "", "amount_type": "fixed", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "price_amount": 1755, "legacy": true}], "benefits": [{"id": "", "created_at": "2023-02-20T23:17:32.070Z", "modified_at": "2023-05-11T16:03:14.155Z", "type": "custom", "description": "fleck mmm galvanize afore likely nor honesty on pish nightlife", "selectable": false, "deletable": false, "organization_id": ""}, {"id": "", "created_at": "2023-02-20T23:17:32.070Z", "modified_at": "2023-05-11T16:03:14.155Z", "type": "custom", "description": "fleck mmm galvanize afore likely nor honesty on pish nightlife", "selectable": false, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt/share", "mime_type": "", "size": 418266, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-09-24T22:10:55.930Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2024-06-03T15:23:50.070Z", "size_readable": "", "public_url": "https://kaleidoscopic-sermon.biz/"}], "organization": {"created_at": "2024-03-23T04:42:30.563Z", "modified_at": "2024-03-17T13:09:17.987Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://unique-morning.biz", "email": "Jordy.Hagenes36@gmail.com", "website": "", "socials": [{"platform": "facebook", "url": "https://agreeable-hammock.net/"}, {"platform": "facebook", "url": "https://agreeable-hammock.net/"}, {"platform": "facebook", "url": "https://agreeable-hammock.net/"}], "status": "denied", "details_submitted_at": "2025-06-19T23:33:19.165Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": true, "allow_customer_updates": true, "proration_behavior": "invoice"}, "notification_settings": {"new_order": false, "new_subscription": true}, "customer_email_settings": {"order_confirmation": false, "subscription_cancellation": false, "subscription_confirmation": true, "subscription_cycled": false, "subscription_past_due": true, "subscription_revoked": true, "subscription_uncanceled": true, "subscription_updated": true}}}, "prices": [{"created_at": "2024-06-13T05:57:27.540Z", "modified_at": "2023-06-03T17:01:14.742Z", "id": "", "amount_type": "fixed", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 257508, "legacy": true}, {"created_at": "2024-12-25T12:17:12.970Z", "modified_at": "2025-07-15T18:22:25.310Z", "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "price_amount": 10451, "legacy": true}, {"created_at": "2025-02-23T03:18:17.335Z", "modified_at": null, "id": "", "amount_type": "free", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "legacy": true}], "meters": [{"created_at": "2025-12-04T10:33:41.991Z", "modified_at": "2024-02-15T02:45:06.709Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"created_at": "2025-03-17T14:07:39.213Z", "modified_at": "2024-01-15T18:31:43.688Z", "id": "", "name": ""}}, {"created_at": "2025-12-04T10:33:41.991Z", "modified_at": "2024-02-15T02:45:06.709Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"created_at": "2025-03-17T14:07:39.213Z", "modified_at": "2024-01-15T18:31:43.688Z", "id": "", "name": ""}}, {"created_at": "2025-12-04T10:33:41.991Z", "modified_at": "2024-02-15T02:45:06.709Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"created_at": "2025-03-17T14:07:39.213Z", "modified_at": "2024-01-15T18:31:43.688Z", "id": "", "name": ""}}], "is_polar_managed": false} + application/json: {"created_at": "2025-02-02T12:28:03.145Z", "modified_at": "2024-05-05T11:52:58.589Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "recurring_interval_count": 762480, "status": "incomplete", "current_period_start": "2024-05-02T00:48:47.943Z", "current_period_end": "2025-04-10T15:02:11.907Z", "trial_start": "2025-02-02T12:28:03.145Z", "trial_end": "2025-08-15T14:46:08.118Z", "cancel_at_period_end": true, "canceled_at": "2025-10-25T22:10:52.328Z", "started_at": "2025-02-06T13:35:55.076Z", "ends_at": "2024-03-16T11:27:11.204Z", "ended_at": "2025-11-12T16:20:13.096Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "other", "customer_cancellation_comment": "", "product": {"id": "", "created_at": "2025-10-01T04:09:15.514Z", "modified_at": "2023-05-18T04:03:20.458Z", "trial_interval": "day", "trial_interval_count": 444374, "name": "", "description": "after about shy remark blindly gut surge mysteriously", "recurring_interval": "year", "recurring_interval_count": 447532, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2024-05-05T11:52:58.589Z", "modified_at": "2023-07-27T15:38:08.165Z", "id": "", "amount_type": "free", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}, {"created_at": "2025-02-06T13:35:55.076Z", "modified_at": "2025-11-12T16:20:13.096Z", "id": "", "amount_type": "free", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "legacy": true}, {"created_at": "2023-06-12T13:50:06.969Z", "modified_at": null, "id": "", "amount_type": "fixed", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "price_amount": 1755, "legacy": true}], "benefits": [{"id": "", "created_at": "2023-02-20T23:17:32.070Z", "modified_at": "2023-05-11T16:03:14.155Z", "type": "custom", "description": "fleck mmm galvanize afore likely nor honesty on pish nightlife", "selectable": false, "deletable": false, "organization_id": ""}, {"id": "", "created_at": "2023-02-20T23:17:32.070Z", "modified_at": "2023-05-11T16:03:14.155Z", "type": "custom", "description": "fleck mmm galvanize afore likely nor honesty on pish nightlife", "selectable": false, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt/share", "mime_type": "", "size": 418266, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-09-24T22:10:55.930Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2024-06-03T15:23:50.070Z", "size_readable": "", "public_url": "https://kaleidoscopic-sermon.biz/"}], "organization": {"created_at": "2024-03-23T04:42:30.563Z", "modified_at": "2024-03-17T13:09:17.987Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://unique-morning.biz", "email": "Jordy.Hagenes36@gmail.com", "website": "", "socials": [{"platform": "facebook", "url": "https://agreeable-hammock.net/"}, {"platform": "facebook", "url": "https://agreeable-hammock.net/"}, {"platform": "facebook", "url": "https://agreeable-hammock.net/"}], "status": "denied", "details_submitted_at": "2025-06-19T23:33:19.165Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false, "revops_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": true, "allow_customer_updates": true, "proration_behavior": "invoice"}, "notification_settings": {"new_order": false, "new_subscription": true}, "customer_email_settings": {"order_confirmation": false, "subscription_cancellation": false, "subscription_confirmation": true, "subscription_cycled": false, "subscription_past_due": true, "subscription_revoked": true, "subscription_uncanceled": true, "subscription_updated": true}}}, "prices": [{"created_at": "2024-06-13T05:57:27.540Z", "modified_at": "2023-06-03T17:01:14.742Z", "id": "", "amount_type": "fixed", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "price_amount": 257508, "legacy": true}, {"created_at": "2024-12-25T12:17:12.970Z", "modified_at": "2025-07-15T18:22:25.310Z", "id": "", "amount_type": "fixed", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_currency": "", "price_amount": 10451, "legacy": true}, {"created_at": "2025-02-23T03:18:17.335Z", "modified_at": null, "id": "", "amount_type": "free", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "legacy": true}], "meters": [{"created_at": "2025-12-04T10:33:41.991Z", "modified_at": "2024-02-15T02:45:06.709Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"created_at": "2025-03-17T14:07:39.213Z", "modified_at": "2024-01-15T18:31:43.688Z", "id": "", "name": ""}}, {"created_at": "2025-12-04T10:33:41.991Z", "modified_at": "2024-02-15T02:45:06.709Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"created_at": "2025-03-17T14:07:39.213Z", "modified_at": "2024-01-15T18:31:43.688Z", "id": "", "name": ""}}, {"created_at": "2025-12-04T10:33:41.991Z", "modified_at": "2024-02-15T02:45:06.709Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"created_at": "2025-03-17T14:07:39.213Z", "modified_at": "2024-01-15T18:31:43.688Z", "id": "", "name": ""}}], "is_polar_managed": false} "403": application/json: {"error": "AlreadyCanceledSubscription", "detail": ""} "404": @@ -3321,7 +3323,7 @@ examples: id: "" responses: "200": - application/json: {"created_at": "2023-03-14T00:34:28.136Z", "modified_at": "2023-09-09T10:33:53.309Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "year", "status": "incomplete_expired", "current_period_start": "2025-04-20T11:15:42.217Z", "current_period_end": "2024-04-07T12:57:17.210Z", "trial_start": null, "trial_end": "2025-03-22T12:28:05.757Z", "cancel_at_period_end": false, "canceled_at": "2025-10-10T15:35:40.020Z", "started_at": "2024-02-25T05:56:22.572Z", "ends_at": "2023-02-16T10:11:42.223Z", "ended_at": "2025-10-30T05:06:32.723Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "customer_service", "customer_cancellation_comment": "", "product": {"id": "", "created_at": "2025-09-28T07:43:04.431Z", "modified_at": "2025-04-12T20:30:15.370Z", "trial_interval": "year", "trial_interval_count": 766852, "name": "", "description": "utter superior tapioca voluntarily", "recurring_interval": "year", "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2025-03-22T12:28:05.757Z", "modified_at": "2025-04-16T15:43:34.874Z", "id": "", "amount_type": "custom", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "minimum_amount": 948870, "maximum_amount": 383437, "preset_amount": null, "legacy": true}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/Library", "mime_type": "", "size": 898055, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-08-16T18:54:35.749Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2024-08-16T07:52:23.421Z", "size_readable": "", "public_url": "https://firm-stool.info/"}], "organization": {"created_at": "2024-02-13T09:57:44.502Z", "modified_at": "2023-05-25T00:47:42.399Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://ideal-retention.com", "email": "Gregorio85@hotmail.com", "website": "", "socials": [{"platform": "linkedin", "url": "https://sleepy-gymnast.net"}, {"platform": "linkedin", "url": "https://sleepy-gymnast.net"}], "status": "created", "details_submitted_at": "2025-11-28T18:14:14.817Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": false, "allow_customer_updates": false, "proration_behavior": "prorate"}, "notification_settings": {"new_order": false, "new_subscription": true}, "customer_email_settings": {"order_confirmation": true, "subscription_cancellation": true, "subscription_confirmation": false, "subscription_cycled": false, "subscription_past_due": false, "subscription_revoked": true, "subscription_uncanceled": false, "subscription_updated": true}}}, "prices": [], "meters": [{"created_at": "2023-11-11T23:46:28.631Z", "modified_at": "2024-07-12T18:40:04.657Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"created_at": "2025-04-25T21:03:55.742Z", "modified_at": "2024-09-29T21:22:23.754Z", "id": "", "name": ""}}, {"created_at": "2023-11-11T23:46:28.631Z", "modified_at": "2024-07-12T18:40:04.657Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"created_at": "2025-04-25T21:03:55.742Z", "modified_at": "2024-09-29T21:22:23.754Z", "id": "", "name": ""}}], "is_polar_managed": true} + application/json: {"created_at": "2023-03-14T00:34:28.136Z", "modified_at": "2023-09-09T10:33:53.309Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "year", "recurring_interval_count": 65715, "status": "incomplete_expired", "current_period_start": "2025-04-20T11:15:42.217Z", "current_period_end": "2024-04-07T12:57:17.210Z", "trial_start": null, "trial_end": "2025-03-22T12:28:05.757Z", "cancel_at_period_end": false, "canceled_at": "2025-10-10T15:35:40.020Z", "started_at": "2024-02-25T05:56:22.572Z", "ends_at": "2023-02-16T10:11:42.223Z", "ended_at": "2025-10-30T05:06:32.723Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "customer_service", "customer_cancellation_comment": "", "product": {"id": "", "created_at": "2025-09-28T07:43:04.431Z", "modified_at": "2025-04-12T20:30:15.370Z", "trial_interval": "year", "trial_interval_count": 766852, "name": "", "description": "utter superior tapioca voluntarily", "recurring_interval": "year", "recurring_interval_count": 740438, "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2025-03-22T12:28:05.757Z", "modified_at": "2025-04-16T15:43:34.874Z", "id": "", "amount_type": "custom", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "minimum_amount": 948870, "maximum_amount": 383437, "preset_amount": null, "legacy": true}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/Library", "mime_type": "", "size": 898055, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-08-16T18:54:35.749Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2024-08-16T07:52:23.421Z", "size_readable": "", "public_url": "https://firm-stool.info/"}], "organization": {"created_at": "2024-02-13T09:57:44.502Z", "modified_at": "2023-05-25T00:47:42.399Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://ideal-retention.com", "email": "Gregorio85@hotmail.com", "website": "", "socials": [{"platform": "linkedin", "url": "https://sleepy-gymnast.net"}, {"platform": "linkedin", "url": "https://sleepy-gymnast.net"}], "status": "created", "details_submitted_at": "2025-11-28T18:14:14.817Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false, "revops_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": false, "allow_customer_updates": false, "proration_behavior": "prorate"}, "notification_settings": {"new_order": false, "new_subscription": true}, "customer_email_settings": {"order_confirmation": true, "subscription_cancellation": true, "subscription_confirmation": false, "subscription_cycled": false, "subscription_past_due": false, "subscription_revoked": true, "subscription_uncanceled": false, "subscription_updated": true}}}, "prices": [], "meters": [{"created_at": "2023-11-11T23:46:28.631Z", "modified_at": "2024-07-12T18:40:04.657Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"created_at": "2025-04-25T21:03:55.742Z", "modified_at": "2024-09-29T21:22:23.754Z", "id": "", "name": ""}}, {"created_at": "2023-11-11T23:46:28.631Z", "modified_at": "2024-07-12T18:40:04.657Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"created_at": "2025-04-25T21:03:55.742Z", "modified_at": "2024-09-29T21:22:23.754Z", "id": "", "name": ""}}], "is_polar_managed": true} "403": application/json: {"error": "AlreadyCanceledSubscription", "detail": ""} "404": @@ -3502,7 +3504,7 @@ examples: application/json: {"billing_name": "", "billing_address": {"country": "US"}} responses: "200": - application/json: {"id": "", "created_at": "2023-07-07T02:27:33.933Z", "modified_at": "2025-12-06T08:14:38.290Z", "status": "pending", "paid": true, "subtotal_amount": 10000, "discount_amount": 1000, "net_amount": 9000, "tax_amount": 720, "total_amount": 9720, "applied_balance_amount": 0, "due_amount": 0, "refunded_amount": 0, "refunded_tax_amount": 0, "currency": "usd", "billing_reason": "subscription_update", "billing_name": "", "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": true, "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "metadata": {}, "platform_fee_amount": 500, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2025-05-10T23:50:32.891Z", "modified_at": "2023-02-18T10:28:10.963Z", "metadata": {"key": false}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2023-09-27T12:39:54.419Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "user_id": "", "product": {"metadata": {"key": 364993, "key1": true, "key2": true}, "id": "", "created_at": "2023-04-12T21:30:23.720Z", "modified_at": "2025-07-30T06:39:42.272Z", "trial_interval": "day", "trial_interval_count": 687169, "name": "", "description": "yippee amid wire knowingly an er reproachfully mechanically who gym", "recurring_interval": "month", "is_recurring": true, "is_archived": true, "organization_id": ""}, "discount": {"duration": "repeating", "duration_in_months": 919384, "type": "fixed", "basis_points": 485397, "created_at": "2023-04-20T01:15:36.927Z", "modified_at": "2025-08-12T14:50:46.554Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2023-06-20T13:39:02.935Z", "ends_at": "2024-06-17T01:44:44.306Z", "max_redemptions": 991144, "redemptions_count": 882356, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "subscription": {"metadata": {"key": true, "key1": false}, "created_at": "2025-05-14T12:37:49.790Z", "modified_at": "2023-07-19T20:08:36.520Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "status": "incomplete", "current_period_start": "2025-06-29T04:23:47.957Z", "current_period_end": "2024-06-02T02:08:37.593Z", "trial_start": "2023-01-29T06:32:22.248Z", "trial_end": "2025-01-26T07:02:53.111Z", "cancel_at_period_end": true, "canceled_at": "2024-06-26T07:14:15.241Z", "started_at": "2025-06-03T07:15:00.193Z", "ends_at": "2023-09-17T15:31:40.614Z", "ended_at": "2024-06-15T15:33:26.067Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "unused", "customer_cancellation_comment": ""}, "items": [{"created_at": "2025-11-07T03:04:15.446Z", "modified_at": "2024-02-25T04:48:42.731Z", "id": "", "label": "", "amount": 527788, "tax_amount": 941221, "proration": true, "product_price_id": ""}, {"created_at": "2025-11-07T03:04:15.446Z", "modified_at": "2024-02-25T04:48:42.731Z", "id": "", "label": "", "amount": 527788, "tax_amount": 941221, "proration": true, "product_price_id": ""}, {"created_at": "2025-11-07T03:04:15.446Z", "modified_at": "2024-02-25T04:48:42.731Z", "id": "", "label": "", "amount": 527788, "tax_amount": 941221, "proration": true, "product_price_id": ""}]} + application/json: {"id": "", "created_at": "2023-07-07T02:27:33.933Z", "modified_at": "2025-12-06T08:14:38.290Z", "status": "pending", "paid": true, "subtotal_amount": 10000, "discount_amount": 1000, "net_amount": 9000, "tax_amount": 720, "total_amount": 9720, "applied_balance_amount": 0, "due_amount": 0, "refunded_amount": 0, "refunded_tax_amount": 0, "currency": "usd", "billing_reason": "subscription_update", "billing_name": "", "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": true, "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "metadata": {}, "platform_fee_amount": 500, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2025-05-10T23:50:32.891Z", "modified_at": "2023-02-18T10:28:10.963Z", "metadata": {"key": false}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2023-09-27T12:39:54.419Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "user_id": "", "product": {"metadata": {"key": 364993, "key1": true, "key2": true}, "id": "", "created_at": "2023-04-12T21:30:23.720Z", "modified_at": "2025-07-30T06:39:42.272Z", "trial_interval": "day", "trial_interval_count": 687169, "name": "", "description": "yippee amid wire knowingly an er reproachfully mechanically who gym", "recurring_interval": "month", "recurring_interval_count": 241006, "is_recurring": true, "is_archived": true, "organization_id": ""}, "discount": {"duration": "repeating", "duration_in_months": 919384, "type": "fixed", "basis_points": 485397, "created_at": "2023-04-20T01:15:36.927Z", "modified_at": "2025-08-12T14:50:46.554Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2023-06-20T13:39:02.935Z", "ends_at": "2024-06-17T01:44:44.306Z", "max_redemptions": 991144, "redemptions_count": 882356, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "subscription": {"metadata": {"key": true, "key1": false}, "created_at": "2025-05-14T12:37:49.790Z", "modified_at": "2023-07-19T20:08:36.520Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "recurring_interval_count": 170714, "status": "incomplete", "current_period_start": "2025-06-29T04:23:47.957Z", "current_period_end": "2024-06-02T02:08:37.593Z", "trial_start": "2023-01-29T06:32:22.248Z", "trial_end": "2025-01-26T07:02:53.111Z", "cancel_at_period_end": true, "canceled_at": "2024-06-26T07:14:15.241Z", "started_at": "2025-06-03T07:15:00.193Z", "ends_at": "2023-09-17T15:31:40.614Z", "ended_at": "2024-06-15T15:33:26.067Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "unused", "customer_cancellation_comment": ""}, "items": [{"created_at": "2025-11-07T03:04:15.446Z", "modified_at": "2024-02-25T04:48:42.731Z", "id": "", "label": "", "amount": 527788, "tax_amount": 941221, "proration": true, "product_price_id": ""}, {"created_at": "2025-11-07T03:04:15.446Z", "modified_at": "2024-02-25T04:48:42.731Z", "id": "", "label": "", "amount": 527788, "tax_amount": 941221, "proration": true, "product_price_id": ""}, {"created_at": "2025-11-07T03:04:15.446Z", "modified_at": "2024-02-25T04:48:42.731Z", "id": "", "label": "", "amount": 527788, "tax_amount": 941221, "proration": true, "product_price_id": ""}], "description": "Pro Plan"} "404": application/json: {"error": "ResourceNotFound", "detail": ""} "422": @@ -3528,7 +3530,7 @@ examples: application/json: {"billing_name": "", "billing_address": {"country": "US"}} responses: "200": - application/json: {"id": "", "created_at": "2025-06-18T23:40:50.214Z", "modified_at": "2023-01-14T22:55:27.186Z", "status": "paid", "paid": true, "subtotal_amount": 10000, "discount_amount": 1000, "net_amount": 9000, "tax_amount": 720, "total_amount": 9720, "applied_balance_amount": 0, "due_amount": 0, "refunded_amount": 0, "refunded_tax_amount": 0, "currency": "usd", "billing_reason": "purchase", "billing_name": "", "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": true, "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "user_id": "", "product": {"id": "", "created_at": "2024-02-03T21:16:03.609Z", "modified_at": null, "trial_interval": "year", "trial_interval_count": 947072, "name": "", "description": "gee present next brief till or", "recurring_interval": "year", "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2025-06-18T23:40:50.214Z", "modified_at": "2023-01-14T22:55:27.186Z", "id": "", "amount_type": "metered_unit", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "unit_amount": "", "cap_amount": 459195, "meter_id": "", "meter": {"id": "", "name": ""}}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/var/yp", "mime_type": "", "size": 245978, "storage_version": "", "checksum_etag": null, "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-09-02T01:31:39.639Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2024-04-27T06:51:48.796Z", "size_readable": "", "public_url": "https://monthly-concentration.com"}], "organization": {"created_at": "2024-05-09T04:05:31.223Z", "modified_at": "2025-07-23T21:23:51.247Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://finished-language.org/", "email": "Junior80@hotmail.com", "website": "", "socials": [], "status": "denied", "details_submitted_at": "2023-09-01T22:21:18.571Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": true, "allow_customer_updates": false, "proration_behavior": "invoice"}, "notification_settings": {"new_order": false, "new_subscription": false}, "customer_email_settings": {"order_confirmation": false, "subscription_cancellation": false, "subscription_confirmation": false, "subscription_cycled": false, "subscription_past_due": true, "subscription_revoked": true, "subscription_uncanceled": false, "subscription_updated": true}}}, "subscription": {"created_at": "2025-08-10T03:04:21.532Z", "modified_at": "2024-08-23T05:41:16.519Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "status": "incomplete_expired", "current_period_start": "2024-07-27T23:16:23.597Z", "current_period_end": "2025-01-04T16:08:44.590Z", "trial_start": null, "trial_end": "2025-05-04T04:31:46.399Z", "cancel_at_period_end": true, "canceled_at": "2025-03-10T21:35:49.211Z", "started_at": "2023-10-24T00:47:38.683Z", "ends_at": "2024-08-10T21:46:10.059Z", "ended_at": "2023-10-02T07:02:51.789Z", "customer_id": "", "product_id": "", "discount_id": null, "checkout_id": "", "customer_cancellation_reason": "too_complex", "customer_cancellation_comment": ""}, "items": [{"created_at": "2024-10-06T01:05:33.969Z", "modified_at": "2024-09-29T23:53:44.892Z", "id": "", "label": "", "amount": 924277, "tax_amount": 651911, "proration": false, "product_price_id": ""}, {"created_at": "2024-10-06T01:05:33.969Z", "modified_at": "2024-09-29T23:53:44.892Z", "id": "", "label": "", "amount": 924277, "tax_amount": 651911, "proration": false, "product_price_id": ""}, {"created_at": "2024-10-06T01:05:33.969Z", "modified_at": "2024-09-29T23:53:44.892Z", "id": "", "label": "", "amount": 924277, "tax_amount": 651911, "proration": false, "product_price_id": ""}]} + application/json: {"id": "", "created_at": "2025-06-18T23:40:50.214Z", "modified_at": "2023-01-14T22:55:27.186Z", "status": "paid", "paid": true, "subtotal_amount": 10000, "discount_amount": 1000, "net_amount": 9000, "tax_amount": 720, "total_amount": 9720, "applied_balance_amount": 0, "due_amount": 0, "refunded_amount": 0, "refunded_tax_amount": 0, "currency": "usd", "billing_reason": "purchase", "billing_name": "", "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": true, "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "user_id": "", "product": {"id": "", "created_at": "2024-02-03T21:16:03.609Z", "modified_at": null, "trial_interval": "year", "trial_interval_count": 947072, "name": "", "description": "gee present next brief till or", "recurring_interval": "year", "recurring_interval_count": 817410, "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2025-06-18T23:40:50.214Z", "modified_at": "2023-01-14T22:55:27.186Z", "id": "", "amount_type": "metered_unit", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "unit_amount": "", "cap_amount": 459195, "meter_id": "", "meter": {"id": "", "name": ""}}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/var/yp", "mime_type": "", "size": 245978, "storage_version": "", "checksum_etag": null, "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-09-02T01:31:39.639Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2024-04-27T06:51:48.796Z", "size_readable": "", "public_url": "https://monthly-concentration.com"}], "organization": {"created_at": "2024-05-09T04:05:31.223Z", "modified_at": "2025-07-23T21:23:51.247Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://finished-language.org/", "email": "Junior80@hotmail.com", "website": "", "socials": [], "status": "denied", "details_submitted_at": "2023-09-01T22:21:18.571Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false, "revops_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": true, "allow_customer_updates": false, "proration_behavior": "invoice"}, "notification_settings": {"new_order": false, "new_subscription": false}, "customer_email_settings": {"order_confirmation": false, "subscription_cancellation": false, "subscription_confirmation": false, "subscription_cycled": false, "subscription_past_due": true, "subscription_revoked": true, "subscription_uncanceled": false, "subscription_updated": true}}}, "subscription": {"created_at": "2025-08-10T03:04:21.532Z", "modified_at": "2024-08-23T05:41:16.519Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "recurring_interval_count": 821156, "status": "incomplete_expired", "current_period_start": "2024-07-27T23:16:23.597Z", "current_period_end": "2025-01-04T16:08:44.590Z", "trial_start": null, "trial_end": "2025-05-04T04:31:46.399Z", "cancel_at_period_end": true, "canceled_at": "2025-03-10T21:35:49.211Z", "started_at": "2023-10-24T00:47:38.683Z", "ends_at": "2024-08-10T21:46:10.059Z", "ended_at": "2023-10-02T07:02:51.789Z", "customer_id": "", "product_id": "", "discount_id": null, "checkout_id": "", "customer_cancellation_reason": "too_complex", "customer_cancellation_comment": ""}, "items": [{"created_at": "2024-10-06T01:05:33.969Z", "modified_at": "2024-09-29T23:53:44.892Z", "id": "", "label": "", "amount": 924277, "tax_amount": 651911, "proration": false, "product_price_id": ""}, {"created_at": "2024-10-06T01:05:33.969Z", "modified_at": "2024-09-29T23:53:44.892Z", "id": "", "label": "", "amount": 924277, "tax_amount": 651911, "proration": false, "product_price_id": ""}, {"created_at": "2024-10-06T01:05:33.969Z", "modified_at": "2024-09-29T23:53:44.892Z", "id": "", "label": "", "amount": 924277, "tax_amount": 651911, "proration": false, "product_price_id": ""}], "description": "Pro Plan"} "404": application/json: {"error": "ResourceNotFound", "detail": ""} "422": @@ -3784,7 +3786,7 @@ examples: application/json: {} responses: "200": - application/json: {"created_at": "2024-10-26T09:07:16.987Z", "modified_at": "2024-02-12T05:39:40.718Z", "id": "8b7fef07-0f8e-424f-b52c-4bbf79cc4d14", "subscription_id": "9323e1eb-97e9-4217-bebb-db643678b83d", "status": "claimed"} + application/json: {"created_at": "2024-10-26T09:07:16.987Z", "modified_at": "2024-02-12T05:39:40.718Z", "id": "8b7fef07-0f8e-424f-b52c-4bbf79cc4d14", "status": "claimed"} "422": application/json: {} customer_portal:seats:revoke_seat: @@ -3794,7 +3796,7 @@ examples: seat_id: "4b3d74b3-01ff-4aac-bd03-320535cd5ce4" responses: "200": - application/json: {"created_at": "2025-07-13T15:07:21.585Z", "modified_at": "2024-02-27T09:48:22.662Z", "id": "a0c1fc03-f1e1-47ac-80de-00d2f672dcd7", "subscription_id": "2bc99968-cb59-42f4-ae46-d2b4e05eb07c", "status": "revoked"} + application/json: {"created_at": "2025-07-13T15:07:21.585Z", "modified_at": "2024-02-27T09:48:22.662Z", "id": "a0c1fc03-f1e1-47ac-80de-00d2f672dcd7", "status": "revoked"} "422": application/json: {} customer_portal:seats:resend_invitation: @@ -3804,14 +3806,14 @@ examples: seat_id: "e3817437-8d53-4578-88d2-1dc256825965" responses: "200": - application/json: {"created_at": "2024-04-07T01:24:29.339Z", "modified_at": null, "id": "18bd079e-a0ad-43ff-a714-4011874ff35e", "subscription_id": "35d015bc-d4cb-4328-854c-68b2be34a93b", "status": "revoked"} + application/json: {"created_at": "2024-04-07T01:24:29.339Z", "modified_at": null, "id": "18bd079e-a0ad-43ff-a714-4011874ff35e", "status": "revoked"} "422": application/json: {} customer_portal:seats:list_claimed_subscriptions: speakeasy-default-customer-portal:seats:list-claimed-subscriptions: responses: "200": - application/json: [{"created_at": "2023-07-05T03:11:10.458Z", "modified_at": null, "id": "", "amount": 188802, "currency": "East Caribbean Dollar", "recurring_interval": "month", "status": "trialing", "current_period_start": "2025-09-23T18:01:38.664Z", "current_period_end": null, "trial_start": "2024-11-15T19:25:07.298Z", "trial_end": "2024-11-21T16:14:26.632Z", "cancel_at_period_end": true, "canceled_at": "2025-09-04T07:50:50.427Z", "started_at": "2025-04-06T15:41:59.631Z", "ends_at": "2024-01-11T20:31:07.862Z", "ended_at": "2025-07-13T17:45:41.928Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "customer_service", "customer_cancellation_comment": "", "product": {"id": "", "created_at": "2025-07-01T03:12:52.869Z", "modified_at": null, "trial_interval": "year", "trial_interval_count": 622272, "name": "", "description": "airbus irritably loudly jive drain deployment happily badly oh", "recurring_interval": "month", "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2024-02-04T14:35:33.491Z", "modified_at": "2024-07-09T12:47:49.884Z", "id": "", "amount_type": "seat_based", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "seat_tiers": {"tiers": []}}], "benefits": [{"id": "", "created_at": "2024-01-28T05:47:37.378Z", "modified_at": "2024-03-11T13:18:09.440Z", "type": "discord", "description": "worth circular however congregate", "selectable": true, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/var/spool", "mime_type": "", "size": 652913, "storage_version": null, "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": null, "last_modified_at": "2025-01-29T20:54:15.453Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2024-11-20T13:19:02.015Z", "size_readable": "", "public_url": "https://trusty-ceramics.info/"}], "organization": {"created_at": "2024-11-01T13:25:57.001Z", "modified_at": "2024-08-12T19:24:27.962Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://frightened-designation.name/", "email": null, "website": "", "socials": [], "status": "onboarding_started", "details_submitted_at": "2024-04-15T00:33:04.792Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": true, "allow_customer_updates": true, "proration_behavior": "prorate"}, "notification_settings": {"new_order": true, "new_subscription": true}, "customer_email_settings": {"order_confirmation": true, "subscription_cancellation": true, "subscription_confirmation": true, "subscription_cycled": false, "subscription_past_due": false, "subscription_revoked": true, "subscription_uncanceled": false, "subscription_updated": true}}}, "prices": [], "meters": [], "is_polar_managed": false}] + application/json: [{"created_at": "2023-07-05T03:11:10.458Z", "modified_at": null, "id": "", "amount": 188802, "currency": "East Caribbean Dollar", "recurring_interval": "month", "recurring_interval_count": 168916, "status": "trialing", "current_period_start": "2025-09-23T18:01:38.664Z", "current_period_end": null, "trial_start": "2024-11-15T19:25:07.298Z", "trial_end": "2024-11-21T16:14:26.632Z", "cancel_at_period_end": true, "canceled_at": "2025-09-04T07:50:50.427Z", "started_at": "2025-04-06T15:41:59.631Z", "ends_at": "2024-01-11T20:31:07.862Z", "ended_at": "2025-07-13T17:45:41.928Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "customer_service", "customer_cancellation_comment": "", "product": {"id": "", "created_at": "2025-07-01T03:12:52.869Z", "modified_at": null, "trial_interval": "year", "trial_interval_count": 622272, "name": "", "description": "airbus irritably loudly jive drain deployment happily badly oh", "recurring_interval": "month", "recurring_interval_count": null, "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2024-02-04T14:35:33.491Z", "modified_at": "2024-07-09T12:47:49.884Z", "id": "", "amount_type": "seat_based", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_currency": "", "seat_tiers": {"tiers": []}}], "benefits": [{"id": "", "created_at": "2024-01-28T05:47:37.378Z", "modified_at": "2024-03-11T13:18:09.440Z", "type": "discord", "description": "worth circular however congregate", "selectable": true, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/var/spool", "mime_type": "", "size": 652913, "storage_version": null, "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": null, "last_modified_at": "2025-01-29T20:54:15.453Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2024-11-20T13:19:02.015Z", "size_readable": "", "public_url": "https://trusty-ceramics.info/"}], "organization": {"created_at": "2024-11-01T13:25:57.001Z", "modified_at": "2024-08-12T19:24:27.962Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://frightened-designation.name/", "email": null, "website": "", "socials": [], "status": "onboarding_started", "details_submitted_at": "2024-04-15T00:33:04.792Z", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false, "revops_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": true, "allow_customer_updates": true, "proration_behavior": "prorate"}, "notification_settings": {"new_order": true, "new_subscription": true}, "customer_email_settings": {"order_confirmation": true, "subscription_cancellation": true, "subscription_confirmation": true, "subscription_cycled": false, "subscription_past_due": false, "subscription_revoked": true, "subscription_uncanceled": false, "subscription_updated": true}}}, "prices": [], "meters": [], "is_polar_managed": false}] customer_portal:customer-session:introspect: speakeasy-default-customer-portal:customer-session:introspect: responses: @@ -3819,4 +3821,4 @@ examples: application/json: {"expires_at": "2024-05-11T10:26:41.943Z", "return_url": "https://affectionate-ectoderm.com/"} examplesVersion: 1.0.2 generatedTests: {} -releaseNotes: "## Typescript SDK Changes Detected:\n* `polar.EndpointcheckoutCreatedPost()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar.EndpointcheckoutUpdatedPost()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar.EndpointsubscriptionCreatedPost()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar.EndpointsubscriptionUpdatedPost()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar.EndpointsubscriptionActivePost()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar.EndpointsubscriptionCanceledPost()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar.EndpointsubscriptionUncanceledPost()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar.EndpointsubscriptionRevokedPost()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar.EndpointproductCreatedPost()`: \n * `request.data.prices.[]` **Changed** **Breaking** :warning:\n* `polar.EndpointproductUpdatedPost()`: \n * `request.data.prices.[]` **Changed** **Breaking** :warning:\n* `polar.subscriptions.list()`: `response.items.[]` **Changed**\n* `polar.subscriptions.get()`: `response` **Changed**\n* `polar.subscriptions.revoke()`: `response` **Changed**\n* `polar.subscriptions.update()`: `response` **Changed**\n* `polar.products.list()`: `response.items.[].prices.[]` **Changed**\n* `polar.products.create()`: `response.prices.[]` **Changed**\n* `polar.products.get()`: `response.prices.[]` **Changed**\n* `polar.products.update()`: `response.prices.[]` **Changed**\n* `polar.products.updateBenefits()`: `response.prices.[]` **Changed**\n* `polar.orders.generateInvoice()`: `error` **Changed**\n* `polar.checkouts.list()`: `response.items.[]` **Changed**\n* `polar.checkouts.create()`: `response` **Changed**\n* `polar.checkouts.get()`: `response` **Changed**\n* `polar.checkouts.update()`: `response` **Changed**\n* `polar.checkouts.clientGet()`: `response` **Changed**\n* `polar.checkouts.clientUpdate()`: `response` **Changed**\n* `polar.checkouts.clientConfirm()`: `response` **Changed**\n* `polar.checkoutLinks.list()`: `response.items.[].products.[].prices.[]` **Changed**\n* `polar.checkoutLinks.create()`: `response.products.[].prices.[]` **Changed**\n* `polar.checkoutLinks.get()`: `response.products.[].prices.[]` **Changed**\n* `polar.checkoutLinks.update()`: `response.products.[].prices.[]` **Changed**\n* `polar.customerPortal.seats.listClaimedSubscriptions()`: `response.[]` **Changed**\n* `polar.customerPortal.orders.list()`: `response.items.[].product.prices.[]` **Changed**\n* `polar.customerPortal.orders.get()`: `response.product.prices.[]` **Changed**\n* `polar.customerPortal.orders.update()`: `response.product.prices.[]` **Changed**\n* `polar.customerPortal.orders.generateInvoice()`: `error` **Changed**\n* `polar.customerPortal.organizations.get()`: `response.products.[].prices.[]` **Changed**\n* `polar.customerPortal.subscriptions.list()`: `response.items.[]` **Changed**\n* `polar.customerPortal.subscriptions.get()`: `response` **Changed**\n* `polar.customerPortal.subscriptions.cancel()`: `response` **Changed**\n* `polar.customerPortal.subscriptions.update()`: `response` **Changed**\n" +releaseNotes: "## Typescript SDK Changes Detected:\n* `polar.EndpointcheckoutCreatedPost()`: \n * `request.data.products.[].recurringIntervalCount` **Added** **Breaking** :warning:\n* `polar.EndpointcheckoutUpdatedPost()`: \n * `request.data.products.[].recurringIntervalCount` **Added** **Breaking** :warning:\n* `polar.EndpointorderCreatedPost()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar.EndpointorderUpdatedPost()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar.EndpointorderPaidPost()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar.EndpointorderRefundedPost()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar.EndpointsubscriptionCreatedPost()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar.EndpointsubscriptionUpdatedPost()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar.EndpointsubscriptionActivePost()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar.EndpointsubscriptionCanceledPost()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar.EndpointsubscriptionUncanceledPost()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar.EndpointsubscriptionRevokedPost()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar.EndpointproductCreatedPost()`: \n * `request.data.recurringIntervalCount` **Added** **Breaking** :warning:\n* `polar.EndpointproductUpdatedPost()`: \n * `request.data.recurringIntervalCount` **Added** **Breaking** :warning:\n* `polar.orders.list()`: `response.items.[]` **Changed** **Breaking** :warning:\n* `polar.orders.get()`: `response` **Changed** **Breaking** :warning:\n* `polar.orders.update()`: `response` **Changed** **Breaking** :warning:\n* `polar.orders.generateInvoice()`: `error.status[409]` **Removed** **Breaking** :warning:\n* `polar.customerPortal.seats.listSeats()`: \n * `request` **Changed**\n * `response.seats.[]` **Changed** **Breaking** :warning:\n* `polar.customerPortal.orders.generateInvoice()`: `error.status[409]` **Removed** **Breaking** :warning:\n* `polar.customerPortal.orders.update()`: `response` **Changed** **Breaking** :warning:\n* `polar.customerPortal.orders.get()`: `response` **Changed** **Breaking** :warning:\n* `polar.customerPortal.orders.list()`: `response.items.[]` **Changed** **Breaking** :warning:\n* `polar.customerPortal.seats.resendInvitation()`: `response` **Changed** **Breaking** :warning:\n* `polar.customerPortal.seats.revokeSeat()`: `response` **Changed** **Breaking** :warning:\n* `polar.customerPortal.seats.assignSeat()`: \n * `request.orderId` **Added**\n * `response` **Changed** **Breaking** :warning:\n* `polar.products.updateBenefits()`: `response.recurring_interval_count` **Added**\n* `polar.discounts.list()`: `response.items.[].[discountFixedOnceForeverDuration].products.[].recurringIntervalCount` **Added**\n* `polar.products.list()`: `response.items.[].recurringIntervalCount` **Added**\n* `polar.products.create()`: \n * `request` **Changed**\n * `response.recurring_interval_count` **Added**\n* `polar.products.get()`: `response.recurring_interval_count` **Added**\n* `polar.products.update()`: \n * `request.productUpdate.recurringIntervalCount` **Added**\n * `response.recurring_interval_count` **Added**\n* `polar.subscriptions.revoke()`: `response` **Changed**\n* `polar.checkouts.list()`: `response.items.[].products.[].recurringIntervalCount` **Added**\n* `polar.checkouts.create()`: `response.products.[].recurringIntervalCount` **Added**\n* `polar.checkouts.get()`: `response.products.[].recurringIntervalCount` **Added**\n* `polar.checkouts.update()`: `response.products.[].recurringIntervalCount` **Added**\n* `polar.checkouts.clientGet()`: `response` **Changed**\n* `polar.checkouts.clientUpdate()`: `response` **Changed**\n* `polar.checkouts.clientConfirm()`: `response` **Changed**\n* `polar.metrics.get()`: `response` **Changed**\n* `polar.checkoutLinks.list()`: `response.items.[].products.[].recurringIntervalCount` **Added**\n* `polar.checkoutLinks.create()`: `response.products.[].recurringIntervalCount` **Added**\n* `polar.checkoutLinks.get()`: `response.products.[].recurringIntervalCount` **Added**\n* `polar.checkoutLinks.update()`: `response.products.[].recurringIntervalCount` **Added**\n* `polar.subscriptions.update()`: `response` **Changed**\n* `polar.discounts.create()`: `response.[discountfixedonceforeverduration].products.[].recurringIntervalCount` **Added**\n* `polar.discounts.get()`: `response.[discountpercentageonceforeverduration].products.[].recurringIntervalCount` **Added**\n* `polar.discounts.update()`: `response.[discountpercentagerepeatduration].products.[].recurringIntervalCount` **Added**\n* `polar.customerPortal.benefitGrants.list()`: `response.items.[].[customerBenefitGrantDiscord].benefit.organization.featureSettings.revopsEnabled` **Added**\n* `polar.customerPortal.benefitGrants.get()`: `response.[customerbenefitgrantcustom].benefit.organization.featureSettings.revopsEnabled` **Added**\n* `polar.subscriptions.get()`: `response` **Changed**\n* `polar.subscriptions.list()`: `response.items.[]` **Changed**\n* `polar.organizations.update()`: \n * `request.organizationUpdate.featureSettings.revopsEnabled` **Added**\n * `response.feature_settings.revopsEnabled` **Added**\n* `polar.customerPortal.benefitGrants.update()`: `response.[customerbenefitgrantcustom].benefit.organization.featureSettings.revopsEnabled` **Added**\n* `polar.customerPortal.seats.listClaimedSubscriptions()`: `response.[]` **Changed**\n* `polar.organizations.get()`: `response.feature_settings.revopsEnabled` **Added**\n* `polar.organizations.create()`: \n * `request.featureSettings.revopsEnabled` **Added**\n * `response.feature_settings.revopsEnabled` **Added**\n* `polar.organizations.list()`: `response.items.[].featureSettings.revopsEnabled` **Added**\n* `polar.EndpointorganizationUpdatedPost()`: \n * `request.data.featureSettings.revopsEnabled` **Added**\n* `polar.customerPortal.organizations.get()`: `response` **Changed**\n* `polar.customerPortal.subscriptions.list()`: `response.items.[]` **Changed**\n* `polar.customerPortal.subscriptions.get()`: `response` **Changed**\n* `polar.customerPortal.subscriptions.cancel()`: `response` **Changed**\n* `polar.customerPortal.subscriptions.update()`: `response` **Changed**\n* `polar.events.list()`: \n * `request.query` **Added**\n" diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index ca1913d7..05afa982 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -27,7 +27,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false typescript: - version: 0.38.1 + version: 0.39.0 acceptHeaderEnum: true additionalDependencies: dependencies: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 08836e2e..d88811a3 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.637.3 +speakeasyVersion: 1.638.1 sources: Polar-OAS: sourceNamespace: polar-oas - sourceRevisionDigest: sha256:98dd88f089435a1af194015ca729983c7e2888b24ddc04e77194e8f913bce865 - sourceBlobDigest: sha256:81a64948141fbdaebf65485efe43f3942459a2da5f4c44dc6519392b117ec5e7 + sourceRevisionDigest: sha256:1ab0c8d59acdcb1e52ecd7b9b1b41f132e0b86a900781a07efe58ee050905046 + sourceBlobDigest: sha256:7ddaa63ac394658121ab2c0ae526f3abdbafa59c6f135307867c75801f5979ee tags: - latest - - speakeasy-sdk-regen-1761052430 + - speakeasy-sdk-regen-1761093069 - 0.1.0 targets: polar: source: Polar-OAS sourceNamespace: polar-oas - sourceRevisionDigest: sha256:98dd88f089435a1af194015ca729983c7e2888b24ddc04e77194e8f913bce865 - sourceBlobDigest: sha256:81a64948141fbdaebf65485efe43f3942459a2da5f4c44dc6519392b117ec5e7 + sourceRevisionDigest: sha256:1ab0c8d59acdcb1e52ecd7b9b1b41f132e0b86a900781a07efe58ee050905046 + sourceBlobDigest: sha256:7ddaa63ac394658121ab2c0ae526f3abdbafa59c6f135307867c75801f5979ee codeSamplesNamespace: polar-oas-ts-code-samples - codeSamplesRevisionDigest: sha256:d885eebb74b02191bd0f112eabfec204ccb5eba75eca1445b589c23c9871fd52 + codeSamplesRevisionDigest: sha256:7f466e85d8e404002adc98b4683f29d2afddfc006a28de21811885a591ca268c workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 1b4a5961..6ad5bbf0 100644 --- a/README.md +++ b/README.md @@ -698,7 +698,7 @@ run(); * [`PolarError`](./src/models/errors/polarerror.ts): The base class for HTTP error responses. * [`HTTPValidationError`](./src/models/errors/httpvalidationerror.ts): Validation Error. Status code `422`. * -
Less common errors (25) +
Less common errors (24)
@@ -720,7 +720,6 @@ run(); * [`PaymentNotReady`](./src/models/errors/paymentnotready.ts): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of 142 methods.* * [`ExpiredCheckoutError`](./src/models/errors/expiredcheckouterror.ts): The checkout session is expired. Status code `410`. Applicable to 3 of 142 methods.* * [`SubscriptionLocked`](./src/models/errors/subscriptionlocked.ts): Subscription is pending an update. Status code `409`. Applicable to 2 of 142 methods.* -* [`InvoiceAlreadyExists`](./src/models/errors/invoicealreadyexists.ts): Order already has an invoice. Status code `409`. Applicable to 2 of 142 methods.* * [`MissingInvoiceBillingDetails`](./src/models/errors/missinginvoicebillingdetails.ts): Order is not paid or is missing billing name or address. Status code `422`. Applicable to 2 of 142 methods.* * [`NotPaidOrder`](./src/models/errors/notpaidorder.ts): Order is not paid or is missing billing name or address. Status code `422`. Applicable to 2 of 142 methods.* * [`RefundAmountTooHigh`](./src/models/errors/refundamounttoohigh.ts): Refund amount exceeds remaining order balance. Status code `400`. Applicable to 1 of 142 methods.* diff --git a/RELEASES.md b/RELEASES.md index 4e05939f..b9e3c8cd 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1058,4 +1058,14 @@ Based on: ### Generated - [typescript v0.38.1] . ### Releases -- [NPM v0.38.1] https://www.npmjs.com/package/@polar-sh/sdk/v/0.38.1 - . \ No newline at end of file +- [NPM v0.38.1] https://www.npmjs.com/package/@polar-sh/sdk/v/0.38.1 - . + +## 2025-10-23 06:35:02 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.638.1 (2.729.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.39.0] . +### Releases +- [NPM v0.39.0] https://www.npmjs.com/package/@polar-sh/sdk/v/0.39.0 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index 361521d0..89afe81b 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -320,7 +320,7 @@ actions: "x-codeSamples": - "lang": "typescript" "label": "Typescript (SDK)" - "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.seats.listSeats({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n subscriptionId: \"\",\n });\n\n console.log(result);\n}\n\nrun();" + "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.seats.listSeats({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {});\n\n console.log(result);\n}\n\nrun();" - target: $["paths"]["/v1/customer-portal/seats"]["post"] update: "x-codeSamples": @@ -896,13 +896,13 @@ actions: "x-codeSamples": - "lang": "typescript" "label": "Typescript (SDK)" - "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointcheckoutCreatedPost({\n type: \"checkout.created\",\n timestamp: new Date(\"2023-02-15T15:44:21.478Z\"),\n data: {\n id: \"\",\n createdAt: new Date(\"2025-09-12T19:48:15.814Z\"),\n modifiedAt: new Date(\"2023-09-14T02:01:27.394Z\"),\n paymentProcessor: \"stripe\",\n status: \"expired\",\n clientSecret: \"\",\n url: \"https://agreeable-reboot.biz\",\n expiresAt: new Date(\"2024-05-02T18:25:33.974Z\"),\n successUrl: \"https://rural-outrun.org\",\n returnUrl: \"https://clean-humidity.com/\",\n embedOrigin: \"\",\n amount: 275553,\n discountAmount: 9980,\n netAmount: 266632,\n taxAmount: 348968,\n totalAmount: 203013,\n currency: \"Australian Dollar\",\n activeTrialInterval: \"day\",\n activeTrialIntervalCount: 746373,\n trialEnd: new Date(\"2023-02-22T08:13:16.795Z\"),\n productId: \"\",\n productPriceId: \"\",\n discountId: null,\n allowDiscountCodes: false,\n requireBillingAddress: true,\n isDiscountApplicable: false,\n isFreeProductPrice: false,\n isPaymentRequired: false,\n isPaymentSetupRequired: false,\n isPaymentFormRequired: false,\n customerId: \"\",\n isBusinessCustomer: false,\n customerName: \"\",\n customerEmail: \"\",\n customerIpAddress: \"\",\n customerBillingName: \"\",\n customerBillingAddress: {\n country: \"US\",\n },\n customerTaxId: \"\",\n paymentProcessorMetadata: {\n \"key\": \"\",\n },\n billingAddressFields: {\n country: \"disabled\",\n state: \"disabled\",\n city: \"required\",\n postalCode: \"optional\",\n line1: \"disabled\",\n line2: \"optional\",\n },\n trialInterval: \"month\",\n trialIntervalCount: null,\n metadata: {\n \"key\": 7544.61,\n },\n externalCustomerId: \"\",\n customerExternalId: null,\n products: [],\n product: {\n id: \"\",\n createdAt: new Date(\"2023-06-01T15:28:54.615Z\"),\n modifiedAt: new Date(\"2023-01-06T18:09:03.676Z\"),\n trialInterval: \"week\",\n trialIntervalCount: 503938,\n name: \"\",\n description: \"tentacle clearly toward whoever obvious doing about\",\n recurringInterval: \"week\",\n isRecurring: false,\n isArchived: true,\n organizationId: \"\",\n prices: [\n {\n createdAt: new Date(\"2025-12-28T04:56:08.416Z\"),\n modifiedAt: new Date(\"2024-12-18T17:15:45.554Z\"),\n id: \"\",\n amountType: \"free\",\n isArchived: false,\n productId: \"\",\n type: \"one_time\",\n recurringInterval: \"month\",\n legacy: true,\n },\n ],\n benefits: [\n {\n id: \"\",\n createdAt: new Date(\"2023-01-06T03:34:45.995Z\"),\n modifiedAt: null,\n type: \"downloadables\",\n description: \"below presell cleave silky marimba\",\n selectable: true,\n deletable: false,\n organizationId: \"\",\n },\n ],\n medias: [\n {\n id: \"\",\n organizationId: \"\",\n name: \"\",\n path: \"/etc/ppp\",\n mimeType: \"\",\n size: 80392,\n storageVersion: \"\",\n checksumEtag: \"\",\n checksumSha256Base64: \"\",\n checksumSha256Hex: \"\",\n lastModifiedAt: new Date(\"2023-02-11T11:31:37.083Z\"),\n version: \"\",\n service: \"product_media\",\n isUploaded: false,\n createdAt: new Date(\"2024-08-26T16:02:37.480Z\"),\n sizeReadable: \"\",\n publicUrl: \"https://excited-expense.name\",\n },\n ],\n },\n productPrice: {\n createdAt: new Date(\"2025-06-16T11:14:07.522Z\"),\n modifiedAt: new Date(\"2024-08-16T01:33:59.447Z\"),\n id: \"\",\n amountType: \"free\",\n isArchived: true,\n productId: \"\",\n type: \"recurring\",\n recurringInterval: \"month\",\n legacy: true,\n },\n discount: {\n duration: \"once\",\n type: \"fixed\",\n amount: 1000,\n currency: \"usd\",\n id: \"\",\n name: \"\",\n code: \"\",\n },\n subscriptionId: \"\",\n attachedCustomFields: [\n {\n customFieldId: \"\",\n customField: {\n createdAt: new Date(\"2025-01-15T11:59:21.523Z\"),\n modifiedAt: new Date(\"2025-08-14T14:21:21.921Z\"),\n id: \"\",\n metadata: {\n\n },\n type: \"date\",\n slug: \"\",\n name: \"\",\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n properties: {},\n },\n order: 973180,\n required: false,\n },\n ],\n customerMetadata: {\n \"key\": 163769,\n },\n },\n });\n\n console.log(result);\n}\n\nrun();" + "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointcheckoutCreatedPost({\n type: \"checkout.created\",\n timestamp: new Date(\"2023-02-15T15:44:21.478Z\"),\n data: {\n id: \"\",\n createdAt: new Date(\"2025-09-12T19:48:15.814Z\"),\n modifiedAt: new Date(\"2023-09-14T02:01:27.394Z\"),\n paymentProcessor: \"stripe\",\n status: \"expired\",\n clientSecret: \"\",\n url: \"https://agreeable-reboot.biz\",\n expiresAt: new Date(\"2024-05-02T18:25:33.974Z\"),\n successUrl: \"https://rural-outrun.org\",\n returnUrl: \"https://clean-humidity.com/\",\n embedOrigin: \"\",\n amount: 275553,\n discountAmount: 9980,\n netAmount: 266632,\n taxAmount: 348968,\n totalAmount: 203013,\n currency: \"Australian Dollar\",\n activeTrialInterval: \"day\",\n activeTrialIntervalCount: 746373,\n trialEnd: new Date(\"2023-02-22T08:13:16.795Z\"),\n productId: \"\",\n productPriceId: \"\",\n discountId: null,\n allowDiscountCodes: false,\n requireBillingAddress: true,\n isDiscountApplicable: false,\n isFreeProductPrice: false,\n isPaymentRequired: false,\n isPaymentSetupRequired: false,\n isPaymentFormRequired: false,\n customerId: \"\",\n isBusinessCustomer: false,\n customerName: \"\",\n customerEmail: \"\",\n customerIpAddress: \"\",\n customerBillingName: \"\",\n customerBillingAddress: {\n country: \"US\",\n },\n customerTaxId: \"\",\n paymentProcessorMetadata: {\n \"key\": \"\",\n },\n billingAddressFields: {\n country: \"disabled\",\n state: \"disabled\",\n city: \"required\",\n postalCode: \"optional\",\n line1: \"disabled\",\n line2: \"optional\",\n },\n trialInterval: \"month\",\n trialIntervalCount: null,\n metadata: {\n \"key\": 7544.61,\n },\n externalCustomerId: \"\",\n customerExternalId: null,\n products: [],\n product: {\n id: \"\",\n createdAt: new Date(\"2023-06-01T15:28:54.615Z\"),\n modifiedAt: new Date(\"2023-01-06T18:09:03.676Z\"),\n trialInterval: \"week\",\n trialIntervalCount: 503938,\n name: \"\",\n description: \"tentacle clearly toward whoever obvious doing about\",\n recurringInterval: \"week\",\n recurringIntervalCount: 203356,\n isRecurring: false,\n isArchived: false,\n organizationId: \"\",\n prices: [\n {\n createdAt: new Date(\"2024-12-18T17:15:45.554Z\"),\n modifiedAt: new Date(\"2024-04-26T07:56:31.500Z\"),\n id: \"\",\n amountType: \"free\",\n isArchived: false,\n productId: \"\",\n type: \"recurring\",\n recurringInterval: \"day\",\n legacy: true,\n },\n ],\n benefits: [],\n medias: [\n {\n id: \"\",\n organizationId: \"\",\n name: \"\",\n path: \"/lost+found\",\n mimeType: \"\",\n size: 689994,\n storageVersion: null,\n checksumEtag: \"\",\n checksumSha256Base64: \"\",\n checksumSha256Hex: \"\",\n lastModifiedAt: new Date(\"2023-11-12T23:35:10.131Z\"),\n version: \"\",\n service: \"product_media\",\n isUploaded: false,\n createdAt: new Date(\"2024-05-03T04:15:54.434Z\"),\n sizeReadable: \"\",\n publicUrl: \"https://shadowy-merit.name/\",\n },\n ],\n },\n productPrice: {\n createdAt: new Date(\"2023-11-16T15:02:14.144Z\"),\n modifiedAt: new Date(\"2024-12-21T04:24:51.418Z\"),\n id: \"\",\n amountType: \"free\",\n isArchived: true,\n productId: \"\",\n type: \"recurring\",\n recurringInterval: \"day\",\n legacy: true,\n },\n discount: {\n duration: \"forever\",\n type: \"percentage\",\n basisPoints: 1000,\n id: \"\",\n name: \"\",\n code: \"\",\n },\n subscriptionId: \"\",\n attachedCustomFields: [\n {\n customFieldId: \"\",\n customField: {\n createdAt: new Date(\"2025-07-17T12:41:00.275Z\"),\n modifiedAt: new Date(\"2025-09-03T03:58:33.628Z\"),\n id: \"\",\n metadata: {\n\n },\n type: \"number\",\n slug: \"\",\n name: \"\",\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n properties: {},\n },\n order: 551630,\n required: false,\n },\n ],\n customerMetadata: {\n\n },\n },\n });\n\n console.log(result);\n}\n\nrun();" - target: $["paths"]["checkout.updated"]["post"] update: "x-codeSamples": - "lang": "typescript" "label": "Typescript (SDK)" - "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointcheckoutUpdatedPost({\n type: \"checkout.updated\",\n timestamp: new Date(\"2023-03-19T05:40:46.816Z\"),\n data: {\n id: \"\",\n createdAt: new Date(\"2024-09-17T13:52:37.257Z\"),\n modifiedAt: new Date(\"2024-11-07T08:23:01.152Z\"),\n paymentProcessor: \"stripe\",\n status: \"expired\",\n clientSecret: \"\",\n url: \"https://male-punctuation.name\",\n expiresAt: new Date(\"2025-03-26T06:13:51.386Z\"),\n successUrl: \"https://monumental-mathematics.info\",\n returnUrl: \"https://scary-valley.com/\",\n embedOrigin: \"\",\n amount: 867510,\n discountAmount: 469340,\n netAmount: 139232,\n taxAmount: 373760,\n totalAmount: 41301,\n currency: \"Azerbaijanian Manat\",\n activeTrialInterval: \"week\",\n activeTrialIntervalCount: null,\n trialEnd: new Date(\"2025-01-03T13:19:57.814Z\"),\n productId: \"\",\n productPriceId: \"\",\n discountId: \"\",\n allowDiscountCodes: false,\n requireBillingAddress: false,\n isDiscountApplicable: true,\n isFreeProductPrice: false,\n isPaymentRequired: true,\n isPaymentSetupRequired: false,\n isPaymentFormRequired: false,\n customerId: \"\",\n isBusinessCustomer: true,\n customerName: \"\",\n customerEmail: \"\",\n customerIpAddress: \"\",\n customerBillingName: \"\",\n customerBillingAddress: {\n country: \"US\",\n },\n customerTaxId: \"\",\n paymentProcessorMetadata: {\n \"key\": \"\",\n \"key1\": \"\",\n \"key2\": \"\",\n },\n billingAddressFields: {\n country: \"required\",\n state: \"optional\",\n city: \"disabled\",\n postalCode: \"disabled\",\n line1: \"disabled\",\n line2: \"optional\",\n },\n trialInterval: \"day\",\n trialIntervalCount: 546245,\n metadata: {\n\n },\n externalCustomerId: \"\",\n customerExternalId: \"\",\n products: [\n {\n id: \"\",\n createdAt: new Date(\"2024-05-24T21:51:12.850Z\"),\n modifiedAt: new Date(\"2023-12-07T18:28:57.350Z\"),\n trialInterval: \"day\",\n trialIntervalCount: 560583,\n name: \"\",\n description: \"entice which break\",\n recurringInterval: \"day\",\n isRecurring: false,\n isArchived: false,\n organizationId: \"\",\n prices: [\n {\n createdAt: new Date(\"2024-08-06T10:07:36.046Z\"),\n modifiedAt: new Date(\"2024-01-21T04:07:34.198Z\"),\n id: \"\",\n amountType: \"metered_unit\",\n isArchived: true,\n productId: \"\",\n type: \"recurring\",\n recurringInterval: \"month\",\n priceCurrency: \"\",\n unitAmount: \"\",\n capAmount: 524781,\n meterId: \"\",\n meter: {\n id: \"\",\n name: \"\",\n },\n },\n ],\n benefits: [\n {\n id: \"\",\n createdAt: new Date(\"2024-10-08T00:13:36.501Z\"),\n modifiedAt: new Date(\"2025-12-05T19:37:31.286Z\"),\n type: \"discord\",\n description: \"consequently mid stained mmm splendid whopping meh zowie patroller fax\",\n selectable: false,\n deletable: false,\n organizationId: \"\",\n },\n ],\n medias: [],\n },\n ],\n product: {\n id: \"\",\n createdAt: new Date(\"2025-05-18T01:17:33.749Z\"),\n modifiedAt: new Date(\"2023-09-26T00:20:09.855Z\"),\n trialInterval: \"year\",\n trialIntervalCount: 878100,\n name: \"\",\n description: \"well-worn offensively truly furiously arraign yawningly why yuck insist whoever\",\n recurringInterval: \"day\",\n isRecurring: true,\n isArchived: true,\n organizationId: \"\",\n prices: [],\n benefits: [\n {\n id: \"\",\n createdAt: new Date(\"2024-10-08T00:13:36.501Z\"),\n modifiedAt: new Date(\"2025-12-05T19:37:31.286Z\"),\n type: \"discord\",\n description: \"consequently mid stained mmm splendid whopping meh zowie patroller fax\",\n selectable: false,\n deletable: false,\n organizationId: \"\",\n },\n ],\n medias: [],\n },\n productPrice: {\n createdAt: new Date(\"2023-10-12T16:27:44.443Z\"),\n modifiedAt: new Date(\"2025-05-17T14:26:00.413Z\"),\n id: \"\",\n amountType: \"custom\",\n isArchived: true,\n productId: \"\",\n type: \"recurring\",\n recurringInterval: \"week\",\n priceCurrency: \"\",\n minimumAmount: 536885,\n maximumAmount: 786409,\n presetAmount: 295544,\n legacy: true,\n },\n discount: {\n duration: \"forever\",\n durationInMonths: 513743,\n type: \"percentage\",\n amount: 1000,\n currency: \"usd\",\n id: \"\",\n name: \"\",\n code: null,\n },\n subscriptionId: \"\",\n attachedCustomFields: [\n {\n customFieldId: \"\",\n customField: {\n createdAt: new Date(\"2025-11-24T07:57:40.732Z\"),\n modifiedAt: new Date(\"2025-12-23T16:30:04.627Z\"),\n id: \"\",\n metadata: {\n\n },\n type: \"number\",\n slug: \"\",\n name: \"\",\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n properties: {},\n },\n order: 357928,\n required: true,\n },\n ],\n customerMetadata: {\n\n },\n },\n });\n\n console.log(result);\n}\n\nrun();" + "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointcheckoutUpdatedPost({\n type: \"checkout.updated\",\n timestamp: new Date(\"2023-03-19T05:40:46.816Z\"),\n data: {\n id: \"\",\n createdAt: new Date(\"2024-09-17T13:52:37.257Z\"),\n modifiedAt: new Date(\"2024-11-07T08:23:01.152Z\"),\n paymentProcessor: \"stripe\",\n status: \"expired\",\n clientSecret: \"\",\n url: \"https://male-punctuation.name\",\n expiresAt: new Date(\"2025-03-26T06:13:51.386Z\"),\n successUrl: \"https://monumental-mathematics.info\",\n returnUrl: \"https://scary-valley.com/\",\n embedOrigin: \"\",\n amount: 867510,\n discountAmount: 469340,\n netAmount: 139232,\n taxAmount: 373760,\n totalAmount: 41301,\n currency: \"Azerbaijanian Manat\",\n activeTrialInterval: \"week\",\n activeTrialIntervalCount: null,\n trialEnd: new Date(\"2025-01-03T13:19:57.814Z\"),\n productId: \"\",\n productPriceId: \"\",\n discountId: \"\",\n allowDiscountCodes: false,\n requireBillingAddress: false,\n isDiscountApplicable: true,\n isFreeProductPrice: false,\n isPaymentRequired: true,\n isPaymentSetupRequired: false,\n isPaymentFormRequired: false,\n customerId: \"\",\n isBusinessCustomer: true,\n customerName: \"\",\n customerEmail: \"\",\n customerIpAddress: \"\",\n customerBillingName: \"\",\n customerBillingAddress: {\n country: \"US\",\n },\n customerTaxId: \"\",\n paymentProcessorMetadata: {\n \"key\": \"\",\n \"key1\": \"\",\n \"key2\": \"\",\n },\n billingAddressFields: {\n country: \"required\",\n state: \"optional\",\n city: \"disabled\",\n postalCode: \"disabled\",\n line1: \"disabled\",\n line2: \"optional\",\n },\n trialInterval: \"day\",\n trialIntervalCount: 546245,\n metadata: {\n\n },\n externalCustomerId: \"\",\n customerExternalId: \"\",\n products: [\n {\n id: \"\",\n createdAt: new Date(\"2024-05-24T21:51:12.850Z\"),\n modifiedAt: new Date(\"2023-12-07T18:28:57.350Z\"),\n trialInterval: \"day\",\n trialIntervalCount: 560583,\n name: \"\",\n description: \"entice which break\",\n recurringInterval: \"day\",\n recurringIntervalCount: 515134,\n isRecurring: false,\n isArchived: false,\n organizationId: \"\",\n prices: [\n {\n createdAt: new Date(\"2024-01-21T04:07:34.198Z\"),\n modifiedAt: new Date(\"2025-03-29T16:31:00.004Z\"),\n id: \"\",\n amountType: \"free\",\n isArchived: true,\n productId: \"\",\n type: \"recurring\",\n recurringInterval: \"month\",\n legacy: true,\n },\n ],\n benefits: [\n {\n id: \"\",\n createdAt: new Date(\"2024-10-08T00:13:36.501Z\"),\n modifiedAt: new Date(\"2025-12-05T19:37:31.286Z\"),\n type: \"discord\",\n description: \"consequently mid stained mmm splendid whopping meh zowie patroller fax\",\n selectable: false,\n deletable: false,\n organizationId: \"\",\n },\n ],\n medias: [],\n },\n ],\n product: {\n id: \"\",\n createdAt: new Date(\"2025-05-18T01:17:33.749Z\"),\n modifiedAt: new Date(\"2023-09-26T00:20:09.855Z\"),\n trialInterval: \"year\",\n trialIntervalCount: 878100,\n name: \"\",\n description: \"well-worn offensively truly furiously arraign yawningly why yuck insist whoever\",\n recurringInterval: \"day\",\n recurringIntervalCount: null,\n isRecurring: true,\n isArchived: true,\n organizationId: \"\",\n prices: [\n {\n createdAt: new Date(\"2023-05-27T10:56:46.179Z\"),\n modifiedAt: new Date(\"2024-04-10T18:57:38.552Z\"),\n id: \"\",\n amountType: \"fixed\",\n isArchived: false,\n productId: \"\",\n type: \"recurring\",\n recurringInterval: \"week\",\n priceCurrency: \"\",\n priceAmount: 349206,\n legacy: true,\n },\n ],\n benefits: [],\n medias: [\n {\n id: \"\",\n organizationId: \"\",\n name: \"\",\n path: \"/home/user\",\n mimeType: \"\",\n size: 786409,\n storageVersion: \"\",\n checksumEtag: \"\",\n checksumSha256Base64: \"\",\n checksumSha256Hex: \"\",\n lastModifiedAt: new Date(\"2024-07-17T01:29:28.879Z\"),\n version: \"\",\n service: \"product_media\",\n isUploaded: true,\n createdAt: new Date(\"2024-01-25T12:59:56.658Z\"),\n sizeReadable: \"\",\n publicUrl: \"https://outrageous-vibraphone.info\",\n },\n ],\n },\n productPrice: {\n createdAt: new Date(\"2024-01-28T06:56:39.677Z\"),\n modifiedAt: new Date(\"2024-03-07T02:03:58.223Z\"),\n id: \"\",\n amountType: \"custom\",\n isArchived: false,\n productId: \"\",\n type: \"recurring\",\n recurringInterval: \"day\",\n priceCurrency: \"\",\n minimumAmount: 373595,\n maximumAmount: 557612,\n presetAmount: 392051,\n legacy: true,\n },\n discount: {\n duration: \"once\",\n durationInMonths: 327405,\n type: \"fixed\",\n amount: 1000,\n currency: \"usd\",\n id: \"\",\n name: \"\",\n code: \"\",\n },\n subscriptionId: \"\",\n attachedCustomFields: [\n {\n customFieldId: \"\",\n customField: {\n createdAt: new Date(\"2024-02-26T06:34:32.241Z\"),\n modifiedAt: new Date(\"2023-05-19T19:58:32.434Z\"),\n id: \"\",\n metadata: {\n \"key\": 2996.32,\n },\n type: \"select\",\n slug: \"\",\n name: \"\",\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n properties: {\n options: [\n {\n value: \"\",\n label: \"\",\n },\n ],\n },\n },\n order: 596151,\n required: false,\n },\n ],\n customerMetadata: {\n \"key\": false,\n },\n },\n });\n\n console.log(result);\n}\n\nrun();" - target: $["paths"]["customer.created"]["post"] update: "x-codeSamples": @@ -932,25 +932,25 @@ actions: "x-codeSamples": - "lang": "typescript" "label": "Typescript (SDK)" - "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointorderCreatedPost({\n type: \"order.created\",\n timestamp: new Date(\"2024-08-21T06:55:49.348Z\"),\n data: {\n id: \"\",\n createdAt: new Date(\"2023-01-02T23:31:01.991Z\"),\n modifiedAt: new Date(\"2025-11-09T23:45:36.352Z\"),\n status: \"pending\",\n paid: true,\n subtotalAmount: 10000,\n discountAmount: 1000,\n netAmount: 9000,\n taxAmount: 720,\n totalAmount: 9720,\n appliedBalanceAmount: 0,\n dueAmount: 0,\n refundedAmount: 0,\n refundedTaxAmount: 0,\n currency: \"usd\",\n billingReason: \"purchase\",\n billingName: \"\",\n billingAddress: {\n country: \"US\",\n },\n invoiceNumber: \"\",\n isInvoiceGenerated: false,\n customerId: \"\",\n productId: \"\",\n discountId: \"\",\n subscriptionId: \"\",\n checkoutId: \"\",\n metadata: {\n \"key\": 1535.13,\n },\n platformFeeAmount: 500,\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2025-08-09T17:02:40.706Z\"),\n modifiedAt: new Date(\"2025-10-06T19:34:47.732Z\"),\n metadata: {\n \"key\": 701529,\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: null,\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n userId: \"\",\n product: {\n metadata: {\n \"key\": 807321,\n },\n id: \"\",\n createdAt: new Date(\"2024-05-29T03:15:26.237Z\"),\n modifiedAt: new Date(\"2024-07-30T20:36:36.637Z\"),\n trialInterval: \"week\",\n trialIntervalCount: 187580,\n name: \"\",\n description: \"hence hoof amid nimble\",\n recurringInterval: \"month\",\n isRecurring: false,\n isArchived: false,\n organizationId: \"\",\n },\n discount: {\n duration: \"repeating\",\n type: \"fixed\",\n basisPoints: 1000,\n createdAt: new Date(\"2025-04-19T01:44:34.202Z\"),\n modifiedAt: new Date(\"2024-05-07T21:36:10.376Z\"),\n id: \"\",\n metadata: {\n\n },\n name: \"\",\n code: \"\",\n startsAt: new Date(\"2025-03-18T15:38:59.923Z\"),\n endsAt: new Date(\"2024-11-16T22:02:37.250Z\"),\n maxRedemptions: 564618,\n redemptionsCount: 59456,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n subscription: {\n metadata: {\n\n },\n createdAt: new Date(\"2025-11-26T14:34:44.815Z\"),\n modifiedAt: new Date(\"2023-11-29T09:09:13.456Z\"),\n id: \"\",\n amount: 10000,\n currency: \"usd\",\n recurringInterval: \"day\",\n status: \"incomplete_expired\",\n currentPeriodStart: new Date(\"2025-12-03T03:30:23.797Z\"),\n currentPeriodEnd: new Date(\"2023-05-09T12:53:20.135Z\"),\n trialStart: new Date(\"2023-08-21T01:49:53.293Z\"),\n trialEnd: new Date(\"2024-04-25T04:13:04.313Z\"),\n cancelAtPeriodEnd: true,\n canceledAt: new Date(\"2023-10-13T16:35:24.054Z\"),\n startedAt: new Date(\"2024-04-11T00:21:08.353Z\"),\n endsAt: new Date(\"2025-05-03T15:56:59.028Z\"),\n endedAt: null,\n customerId: \"\",\n productId: \"\",\n discountId: null,\n checkoutId: \"\",\n customerCancellationReason: null,\n customerCancellationComment: \"\",\n },\n items: [],\n },\n });\n\n console.log(result);\n}\n\nrun();" + "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointorderCreatedPost({\n type: \"order.created\",\n timestamp: new Date(\"2024-08-21T06:55:49.348Z\"),\n data: {\n id: \"\",\n createdAt: new Date(\"2023-01-02T23:31:01.991Z\"),\n modifiedAt: new Date(\"2025-11-09T23:45:36.352Z\"),\n status: \"pending\",\n paid: true,\n subtotalAmount: 10000,\n discountAmount: 1000,\n netAmount: 9000,\n taxAmount: 720,\n totalAmount: 9720,\n appliedBalanceAmount: 0,\n dueAmount: 0,\n refundedAmount: 0,\n refundedTaxAmount: 0,\n currency: \"usd\",\n billingReason: \"purchase\",\n billingName: \"\",\n billingAddress: {\n country: \"US\",\n },\n invoiceNumber: \"\",\n isInvoiceGenerated: false,\n customerId: \"\",\n productId: \"\",\n discountId: \"\",\n subscriptionId: \"\",\n checkoutId: \"\",\n metadata: {\n \"key\": \"\",\n },\n platformFeeAmount: 500,\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2025-08-09T17:02:40.706Z\"),\n modifiedAt: new Date(\"2025-10-06T19:34:47.732Z\"),\n metadata: {\n \"key\": 701529,\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: null,\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n userId: \"\",\n product: {\n metadata: {\n\n },\n id: \"\",\n createdAt: new Date(\"2025-06-03T19:46:15.179Z\"),\n modifiedAt: new Date(\"2023-10-21T21:28:56.316Z\"),\n trialInterval: \"week\",\n trialIntervalCount: 271259,\n name: \"\",\n description: \"gadzooks trek amid misspend ravioli supposing bare pfft\",\n recurringInterval: \"week\",\n recurringIntervalCount: 168138,\n isRecurring: true,\n isArchived: true,\n organizationId: \"\",\n },\n discount: {\n duration: \"once\",\n durationInMonths: 260667,\n type: \"percentage\",\n amount: 1000,\n currency: \"usd\",\n createdAt: new Date(\"2024-04-11T00:21:08.353Z\"),\n modifiedAt: new Date(\"2025-05-03T15:56:59.028Z\"),\n id: \"\",\n metadata: {\n\n },\n name: \"\",\n code: null,\n startsAt: new Date(\"2023-03-06T18:58:41.541Z\"),\n endsAt: new Date(\"2024-02-07T05:20:48.151Z\"),\n maxRedemptions: 200286,\n redemptionsCount: 148325,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n subscription: null,\n items: [\n {\n createdAt: new Date(\"2024-01-04T15:31:18.185Z\"),\n modifiedAt: new Date(\"2023-12-10T13:26:22.287Z\"),\n id: \"\",\n label: \"Pro Plan\",\n amount: 10000,\n taxAmount: 720,\n proration: false,\n productPriceId: \"\",\n },\n ],\n description: \"Pro Plan\",\n },\n });\n\n console.log(result);\n}\n\nrun();" - target: $["paths"]["order.paid"]["post"] update: "x-codeSamples": - "lang": "typescript" "label": "Typescript (SDK)" - "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointorderPaidPost({\n type: \"order.paid\",\n timestamp: new Date(\"2025-12-05T07:44:21.172Z\"),\n data: {\n id: \"\",\n createdAt: new Date(\"2025-07-27T09:45:49.517Z\"),\n modifiedAt: new Date(\"2024-12-13T20:55:19.644Z\"),\n status: \"partially_refunded\",\n paid: true,\n subtotalAmount: 10000,\n discountAmount: 1000,\n netAmount: 9000,\n taxAmount: 720,\n totalAmount: 9720,\n appliedBalanceAmount: 0,\n dueAmount: 0,\n refundedAmount: 0,\n refundedTaxAmount: 0,\n currency: \"usd\",\n billingReason: \"subscription_update\",\n billingName: \"\",\n billingAddress: {\n country: \"US\",\n },\n invoiceNumber: \"\",\n isInvoiceGenerated: true,\n customerId: \"\",\n productId: \"\",\n discountId: \"\",\n subscriptionId: \"\",\n checkoutId: \"\",\n metadata: {\n \"key\": 887809,\n },\n platformFeeAmount: 500,\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2023-07-23T21:58:17.893Z\"),\n modifiedAt: new Date(\"2025-06-25T12:41:05.889Z\"),\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2025-04-20T14:41:24.727Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n userId: \"\",\n product: {\n metadata: {\n \"key\": 154136,\n },\n id: \"\",\n createdAt: new Date(\"2025-11-18T04:42:58.995Z\"),\n modifiedAt: new Date(\"2025-11-08T22:37:42.911Z\"),\n trialInterval: \"day\",\n trialIntervalCount: 478110,\n name: \"\",\n description: \"relative gleefully mmm\",\n recurringInterval: \"year\",\n isRecurring: false,\n isArchived: true,\n organizationId: \"\",\n },\n discount: {\n duration: \"repeating\",\n type: \"percentage\",\n basisPoints: 1000,\n createdAt: new Date(\"2023-06-24T12:10:00.096Z\"),\n modifiedAt: new Date(\"2024-12-04T23:23:03.036Z\"),\n id: \"\",\n metadata: {\n \"key\": false,\n },\n name: \"\",\n code: \"\",\n startsAt: new Date(\"2023-11-18T23:11:36.911Z\"),\n endsAt: new Date(\"2025-01-04T02:30:00.807Z\"),\n maxRedemptions: null,\n redemptionsCount: 543064,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n subscription: {\n metadata: {\n\n },\n createdAt: new Date(\"2025-01-24T13:50:30.126Z\"),\n modifiedAt: new Date(\"2023-11-28T03:55:09.961Z\"),\n id: \"\",\n amount: 10000,\n currency: \"usd\",\n recurringInterval: \"week\",\n status: \"trialing\",\n currentPeriodStart: new Date(\"2024-10-26T11:04:56.035Z\"),\n currentPeriodEnd: new Date(\"2024-06-30T02:00:52.382Z\"),\n trialStart: new Date(\"2024-10-10T16:48:00.460Z\"),\n trialEnd: new Date(\"2023-01-20T21:51:39.533Z\"),\n cancelAtPeriodEnd: true,\n canceledAt: new Date(\"2024-10-23T11:29:20.794Z\"),\n startedAt: new Date(\"2023-09-27T10:56:12.504Z\"),\n endsAt: new Date(\"2025-01-18T14:11:17.140Z\"),\n endedAt: new Date(\"2024-02-01T23:45:02.476Z\"),\n customerId: \"\",\n productId: \"\",\n discountId: \"\",\n checkoutId: \"\",\n customerCancellationReason: \"other\",\n customerCancellationComment: \"\",\n },\n items: [\n {\n createdAt: new Date(\"2024-02-16T18:36:48.341Z\"),\n modifiedAt: new Date(\"2024-05-24T21:01:40.292Z\"),\n id: \"\",\n label: \"Pro Plan\",\n amount: 10000,\n taxAmount: 720,\n proration: false,\n productPriceId: \"\",\n },\n ],\n },\n });\n\n console.log(result);\n}\n\nrun();" + "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointorderPaidPost({\n type: \"order.paid\",\n timestamp: new Date(\"2025-12-05T07:44:21.172Z\"),\n data: {\n id: \"\",\n createdAt: new Date(\"2025-07-27T09:45:49.517Z\"),\n modifiedAt: new Date(\"2024-12-13T20:55:19.644Z\"),\n status: \"partially_refunded\",\n paid: true,\n subtotalAmount: 10000,\n discountAmount: 1000,\n netAmount: 9000,\n taxAmount: 720,\n totalAmount: 9720,\n appliedBalanceAmount: 0,\n dueAmount: 0,\n refundedAmount: 0,\n refundedTaxAmount: 0,\n currency: \"usd\",\n billingReason: \"subscription_update\",\n billingName: \"\",\n billingAddress: {\n country: \"US\",\n },\n invoiceNumber: \"\",\n isInvoiceGenerated: true,\n customerId: \"\",\n productId: \"\",\n discountId: \"\",\n subscriptionId: \"\",\n checkoutId: \"\",\n metadata: {\n\n },\n platformFeeAmount: 500,\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2025-08-31T00:54:53.749Z\"),\n modifiedAt: new Date(\"2025-07-24T12:09:26.716Z\"),\n metadata: {\n \"key\": \"\",\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2025-04-20T14:41:24.727Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n userId: \"\",\n product: {\n metadata: {\n\n },\n id: \"\",\n createdAt: new Date(\"2023-06-18T22:24:34.935Z\"),\n modifiedAt: new Date(\"2025-08-01T03:33:20.782Z\"),\n trialInterval: \"week\",\n trialIntervalCount: 125374,\n name: \"\",\n description: \"easily carouse plus quietly reservation bright injunction plastic gah\",\n recurringInterval: \"year\",\n recurringIntervalCount: 458129,\n isRecurring: true,\n isArchived: true,\n organizationId: \"\",\n },\n discount: {\n duration: \"forever\",\n durationInMonths: 375708,\n type: \"percentage\",\n amount: 1000,\n currency: \"usd\",\n createdAt: new Date(\"2024-05-24T21:01:40.292Z\"),\n modifiedAt: new Date(\"2024-05-25T21:22:06.978Z\"),\n id: \"\",\n metadata: {\n\n },\n name: \"\",\n code: \"\",\n startsAt: new Date(\"2024-09-14T19:23:38.365Z\"),\n endsAt: new Date(\"2024-10-02T13:51:42.523Z\"),\n maxRedemptions: 231748,\n redemptionsCount: 846855,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n subscription: {\n metadata: {\n \"key\": 5251.57,\n },\n createdAt: new Date(\"2025-02-12T23:41:13.290Z\"),\n modifiedAt: new Date(\"2023-02-24T15:15:22.018Z\"),\n id: \"\",\n amount: 10000,\n currency: \"usd\",\n recurringInterval: \"week\",\n recurringIntervalCount: 310795,\n status: \"canceled\",\n currentPeriodStart: new Date(\"2023-11-20T10:20:23.628Z\"),\n currentPeriodEnd: new Date(\"2025-08-05T06:11:40.745Z\"),\n trialStart: new Date(\"2023-12-05T06:32:48.307Z\"),\n trialEnd: null,\n cancelAtPeriodEnd: false,\n canceledAt: new Date(\"2023-08-08T23:25:37.197Z\"),\n startedAt: new Date(\"2024-10-04T00:59:57.339Z\"),\n endsAt: new Date(\"2025-02-01T22:39:43.609Z\"),\n endedAt: new Date(\"2023-08-04T10:17:52.706Z\"),\n customerId: \"\",\n productId: \"\",\n discountId: \"\",\n checkoutId: \"\",\n customerCancellationReason: null,\n customerCancellationComment: \"\",\n },\n items: [],\n description: \"Pro Plan\",\n },\n });\n\n console.log(result);\n}\n\nrun();" - target: $["paths"]["order.refunded"]["post"] update: "x-codeSamples": - "lang": "typescript" "label": "Typescript (SDK)" - "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointorderRefundedPost({\n type: \"order.refunded\",\n timestamp: new Date(\"2024-07-23T18:00:11.615Z\"),\n data: {\n id: \"\",\n createdAt: new Date(\"2025-03-19T11:53:59.744Z\"),\n modifiedAt: new Date(\"2024-12-01T04:03:14.906Z\"),\n status: \"refunded\",\n paid: true,\n subtotalAmount: 10000,\n discountAmount: 1000,\n netAmount: 9000,\n taxAmount: 720,\n totalAmount: 9720,\n appliedBalanceAmount: 0,\n dueAmount: 0,\n refundedAmount: 0,\n refundedTaxAmount: 0,\n currency: \"usd\",\n billingReason: \"subscription_create\",\n billingName: \"\",\n billingAddress: {\n country: \"US\",\n },\n invoiceNumber: \"\",\n isInvoiceGenerated: false,\n customerId: \"\",\n productId: \"\",\n discountId: \"\",\n subscriptionId: \"\",\n checkoutId: \"\",\n metadata: {\n\n },\n platformFeeAmount: 500,\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2024-06-29T14:22:46.651Z\"),\n modifiedAt: new Date(\"2025-03-10T03:56:20.855Z\"),\n metadata: {\n \"key\": true,\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2024-08-11T17:50:11.031Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n userId: \"\",\n product: {\n metadata: {\n \"key\": \"\",\n },\n id: \"\",\n createdAt: new Date(\"2024-12-27T19:16:00.555Z\"),\n modifiedAt: new Date(\"2023-04-17T08:12:37.300Z\"),\n trialInterval: \"year\",\n trialIntervalCount: null,\n name: \"\",\n description: \"affectionate yum um\",\n recurringInterval: \"month\",\n isRecurring: true,\n isArchived: false,\n organizationId: \"\",\n },\n discount: {\n duration: \"once\",\n durationInMonths: 401944,\n type: \"percentage\",\n amount: 1000,\n currency: \"usd\",\n createdAt: new Date(\"2025-11-07T01:50:04.664Z\"),\n modifiedAt: new Date(\"2025-01-27T15:44:47.653Z\"),\n id: \"\",\n metadata: {\n \"key\": \"\",\n },\n name: \"\",\n code: null,\n startsAt: new Date(\"2024-08-12T02:18:50.288Z\"),\n endsAt: new Date(\"2025-07-19T06:13:24.068Z\"),\n maxRedemptions: 681500,\n redemptionsCount: 880069,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n subscription: {\n metadata: {\n \"key\": 726608,\n },\n createdAt: new Date(\"2023-11-21T12:57:47.903Z\"),\n modifiedAt: new Date(\"2023-09-21T04:07:05.991Z\"),\n id: \"\",\n amount: 10000,\n currency: \"usd\",\n recurringInterval: \"week\",\n status: \"incomplete_expired\",\n currentPeriodStart: new Date(\"2023-07-17T15:21:26.230Z\"),\n currentPeriodEnd: new Date(\"2024-05-29T19:15:25.143Z\"),\n trialStart: new Date(\"2024-04-06T04:47:43.821Z\"),\n trialEnd: new Date(\"2023-05-29T17:50:55.706Z\"),\n cancelAtPeriodEnd: true,\n canceledAt: null,\n startedAt: new Date(\"2025-11-07T21:20:59.535Z\"),\n endsAt: new Date(\"2025-10-08T09:21:03.967Z\"),\n endedAt: new Date(\"2023-07-14T04:21:53.574Z\"),\n customerId: \"\",\n productId: \"\",\n discountId: \"\",\n checkoutId: \"\",\n customerCancellationReason: \"too_complex\",\n customerCancellationComment: \"\",\n },\n items: [],\n },\n });\n\n console.log(result);\n}\n\nrun();" + "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointorderRefundedPost({\n type: \"order.refunded\",\n timestamp: new Date(\"2024-07-23T18:00:11.615Z\"),\n data: {\n id: \"\",\n createdAt: new Date(\"2025-03-19T11:53:59.744Z\"),\n modifiedAt: new Date(\"2024-12-01T04:03:14.906Z\"),\n status: \"refunded\",\n paid: true,\n subtotalAmount: 10000,\n discountAmount: 1000,\n netAmount: 9000,\n taxAmount: 720,\n totalAmount: 9720,\n appliedBalanceAmount: 0,\n dueAmount: 0,\n refundedAmount: 0,\n refundedTaxAmount: 0,\n currency: \"usd\",\n billingReason: \"subscription_create\",\n billingName: \"\",\n billingAddress: {\n country: \"US\",\n },\n invoiceNumber: \"\",\n isInvoiceGenerated: false,\n customerId: \"\",\n productId: \"\",\n discountId: \"\",\n subscriptionId: \"\",\n checkoutId: \"\",\n metadata: {\n\n },\n platformFeeAmount: 500,\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2024-05-21T22:00:59.902Z\"),\n modifiedAt: new Date(\"2024-08-24T07:48:58.778Z\"),\n metadata: {\n \"key\": 647689,\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2024-08-19T02:54:30.835Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n userId: \"\",\n product: null,\n discount: {\n duration: \"once\",\n durationInMonths: 310259,\n type: \"percentage\",\n amount: 1000,\n currency: \"usd\",\n createdAt: new Date(\"2023-01-26T21:26:48.872Z\"),\n modifiedAt: new Date(\"2023-01-16T07:26:04.196Z\"),\n id: \"\",\n metadata: {\n \"key\": 4016.73,\n },\n name: \"\",\n code: \"\",\n startsAt: new Date(\"2025-09-14T03:05:33.012Z\"),\n endsAt: null,\n maxRedemptions: 211875,\n redemptionsCount: 188354,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n subscription: null,\n items: [\n {\n createdAt: new Date(\"2024-12-08T10:40:25.472Z\"),\n modifiedAt: new Date(\"2023-12-20T17:19:16.701Z\"),\n id: \"\",\n label: \"Pro Plan\",\n amount: 10000,\n taxAmount: 720,\n proration: false,\n productPriceId: \"\",\n },\n ],\n description: \"Pro Plan\",\n },\n });\n\n console.log(result);\n}\n\nrun();" - target: $["paths"]["order.updated"]["post"] update: "x-codeSamples": - "lang": "typescript" "label": "Typescript (SDK)" - "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointorderUpdatedPost({\n type: \"order.updated\",\n timestamp: new Date(\"2023-10-25T00:08:50.290Z\"),\n data: {\n id: \"\",\n createdAt: new Date(\"2024-04-30T23:35:35.375Z\"),\n modifiedAt: new Date(\"2025-06-01T02:02:46.580Z\"),\n status: \"pending\",\n paid: true,\n subtotalAmount: 10000,\n discountAmount: 1000,\n netAmount: 9000,\n taxAmount: 720,\n totalAmount: 9720,\n appliedBalanceAmount: 0,\n dueAmount: 0,\n refundedAmount: 0,\n refundedTaxAmount: 0,\n currency: \"usd\",\n billingReason: \"subscription_create\",\n billingName: \"\",\n billingAddress: {\n country: \"US\",\n },\n invoiceNumber: \"\",\n isInvoiceGenerated: true,\n customerId: \"\",\n productId: \"\",\n discountId: \"\",\n subscriptionId: \"\",\n checkoutId: \"\",\n metadata: {\n \"key\": 317276,\n },\n platformFeeAmount: 500,\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2025-12-03T13:57:13.515Z\"),\n modifiedAt: new Date(\"2024-03-08T23:35:59.086Z\"),\n metadata: {\n \"key\": false,\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2024-12-03T05:16:11.415Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n userId: \"\",\n product: {\n metadata: {\n\n },\n id: \"\",\n createdAt: new Date(\"2023-03-11T05:58:05.184Z\"),\n modifiedAt: null,\n trialInterval: null,\n trialIntervalCount: 161187,\n name: \"\",\n description: \"lined questioningly unless neighboring worriedly like brand\",\n recurringInterval: \"month\",\n isRecurring: true,\n isArchived: true,\n organizationId: \"\",\n },\n discount: {\n duration: \"repeating\",\n durationInMonths: 71896,\n type: \"percentage\",\n amount: 1000,\n currency: \"usd\",\n createdAt: new Date(\"2023-05-05T04:27:56.002Z\"),\n modifiedAt: null,\n id: \"\",\n metadata: {\n \"key\": \"\",\n },\n name: \"\",\n code: \"\",\n startsAt: new Date(\"2023-05-20T13:29:26.710Z\"),\n endsAt: new Date(\"2023-09-01T14:56:03.459Z\"),\n maxRedemptions: 583107,\n redemptionsCount: 378993,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n subscription: {\n metadata: {\n\n },\n createdAt: new Date(\"2025-11-15T17:24:36.671Z\"),\n modifiedAt: new Date(\"2024-10-31T22:22:01.280Z\"),\n id: \"\",\n amount: 10000,\n currency: \"usd\",\n recurringInterval: \"month\",\n status: \"canceled\",\n currentPeriodStart: new Date(\"2024-03-19T21:47:14.473Z\"),\n currentPeriodEnd: new Date(\"2024-03-12T02:07:55.904Z\"),\n trialStart: new Date(\"2023-08-26T12:56:24.423Z\"),\n trialEnd: new Date(\"2024-02-06T09:06:51.703Z\"),\n cancelAtPeriodEnd: true,\n canceledAt: new Date(\"2024-03-28T15:10:13.508Z\"),\n startedAt: new Date(\"2023-11-03T05:13:30.202Z\"),\n endsAt: new Date(\"2024-03-03T03:52:46.888Z\"),\n endedAt: new Date(\"2025-07-30T00:35:38.035Z\"),\n customerId: \"\",\n productId: \"\",\n discountId: \"\",\n checkoutId: null,\n customerCancellationReason: \"switched_service\",\n customerCancellationComment: \"\",\n },\n items: [\n {\n createdAt: new Date(\"2025-01-03T16:01:28.999Z\"),\n modifiedAt: null,\n id: \"\",\n label: \"Pro Plan\",\n amount: 10000,\n taxAmount: 720,\n proration: false,\n productPriceId: \"\",\n },\n ],\n },\n });\n\n console.log(result);\n}\n\nrun();" + "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointorderUpdatedPost({\n type: \"order.updated\",\n timestamp: new Date(\"2023-10-25T00:08:50.290Z\"),\n data: {\n id: \"\",\n createdAt: new Date(\"2024-04-30T23:35:35.375Z\"),\n modifiedAt: new Date(\"2025-06-01T02:02:46.580Z\"),\n status: \"pending\",\n paid: true,\n subtotalAmount: 10000,\n discountAmount: 1000,\n netAmount: 9000,\n taxAmount: 720,\n totalAmount: 9720,\n appliedBalanceAmount: 0,\n dueAmount: 0,\n refundedAmount: 0,\n refundedTaxAmount: 0,\n currency: \"usd\",\n billingReason: \"subscription_create\",\n billingName: \"\",\n billingAddress: {\n country: \"US\",\n },\n invoiceNumber: \"\",\n isInvoiceGenerated: true,\n customerId: \"\",\n productId: \"\",\n discountId: \"\",\n subscriptionId: \"\",\n checkoutId: \"\",\n metadata: {\n\n },\n platformFeeAmount: 500,\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2023-12-14T17:38:07.808Z\"),\n modifiedAt: new Date(\"2024-04-07T10:18:18.539Z\"),\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2024-10-23T02:39:12.424Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n userId: \"\",\n product: {\n metadata: {\n\n },\n id: \"\",\n createdAt: new Date(\"2024-12-03T05:16:11.415Z\"),\n modifiedAt: new Date(\"2023-03-11T05:58:05.184Z\"),\n trialInterval: null,\n trialIntervalCount: null,\n name: \"\",\n description: \"simple eventually briskly considering\",\n recurringInterval: \"month\",\n recurringIntervalCount: null,\n isRecurring: false,\n isArchived: true,\n organizationId: \"\",\n },\n discount: {\n duration: \"forever\",\n durationInMonths: 976971,\n type: \"fixed\",\n basisPoints: 1000,\n createdAt: new Date(\"2024-02-28T06:12:39.096Z\"),\n modifiedAt: new Date(\"2023-10-01T05:16:42.046Z\"),\n id: \"\",\n metadata: {\n\n },\n name: \"\",\n code: \"\",\n startsAt: new Date(\"2024-08-28T07:16:56.183Z\"),\n endsAt: new Date(\"2023-02-25T14:55:58.248Z\"),\n maxRedemptions: 970746,\n redemptionsCount: 314425,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n subscription: null,\n items: [\n {\n createdAt: new Date(\"2024-10-24T22:29:24.352Z\"),\n modifiedAt: new Date(\"2023-05-02T19:12:30.014Z\"),\n id: \"\",\n label: \"Pro Plan\",\n amount: 10000,\n taxAmount: 720,\n proration: false,\n productPriceId: \"\",\n },\n ],\n description: \"Pro Plan\",\n },\n });\n\n console.log(result);\n}\n\nrun();" - target: $["paths"]["organization.updated"]["post"] update: "x-codeSamples": @@ -962,13 +962,13 @@ actions: "x-codeSamples": - "lang": "typescript" "label": "Typescript (SDK)" - "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointproductCreatedPost({\n type: \"product.created\",\n timestamp: new Date(\"2023-10-13T02:47:55.082Z\"),\n data: {\n id: \"\",\n createdAt: new Date(\"2023-01-15T03:15:59.062Z\"),\n modifiedAt: new Date(\"2023-07-04T11:33:29.001Z\"),\n trialInterval: \"day\",\n trialIntervalCount: 130829,\n name: \"\",\n description: \"generously as at filthy busy athwart\",\n recurringInterval: \"year\",\n isRecurring: true,\n isArchived: false,\n organizationId: \"\",\n metadata: {\n \"key\": 87898,\n },\n prices: [],\n benefits: [\n {\n id: \"\",\n createdAt: new Date(\"2023-03-03T14:19:40.156Z\"),\n modifiedAt: new Date(\"2025-12-07T23:08:11.973Z\"),\n type: \"discord\",\n description: \"gosh consequently gladly beneath horse\",\n selectable: true,\n deletable: false,\n organizationId: \"\",\n metadata: {\n \"key\": 5806.69,\n },\n properties: {\n guildId: \"\",\n roleId: \"\",\n kickMember: false,\n guildToken: \"\",\n },\n },\n ],\n medias: [],\n attachedCustomFields: [\n {\n customFieldId: \"\",\n customField: {\n createdAt: new Date(\"2025-10-04T08:22:15.858Z\"),\n modifiedAt: null,\n id: \"\",\n metadata: {\n \"key\": false,\n },\n type: \"number\",\n slug: \"\",\n name: \"\",\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n properties: {},\n },\n order: 92084,\n required: true,\n },\n ],\n },\n });\n\n console.log(result);\n}\n\nrun();" + "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointproductCreatedPost({\n type: \"product.created\",\n timestamp: new Date(\"2023-10-13T02:47:55.082Z\"),\n data: {\n id: \"\",\n createdAt: new Date(\"2023-01-15T03:15:59.062Z\"),\n modifiedAt: new Date(\"2023-07-04T11:33:29.001Z\"),\n trialInterval: \"day\",\n trialIntervalCount: 130829,\n name: \"\",\n description: \"generously as at filthy busy athwart\",\n recurringInterval: \"year\",\n recurringIntervalCount: 944417,\n isRecurring: false,\n isArchived: true,\n organizationId: \"\",\n metadata: {\n\n },\n prices: [],\n benefits: [\n {\n id: \"\",\n createdAt: new Date(\"2023-03-03T14:19:40.156Z\"),\n modifiedAt: new Date(\"2025-12-07T23:08:11.973Z\"),\n type: \"discord\",\n description: \"gosh consequently gladly beneath horse\",\n selectable: true,\n deletable: false,\n organizationId: \"\",\n metadata: {\n \"key\": 5806.69,\n },\n properties: {\n guildId: \"\",\n roleId: \"\",\n kickMember: false,\n guildToken: \"\",\n },\n },\n ],\n medias: [],\n attachedCustomFields: [\n {\n customFieldId: \"\",\n customField: {\n createdAt: new Date(\"2025-10-04T08:22:15.858Z\"),\n modifiedAt: null,\n id: \"\",\n metadata: {\n \"key\": false,\n },\n type: \"number\",\n slug: \"\",\n name: \"\",\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n properties: {},\n },\n order: 92084,\n required: true,\n },\n ],\n },\n });\n\n console.log(result);\n}\n\nrun();" - target: $["paths"]["product.updated"]["post"] update: "x-codeSamples": - "lang": "typescript" "label": "Typescript (SDK)" - "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointproductUpdatedPost({\n type: \"product.updated\",\n timestamp: new Date(\"2024-08-25T02:00:54.049Z\"),\n data: {\n id: \"\",\n createdAt: new Date(\"2025-02-11T18:19:05.372Z\"),\n modifiedAt: new Date(\"2025-07-31T19:14:23.351Z\"),\n trialInterval: \"year\",\n trialIntervalCount: 907633,\n name: \"\",\n description: \"square extract modulo bossy outlandish pecan\",\n recurringInterval: \"year\",\n isRecurring: false,\n isArchived: false,\n organizationId: \"\",\n metadata: {\n \"key\": 423672,\n },\n prices: [\n {\n createdAt: new Date(\"2025-06-01T04:39:05.245Z\"),\n modifiedAt: new Date(\"2024-05-10T10:53:55.427Z\"),\n id: \"\",\n amountType: \"free\",\n isArchived: true,\n productId: \"\",\n type: \"recurring\",\n recurringInterval: \"month\",\n legacy: true,\n },\n ],\n benefits: [],\n medias: [],\n attachedCustomFields: [\n {\n customFieldId: \"\",\n customField: {\n createdAt: new Date(\"2025-06-23T20:05:36.217Z\"),\n modifiedAt: new Date(\"2023-10-18T15:30:25.986Z\"),\n id: \"\",\n metadata: {\n\n },\n type: \"text\",\n slug: \"\",\n name: \"\",\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n properties: {},\n },\n order: 752010,\n required: true,\n },\n ],\n },\n });\n\n console.log(result);\n}\n\nrun();" + "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointproductUpdatedPost({\n type: \"product.updated\",\n timestamp: new Date(\"2024-08-25T02:00:54.049Z\"),\n data: {\n id: \"\",\n createdAt: new Date(\"2025-02-11T18:19:05.372Z\"),\n modifiedAt: new Date(\"2025-07-31T19:14:23.351Z\"),\n trialInterval: \"year\",\n trialIntervalCount: 907633,\n name: \"\",\n description: \"square extract modulo bossy outlandish pecan\",\n recurringInterval: \"year\",\n recurringIntervalCount: 731544,\n isRecurring: false,\n isArchived: true,\n organizationId: \"\",\n metadata: {\n\n },\n prices: [\n {\n createdAt: new Date(\"2025-06-01T04:39:05.245Z\"),\n modifiedAt: new Date(\"2024-05-10T10:53:55.427Z\"),\n id: \"\",\n amountType: \"free\",\n isArchived: true,\n productId: \"\",\n type: \"recurring\",\n recurringInterval: \"month\",\n legacy: true,\n },\n ],\n benefits: [],\n medias: [],\n attachedCustomFields: [\n {\n customFieldId: \"\",\n customField: {\n createdAt: new Date(\"2025-06-23T20:05:36.217Z\"),\n modifiedAt: new Date(\"2023-10-18T15:30:25.986Z\"),\n id: \"\",\n metadata: {\n\n },\n type: \"text\",\n slug: \"\",\n name: \"\",\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n properties: {},\n },\n order: 752010,\n required: true,\n },\n ],\n },\n });\n\n console.log(result);\n}\n\nrun();" - target: $["paths"]["refund.created"]["post"] update: "x-codeSamples": @@ -986,34 +986,34 @@ actions: "x-codeSamples": - "lang": "typescript" "label": "Typescript (SDK)" - "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointsubscriptionActivePost({\n type: \"subscription.active\",\n timestamp: new Date(\"2023-08-13T01:28:21.362Z\"),\n data: {\n createdAt: new Date(\"2023-10-12T10:17:29.274Z\"),\n modifiedAt: new Date(\"2023-12-18T04:45:55.702Z\"),\n id: \"\",\n amount: 10000,\n currency: \"usd\",\n recurringInterval: \"year\",\n status: \"trialing\",\n currentPeriodStart: new Date(\"2024-10-11T10:49:29.519Z\"),\n currentPeriodEnd: new Date(\"2023-04-09T09:06:19.384Z\"),\n trialStart: null,\n trialEnd: null,\n cancelAtPeriodEnd: false,\n canceledAt: new Date(\"2024-09-14T15:19:58.463Z\"),\n startedAt: new Date(\"2024-07-30T05:01:30.550Z\"),\n endsAt: new Date(\"2024-02-02T06:13:13.441Z\"),\n endedAt: new Date(\"2023-10-10T03:15:20.759Z\"),\n customerId: \"\",\n productId: \"\",\n discountId: \"\",\n checkoutId: \"\",\n customerCancellationReason: \"unused\",\n customerCancellationComment: \"\",\n metadata: {\n \"key\": 667866,\n },\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2025-02-14T12:59:50.680Z\"),\n modifiedAt: new Date(\"2025-03-11T11:17:02.540Z\"),\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2023-04-08T22:28:00.101Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n product: {\n id: \"\",\n createdAt: new Date(\"2025-11-05T10:18:40.300Z\"),\n modifiedAt: new Date(\"2024-04-23T18:24:43.408Z\"),\n trialInterval: \"year\",\n trialIntervalCount: 714669,\n name: \"\",\n description: \"amongst incidentally irritably cauliflower antique\",\n recurringInterval: \"month\",\n isRecurring: true,\n isArchived: true,\n organizationId: \"\",\n metadata: {\n\n },\n prices: [],\n benefits: [\n {\n id: \"\",\n createdAt: new Date(\"2025-09-17T07:04:54.061Z\"),\n modifiedAt: new Date(\"2023-12-26T07:28:43.715Z\"),\n type: \"license_keys\",\n description: \"clamp hype oof if\",\n selectable: true,\n deletable: false,\n organizationId: \"\",\n metadata: {\n\n },\n properties: {\n prefix: \"\",\n expires: {\n ttl: 570748,\n timeframe: \"year\",\n },\n activations: {\n limit: 753501,\n enableCustomerAdmin: true,\n },\n limitUsage: 518919,\n },\n },\n ],\n medias: [],\n attachedCustomFields: [\n {\n customFieldId: \"\",\n customField: {\n createdAt: new Date(\"2025-03-13T22:09:00.011Z\"),\n modifiedAt: new Date(\"2024-10-01T03:40:19.696Z\"),\n id: \"\",\n metadata: {\n \"key\": 288393,\n },\n type: \"date\",\n slug: \"\",\n name: \"\",\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n properties: {},\n },\n order: 760744,\n required: true,\n },\n ],\n },\n discount: null,\n prices: [],\n meters: [\n {\n createdAt: new Date(\"2024-09-21T08:09:00.934Z\"),\n modifiedAt: null,\n id: \"\",\n consumedUnits: 25,\n creditedUnits: 100,\n amount: 0,\n meterId: \"d498a884-e2cd-4d3e-8002-f536468a8b22\",\n meter: {\n metadata: {\n \"key\": 18256,\n },\n createdAt: new Date(\"2025-09-05T22:03:29.917Z\"),\n modifiedAt: new Date(\"2025-04-30T23:31:10.261Z\"),\n id: \"\",\n name: \"\",\n filter: {\n conjunction: \"or\",\n clauses: [\n {\n property: \"\",\n operator: \"gte\",\n value: \"\",\n },\n ],\n },\n aggregation: {\n func: \"max\",\n property: \"\",\n },\n organizationId: \"\",\n },\n },\n ],\n },\n });\n\n console.log(result);\n}\n\nrun();" + "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointsubscriptionActivePost({\n type: \"subscription.active\",\n timestamp: new Date(\"2023-08-13T01:28:21.362Z\"),\n data: {\n createdAt: new Date(\"2023-10-12T10:17:29.274Z\"),\n modifiedAt: new Date(\"2023-12-18T04:45:55.702Z\"),\n id: \"\",\n amount: 10000,\n currency: \"usd\",\n recurringInterval: \"year\",\n recurringIntervalCount: 291908,\n status: \"past_due\",\n currentPeriodStart: new Date(\"2023-06-09T14:14:48.363Z\"),\n currentPeriodEnd: null,\n trialStart: null,\n trialEnd: null,\n cancelAtPeriodEnd: false,\n canceledAt: new Date(\"2024-09-14T15:19:58.463Z\"),\n startedAt: new Date(\"2024-07-30T05:01:30.550Z\"),\n endsAt: new Date(\"2024-02-02T06:13:13.441Z\"),\n endedAt: new Date(\"2023-10-10T03:15:20.759Z\"),\n customerId: \"\",\n productId: \"\",\n discountId: \"\",\n checkoutId: \"\",\n customerCancellationReason: \"unused\",\n customerCancellationComment: \"\",\n metadata: {\n \"key\": 667866,\n },\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2025-02-14T12:59:50.680Z\"),\n modifiedAt: new Date(\"2025-03-11T11:17:02.540Z\"),\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2023-04-08T22:28:00.101Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n product: {\n id: \"\",\n createdAt: new Date(\"2025-11-05T10:18:40.300Z\"),\n modifiedAt: new Date(\"2024-04-23T18:24:43.408Z\"),\n trialInterval: \"year\",\n trialIntervalCount: 714669,\n name: \"\",\n description: \"amongst incidentally irritably cauliflower antique\",\n recurringInterval: \"month\",\n recurringIntervalCount: 48572,\n isRecurring: true,\n isArchived: true,\n organizationId: \"\",\n metadata: {\n \"key\": false,\n },\n prices: [\n {\n createdAt: new Date(\"2025-03-24T10:57:36.466Z\"),\n modifiedAt: new Date(\"2024-10-17T11:42:46.643Z\"),\n id: \"\",\n amountType: \"custom\",\n isArchived: false,\n productId: \"\",\n type: \"recurring\",\n recurringInterval: \"day\",\n priceCurrency: \"\",\n minimumAmount: 154892,\n maximumAmount: 778615,\n presetAmount: 829362,\n legacy: true,\n },\n ],\n benefits: [\n {\n id: \"\",\n createdAt: new Date(\"2024-04-05T11:10:16.533Z\"),\n modifiedAt: new Date(\"2023-02-12T06:44:11.052Z\"),\n type: \"github_repository\",\n description: \"against effector as upbeat yuck\",\n selectable: true,\n deletable: false,\n organizationId: \"\",\n metadata: {\n \"key\": \"\",\n },\n properties: {\n repositoryOwner: \"polarsource\",\n repositoryName: \"private_repo\",\n permission: \"maintain\",\n },\n },\n ],\n medias: [],\n attachedCustomFields: [],\n },\n discount: {\n duration: \"repeating\",\n durationInMonths: 629236,\n type: \"percentage\",\n basisPoints: 1000,\n createdAt: new Date(\"2023-04-09T15:13:09.162Z\"),\n modifiedAt: new Date(\"2023-02-11T00:08:34.711Z\"),\n id: \"\",\n metadata: {\n\n },\n name: \"\",\n code: \"\",\n startsAt: new Date(\"2024-07-16T10:58:24.296Z\"),\n endsAt: null,\n maxRedemptions: 929853,\n redemptionsCount: 426681,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n prices: [\n {\n createdAt: new Date(\"2023-06-23T00:23:01.418Z\"),\n modifiedAt: new Date(\"2023-08-22T07:22:13.326Z\"),\n id: \"\",\n amountType: \"custom\",\n isArchived: false,\n productId: \"\",\n type: \"recurring\",\n recurringInterval: \"week\",\n priceCurrency: \"\",\n minimumAmount: 168659,\n maximumAmount: 84871,\n presetAmount: 549701,\n legacy: true,\n },\n ],\n meters: [\n {\n createdAt: new Date(\"2024-10-27T03:26:40.201Z\"),\n modifiedAt: null,\n id: \"\",\n consumedUnits: 25,\n creditedUnits: 100,\n amount: 0,\n meterId: \"d498a884-e2cd-4d3e-8002-f536468a8b22\",\n meter: {\n metadata: {\n \"key\": 99831,\n },\n createdAt: new Date(\"2024-03-30T14:50:52.711Z\"),\n modifiedAt: new Date(\"2024-06-25T05:59:30.258Z\"),\n id: \"\",\n name: \"\",\n filter: {\n conjunction: \"and\",\n clauses: [\n {\n property: \"\",\n operator: \"eq\",\n value: \"\",\n },\n ],\n },\n aggregation: {\n func: \"count\",\n },\n organizationId: \"\",\n },\n },\n ],\n },\n });\n\n console.log(result);\n}\n\nrun();" - target: $["paths"]["subscription.canceled"]["post"] update: "x-codeSamples": - "lang": "typescript" "label": "Typescript (SDK)" - "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointsubscriptionCanceledPost({\n type: \"subscription.canceled\",\n timestamp: new Date(\"2025-02-09T04:39:02.332Z\"),\n data: {\n createdAt: new Date(\"2025-04-09T17:46:08.645Z\"),\n modifiedAt: null,\n id: \"\",\n amount: 10000,\n currency: \"usd\",\n recurringInterval: \"day\",\n status: \"unpaid\",\n currentPeriodStart: new Date(\"2023-09-17T03:46:49.566Z\"),\n currentPeriodEnd: new Date(\"2023-06-17T04:15:56.819Z\"),\n trialStart: new Date(\"2023-06-02T15:48:16.857Z\"),\n trialEnd: new Date(\"2025-07-17T03:56:59.092Z\"),\n cancelAtPeriodEnd: true,\n canceledAt: new Date(\"2025-02-23T12:23:49.579Z\"),\n startedAt: new Date(\"2023-11-16T08:24:59.166Z\"),\n endsAt: new Date(\"2023-07-21T16:25:14.433Z\"),\n endedAt: null,\n customerId: \"\",\n productId: \"\",\n discountId: null,\n checkoutId: null,\n customerCancellationReason: \"low_quality\",\n customerCancellationComment: \"\",\n metadata: {\n\n },\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2023-09-20T10:20:50.540Z\"),\n modifiedAt: new Date(\"2025-12-01T17:01:38.429Z\"),\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2023-07-13T08:26:56.650Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n product: {\n id: \"\",\n createdAt: new Date(\"2025-06-11T17:21:10.206Z\"),\n modifiedAt: new Date(\"2025-03-18T13:26:34.470Z\"),\n trialInterval: \"day\",\n trialIntervalCount: 72014,\n name: \"\",\n description: \"for for average aw weakly inside beneath ack stylish or\",\n recurringInterval: \"day\",\n isRecurring: true,\n isArchived: true,\n organizationId: \"\",\n metadata: {\n \"key\": \"\",\n },\n prices: [],\n benefits: [],\n medias: [\n {\n id: \"\",\n organizationId: \"\",\n name: \"\",\n path: \"/private\",\n mimeType: \"\",\n size: 506043,\n storageVersion: \"\",\n checksumEtag: \"\",\n checksumSha256Base64: \"\",\n checksumSha256Hex: \"\",\n lastModifiedAt: new Date(\"2023-02-14T21:53:48.447Z\"),\n version: \"\",\n service: \"product_media\",\n isUploaded: true,\n createdAt: new Date(\"2025-07-09T19:17:42.822Z\"),\n sizeReadable: \"\",\n publicUrl: \"https://courteous-appliance.com/\",\n },\n ],\n attachedCustomFields: [],\n },\n discount: {\n duration: \"once\",\n durationInMonths: 105958,\n type: \"fixed\",\n amount: 1000,\n currency: \"usd\",\n createdAt: new Date(\"2025-01-10T23:59:33.152Z\"),\n modifiedAt: new Date(\"2025-12-09T20:48:19.909Z\"),\n id: \"\",\n metadata: {\n \"key\": \"\",\n },\n name: \"\",\n code: \"\",\n startsAt: new Date(\"2023-03-07T15:42:46.324Z\"),\n endsAt: new Date(\"2024-09-08T21:12:01.583Z\"),\n maxRedemptions: 147849,\n redemptionsCount: 609736,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n prices: [],\n meters: [],\n },\n });\n\n console.log(result);\n}\n\nrun();" + "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointsubscriptionCanceledPost({\n type: \"subscription.canceled\",\n timestamp: new Date(\"2025-02-09T04:39:02.332Z\"),\n data: {\n createdAt: new Date(\"2025-04-09T17:46:08.645Z\"),\n modifiedAt: null,\n id: \"\",\n amount: 10000,\n currency: \"usd\",\n recurringInterval: \"day\",\n recurringIntervalCount: 867179,\n status: \"incomplete_expired\",\n currentPeriodStart: new Date(\"2024-08-12T22:41:41.907Z\"),\n currentPeriodEnd: new Date(\"2023-08-04T03:14:29.655Z\"),\n trialStart: new Date(\"2025-03-21T15:50:39.816Z\"),\n trialEnd: new Date(\"2024-01-07T18:54:45.602Z\"),\n cancelAtPeriodEnd: false,\n canceledAt: new Date(\"2023-05-05T03:28:24.281Z\"),\n startedAt: new Date(\"2024-08-20T02:19:30.433Z\"),\n endsAt: new Date(\"2023-01-03T22:38:10.292Z\"),\n endedAt: null,\n customerId: \"\",\n productId: \"\",\n discountId: null,\n checkoutId: \"\",\n customerCancellationReason: \"missing_features\",\n customerCancellationComment: \"\",\n metadata: {\n\n },\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2024-06-06T08:13:58.211Z\"),\n modifiedAt: new Date(\"2023-06-07T02:15:24.636Z\"),\n metadata: {\n \"key\": 1764.16,\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2025-03-18T13:26:34.470Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n product: {\n id: \"\",\n createdAt: new Date(\"2024-08-22T01:08:59.550Z\"),\n modifiedAt: null,\n trialInterval: \"day\",\n trialIntervalCount: 920579,\n name: \"\",\n description: \"via hm truly\",\n recurringInterval: \"month\",\n recurringIntervalCount: 848785,\n isRecurring: false,\n isArchived: false,\n organizationId: \"\",\n metadata: {\n \"key\": true,\n },\n prices: [],\n benefits: [],\n medias: [\n {\n id: \"\",\n organizationId: \"\",\n name: \"\",\n path: \"/lib\",\n mimeType: \"\",\n size: 83334,\n storageVersion: \"\",\n checksumEtag: \"\",\n checksumSha256Base64: \"\",\n checksumSha256Hex: \"\",\n lastModifiedAt: new Date(\"2024-09-21T18:00:22.332Z\"),\n version: \"\",\n service: \"product_media\",\n isUploaded: true,\n createdAt: new Date(\"2025-04-11T14:16:04.184Z\"),\n sizeReadable: \"\",\n publicUrl: \"https://entire-ethyl.org/\",\n },\n ],\n attachedCustomFields: [\n {\n customFieldId: \"\",\n customField: {\n createdAt: new Date(\"2024-11-19T14:39:19.899Z\"),\n modifiedAt: new Date(\"2024-10-07T08:09:01.589Z\"),\n id: \"\",\n metadata: {\n \"key\": \"\",\n },\n type: \"checkbox\",\n slug: \"\",\n name: \"\",\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n properties: {},\n },\n order: 350933,\n required: false,\n },\n ],\n },\n discount: {\n duration: \"repeating\",\n type: \"percentage\",\n basisPoints: 1000,\n createdAt: new Date(\"2023-05-20T18:55:11.120Z\"),\n modifiedAt: new Date(\"2025-01-19T16:58:36.968Z\"),\n id: \"\",\n metadata: {\n \"key\": \"\",\n },\n name: \"\",\n code: \"\",\n startsAt: new Date(\"2024-09-20T02:04:48.363Z\"),\n endsAt: new Date(\"2023-02-23T04:10:00.244Z\"),\n maxRedemptions: 839446,\n redemptionsCount: 119301,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n prices: [],\n meters: [],\n },\n });\n\n console.log(result);\n}\n\nrun();" - target: $["paths"]["subscription.created"]["post"] update: "x-codeSamples": - "lang": "typescript" "label": "Typescript (SDK)" - "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointsubscriptionCreatedPost({\n type: \"subscription.created\",\n timestamp: new Date(\"2024-05-03T11:46:21.459Z\"),\n data: {\n createdAt: new Date(\"2023-12-03T10:52:23.880Z\"),\n modifiedAt: new Date(\"2024-05-29T05:21:44.072Z\"),\n id: \"\",\n amount: 10000,\n currency: \"usd\",\n recurringInterval: \"day\",\n status: \"unpaid\",\n currentPeriodStart: new Date(\"2023-05-17T21:41:04.799Z\"),\n currentPeriodEnd: new Date(\"2024-02-03T21:22:53.116Z\"),\n trialStart: new Date(\"2023-10-20T18:48:25.568Z\"),\n trialEnd: new Date(\"2023-09-10T18:39:16.136Z\"),\n cancelAtPeriodEnd: true,\n canceledAt: new Date(\"2024-09-02T19:02:23.015Z\"),\n startedAt: new Date(\"2023-08-19T21:45:43.735Z\"),\n endsAt: new Date(\"2023-03-15T19:14:53.866Z\"),\n endedAt: new Date(\"2024-04-01T08:29:51.925Z\"),\n customerId: \"\",\n productId: \"\",\n discountId: \"\",\n checkoutId: \"\",\n customerCancellationReason: \"unused\",\n customerCancellationComment: \"\",\n metadata: {\n\n },\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2024-09-10T08:59:46.091Z\"),\n modifiedAt: new Date(\"2024-07-06T00:27:46.272Z\"),\n metadata: {\n \"key\": 9576.45,\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2025-06-26T21:09:46.234Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n product: {\n id: \"\",\n createdAt: new Date(\"2023-05-15T22:05:41.858Z\"),\n modifiedAt: new Date(\"2024-01-31T16:35:38.441Z\"),\n trialInterval: \"year\",\n trialIntervalCount: 271531,\n name: \"\",\n description: \"platypus scrape adventurously which cautiously secret completion\",\n recurringInterval: \"year\",\n isRecurring: false,\n isArchived: false,\n organizationId: \"\",\n metadata: {\n \"key\": \"\",\n },\n prices: [],\n benefits: [],\n medias: [],\n attachedCustomFields: [],\n },\n discount: null,\n prices: [\n {\n createdAt: new Date(\"2023-10-28T08:41:20.067Z\"),\n modifiedAt: new Date(\"2025-09-05T16:45:03.444Z\"),\n id: \"\",\n amountType: \"seat_based\",\n isArchived: false,\n productId: \"\",\n type: \"recurring\",\n recurringInterval: \"week\",\n priceCurrency: \"\",\n seatTiers: {\n tiers: [\n {\n minSeats: 44221,\n pricePerSeat: 652202,\n },\n ],\n },\n },\n ],\n meters: [],\n },\n });\n\n console.log(result);\n}\n\nrun();" + "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointsubscriptionCreatedPost({\n type: \"subscription.created\",\n timestamp: new Date(\"2024-05-03T11:46:21.459Z\"),\n data: {\n createdAt: new Date(\"2023-12-03T10:52:23.880Z\"),\n modifiedAt: new Date(\"2024-05-29T05:21:44.072Z\"),\n id: \"\",\n amount: 10000,\n currency: \"usd\",\n recurringInterval: \"day\",\n recurringIntervalCount: 990795,\n status: \"incomplete\",\n currentPeriodStart: new Date(\"2024-01-07T06:33:36.381Z\"),\n currentPeriodEnd: new Date(\"2024-07-30T16:54:44.427Z\"),\n trialStart: new Date(\"2025-01-24T01:20:23.589Z\"),\n trialEnd: new Date(\"2023-09-10T12:12:44.499Z\"),\n cancelAtPeriodEnd: false,\n canceledAt: new Date(\"2024-06-27T22:01:23.333Z\"),\n startedAt: new Date(\"2024-07-24T19:43:04.879Z\"),\n endsAt: null,\n endedAt: new Date(\"2024-04-01T08:29:51.925Z\"),\n customerId: \"\",\n productId: \"\",\n discountId: \"\",\n checkoutId: \"\",\n customerCancellationReason: \"unused\",\n customerCancellationComment: \"\",\n metadata: {\n\n },\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2024-09-10T08:59:46.091Z\"),\n modifiedAt: new Date(\"2024-07-06T00:27:46.272Z\"),\n metadata: {\n \"key\": 9576.45,\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2025-06-26T21:09:46.234Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n product: {\n id: \"\",\n createdAt: new Date(\"2023-05-15T22:05:41.858Z\"),\n modifiedAt: new Date(\"2024-01-31T16:35:38.441Z\"),\n trialInterval: \"year\",\n trialIntervalCount: 271531,\n name: \"\",\n description: \"platypus scrape adventurously which cautiously secret completion\",\n recurringInterval: \"year\",\n recurringIntervalCount: 803045,\n isRecurring: false,\n isArchived: true,\n organizationId: \"\",\n metadata: {\n\n },\n prices: [],\n benefits: [],\n medias: [],\n attachedCustomFields: [],\n },\n discount: {\n duration: \"repeating\",\n durationInMonths: 274053,\n type: \"percentage\",\n basisPoints: 1000,\n createdAt: new Date(\"2025-09-05T16:45:03.444Z\"),\n modifiedAt: new Date(\"2025-01-22T02:13:03.697Z\"),\n id: \"\",\n metadata: {\n\n },\n name: \"\",\n code: \"\",\n startsAt: new Date(\"2023-02-18T11:12:06.291Z\"),\n endsAt: new Date(\"2024-01-29T14:46:42.846Z\"),\n maxRedemptions: 440571,\n redemptionsCount: 801134,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n prices: [],\n meters: [],\n },\n });\n\n console.log(result);\n}\n\nrun();" - target: $["paths"]["subscription.revoked"]["post"] update: "x-codeSamples": - "lang": "typescript" "label": "Typescript (SDK)" - "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointsubscriptionRevokedPost({\n type: \"subscription.revoked\",\n timestamp: new Date(\"2024-01-02T06:40:50.860Z\"),\n data: {\n createdAt: new Date(\"2023-03-16T08:42:29.566Z\"),\n modifiedAt: new Date(\"2023-10-28T01:20:21.930Z\"),\n id: \"\",\n amount: 10000,\n currency: \"usd\",\n recurringInterval: \"day\",\n status: \"canceled\",\n currentPeriodStart: new Date(\"2024-04-30T10:39:59.432Z\"),\n currentPeriodEnd: new Date(\"2025-03-19T11:29:47.842Z\"),\n trialStart: new Date(\"2023-11-20T08:24:19.529Z\"),\n trialEnd: null,\n cancelAtPeriodEnd: false,\n canceledAt: new Date(\"2025-06-25T06:14:56.835Z\"),\n startedAt: new Date(\"2023-11-13T16:37:04.348Z\"),\n endsAt: new Date(\"2023-12-28T07:35:48.028Z\"),\n endedAt: new Date(\"2024-01-26T10:24:50.250Z\"),\n customerId: \"\",\n productId: \"\",\n discountId: \"\",\n checkoutId: \"\",\n customerCancellationReason: \"missing_features\",\n customerCancellationComment: \"\",\n metadata: {\n \"key\": false,\n },\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2024-11-12T05:10:40.368Z\"),\n modifiedAt: new Date(\"2024-05-28T06:09:58.228Z\"),\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2023-07-14T08:43:45.509Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n product: {\n id: \"\",\n createdAt: new Date(\"2025-12-09T13:41:39.970Z\"),\n modifiedAt: new Date(\"2025-06-26T05:35:27.950Z\"),\n trialInterval: \"week\",\n trialIntervalCount: 304056,\n name: \"\",\n description: \"apparatus since acidly anti canter dimly\",\n recurringInterval: \"week\",\n isRecurring: true,\n isArchived: false,\n organizationId: \"\",\n metadata: {\n \"key\": 2638.35,\n },\n prices: [\n {\n createdAt: new Date(\"2025-10-26T15:27:51.969Z\"),\n modifiedAt: new Date(\"2024-07-22T18:02:43.795Z\"),\n id: \"\",\n amountType: \"fixed\",\n isArchived: true,\n productId: \"\",\n type: \"recurring\",\n recurringInterval: \"week\",\n priceCurrency: \"\",\n priceAmount: 956675,\n legacy: true,\n },\n ],\n benefits: [],\n medias: [],\n attachedCustomFields: [],\n },\n discount: {\n duration: \"once\",\n durationInMonths: 790995,\n type: \"percentage\",\n amount: 1000,\n currency: \"usd\",\n createdAt: new Date(\"2024-04-14T21:10:01.890Z\"),\n modifiedAt: new Date(\"2023-05-09T16:38:05.908Z\"),\n id: \"\",\n metadata: {\n\n },\n name: \"\",\n code: null,\n startsAt: new Date(\"2025-07-11T05:56:19.510Z\"),\n endsAt: new Date(\"2023-03-08T18:49:48.348Z\"),\n maxRedemptions: 10607,\n redemptionsCount: 577628,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n prices: [],\n meters: [\n {\n createdAt: new Date(\"2024-02-25T09:46:24.876Z\"),\n modifiedAt: new Date(\"2023-11-24T08:24:04.782Z\"),\n id: \"\",\n consumedUnits: 25,\n creditedUnits: 100,\n amount: 0,\n meterId: \"d498a884-e2cd-4d3e-8002-f536468a8b22\",\n meter: {\n metadata: {\n \"key\": true,\n },\n createdAt: new Date(\"2025-06-08T22:31:19.307Z\"),\n modifiedAt: new Date(\"2024-03-04T14:42:37.936Z\"),\n id: \"\",\n name: \"\",\n filter: {\n conjunction: \"or\",\n clauses: [],\n },\n aggregation: {\n func: \"unique\",\n property: \"\",\n },\n organizationId: \"\",\n },\n },\n ],\n },\n });\n\n console.log(result);\n}\n\nrun();" + "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointsubscriptionRevokedPost({\n type: \"subscription.revoked\",\n timestamp: new Date(\"2024-01-02T06:40:50.860Z\"),\n data: {\n createdAt: new Date(\"2023-03-16T08:42:29.566Z\"),\n modifiedAt: new Date(\"2023-10-28T01:20:21.930Z\"),\n id: \"\",\n amount: 10000,\n currency: \"usd\",\n recurringInterval: \"day\",\n recurringIntervalCount: 811590,\n status: \"active\",\n currentPeriodStart: new Date(\"2023-05-30T02:07:20.021Z\"),\n currentPeriodEnd: new Date(\"2023-06-01T18:10:42.435Z\"),\n trialStart: new Date(\"2023-02-17T04:59:11.584Z\"),\n trialEnd: new Date(\"2024-02-14T23:20:57.498Z\"),\n cancelAtPeriodEnd: false,\n canceledAt: new Date(\"2023-11-13T16:37:04.348Z\"),\n startedAt: new Date(\"2023-12-28T07:35:48.028Z\"),\n endsAt: new Date(\"2024-01-26T10:24:50.250Z\"),\n endedAt: new Date(\"2024-06-20T16:37:33.284Z\"),\n customerId: \"\",\n productId: \"\",\n discountId: \"\",\n checkoutId: \"\",\n customerCancellationReason: \"too_expensive\",\n customerCancellationComment: \"\",\n metadata: {\n \"key\": 8717.41,\n },\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2024-05-28T06:09:58.228Z\"),\n modifiedAt: new Date(\"2025-01-19T04:39:36.127Z\"),\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2025-05-31T05:10:14.997Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n product: {\n id: \"\",\n createdAt: new Date(\"2025-06-26T05:35:27.950Z\"),\n modifiedAt: new Date(\"2024-06-01T00:18:42.763Z\"),\n trialInterval: \"week\",\n trialIntervalCount: 455030,\n name: \"\",\n description: \"overburden quarrelsome outrun phew whose merrily language\",\n recurringInterval: \"year\",\n recurringIntervalCount: 518934,\n isRecurring: true,\n isArchived: false,\n organizationId: \"\",\n metadata: {\n\n },\n prices: [],\n benefits: [\n {\n id: \"\",\n createdAt: new Date(\"2023-12-16T06:31:21.339Z\"),\n modifiedAt: new Date(\"2024-06-28T04:33:55.419Z\"),\n type: \"discord\",\n description: \"yuck after plus meh enrich that\",\n selectable: false,\n deletable: false,\n organizationId: \"\",\n metadata: {\n \"key\": 484393,\n },\n properties: {\n guildId: \"\",\n roleId: \"\",\n kickMember: false,\n guildToken: \"\",\n },\n },\n ],\n medias: [\n {\n id: \"\",\n organizationId: \"\",\n name: \"\",\n path: \"/usr/bin\",\n mimeType: \"\",\n size: 968821,\n storageVersion: null,\n checksumEtag: \"\",\n checksumSha256Base64: \"\",\n checksumSha256Hex: \"\",\n lastModifiedAt: new Date(\"2023-08-08T17:21:00.549Z\"),\n version: \"\",\n service: \"product_media\",\n isUploaded: true,\n createdAt: new Date(\"2023-09-16T06:24:58.018Z\"),\n sizeReadable: \"\",\n publicUrl: \"https://utter-requirement.name\",\n },\n ],\n attachedCustomFields: [],\n },\n discount: {\n duration: \"repeating\",\n durationInMonths: 999351,\n type: \"percentage\",\n amount: 1000,\n currency: \"usd\",\n createdAt: new Date(\"2024-07-01T13:17:29.420Z\"),\n modifiedAt: new Date(\"2025-02-23T14:37:34.479Z\"),\n id: \"\",\n metadata: {\n\n },\n name: \"\",\n code: \"\",\n startsAt: new Date(\"2024-12-31T12:49:59.518Z\"),\n endsAt: new Date(\"2024-06-27T11:23:29.412Z\"),\n maxRedemptions: 437648,\n redemptionsCount: 444423,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n prices: [\n {\n createdAt: new Date(\"2025-10-03T04:33:30.421Z\"),\n modifiedAt: new Date(\"2023-02-24T01:04:52.565Z\"),\n id: \"\",\n amountType: \"fixed\",\n isArchived: false,\n productId: \"\",\n type: \"one_time\",\n recurringInterval: \"month\",\n priceCurrency: \"\",\n priceAmount: 213583,\n legacy: true,\n },\n ],\n meters: [],\n },\n });\n\n console.log(result);\n}\n\nrun();" - target: $["paths"]["subscription.uncanceled"]["post"] update: "x-codeSamples": - "lang": "typescript" "label": "Typescript (SDK)" - "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointsubscriptionUncanceledPost({\n type: \"subscription.uncanceled\",\n timestamp: new Date(\"2023-02-06T17:25:10.106Z\"),\n data: {\n createdAt: new Date(\"2023-05-13T11:53:26.507Z\"),\n modifiedAt: null,\n id: \"\",\n amount: 10000,\n currency: \"usd\",\n recurringInterval: \"year\",\n status: \"trialing\",\n currentPeriodStart: new Date(\"2023-07-02T17:11:35.307Z\"),\n currentPeriodEnd: new Date(\"2024-04-11T19:08:16.655Z\"),\n trialStart: new Date(\"2023-08-23T01:03:59.107Z\"),\n trialEnd: new Date(\"2024-08-30T15:34:10.479Z\"),\n cancelAtPeriodEnd: false,\n canceledAt: null,\n startedAt: new Date(\"2023-12-23T04:50:00.016Z\"),\n endsAt: new Date(\"2024-10-18T16:25:47.209Z\"),\n endedAt: new Date(\"2023-01-21T06:39:24.599Z\"),\n customerId: \"\",\n productId: \"\",\n discountId: \"\",\n checkoutId: \"\",\n customerCancellationReason: \"customer_service\",\n customerCancellationComment: \"\",\n metadata: {\n\n },\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2024-07-04T17:30:56.477Z\"),\n modifiedAt: new Date(\"2024-12-23T09:30:11.195Z\"),\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2024-07-11T02:50:51.350Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n product: {\n id: \"\",\n createdAt: new Date(\"2024-05-11T18:08:21.251Z\"),\n modifiedAt: new Date(\"2024-10-15T19:47:04.648Z\"),\n trialInterval: \"month\",\n trialIntervalCount: 709373,\n name: \"\",\n description: \"but next inasmuch without as sway\",\n recurringInterval: \"month\",\n isRecurring: true,\n isArchived: true,\n organizationId: \"\",\n metadata: {\n\n },\n prices: [],\n benefits: [],\n medias: [],\n attachedCustomFields: [\n {\n customFieldId: \"\",\n customField: {\n createdAt: new Date(\"2025-10-16T22:21:29.269Z\"),\n modifiedAt: new Date(\"2024-12-25T00:51:16.069Z\"),\n id: \"\",\n metadata: {\n \"key\": 5178.18,\n },\n type: \"text\",\n slug: \"\",\n name: \"\",\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n properties: {},\n },\n order: 506828,\n required: false,\n },\n ],\n },\n discount: {\n duration: \"once\",\n type: \"fixed\",\n amount: 1000,\n currency: \"usd\",\n createdAt: new Date(\"2023-12-22T07:23:34.509Z\"),\n modifiedAt: new Date(\"2024-04-22T19:50:00.119Z\"),\n id: \"\",\n metadata: {\n \"key\": \"\",\n },\n name: \"\",\n code: \"\",\n startsAt: new Date(\"2023-01-02T00:28:56.898Z\"),\n endsAt: null,\n maxRedemptions: 946014,\n redemptionsCount: 409576,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n prices: [],\n meters: [\n {\n createdAt: new Date(\"2023-08-21T14:44:29.354Z\"),\n modifiedAt: new Date(\"2023-07-02T09:45:25.582Z\"),\n id: \"\",\n consumedUnits: 25,\n creditedUnits: 100,\n amount: 0,\n meterId: \"d498a884-e2cd-4d3e-8002-f536468a8b22\",\n meter: {\n metadata: {\n\n },\n createdAt: new Date(\"2023-02-19T21:33:40.608Z\"),\n modifiedAt: new Date(\"2024-08-07T14:29:10.632Z\"),\n id: \"\",\n name: \"\",\n filter: {\n conjunction: \"and\",\n clauses: [],\n },\n aggregation: {\n func: \"min\",\n property: \"\",\n },\n organizationId: \"\",\n },\n },\n ],\n },\n });\n\n console.log(result);\n}\n\nrun();" + "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointsubscriptionUncanceledPost({\n type: \"subscription.uncanceled\",\n timestamp: new Date(\"2023-02-06T17:25:10.106Z\"),\n data: {\n createdAt: new Date(\"2023-05-13T11:53:26.507Z\"),\n modifiedAt: null,\n id: \"\",\n amount: 10000,\n currency: \"usd\",\n recurringInterval: \"year\",\n recurringIntervalCount: 406654,\n status: \"incomplete_expired\",\n currentPeriodStart: new Date(\"2025-06-06T02:06:49.326Z\"),\n currentPeriodEnd: new Date(\"2023-04-28T08:16:42.068Z\"),\n trialStart: new Date(\"2023-10-03T23:40:30.923Z\"),\n trialEnd: new Date(\"2024-11-16T02:01:16.824Z\"),\n cancelAtPeriodEnd: true,\n canceledAt: new Date(\"2023-12-23T04:50:00.016Z\"),\n startedAt: new Date(\"2024-10-18T16:25:47.209Z\"),\n endsAt: new Date(\"2023-01-21T06:39:24.599Z\"),\n endedAt: new Date(\"2023-06-01T22:55:56.558Z\"),\n customerId: \"\",\n productId: \"\",\n discountId: \"\",\n checkoutId: null,\n customerCancellationReason: \"switched_service\",\n customerCancellationComment: \"\",\n metadata: {\n\n },\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2024-12-23T09:30:11.195Z\"),\n modifiedAt: new Date(\"2024-12-20T09:31:52.259Z\"),\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2023-09-22T11:20:51.361Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n product: {\n id: \"\",\n createdAt: new Date(\"2024-10-15T19:47:04.648Z\"),\n modifiedAt: new Date(\"2024-08-04T07:14:33.597Z\"),\n trialInterval: \"month\",\n trialIntervalCount: 449040,\n name: \"\",\n description: \"geez proper whenever exaggerate\",\n recurringInterval: \"week\",\n recurringIntervalCount: 130752,\n isRecurring: true,\n isArchived: true,\n organizationId: \"\",\n metadata: {\n \"key\": 4421.44,\n },\n prices: [\n {\n createdAt: new Date(\"2024-02-14T17:42:30.228Z\"),\n modifiedAt: new Date(\"2023-11-01T03:56:36.911Z\"),\n id: \"\",\n amountType: \"seat_based\",\n isArchived: true,\n productId: \"\",\n type: \"one_time\",\n recurringInterval: \"week\",\n priceCurrency: \"\",\n seatTiers: {\n tiers: [],\n },\n },\n ],\n benefits: [\n {\n id: \"\",\n createdAt: new Date(\"2025-10-16T22:21:29.269Z\"),\n modifiedAt: new Date(\"2024-12-25T00:51:16.069Z\"),\n type: \"license_keys\",\n description: \"confound consequently fairly around winged lounge hmph\",\n selectable: true,\n deletable: false,\n organizationId: \"\",\n metadata: {\n\n },\n properties: {\n prefix: null,\n expires: {\n ttl: 137943,\n timeframe: \"year\",\n },\n activations: {\n limit: 601895,\n enableCustomerAdmin: false,\n },\n limitUsage: 7151,\n },\n },\n ],\n medias: [\n {\n id: \"\",\n organizationId: \"\",\n name: \"\",\n path: \"/home/user\",\n mimeType: \"\",\n size: 973918,\n storageVersion: null,\n checksumEtag: \"\",\n checksumSha256Base64: \"\",\n checksumSha256Hex: \"\",\n lastModifiedAt: new Date(\"2024-08-03T23:06:56.842Z\"),\n version: \"\",\n service: \"product_media\",\n isUploaded: false,\n createdAt: new Date(\"2024-07-11T07:06:51.985Z\"),\n sizeReadable: \"\",\n publicUrl: \"https://brave-apparatus.org\",\n },\n ],\n attachedCustomFields: [\n {\n customFieldId: \"\",\n customField: {\n createdAt: new Date(\"2024-11-24T20:44:07.855Z\"),\n modifiedAt: new Date(\"2023-01-08T04:12:28.982Z\"),\n id: \"\",\n metadata: {\n\n },\n type: \"number\",\n slug: \"\",\n name: \"\",\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n properties: {},\n },\n order: 641015,\n required: true,\n },\n ],\n },\n discount: {\n duration: \"once\",\n type: \"fixed\",\n basisPoints: 1000,\n createdAt: new Date(\"2023-02-07T10:32:39.606Z\"),\n modifiedAt: new Date(\"2025-11-03T02:51:34.636Z\"),\n id: \"\",\n metadata: {\n\n },\n name: \"\",\n code: \"\",\n startsAt: null,\n endsAt: new Date(\"2024-04-21T02:08:16.256Z\"),\n maxRedemptions: 865781,\n redemptionsCount: 827760,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n prices: [],\n meters: [],\n },\n });\n\n console.log(result);\n}\n\nrun();" - target: $["paths"]["subscription.updated"]["post"] update: "x-codeSamples": - "lang": "typescript" "label": "Typescript (SDK)" - "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointsubscriptionUpdatedPost({\n type: \"subscription.updated\",\n timestamp: new Date(\"2023-06-24T13:26:25.969Z\"),\n data: {\n createdAt: new Date(\"2024-05-25T12:11:24.717Z\"),\n modifiedAt: new Date(\"2024-07-08T02:17:23.799Z\"),\n id: \"\",\n amount: 10000,\n currency: \"usd\",\n recurringInterval: \"week\",\n status: \"active\",\n currentPeriodStart: new Date(\"2025-03-19T13:26:31.175Z\"),\n currentPeriodEnd: new Date(\"2023-06-14T15:07:05.619Z\"),\n trialStart: new Date(\"2025-04-17T18:51:57.213Z\"),\n trialEnd: new Date(\"2025-08-31T06:08:08.476Z\"),\n cancelAtPeriodEnd: false,\n canceledAt: new Date(\"2024-10-12T01:39:46.850Z\"),\n startedAt: new Date(\"2024-08-23T08:17:41.246Z\"),\n endsAt: new Date(\"2025-04-28T14:07:35.212Z\"),\n endedAt: new Date(\"2025-04-23T18:41:38.111Z\"),\n customerId: \"\",\n productId: \"\",\n discountId: \"\",\n checkoutId: \"\",\n customerCancellationReason: \"missing_features\",\n customerCancellationComment: \"\",\n metadata: {\n \"key\": 384298,\n },\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2024-06-15T22:53:11.971Z\"),\n modifiedAt: new Date(\"2024-03-20T00:06:47.924Z\"),\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2023-05-10T07:26:17.258Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n product: {\n id: \"\",\n createdAt: new Date(\"2024-08-19T16:06:29.687Z\"),\n modifiedAt: new Date(\"2025-06-13T05:20:06.893Z\"),\n trialInterval: \"year\",\n trialIntervalCount: 201327,\n name: \"\",\n description: \"disbar athwart permafrost happy\",\n recurringInterval: \"week\",\n isRecurring: false,\n isArchived: false,\n organizationId: \"\",\n metadata: {\n\n },\n prices: [\n {\n createdAt: new Date(\"2024-08-06T04:06:32.371Z\"),\n modifiedAt: new Date(\"2025-01-19T02:14:07.649Z\"),\n id: \"\",\n amountType: \"seat_based\",\n isArchived: true,\n productId: \"\",\n type: \"one_time\",\n recurringInterval: \"week\",\n priceCurrency: \"\",\n seatTiers: {\n tiers: [],\n },\n },\n ],\n benefits: [\n {\n id: \"\",\n createdAt: new Date(\"2025-11-26T03:08:44.502Z\"),\n modifiedAt: new Date(\"2025-07-18T23:13:41.267Z\"),\n type: \"custom\",\n description: \"sightseeing than highly ha huzzah if fort partridge uh-huh ugh\",\n selectable: true,\n deletable: true,\n organizationId: \"\",\n metadata: {\n\n },\n properties: {\n note: \"\",\n },\n },\n ],\n medias: [\n {\n id: \"\",\n organizationId: \"\",\n name: \"\",\n path: \"/opt\",\n mimeType: \"\",\n size: 517362,\n storageVersion: \"\",\n checksumEtag: \"\",\n checksumSha256Base64: \"\",\n checksumSha256Hex: \"\",\n lastModifiedAt: new Date(\"2023-04-23T05:01:01.248Z\"),\n version: \"\",\n service: \"product_media\",\n isUploaded: true,\n createdAt: new Date(\"2023-11-22T17:02:47.686Z\"),\n sizeReadable: \"\",\n publicUrl: \"https://limping-unblinking.name\",\n },\n ],\n attachedCustomFields: [],\n },\n discount: {\n duration: \"repeating\",\n durationInMonths: 999975,\n type: \"percentage\",\n basisPoints: 1000,\n createdAt: new Date(\"2023-07-30T23:47:51.902Z\"),\n modifiedAt: new Date(\"2025-04-12T07:57:45.991Z\"),\n id: \"\",\n metadata: {\n \"key\": 864862,\n },\n name: \"\",\n code: \"\",\n startsAt: null,\n endsAt: new Date(\"2025-06-24T12:22:54.230Z\"),\n maxRedemptions: 90899,\n redemptionsCount: 827877,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n prices: [\n {\n createdAt: new Date(\"2025-01-02T11:00:33.424Z\"),\n modifiedAt: new Date(\"2025-05-18T17:20:57.869Z\"),\n id: \"\",\n amountType: \"fixed\",\n isArchived: true,\n productId: \"\",\n type: \"recurring\",\n recurringInterval: \"day\",\n priceCurrency: \"\",\n priceAmount: 226222,\n legacy: true,\n },\n ],\n meters: [\n {\n createdAt: new Date(\"2024-01-06T19:05:50.405Z\"),\n modifiedAt: null,\n id: \"\",\n consumedUnits: 25,\n creditedUnits: 100,\n amount: 0,\n meterId: \"d498a884-e2cd-4d3e-8002-f536468a8b22\",\n meter: {\n metadata: {\n \"key\": 6143.84,\n },\n createdAt: new Date(\"2023-11-19T04:02:15.239Z\"),\n modifiedAt: new Date(\"2023-05-08T02:10:11.788Z\"),\n id: \"\",\n name: \"\",\n filter: {\n conjunction: \"or\",\n clauses: [\n {\n property: \"\",\n operator: \"like\",\n value: \"\",\n },\n ],\n },\n aggregation: {\n func: \"max\",\n property: \"\",\n },\n organizationId: \"\",\n },\n },\n ],\n },\n });\n\n console.log(result);\n}\n\nrun();" + "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointsubscriptionUpdatedPost({\n type: \"subscription.updated\",\n timestamp: new Date(\"2023-06-24T13:26:25.969Z\"),\n data: {\n createdAt: new Date(\"2024-05-25T12:11:24.717Z\"),\n modifiedAt: new Date(\"2024-07-08T02:17:23.799Z\"),\n id: \"\",\n amount: 10000,\n currency: \"usd\",\n recurringInterval: \"week\",\n recurringIntervalCount: 489836,\n status: \"canceled\",\n currentPeriodStart: new Date(\"2024-06-19T12:29:28.503Z\"),\n currentPeriodEnd: new Date(\"2023-08-24T22:14:10.131Z\"),\n trialStart: new Date(\"2025-12-11T02:41:54.261Z\"),\n trialEnd: new Date(\"2025-12-29T02:13:52.269Z\"),\n cancelAtPeriodEnd: true,\n canceledAt: new Date(\"2025-01-23T22:07:32.693Z\"),\n startedAt: new Date(\"2025-05-14T13:55:44.367Z\"),\n endsAt: new Date(\"2024-10-25T00:53:02.943Z\"),\n endedAt: new Date(\"2023-09-29T06:12:50.252Z\"),\n customerId: \"\",\n productId: \"\",\n discountId: \"\",\n checkoutId: \"\",\n customerCancellationReason: \"switched_service\",\n customerCancellationComment: \"\",\n metadata: {\n\n },\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2024-02-26T04:35:08.698Z\"),\n modifiedAt: new Date(\"2024-01-10T06:45:35.933Z\"),\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2024-04-21T20:23:52.355Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n product: {\n id: \"\",\n createdAt: new Date(\"2023-05-10T07:26:17.258Z\"),\n modifiedAt: new Date(\"2025-07-20T14:48:07.590Z\"),\n trialInterval: \"year\",\n trialIntervalCount: 640251,\n name: \"\",\n description: \"swelter when besides utter phew knottily utilization now\",\n recurringInterval: \"year\",\n recurringIntervalCount: null,\n isRecurring: true,\n isArchived: true,\n organizationId: \"\",\n metadata: {\n \"key\": 2229.58,\n },\n prices: [\n {\n createdAt: new Date(\"2024-10-24T03:47:20.035Z\"),\n modifiedAt: new Date(\"2023-07-28T10:52:24.280Z\"),\n id: \"\",\n amountType: \"custom\",\n isArchived: true,\n productId: \"\",\n type: \"one_time\",\n recurringInterval: \"week\",\n priceCurrency: \"\",\n minimumAmount: 588876,\n maximumAmount: 280866,\n presetAmount: 942797,\n legacy: true,\n },\n ],\n benefits: [],\n medias: [],\n attachedCustomFields: [],\n },\n discount: {\n duration: \"once\",\n type: \"percentage\",\n amount: 1000,\n currency: \"usd\",\n createdAt: new Date(\"2025-11-18T23:26:50.006Z\"),\n modifiedAt: new Date(\"2024-05-31T09:53:13.946Z\"),\n id: \"\",\n metadata: {\n\n },\n name: \"\",\n code: \"\",\n startsAt: new Date(\"2025-12-28T16:59:30.195Z\"),\n endsAt: new Date(\"2023-06-09T06:11:59.062Z\"),\n maxRedemptions: 580493,\n redemptionsCount: 595442,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n prices: [],\n meters: [\n {\n createdAt: new Date(\"2024-05-25T04:21:31.587Z\"),\n modifiedAt: new Date(\"2024-02-19T12:40:10.475Z\"),\n id: \"\",\n consumedUnits: 25,\n creditedUnits: 100,\n amount: 0,\n meterId: \"d498a884-e2cd-4d3e-8002-f536468a8b22\",\n meter: {\n metadata: {\n\n },\n createdAt: new Date(\"2023-04-12T20:54:06.410Z\"),\n modifiedAt: new Date(\"2025-03-19T14:28:57.223Z\"),\n id: \"\",\n name: \"\",\n filter: {\n conjunction: \"and\",\n clauses: [\n {\n conjunction: \"and\",\n clauses: [],\n },\n ],\n },\n aggregation: {\n func: \"min\",\n property: \"\",\n },\n organizationId: \"\",\n },\n },\n ],\n },\n });\n\n console.log(result);\n}\n\nrun();" diff --git a/docs/models/components/benefit.md b/docs/models/components/benefit.md index c364193f..a96d5ce5 100644 --- a/docs/models/components/benefit.md +++ b/docs/models/components/benefit.md @@ -112,16 +112,16 @@ const value: components.BenefitLicenseKeys = { organizationId: "", metadata: {}, properties: { - prefix: null, + prefix: "", expires: { - ttl: 84298, - timeframe: "year", + ttl: 93452, + timeframe: "day", }, activations: { - limit: 202982, - enableCustomerAdmin: false, + limit: 777902, + enableCustomerAdmin: true, }, - limitUsage: 666374, + limitUsage: null, }, }; ``` diff --git a/docs/models/components/benefitgrantlicensekeyswebhook.md b/docs/models/components/benefitgrantlicensekeyswebhook.md index 03d109e4..220516e9 100644 --- a/docs/models/components/benefitgrantlicensekeyswebhook.md +++ b/docs/models/components/benefitgrantlicensekeyswebhook.md @@ -48,16 +48,16 @@ let value: BenefitGrantLicenseKeysWebhook = { organizationId: "", metadata: {}, properties: { - prefix: null, + prefix: "", expires: { - ttl: 84298, - timeframe: "year", + ttl: 93452, + timeframe: "day", }, activations: { - limit: 202982, - enableCustomerAdmin: false, + limit: 777902, + enableCustomerAdmin: true, }, - limitUsage: 666374, + limitUsage: null, }, }, properties: {}, diff --git a/docs/models/components/benefitgrantwebhook.md b/docs/models/components/benefitgrantwebhook.md index d149ce80..186038ce 100644 --- a/docs/models/components/benefitgrantwebhook.md +++ b/docs/models/components/benefitgrantwebhook.md @@ -278,16 +278,16 @@ const value: components.BenefitGrantLicenseKeysWebhook = { organizationId: "", metadata: {}, properties: { - prefix: null, + prefix: "", expires: { - ttl: 84298, - timeframe: "year", + ttl: 93452, + timeframe: "day", }, activations: { - limit: 202982, - enableCustomerAdmin: false, + limit: 777902, + enableCustomerAdmin: true, }, - limitUsage: 666374, + limitUsage: null, }, }, properties: {}, diff --git a/docs/models/components/benefitlicensekeys.md b/docs/models/components/benefitlicensekeys.md index 0b6c6ead..d04b15aa 100644 --- a/docs/models/components/benefitlicensekeys.md +++ b/docs/models/components/benefitlicensekeys.md @@ -16,16 +16,16 @@ let value: BenefitLicenseKeys = { organizationId: "", metadata: {}, properties: { - prefix: null, + prefix: "", expires: { - ttl: 84298, - timeframe: "year", + ttl: 93452, + timeframe: "day", }, activations: { - limit: 202982, - enableCustomerAdmin: false, + limit: 777902, + enableCustomerAdmin: true, }, - limitUsage: 666374, + limitUsage: null, }, }; ``` diff --git a/docs/models/components/benefitlicensekeysproperties.md b/docs/models/components/benefitlicensekeysproperties.md index 9c60e19b..0159b626 100644 --- a/docs/models/components/benefitlicensekeysproperties.md +++ b/docs/models/components/benefitlicensekeysproperties.md @@ -8,12 +8,12 @@ import { BenefitLicenseKeysProperties } from "@polar-sh/sdk/models/components/be let value: BenefitLicenseKeysProperties = { prefix: "", expires: { - ttl: 84298, - timeframe: "year", + ttl: 93452, + timeframe: "day", }, activations: { - limit: 202982, - enableCustomerAdmin: false, + limit: 777902, + enableCustomerAdmin: true, }, limitUsage: 224846, }; diff --git a/docs/models/components/benefitlicensekeyssubscriber.md b/docs/models/components/benefitlicensekeyssubscriber.md index ca93d5fd..fae1ae45 100644 --- a/docs/models/components/benefitlicensekeyssubscriber.md +++ b/docs/models/components/benefitlicensekeyssubscriber.md @@ -53,12 +53,12 @@ let value: BenefitLicenseKeysSubscriber = { properties: { prefix: "", expires: { - ttl: 84298, - timeframe: "year", + ttl: 93452, + timeframe: "day", }, activations: { - limit: 202982, - enableCustomerAdmin: false, + limit: 777902, + enableCustomerAdmin: true, }, limitUsage: 596467, }, diff --git a/docs/models/components/benefitlicensekeyssubscriberproperties.md b/docs/models/components/benefitlicensekeyssubscriberproperties.md index 1436ae46..a9d3c7ea 100644 --- a/docs/models/components/benefitlicensekeyssubscriberproperties.md +++ b/docs/models/components/benefitlicensekeyssubscriberproperties.md @@ -8,12 +8,12 @@ import { BenefitLicenseKeysSubscriberProperties } from "@polar-sh/sdk/models/com let value: BenefitLicenseKeysSubscriberProperties = { prefix: "", expires: { - ttl: 84298, - timeframe: "year", + ttl: 93452, + timeframe: "day", }, activations: { - limit: 202982, - enableCustomerAdmin: false, + limit: 777902, + enableCustomerAdmin: true, }, limitUsage: 887312, }; diff --git a/docs/models/components/checkout.md b/docs/models/components/checkout.md index 7fd1a43c..a8f67e36 100644 --- a/docs/models/components/checkout.md +++ b/docs/models/components/checkout.md @@ -74,24 +74,59 @@ let value: Checkout = { name: "", description: "unwieldy stupendous drat gummy mmm embody above", recurringInterval: "month", - isRecurring: true, - isArchived: false, + recurringIntervalCount: 570037, + isRecurring: false, + isArchived: true, organizationId: "", prices: [ { - createdAt: new Date("2025-11-17T07:41:12.479Z"), - modifiedAt: new Date("2024-06-19T23:33:39.565Z"), + createdAt: new Date("2024-06-19T23:33:39.565Z"), + modifiedAt: null, id: "", - amountType: "free", + amountType: "fixed", isArchived: true, productId: "", - type: "recurring", - recurringInterval: "week", + type: "one_time", + recurringInterval: "year", + priceCurrency: "", + priceAmount: 936645, legacy: true, }, ], - benefits: [], - medias: [], + benefits: [ + { + id: "", + createdAt: new Date("2023-01-24T18:47:57.919Z"), + modifiedAt: new Date("2025-10-21T11:30:14.929Z"), + type: "github_repository", + description: + "mockingly despite aw guidance defensive once at understated admonish", + selectable: false, + deletable: true, + organizationId: "", + }, + ], + medias: [ + { + id: "", + organizationId: "", + name: "", + path: "/home/user", + mimeType: "", + size: 715587, + storageVersion: "", + checksumEtag: "", + checksumSha256Base64: "", + checksumSha256Hex: "", + lastModifiedAt: null, + version: "", + service: "product_media", + isUploaded: false, + createdAt: new Date("2025-12-06T11:20:59.061Z"), + sizeReadable: "", + publicUrl: "https://gaseous-markup.net", + }, + ], }, productPrice: { createdAt: new Date("2024-05-23T00:03:50.452Z"), @@ -117,23 +152,23 @@ let value: Checkout = { { customFieldId: "", customField: { - createdAt: new Date("2024-06-30T20:57:53.724Z"), - modifiedAt: new Date("2024-03-04T15:14:18.502Z"), + createdAt: new Date("2025-05-25T16:58:54.608Z"), + modifiedAt: new Date("2023-09-04T14:15:13.546Z"), id: "", - metadata: {}, - type: "number", + metadata: { + "key": false, + }, + type: "text", slug: "", name: "", organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737", properties: {}, }, - order: 763945, - required: true, + order: 93108, + required: false, }, ], - customerMetadata: { - "key": true, - }, + customerMetadata: {}, }; ``` diff --git a/docs/models/components/checkoutlink.md b/docs/models/components/checkoutlink.md index 9bc4ea62..f91d50c8 100644 --- a/docs/models/components/checkoutlink.md +++ b/docs/models/components/checkoutlink.md @@ -38,64 +38,46 @@ let value: CheckoutLink = { description: "roughly lest sternly while metabolise hence who lasting wee spherical", recurringInterval: "month", - isRecurring: false, + recurringIntervalCount: 866095, + isRecurring: true, isArchived: false, organizationId: "", - prices: [], - benefits: [ + prices: [ { + createdAt: new Date("2024-06-23T04:46:35.152Z"), + modifiedAt: new Date("2024-05-30T10:02:42.927Z"), id: "", - createdAt: new Date("2023-09-04T12:35:29.724Z"), - modifiedAt: new Date("2024-05-27T08:53:02.662Z"), - type: "downloadables", - description: "cautiously pike true considering superior about", - selectable: true, - deletable: false, - organizationId: "", - }, - ], - medias: [ - { - id: "", - organizationId: "", - name: "", - path: "/media", - mimeType: "", - size: 824371, - storageVersion: "", - checksumEtag: "", - checksumSha256Base64: "", - checksumSha256Hex: "", - lastModifiedAt: new Date("2023-02-18T19:01:12.258Z"), - version: "", - service: "product_media", - isUploaded: true, - createdAt: new Date("2024-07-19T01:58:20.240Z"), - sizeReadable: "", - publicUrl: "https://dim-apparatus.biz/", + amountType: "free", + isArchived: false, + productId: "", + type: "recurring", + recurringInterval: "year", + legacy: true, }, ], + benefits: [], + medias: [], }, ], discount: { - duration: "repeating", + duration: "once", type: "fixed", basisPoints: 1000, - createdAt: new Date("2024-12-20T05:49:14.049Z"), - modifiedAt: new Date("2024-05-06T01:19:34.835Z"), + createdAt: new Date("2025-06-05T00:55:28.474Z"), + modifiedAt: new Date("2025-07-23T08:18:21.060Z"), id: "", metadata: { - "key": false, + "key": true, }, name: "", code: "", - startsAt: new Date("2024-10-09T16:49:56.134Z"), - endsAt: new Date("2024-03-09T11:07:39.349Z"), - maxRedemptions: 231585, - redemptionsCount: 850103, + startsAt: new Date("2025-02-27T17:57:06.028Z"), + endsAt: new Date("2024-06-22T16:03:05.887Z"), + maxRedemptions: 286287, + redemptionsCount: 676716, organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737", }, - url: "https://winding-pantyhose.biz", + url: "https://flawed-peony.org", }; ``` diff --git a/docs/models/components/checkoutlinkproduct.md b/docs/models/components/checkoutlinkproduct.md index 1a03678c..9cb1c26e 100644 --- a/docs/models/components/checkoutlinkproduct.md +++ b/docs/models/components/checkoutlinkproduct.md @@ -17,50 +17,85 @@ let value: CheckoutLinkProduct = { name: "", description: "opposite clavicle countess gastropod", recurringInterval: "day", - isRecurring: true, + recurringIntervalCount: null, + isRecurring: false, isArchived: false, organizationId: "", prices: [ { - createdAt: new Date("2025-11-25T06:14:29.943Z"), - modifiedAt: new Date("2025-11-17T10:45:38.825Z"), + createdAt: new Date("2024-02-13T16:10:48.243Z"), + modifiedAt: new Date("2025-01-21T17:16:14.204Z"), id: "", - amountType: "metered_unit", + amountType: "seat_based", isArchived: false, productId: "", - type: "recurring", - recurringInterval: "day", + type: "one_time", + recurringInterval: null, priceCurrency: "", - unitAmount: "", - capAmount: 972159, - meterId: "", - meter: { - id: "", - name: "", + seatTiers: { + tiers: [ + { + minSeats: 922152, + pricePerSeat: 415895, + }, + ], }, }, ], - benefits: [], - medias: [], + benefits: [ + { + id: "", + createdAt: new Date("2023-01-24T18:47:57.919Z"), + modifiedAt: new Date("2025-10-21T11:30:14.929Z"), + type: "github_repository", + description: + "mockingly despite aw guidance defensive once at understated admonish", + selectable: false, + deletable: true, + organizationId: "", + }, + ], + medias: [ + { + id: "", + organizationId: "", + name: "", + path: "/home/user", + mimeType: "", + size: 715587, + storageVersion: "", + checksumEtag: "", + checksumSha256Base64: "", + checksumSha256Hex: "", + lastModifiedAt: null, + version: "", + service: "product_media", + isUploaded: false, + createdAt: new Date("2025-12-06T11:20:59.061Z"), + sizeReadable: "", + publicUrl: "https://gaseous-markup.net", + }, + ], }; ``` ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `metadata` | Record | :heavy_check_mark: | N/A | -| `id` | *string* | :heavy_check_mark: | The ID of the object. | -| `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. | -| `trialInterval` | [components.TrialInterval](../../models/components/trialinterval.md) | :heavy_check_mark: | The interval unit for the trial period. | -| `trialIntervalCount` | *number* | :heavy_check_mark: | The number of interval units for the trial period. | -| `name` | *string* | :heavy_check_mark: | The name of the product. | -| `description` | *string* | :heavy_check_mark: | The description of the product. | -| `recurringInterval` | [components.SubscriptionRecurringInterval](../../models/components/subscriptionrecurringinterval.md) | :heavy_check_mark: | The recurring interval of the product. If `None`, the product is a one-time purchase.Note that the `day` and `week` values are for internal Polar staff use only. | -| `isRecurring` | *boolean* | :heavy_check_mark: | Whether the product is a subscription. | -| `isArchived` | *boolean* | :heavy_check_mark: | Whether the product is archived and no longer available. | -| `organizationId` | *string* | :heavy_check_mark: | The ID of the organization owning the product. | -| `prices` | *components.CheckoutLinkProductPrices*[] | :heavy_check_mark: | List of prices for this product. | -| `benefits` | [components.BenefitPublic](../../models/components/benefitpublic.md)[] | :heavy_check_mark: | List of benefits granted by the product. | -| `medias` | [components.ProductMediaFileRead](../../models/components/productmediafileread.md)[] | :heavy_check_mark: | List of medias associated to the product. | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `metadata` | Record | :heavy_check_mark: | N/A | +| `id` | *string* | :heavy_check_mark: | The ID of the object. | +| `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. | +| `trialInterval` | [components.TrialInterval](../../models/components/trialinterval.md) | :heavy_check_mark: | The interval unit for the trial period. | +| `trialIntervalCount` | *number* | :heavy_check_mark: | The number of interval units for the trial period. | +| `name` | *string* | :heavy_check_mark: | The name of the product. | +| `description` | *string* | :heavy_check_mark: | The description of the product. | +| `recurringInterval` | [components.SubscriptionRecurringInterval](../../models/components/subscriptionrecurringinterval.md) | :heavy_check_mark: | The recurring interval of the product. If `None`, the product is a one-time purchase. | +| `recurringIntervalCount` | *number* | :heavy_check_mark: | Number of interval units of the subscription.If this is set to 1 the charge will happen every interval (e.g. every month),if set to 2 it will be every other month, and so on. None for one-time products. | +| `isRecurring` | *boolean* | :heavy_check_mark: | Whether the product is a subscription. | +| `isArchived` | *boolean* | :heavy_check_mark: | Whether the product is archived and no longer available. | +| `organizationId` | *string* | :heavy_check_mark: | The ID of the organization owning the product. | +| `prices` | *components.CheckoutLinkProductPrices*[] | :heavy_check_mark: | List of prices for this product. | +| `benefits` | [components.BenefitPublic](../../models/components/benefitpublic.md)[] | :heavy_check_mark: | List of benefits granted by the product. | +| `medias` | [components.ProductMediaFileRead](../../models/components/productmediafileread.md)[] | :heavy_check_mark: | List of medias associated to the product. | \ No newline at end of file diff --git a/docs/models/components/checkoutproduct.md b/docs/models/components/checkoutproduct.md index ae2b2e4e..ea848b59 100644 --- a/docs/models/components/checkoutproduct.md +++ b/docs/models/components/checkoutproduct.md @@ -17,41 +17,32 @@ let value: CheckoutProduct = { description: "criminal bourgeoisie gadzooks afterwards wilted intensely make chasuble", recurringInterval: "day", + recurringIntervalCount: 397930, isRecurring: true, - isArchived: true, + isArchived: false, organizationId: "", prices: [], - benefits: [ - { - id: "", - createdAt: new Date("2023-09-04T12:35:29.724Z"), - modifiedAt: new Date("2024-05-27T08:53:02.662Z"), - type: "downloadables", - description: "cautiously pike true considering superior about", - selectable: true, - deletable: false, - organizationId: "", - }, - ], + benefits: [], medias: [], }; ``` ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *string* | :heavy_check_mark: | The ID of the object. | -| `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. | -| `trialInterval` | [components.TrialInterval](../../models/components/trialinterval.md) | :heavy_check_mark: | The interval unit for the trial period. | -| `trialIntervalCount` | *number* | :heavy_check_mark: | The number of interval units for the trial period. | -| `name` | *string* | :heavy_check_mark: | The name of the product. | -| `description` | *string* | :heavy_check_mark: | The description of the product. | -| `recurringInterval` | [components.SubscriptionRecurringInterval](../../models/components/subscriptionrecurringinterval.md) | :heavy_check_mark: | The recurring interval of the product. If `None`, the product is a one-time purchase.Note that the `day` and `week` values are for internal Polar staff use only. | -| `isRecurring` | *boolean* | :heavy_check_mark: | Whether the product is a subscription. | -| `isArchived` | *boolean* | :heavy_check_mark: | Whether the product is archived and no longer available. | -| `organizationId` | *string* | :heavy_check_mark: | The ID of the organization owning the product. | -| `prices` | *components.CheckoutProductPrices*[] | :heavy_check_mark: | List of prices for this product. | -| `benefits` | [components.BenefitPublic](../../models/components/benefitpublic.md)[] | :heavy_check_mark: | List of benefits granted by the product. | -| `medias` | [components.ProductMediaFileRead](../../models/components/productmediafileread.md)[] | :heavy_check_mark: | List of medias associated to the product. | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | The ID of the object. | +| `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. | +| `trialInterval` | [components.TrialInterval](../../models/components/trialinterval.md) | :heavy_check_mark: | The interval unit for the trial period. | +| `trialIntervalCount` | *number* | :heavy_check_mark: | The number of interval units for the trial period. | +| `name` | *string* | :heavy_check_mark: | The name of the product. | +| `description` | *string* | :heavy_check_mark: | The description of the product. | +| `recurringInterval` | [components.SubscriptionRecurringInterval](../../models/components/subscriptionrecurringinterval.md) | :heavy_check_mark: | The recurring interval of the product. If `None`, the product is a one-time purchase. | +| `recurringIntervalCount` | *number* | :heavy_check_mark: | Number of interval units of the subscription.If this is set to 1 the charge will happen every interval (e.g. every month),if set to 2 it will be every other month, and so on. None for one-time products. | +| `isRecurring` | *boolean* | :heavy_check_mark: | Whether the product is a subscription. | +| `isArchived` | *boolean* | :heavy_check_mark: | Whether the product is archived and no longer available. | +| `organizationId` | *string* | :heavy_check_mark: | The ID of the organization owning the product. | +| `prices` | *components.CheckoutProductPrices*[] | :heavy_check_mark: | List of prices for this product. | +| `benefits` | [components.BenefitPublic](../../models/components/benefitpublic.md)[] | :heavy_check_mark: | List of benefits granted by the product. | +| `medias` | [components.ProductMediaFileRead](../../models/components/productmediafileread.md)[] | :heavy_check_mark: | List of medias associated to the product. | \ No newline at end of file diff --git a/docs/models/components/checkoutpublic.md b/docs/models/components/checkoutpublic.md index 632325b7..8f83e0d8 100644 --- a/docs/models/components/checkoutpublic.md +++ b/docs/models/components/checkoutpublic.md @@ -65,24 +65,59 @@ let value: CheckoutPublic = { name: "", description: "unwieldy stupendous drat gummy mmm embody above", recurringInterval: "month", - isRecurring: true, - isArchived: false, + recurringIntervalCount: 570037, + isRecurring: false, + isArchived: true, organizationId: "", prices: [ { - createdAt: new Date("2025-11-17T07:41:12.479Z"), - modifiedAt: new Date("2024-06-19T23:33:39.565Z"), + createdAt: new Date("2024-06-19T23:33:39.565Z"), + modifiedAt: null, id: "", - amountType: "free", + amountType: "fixed", isArchived: true, productId: "", - type: "recurring", - recurringInterval: "week", + type: "one_time", + recurringInterval: "year", + priceCurrency: "", + priceAmount: 936645, legacy: true, }, ], - benefits: [], - medias: [], + benefits: [ + { + id: "", + createdAt: new Date("2023-01-24T18:47:57.919Z"), + modifiedAt: new Date("2025-10-21T11:30:14.929Z"), + type: "github_repository", + description: + "mockingly despite aw guidance defensive once at understated admonish", + selectable: false, + deletable: true, + organizationId: "", + }, + ], + medias: [ + { + id: "", + organizationId: "", + name: "", + path: "/home/user", + mimeType: "", + size: 715587, + storageVersion: "", + checksumEtag: "", + checksumSha256Base64: "", + checksumSha256Hex: "", + lastModifiedAt: null, + version: "", + service: "product_media", + isUploaded: false, + createdAt: new Date("2025-12-06T11:20:59.061Z"), + sizeReadable: "", + publicUrl: "https://gaseous-markup.net", + }, + ], }, productPrice: { createdAt: new Date("2025-09-05T05:45:42.406Z"), @@ -97,8 +132,8 @@ let value: CheckoutPublic = { seatTiers: { tiers: [ { - minSeats: 63601, - pricePerSeat: 931587, + minSeats: 922152, + pricePerSeat: 415895, }, ], }, diff --git a/docs/models/components/checkoutpublicconfirmed.md b/docs/models/components/checkoutpublicconfirmed.md index a5d3ceda..2f9d312c 100644 --- a/docs/models/components/checkoutpublicconfirmed.md +++ b/docs/models/components/checkoutpublicconfirmed.md @@ -73,43 +73,37 @@ let value: CheckoutPublicConfirmed = { name: "", description: "before longboat continually so", recurringInterval: null, - isRecurring: true, - isArchived: false, + recurringIntervalCount: null, + isRecurring: false, + isArchived: true, organizationId: "", - prices: [], - benefits: [ + prices: [ { + createdAt: new Date("2023-07-04T16:46:33.410Z"), + modifiedAt: new Date("2023-01-04T22:52:32.913Z"), id: "", - createdAt: new Date("2023-09-04T12:35:29.724Z"), - modifiedAt: new Date("2024-05-27T08:53:02.662Z"), - type: "downloadables", - description: "cautiously pike true considering superior about", - selectable: true, - deletable: false, - organizationId: "", + amountType: "free", + isArchived: true, + productId: "", + type: "recurring", + recurringInterval: "day", + legacy: true, }, ], - medias: [ + benefits: [ { id: "", + createdAt: new Date("2023-01-24T18:47:57.919Z"), + modifiedAt: new Date("2025-10-21T11:30:14.929Z"), + type: "github_repository", + description: + "mockingly despite aw guidance defensive once at understated admonish", + selectable: false, + deletable: true, organizationId: "", - name: "", - path: "/media", - mimeType: "", - size: 824371, - storageVersion: "", - checksumEtag: "", - checksumSha256Base64: "", - checksumSha256Hex: "", - lastModifiedAt: new Date("2023-02-18T19:01:12.258Z"), - version: "", - service: "product_media", - isUploaded: true, - createdAt: new Date("2024-07-19T01:58:20.240Z"), - sizeReadable: "", - publicUrl: "https://dim-apparatus.biz/", }, ], + medias: [], }, ], product: { @@ -121,50 +115,74 @@ let value: CheckoutPublicConfirmed = { name: "", description: "unwieldy stupendous drat gummy mmm embody above", recurringInterval: "month", - isRecurring: true, - isArchived: false, + recurringIntervalCount: 570037, + isRecurring: false, + isArchived: true, organizationId: "", prices: [ { - createdAt: new Date("2025-11-17T07:41:12.479Z"), - modifiedAt: new Date("2024-06-19T23:33:39.565Z"), + createdAt: new Date("2024-06-19T23:33:39.565Z"), + modifiedAt: null, id: "", - amountType: "free", + amountType: "fixed", isArchived: true, productId: "", - type: "recurring", - recurringInterval: "week", + type: "one_time", + recurringInterval: "year", + priceCurrency: "", + priceAmount: 936645, legacy: true, }, ], - benefits: [], - medias: [], + benefits: [ + { + id: "", + createdAt: new Date("2023-01-24T18:47:57.919Z"), + modifiedAt: new Date("2025-10-21T11:30:14.929Z"), + type: "github_repository", + description: + "mockingly despite aw guidance defensive once at understated admonish", + selectable: false, + deletable: true, + organizationId: "", + }, + ], + medias: [ + { + id: "", + organizationId: "", + name: "", + path: "/home/user", + mimeType: "", + size: 715587, + storageVersion: "", + checksumEtag: "", + checksumSha256Base64: "", + checksumSha256Hex: "", + lastModifiedAt: null, + version: "", + service: "product_media", + isUploaded: false, + createdAt: new Date("2025-12-06T11:20:59.061Z"), + sizeReadable: "", + publicUrl: "https://gaseous-markup.net", + }, + ], }, productPrice: { - createdAt: new Date("2024-01-18T10:53:32.209Z"), - modifiedAt: null, + createdAt: new Date("2023-10-02T03:26:57.391Z"), + modifiedAt: new Date("2025-05-12T11:24:39.493Z"), id: "", - amountType: "custom", - isArchived: true, + amountType: "fixed", + isArchived: false, productId: "", type: "recurring", - recurringInterval: "month", + recurringInterval: "day", priceCurrency: "", - minimumAmount: 224189, - maximumAmount: 329845, - presetAmount: null, + priceAmount: 403367, legacy: true, }, - discount: { - duration: "forever", - durationInMonths: 34557, - type: "fixed", - amount: 1000, - currency: "usd", - id: "", - name: "", - code: "", - }, + discount: null, organization: { createdAt: new Date("2024-03-27T03:55:24.068Z"), modifiedAt: new Date("2025-02-03T21:10:18.351Z"), diff --git a/docs/models/components/costs.md b/docs/models/components/costs.md new file mode 100644 index 00000000..48a85ef5 --- /dev/null +++ b/docs/models/components/costs.md @@ -0,0 +1,17 @@ +# Costs + + +## Supported Types + +### `number` + +```typescript +const value: number = 128403; +``` + +### `number` + +```typescript +const value: number = 1284.03; +``` + diff --git a/docs/models/components/cumulativecosts.md b/docs/models/components/cumulativecosts.md new file mode 100644 index 00000000..ee43bee5 --- /dev/null +++ b/docs/models/components/cumulativecosts.md @@ -0,0 +1,17 @@ +# CumulativeCosts + + +## Supported Types + +### `number` + +```typescript +const value: number = 128403; +``` + +### `number` + +```typescript +const value: number = 1284.03; +``` + diff --git a/docs/models/components/customerbenefitgrant.md b/docs/models/components/customerbenefitgrant.md index 295d3e85..e1f282a1 100644 --- a/docs/models/components/customerbenefitgrant.md +++ b/docs/models/components/customerbenefitgrant.md @@ -342,12 +342,12 @@ const value: components.CustomerBenefitGrantLicenseKeys = { properties: { prefix: "", expires: { - ttl: 84298, - timeframe: "year", + ttl: 93452, + timeframe: "day", }, activations: { - limit: 202982, - enableCustomerAdmin: false, + limit: 777902, + enableCustomerAdmin: true, }, limitUsage: 596467, }, diff --git a/docs/models/components/customerbenefitgrantlicensekeys.md b/docs/models/components/customerbenefitgrantlicensekeys.md index 0f163750..b77485bc 100644 --- a/docs/models/components/customerbenefitgrantlicensekeys.md +++ b/docs/models/components/customerbenefitgrantlicensekeys.md @@ -82,12 +82,12 @@ let value: CustomerBenefitGrantLicenseKeys = { properties: { prefix: "", expires: { - ttl: 84298, - timeframe: "year", + ttl: 93452, + timeframe: "day", }, activations: { - limit: 202982, - enableCustomerAdmin: false, + limit: 777902, + enableCustomerAdmin: true, }, limitUsage: 596467, }, diff --git a/docs/models/components/customerorder.md b/docs/models/components/customerorder.md index 53a530a1..d4de9b02 100644 --- a/docs/models/components/customerorder.md +++ b/docs/models/components/customerorder.md @@ -31,36 +31,24 @@ let value: CustomerOrder = { customerId: "", productId: "", discountId: "", - subscriptionId: "", - checkoutId: null, + subscriptionId: null, + checkoutId: "", userId: "", product: { id: "", - createdAt: new Date("2023-10-04T14:18:57.229Z"), - modifiedAt: new Date("2024-05-31T12:38:58.045Z"), - trialInterval: "day", - trialIntervalCount: null, + createdAt: new Date("2024-05-31T12:38:58.045Z"), + modifiedAt: new Date("2023-07-02T22:48:54.737Z"), + trialInterval: null, + trialIntervalCount: 57218, name: "", - description: "emotional dearly joyously", - recurringInterval: "week", - isRecurring: false, - isArchived: true, + description: + "arraign but insistent provided apud um furiously palate devise yowza", + recurringInterval: "day", + recurringIntervalCount: 622455, + isRecurring: true, + isArchived: false, organizationId: "", - prices: [ - { - createdAt: new Date("2023-03-18T03:28:52.944Z"), - modifiedAt: new Date("2023-10-09T19:42:21.526Z"), - id: "", - amountType: "fixed", - isArchived: false, - productId: "", - type: "recurring", - recurringInterval: "month", - priceCurrency: "", - priceAmount: 556329, - legacy: true, - }, - ], + prices: [], benefits: [], medias: [], organization: { @@ -98,30 +86,43 @@ let value: CustomerOrder = { }, }, subscription: { - createdAt: new Date("2024-03-06T19:03:50.234Z"), - modifiedAt: new Date("2024-09-01T07:31:10.688Z"), + createdAt: new Date("2024-07-13T22:13:37.550Z"), + modifiedAt: new Date("2023-07-08T08:21:02.517Z"), id: "", amount: 10000, currency: "usd", - recurringInterval: "day", - status: "active", - currentPeriodStart: new Date("2025-07-01T15:38:18.028Z"), - currentPeriodEnd: new Date("2024-04-02T15:56:55.286Z"), - trialStart: new Date("2023-03-23T00:47:15.496Z"), - trialEnd: new Date("2023-06-22T17:34:45.530Z"), - cancelAtPeriodEnd: true, - canceledAt: new Date("2023-01-30T05:51:07.887Z"), - startedAt: null, - endsAt: new Date("2025-05-27T19:20:07.033Z"), - endedAt: new Date("2023-12-07T08:15:27.487Z"), + recurringInterval: "week", + recurringIntervalCount: 893964, + status: "trialing", + currentPeriodStart: new Date("2024-10-10T08:15:03.005Z"), + currentPeriodEnd: new Date("2025-04-25T19:12:17.639Z"), + trialStart: new Date("2024-07-25T01:03:46.818Z"), + trialEnd: new Date("2025-09-06T02:36:50.793Z"), + cancelAtPeriodEnd: false, + canceledAt: new Date("2024-02-28T03:03:35.134Z"), + startedAt: new Date("2023-12-12T17:15:19.456Z"), + endsAt: new Date("2025-05-22T22:43:11.961Z"), + endedAt: new Date("2025-06-01T22:56:15.909Z"), customerId: "", productId: "", discountId: "", checkoutId: "", - customerCancellationReason: "switched_service", + customerCancellationReason: null, customerCancellationComment: "", }, - items: [], + items: [ + { + createdAt: new Date("2024-02-10T21:00:41.494Z"), + modifiedAt: new Date("2024-06-05T21:57:00.887Z"), + id: "", + label: "Pro Plan", + amount: 10000, + taxAmount: 720, + proration: false, + productPriceId: "", + }, + ], + description: "Pro Plan", }; ``` @@ -149,6 +150,7 @@ let value: CustomerOrder = { | `billingAddress` | [components.Address](../../models/components/address.md) | :heavy_check_mark: | N/A | | | `invoiceNumber` | *string* | :heavy_check_mark: | The invoice number associated with this order. | | | `isInvoiceGenerated` | *boolean* | :heavy_check_mark: | Whether an invoice has been generated for this order. | | +| `seats` | *number* | :heavy_minus_sign: | Number of seats purchased (for seat-based one-time orders). | | | `customerId` | *string* | :heavy_check_mark: | N/A | | | `productId` | *string* | :heavy_check_mark: | N/A | | | `discountId` | *string* | :heavy_check_mark: | N/A | | @@ -158,4 +160,5 @@ let value: CustomerOrder = { | `product` | [components.CustomerOrderProduct](../../models/components/customerorderproduct.md) | :heavy_check_mark: | N/A | | | `subscription` | [components.CustomerOrderSubscription](../../models/components/customerordersubscription.md) | :heavy_check_mark: | N/A | | | `items` | [components.OrderItemSchema](../../models/components/orderitemschema.md)[] | :heavy_check_mark: | Line items composing the order. | | +| `description` | *string* | :heavy_check_mark: | A summary description of the order. | Pro Plan | | `nextPaymentAttemptAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | When the next payment retry is scheduled | | \ No newline at end of file diff --git a/docs/models/components/customerorderproduct.md b/docs/models/components/customerorderproduct.md index 90ada3e3..cebefd4e 100644 --- a/docs/models/components/customerorderproduct.md +++ b/docs/models/components/customerorderproduct.md @@ -14,22 +14,28 @@ let value: CustomerOrderProduct = { name: "", description: "merry queasily knitting sparkling whereas urgently", recurringInterval: "month", + recurringIntervalCount: null, isRecurring: true, isArchived: true, organizationId: "", - prices: [], - benefits: [ + prices: [ { + createdAt: new Date("2023-08-11T14:38:39.231Z"), + modifiedAt: new Date("2025-05-24T17:30:19.665Z"), id: "", - createdAt: new Date("2023-09-04T12:35:29.724Z"), - modifiedAt: new Date("2024-05-27T08:53:02.662Z"), - type: "downloadables", - description: "cautiously pike true considering superior about", - selectable: true, - deletable: false, - organizationId: "", + amountType: "custom", + isArchived: false, + productId: "", + type: "recurring", + recurringInterval: "year", + priceCurrency: "", + minimumAmount: 582398, + maximumAmount: 990385, + presetAmount: 658247, + legacy: true, }, ], + benefits: [], medias: [], organization: { createdAt: new Date("2024-03-27T03:55:24.068Z"), @@ -69,20 +75,21 @@ let value: CustomerOrderProduct = { ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *string* | :heavy_check_mark: | The ID of the object. | -| `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. | -| `trialInterval` | [components.TrialInterval](../../models/components/trialinterval.md) | :heavy_check_mark: | The interval unit for the trial period. | -| `trialIntervalCount` | *number* | :heavy_check_mark: | The number of interval units for the trial period. | -| `name` | *string* | :heavy_check_mark: | The name of the product. | -| `description` | *string* | :heavy_check_mark: | The description of the product. | -| `recurringInterval` | [components.SubscriptionRecurringInterval](../../models/components/subscriptionrecurringinterval.md) | :heavy_check_mark: | The recurring interval of the product. If `None`, the product is a one-time purchase.Note that the `day` and `week` values are for internal Polar staff use only. | -| `isRecurring` | *boolean* | :heavy_check_mark: | Whether the product is a subscription. | -| `isArchived` | *boolean* | :heavy_check_mark: | Whether the product is archived and no longer available. | -| `organizationId` | *string* | :heavy_check_mark: | The ID of the organization owning the product. | -| `prices` | *components.CustomerOrderProductPrices*[] | :heavy_check_mark: | List of prices for this product. | -| `benefits` | [components.BenefitPublic](../../models/components/benefitpublic.md)[] | :heavy_check_mark: | List of benefits granted by the product. | -| `medias` | [components.ProductMediaFileRead](../../models/components/productmediafileread.md)[] | :heavy_check_mark: | List of medias associated to the product. | -| `organization` | [components.Organization](../../models/components/organization.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | The ID of the object. | +| `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. | +| `trialInterval` | [components.TrialInterval](../../models/components/trialinterval.md) | :heavy_check_mark: | The interval unit for the trial period. | +| `trialIntervalCount` | *number* | :heavy_check_mark: | The number of interval units for the trial period. | +| `name` | *string* | :heavy_check_mark: | The name of the product. | +| `description` | *string* | :heavy_check_mark: | The description of the product. | +| `recurringInterval` | [components.SubscriptionRecurringInterval](../../models/components/subscriptionrecurringinterval.md) | :heavy_check_mark: | The recurring interval of the product. If `None`, the product is a one-time purchase. | +| `recurringIntervalCount` | *number* | :heavy_check_mark: | Number of interval units of the subscription.If this is set to 1 the charge will happen every interval (e.g. every month),if set to 2 it will be every other month, and so on. None for one-time products. | +| `isRecurring` | *boolean* | :heavy_check_mark: | Whether the product is a subscription. | +| `isArchived` | *boolean* | :heavy_check_mark: | Whether the product is archived and no longer available. | +| `organizationId` | *string* | :heavy_check_mark: | The ID of the organization owning the product. | +| `prices` | *components.CustomerOrderProductPrices*[] | :heavy_check_mark: | List of prices for this product. | +| `benefits` | [components.BenefitPublic](../../models/components/benefitpublic.md)[] | :heavy_check_mark: | List of benefits granted by the product. | +| `medias` | [components.ProductMediaFileRead](../../models/components/productmediafileread.md)[] | :heavy_check_mark: | List of medias associated to the product. | +| `organization` | [components.Organization](../../models/components/organization.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/customerordersubscription.md b/docs/models/components/customerordersubscription.md index b8276756..a152c303 100644 --- a/docs/models/components/customerordersubscription.md +++ b/docs/models/components/customerordersubscription.md @@ -12,9 +12,10 @@ let value: CustomerOrderSubscription = { amount: 10000, currency: "usd", recurringInterval: "day", + recurringIntervalCount: 445567, status: "active", - currentPeriodStart: new Date("2024-08-02T09:07:00.152Z"), - currentPeriodEnd: new Date("2023-04-07T23:21:33.368Z"), + currentPeriodStart: new Date("2023-05-06T08:21:28.803Z"), + currentPeriodEnd: null, trialStart: new Date("2024-11-21T15:31:03.002Z"), trialEnd: new Date("2024-11-07T21:48:28.573Z"), cancelAtPeriodEnd: true, @@ -33,27 +34,28 @@ let value: CustomerOrderSubscription = { ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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. | | -| `amount` | *number* | :heavy_check_mark: | The amount of the subscription. | 10000 | -| `currency` | *string* | :heavy_check_mark: | The currency of the subscription. | usd | -| `recurringInterval` | [components.SubscriptionRecurringInterval](../../models/components/subscriptionrecurringinterval.md) | :heavy_check_mark: | N/A | | -| `status` | [components.SubscriptionStatus](../../models/components/subscriptionstatus.md) | :heavy_check_mark: | N/A | | -| `currentPeriodStart` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The start timestamp of the current billing period. | | -| `currentPeriodEnd` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The end timestamp of the current billing period. | | -| `trialStart` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The start timestamp of the trial period, if any. | | -| `trialEnd` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The end timestamp of the trial period, if any. | | -| `cancelAtPeriodEnd` | *boolean* | :heavy_check_mark: | Whether the subscription will be canceled at the end of the current period. | | -| `canceledAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The timestamp when the subscription was canceled. The subscription might still be active if `cancel_at_period_end` is `true`. | | -| `startedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The timestamp when the subscription started. | | -| `endsAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The timestamp when the subscription will end. | | -| `endedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The timestamp when the subscription ended. | | -| `customerId` | *string* | :heavy_check_mark: | The ID of the subscribed customer. | | -| `productId` | *string* | :heavy_check_mark: | The ID of the subscribed product. | | -| `discountId` | *string* | :heavy_check_mark: | The ID of the applied discount, if any. | | -| `checkoutId` | *string* | :heavy_check_mark: | N/A | | -| `customerCancellationReason` | [components.CustomerCancellationReason](../../models/components/customercancellationreason.md) | :heavy_check_mark: | N/A | | -| `customerCancellationComment` | *string* | :heavy_check_mark: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `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. | | +| `amount` | *number* | :heavy_check_mark: | The amount of the subscription. | 10000 | +| `currency` | *string* | :heavy_check_mark: | The currency of the subscription. | usd | +| `recurringInterval` | [components.SubscriptionRecurringInterval](../../models/components/subscriptionrecurringinterval.md) | :heavy_check_mark: | N/A | | +| `recurringIntervalCount` | *number* | :heavy_check_mark: | Number of interval units of the subscription.If this is set to 1 the charge will happen every interval (e.g. every month),if set to 2 it will be every other month, and so on. | | +| `status` | [components.SubscriptionStatus](../../models/components/subscriptionstatus.md) | :heavy_check_mark: | N/A | | +| `currentPeriodStart` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The start timestamp of the current billing period. | | +| `currentPeriodEnd` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The end timestamp of the current billing period. | | +| `trialStart` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The start timestamp of the trial period, if any. | | +| `trialEnd` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The end timestamp of the trial period, if any. | | +| `cancelAtPeriodEnd` | *boolean* | :heavy_check_mark: | Whether the subscription will be canceled at the end of the current period. | | +| `canceledAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The timestamp when the subscription was canceled. The subscription might still be active if `cancel_at_period_end` is `true`. | | +| `startedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The timestamp when the subscription started. | | +| `endsAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The timestamp when the subscription will end. | | +| `endedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The timestamp when the subscription ended. | | +| `customerId` | *string* | :heavy_check_mark: | The ID of the subscribed customer. | | +| `productId` | *string* | :heavy_check_mark: | The ID of the subscribed product. | | +| `discountId` | *string* | :heavy_check_mark: | The ID of the applied discount, if any. | | +| `checkoutId` | *string* | :heavy_check_mark: | N/A | | +| `customerCancellationReason` | [components.CustomerCancellationReason](../../models/components/customercancellationreason.md) | :heavy_check_mark: | N/A | | +| `customerCancellationComment` | *string* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/customerorganization.md b/docs/models/components/customerorganization.md index 7a2a1b93..b194b273 100644 --- a/docs/models/components/customerorganization.md +++ b/docs/models/components/customerorganization.md @@ -51,44 +51,25 @@ let value: CustomerOrganization = { name: "", description: null, recurringInterval: "month", + recurringIntervalCount: 488155, isRecurring: false, isArchived: true, organizationId: "", prices: [ { - createdAt: new Date("2023-01-25T03:51:25.596Z"), - modifiedAt: new Date("2025-12-05T08:57:02.731Z"), + createdAt: new Date("2025-12-05T08:57:02.731Z"), + modifiedAt: new Date("2025-01-03T02:00:53.913Z"), id: "", amountType: "free", - isArchived: false, + isArchived: true, productId: "", type: "recurring", - recurringInterval: "month", + recurringInterval: "year", legacy: true, }, ], benefits: [], - medias: [ - { - id: "", - organizationId: "", - name: "", - path: "/media", - mimeType: "", - size: 824371, - storageVersion: "", - checksumEtag: "", - checksumSha256Base64: "", - checksumSha256Hex: "", - lastModifiedAt: new Date("2023-02-18T19:01:12.258Z"), - version: "", - service: "product_media", - isUploaded: true, - createdAt: new Date("2024-07-19T01:58:20.240Z"), - sizeReadable: "", - publicUrl: "https://dim-apparatus.biz/", - }, - ], + medias: [], }, ], }; diff --git a/docs/models/components/customerproduct.md b/docs/models/components/customerproduct.md index 68a736a3..467d8389 100644 --- a/docs/models/components/customerproduct.md +++ b/docs/models/components/customerproduct.md @@ -16,6 +16,7 @@ let value: CustomerProduct = { name: "", description: "wherever relative who above speedily", recurringInterval: "day", + recurringIntervalCount: 940355, isRecurring: true, isArchived: false, organizationId: "", @@ -23,12 +24,13 @@ let value: CustomerProduct = { benefits: [ { id: "", - createdAt: new Date("2023-09-04T12:35:29.724Z"), - modifiedAt: new Date("2024-05-27T08:53:02.662Z"), - type: "downloadables", - description: "cautiously pike true considering superior about", - selectable: true, - deletable: false, + createdAt: new Date("2023-01-24T18:47:57.919Z"), + modifiedAt: new Date("2025-10-21T11:30:14.929Z"), + type: "github_repository", + description: + "mockingly despite aw guidance defensive once at understated admonish", + selectable: false, + deletable: true, organizationId: "", }, ], @@ -38,19 +40,20 @@ let value: CustomerProduct = { ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *string* | :heavy_check_mark: | The ID of the object. | -| `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. | -| `trialInterval` | [components.TrialInterval](../../models/components/trialinterval.md) | :heavy_check_mark: | The interval unit for the trial period. | -| `trialIntervalCount` | *number* | :heavy_check_mark: | The number of interval units for the trial period. | -| `name` | *string* | :heavy_check_mark: | The name of the product. | -| `description` | *string* | :heavy_check_mark: | The description of the product. | -| `recurringInterval` | [components.SubscriptionRecurringInterval](../../models/components/subscriptionrecurringinterval.md) | :heavy_check_mark: | The recurring interval of the product. If `None`, the product is a one-time purchase.Note that the `day` and `week` values are for internal Polar staff use only. | -| `isRecurring` | *boolean* | :heavy_check_mark: | Whether the product is a subscription. | -| `isArchived` | *boolean* | :heavy_check_mark: | Whether the product is archived and no longer available. | -| `organizationId` | *string* | :heavy_check_mark: | The ID of the organization owning the product. | -| `prices` | *components.CustomerProductPrices*[] | :heavy_check_mark: | List of available prices for this product. | -| `benefits` | [components.BenefitPublic](../../models/components/benefitpublic.md)[] | :heavy_check_mark: | The benefits granted by the product. | -| `medias` | [components.ProductMediaFileRead](../../models/components/productmediafileread.md)[] | :heavy_check_mark: | The medias associated to the product. | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | The ID of the object. | +| `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. | +| `trialInterval` | [components.TrialInterval](../../models/components/trialinterval.md) | :heavy_check_mark: | The interval unit for the trial period. | +| `trialIntervalCount` | *number* | :heavy_check_mark: | The number of interval units for the trial period. | +| `name` | *string* | :heavy_check_mark: | The name of the product. | +| `description` | *string* | :heavy_check_mark: | The description of the product. | +| `recurringInterval` | [components.SubscriptionRecurringInterval](../../models/components/subscriptionrecurringinterval.md) | :heavy_check_mark: | The recurring interval of the product. If `None`, the product is a one-time purchase. | +| `recurringIntervalCount` | *number* | :heavy_check_mark: | Number of interval units of the subscription.If this is set to 1 the charge will happen every interval (e.g. every month),if set to 2 it will be every other month, and so on. None for one-time products. | +| `isRecurring` | *boolean* | :heavy_check_mark: | Whether the product is a subscription. | +| `isArchived` | *boolean* | :heavy_check_mark: | Whether the product is archived and no longer available. | +| `organizationId` | *string* | :heavy_check_mark: | The ID of the organization owning the product. | +| `prices` | *components.CustomerProductPrices*[] | :heavy_check_mark: | List of available prices for this product. | +| `benefits` | [components.BenefitPublic](../../models/components/benefitpublic.md)[] | :heavy_check_mark: | The benefits granted by the product. | +| `medias` | [components.ProductMediaFileRead](../../models/components/productmediafileread.md)[] | :heavy_check_mark: | The medias associated to the product. | \ No newline at end of file diff --git a/docs/models/components/customerseat.md b/docs/models/components/customerseat.md index 43d8d8cf..65f212ca 100644 --- a/docs/models/components/customerseat.md +++ b/docs/models/components/customerseat.md @@ -9,8 +9,7 @@ let value: CustomerSeat = { createdAt: new Date("2024-02-11T15:22:33.873Z"), modifiedAt: new Date("2025-10-09T03:50:35.674Z"), id: "1f465dbd-351b-4777-90e1-11283ba41d87", - subscriptionId: "84cf5828-269d-414c-a66f-94b33e2c4fc9", - status: "revoked", + status: "claimed", }; ``` @@ -21,7 +20,8 @@ let value: CustomerSeat = { | `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 seat ID | -| `subscriptionId` | *string* | :heavy_check_mark: | The subscription ID | +| `subscriptionId` | *string* | :heavy_minus_sign: | The subscription ID (for recurring seats) | +| `orderId` | *string* | :heavy_minus_sign: | The order ID (for one-time purchase seats) | | `status` | [components.SeatStatus](../../models/components/seatstatus.md) | :heavy_check_mark: | N/A | | `customerId` | *string* | :heavy_minus_sign: | The assigned customer ID | | `customerEmail` | *string* | :heavy_minus_sign: | The assigned customer email | diff --git a/docs/models/components/customersubscription.md b/docs/models/components/customersubscription.md index 7576d34d..a294d0df 100644 --- a/docs/models/components/customersubscription.md +++ b/docs/models/components/customersubscription.md @@ -12,9 +12,10 @@ let value: CustomerSubscription = { amount: 10000, currency: "usd", recurringInterval: "year", - status: "incomplete", - currentPeriodStart: new Date("2024-05-18T03:51:27.815Z"), - currentPeriodEnd: new Date("2023-03-10T15:25:48.651Z"), + recurringIntervalCount: 135993, + status: "active", + currentPeriodStart: new Date("2024-09-05T20:42:48.893Z"), + currentPeriodEnd: null, trialStart: new Date("2025-09-11T13:49:33.195Z"), trialEnd: null, cancelAtPeriodEnd: false, @@ -37,6 +38,7 @@ let value: CustomerSubscription = { name: "", description: "unabashedly regarding lest", recurringInterval: "day", + recurringIntervalCount: 167145, isRecurring: true, isArchived: true, organizationId: "", @@ -77,39 +79,72 @@ let value: CustomerSubscription = { }, }, }, - prices: [], - meters: [], - isPolarManaged: false, + prices: [ + { + createdAt: new Date("2025-04-18T17:00:34.331Z"), + modifiedAt: null, + id: "", + amountType: "custom", + isArchived: true, + productId: "", + type: "one_time", + recurringInterval: "day", + priceCurrency: "", + minimumAmount: 896239, + maximumAmount: 111758, + presetAmount: 654243, + legacy: true, + }, + ], + meters: [ + { + createdAt: new Date("2024-08-15T16:20:35.531Z"), + modifiedAt: new Date("2024-02-06T21:50:33.915Z"), + id: "", + consumedUnits: 25, + creditedUnits: 100, + amount: 0, + meterId: "d498a884-e2cd-4d3e-8002-f536468a8b22", + meter: { + createdAt: new Date("2024-07-29T00:04:50.391Z"), + modifiedAt: new Date("2025-07-04T05:18:40.056Z"), + id: "", + name: "", + }, + }, + ], + isPolarManaged: true, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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. | | -| `amount` | *number* | :heavy_check_mark: | The amount of the subscription. | 10000 | -| `currency` | *string* | :heavy_check_mark: | The currency of the subscription. | usd | -| `recurringInterval` | [components.SubscriptionRecurringInterval](../../models/components/subscriptionrecurringinterval.md) | :heavy_check_mark: | N/A | | -| `status` | [components.SubscriptionStatus](../../models/components/subscriptionstatus.md) | :heavy_check_mark: | N/A | | -| `currentPeriodStart` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The start timestamp of the current billing period. | | -| `currentPeriodEnd` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The end timestamp of the current billing period. | | -| `trialStart` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The start timestamp of the trial period, if any. | | -| `trialEnd` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The end timestamp of the trial period, if any. | | -| `cancelAtPeriodEnd` | *boolean* | :heavy_check_mark: | Whether the subscription will be canceled at the end of the current period. | | -| `canceledAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The timestamp when the subscription was canceled. The subscription might still be active if `cancel_at_period_end` is `true`. | | -| `startedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The timestamp when the subscription started. | | -| `endsAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The timestamp when the subscription will end. | | -| `endedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The timestamp when the subscription ended. | | -| `customerId` | *string* | :heavy_check_mark: | The ID of the subscribed customer. | | -| `productId` | *string* | :heavy_check_mark: | The ID of the subscribed product. | | -| `discountId` | *string* | :heavy_check_mark: | The ID of the applied discount, if any. | | -| `checkoutId` | *string* | :heavy_check_mark: | N/A | | -| `customerCancellationReason` | [components.CustomerCancellationReason](../../models/components/customercancellationreason.md) | :heavy_check_mark: | N/A | | -| `customerCancellationComment` | *string* | :heavy_check_mark: | N/A | | -| `product` | [components.CustomerSubscriptionProduct](../../models/components/customersubscriptionproduct.md) | :heavy_check_mark: | N/A | | -| `prices` | *components.CustomerSubscriptionPrices*[] | :heavy_check_mark: | List of enabled prices for the subscription. | | -| `meters` | [components.CustomerSubscriptionMeter](../../models/components/customersubscriptionmeter.md)[] | :heavy_check_mark: | List of meters associated with the subscription. | | -| `isPolarManaged` | *boolean* | :heavy_check_mark: | Whether the subscription is managed by Polar. | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `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. | | +| `amount` | *number* | :heavy_check_mark: | The amount of the subscription. | 10000 | +| `currency` | *string* | :heavy_check_mark: | The currency of the subscription. | usd | +| `recurringInterval` | [components.SubscriptionRecurringInterval](../../models/components/subscriptionrecurringinterval.md) | :heavy_check_mark: | N/A | | +| `recurringIntervalCount` | *number* | :heavy_check_mark: | Number of interval units of the subscription.If this is set to 1 the charge will happen every interval (e.g. every month),if set to 2 it will be every other month, and so on. | | +| `status` | [components.SubscriptionStatus](../../models/components/subscriptionstatus.md) | :heavy_check_mark: | N/A | | +| `currentPeriodStart` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The start timestamp of the current billing period. | | +| `currentPeriodEnd` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The end timestamp of the current billing period. | | +| `trialStart` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The start timestamp of the trial period, if any. | | +| `trialEnd` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The end timestamp of the trial period, if any. | | +| `cancelAtPeriodEnd` | *boolean* | :heavy_check_mark: | Whether the subscription will be canceled at the end of the current period. | | +| `canceledAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The timestamp when the subscription was canceled. The subscription might still be active if `cancel_at_period_end` is `true`. | | +| `startedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The timestamp when the subscription started. | | +| `endsAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The timestamp when the subscription will end. | | +| `endedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The timestamp when the subscription ended. | | +| `customerId` | *string* | :heavy_check_mark: | The ID of the subscribed customer. | | +| `productId` | *string* | :heavy_check_mark: | The ID of the subscribed product. | | +| `discountId` | *string* | :heavy_check_mark: | The ID of the applied discount, if any. | | +| `checkoutId` | *string* | :heavy_check_mark: | N/A | | +| `customerCancellationReason` | [components.CustomerCancellationReason](../../models/components/customercancellationreason.md) | :heavy_check_mark: | N/A | | +| `customerCancellationComment` | *string* | :heavy_check_mark: | N/A | | +| `product` | [components.CustomerSubscriptionProduct](../../models/components/customersubscriptionproduct.md) | :heavy_check_mark: | N/A | | +| `prices` | *components.CustomerSubscriptionPrices*[] | :heavy_check_mark: | List of enabled prices for the subscription. | | +| `meters` | [components.CustomerSubscriptionMeter](../../models/components/customersubscriptionmeter.md)[] | :heavy_check_mark: | List of meters associated with the subscription. | | +| `isPolarManaged` | *boolean* | :heavy_check_mark: | Whether the subscription is managed by Polar. | | \ No newline at end of file diff --git a/docs/models/components/customersubscriptionmeter.md b/docs/models/components/customersubscriptionmeter.md index 52c837c3..7952fac8 100644 --- a/docs/models/components/customersubscriptionmeter.md +++ b/docs/models/components/customersubscriptionmeter.md @@ -14,8 +14,8 @@ let value: CustomerSubscriptionMeter = { amount: 0, meterId: "d498a884-e2cd-4d3e-8002-f536468a8b22", meter: { - createdAt: new Date("2023-05-13T23:55:31.561Z"), - modifiedAt: new Date("2023-08-11T07:10:38.626Z"), + createdAt: new Date("2024-07-29T00:04:50.391Z"), + modifiedAt: new Date("2025-07-04T05:18:40.056Z"), id: "", name: "", }, diff --git a/docs/models/components/customersubscriptionproduct.md b/docs/models/components/customersubscriptionproduct.md index f1a36940..81b7b103 100644 --- a/docs/models/components/customersubscriptionproduct.md +++ b/docs/models/components/customersubscriptionproduct.md @@ -14,35 +14,21 @@ let value: CustomerSubscriptionProduct = { name: "", description: "collaboration engage swelter lest", recurringInterval: null, + recurringIntervalCount: 862436, isRecurring: false, - isArchived: false, + isArchived: true, organizationId: "", - prices: [ - { - createdAt: new Date("2024-11-16T07:36:10.041Z"), - modifiedAt: new Date("2023-07-02T11:22:27.018Z"), - id: "", - amountType: "custom", - isArchived: true, - productId: "", - type: "recurring", - recurringInterval: "day", - priceCurrency: "", - minimumAmount: 768955, - maximumAmount: 790704, - presetAmount: 253957, - legacy: true, - }, - ], + prices: [], benefits: [ { id: "", - createdAt: new Date("2023-09-04T12:35:29.724Z"), - modifiedAt: new Date("2024-05-27T08:53:02.662Z"), - type: "downloadables", - description: "cautiously pike true considering superior about", - selectable: true, - deletable: false, + createdAt: new Date("2023-01-24T18:47:57.919Z"), + modifiedAt: new Date("2025-10-21T11:30:14.929Z"), + type: "github_repository", + description: + "mockingly despite aw guidance defensive once at understated admonish", + selectable: false, + deletable: true, organizationId: "", }, ], @@ -85,20 +71,21 @@ let value: CustomerSubscriptionProduct = { ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *string* | :heavy_check_mark: | The ID of the object. | -| `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. | -| `trialInterval` | [components.TrialInterval](../../models/components/trialinterval.md) | :heavy_check_mark: | The interval unit for the trial period. | -| `trialIntervalCount` | *number* | :heavy_check_mark: | The number of interval units for the trial period. | -| `name` | *string* | :heavy_check_mark: | The name of the product. | -| `description` | *string* | :heavy_check_mark: | The description of the product. | -| `recurringInterval` | [components.SubscriptionRecurringInterval](../../models/components/subscriptionrecurringinterval.md) | :heavy_check_mark: | The recurring interval of the product. If `None`, the product is a one-time purchase.Note that the `day` and `week` values are for internal Polar staff use only. | -| `isRecurring` | *boolean* | :heavy_check_mark: | Whether the product is a subscription. | -| `isArchived` | *boolean* | :heavy_check_mark: | Whether the product is archived and no longer available. | -| `organizationId` | *string* | :heavy_check_mark: | The ID of the organization owning the product. | -| `prices` | *components.CustomerSubscriptionProductPrices*[] | :heavy_check_mark: | List of prices for this product. | -| `benefits` | [components.BenefitPublic](../../models/components/benefitpublic.md)[] | :heavy_check_mark: | List of benefits granted by the product. | -| `medias` | [components.ProductMediaFileRead](../../models/components/productmediafileread.md)[] | :heavy_check_mark: | List of medias associated to the product. | -| `organization` | [components.Organization](../../models/components/organization.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | The ID of the object. | +| `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. | +| `trialInterval` | [components.TrialInterval](../../models/components/trialinterval.md) | :heavy_check_mark: | The interval unit for the trial period. | +| `trialIntervalCount` | *number* | :heavy_check_mark: | The number of interval units for the trial period. | +| `name` | *string* | :heavy_check_mark: | The name of the product. | +| `description` | *string* | :heavy_check_mark: | The description of the product. | +| `recurringInterval` | [components.SubscriptionRecurringInterval](../../models/components/subscriptionrecurringinterval.md) | :heavy_check_mark: | The recurring interval of the product. If `None`, the product is a one-time purchase. | +| `recurringIntervalCount` | *number* | :heavy_check_mark: | Number of interval units of the subscription.If this is set to 1 the charge will happen every interval (e.g. every month),if set to 2 it will be every other month, and so on. None for one-time products. | +| `isRecurring` | *boolean* | :heavy_check_mark: | Whether the product is a subscription. | +| `isArchived` | *boolean* | :heavy_check_mark: | Whether the product is archived and no longer available. | +| `organizationId` | *string* | :heavy_check_mark: | The ID of the organization owning the product. | +| `prices` | *components.CustomerSubscriptionProductPrices*[] | :heavy_check_mark: | List of prices for this product. | +| `benefits` | [components.BenefitPublic](../../models/components/benefitpublic.md)[] | :heavy_check_mark: | List of benefits granted by the product. | +| `medias` | [components.ProductMediaFileRead](../../models/components/productmediafileread.md)[] | :heavy_check_mark: | List of medias associated to the product. | +| `organization` | [components.Organization](../../models/components/organization.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/discount.md b/docs/models/components/discount.md index 304c863c..74509e3e 100644 --- a/docs/models/components/discount.md +++ b/docs/models/components/discount.md @@ -88,8 +88,9 @@ const value: components.DiscountPercentageOnceForeverDuration = { description: "shinny psst cram usefully buttery aggressive bestride conservative sympathetically", recurringInterval: "day", - isRecurring: false, - isArchived: true, + recurringIntervalCount: 432858, + isRecurring: true, + isArchived: false, organizationId: "", }, ], diff --git a/docs/models/components/discountpercentageonceforeverduration.md b/docs/models/components/discountpercentageonceforeverduration.md index e0a1bd98..0e3bab7d 100644 --- a/docs/models/components/discountpercentageonceforeverduration.md +++ b/docs/models/components/discountpercentageonceforeverduration.md @@ -38,8 +38,9 @@ let value: DiscountPercentageOnceForeverDuration = { description: "shinny psst cram usefully buttery aggressive bestride conservative sympathetically", recurringInterval: "day", - isRecurring: false, - isArchived: true, + recurringIntervalCount: 432858, + isRecurring: true, + isArchived: false, organizationId: "", }, ], diff --git a/docs/models/components/discountproduct.md b/docs/models/components/discountproduct.md index 73659e15..92c9f44c 100644 --- a/docs/models/components/discountproduct.md +++ b/docs/models/components/discountproduct.md @@ -20,25 +20,27 @@ let value: DiscountProduct = { description: "proud case lampoon table culminate border dulcimer energetically how hype", recurringInterval: "day", + recurringIntervalCount: 517182, isRecurring: true, - isArchived: false, + isArchived: true, organizationId: "", }; ``` ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `metadata` | Record | :heavy_check_mark: | N/A | -| `id` | *string* | :heavy_check_mark: | The ID of the object. | -| `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. | -| `trialInterval` | [components.TrialInterval](../../models/components/trialinterval.md) | :heavy_check_mark: | The interval unit for the trial period. | -| `trialIntervalCount` | *number* | :heavy_check_mark: | The number of interval units for the trial period. | -| `name` | *string* | :heavy_check_mark: | The name of the product. | -| `description` | *string* | :heavy_check_mark: | The description of the product. | -| `recurringInterval` | [components.SubscriptionRecurringInterval](../../models/components/subscriptionrecurringinterval.md) | :heavy_check_mark: | The recurring interval of the product. If `None`, the product is a one-time purchase.Note that the `day` and `week` values are for internal Polar staff use only. | -| `isRecurring` | *boolean* | :heavy_check_mark: | Whether the product is a subscription. | -| `isArchived` | *boolean* | :heavy_check_mark: | Whether the product is archived and no longer available. | -| `organizationId` | *string* | :heavy_check_mark: | The ID of the organization owning the product. | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `metadata` | Record | :heavy_check_mark: | N/A | +| `id` | *string* | :heavy_check_mark: | The ID of the object. | +| `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. | +| `trialInterval` | [components.TrialInterval](../../models/components/trialinterval.md) | :heavy_check_mark: | The interval unit for the trial period. | +| `trialIntervalCount` | *number* | :heavy_check_mark: | The number of interval units for the trial period. | +| `name` | *string* | :heavy_check_mark: | The name of the product. | +| `description` | *string* | :heavy_check_mark: | The description of the product. | +| `recurringInterval` | [components.SubscriptionRecurringInterval](../../models/components/subscriptionrecurringinterval.md) | :heavy_check_mark: | The recurring interval of the product. If `None`, the product is a one-time purchase. | +| `recurringIntervalCount` | *number* | :heavy_check_mark: | Number of interval units of the subscription.If this is set to 1 the charge will happen every interval (e.g. every month),if set to 2 it will be every other month, and so on. None for one-time products. | +| `isRecurring` | *boolean* | :heavy_check_mark: | Whether the product is a subscription. | +| `isArchived` | *boolean* | :heavy_check_mark: | Whether the product is archived and no longer available. | +| `organizationId` | *string* | :heavy_check_mark: | The ID of the organization owning the product. | \ No newline at end of file diff --git a/docs/models/components/listresourcecheckoutlink.md b/docs/models/components/listresourcecheckoutlink.md index f3a66b2c..025e1458 100644 --- a/docs/models/components/listresourcecheckoutlink.md +++ b/docs/models/components/listresourcecheckoutlink.md @@ -38,63 +38,46 @@ let value: ListResourceCheckoutLink = { description: "roughly lest sternly while metabolise hence who lasting wee spherical", recurringInterval: "month", - isRecurring: false, + recurringIntervalCount: 866095, + isRecurring: true, isArchived: false, organizationId: "", - prices: [], - benefits: [ + prices: [ { + createdAt: new Date("2024-06-23T04:46:35.152Z"), + modifiedAt: new Date("2024-05-30T10:02:42.927Z"), id: "", - createdAt: new Date("2023-09-04T12:35:29.724Z"), - modifiedAt: new Date("2024-05-27T08:53:02.662Z"), - type: "downloadables", - description: "cautiously pike true considering superior about", - selectable: true, - deletable: false, - organizationId: "", - }, - ], - medias: [ - { - id: "", - organizationId: "", - name: "", - path: "/media", - mimeType: "", - size: 824371, - storageVersion: "", - checksumEtag: "", - checksumSha256Base64: "", - checksumSha256Hex: "", - lastModifiedAt: new Date("2023-02-18T19:01:12.258Z"), - version: "", - service: "product_media", - isUploaded: true, - createdAt: new Date("2024-07-19T01:58:20.240Z"), - sizeReadable: "", - publicUrl: "https://dim-apparatus.biz/", + amountType: "free", + isArchived: false, + productId: "", + type: "recurring", + recurringInterval: "year", + legacy: true, }, ], + benefits: [], + medias: [], }, ], discount: { - duration: "repeating", - durationInMonths: 13743, + duration: "once", type: "fixed", basisPoints: 1000, - createdAt: new Date("2023-05-02T03:13:00.458Z"), - modifiedAt: new Date("2024-11-18T01:03:14.408Z"), + createdAt: new Date("2025-06-05T00:55:28.474Z"), + modifiedAt: new Date("2025-07-23T08:18:21.060Z"), id: "", - metadata: {}, + metadata: { + "key": true, + }, name: "", code: "", - startsAt: new Date("2023-02-16T11:30:48.051Z"), - endsAt: new Date("2024-12-28T19:07:39.973Z"), - maxRedemptions: 571035, - redemptionsCount: 98203, + startsAt: new Date("2025-02-27T17:57:06.028Z"), + endsAt: new Date("2024-06-22T16:03:05.887Z"), + maxRedemptions: 286287, + redemptionsCount: 676716, organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737", }, - url: "https://spherical-instruction.net/", + url: "https://thick-haircut.com", }, ], pagination: { diff --git a/docs/models/components/listresourcecustomerbenefitgrant.md b/docs/models/components/listresourcecustomerbenefitgrant.md index f1dcd48b..422464f3 100644 --- a/docs/models/components/listresourcecustomerbenefitgrant.md +++ b/docs/models/components/listresourcecustomerbenefitgrant.md @@ -63,6 +63,7 @@ let value: ListResourceCustomerBenefitGrant = { featureSettings: { issueFundingEnabled: false, seatBasedPricingEnabled: false, + revopsEnabled: false, }, subscriptionSettings: { allowMultipleSubscriptions: true, @@ -87,12 +88,12 @@ let value: ListResourceCustomerBenefitGrant = { properties: { prefix: "", expires: { - ttl: 84298, - timeframe: "year", + ttl: 93452, + timeframe: "day", }, activations: { - limit: 202982, - enableCustomerAdmin: false, + limit: 777902, + enableCustomerAdmin: true, }, limitUsage: 596467, }, diff --git a/docs/models/components/listresourcecustomerorder.md b/docs/models/components/listresourcecustomerorder.md index 49815743..1004a91e 100644 --- a/docs/models/components/listresourcecustomerorder.md +++ b/docs/models/components/listresourcecustomerorder.md @@ -38,31 +38,19 @@ let value: ListResourceCustomerOrder = { userId: "", product: { id: "", - createdAt: new Date("2023-10-04T14:18:57.229Z"), - modifiedAt: new Date("2024-05-31T12:38:58.045Z"), - trialInterval: "day", - trialIntervalCount: null, + createdAt: new Date("2024-05-31T12:38:58.045Z"), + modifiedAt: new Date("2023-07-02T22:48:54.737Z"), + trialInterval: null, + trialIntervalCount: 57218, name: "", - description: "emotional dearly joyously", - recurringInterval: "week", - isRecurring: false, - isArchived: true, + description: + "arraign but insistent provided apud um furiously palate devise yowza", + recurringInterval: "day", + recurringIntervalCount: 622455, + isRecurring: true, + isArchived: false, organizationId: "", - prices: [ - { - createdAt: new Date("2023-03-18T03:28:52.944Z"), - modifiedAt: new Date("2023-10-09T19:42:21.526Z"), - id: "", - amountType: "fixed", - isArchived: false, - productId: "", - type: "recurring", - recurringInterval: "month", - priceCurrency: "", - priceAmount: 556329, - legacy: true, - }, - ], + prices: [], benefits: [], medias: [], organization: { @@ -100,41 +88,32 @@ let value: ListResourceCustomerOrder = { }, }, subscription: { - createdAt: new Date("2024-03-06T19:03:50.234Z"), - modifiedAt: new Date("2024-09-01T07:31:10.688Z"), + createdAt: new Date("2024-07-13T22:13:37.550Z"), + modifiedAt: new Date("2023-07-08T08:21:02.517Z"), id: "", amount: 10000, currency: "usd", - recurringInterval: "day", - status: "active", - currentPeriodStart: new Date("2025-07-01T15:38:18.028Z"), - currentPeriodEnd: new Date("2024-04-02T15:56:55.286Z"), - trialStart: new Date("2023-03-23T00:47:15.496Z"), - trialEnd: new Date("2023-06-22T17:34:45.530Z"), - cancelAtPeriodEnd: true, - canceledAt: new Date("2023-01-30T05:51:07.887Z"), - startedAt: null, - endsAt: new Date("2025-05-27T19:20:07.033Z"), - endedAt: new Date("2023-12-07T08:15:27.487Z"), + recurringInterval: "week", + recurringIntervalCount: 893964, + status: "trialing", + currentPeriodStart: new Date("2024-10-10T08:15:03.005Z"), + currentPeriodEnd: new Date("2025-04-25T19:12:17.639Z"), + trialStart: new Date("2024-07-25T01:03:46.818Z"), + trialEnd: new Date("2025-09-06T02:36:50.793Z"), + cancelAtPeriodEnd: false, + canceledAt: new Date("2024-02-28T03:03:35.134Z"), + startedAt: new Date("2023-12-12T17:15:19.456Z"), + endsAt: new Date("2025-05-22T22:43:11.961Z"), + endedAt: new Date("2025-06-01T22:56:15.909Z"), customerId: "", productId: "", discountId: "", checkoutId: "", - customerCancellationReason: "switched_service", + customerCancellationReason: null, customerCancellationComment: "", }, - items: [ - { - createdAt: new Date("2024-02-16T11:18:39.347Z"), - modifiedAt: new Date("2023-11-25T23:33:09.773Z"), - id: "", - label: "Pro Plan", - amount: 10000, - taxAmount: 720, - proration: false, - productPriceId: null, - }, - ], + items: [], + description: "Pro Plan", }, ], pagination: { diff --git a/docs/models/components/listresourcesubscription.md b/docs/models/components/listresourcesubscription.md index f16fc8b1..dcb960af 100644 --- a/docs/models/components/listresourcesubscription.md +++ b/docs/models/components/listresourcesubscription.md @@ -14,10 +14,11 @@ let value: ListResourceSubscription = { amount: 10000, currency: "usd", recurringInterval: "day", + recurringIntervalCount: 11381, status: "incomplete", - currentPeriodStart: new Date("2023-02-03T16:09:01.508Z"), - currentPeriodEnd: new Date("2025-05-12T09:48:05.553Z"), - trialStart: new Date("2023-03-22T09:05:03.177Z"), + currentPeriodStart: new Date("2023-06-22T05:37:36.578Z"), + currentPeriodEnd: new Date("2025-05-04T08:08:19.321Z"), + trialStart: null, trialEnd: new Date("2024-09-18T17:56:40.238Z"), cancelAtPeriodEnd: true, canceledAt: new Date("2024-11-19T01:45:47.615Z"), @@ -64,22 +65,23 @@ let value: ListResourceSubscription = { name: "", description: "sense busily outside extremely challenge", recurringInterval: "month", - isRecurring: true, - isArchived: false, + recurringIntervalCount: null, + isRecurring: false, + isArchived: true, organizationId: "", - metadata: {}, + metadata: { + "key": 3270.53, + }, prices: [ { - createdAt: new Date("2024-12-14T23:57:12.104Z"), - modifiedAt: new Date("2025-02-07T10:27:56.492Z"), + createdAt: new Date("2024-08-30T00:59:04.800Z"), + modifiedAt: new Date("2023-11-19T07:09:34.058Z"), id: "", - amountType: "fixed", - isArchived: false, + amountType: "free", + isArchived: true, productId: "", - type: "one_time", + type: "recurring", recurringInterval: "week", - priceCurrency: "", - priceAmount: 350820, legacy: true, }, ], @@ -88,21 +90,21 @@ let value: ListResourceSubscription = { attachedCustomFields: [], }, discount: { - duration: "once", - durationInMonths: 661521, + duration: "forever", + durationInMonths: 300165, type: "fixed", amount: 1000, currency: "usd", - createdAt: new Date("2024-11-02T10:26:18.566Z"), - modifiedAt: new Date("2023-08-09T19:02:05.824Z"), + createdAt: new Date("2023-05-29T14:09:28.797Z"), + modifiedAt: null, id: "", metadata: {}, name: "", code: "", - startsAt: new Date("2024-01-03T02:01:45.933Z"), - endsAt: new Date("2023-12-15T00:12:04.750Z"), - maxRedemptions: 889423, - redemptionsCount: 555482, + startsAt: new Date("2023-01-13T13:43:10.078Z"), + endsAt: new Date("2024-08-25T16:24:44.378Z"), + maxRedemptions: 731444, + redemptionsCount: 88175, organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737", }, prices: [], diff --git a/docs/models/components/metricperiod.md b/docs/models/components/metricperiod.md index 7753eea8..b8dbc692 100644 --- a/docs/models/components/metricperiod.md +++ b/docs/models/components/metricperiod.md @@ -12,32 +12,34 @@ let value: MetricPeriod = { netRevenue: 3846.82, cumulativeRevenue: 244464, netCumulativeRevenue: 287128, - averageOrderValue: 561829, - netAverageOrderValue: 2756.5, - oneTimeProducts: 996362, - oneTimeProductsRevenue: 180802, - oneTimeProductsNetRevenue: 167605, - newSubscriptions: 2292.45, - newSubscriptionsRevenue: 627146, - newSubscriptionsNetRevenue: 9269.73, - renewedSubscriptions: 949492, - renewedSubscriptionsRevenue: 47251, - renewedSubscriptionsNetRevenue: 172713, - activeSubscriptions: 5850.99, - monthlyRecurringRevenue: 300280, - committedMonthlyRecurringRevenue: 159933, - checkouts: 66450, - succeededCheckouts: 687843, - checkoutsConversion: 397403, - canceledSubscriptions: 324523, - canceledSubscriptionsCustomerService: 8399.94, - canceledSubscriptionsLowQuality: 5324.71, - canceledSubscriptionsMissingFeatures: 297943, - canceledSubscriptionsSwitchedService: 3738.48, - canceledSubscriptionsTooComplex: 249718, - canceledSubscriptionsTooExpensive: 826661, - canceledSubscriptionsUnused: 2864.09, - canceledSubscriptionsOther: 238.25, + costs: 561829, + cumulativeCosts: 2756.5, + averageOrderValue: 996362, + netAverageOrderValue: 180802, + oneTimeProducts: 167605, + oneTimeProductsRevenue: 2292.45, + oneTimeProductsNetRevenue: 627146, + newSubscriptions: 9269.73, + newSubscriptionsRevenue: 949492, + newSubscriptionsNetRevenue: 47251, + renewedSubscriptions: 172713, + renewedSubscriptionsRevenue: 5850.99, + renewedSubscriptionsNetRevenue: 300280, + activeSubscriptions: 159933, + monthlyRecurringRevenue: 66450, + committedMonthlyRecurringRevenue: 687843, + checkouts: 397403, + succeededCheckouts: 324523, + checkoutsConversion: 8399.94, + canceledSubscriptions: 5324.71, + canceledSubscriptionsCustomerService: 297943, + canceledSubscriptionsLowQuality: 3738.48, + canceledSubscriptionsMissingFeatures: 249718, + canceledSubscriptionsSwitchedService: 826661, + canceledSubscriptionsTooComplex: 2864.09, + canceledSubscriptionsTooExpensive: 238.25, + canceledSubscriptionsUnused: 6263.54, + canceledSubscriptionsOther: 279.99, }; ``` @@ -51,6 +53,8 @@ let value: MetricPeriod = { | `netRevenue` | *components.NetRevenue* | :heavy_check_mark: | N/A | | `cumulativeRevenue` | *components.CumulativeRevenue* | :heavy_check_mark: | N/A | | `netCumulativeRevenue` | *components.NetCumulativeRevenue* | :heavy_check_mark: | N/A | +| `costs` | *components.Costs* | :heavy_check_mark: | N/A | +| `cumulativeCosts` | *components.CumulativeCosts* | :heavy_check_mark: | N/A | | `averageOrderValue` | *components.AverageOrderValue* | :heavy_check_mark: | N/A | | `netAverageOrderValue` | *components.NetAverageOrderValue* | :heavy_check_mark: | N/A | | `oneTimeProducts` | *components.OneTimeProducts* | :heavy_check_mark: | N/A | diff --git a/docs/models/components/metrics.md b/docs/models/components/metrics.md index d8ea0eb3..72debccd 100644 --- a/docs/models/components/metrics.md +++ b/docs/models/components/metrics.md @@ -8,157 +8,167 @@ import { Metrics } from "@polar-sh/sdk/models/components/metrics.js"; let value: Metrics = { orders: { slug: "", - displayName: "Jimmie_Renner86", - type: "currency", + displayName: "Sandrine.Hermann51", + type: "scalar", }, revenue: { slug: "", - displayName: "Jacinthe66", + displayName: "Makenna_Rutherford59", type: "percentage", }, netRevenue: { slug: "", - displayName: "Matteo_Block", - type: "scalar", + displayName: "Timmothy_Dibbert76", + type: "percentage", }, cumulativeRevenue: { slug: "", - displayName: "Nedra_Ebert92", - type: "currency", + displayName: "Tiffany55", + type: "scalar", }, netCumulativeRevenue: { slug: "", - displayName: "Domingo.Rosenbaum", - type: "percentage", + displayName: "Sedrick.Sipes", + type: "scalar", + }, + costs: { + slug: "", + displayName: "Dakota_Turner", + type: "scalar", + }, + cumulativeCosts: { + slug: "", + displayName: "Earlene_Kuvalis-Hegmann14", + type: "currency", }, averageOrderValue: { slug: "", - displayName: "Coleman.Luettgen22", + displayName: "Dan_Morissette1", type: "percentage", }, netAverageOrderValue: { slug: "", - displayName: "Orval28", + displayName: "Florence_Daniel12", type: "currency", }, oneTimeProducts: { slug: "", - displayName: "Ewell.Corkery55", - type: "scalar", + displayName: "Ellsworth_Kshlerin53", + type: "percentage", }, oneTimeProductsRevenue: { slug: "", - displayName: "Lew.Ankunding", + displayName: "Paul68", type: "currency", }, oneTimeProductsNetRevenue: { slug: "", - displayName: "Chaim.Christiansen38", - type: "currency", + displayName: "Candelario25", + type: "scalar", }, newSubscriptions: { slug: "", - displayName: "Jayden70", + displayName: "Eloy37", type: "percentage", }, newSubscriptionsRevenue: { slug: "", - displayName: "Jayde_Parisian39", - type: "currency", + displayName: "Yvonne26", + type: "scalar", }, newSubscriptionsNetRevenue: { slug: "", - displayName: "Lenny_Funk1", - type: "scalar", + displayName: "Kristy_Bayer", + type: "currency", }, renewedSubscriptions: { slug: "", - displayName: "Lavina73", - type: "scalar", + displayName: "Peter99", + type: "percentage", }, renewedSubscriptionsRevenue: { slug: "", - displayName: "Antwan_Glover", + displayName: "Jaiden.Gutmann", type: "currency", }, renewedSubscriptionsNetRevenue: { slug: "", - displayName: "Alverta40", - type: "scalar", + displayName: "Abdullah_Weber", + type: "percentage", }, activeSubscriptions: { slug: "", - displayName: "Omari_Zieme", - type: "scalar", + displayName: "Jerrold_Spinka", + type: "percentage", }, monthlyRecurringRevenue: { slug: "", - displayName: "Ellie_Stokes37", - type: "scalar", + displayName: "Ben18", + type: "percentage", }, committedMonthlyRecurringRevenue: { slug: "", - displayName: "Trent.McClure", + displayName: "Lennie31", type: "currency", }, checkouts: { slug: "", - displayName: "Rory.West89", - type: "scalar", + displayName: "Sophie_Hoppe-Brekke69", + type: "currency", }, succeededCheckouts: { slug: "", - displayName: "Shanie_Denesik", + displayName: "Rhett_Harber88", type: "scalar", }, checkoutsConversion: { slug: "", - displayName: "Ashley65", - type: "percentage", + displayName: "Lon80", + type: "scalar", }, canceledSubscriptions: { slug: "", - displayName: "Geraldine_Reilly", + displayName: "Camila22", type: "percentage", }, canceledSubscriptionsCustomerService: { slug: "", - displayName: "Hunter_Ortiz21", - type: "currency", + displayName: "Vesta_Prohaska36", + type: "percentage", }, canceledSubscriptionsLowQuality: { slug: "", - displayName: "Wyatt80", - type: "scalar", + displayName: "Leland.Parisian11", + type: "currency", }, canceledSubscriptionsMissingFeatures: { slug: "", - displayName: "Camila22", - type: "percentage", + displayName: "Syble32", + type: "currency", }, canceledSubscriptionsSwitchedService: { slug: "", - displayName: "Vesta_Prohaska36", - type: "percentage", + displayName: "Nathanael.Gottlieb28", + type: "scalar", }, canceledSubscriptionsTooComplex: { slug: "", - displayName: "Leland.Parisian11", + displayName: "Keyon_Sipes", type: "currency", }, canceledSubscriptionsTooExpensive: { slug: "", - displayName: "Syble32", - type: "currency", + displayName: "Moriah82", + type: "percentage", }, canceledSubscriptionsUnused: { slug: "", - displayName: "Nathanael.Gottlieb28", - type: "scalar", + displayName: "Ferne.Borer57", + type: "percentage", }, canceledSubscriptionsOther: { slug: "", - displayName: "Keyon_Sipes", + displayName: "Colten23", type: "currency", }, }; @@ -173,6 +183,8 @@ let value: Metrics = { | `netRevenue` | [components.Metric](../../models/components/metric.md) | :heavy_check_mark: | Information about a metric. | | `cumulativeRevenue` | [components.Metric](../../models/components/metric.md) | :heavy_check_mark: | Information about a metric. | | `netCumulativeRevenue` | [components.Metric](../../models/components/metric.md) | :heavy_check_mark: | Information about a metric. | +| `costs` | [components.Metric](../../models/components/metric.md) | :heavy_check_mark: | Information about a metric. | +| `cumulativeCosts` | [components.Metric](../../models/components/metric.md) | :heavy_check_mark: | Information about a metric. | | `averageOrderValue` | [components.Metric](../../models/components/metric.md) | :heavy_check_mark: | Information about a metric. | | `netAverageOrderValue` | [components.Metric](../../models/components/metric.md) | :heavy_check_mark: | Information about a metric. | | `oneTimeProducts` | [components.Metric](../../models/components/metric.md) | :heavy_check_mark: | Information about a metric. | diff --git a/docs/models/components/metricsresponse.md b/docs/models/components/metricsresponse.md index b94ba5a5..f73160bf 100644 --- a/docs/models/components/metricsresponse.md +++ b/docs/models/components/metricsresponse.md @@ -15,187 +15,199 @@ let value: MetricsResponse = { netRevenue: 711919, cumulativeRevenue: 963.89, netCumulativeRevenue: 690503, - averageOrderValue: 231.24, - netAverageOrderValue: 5333.11, - oneTimeProducts: 1430.84, - oneTimeProductsRevenue: 393486, - oneTimeProductsNetRevenue: 732402, - newSubscriptions: 5510.54, - newSubscriptionsRevenue: 275204, - newSubscriptionsNetRevenue: 7126.24, - renewedSubscriptions: 649176, - renewedSubscriptionsRevenue: 7565.12, - renewedSubscriptionsNetRevenue: 599395, - activeSubscriptions: 4330.56, - monthlyRecurringRevenue: 927370, - committedMonthlyRecurringRevenue: 2009.09, - checkouts: 4489.71, - succeededCheckouts: 3552.82, - checkoutsConversion: 838606, - canceledSubscriptions: 187.61, - canceledSubscriptionsCustomerService: 737797, - canceledSubscriptionsLowQuality: 2804.26, - canceledSubscriptionsMissingFeatures: 419988, - canceledSubscriptionsSwitchedService: 659995, - canceledSubscriptionsTooComplex: 3799.2, - canceledSubscriptionsTooExpensive: 36.68, - canceledSubscriptionsUnused: 1450.37, - canceledSubscriptionsOther: 577796, + costs: 231.24, + cumulativeCosts: 5333.11, + averageOrderValue: 1430.84, + netAverageOrderValue: 393486, + oneTimeProducts: 732402, + oneTimeProductsRevenue: 5510.54, + oneTimeProductsNetRevenue: 275204, + newSubscriptions: 7126.24, + newSubscriptionsRevenue: 649176, + newSubscriptionsNetRevenue: 7565.12, + renewedSubscriptions: 599395, + renewedSubscriptionsRevenue: 4330.56, + renewedSubscriptionsNetRevenue: 927370, + activeSubscriptions: 2009.09, + monthlyRecurringRevenue: 4489.71, + committedMonthlyRecurringRevenue: 3552.82, + checkouts: 838606, + succeededCheckouts: 187.61, + checkoutsConversion: 737797, + canceledSubscriptions: 2804.26, + canceledSubscriptionsCustomerService: 419988, + canceledSubscriptionsLowQuality: 659995, + canceledSubscriptionsMissingFeatures: 3799.2, + canceledSubscriptionsSwitchedService: 36.68, + canceledSubscriptionsTooComplex: 1450.37, + canceledSubscriptionsTooExpensive: 577796, + canceledSubscriptionsUnused: 7217.84, + canceledSubscriptionsOther: 5797.29, }, metrics: { orders: { slug: "", - displayName: "Jimmie_Renner86", - type: "currency", + displayName: "Sandrine.Hermann51", + type: "scalar", }, revenue: { slug: "", - displayName: "Jacinthe66", + displayName: "Makenna_Rutherford59", type: "percentage", }, netRevenue: { slug: "", - displayName: "Matteo_Block", - type: "scalar", + displayName: "Timmothy_Dibbert76", + type: "percentage", }, cumulativeRevenue: { slug: "", - displayName: "Nedra_Ebert92", - type: "currency", + displayName: "Tiffany55", + type: "scalar", }, netCumulativeRevenue: { slug: "", - displayName: "Domingo.Rosenbaum", - type: "percentage", + displayName: "Sedrick.Sipes", + type: "scalar", + }, + costs: { + slug: "", + displayName: "Dakota_Turner", + type: "scalar", + }, + cumulativeCosts: { + slug: "", + displayName: "Earlene_Kuvalis-Hegmann14", + type: "currency", }, averageOrderValue: { slug: "", - displayName: "Coleman.Luettgen22", + displayName: "Dan_Morissette1", type: "percentage", }, netAverageOrderValue: { slug: "", - displayName: "Orval28", + displayName: "Florence_Daniel12", type: "currency", }, oneTimeProducts: { slug: "", - displayName: "Ewell.Corkery55", - type: "scalar", + displayName: "Ellsworth_Kshlerin53", + type: "percentage", }, oneTimeProductsRevenue: { slug: "", - displayName: "Lew.Ankunding", + displayName: "Paul68", type: "currency", }, oneTimeProductsNetRevenue: { slug: "", - displayName: "Chaim.Christiansen38", - type: "currency", + displayName: "Candelario25", + type: "scalar", }, newSubscriptions: { slug: "", - displayName: "Jayden70", + displayName: "Eloy37", type: "percentage", }, newSubscriptionsRevenue: { slug: "", - displayName: "Jayde_Parisian39", - type: "currency", + displayName: "Yvonne26", + type: "scalar", }, newSubscriptionsNetRevenue: { slug: "", - displayName: "Lenny_Funk1", - type: "scalar", + displayName: "Kristy_Bayer", + type: "currency", }, renewedSubscriptions: { slug: "", - displayName: "Lavina73", - type: "scalar", + displayName: "Peter99", + type: "percentage", }, renewedSubscriptionsRevenue: { slug: "", - displayName: "Antwan_Glover", + displayName: "Jaiden.Gutmann", type: "currency", }, renewedSubscriptionsNetRevenue: { slug: "", - displayName: "Alverta40", - type: "scalar", + displayName: "Abdullah_Weber", + type: "percentage", }, activeSubscriptions: { slug: "", - displayName: "Omari_Zieme", - type: "scalar", + displayName: "Jerrold_Spinka", + type: "percentage", }, monthlyRecurringRevenue: { slug: "", - displayName: "Ellie_Stokes37", - type: "scalar", + displayName: "Ben18", + type: "percentage", }, committedMonthlyRecurringRevenue: { slug: "", - displayName: "Trent.McClure", + displayName: "Lennie31", type: "currency", }, checkouts: { slug: "", - displayName: "Rory.West89", - type: "scalar", + displayName: "Sophie_Hoppe-Brekke69", + type: "currency", }, succeededCheckouts: { slug: "", - displayName: "Shanie_Denesik", + displayName: "Rhett_Harber88", type: "scalar", }, checkoutsConversion: { slug: "", - displayName: "Ashley65", - type: "percentage", + displayName: "Lon80", + type: "scalar", }, canceledSubscriptions: { slug: "", - displayName: "Geraldine_Reilly", + displayName: "Camila22", type: "percentage", }, canceledSubscriptionsCustomerService: { slug: "", - displayName: "Hunter_Ortiz21", - type: "currency", + displayName: "Vesta_Prohaska36", + type: "percentage", }, canceledSubscriptionsLowQuality: { slug: "", - displayName: "Wyatt80", - type: "scalar", + displayName: "Leland.Parisian11", + type: "currency", }, canceledSubscriptionsMissingFeatures: { slug: "", - displayName: "Camila22", - type: "percentage", + displayName: "Syble32", + type: "currency", }, canceledSubscriptionsSwitchedService: { slug: "", - displayName: "Vesta_Prohaska36", - type: "percentage", + displayName: "Nathanael.Gottlieb28", + type: "scalar", }, canceledSubscriptionsTooComplex: { slug: "", - displayName: "Leland.Parisian11", + displayName: "Keyon_Sipes", type: "currency", }, canceledSubscriptionsTooExpensive: { slug: "", - displayName: "Syble32", - type: "currency", + displayName: "Moriah82", + type: "percentage", }, canceledSubscriptionsUnused: { slug: "", - displayName: "Nathanael.Gottlieb28", - type: "scalar", + displayName: "Ferne.Borer57", + type: "percentage", }, canceledSubscriptionsOther: { slug: "", - displayName: "Keyon_Sipes", + displayName: "Colten23", type: "currency", }, }, diff --git a/docs/models/components/metricstotals.md b/docs/models/components/metricstotals.md index 457c1738..daf225ef 100644 --- a/docs/models/components/metricstotals.md +++ b/docs/models/components/metricstotals.md @@ -11,32 +11,34 @@ let value: MetricsTotals = { netRevenue: 7269.38, cumulativeRevenue: 320.58, netCumulativeRevenue: 711412, - averageOrderValue: 6780.69, - netAverageOrderValue: 489082, - oneTimeProducts: 9678.06, - oneTimeProductsRevenue: 8009.16, - oneTimeProductsNetRevenue: 8492.83, - newSubscriptions: 830439, - newSubscriptionsRevenue: 1946.31, - newSubscriptionsNetRevenue: 892930, - renewedSubscriptions: 7077.98, - renewedSubscriptionsRevenue: 694.09, - renewedSubscriptionsNetRevenue: 146536, - activeSubscriptions: 6421.7, - monthlyRecurringRevenue: 4667.88, - committedMonthlyRecurringRevenue: 8052.18, - checkouts: 6575.27, - succeededCheckouts: 7545.29, - checkoutsConversion: 79480, - canceledSubscriptions: 2246.25, - canceledSubscriptionsCustomerService: 623748, - canceledSubscriptionsLowQuality: 6809.21, - canceledSubscriptionsMissingFeatures: 6520.22, - canceledSubscriptionsSwitchedService: 936901, - canceledSubscriptionsTooComplex: 1370.43, - canceledSubscriptionsTooExpensive: 4441.58, - canceledSubscriptionsUnused: 8832.53, - canceledSubscriptionsOther: 9028.1, + costs: 6780.69, + cumulativeCosts: 489082, + averageOrderValue: 9678.06, + netAverageOrderValue: 8009.16, + oneTimeProducts: 8492.83, + oneTimeProductsRevenue: 830439, + oneTimeProductsNetRevenue: 1946.31, + newSubscriptions: 892930, + newSubscriptionsRevenue: 7077.98, + newSubscriptionsNetRevenue: 694.09, + renewedSubscriptions: 146536, + renewedSubscriptionsRevenue: 6421.7, + renewedSubscriptionsNetRevenue: 4667.88, + activeSubscriptions: 8052.18, + monthlyRecurringRevenue: 6575.27, + committedMonthlyRecurringRevenue: 7545.29, + checkouts: 79480, + succeededCheckouts: 2246.25, + checkoutsConversion: 623748, + canceledSubscriptions: 6809.21, + canceledSubscriptionsCustomerService: 6520.22, + canceledSubscriptionsLowQuality: 936901, + canceledSubscriptionsMissingFeatures: 1370.43, + canceledSubscriptionsSwitchedService: 4441.58, + canceledSubscriptionsTooComplex: 8832.53, + canceledSubscriptionsTooExpensive: 9028.1, + canceledSubscriptionsUnused: 927372, + canceledSubscriptionsOther: 54958, }; ``` @@ -49,6 +51,8 @@ let value: MetricsTotals = { | `netRevenue` | *components.MetricsTotalsNetRevenue* | :heavy_check_mark: | N/A | | `cumulativeRevenue` | *components.MetricsTotalsCumulativeRevenue* | :heavy_check_mark: | N/A | | `netCumulativeRevenue` | *components.MetricsTotalsNetCumulativeRevenue* | :heavy_check_mark: | N/A | +| `costs` | *components.MetricsTotalsCosts* | :heavy_check_mark: | N/A | +| `cumulativeCosts` | *components.MetricsTotalsCumulativeCosts* | :heavy_check_mark: | N/A | | `averageOrderValue` | *components.MetricsTotalsAverageOrderValue* | :heavy_check_mark: | N/A | | `netAverageOrderValue` | *components.MetricsTotalsNetAverageOrderValue* | :heavy_check_mark: | N/A | | `oneTimeProducts` | *components.MetricsTotalsOneTimeProducts* | :heavy_check_mark: | N/A | diff --git a/docs/models/components/metricstotalscosts.md b/docs/models/components/metricstotalscosts.md new file mode 100644 index 00000000..a24bebb8 --- /dev/null +++ b/docs/models/components/metricstotalscosts.md @@ -0,0 +1,17 @@ +# MetricsTotalsCosts + + +## Supported Types + +### `number` + +```typescript +const value: number = 128403; +``` + +### `number` + +```typescript +const value: number = 1284.03; +``` + diff --git a/docs/models/components/metricstotalscumulativecosts.md b/docs/models/components/metricstotalscumulativecosts.md new file mode 100644 index 00000000..191ce1ce --- /dev/null +++ b/docs/models/components/metricstotalscumulativecosts.md @@ -0,0 +1,17 @@ +# MetricsTotalsCumulativeCosts + + +## Supported Types + +### `number` + +```typescript +const value: number = 128403; +``` + +### `number` + +```typescript +const value: number = 1284.03; +``` + diff --git a/docs/models/components/order.md b/docs/models/components/order.md index 06e169f7..4334ca8f 100644 --- a/docs/models/components/order.md +++ b/docs/models/components/order.md @@ -32,14 +32,18 @@ let value: Order = { productId: "", discountId: "", subscriptionId: "", - checkoutId: "", - metadata: {}, + checkoutId: null, + metadata: { + "key": "", + }, platformFeeAmount: 500, customer: { id: "992fae2a-2a17-4b7a-8d9e-e287cf90131b", - createdAt: new Date("2025-03-15T16:51:44.459Z"), - modifiedAt: new Date("2024-05-14T04:26:31.780Z"), - metadata: {}, + createdAt: new Date("2023-10-23T16:50:39.580Z"), + modifiedAt: new Date("2023-12-12T00:57:39.847Z"), + metadata: { + "key": 166283, + }, externalId: "usr_1337", email: "customer@example.com", emailVerified: true, @@ -52,80 +56,86 @@ let value: Order = { "us_ein", ], organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737", - deletedAt: new Date("2023-07-02T05:54:26.991Z"), + deletedAt: new Date("2025-04-19T04:57:52.293Z"), avatarUrl: "https://www.gravatar.com/avatar/xxx?d=404", }, userId: "", product: { metadata: { - "key": 765700, + "key": false, }, id: "", - createdAt: new Date("2025-09-28T13:54:31.917Z"), - modifiedAt: new Date("2025-11-14T07:33:56.379Z"), - trialInterval: "month", - trialIntervalCount: 709592, + createdAt: new Date("2024-08-18T23:02:56.814Z"), + modifiedAt: new Date("2025-02-16T17:05:48.519Z"), + trialInterval: null, + trialIntervalCount: 397442, name: "", description: null, - recurringInterval: "week", - isRecurring: true, - isArchived: true, + recurringInterval: null, + recurringIntervalCount: 212587, + isRecurring: false, + isArchived: false, organizationId: "", }, discount: { - duration: "repeating", - type: "percentage", + duration: "forever", + durationInMonths: 300165, + type: "fixed", amount: 1000, currency: "usd", - createdAt: new Date("2024-09-03T13:37:44.614Z"), + createdAt: new Date("2023-05-29T14:09:28.797Z"), modifiedAt: null, id: "", metadata: {}, name: "", - code: null, - startsAt: new Date("2023-02-14T18:58:15.064Z"), - endsAt: new Date("2024-09-18T21:55:24.536Z"), - maxRedemptions: null, - redemptionsCount: 516035, + code: "", + startsAt: new Date("2023-01-13T13:43:10.078Z"), + endsAt: new Date("2024-08-25T16:24:44.378Z"), + maxRedemptions: 731444, + redemptionsCount: 88175, organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737", }, subscription: { - metadata: {}, - createdAt: new Date("2024-06-27T07:56:50.097Z"), - modifiedAt: new Date("2024-01-16T07:39:17.060Z"), + metadata: { + "key": 4420.08, + }, + createdAt: new Date("2023-12-26T18:24:48.736Z"), + modifiedAt: new Date("2024-05-24T18:24:21.591Z"), id: "", amount: 10000, currency: "usd", recurringInterval: "month", - status: "active", - currentPeriodStart: new Date("2024-04-29T10:34:50.731Z"), - currentPeriodEnd: new Date("2024-05-26T14:35:18.792Z"), - trialStart: new Date("2025-03-17T04:48:05.046Z"), + recurringIntervalCount: 960, + status: "incomplete_expired", + currentPeriodStart: new Date("2023-10-11T14:34:45.147Z"), + currentPeriodEnd: new Date("2024-10-22T20:19:14.907Z"), + trialStart: new Date("2025-07-09T10:12:20.525Z"), trialEnd: null, cancelAtPeriodEnd: true, - canceledAt: new Date("2023-05-04T20:55:46.311Z"), - startedAt: new Date("2025-10-27T14:16:47.398Z"), - endsAt: new Date("2023-01-05T15:34:29.499Z"), - endedAt: null, + canceledAt: new Date("2025-11-22T14:25:51.795Z"), + startedAt: new Date("2024-04-30T15:21:57.777Z"), + endsAt: new Date("2023-11-02T13:05:04.577Z"), + endedAt: new Date("2025-03-15T06:28:35.975Z"), customerId: "", productId: "", discountId: "", checkoutId: "", - customerCancellationReason: "switched_service", + customerCancellationReason: "low_quality", customerCancellationComment: "", }, items: [ { - createdAt: new Date("2024-02-16T11:18:39.347Z"), - modifiedAt: new Date("2023-11-25T23:33:09.773Z"), + createdAt: new Date("2024-02-10T21:00:41.494Z"), + modifiedAt: new Date("2024-06-05T21:57:00.887Z"), id: "", label: "Pro Plan", amount: 10000, taxAmount: 720, proration: false, - productPriceId: null, + productPriceId: "", }, ], + description: "Pro Plan", }; ``` @@ -153,6 +163,7 @@ let value: Order = { | `billingAddress` | [components.Address](../../models/components/address.md) | :heavy_check_mark: | N/A | | | `invoiceNumber` | *string* | :heavy_check_mark: | The invoice number associated with this order. | | | `isInvoiceGenerated` | *boolean* | :heavy_check_mark: | Whether an invoice has been generated for this order. | | +| `seats` | *number* | :heavy_minus_sign: | Number of seats purchased (for seat-based one-time orders). | | | `customerId` | *string* | :heavy_check_mark: | N/A | | | `productId` | *string* | :heavy_check_mark: | N/A | | | `discountId` | *string* | :heavy_check_mark: | N/A | | @@ -166,4 +177,5 @@ let value: Order = { | `product` | [components.OrderProduct](../../models/components/orderproduct.md) | :heavy_check_mark: | N/A | | | `discount` | *components.OrderDiscount* | :heavy_check_mark: | N/A | | | `subscription` | [components.OrderSubscription](../../models/components/ordersubscription.md) | :heavy_check_mark: | N/A | | -| `items` | [components.OrderItemSchema](../../models/components/orderitemschema.md)[] | :heavy_check_mark: | Line items composing the order. | | \ No newline at end of file +| `items` | [components.OrderItemSchema](../../models/components/orderitemschema.md)[] | :heavy_check_mark: | Line items composing the order. | | +| `description` | *string* | :heavy_check_mark: | A summary description of the order. | Pro Plan | \ No newline at end of file diff --git a/docs/models/components/orderproduct.md b/docs/models/components/orderproduct.md index d69668a0..73294454 100644 --- a/docs/models/components/orderproduct.md +++ b/docs/models/components/orderproduct.md @@ -15,7 +15,8 @@ let value: OrderProduct = { name: "", description: null, recurringInterval: "week", - isRecurring: true, + recurringIntervalCount: 563644, + isRecurring: false, isArchived: false, organizationId: "", }; @@ -23,17 +24,18 @@ let value: OrderProduct = { ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `metadata` | Record | :heavy_check_mark: | N/A | -| `id` | *string* | :heavy_check_mark: | The ID of the object. | -| `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. | -| `trialInterval` | [components.TrialInterval](../../models/components/trialinterval.md) | :heavy_check_mark: | The interval unit for the trial period. | -| `trialIntervalCount` | *number* | :heavy_check_mark: | The number of interval units for the trial period. | -| `name` | *string* | :heavy_check_mark: | The name of the product. | -| `description` | *string* | :heavy_check_mark: | The description of the product. | -| `recurringInterval` | [components.SubscriptionRecurringInterval](../../models/components/subscriptionrecurringinterval.md) | :heavy_check_mark: | The recurring interval of the product. If `None`, the product is a one-time purchase.Note that the `day` and `week` values are for internal Polar staff use only. | -| `isRecurring` | *boolean* | :heavy_check_mark: | Whether the product is a subscription. | -| `isArchived` | *boolean* | :heavy_check_mark: | Whether the product is archived and no longer available. | -| `organizationId` | *string* | :heavy_check_mark: | The ID of the organization owning the product. | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `metadata` | Record | :heavy_check_mark: | N/A | +| `id` | *string* | :heavy_check_mark: | The ID of the object. | +| `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. | +| `trialInterval` | [components.TrialInterval](../../models/components/trialinterval.md) | :heavy_check_mark: | The interval unit for the trial period. | +| `trialIntervalCount` | *number* | :heavy_check_mark: | The number of interval units for the trial period. | +| `name` | *string* | :heavy_check_mark: | The name of the product. | +| `description` | *string* | :heavy_check_mark: | The description of the product. | +| `recurringInterval` | [components.SubscriptionRecurringInterval](../../models/components/subscriptionrecurringinterval.md) | :heavy_check_mark: | The recurring interval of the product. If `None`, the product is a one-time purchase. | +| `recurringIntervalCount` | *number* | :heavy_check_mark: | Number of interval units of the subscription.If this is set to 1 the charge will happen every interval (e.g. every month),if set to 2 it will be every other month, and so on. None for one-time products. | +| `isRecurring` | *boolean* | :heavy_check_mark: | Whether the product is a subscription. | +| `isArchived` | *boolean* | :heavy_check_mark: | Whether the product is archived and no longer available. | +| `organizationId` | *string* | :heavy_check_mark: | The ID of the organization owning the product. | \ No newline at end of file diff --git a/docs/models/components/ordersubscription.md b/docs/models/components/ordersubscription.md index c1057046..7f840f33 100644 --- a/docs/models/components/ordersubscription.md +++ b/docs/models/components/ordersubscription.md @@ -15,49 +15,51 @@ let value: OrderSubscription = { amount: 10000, currency: "usd", recurringInterval: "year", - status: "active", - currentPeriodStart: new Date("2024-10-04T01:35:43.769Z"), - currentPeriodEnd: new Date("2025-01-12T21:23:56.904Z"), - trialStart: null, - trialEnd: new Date("2025-05-23T07:48:26.674Z"), + recurringIntervalCount: 562551, + status: "past_due", + currentPeriodStart: new Date("2024-11-12T12:33:25.249Z"), + currentPeriodEnd: new Date("2023-04-05T18:06:17.605Z"), + trialStart: new Date("2025-05-23T07:48:26.674Z"), + trialEnd: new Date("2025-07-05T12:03:03.660Z"), cancelAtPeriodEnd: true, - canceledAt: new Date("2023-10-28T20:07:19.860Z"), - startedAt: new Date("2025-07-17T02:41:21.297Z"), - endsAt: new Date("2023-02-18T14:24:53.276Z"), - endedAt: new Date("2025-11-02T22:26:07.223Z"), + canceledAt: new Date("2025-07-17T02:41:21.297Z"), + startedAt: new Date("2023-02-18T14:24:53.276Z"), + endsAt: new Date("2025-11-02T22:26:07.223Z"), + endedAt: new Date("2024-08-08T19:08:23.275Z"), customerId: "", productId: "", discountId: "", checkoutId: "", - customerCancellationReason: "low_quality", + customerCancellationReason: "too_expensive", customerCancellationComment: "", }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `metadata` | Record | :heavy_check_mark: | N/A | | -| `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. | | -| `amount` | *number* | :heavy_check_mark: | The amount of the subscription. | 10000 | -| `currency` | *string* | :heavy_check_mark: | The currency of the subscription. | usd | -| `recurringInterval` | [components.SubscriptionRecurringInterval](../../models/components/subscriptionrecurringinterval.md) | :heavy_check_mark: | N/A | | -| `status` | [components.SubscriptionStatus](../../models/components/subscriptionstatus.md) | :heavy_check_mark: | N/A | | -| `currentPeriodStart` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The start timestamp of the current billing period. | | -| `currentPeriodEnd` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The end timestamp of the current billing period. | | -| `trialStart` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The start timestamp of the trial period, if any. | | -| `trialEnd` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The end timestamp of the trial period, if any. | | -| `cancelAtPeriodEnd` | *boolean* | :heavy_check_mark: | Whether the subscription will be canceled at the end of the current period. | | -| `canceledAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The timestamp when the subscription was canceled. The subscription might still be active if `cancel_at_period_end` is `true`. | | -| `startedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The timestamp when the subscription started. | | -| `endsAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The timestamp when the subscription will end. | | -| `endedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The timestamp when the subscription ended. | | -| `customerId` | *string* | :heavy_check_mark: | The ID of the subscribed customer. | | -| `productId` | *string* | :heavy_check_mark: | The ID of the subscribed product. | | -| `discountId` | *string* | :heavy_check_mark: | The ID of the applied discount, if any. | | -| `checkoutId` | *string* | :heavy_check_mark: | N/A | | -| `customerCancellationReason` | [components.CustomerCancellationReason](../../models/components/customercancellationreason.md) | :heavy_check_mark: | N/A | | -| `customerCancellationComment` | *string* | :heavy_check_mark: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `metadata` | Record | :heavy_check_mark: | N/A | | +| `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. | | +| `amount` | *number* | :heavy_check_mark: | The amount of the subscription. | 10000 | +| `currency` | *string* | :heavy_check_mark: | The currency of the subscription. | usd | +| `recurringInterval` | [components.SubscriptionRecurringInterval](../../models/components/subscriptionrecurringinterval.md) | :heavy_check_mark: | N/A | | +| `recurringIntervalCount` | *number* | :heavy_check_mark: | Number of interval units of the subscription.If this is set to 1 the charge will happen every interval (e.g. every month),if set to 2 it will be every other month, and so on. | | +| `status` | [components.SubscriptionStatus](../../models/components/subscriptionstatus.md) | :heavy_check_mark: | N/A | | +| `currentPeriodStart` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The start timestamp of the current billing period. | | +| `currentPeriodEnd` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The end timestamp of the current billing period. | | +| `trialStart` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The start timestamp of the trial period, if any. | | +| `trialEnd` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The end timestamp of the trial period, if any. | | +| `cancelAtPeriodEnd` | *boolean* | :heavy_check_mark: | Whether the subscription will be canceled at the end of the current period. | | +| `canceledAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The timestamp when the subscription was canceled. The subscription might still be active if `cancel_at_period_end` is `true`. | | +| `startedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The timestamp when the subscription started. | | +| `endsAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The timestamp when the subscription will end. | | +| `endedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The timestamp when the subscription ended. | | +| `customerId` | *string* | :heavy_check_mark: | The ID of the subscribed customer. | | +| `productId` | *string* | :heavy_check_mark: | The ID of the subscribed product. | | +| `discountId` | *string* | :heavy_check_mark: | The ID of the applied discount, if any. | | +| `checkoutId` | *string* | :heavy_check_mark: | N/A | | +| `customerCancellationReason` | [components.CustomerCancellationReason](../../models/components/customercancellationreason.md) | :heavy_check_mark: | N/A | | +| `customerCancellationComment` | *string* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/organizationfeaturesettings.md b/docs/models/components/organizationfeaturesettings.md index 309c96ac..be85458b 100644 --- a/docs/models/components/organizationfeaturesettings.md +++ b/docs/models/components/organizationfeaturesettings.md @@ -13,4 +13,5 @@ let value: OrganizationFeatureSettings = {}; | Field | Type | Required | Description | | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | | `issueFundingEnabled` | *boolean* | :heavy_minus_sign: | If this organization has issue funding enabled | -| `seatBasedPricingEnabled` | *boolean* | :heavy_minus_sign: | If this organization has seat-based pricing enabled | \ No newline at end of file +| `seatBasedPricingEnabled` | *boolean* | :heavy_minus_sign: | If this organization has seat-based pricing enabled | +| `revopsEnabled` | *boolean* | :heavy_minus_sign: | If this organization has RevOps enabled | \ No newline at end of file diff --git a/docs/models/components/product.md b/docs/models/components/product.md index 4ae2836b..fb1be366 100644 --- a/docs/models/components/product.md +++ b/docs/models/components/product.md @@ -16,82 +16,97 @@ let value: Product = { name: "", description: "awkwardly hopelessly necklace tray crocodile", recurringInterval: "year", + recurringIntervalCount: 411386, isRecurring: false, - isArchived: true, + isArchived: false, organizationId: "", metadata: { - "key": false, + "key": "", }, - prices: [], + prices: [ + { + createdAt: new Date("2025-07-19T05:16:33.878Z"), + modifiedAt: new Date("2024-12-14T03:45:00.109Z"), + id: "", + amountType: "seat_based", + isArchived: true, + productId: "", + type: "one_time", + recurringInterval: "week", + priceCurrency: "", + seatTiers: { + tiers: [ + { + minSeats: 922152, + pricePerSeat: 415895, + }, + ], + }, + }, + ], benefits: [ { id: "", - createdAt: new Date("2025-07-22T11:48:28.197Z"), - modifiedAt: new Date("2025-01-23T12:47:54.549Z"), - type: "license_keys", - description: "duh behind via for enchanting negotiation source sore", + createdAt: new Date("2025-01-09T18:16:10.566Z"), + modifiedAt: new Date("2025-01-13T18:10:25.062Z"), + type: "discord", + description: "whether regularly necessary", selectable: false, - deletable: true, + deletable: false, organizationId: "", metadata: { - "key": true, + "key": "", }, properties: { - prefix: null, - expires: { - ttl: 84298, - timeframe: "year", - }, - activations: { - limit: 202982, - enableCustomerAdmin: false, - }, - limitUsage: 666374, + guildId: "", + roleId: "", + kickMember: false, + guildToken: "", }, }, ], - medias: [ + medias: [], + attachedCustomFields: [ { - id: "", - organizationId: "", - name: "", - path: "/media", - mimeType: "", - size: 824371, - storageVersion: "", - checksumEtag: "", - checksumSha256Base64: "", - checksumSha256Hex: "", - lastModifiedAt: new Date("2023-02-18T19:01:12.258Z"), - version: "", - service: "product_media", - isUploaded: true, - createdAt: new Date("2024-07-19T01:58:20.240Z"), - sizeReadable: "", - publicUrl: "https://dim-apparatus.biz/", + customFieldId: "", + customField: { + createdAt: new Date("2025-05-25T16:58:54.608Z"), + modifiedAt: new Date("2023-09-04T14:15:13.546Z"), + id: "", + metadata: { + "key": false, + }, + type: "text", + slug: "", + name: "", + organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737", + properties: {}, + }, + order: 93108, + required: false, }, ], - attachedCustomFields: [], }; ``` ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *string* | :heavy_check_mark: | The ID of the object. | -| `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. | -| `trialInterval` | [components.TrialInterval](../../models/components/trialinterval.md) | :heavy_check_mark: | The interval unit for the trial period. | -| `trialIntervalCount` | *number* | :heavy_check_mark: | The number of interval units for the trial period. | -| `name` | *string* | :heavy_check_mark: | The name of the product. | -| `description` | *string* | :heavy_check_mark: | The description of the product. | -| `recurringInterval` | [components.SubscriptionRecurringInterval](../../models/components/subscriptionrecurringinterval.md) | :heavy_check_mark: | The recurring interval of the product. If `None`, the product is a one-time purchase.Note that the `day` and `week` values are for internal Polar staff use only. | -| `isRecurring` | *boolean* | :heavy_check_mark: | Whether the product is a subscription. | -| `isArchived` | *boolean* | :heavy_check_mark: | Whether the product is archived and no longer available. | -| `organizationId` | *string* | :heavy_check_mark: | The ID of the organization owning the product. | -| `metadata` | Record | :heavy_check_mark: | N/A | -| `prices` | *components.Prices*[] | :heavy_check_mark: | List of prices for this product. | -| `benefits` | *components.Benefit*[] | :heavy_check_mark: | List of benefits granted by the product. | -| `medias` | [components.ProductMediaFileRead](../../models/components/productmediafileread.md)[] | :heavy_check_mark: | List of medias associated to the product. | -| `attachedCustomFields` | [components.AttachedCustomField](../../models/components/attachedcustomfield.md)[] | :heavy_check_mark: | List of custom fields attached to the product. | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | The ID of the object. | +| `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. | +| `trialInterval` | [components.TrialInterval](../../models/components/trialinterval.md) | :heavy_check_mark: | The interval unit for the trial period. | +| `trialIntervalCount` | *number* | :heavy_check_mark: | The number of interval units for the trial period. | +| `name` | *string* | :heavy_check_mark: | The name of the product. | +| `description` | *string* | :heavy_check_mark: | The description of the product. | +| `recurringInterval` | [components.SubscriptionRecurringInterval](../../models/components/subscriptionrecurringinterval.md) | :heavy_check_mark: | The recurring interval of the product. If `None`, the product is a one-time purchase. | +| `recurringIntervalCount` | *number* | :heavy_check_mark: | Number of interval units of the subscription.If this is set to 1 the charge will happen every interval (e.g. every month),if set to 2 it will be every other month, and so on. None for one-time products. | +| `isRecurring` | *boolean* | :heavy_check_mark: | Whether the product is a subscription. | +| `isArchived` | *boolean* | :heavy_check_mark: | Whether the product is archived and no longer available. | +| `organizationId` | *string* | :heavy_check_mark: | The ID of the organization owning the product. | +| `metadata` | Record | :heavy_check_mark: | N/A | +| `prices` | *components.Prices*[] | :heavy_check_mark: | List of prices for this product. | +| `benefits` | *components.Benefit*[] | :heavy_check_mark: | List of benefits granted by the product. | +| `medias` | [components.ProductMediaFileRead](../../models/components/productmediafileread.md)[] | :heavy_check_mark: | List of medias associated to the product. | +| `attachedCustomFields` | [components.AttachedCustomField](../../models/components/attachedcustomfield.md)[] | :heavy_check_mark: | List of custom fields attached to the product. | \ No newline at end of file diff --git a/docs/models/components/productcreateonetime.md b/docs/models/components/productcreateonetime.md index de5935fe..e10d00f9 100644 --- a/docs/models/components/productcreateonetime.md +++ b/docs/models/components/productcreateonetime.md @@ -28,4 +28,5 @@ let value: ProductCreateOneTime = { | `medias` | *string*[] | :heavy_minus_sign: | List of file IDs. Each one must be on the same organization as the product, of type `product_media` and correctly uploaded. | | | `attachedCustomFields` | [components.AttachedCustomFieldCreate](../../models/components/attachedcustomfieldcreate.md)[] | :heavy_minus_sign: | List of custom fields to attach. | | | `organizationId` | *string* | :heavy_minus_sign: | The ID of the organization owning the product. **Required unless you use an organization token.** | 1dbfc517-0bbf-4301-9ba8-555ca42b9737 | -| `recurringInterval` | *any* | :heavy_minus_sign: | States that the product is a one-time purchase. | | \ No newline at end of file +| `recurringInterval` | *any* | :heavy_minus_sign: | States that the product is a one-time purchase. | | +| `recurringIntervalCount` | *any* | :heavy_minus_sign: | One-time products don't have a recurring interval count. | | \ No newline at end of file diff --git a/docs/models/components/productcreateonetimeprices.md b/docs/models/components/productcreateonetimeprices.md index 3b295a60..b21dfb39 100644 --- a/docs/models/components/productcreateonetimeprices.md +++ b/docs/models/components/productcreateonetimeprices.md @@ -46,8 +46,8 @@ const value: components.ProductPriceSeatBasedCreate = { seatTiers: { tiers: [ { - minSeats: 63601, - pricePerSeat: 931587, + minSeats: 922152, + pricePerSeat: 415895, }, ], }, diff --git a/docs/models/components/productcreaterecurring.md b/docs/models/components/productcreaterecurring.md index 10fddad4..05e8fa69 100644 --- a/docs/models/components/productcreaterecurring.md +++ b/docs/models/components/productcreaterecurring.md @@ -33,4 +33,5 @@ let value: ProductCreateRecurring = { | `organizationId` | *string* | :heavy_minus_sign: | The ID of the organization owning the product. **Required unless you use an organization token.** | 1dbfc517-0bbf-4301-9ba8-555ca42b9737 | | `trialInterval` | [components.TrialInterval](../../models/components/trialinterval.md) | :heavy_minus_sign: | The interval unit for the trial period. | | | `trialIntervalCount` | *number* | :heavy_minus_sign: | The number of interval units for the trial period. | | -| `recurringInterval` | [components.SubscriptionRecurringInterval](../../models/components/subscriptionrecurringinterval.md) | :heavy_check_mark: | N/A | | \ No newline at end of file +| `recurringInterval` | [components.SubscriptionRecurringInterval](../../models/components/subscriptionrecurringinterval.md) | :heavy_check_mark: | N/A | | +| `recurringIntervalCount` | *number* | :heavy_minus_sign: | Number of interval units of the subscription.If this is set to 1 the charge will happen every interval (e.g. every month),if set to 2 it will be every other month, and so on. | | \ No newline at end of file diff --git a/docs/models/components/productcreaterecurringprices.md b/docs/models/components/productcreaterecurringprices.md index 4f86ea13..a4930cd2 100644 --- a/docs/models/components/productcreaterecurringprices.md +++ b/docs/models/components/productcreaterecurringprices.md @@ -46,8 +46,8 @@ const value: components.ProductPriceSeatBasedCreate = { seatTiers: { tiers: [ { - minSeats: 63601, - pricePerSeat: 931587, + minSeats: 922152, + pricePerSeat: 415895, }, ], }, diff --git a/docs/models/components/productprice.md b/docs/models/components/productprice.md index d0fb92e6..f12a3314 100644 --- a/docs/models/components/productprice.md +++ b/docs/models/components/productprice.md @@ -93,8 +93,8 @@ const value: components.ProductPriceSeatBased = { seatTiers: { tiers: [ { - minSeats: 63601, - pricePerSeat: 931587, + minSeats: 922152, + pricePerSeat: 415895, }, ], }, diff --git a/docs/models/components/productpriceseatbased.md b/docs/models/components/productpriceseatbased.md index 2f4a2dff..d652fc05 100644 --- a/docs/models/components/productpriceseatbased.md +++ b/docs/models/components/productpriceseatbased.md @@ -20,8 +20,8 @@ let value: ProductPriceSeatBased = { seatTiers: { tiers: [ { - minSeats: 63601, - pricePerSeat: 931587, + minSeats: 922152, + pricePerSeat: 415895, }, ], }, diff --git a/docs/models/components/productpriceseatbasedcreate.md b/docs/models/components/productpriceseatbasedcreate.md index 379a6ab4..54895802 100644 --- a/docs/models/components/productpriceseatbasedcreate.md +++ b/docs/models/components/productpriceseatbasedcreate.md @@ -12,8 +12,8 @@ let value: ProductPriceSeatBasedCreate = { seatTiers: { tiers: [ { - minSeats: 63601, - pricePerSeat: 931587, + minSeats: 922152, + pricePerSeat: 415895, }, ], }, diff --git a/docs/models/components/productupdate.md b/docs/models/components/productupdate.md index a88bbbea..78c282a7 100644 --- a/docs/models/components/productupdate.md +++ b/docs/models/components/productupdate.md @@ -20,6 +20,7 @@ let value: ProductUpdate = {}; | `name` | *string* | :heavy_minus_sign: | N/A | | `description` | *string* | :heavy_minus_sign: | The description of the product. | | `recurringInterval` | [components.SubscriptionRecurringInterval](../../models/components/subscriptionrecurringinterval.md) | :heavy_minus_sign: | The recurring interval of the product. If `None`, the product is a one-time purchase. **Can only be set on legacy recurring products. Once set, it can't be changed.** | +| `recurringIntervalCount` | *number* | :heavy_minus_sign: | Number of interval units of the subscription.If this is set to 1 the charge will happen every interval (e.g. every month),if set to 2 it will be every other month, and so on. | | `isArchived` | *boolean* | :heavy_minus_sign: | Whether the product is archived. If `true`, the product won't be available for purchase anymore. Existing customers will still have access to their benefits, and subscriptions will continue normally. | | `prices` | *components.ProductUpdatePrices*[] | :heavy_minus_sign: | List of available prices for this product. If you want to keep existing prices, include them in the list as an `ExistingProductPrice` object. | | `medias` | *string*[] | :heavy_minus_sign: | List of file IDs. Each one must be on the same organization as the product, of type `product_media` and correctly uploaded. | diff --git a/docs/models/components/scope.md b/docs/models/components/scope.md index 0fd59515..fa253b42 100644 --- a/docs/models/components/scope.md +++ b/docs/models/components/scope.md @@ -11,5 +11,5 @@ let value: Scope = "custom_fields:read"; ## Values ```typescript -"openid" | "profile" | "email" | "user:read" | "web:read" | "web:write" | "organizations:read" | "organizations:write" | "custom_fields:read" | "custom_fields:write" | "discounts:read" | "discounts:write" | "checkout_links:read" | "checkout_links:write" | "checkouts:read" | "checkouts:write" | "transactions:read" | "transactions:write" | "payouts:read" | "payouts:write" | "products:read" | "products:write" | "benefits:read" | "benefits:write" | "events:read" | "events:write" | "meters:read" | "meters:write" | "files:read" | "files:write" | "subscriptions:read" | "subscriptions:write" | "customers:read" | "customers:write" | "customer_meters:read" | "customer_sessions:write" | "orders:read" | "orders:write" | "refunds:read" | "refunds:write" | "payments:read" | "metrics:read" | "webhooks:read" | "webhooks:write" | "external_organizations:read" | "license_keys:read" | "license_keys:write" | "repositories:read" | "repositories:write" | "issues:read" | "issues:write" | "customer_portal:read" | "customer_portal:write" | "notifications:read" | "notifications:write" | "notification_recipients:read" | "notification_recipients:write" +"openid" | "profile" | "email" | "user:read" | "web:read" | "web:write" | "organizations:read" | "organizations:write" | "custom_fields:read" | "custom_fields:write" | "discounts:read" | "discounts:write" | "checkout_links:read" | "checkout_links:write" | "checkouts:read" | "checkouts:write" | "transactions:read" | "transactions:write" | "payouts:read" | "payouts:write" | "products:read" | "products:write" | "benefits:read" | "benefits:write" | "events:read" | "events:write" | "meters:read" | "meters:write" | "files:read" | "files:write" | "subscriptions:read" | "subscriptions:write" | "customers:read" | "customers:write" | "customer_meters:read" | "customer_sessions:write" | "customer_seats:read" | "customer_seats:write" | "orders:read" | "orders:write" | "refunds:read" | "refunds:write" | "payments:read" | "metrics:read" | "webhooks:read" | "webhooks:write" | "external_organizations:read" | "license_keys:read" | "license_keys:write" | "repositories:read" | "repositories:write" | "issues:read" | "issues:write" | "customer_portal:read" | "customer_portal:write" | "notifications:read" | "notifications:write" | "notification_recipients:read" | "notification_recipients:write" ``` \ No newline at end of file diff --git a/docs/models/components/seatassign.md b/docs/models/components/seatassign.md index f18f8a7f..6d09317a 100644 --- a/docs/models/components/seatassign.md +++ b/docs/models/components/seatassign.md @@ -10,11 +10,12 @@ let value: SeatAssign = {}; ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | -| `subscriptionId` | *string* | :heavy_minus_sign: | Subscription ID. Required if checkout_id is not provided. | -| `checkoutId` | *string* | :heavy_minus_sign: | Checkout ID. Used to look up subscription. Required if subscription_id is not provided. | -| `email` | *string* | :heavy_minus_sign: | Email of the customer to assign the seat to | -| `externalCustomerId` | *string* | :heavy_minus_sign: | External customer ID for the seat assignment | -| `customerId` | *string* | :heavy_minus_sign: | Customer ID for the seat assignment | -| `metadata` | Record | :heavy_minus_sign: | Additional metadata for the seat (max 10 keys, 1KB total) | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `subscriptionId` | *string* | :heavy_minus_sign: | Subscription ID. Required if checkout_id and order_id are not provided. | +| `checkoutId` | *string* | :heavy_minus_sign: | Checkout ID. Used to look up subscription or order from the checkout page. | +| `orderId` | *string* | :heavy_minus_sign: | Order ID for one-time purchases. Required if subscription_id and checkout_id are not provided. | +| `email` | *string* | :heavy_minus_sign: | Email of the customer to assign the seat to | +| `externalCustomerId` | *string* | :heavy_minus_sign: | External customer ID for the seat assignment | +| `customerId` | *string* | :heavy_minus_sign: | Customer ID for the seat assignment | +| `metadata` | Record | :heavy_minus_sign: | Additional metadata for the seat (max 10 keys, 1KB total) | \ No newline at end of file diff --git a/docs/models/components/seatslist.md b/docs/models/components/seatslist.md index 3c690e94..1dc5344c 100644 --- a/docs/models/components/seatslist.md +++ b/docs/models/components/seatslist.md @@ -11,12 +11,11 @@ let value: SeatsList = { createdAt: new Date("2024-03-24T00:19:36.102Z"), modifiedAt: new Date("2023-01-13T17:50:35.123Z"), id: "404abf3a-20fa-42a9-b297-1359fbc34497", - subscriptionId: "38cb6bc5-1e0b-4da2-877b-9b6d0af1759d", - status: "claimed", + status: "pending", }, ], - availableSeats: 891782, - totalSeats: 647245, + availableSeats: 521405, + totalSeats: 762473, }; ``` diff --git a/docs/models/components/subscription.md b/docs/models/components/subscription.md index ac23a9b9..4db6ba0c 100644 --- a/docs/models/components/subscription.md +++ b/docs/models/components/subscription.md @@ -12,25 +12,24 @@ let value: Subscription = { amount: 10000, currency: "usd", recurringInterval: "week", - status: "incomplete_expired", - currentPeriodStart: new Date("2024-09-10T22:15:42.980Z"), - currentPeriodEnd: new Date("2025-12-24T04:01:55.073Z"), - trialStart: new Date("2023-07-18T13:08:55.704Z"), - trialEnd: new Date("2024-12-01T07:13:21.079Z"), - cancelAtPeriodEnd: true, - canceledAt: new Date("2024-12-18T00:59:29.267Z"), - startedAt: new Date("2024-11-17T12:28:40.687Z"), + recurringIntervalCount: 218416, + status: "active", + currentPeriodStart: new Date("2023-09-18T19:50:05.034Z"), + currentPeriodEnd: new Date("2025-04-26T12:14:05.888Z"), + trialStart: new Date("2023-05-21T15:44:39.020Z"), + trialEnd: new Date("2023-04-06T00:49:40.768Z"), + cancelAtPeriodEnd: false, + canceledAt: new Date("2025-07-14T08:13:59.069Z"), + startedAt: new Date("2023-02-27T19:32:42.165Z"), endsAt: null, - endedAt: null, + endedAt: new Date("2023-01-08T23:04:09.508Z"), customerId: "", productId: "", discountId: "", - checkoutId: null, - customerCancellationReason: "missing_features", - customerCancellationComment: "", - metadata: { - "key": "", - }, + checkoutId: "", + customerCancellationReason: "unused", + customerCancellationComment: null, + metadata: {}, customer: { id: "992fae2a-2a17-4b7a-8d9e-e287cf90131b", createdAt: new Date("2024-10-21T10:07:05.567Z"), @@ -62,22 +61,23 @@ let value: Subscription = { name: "", description: "sense busily outside extremely challenge", recurringInterval: "month", - isRecurring: true, - isArchived: false, + recurringIntervalCount: null, + isRecurring: false, + isArchived: true, organizationId: "", - metadata: {}, + metadata: { + "key": 3270.53, + }, prices: [ { - createdAt: new Date("2024-12-14T23:57:12.104Z"), - modifiedAt: new Date("2025-02-07T10:27:56.492Z"), + createdAt: new Date("2024-08-30T00:59:04.800Z"), + modifiedAt: new Date("2023-11-19T07:09:34.058Z"), id: "", - amountType: "fixed", - isArchived: false, + amountType: "free", + isArchived: true, productId: "", - type: "one_time", + type: "recurring", recurringInterval: "week", - priceCurrency: "", - priceAmount: 350820, legacy: true, }, ], @@ -85,23 +85,7 @@ let value: Subscription = { medias: [], attachedCustomFields: [], }, - discount: { - duration: "repeating", - type: "percentage", - amount: 1000, - currency: "usd", - createdAt: new Date("2024-09-03T13:37:44.614Z"), - modifiedAt: null, - id: "", - metadata: {}, - name: "", - code: null, - startsAt: new Date("2023-02-14T18:58:15.064Z"), - endsAt: new Date("2024-09-18T21:55:24.536Z"), - maxRedemptions: null, - redemptionsCount: 516035, - organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737", - }, + discount: null, prices: [ { createdAt: new Date("2023-02-09T14:10:32.360Z"), @@ -151,34 +135,35 @@ let value: Subscription = { ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `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. | | -| `amount` | *number* | :heavy_check_mark: | The amount of the subscription. | 10000 | -| `currency` | *string* | :heavy_check_mark: | The currency of the subscription. | usd | -| `recurringInterval` | [components.SubscriptionRecurringInterval](../../models/components/subscriptionrecurringinterval.md) | :heavy_check_mark: | N/A | | -| `status` | [components.SubscriptionStatus](../../models/components/subscriptionstatus.md) | :heavy_check_mark: | N/A | | -| `currentPeriodStart` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The start timestamp of the current billing period. | | -| `currentPeriodEnd` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The end timestamp of the current billing period. | | -| `trialStart` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The start timestamp of the trial period, if any. | | -| `trialEnd` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The end timestamp of the trial period, if any. | | -| `cancelAtPeriodEnd` | *boolean* | :heavy_check_mark: | Whether the subscription will be canceled at the end of the current period. | | -| `canceledAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The timestamp when the subscription was canceled. The subscription might still be active if `cancel_at_period_end` is `true`. | | -| `startedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The timestamp when the subscription started. | | -| `endsAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The timestamp when the subscription will end. | | -| `endedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The timestamp when the subscription ended. | | -| `customerId` | *string* | :heavy_check_mark: | The ID of the subscribed customer. | | -| `productId` | *string* | :heavy_check_mark: | The ID of the subscribed product. | | -| `discountId` | *string* | :heavy_check_mark: | The ID of the applied discount, if any. | | -| `checkoutId` | *string* | :heavy_check_mark: | N/A | | -| `customerCancellationReason` | [components.CustomerCancellationReason](../../models/components/customercancellationreason.md) | :heavy_check_mark: | N/A | | -| `customerCancellationComment` | *string* | :heavy_check_mark: | N/A | | -| `metadata` | Record | :heavy_check_mark: | N/A | | -| `customFieldData` | Record | :heavy_minus_sign: | Key-value object storing custom field values. | | -| `customer` | [components.SubscriptionCustomer](../../models/components/subscriptioncustomer.md) | :heavy_check_mark: | N/A | | -| `product` | [components.Product](../../models/components/product.md) | :heavy_check_mark: | A product. | | -| `discount` | *components.SubscriptionDiscount* | :heavy_check_mark: | N/A | | -| `prices` | *components.SubscriptionPrices*[] | :heavy_check_mark: | List of enabled prices for the subscription. | | -| `meters` | [components.SubscriptionMeter](../../models/components/subscriptionmeter.md)[] | :heavy_check_mark: | List of meters associated with the subscription. | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `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. | | +| `amount` | *number* | :heavy_check_mark: | The amount of the subscription. | 10000 | +| `currency` | *string* | :heavy_check_mark: | The currency of the subscription. | usd | +| `recurringInterval` | [components.SubscriptionRecurringInterval](../../models/components/subscriptionrecurringinterval.md) | :heavy_check_mark: | N/A | | +| `recurringIntervalCount` | *number* | :heavy_check_mark: | Number of interval units of the subscription.If this is set to 1 the charge will happen every interval (e.g. every month),if set to 2 it will be every other month, and so on. | | +| `status` | [components.SubscriptionStatus](../../models/components/subscriptionstatus.md) | :heavy_check_mark: | N/A | | +| `currentPeriodStart` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The start timestamp of the current billing period. | | +| `currentPeriodEnd` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The end timestamp of the current billing period. | | +| `trialStart` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The start timestamp of the trial period, if any. | | +| `trialEnd` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The end timestamp of the trial period, if any. | | +| `cancelAtPeriodEnd` | *boolean* | :heavy_check_mark: | Whether the subscription will be canceled at the end of the current period. | | +| `canceledAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The timestamp when the subscription was canceled. The subscription might still be active if `cancel_at_period_end` is `true`. | | +| `startedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The timestamp when the subscription started. | | +| `endsAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The timestamp when the subscription will end. | | +| `endedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The timestamp when the subscription ended. | | +| `customerId` | *string* | :heavy_check_mark: | The ID of the subscribed customer. | | +| `productId` | *string* | :heavy_check_mark: | The ID of the subscribed product. | | +| `discountId` | *string* | :heavy_check_mark: | The ID of the applied discount, if any. | | +| `checkoutId` | *string* | :heavy_check_mark: | N/A | | +| `customerCancellationReason` | [components.CustomerCancellationReason](../../models/components/customercancellationreason.md) | :heavy_check_mark: | N/A | | +| `customerCancellationComment` | *string* | :heavy_check_mark: | N/A | | +| `metadata` | Record | :heavy_check_mark: | N/A | | +| `customFieldData` | Record | :heavy_minus_sign: | Key-value object storing custom field values. | | +| `customer` | [components.SubscriptionCustomer](../../models/components/subscriptioncustomer.md) | :heavy_check_mark: | N/A | | +| `product` | [components.Product](../../models/components/product.md) | :heavy_check_mark: | A product. | | +| `discount` | *components.SubscriptionDiscount* | :heavy_check_mark: | N/A | | +| `prices` | *components.SubscriptionPrices*[] | :heavy_check_mark: | List of enabled prices for the subscription. | | +| `meters` | [components.SubscriptionMeter](../../models/components/subscriptionmeter.md)[] | :heavy_check_mark: | List of meters associated with the subscription. | | \ No newline at end of file diff --git a/docs/models/components/two.md b/docs/models/components/two.md index 5fad5663..93e18a7c 100644 --- a/docs/models/components/two.md +++ b/docs/models/components/two.md @@ -46,8 +46,8 @@ const value: components.ProductPriceSeatBasedCreate = { seatTiers: { tiers: [ { - minSeats: 63601, - pricePerSeat: 931587, + minSeats: 922152, + pricePerSeat: 415895, }, ], }, diff --git a/docs/models/components/webhookbenefitcreatedpayload.md b/docs/models/components/webhookbenefitcreatedpayload.md index 1635d4df..51926681 100644 --- a/docs/models/components/webhookbenefitcreatedpayload.md +++ b/docs/models/components/webhookbenefitcreatedpayload.md @@ -24,16 +24,16 @@ let value: WebhookBenefitCreatedPayload = { organizationId: "", metadata: {}, properties: { - prefix: null, + prefix: "", expires: { - ttl: 84298, - timeframe: "year", + ttl: 93452, + timeframe: "day", }, activations: { - limit: 202982, - enableCustomerAdmin: false, + limit: 777902, + enableCustomerAdmin: true, }, - limitUsage: 666374, + limitUsage: null, }, }, }; diff --git a/docs/models/components/webhookbenefitgrantcreatedpayload.md b/docs/models/components/webhookbenefitgrantcreatedpayload.md index fc49bb7b..3071c06d 100644 --- a/docs/models/components/webhookbenefitgrantcreatedpayload.md +++ b/docs/models/components/webhookbenefitgrantcreatedpayload.md @@ -55,16 +55,16 @@ let value: WebhookBenefitGrantCreatedPayload = { organizationId: "", metadata: {}, properties: { - prefix: null, + prefix: "", expires: { - ttl: 84298, - timeframe: "year", + ttl: 93452, + timeframe: "day", }, activations: { - limit: 202982, - enableCustomerAdmin: false, + limit: 777902, + enableCustomerAdmin: true, }, - limitUsage: 666374, + limitUsage: null, }, }, properties: {}, diff --git a/docs/models/components/webhookbenefitgrantrevokedpayload.md b/docs/models/components/webhookbenefitgrantrevokedpayload.md index 5172b948..ee21bc53 100644 --- a/docs/models/components/webhookbenefitgrantrevokedpayload.md +++ b/docs/models/components/webhookbenefitgrantrevokedpayload.md @@ -55,16 +55,16 @@ let value: WebhookBenefitGrantRevokedPayload = { organizationId: "", metadata: {}, properties: { - prefix: null, + prefix: "", expires: { - ttl: 84298, - timeframe: "year", + ttl: 93452, + timeframe: "day", }, activations: { - limit: 202982, - enableCustomerAdmin: false, + limit: 777902, + enableCustomerAdmin: true, }, - limitUsage: 666374, + limitUsage: null, }, }, properties: {}, diff --git a/docs/models/components/webhookcheckoutcreatedpayload.md b/docs/models/components/webhookcheckoutcreatedpayload.md index fe56e9f8..34963266 100644 --- a/docs/models/components/webhookcheckoutcreatedpayload.md +++ b/docs/models/components/webhookcheckoutcreatedpayload.md @@ -80,43 +80,72 @@ let value: WebhookCheckoutCreatedPayload = { name: "", description: "unwieldy stupendous drat gummy mmm embody above", recurringInterval: "month", - isRecurring: true, - isArchived: false, + recurringIntervalCount: 570037, + isRecurring: false, + isArchived: true, organizationId: "", prices: [ { - createdAt: new Date("2025-11-17T07:41:12.479Z"), - modifiedAt: new Date("2024-06-19T23:33:39.565Z"), + createdAt: new Date("2024-06-19T23:33:39.565Z"), + modifiedAt: null, id: "", - amountType: "free", + amountType: "fixed", isArchived: true, productId: "", - type: "recurring", - recurringInterval: "week", + type: "one_time", + recurringInterval: "year", + priceCurrency: "", + priceAmount: 936645, legacy: true, }, ], - benefits: [], - medias: [], + benefits: [ + { + id: "", + createdAt: new Date("2023-01-24T18:47:57.919Z"), + modifiedAt: new Date("2025-10-21T11:30:14.929Z"), + type: "github_repository", + description: + "mockingly despite aw guidance defensive once at understated admonish", + selectable: false, + deletable: true, + organizationId: "", + }, + ], + medias: [ + { + id: "", + organizationId: "", + name: "", + path: "/home/user", + mimeType: "", + size: 715587, + storageVersion: "", + checksumEtag: "", + checksumSha256Base64: "", + checksumSha256Hex: "", + lastModifiedAt: null, + version: "", + service: "product_media", + isUploaded: false, + createdAt: new Date("2025-12-06T11:20:59.061Z"), + sizeReadable: "", + publicUrl: "https://gaseous-markup.net", + }, + ], }, productPrice: { - createdAt: new Date("2025-09-28T04:49:21.765Z"), - modifiedAt: null, + createdAt: new Date("2025-12-28T07:21:00.728Z"), + modifiedAt: new Date("2025-11-15T05:31:49.462Z"), id: "", - amountType: "seat_based", + amountType: "fixed", isArchived: false, productId: "", type: "recurring", - recurringInterval: "year", + recurringInterval: "month", priceCurrency: "", - seatTiers: { - tiers: [ - { - minSeats: 63601, - pricePerSeat: 931587, - }, - ], - }, + priceAmount: 879932, + legacy: true, }, discount: { duration: "once", @@ -125,27 +154,10 @@ let value: WebhookCheckoutCreatedPayload = { currency: "usd", id: "", name: "", - code: "", + code: null, }, subscriptionId: "", - attachedCustomFields: [ - { - customFieldId: "", - customField: { - createdAt: new Date("2024-06-30T20:57:53.724Z"), - modifiedAt: new Date("2024-03-04T15:14:18.502Z"), - id: "", - metadata: {}, - type: "number", - slug: "", - name: "", - organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737", - properties: {}, - }, - order: 763945, - required: true, - }, - ], + attachedCustomFields: [], customerMetadata: {}, }, }; diff --git a/docs/models/components/webhookcheckoutupdatedpayload.md b/docs/models/components/webhookcheckoutupdatedpayload.md index f6ffdd7a..dec730ca 100644 --- a/docs/models/components/webhookcheckoutupdatedpayload.md +++ b/docs/models/components/webhookcheckoutupdatedpayload.md @@ -80,43 +80,72 @@ let value: WebhookCheckoutUpdatedPayload = { name: "", description: "unwieldy stupendous drat gummy mmm embody above", recurringInterval: "month", - isRecurring: true, - isArchived: false, + recurringIntervalCount: 570037, + isRecurring: false, + isArchived: true, organizationId: "", prices: [ { - createdAt: new Date("2025-11-17T07:41:12.479Z"), - modifiedAt: new Date("2024-06-19T23:33:39.565Z"), + createdAt: new Date("2024-06-19T23:33:39.565Z"), + modifiedAt: null, id: "", - amountType: "free", + amountType: "fixed", isArchived: true, productId: "", - type: "recurring", - recurringInterval: "week", + type: "one_time", + recurringInterval: "year", + priceCurrency: "", + priceAmount: 936645, legacy: true, }, ], - benefits: [], - medias: [], + benefits: [ + { + id: "", + createdAt: new Date("2023-01-24T18:47:57.919Z"), + modifiedAt: new Date("2025-10-21T11:30:14.929Z"), + type: "github_repository", + description: + "mockingly despite aw guidance defensive once at understated admonish", + selectable: false, + deletable: true, + organizationId: "", + }, + ], + medias: [ + { + id: "", + organizationId: "", + name: "", + path: "/home/user", + mimeType: "", + size: 715587, + storageVersion: "", + checksumEtag: "", + checksumSha256Base64: "", + checksumSha256Hex: "", + lastModifiedAt: null, + version: "", + service: "product_media", + isUploaded: false, + createdAt: new Date("2025-12-06T11:20:59.061Z"), + sizeReadable: "", + publicUrl: "https://gaseous-markup.net", + }, + ], }, productPrice: { - createdAt: new Date("2025-09-28T04:49:21.765Z"), - modifiedAt: null, + createdAt: new Date("2025-12-28T07:21:00.728Z"), + modifiedAt: new Date("2025-11-15T05:31:49.462Z"), id: "", - amountType: "seat_based", + amountType: "fixed", isArchived: false, productId: "", type: "recurring", - recurringInterval: "year", + recurringInterval: "month", priceCurrency: "", - seatTiers: { - tiers: [ - { - minSeats: 63601, - pricePerSeat: 931587, - }, - ], - }, + priceAmount: 879932, + legacy: true, }, discount: { duration: "once", @@ -125,27 +154,10 @@ let value: WebhookCheckoutUpdatedPayload = { currency: "usd", id: "", name: "", - code: "", + code: null, }, subscriptionId: "", - attachedCustomFields: [ - { - customFieldId: "", - customField: { - createdAt: new Date("2024-06-30T20:57:53.724Z"), - modifiedAt: new Date("2024-03-04T15:14:18.502Z"), - id: "", - metadata: {}, - type: "number", - slug: "", - name: "", - organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737", - properties: {}, - }, - order: 763945, - required: true, - }, - ], + attachedCustomFields: [], customerMetadata: {}, }, }; diff --git a/docs/models/components/webhookordercreatedpayload.md b/docs/models/components/webhookordercreatedpayload.md index 49e3a595..243c1709 100644 --- a/docs/models/components/webhookordercreatedpayload.md +++ b/docs/models/components/webhookordercreatedpayload.md @@ -50,14 +50,16 @@ let value: WebhookOrderCreatedPayload = { subscriptionId: "", checkoutId: "", metadata: { - "key": true, + "key": 734218, }, platformFeeAmount: 500, customer: { id: "992fae2a-2a17-4b7a-8d9e-e287cf90131b", - createdAt: new Date("2025-03-15T16:51:44.459Z"), - modifiedAt: new Date("2024-05-14T04:26:31.780Z"), - metadata: {}, + createdAt: new Date("2023-10-23T16:50:39.580Z"), + modifiedAt: new Date("2023-12-12T00:57:39.847Z"), + metadata: { + "key": 166283, + }, externalId: "usr_1337", email: "customer@example.com", emailVerified: true, @@ -70,69 +72,74 @@ let value: WebhookOrderCreatedPayload = { "us_ein", ], organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737", - deletedAt: new Date("2023-07-02T05:54:26.991Z"), + deletedAt: new Date("2025-04-19T04:57:52.293Z"), avatarUrl: "https://www.gravatar.com/avatar/xxx?d=404", }, userId: "", product: { metadata: { - "key": 765700, + "key": false, }, id: "", - createdAt: new Date("2025-09-28T13:54:31.917Z"), - modifiedAt: new Date("2025-11-14T07:33:56.379Z"), - trialInterval: "month", - trialIntervalCount: 709592, + createdAt: new Date("2024-08-18T23:02:56.814Z"), + modifiedAt: new Date("2025-02-16T17:05:48.519Z"), + trialInterval: null, + trialIntervalCount: 397442, name: "", description: null, - recurringInterval: "week", - isRecurring: true, - isArchived: true, + recurringInterval: null, + recurringIntervalCount: 212587, + isRecurring: false, + isArchived: false, organizationId: "", }, discount: { - duration: "repeating", - type: "percentage", + duration: "forever", + type: "fixed", amount: 1000, currency: "usd", - createdAt: new Date("2024-09-03T13:37:44.614Z"), + createdAt: new Date("2025-03-11T05:21:51.572Z"), modifiedAt: null, id: "", metadata: {}, name: "", - code: null, - startsAt: new Date("2023-02-14T18:58:15.064Z"), - endsAt: new Date("2024-09-18T21:55:24.536Z"), - maxRedemptions: null, - redemptionsCount: 516035, + code: "", + startsAt: null, + endsAt: new Date("2025-03-06T23:30:57.183Z"), + maxRedemptions: 495740, + redemptionsCount: 775225, organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737", }, subscription: { - metadata: {}, - createdAt: new Date("2024-06-27T07:56:50.097Z"), - modifiedAt: new Date("2024-01-16T07:39:17.060Z"), + metadata: { + "key": 4420.08, + }, + createdAt: new Date("2023-12-26T18:24:48.736Z"), + modifiedAt: new Date("2024-05-24T18:24:21.591Z"), id: "", amount: 10000, currency: "usd", recurringInterval: "month", - status: "active", - currentPeriodStart: new Date("2024-04-29T10:34:50.731Z"), - currentPeriodEnd: new Date("2024-05-26T14:35:18.792Z"), - trialStart: new Date("2025-03-17T04:48:05.046Z"), + recurringIntervalCount: 960, + status: "incomplete_expired", + currentPeriodStart: new Date("2023-10-11T14:34:45.147Z"), + currentPeriodEnd: new Date("2024-10-22T20:19:14.907Z"), + trialStart: new Date("2025-07-09T10:12:20.525Z"), trialEnd: null, cancelAtPeriodEnd: true, - canceledAt: new Date("2023-05-04T20:55:46.311Z"), - startedAt: new Date("2025-10-27T14:16:47.398Z"), - endsAt: new Date("2023-01-05T15:34:29.499Z"), - endedAt: null, + canceledAt: new Date("2025-11-22T14:25:51.795Z"), + startedAt: new Date("2024-04-30T15:21:57.777Z"), + endsAt: new Date("2023-11-02T13:05:04.577Z"), + endedAt: new Date("2025-03-15T06:28:35.975Z"), customerId: "", productId: "", discountId: "", checkoutId: "", - customerCancellationReason: "switched_service", + customerCancellationReason: "low_quality", customerCancellationComment: "", }, items: [], + description: "Pro Plan", }, }; ``` diff --git a/docs/models/components/webhookorderpaidpayload.md b/docs/models/components/webhookorderpaidpayload.md index 8eec5133..4368ebb5 100644 --- a/docs/models/components/webhookorderpaidpayload.md +++ b/docs/models/components/webhookorderpaidpayload.md @@ -43,14 +43,16 @@ let value: WebhookOrderPaidPayload = { subscriptionId: "", checkoutId: "", metadata: { - "key": true, + "key": 734218, }, platformFeeAmount: 500, customer: { id: "992fae2a-2a17-4b7a-8d9e-e287cf90131b", - createdAt: new Date("2025-03-15T16:51:44.459Z"), - modifiedAt: new Date("2024-05-14T04:26:31.780Z"), - metadata: {}, + createdAt: new Date("2023-10-23T16:50:39.580Z"), + modifiedAt: new Date("2023-12-12T00:57:39.847Z"), + metadata: { + "key": 166283, + }, externalId: "usr_1337", email: "customer@example.com", emailVerified: true, @@ -63,69 +65,74 @@ let value: WebhookOrderPaidPayload = { "us_ein", ], organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737", - deletedAt: new Date("2023-07-02T05:54:26.991Z"), + deletedAt: new Date("2025-04-19T04:57:52.293Z"), avatarUrl: "https://www.gravatar.com/avatar/xxx?d=404", }, userId: "", product: { metadata: { - "key": 765700, + "key": false, }, id: "", - createdAt: new Date("2025-09-28T13:54:31.917Z"), - modifiedAt: new Date("2025-11-14T07:33:56.379Z"), - trialInterval: "month", - trialIntervalCount: 709592, + createdAt: new Date("2024-08-18T23:02:56.814Z"), + modifiedAt: new Date("2025-02-16T17:05:48.519Z"), + trialInterval: null, + trialIntervalCount: 397442, name: "", description: null, - recurringInterval: "week", - isRecurring: true, - isArchived: true, + recurringInterval: null, + recurringIntervalCount: 212587, + isRecurring: false, + isArchived: false, organizationId: "", }, discount: { - duration: "repeating", - type: "percentage", + duration: "forever", + type: "fixed", amount: 1000, currency: "usd", - createdAt: new Date("2024-09-03T13:37:44.614Z"), + createdAt: new Date("2025-03-11T05:21:51.572Z"), modifiedAt: null, id: "", metadata: {}, name: "", - code: null, - startsAt: new Date("2023-02-14T18:58:15.064Z"), - endsAt: new Date("2024-09-18T21:55:24.536Z"), - maxRedemptions: null, - redemptionsCount: 516035, + code: "", + startsAt: null, + endsAt: new Date("2025-03-06T23:30:57.183Z"), + maxRedemptions: 495740, + redemptionsCount: 775225, organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737", }, subscription: { - metadata: {}, - createdAt: new Date("2024-06-27T07:56:50.097Z"), - modifiedAt: new Date("2024-01-16T07:39:17.060Z"), + metadata: { + "key": 4420.08, + }, + createdAt: new Date("2023-12-26T18:24:48.736Z"), + modifiedAt: new Date("2024-05-24T18:24:21.591Z"), id: "", amount: 10000, currency: "usd", recurringInterval: "month", - status: "active", - currentPeriodStart: new Date("2024-04-29T10:34:50.731Z"), - currentPeriodEnd: new Date("2024-05-26T14:35:18.792Z"), - trialStart: new Date("2025-03-17T04:48:05.046Z"), + recurringIntervalCount: 960, + status: "incomplete_expired", + currentPeriodStart: new Date("2023-10-11T14:34:45.147Z"), + currentPeriodEnd: new Date("2024-10-22T20:19:14.907Z"), + trialStart: new Date("2025-07-09T10:12:20.525Z"), trialEnd: null, cancelAtPeriodEnd: true, - canceledAt: new Date("2023-05-04T20:55:46.311Z"), - startedAt: new Date("2025-10-27T14:16:47.398Z"), - endsAt: new Date("2023-01-05T15:34:29.499Z"), - endedAt: null, + canceledAt: new Date("2025-11-22T14:25:51.795Z"), + startedAt: new Date("2024-04-30T15:21:57.777Z"), + endsAt: new Date("2023-11-02T13:05:04.577Z"), + endedAt: new Date("2025-03-15T06:28:35.975Z"), customerId: "", productId: "", discountId: "", checkoutId: "", - customerCancellationReason: "switched_service", + customerCancellationReason: "low_quality", customerCancellationComment: "", }, items: [], + description: "Pro Plan", }, }; ``` diff --git a/docs/models/components/webhookorderrefundedpayload.md b/docs/models/components/webhookorderrefundedpayload.md index e6906836..5167dbdd 100644 --- a/docs/models/components/webhookorderrefundedpayload.md +++ b/docs/models/components/webhookorderrefundedpayload.md @@ -41,14 +41,16 @@ let value: WebhookOrderRefundedPayload = { subscriptionId: "", checkoutId: "", metadata: { - "key": true, + "key": 734218, }, platformFeeAmount: 500, customer: { id: "992fae2a-2a17-4b7a-8d9e-e287cf90131b", - createdAt: new Date("2025-03-15T16:51:44.459Z"), - modifiedAt: new Date("2024-05-14T04:26:31.780Z"), - metadata: {}, + createdAt: new Date("2023-10-23T16:50:39.580Z"), + modifiedAt: new Date("2023-12-12T00:57:39.847Z"), + metadata: { + "key": 166283, + }, externalId: "usr_1337", email: "customer@example.com", emailVerified: true, @@ -61,69 +63,74 @@ let value: WebhookOrderRefundedPayload = { "us_ein", ], organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737", - deletedAt: new Date("2023-07-02T05:54:26.991Z"), + deletedAt: new Date("2025-04-19T04:57:52.293Z"), avatarUrl: "https://www.gravatar.com/avatar/xxx?d=404", }, userId: "", product: { metadata: { - "key": 765700, + "key": false, }, id: "", - createdAt: new Date("2025-09-28T13:54:31.917Z"), - modifiedAt: new Date("2025-11-14T07:33:56.379Z"), - trialInterval: "month", - trialIntervalCount: 709592, + createdAt: new Date("2024-08-18T23:02:56.814Z"), + modifiedAt: new Date("2025-02-16T17:05:48.519Z"), + trialInterval: null, + trialIntervalCount: 397442, name: "", description: null, - recurringInterval: "week", - isRecurring: true, - isArchived: true, + recurringInterval: null, + recurringIntervalCount: 212587, + isRecurring: false, + isArchived: false, organizationId: "", }, discount: { - duration: "repeating", - type: "percentage", + duration: "forever", + type: "fixed", amount: 1000, currency: "usd", - createdAt: new Date("2024-09-03T13:37:44.614Z"), + createdAt: new Date("2025-03-11T05:21:51.572Z"), modifiedAt: null, id: "", metadata: {}, name: "", - code: null, - startsAt: new Date("2023-02-14T18:58:15.064Z"), - endsAt: new Date("2024-09-18T21:55:24.536Z"), - maxRedemptions: null, - redemptionsCount: 516035, + code: "", + startsAt: null, + endsAt: new Date("2025-03-06T23:30:57.183Z"), + maxRedemptions: 495740, + redemptionsCount: 775225, organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737", }, subscription: { - metadata: {}, - createdAt: new Date("2024-06-27T07:56:50.097Z"), - modifiedAt: new Date("2024-01-16T07:39:17.060Z"), + metadata: { + "key": 4420.08, + }, + createdAt: new Date("2023-12-26T18:24:48.736Z"), + modifiedAt: new Date("2024-05-24T18:24:21.591Z"), id: "", amount: 10000, currency: "usd", recurringInterval: "month", - status: "active", - currentPeriodStart: new Date("2024-04-29T10:34:50.731Z"), - currentPeriodEnd: new Date("2024-05-26T14:35:18.792Z"), - trialStart: new Date("2025-03-17T04:48:05.046Z"), + recurringIntervalCount: 960, + status: "incomplete_expired", + currentPeriodStart: new Date("2023-10-11T14:34:45.147Z"), + currentPeriodEnd: new Date("2024-10-22T20:19:14.907Z"), + trialStart: new Date("2025-07-09T10:12:20.525Z"), trialEnd: null, cancelAtPeriodEnd: true, - canceledAt: new Date("2023-05-04T20:55:46.311Z"), - startedAt: new Date("2025-10-27T14:16:47.398Z"), - endsAt: new Date("2023-01-05T15:34:29.499Z"), - endedAt: null, + canceledAt: new Date("2025-11-22T14:25:51.795Z"), + startedAt: new Date("2024-04-30T15:21:57.777Z"), + endsAt: new Date("2023-11-02T13:05:04.577Z"), + endedAt: new Date("2025-03-15T06:28:35.975Z"), customerId: "", productId: "", discountId: "", checkoutId: "", - customerCancellationReason: "switched_service", + customerCancellationReason: "low_quality", customerCancellationComment: "", }, items: [], + description: "Pro Plan", }, }; ``` diff --git a/docs/models/components/webhookorderupdatedpayload.md b/docs/models/components/webhookorderupdatedpayload.md index 2dbc72f3..05db1692 100644 --- a/docs/models/components/webhookorderupdatedpayload.md +++ b/docs/models/components/webhookorderupdatedpayload.md @@ -46,14 +46,16 @@ let value: WebhookOrderUpdatedPayload = { subscriptionId: "", checkoutId: "", metadata: { - "key": true, + "key": 734218, }, platformFeeAmount: 500, customer: { id: "992fae2a-2a17-4b7a-8d9e-e287cf90131b", - createdAt: new Date("2025-03-15T16:51:44.459Z"), - modifiedAt: new Date("2024-05-14T04:26:31.780Z"), - metadata: {}, + createdAt: new Date("2023-10-23T16:50:39.580Z"), + modifiedAt: new Date("2023-12-12T00:57:39.847Z"), + metadata: { + "key": 166283, + }, externalId: "usr_1337", email: "customer@example.com", emailVerified: true, @@ -66,69 +68,74 @@ let value: WebhookOrderUpdatedPayload = { "us_ein", ], organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737", - deletedAt: new Date("2023-07-02T05:54:26.991Z"), + deletedAt: new Date("2025-04-19T04:57:52.293Z"), avatarUrl: "https://www.gravatar.com/avatar/xxx?d=404", }, userId: "", product: { metadata: { - "key": 765700, + "key": false, }, id: "", - createdAt: new Date("2025-09-28T13:54:31.917Z"), - modifiedAt: new Date("2025-11-14T07:33:56.379Z"), - trialInterval: "month", - trialIntervalCount: 709592, + createdAt: new Date("2024-08-18T23:02:56.814Z"), + modifiedAt: new Date("2025-02-16T17:05:48.519Z"), + trialInterval: null, + trialIntervalCount: 397442, name: "", description: null, - recurringInterval: "week", - isRecurring: true, - isArchived: true, + recurringInterval: null, + recurringIntervalCount: 212587, + isRecurring: false, + isArchived: false, organizationId: "", }, discount: { - duration: "repeating", - type: "percentage", + duration: "forever", + type: "fixed", amount: 1000, currency: "usd", - createdAt: new Date("2024-09-03T13:37:44.614Z"), + createdAt: new Date("2025-03-11T05:21:51.572Z"), modifiedAt: null, id: "", metadata: {}, name: "", - code: null, - startsAt: new Date("2023-02-14T18:58:15.064Z"), - endsAt: new Date("2024-09-18T21:55:24.536Z"), - maxRedemptions: null, - redemptionsCount: 516035, + code: "", + startsAt: null, + endsAt: new Date("2025-03-06T23:30:57.183Z"), + maxRedemptions: 495740, + redemptionsCount: 775225, organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737", }, subscription: { - metadata: {}, - createdAt: new Date("2024-06-27T07:56:50.097Z"), - modifiedAt: new Date("2024-01-16T07:39:17.060Z"), + metadata: { + "key": 4420.08, + }, + createdAt: new Date("2023-12-26T18:24:48.736Z"), + modifiedAt: new Date("2024-05-24T18:24:21.591Z"), id: "", amount: 10000, currency: "usd", recurringInterval: "month", - status: "active", - currentPeriodStart: new Date("2024-04-29T10:34:50.731Z"), - currentPeriodEnd: new Date("2024-05-26T14:35:18.792Z"), - trialStart: new Date("2025-03-17T04:48:05.046Z"), + recurringIntervalCount: 960, + status: "incomplete_expired", + currentPeriodStart: new Date("2023-10-11T14:34:45.147Z"), + currentPeriodEnd: new Date("2024-10-22T20:19:14.907Z"), + trialStart: new Date("2025-07-09T10:12:20.525Z"), trialEnd: null, cancelAtPeriodEnd: true, - canceledAt: new Date("2023-05-04T20:55:46.311Z"), - startedAt: new Date("2025-10-27T14:16:47.398Z"), - endsAt: new Date("2023-01-05T15:34:29.499Z"), - endedAt: null, + canceledAt: new Date("2025-11-22T14:25:51.795Z"), + startedAt: new Date("2024-04-30T15:21:57.777Z"), + endsAt: new Date("2023-11-02T13:05:04.577Z"), + endedAt: new Date("2025-03-15T06:28:35.975Z"), customerId: "", productId: "", discountId: "", checkoutId: "", - customerCancellationReason: "switched_service", + customerCancellationReason: "low_quality", customerCancellationComment: "", }, items: [], + description: "Pro Plan", }, }; ``` diff --git a/docs/models/components/webhookproductcreatedpayload.md b/docs/models/components/webhookproductcreatedpayload.md index a160a575..7c8cd82c 100644 --- a/docs/models/components/webhookproductcreatedpayload.md +++ b/docs/models/components/webhookproductcreatedpayload.md @@ -21,57 +21,77 @@ let value: WebhookProductCreatedPayload = { name: "", description: null, recurringInterval: "week", - isRecurring: true, + recurringIntervalCount: 276287, + isRecurring: false, isArchived: true, organizationId: "", - metadata: { - "key": 404125, - }, + metadata: {}, prices: [], benefits: [ { id: "", - createdAt: new Date("2025-07-22T11:48:28.197Z"), - modifiedAt: new Date("2025-01-23T12:47:54.549Z"), + createdAt: new Date("2023-05-31T22:25:46.704Z"), + modifiedAt: new Date("2023-07-23T01:35:07.884Z"), type: "license_keys", - description: "duh behind via for enchanting negotiation source sore", - selectable: false, - deletable: true, + description: + "hmph depend pish behind chainstay spattering actually owlishly to", + selectable: true, + deletable: false, organizationId: "", - metadata: { - "key": true, - }, + metadata: {}, properties: { - prefix: null, + prefix: "", expires: { - ttl: 84298, - timeframe: "year", + ttl: 93452, + timeframe: "day", }, activations: { - limit: 202982, - enableCustomerAdmin: false, + limit: 777902, + enableCustomerAdmin: true, }, - limitUsage: 666374, + limitUsage: null, }, }, ], - medias: [], + medias: [ + { + id: "", + organizationId: "", + name: "", + path: "/home/user", + mimeType: "", + size: 715587, + storageVersion: "", + checksumEtag: "", + checksumSha256Base64: "", + checksumSha256Hex: "", + lastModifiedAt: null, + version: "", + service: "product_media", + isUploaded: false, + createdAt: new Date("2025-12-06T11:20:59.061Z"), + sizeReadable: "", + publicUrl: "https://gaseous-markup.net", + }, + ], attachedCustomFields: [ { customFieldId: "", customField: { - createdAt: new Date("2024-06-30T20:57:53.724Z"), - modifiedAt: new Date("2024-03-04T15:14:18.502Z"), + createdAt: new Date("2025-05-25T16:58:54.608Z"), + modifiedAt: new Date("2023-09-04T14:15:13.546Z"), id: "", - metadata: {}, - type: "number", + metadata: { + "key": false, + }, + type: "text", slug: "", name: "", organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737", properties: {}, }, - order: 763945, - required: true, + order: 93108, + required: false, }, ], }, diff --git a/docs/models/components/webhookproductupdatedpayload.md b/docs/models/components/webhookproductupdatedpayload.md index 6e9afd63..6c7d51b1 100644 --- a/docs/models/components/webhookproductupdatedpayload.md +++ b/docs/models/components/webhookproductupdatedpayload.md @@ -21,57 +21,77 @@ let value: WebhookProductUpdatedPayload = { name: "", description: null, recurringInterval: "week", - isRecurring: true, + recurringIntervalCount: 276287, + isRecurring: false, isArchived: true, organizationId: "", - metadata: { - "key": 404125, - }, + metadata: {}, prices: [], benefits: [ { id: "", - createdAt: new Date("2025-07-22T11:48:28.197Z"), - modifiedAt: new Date("2025-01-23T12:47:54.549Z"), + createdAt: new Date("2023-05-31T22:25:46.704Z"), + modifiedAt: new Date("2023-07-23T01:35:07.884Z"), type: "license_keys", - description: "duh behind via for enchanting negotiation source sore", - selectable: false, - deletable: true, + description: + "hmph depend pish behind chainstay spattering actually owlishly to", + selectable: true, + deletable: false, organizationId: "", - metadata: { - "key": true, - }, + metadata: {}, properties: { - prefix: null, + prefix: "", expires: { - ttl: 84298, - timeframe: "year", + ttl: 93452, + timeframe: "day", }, activations: { - limit: 202982, - enableCustomerAdmin: false, + limit: 777902, + enableCustomerAdmin: true, }, - limitUsage: 666374, + limitUsage: null, }, }, ], - medias: [], + medias: [ + { + id: "", + organizationId: "", + name: "", + path: "/home/user", + mimeType: "", + size: 715587, + storageVersion: "", + checksumEtag: "", + checksumSha256Base64: "", + checksumSha256Hex: "", + lastModifiedAt: null, + version: "", + service: "product_media", + isUploaded: false, + createdAt: new Date("2025-12-06T11:20:59.061Z"), + sizeReadable: "", + publicUrl: "https://gaseous-markup.net", + }, + ], attachedCustomFields: [ { customFieldId: "", customField: { - createdAt: new Date("2024-06-30T20:57:53.724Z"), - modifiedAt: new Date("2024-03-04T15:14:18.502Z"), + createdAt: new Date("2025-05-25T16:58:54.608Z"), + modifiedAt: new Date("2023-09-04T14:15:13.546Z"), id: "", - metadata: {}, - type: "number", + metadata: { + "key": false, + }, + type: "text", slug: "", name: "", organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737", properties: {}, }, - order: 763945, - required: true, + order: 93108, + required: false, }, ], }, diff --git a/docs/models/components/webhooksubscriptionactivepayload.md b/docs/models/components/webhooksubscriptionactivepayload.md index a71552a7..3e77ba57 100644 --- a/docs/models/components/webhooksubscriptionactivepayload.md +++ b/docs/models/components/webhooksubscriptionactivepayload.md @@ -20,10 +20,11 @@ let value: WebhookSubscriptionActivePayload = { amount: 10000, currency: "usd", recurringInterval: "week", - status: "unpaid", - currentPeriodStart: new Date("2025-04-10T06:28:48.544Z"), - currentPeriodEnd: new Date("2023-12-12T07:39:41.542Z"), - trialStart: new Date("2023-03-07T01:03:04.491Z"), + recurringIntervalCount: 928876, + status: "canceled", + currentPeriodStart: new Date("2024-07-08T14:40:56.923Z"), + currentPeriodEnd: new Date("2024-08-05T00:54:37.375Z"), + trialStart: null, trialEnd: new Date("2025-06-02T07:09:04.410Z"), cancelAtPeriodEnd: true, canceledAt: new Date("2023-02-17T00:31:21.328Z"), @@ -70,22 +71,23 @@ let value: WebhookSubscriptionActivePayload = { name: "", description: "sense busily outside extremely challenge", recurringInterval: "month", - isRecurring: true, - isArchived: false, + recurringIntervalCount: null, + isRecurring: false, + isArchived: true, organizationId: "", - metadata: {}, + metadata: { + "key": 3270.53, + }, prices: [ { - createdAt: new Date("2024-12-14T23:57:12.104Z"), - modifiedAt: new Date("2025-02-07T10:27:56.492Z"), + createdAt: new Date("2024-08-30T00:59:04.800Z"), + modifiedAt: new Date("2023-11-19T07:09:34.058Z"), id: "", - amountType: "fixed", - isArchived: false, + amountType: "free", + isArchived: true, productId: "", - type: "one_time", + type: "recurring", recurringInterval: "week", - priceCurrency: "", - priceAmount: 350820, legacy: true, }, ], diff --git a/docs/models/components/webhooksubscriptioncanceledpayload.md b/docs/models/components/webhooksubscriptioncanceledpayload.md index 5df5e689..ac6ba5fa 100644 --- a/docs/models/components/webhooksubscriptioncanceledpayload.md +++ b/docs/models/components/webhooksubscriptioncanceledpayload.md @@ -20,10 +20,11 @@ let value: WebhookSubscriptionCanceledPayload = { amount: 10000, currency: "usd", recurringInterval: "week", - status: "unpaid", - currentPeriodStart: new Date("2025-04-10T06:28:48.544Z"), - currentPeriodEnd: new Date("2023-12-12T07:39:41.542Z"), - trialStart: new Date("2023-03-07T01:03:04.491Z"), + recurringIntervalCount: 928876, + status: "canceled", + currentPeriodStart: new Date("2024-07-08T14:40:56.923Z"), + currentPeriodEnd: new Date("2024-08-05T00:54:37.375Z"), + trialStart: null, trialEnd: new Date("2025-06-02T07:09:04.410Z"), cancelAtPeriodEnd: true, canceledAt: new Date("2023-02-17T00:31:21.328Z"), @@ -70,22 +71,23 @@ let value: WebhookSubscriptionCanceledPayload = { name: "", description: "sense busily outside extremely challenge", recurringInterval: "month", - isRecurring: true, - isArchived: false, + recurringIntervalCount: null, + isRecurring: false, + isArchived: true, organizationId: "", - metadata: {}, + metadata: { + "key": 3270.53, + }, prices: [ { - createdAt: new Date("2024-12-14T23:57:12.104Z"), - modifiedAt: new Date("2025-02-07T10:27:56.492Z"), + createdAt: new Date("2024-08-30T00:59:04.800Z"), + modifiedAt: new Date("2023-11-19T07:09:34.058Z"), id: "", - amountType: "fixed", - isArchived: false, + amountType: "free", + isArchived: true, productId: "", - type: "one_time", + type: "recurring", recurringInterval: "week", - priceCurrency: "", - priceAmount: 350820, legacy: true, }, ], diff --git a/docs/models/components/webhooksubscriptioncreatedpayload.md b/docs/models/components/webhooksubscriptioncreatedpayload.md index cad30e5d..7bc3daf9 100644 --- a/docs/models/components/webhooksubscriptioncreatedpayload.md +++ b/docs/models/components/webhooksubscriptioncreatedpayload.md @@ -21,10 +21,11 @@ let value: WebhookSubscriptionCreatedPayload = { amount: 10000, currency: "usd", recurringInterval: "week", - status: "unpaid", - currentPeriodStart: new Date("2025-04-10T06:28:48.544Z"), - currentPeriodEnd: new Date("2023-12-12T07:39:41.542Z"), - trialStart: new Date("2023-03-07T01:03:04.491Z"), + recurringIntervalCount: 928876, + status: "canceled", + currentPeriodStart: new Date("2024-07-08T14:40:56.923Z"), + currentPeriodEnd: new Date("2024-08-05T00:54:37.375Z"), + trialStart: null, trialEnd: new Date("2025-06-02T07:09:04.410Z"), cancelAtPeriodEnd: true, canceledAt: new Date("2023-02-17T00:31:21.328Z"), @@ -71,22 +72,23 @@ let value: WebhookSubscriptionCreatedPayload = { name: "", description: "sense busily outside extremely challenge", recurringInterval: "month", - isRecurring: true, - isArchived: false, + recurringIntervalCount: null, + isRecurring: false, + isArchived: true, organizationId: "", - metadata: {}, + metadata: { + "key": 3270.53, + }, prices: [ { - createdAt: new Date("2024-12-14T23:57:12.104Z"), - modifiedAt: new Date("2025-02-07T10:27:56.492Z"), + createdAt: new Date("2024-08-30T00:59:04.800Z"), + modifiedAt: new Date("2023-11-19T07:09:34.058Z"), id: "", - amountType: "fixed", - isArchived: false, + amountType: "free", + isArchived: true, productId: "", - type: "one_time", + type: "recurring", recurringInterval: "week", - priceCurrency: "", - priceAmount: 350820, legacy: true, }, ], diff --git a/docs/models/components/webhooksubscriptionrevokedpayload.md b/docs/models/components/webhooksubscriptionrevokedpayload.md index 4a123c0d..94d942dc 100644 --- a/docs/models/components/webhooksubscriptionrevokedpayload.md +++ b/docs/models/components/webhooksubscriptionrevokedpayload.md @@ -20,10 +20,11 @@ let value: WebhookSubscriptionRevokedPayload = { amount: 10000, currency: "usd", recurringInterval: "week", - status: "unpaid", - currentPeriodStart: new Date("2025-04-10T06:28:48.544Z"), - currentPeriodEnd: new Date("2023-12-12T07:39:41.542Z"), - trialStart: new Date("2023-03-07T01:03:04.491Z"), + recurringIntervalCount: 928876, + status: "canceled", + currentPeriodStart: new Date("2024-07-08T14:40:56.923Z"), + currentPeriodEnd: new Date("2024-08-05T00:54:37.375Z"), + trialStart: null, trialEnd: new Date("2025-06-02T07:09:04.410Z"), cancelAtPeriodEnd: true, canceledAt: new Date("2023-02-17T00:31:21.328Z"), @@ -70,22 +71,23 @@ let value: WebhookSubscriptionRevokedPayload = { name: "", description: "sense busily outside extremely challenge", recurringInterval: "month", - isRecurring: true, - isArchived: false, + recurringIntervalCount: null, + isRecurring: false, + isArchived: true, organizationId: "", - metadata: {}, + metadata: { + "key": 3270.53, + }, prices: [ { - createdAt: new Date("2024-12-14T23:57:12.104Z"), - modifiedAt: new Date("2025-02-07T10:27:56.492Z"), + createdAt: new Date("2024-08-30T00:59:04.800Z"), + modifiedAt: new Date("2023-11-19T07:09:34.058Z"), id: "", - amountType: "fixed", - isArchived: false, + amountType: "free", + isArchived: true, productId: "", - type: "one_time", + type: "recurring", recurringInterval: "week", - priceCurrency: "", - priceAmount: 350820, legacy: true, }, ], diff --git a/docs/models/components/webhooksubscriptionuncanceledpayload.md b/docs/models/components/webhooksubscriptionuncanceledpayload.md index 5c0fa869..537f3166 100644 --- a/docs/models/components/webhooksubscriptionuncanceledpayload.md +++ b/docs/models/components/webhooksubscriptionuncanceledpayload.md @@ -19,10 +19,11 @@ let value: WebhookSubscriptionUncanceledPayload = { amount: 10000, currency: "usd", recurringInterval: "week", - status: "unpaid", - currentPeriodStart: new Date("2025-04-10T06:28:48.544Z"), - currentPeriodEnd: new Date("2023-12-12T07:39:41.542Z"), - trialStart: new Date("2023-03-07T01:03:04.491Z"), + recurringIntervalCount: 928876, + status: "canceled", + currentPeriodStart: new Date("2024-07-08T14:40:56.923Z"), + currentPeriodEnd: new Date("2024-08-05T00:54:37.375Z"), + trialStart: null, trialEnd: new Date("2025-06-02T07:09:04.410Z"), cancelAtPeriodEnd: true, canceledAt: new Date("2023-02-17T00:31:21.328Z"), @@ -69,22 +70,23 @@ let value: WebhookSubscriptionUncanceledPayload = { name: "", description: "sense busily outside extremely challenge", recurringInterval: "month", - isRecurring: true, - isArchived: false, + recurringIntervalCount: null, + isRecurring: false, + isArchived: true, organizationId: "", - metadata: {}, + metadata: { + "key": 3270.53, + }, prices: [ { - createdAt: new Date("2024-12-14T23:57:12.104Z"), - modifiedAt: new Date("2025-02-07T10:27:56.492Z"), + createdAt: new Date("2024-08-30T00:59:04.800Z"), + modifiedAt: new Date("2023-11-19T07:09:34.058Z"), id: "", - amountType: "fixed", - isArchived: false, + amountType: "free", + isArchived: true, productId: "", - type: "one_time", + type: "recurring", recurringInterval: "week", - priceCurrency: "", - priceAmount: 350820, legacy: true, }, ], diff --git a/docs/models/components/webhooksubscriptionupdatedpayload.md b/docs/models/components/webhooksubscriptionupdatedpayload.md index 42b32f7c..687184b8 100644 --- a/docs/models/components/webhooksubscriptionupdatedpayload.md +++ b/docs/models/components/webhooksubscriptionupdatedpayload.md @@ -23,10 +23,11 @@ let value: WebhookSubscriptionUpdatedPayload = { amount: 10000, currency: "usd", recurringInterval: "week", - status: "unpaid", - currentPeriodStart: new Date("2025-04-10T06:28:48.544Z"), - currentPeriodEnd: new Date("2023-12-12T07:39:41.542Z"), - trialStart: new Date("2023-03-07T01:03:04.491Z"), + recurringIntervalCount: 928876, + status: "canceled", + currentPeriodStart: new Date("2024-07-08T14:40:56.923Z"), + currentPeriodEnd: new Date("2024-08-05T00:54:37.375Z"), + trialStart: null, trialEnd: new Date("2025-06-02T07:09:04.410Z"), cancelAtPeriodEnd: true, canceledAt: new Date("2023-02-17T00:31:21.328Z"), @@ -73,22 +74,23 @@ let value: WebhookSubscriptionUpdatedPayload = { name: "", description: "sense busily outside extremely challenge", recurringInterval: "month", - isRecurring: true, - isArchived: false, + recurringIntervalCount: null, + isRecurring: false, + isArchived: true, organizationId: "", - metadata: {}, + metadata: { + "key": 3270.53, + }, prices: [ { - createdAt: new Date("2024-12-14T23:57:12.104Z"), - modifiedAt: new Date("2025-02-07T10:27:56.492Z"), + createdAt: new Date("2024-08-30T00:59:04.800Z"), + modifiedAt: new Date("2023-11-19T07:09:34.058Z"), id: "", - amountType: "fixed", - isArchived: false, + amountType: "free", + isArchived: true, productId: "", - type: "one_time", + type: "recurring", recurringInterval: "week", - priceCurrency: "", - priceAmount: 350820, legacy: true, }, ], diff --git a/docs/models/errors/invoicealreadyexists.md b/docs/models/errors/invoicealreadyexists.md deleted file mode 100644 index d86d5f5d..00000000 --- a/docs/models/errors/invoicealreadyexists.md +++ /dev/null @@ -1,16 +0,0 @@ -# InvoiceAlreadyExists - -## Example Usage - -```typescript -import { InvoiceAlreadyExists } from "@polar-sh/sdk/models/errors/invoicealreadyexists.js"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------- | -------------------- | -------------------- | -------------------- | -------------------- | -| `error` | *string* | :heavy_check_mark: | N/A | InvoiceAlreadyExists | -| `detail` | *string* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/customerportalbenefitgrantslistresponse.md b/docs/models/operations/customerportalbenefitgrantslistresponse.md index 8a944aa2..e14524be 100644 --- a/docs/models/operations/customerportalbenefitgrantslistresponse.md +++ b/docs/models/operations/customerportalbenefitgrantslistresponse.md @@ -63,6 +63,7 @@ let value: CustomerPortalBenefitGrantsListResponse = { featureSettings: { issueFundingEnabled: false, seatBasedPricingEnabled: false, + revopsEnabled: false, }, subscriptionSettings: { allowMultipleSubscriptions: true, diff --git a/docs/models/operations/customerportalseatslistseatsrequest.md b/docs/models/operations/customerportalseatslistseatsrequest.md index 30f9c90d..647484c7 100644 --- a/docs/models/operations/customerportalseatslistseatsrequest.md +++ b/docs/models/operations/customerportalseatslistseatsrequest.md @@ -5,13 +5,12 @@ ```typescript import { CustomerPortalSeatsListSeatsRequest } from "@polar-sh/sdk/models/operations/customerportalseatslistseats.js"; -let value: CustomerPortalSeatsListSeatsRequest = { - subscriptionId: "", -}; +let value: CustomerPortalSeatsListSeatsRequest = {}; ``` ## Fields | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `subscriptionId` | *string* | :heavy_check_mark: | Subscription ID | \ No newline at end of file +| `subscriptionId` | *string* | :heavy_minus_sign: | Subscription ID | +| `orderId` | *string* | :heavy_minus_sign: | Order ID | \ No newline at end of file diff --git a/docs/models/operations/customerportalsubscriptionslistresponse.md b/docs/models/operations/customerportalsubscriptionslistresponse.md index bb2953b4..cbb814d1 100644 --- a/docs/models/operations/customerportalsubscriptionslistresponse.md +++ b/docs/models/operations/customerportalsubscriptionslistresponse.md @@ -15,21 +15,22 @@ let value: CustomerPortalSubscriptionsListResponse = { amount: 10000, currency: "usd", recurringInterval: "day", - status: "unpaid", - currentPeriodStart: new Date("2024-02-23T17:53:28.293Z"), - currentPeriodEnd: new Date("2023-07-26T13:42:22.696Z"), - trialStart: new Date("2024-04-26T18:30:27.337Z"), - trialEnd: new Date("2024-09-10T16:41:08.863Z"), + recurringIntervalCount: 955385, + status: "trialing", + currentPeriodStart: new Date("2024-06-04T23:43:59.093Z"), + currentPeriodEnd: new Date("2025-12-12T06:24:34.907Z"), + trialStart: new Date("2023-07-16T18:10:41.850Z"), + trialEnd: new Date("2023-05-10T15:41:14.073Z"), cancelAtPeriodEnd: true, - canceledAt: null, - startedAt: new Date("2025-02-07T05:43:32.303Z"), - endsAt: new Date("2024-02-22T11:50:37.052Z"), - endedAt: new Date("2024-01-21T21:40:10.018Z"), + canceledAt: new Date("2025-02-07T05:43:32.303Z"), + startedAt: new Date("2024-02-22T11:50:37.052Z"), + endsAt: new Date("2024-01-21T21:40:10.018Z"), + endedAt: null, customerId: "", productId: "", - discountId: null, + discountId: "", checkoutId: "", - customerCancellationReason: "unused", + customerCancellationReason: "customer_service", customerCancellationComment: "", product: { id: "", @@ -40,6 +41,7 @@ let value: CustomerPortalSubscriptionsListResponse = { name: "", description: "unabashedly regarding lest", recurringInterval: "day", + recurringIntervalCount: 167145, isRecurring: true, isArchived: true, organizationId: "", @@ -80,24 +82,20 @@ let value: CustomerPortalSubscriptionsListResponse = { }, }, }, - prices: [], - meters: [ + prices: [ { - createdAt: new Date("2024-06-14T14:31:03.394Z"), - modifiedAt: new Date("2024-08-18T04:21:45.193Z"), + createdAt: new Date("2024-08-18T04:21:45.193Z"), + modifiedAt: new Date("2023-09-06T16:06:48.196Z"), id: "", - consumedUnits: 25, - creditedUnits: 100, - amount: 0, - meterId: "d498a884-e2cd-4d3e-8002-f536468a8b22", - meter: { - createdAt: new Date("2023-05-13T23:55:31.561Z"), - modifiedAt: new Date("2023-08-11T07:10:38.626Z"), - id: "", - name: "", - }, + amountType: "free", + isArchived: true, + productId: "", + type: "recurring", + recurringInterval: "week", + legacy: true, }, ], + meters: [], isPolarManaged: false, }, ], diff --git a/docs/models/operations/eventslistrequest.md b/docs/models/operations/eventslistrequest.md index a14fbccc..a1730515 100644 --- a/docs/models/operations/eventslistrequest.md +++ b/docs/models/operations/eventslistrequest.md @@ -23,6 +23,7 @@ let value: EventsListRequest = { | `meterId` | *string* | :heavy_minus_sign: | Filter by a meter filter clause. | | `name` | *operations.NameFilter* | :heavy_minus_sign: | Filter by event name. | | `source` | *operations.SourceFilter* | :heavy_minus_sign: | Filter by event source. | +| `query` | *string* | :heavy_minus_sign: | Query to filter events. | | `page` | *number* | :heavy_minus_sign: | Page number, defaults to 1. | | `limit` | *number* | :heavy_minus_sign: | Size of a page, defaults to 10. Maximum is 100. | | `sorting` | [components.EventSortProperty](../../models/components/eventsortproperty.md)[] | :heavy_minus_sign: | Sorting criterion. Several criteria can be used simultaneously and will be applied in order. Add a minus sign `-` before the criteria name to sort by descending order. | diff --git a/docs/models/operations/orderslistresponse.md b/docs/models/operations/orderslistresponse.md index fc3f7278..f7ade117 100644 --- a/docs/models/operations/orderslistresponse.md +++ b/docs/models/operations/orderslistresponse.md @@ -36,15 +36,15 @@ let value: OrdersListResponse = { discountId: "", subscriptionId: "", checkoutId: "", - metadata: { - "key": "", - }, + metadata: {}, platformFeeAmount: 500, customer: { id: "992fae2a-2a17-4b7a-8d9e-e287cf90131b", - createdAt: new Date("2025-03-15T16:51:44.459Z"), - modifiedAt: new Date("2024-05-14T04:26:31.780Z"), - metadata: {}, + createdAt: new Date("2023-10-23T16:50:39.580Z"), + modifiedAt: new Date("2023-12-12T00:57:39.847Z"), + metadata: { + "key": 166283, + }, externalId: "usr_1337", email: "customer@example.com", emailVerified: true, @@ -57,81 +57,74 @@ let value: OrdersListResponse = { "us_ein", ], organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737", - deletedAt: new Date("2023-07-02T05:54:26.991Z"), + deletedAt: new Date("2025-04-19T04:57:52.293Z"), avatarUrl: "https://www.gravatar.com/avatar/xxx?d=404", }, userId: "", product: { metadata: { - "key": 765700, + "key": false, }, id: "", - createdAt: new Date("2025-09-28T13:54:31.917Z"), - modifiedAt: new Date("2025-11-14T07:33:56.379Z"), - trialInterval: "month", - trialIntervalCount: 709592, + createdAt: new Date("2024-08-18T23:02:56.814Z"), + modifiedAt: new Date("2025-02-16T17:05:48.519Z"), + trialInterval: null, + trialIntervalCount: 397442, name: "", description: null, - recurringInterval: "week", - isRecurring: true, - isArchived: true, + recurringInterval: null, + recurringIntervalCount: 212587, + isRecurring: false, + isArchived: false, organizationId: "", }, discount: { duration: "repeating", + durationInMonths: 13743, type: "fixed", basisPoints: 1000, - createdAt: new Date("2024-12-20T05:49:14.049Z"), - modifiedAt: new Date("2024-05-06T01:19:34.835Z"), + createdAt: new Date("2023-05-02T03:13:00.458Z"), + modifiedAt: new Date("2024-11-18T01:03:14.408Z"), id: "", - metadata: { - "key": false, - }, + metadata: {}, name: "", code: "", - startsAt: new Date("2024-10-09T16:49:56.134Z"), - endsAt: new Date("2024-03-09T11:07:39.349Z"), - maxRedemptions: 231585, - redemptionsCount: 850103, + startsAt: new Date("2023-02-16T11:30:48.051Z"), + endsAt: new Date("2024-12-28T19:07:39.973Z"), + maxRedemptions: 571035, + redemptionsCount: 98203, organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737", }, subscription: { - metadata: {}, - createdAt: new Date("2024-06-27T07:56:50.097Z"), - modifiedAt: new Date("2024-01-16T07:39:17.060Z"), + metadata: { + "key": 4420.08, + }, + createdAt: new Date("2023-12-26T18:24:48.736Z"), + modifiedAt: new Date("2024-05-24T18:24:21.591Z"), id: "", amount: 10000, currency: "usd", recurringInterval: "month", - status: "active", - currentPeriodStart: new Date("2024-04-29T10:34:50.731Z"), - currentPeriodEnd: new Date("2024-05-26T14:35:18.792Z"), - trialStart: new Date("2025-03-17T04:48:05.046Z"), + recurringIntervalCount: 960, + status: "incomplete_expired", + currentPeriodStart: new Date("2023-10-11T14:34:45.147Z"), + currentPeriodEnd: new Date("2024-10-22T20:19:14.907Z"), + trialStart: new Date("2025-07-09T10:12:20.525Z"), trialEnd: null, cancelAtPeriodEnd: true, - canceledAt: new Date("2023-05-04T20:55:46.311Z"), - startedAt: new Date("2025-10-27T14:16:47.398Z"), - endsAt: new Date("2023-01-05T15:34:29.499Z"), - endedAt: null, + canceledAt: new Date("2025-11-22T14:25:51.795Z"), + startedAt: new Date("2024-04-30T15:21:57.777Z"), + endsAt: new Date("2023-11-02T13:05:04.577Z"), + endedAt: new Date("2025-03-15T06:28:35.975Z"), customerId: "", productId: "", discountId: "", checkoutId: "", - customerCancellationReason: "switched_service", + customerCancellationReason: "low_quality", customerCancellationComment: "", }, - items: [ - { - createdAt: new Date("2024-02-16T11:18:39.347Z"), - modifiedAt: new Date("2023-11-25T23:33:09.773Z"), - id: "", - label: "Pro Plan", - amount: 10000, - taxAmount: 720, - proration: false, - productPriceId: null, - }, - ], + items: [], + description: "Pro Plan", }, ], pagination: { diff --git a/docs/models/operations/productslistresponse.md b/docs/models/operations/productslistresponse.md index 68b601c6..d553feed 100644 --- a/docs/models/operations/productslistresponse.md +++ b/docs/models/operations/productslistresponse.md @@ -17,12 +17,11 @@ let value: ProductsListResponse = { name: "", description: "unlined why alongside beyond sandy softly", recurringInterval: "year", + recurringIntervalCount: 324286, isRecurring: false, - isArchived: true, + isArchived: false, organizationId: "", - metadata: { - "key": true, - }, + metadata: {}, prices: [ { createdAt: new Date("2024-01-20T19:38:49.234Z"), @@ -42,18 +41,20 @@ let value: ProductsListResponse = { { customFieldId: "", customField: { - createdAt: new Date("2024-06-30T20:57:53.724Z"), - modifiedAt: new Date("2024-03-04T15:14:18.502Z"), + createdAt: new Date("2025-05-25T16:58:54.608Z"), + modifiedAt: new Date("2023-09-04T14:15:13.546Z"), id: "", - metadata: {}, - type: "number", + metadata: { + "key": false, + }, + type: "text", slug: "", name: "", organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737", properties: {}, }, - order: 763945, - required: true, + order: 93108, + required: false, }, ], }, diff --git a/docs/sdks/orders/README.md b/docs/sdks/orders/README.md index 7b766f49..b6c97e2e 100644 --- a/docs/sdks/orders/README.md +++ b/docs/sdks/orders/README.md @@ -330,7 +330,6 @@ run(); | Error Type | Status Code | Content Type | | ----------------------------------- | ----------------------------------- | ----------------------------------- | -| errors.InvoiceAlreadyExists | 409 | application/json | | errors.MissingInvoiceBillingDetails | 422 | application/json | | errors.NotPaidOrder | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | diff --git a/docs/sdks/polarorders/README.md b/docs/sdks/polarorders/README.md index b58d3f3f..e6664ead 100644 --- a/docs/sdks/polarorders/README.md +++ b/docs/sdks/polarorders/README.md @@ -336,7 +336,6 @@ run(); | Error Type | Status Code | Content Type | | ----------------------------------- | ----------------------------------- | ----------------------------------- | -| errors.InvoiceAlreadyExists | 409 | application/json | | errors.MissingInvoiceBillingDetails | 422 | application/json | | errors.NotPaidOrder | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | diff --git a/examples/package-lock.json b/examples/package-lock.json index 7c020a7d..88c83724 100644 --- a/examples/package-lock.json +++ b/examples/package-lock.json @@ -18,7 +18,7 @@ }, "..": { "name": "@polar-sh/sdk", - "version": "0.38.1", + "version": "0.39.0", "dependencies": { "standardwebhooks": "^1.0.0", "zod": "^3.25.76" diff --git a/jsr.json b/jsr.json index 24f73304..e4243313 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@polar-sh/sdk", - "version": "0.38.1", + "version": "0.39.0", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index 729494bb..59b240f1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@polar-sh/sdk", - "version": "0.38.1", + "version": "0.39.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@polar-sh/sdk", - "version": "0.38.1", + "version": "0.39.0", "dependencies": { "standardwebhooks": "^1.0.0", "zod": "^3.25.76" diff --git a/package.json b/package.json index 99b1553c..0e0dfa3f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@polar-sh/sdk", - "version": "0.38.1", + "version": "0.39.0", "author": "Speakeasy", "type": "module", "tshy": { diff --git a/src/funcs/benefitsDelete.ts b/src/funcs/benefitsDelete.ts index cf7b925e..2b9df9a4 100644 --- a/src/funcs/benefitsDelete.ts +++ b/src/funcs/benefitsDelete.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; diff --git a/src/funcs/checkoutLinksDelete.ts b/src/funcs/checkoutLinksDelete.ts index cb6d1a67..e6b9aa31 100644 --- a/src/funcs/checkoutLinksDelete.ts +++ b/src/funcs/checkoutLinksDelete.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; diff --git a/src/funcs/customFieldsDelete.ts b/src/funcs/customFieldsDelete.ts index 3d6877e5..d779bcf7 100644 --- a/src/funcs/customFieldsDelete.ts +++ b/src/funcs/customFieldsDelete.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; diff --git a/src/funcs/customerPortalCustomersDeletePaymentMethod.ts b/src/funcs/customerPortalCustomersDeletePaymentMethod.ts index 605d4c66..cc57fa5e 100644 --- a/src/funcs/customerPortalCustomersDeletePaymentMethod.ts +++ b/src/funcs/customerPortalCustomersDeletePaymentMethod.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; diff --git a/src/funcs/customerPortalLicenseKeysDeactivate.ts b/src/funcs/customerPortalLicenseKeysDeactivate.ts index 32274b83..070a8fab 100644 --- a/src/funcs/customerPortalLicenseKeysDeactivate.ts +++ b/src/funcs/customerPortalLicenseKeysDeactivate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarCore } from "../core.js"; import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; diff --git a/src/funcs/customerPortalOrdersGenerateInvoice.ts b/src/funcs/customerPortalOrdersGenerateInvoice.ts index c564a2b3..31e0cc83 100644 --- a/src/funcs/customerPortalOrdersGenerateInvoice.ts +++ b/src/funcs/customerPortalOrdersGenerateInvoice.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -22,10 +22,6 @@ import { RequestTimeoutError, UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; -import { - InvoiceAlreadyExists, - InvoiceAlreadyExists$inboundSchema, -} from "../models/errors/invoicealreadyexists.js"; import { PolarError } from "../models/errors/polarerror.js"; import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; @@ -53,7 +49,6 @@ export function customerPortalOrdersGenerateInvoice( ): APIPromise< Result< any, - | InvoiceAlreadyExists | CustomerPortalOrdersGenerateInvoiceResponse422CustomerPortalOrdersGenerateInvoice | PolarError | ResponseValidationError @@ -82,7 +77,6 @@ async function $do( [ Result< any, - | InvoiceAlreadyExists | CustomerPortalOrdersGenerateInvoiceResponse422CustomerPortalOrdersGenerateInvoice | PolarError | ResponseValidationError @@ -165,7 +159,7 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["409", "422", "4XX", "5XX"], + errorCodes: ["422", "4XX", "5XX"], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -180,7 +174,6 @@ async function $do( const [result] = await M.match< any, - | InvoiceAlreadyExists | CustomerPortalOrdersGenerateInvoiceResponse422CustomerPortalOrdersGenerateInvoice | PolarError | ResponseValidationError @@ -192,7 +185,6 @@ async function $do( | SDKValidationError >( M.json(202, z.any()), - M.jsonErr(409, InvoiceAlreadyExists$inboundSchema), M.jsonErr( 422, CustomerPortalOrdersGenerateInvoiceResponse422CustomerPortalOrdersGenerateInvoice$inboundSchema, diff --git a/src/funcs/customerPortalSeatsListClaimedSubscriptions.ts b/src/funcs/customerPortalSeatsListClaimedSubscriptions.ts index 9c441a52..6c774996 100644 --- a/src/funcs/customerPortalSeatsListClaimedSubscriptions.ts +++ b/src/funcs/customerPortalSeatsListClaimedSubscriptions.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarCore } from "../core.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; diff --git a/src/funcs/customerPortalSeatsListSeats.ts b/src/funcs/customerPortalSeatsListSeats.ts index df3ca468..7162c2a2 100644 --- a/src/funcs/customerPortalSeatsListSeats.ts +++ b/src/funcs/customerPortalSeatsListSeats.ts @@ -105,6 +105,7 @@ async function $do( const path = pathToFunc("/v1/customer-portal/seats")(); const query = encodeFormQuery({ + "order_id": payload.order_id, "subscription_id": payload.subscription_id, }); diff --git a/src/funcs/customersDelete.ts b/src/funcs/customersDelete.ts index 99a60f20..81ebb9ac 100644 --- a/src/funcs/customersDelete.ts +++ b/src/funcs/customersDelete.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; diff --git a/src/funcs/customersDeleteExternal.ts b/src/funcs/customersDeleteExternal.ts index 861f9334..0309ec6c 100644 --- a/src/funcs/customersDeleteExternal.ts +++ b/src/funcs/customersDeleteExternal.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; diff --git a/src/funcs/customersExport.ts b/src/funcs/customersExport.ts index 3f11673f..00c08ff8 100644 --- a/src/funcs/customersExport.ts +++ b/src/funcs/customersExport.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarCore } from "../core.js"; import { encodeFormQuery } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; diff --git a/src/funcs/discountsDelete.ts b/src/funcs/discountsDelete.ts index 7f83afc8..f0475566 100644 --- a/src/funcs/discountsDelete.ts +++ b/src/funcs/discountsDelete.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; diff --git a/src/funcs/eventsList.ts b/src/funcs/eventsList.ts index a06b98d6..0dc6bc25 100644 --- a/src/funcs/eventsList.ts +++ b/src/funcs/eventsList.ts @@ -131,6 +131,7 @@ async function $do( "name": payload.name, "organization_id": payload.organization_id, "page": payload.page, + "query": payload.query, "sorting": payload.sorting, "source": payload.source, "start_timestamp": payload.start_timestamp, diff --git a/src/funcs/filesDelete.ts b/src/funcs/filesDelete.ts index 9c2338be..bc0c1cbd 100644 --- a/src/funcs/filesDelete.ts +++ b/src/funcs/filesDelete.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; diff --git a/src/funcs/licenseKeysDeactivate.ts b/src/funcs/licenseKeysDeactivate.ts index ed3359a3..7125bbbc 100644 --- a/src/funcs/licenseKeysDeactivate.ts +++ b/src/funcs/licenseKeysDeactivate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarCore } from "../core.js"; import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; diff --git a/src/funcs/oauth2ClientsCreate.ts b/src/funcs/oauth2ClientsCreate.ts index 543072a7..46c8e325 100644 --- a/src/funcs/oauth2ClientsCreate.ts +++ b/src/funcs/oauth2ClientsCreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarCore } from "../core.js"; import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; diff --git a/src/funcs/oauth2ClientsDelete.ts b/src/funcs/oauth2ClientsDelete.ts index 47b681c3..46fad80c 100644 --- a/src/funcs/oauth2ClientsDelete.ts +++ b/src/funcs/oauth2ClientsDelete.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; diff --git a/src/funcs/oauth2ClientsGet.ts b/src/funcs/oauth2ClientsGet.ts index df7110cf..658166e8 100644 --- a/src/funcs/oauth2ClientsGet.ts +++ b/src/funcs/oauth2ClientsGet.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; diff --git a/src/funcs/oauth2ClientsUpdate.ts b/src/funcs/oauth2ClientsUpdate.ts index e82d4239..b1bec52c 100644 --- a/src/funcs/oauth2ClientsUpdate.ts +++ b/src/funcs/oauth2ClientsUpdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; diff --git a/src/funcs/ordersGenerateInvoice.ts b/src/funcs/ordersGenerateInvoice.ts index 92feda11..a4349f43 100644 --- a/src/funcs/ordersGenerateInvoice.ts +++ b/src/funcs/ordersGenerateInvoice.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -18,10 +18,6 @@ import { RequestTimeoutError, UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; -import { - InvoiceAlreadyExists, - InvoiceAlreadyExists$inboundSchema, -} from "../models/errors/invoicealreadyexists.js"; import { OrdersGenerateInvoiceResponse422OrdersGenerateInvoice, OrdersGenerateInvoiceResponse422OrdersGenerateInvoice$inboundSchema, @@ -51,7 +47,6 @@ export function ordersGenerateInvoice( ): APIPromise< Result< any, - | InvoiceAlreadyExists | OrdersGenerateInvoiceResponse422OrdersGenerateInvoice | PolarError | ResponseValidationError @@ -78,7 +73,6 @@ async function $do( [ Result< any, - | InvoiceAlreadyExists | OrdersGenerateInvoiceResponse422OrdersGenerateInvoice | PolarError | ResponseValidationError @@ -152,7 +146,7 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["409", "422", "4XX", "5XX"], + errorCodes: ["422", "4XX", "5XX"], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -167,7 +161,6 @@ async function $do( const [result] = await M.match< any, - | InvoiceAlreadyExists | OrdersGenerateInvoiceResponse422OrdersGenerateInvoice | PolarError | ResponseValidationError @@ -179,7 +172,6 @@ async function $do( | SDKValidationError >( M.json(202, z.any()), - M.jsonErr(409, InvoiceAlreadyExists$inboundSchema), M.jsonErr( 422, OrdersGenerateInvoiceResponse422OrdersGenerateInvoice$inboundSchema, diff --git a/src/funcs/subscriptionsExport.ts b/src/funcs/subscriptionsExport.ts index dadc8331..bf6f60c8 100644 --- a/src/funcs/subscriptionsExport.ts +++ b/src/funcs/subscriptionsExport.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarCore } from "../core.js"; import { encodeFormQuery } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; diff --git a/src/funcs/webhooksDeleteWebhookEndpoint.ts b/src/funcs/webhooksDeleteWebhookEndpoint.ts index 6aec7a50..4a72bbb5 100644 --- a/src/funcs/webhooksDeleteWebhookEndpoint.ts +++ b/src/funcs/webhooksDeleteWebhookEndpoint.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; diff --git a/src/funcs/webhooksRedeliverWebhookEvent.ts b/src/funcs/webhooksRedeliverWebhookEvent.ts index b25105f3..3cc96677 100644 --- a/src/funcs/webhooksRedeliverWebhookEvent.ts +++ b/src/funcs/webhooksRedeliverWebhookEvent.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; diff --git a/src/lib/base64.ts b/src/lib/base64.ts index c2d5b389..0aebd8b0 100644 --- a/src/lib/base64.ts +++ b/src/lib/base64.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; export function bytesToBase64(u8arr: Uint8Array): string { return btoa(String.fromCodePoint(...u8arr)); diff --git a/src/lib/config.ts b/src/lib/config.ts index 56da1d1d..d4dc0762 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -64,7 +64,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "0.1.0", - sdkVersion: "0.38.1", - genVersion: "2.727.9", - userAgent: "speakeasy-sdk/typescript 0.38.1 2.727.9 0.1.0 @polar-sh/sdk", + sdkVersion: "0.39.0", + genVersion: "2.729.2", + userAgent: "speakeasy-sdk/typescript 0.39.0 2.729.2 0.1.0 @polar-sh/sdk", } as const; diff --git a/src/lib/env.ts b/src/lib/env.ts index eaf21acf..be6136e7 100644 --- a/src/lib/env.ts +++ b/src/lib/env.ts @@ -2,10 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v3"; import { dlv } from "./dlv.js"; -import * as z from "zod"; - export interface Env { POLAR_ACCESS_TOKEN?: string | undefined; diff --git a/src/lib/schemas.ts b/src/lib/schemas.ts index 0e340b7e..47edb972 100644 --- a/src/lib/schemas.ts +++ b/src/lib/schemas.ts @@ -9,7 +9,7 @@ import { ZodObject, ZodRawShape, ZodTypeAny, -} from "zod"; +} from "zod/v3"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { ERR, OK, Result } from "../types/fp.js"; diff --git a/src/models/components/address.ts b/src/models/components/address.ts index 0cb5945c..0879d6a8 100644 --- a/src/models/components/address.ts +++ b/src/models/components/address.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; diff --git a/src/models/components/addressinput.ts b/src/models/components/addressinput.ts index 1e7aafd8..e3665123 100644 --- a/src/models/components/addressinput.ts +++ b/src/models/components/addressinput.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; diff --git a/src/models/components/aggregationfunction.ts b/src/models/components/aggregationfunction.ts index 3aa0772d..7857e9bf 100644 --- a/src/models/components/aggregationfunction.ts +++ b/src/models/components/aggregationfunction.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const AggregationFunction = { diff --git a/src/models/components/attachedcustomfield.ts b/src/models/components/attachedcustomfield.ts index e0b18718..31978ecf 100644 --- a/src/models/components/attachedcustomfield.ts +++ b/src/models/components/attachedcustomfield.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/attachedcustomfieldcreate.ts b/src/models/components/attachedcustomfieldcreate.ts index 6d243563..e9b544a6 100644 --- a/src/models/components/attachedcustomfieldcreate.ts +++ b/src/models/components/attachedcustomfieldcreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/authorizationcodetokenrequest.ts b/src/models/components/authorizationcodetokenrequest.ts index 2ddf09ac..47063c2b 100644 --- a/src/models/components/authorizationcodetokenrequest.ts +++ b/src/models/components/authorizationcodetokenrequest.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/authorizeorganization.ts b/src/models/components/authorizeorganization.ts index d76d50a4..0354d8a1 100644 --- a/src/models/components/authorizeorganization.ts +++ b/src/models/components/authorizeorganization.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/authorizeresponseorganization.ts b/src/models/components/authorizeresponseorganization.ts index 0cbb4ba0..63b96c29 100644 --- a/src/models/components/authorizeresponseorganization.ts +++ b/src/models/components/authorizeresponseorganization.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/authorizeresponseuser.ts b/src/models/components/authorizeresponseuser.ts index 18d64e33..663f7015 100644 --- a/src/models/components/authorizeresponseuser.ts +++ b/src/models/components/authorizeresponseuser.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/authorizeuser.ts b/src/models/components/authorizeuser.ts index d51e4cc1..4722ce78 100644 --- a/src/models/components/authorizeuser.ts +++ b/src/models/components/authorizeuser.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefit.ts b/src/models/components/benefit.ts index 609f4995..4ee9926e 100644 --- a/src/models/components/benefit.ts +++ b/src/models/components/benefit.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/benefitcreate.ts b/src/models/components/benefitcreate.ts index 4c3ad567..97fee6af 100644 --- a/src/models/components/benefitcreate.ts +++ b/src/models/components/benefitcreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/benefitcustom.ts b/src/models/components/benefitcustom.ts index 369fdfde..860661a0 100644 --- a/src/models/components/benefitcustom.ts +++ b/src/models/components/benefitcustom.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitcustomcreate.ts b/src/models/components/benefitcustomcreate.ts index cdb84035..ae4c9f43 100644 --- a/src/models/components/benefitcustomcreate.ts +++ b/src/models/components/benefitcustomcreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitcustomcreateproperties.ts b/src/models/components/benefitcustomcreateproperties.ts index 6020d923..bcd09c58 100644 --- a/src/models/components/benefitcustomcreateproperties.ts +++ b/src/models/components/benefitcustomcreateproperties.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/benefitcustomproperties.ts b/src/models/components/benefitcustomproperties.ts index 5c886387..e513a66d 100644 --- a/src/models/components/benefitcustomproperties.ts +++ b/src/models/components/benefitcustomproperties.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/benefitcustomsubscriber.ts b/src/models/components/benefitcustomsubscriber.ts index 71f7eecc..018423f4 100644 --- a/src/models/components/benefitcustomsubscriber.ts +++ b/src/models/components/benefitcustomsubscriber.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitcustomsubscriberproperties.ts b/src/models/components/benefitcustomsubscriberproperties.ts index 7359bed1..7cf44166 100644 --- a/src/models/components/benefitcustomsubscriberproperties.ts +++ b/src/models/components/benefitcustomsubscriberproperties.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/benefitcustomupdate.ts b/src/models/components/benefitcustomupdate.ts index 33dcac3f..f8a057e4 100644 --- a/src/models/components/benefitcustomupdate.ts +++ b/src/models/components/benefitcustomupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/benefitcycledevent.ts b/src/models/components/benefitcycledevent.ts index af31c736..434d9ef3 100644 --- a/src/models/components/benefitcycledevent.ts +++ b/src/models/components/benefitcycledevent.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitdiscord.ts b/src/models/components/benefitdiscord.ts index e2267795..8520a72e 100644 --- a/src/models/components/benefitdiscord.ts +++ b/src/models/components/benefitdiscord.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitdiscordcreate.ts b/src/models/components/benefitdiscordcreate.ts index 438ef805..e689aba6 100644 --- a/src/models/components/benefitdiscordcreate.ts +++ b/src/models/components/benefitdiscordcreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitdiscordcreateproperties.ts b/src/models/components/benefitdiscordcreateproperties.ts index dbcf4d02..7dd817ca 100644 --- a/src/models/components/benefitdiscordcreateproperties.ts +++ b/src/models/components/benefitdiscordcreateproperties.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitdiscordproperties.ts b/src/models/components/benefitdiscordproperties.ts index eb9be00f..d617c87a 100644 --- a/src/models/components/benefitdiscordproperties.ts +++ b/src/models/components/benefitdiscordproperties.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitdiscordsubscriber.ts b/src/models/components/benefitdiscordsubscriber.ts index 8d9658d5..7fe1574b 100644 --- a/src/models/components/benefitdiscordsubscriber.ts +++ b/src/models/components/benefitdiscordsubscriber.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitdiscordsubscriberproperties.ts b/src/models/components/benefitdiscordsubscriberproperties.ts index 28f0cfb2..d2637731 100644 --- a/src/models/components/benefitdiscordsubscriberproperties.ts +++ b/src/models/components/benefitdiscordsubscriberproperties.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitdiscordupdate.ts b/src/models/components/benefitdiscordupdate.ts index 1e8a19d6..ba01f76f 100644 --- a/src/models/components/benefitdiscordupdate.ts +++ b/src/models/components/benefitdiscordupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/benefitdownloadables.ts b/src/models/components/benefitdownloadables.ts index fc7ee308..697878ed 100644 --- a/src/models/components/benefitdownloadables.ts +++ b/src/models/components/benefitdownloadables.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitdownloadablescreate.ts b/src/models/components/benefitdownloadablescreate.ts index 7af819b6..3d8ee270 100644 --- a/src/models/components/benefitdownloadablescreate.ts +++ b/src/models/components/benefitdownloadablescreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitdownloadablescreateproperties.ts b/src/models/components/benefitdownloadablescreateproperties.ts index 03ba6a17..6732a8ed 100644 --- a/src/models/components/benefitdownloadablescreateproperties.ts +++ b/src/models/components/benefitdownloadablescreateproperties.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/benefitdownloadablesproperties.ts b/src/models/components/benefitdownloadablesproperties.ts index 168247fd..ed887401 100644 --- a/src/models/components/benefitdownloadablesproperties.ts +++ b/src/models/components/benefitdownloadablesproperties.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/benefitdownloadablessubscriber.ts b/src/models/components/benefitdownloadablessubscriber.ts index 5beb0f62..d7eb047c 100644 --- a/src/models/components/benefitdownloadablessubscriber.ts +++ b/src/models/components/benefitdownloadablessubscriber.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitdownloadablessubscriberproperties.ts b/src/models/components/benefitdownloadablessubscriberproperties.ts index 7bcfa446..27664825 100644 --- a/src/models/components/benefitdownloadablessubscriberproperties.ts +++ b/src/models/components/benefitdownloadablessubscriberproperties.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitdownloadablesupdate.ts b/src/models/components/benefitdownloadablesupdate.ts index 4fe9cb31..d509368c 100644 --- a/src/models/components/benefitdownloadablesupdate.ts +++ b/src/models/components/benefitdownloadablesupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/benefitgithubrepository.ts b/src/models/components/benefitgithubrepository.ts index 24c63da9..19bb51b8 100644 --- a/src/models/components/benefitgithubrepository.ts +++ b/src/models/components/benefitgithubrepository.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitgithubrepositorycreate.ts b/src/models/components/benefitgithubrepositorycreate.ts index 7fe98287..988633f1 100644 --- a/src/models/components/benefitgithubrepositorycreate.ts +++ b/src/models/components/benefitgithubrepositorycreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitgithubrepositorycreateproperties.ts b/src/models/components/benefitgithubrepositorycreateproperties.ts index 472aacda..a6b9171a 100644 --- a/src/models/components/benefitgithubrepositorycreateproperties.ts +++ b/src/models/components/benefitgithubrepositorycreateproperties.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; diff --git a/src/models/components/benefitgithubrepositoryproperties.ts b/src/models/components/benefitgithubrepositoryproperties.ts index 0fec76ae..b95d3330 100644 --- a/src/models/components/benefitgithubrepositoryproperties.ts +++ b/src/models/components/benefitgithubrepositoryproperties.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; diff --git a/src/models/components/benefitgithubrepositorysubscriber.ts b/src/models/components/benefitgithubrepositorysubscriber.ts index 5fae5a04..3b29080a 100644 --- a/src/models/components/benefitgithubrepositorysubscriber.ts +++ b/src/models/components/benefitgithubrepositorysubscriber.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitgithubrepositorysubscriberproperties.ts b/src/models/components/benefitgithubrepositorysubscriberproperties.ts index 41446c53..2ce61e14 100644 --- a/src/models/components/benefitgithubrepositorysubscriberproperties.ts +++ b/src/models/components/benefitgithubrepositorysubscriberproperties.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitgithubrepositoryupdate.ts b/src/models/components/benefitgithubrepositoryupdate.ts index c05b1550..15ffb4ab 100644 --- a/src/models/components/benefitgithubrepositoryupdate.ts +++ b/src/models/components/benefitgithubrepositoryupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/benefitgrant.ts b/src/models/components/benefitgrant.ts index 6214318b..a7d73150 100644 --- a/src/models/components/benefitgrant.ts +++ b/src/models/components/benefitgrant.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitgrantcustomproperties.ts b/src/models/components/benefitgrantcustomproperties.ts index 87d09d69..c10d6dd3 100644 --- a/src/models/components/benefitgrantcustomproperties.ts +++ b/src/models/components/benefitgrantcustomproperties.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/benefitgrantcustomwebhook.ts b/src/models/components/benefitgrantcustomwebhook.ts index 7e0dff38..60fe62d8 100644 --- a/src/models/components/benefitgrantcustomwebhook.ts +++ b/src/models/components/benefitgrantcustomwebhook.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitgrantdiscordproperties.ts b/src/models/components/benefitgrantdiscordproperties.ts index 6677816c..9644afb1 100644 --- a/src/models/components/benefitgrantdiscordproperties.ts +++ b/src/models/components/benefitgrantdiscordproperties.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitgrantdiscordwebhook.ts b/src/models/components/benefitgrantdiscordwebhook.ts index 58d3a97f..9472d424 100644 --- a/src/models/components/benefitgrantdiscordwebhook.ts +++ b/src/models/components/benefitgrantdiscordwebhook.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitgrantdownloadablesproperties.ts b/src/models/components/benefitgrantdownloadablesproperties.ts index db7231ef..d7f7fc3d 100644 --- a/src/models/components/benefitgrantdownloadablesproperties.ts +++ b/src/models/components/benefitgrantdownloadablesproperties.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/benefitgrantdownloadableswebhook.ts b/src/models/components/benefitgrantdownloadableswebhook.ts index e801ec9c..3af074e1 100644 --- a/src/models/components/benefitgrantdownloadableswebhook.ts +++ b/src/models/components/benefitgrantdownloadableswebhook.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitgrantedevent.ts b/src/models/components/benefitgrantedevent.ts index 37509d43..acdcb767 100644 --- a/src/models/components/benefitgrantedevent.ts +++ b/src/models/components/benefitgrantedevent.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitgranterror.ts b/src/models/components/benefitgranterror.ts index b44bb0ad..1cea344f 100644 --- a/src/models/components/benefitgranterror.ts +++ b/src/models/components/benefitgranterror.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/benefitgrantgithubrepositoryproperties.ts b/src/models/components/benefitgrantgithubrepositoryproperties.ts index 5835943d..6a95f573 100644 --- a/src/models/components/benefitgrantgithubrepositoryproperties.ts +++ b/src/models/components/benefitgrantgithubrepositoryproperties.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; diff --git a/src/models/components/benefitgrantgithubrepositorywebhook.ts b/src/models/components/benefitgrantgithubrepositorywebhook.ts index 61f1fb0c..50c5dc31 100644 --- a/src/models/components/benefitgrantgithubrepositorywebhook.ts +++ b/src/models/components/benefitgrantgithubrepositorywebhook.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitgrantlicensekeysproperties.ts b/src/models/components/benefitgrantlicensekeysproperties.ts index efcd0e3e..8d08e181 100644 --- a/src/models/components/benefitgrantlicensekeysproperties.ts +++ b/src/models/components/benefitgrantlicensekeysproperties.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitgrantlicensekeyswebhook.ts b/src/models/components/benefitgrantlicensekeyswebhook.ts index b2e6c566..828153c7 100644 --- a/src/models/components/benefitgrantlicensekeyswebhook.ts +++ b/src/models/components/benefitgrantlicensekeyswebhook.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitgrantmetadata.ts b/src/models/components/benefitgrantmetadata.ts index e284db48..1f275cbd 100644 --- a/src/models/components/benefitgrantmetadata.ts +++ b/src/models/components/benefitgrantmetadata.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitgrantmetercreditproperties.ts b/src/models/components/benefitgrantmetercreditproperties.ts index 58ed9280..c349c378 100644 --- a/src/models/components/benefitgrantmetercreditproperties.ts +++ b/src/models/components/benefitgrantmetercreditproperties.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitgrantmetercreditwebhook.ts b/src/models/components/benefitgrantmetercreditwebhook.ts index 01926629..720e2d82 100644 --- a/src/models/components/benefitgrantmetercreditwebhook.ts +++ b/src/models/components/benefitgrantmetercreditwebhook.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitgrantsortproperty.ts b/src/models/components/benefitgrantsortproperty.ts index ac300c2a..6e4e784e 100644 --- a/src/models/components/benefitgrantsortproperty.ts +++ b/src/models/components/benefitgrantsortproperty.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const BenefitGrantSortProperty = { diff --git a/src/models/components/benefitgrantwebhook.ts b/src/models/components/benefitgrantwebhook.ts index 486bba1d..31cc7e38 100644 --- a/src/models/components/benefitgrantwebhook.ts +++ b/src/models/components/benefitgrantwebhook.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/benefitlicensekeyactivationcreateproperties.ts b/src/models/components/benefitlicensekeyactivationcreateproperties.ts index aed97fbf..97daa51e 100644 --- a/src/models/components/benefitlicensekeyactivationcreateproperties.ts +++ b/src/models/components/benefitlicensekeyactivationcreateproperties.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitlicensekeyactivationproperties.ts b/src/models/components/benefitlicensekeyactivationproperties.ts index ed1ffa1d..d6b69d0a 100644 --- a/src/models/components/benefitlicensekeyactivationproperties.ts +++ b/src/models/components/benefitlicensekeyactivationproperties.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitlicensekeyexpirationproperties.ts b/src/models/components/benefitlicensekeyexpirationproperties.ts index 1b360177..8b6acc93 100644 --- a/src/models/components/benefitlicensekeyexpirationproperties.ts +++ b/src/models/components/benefitlicensekeyexpirationproperties.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitlicensekeys.ts b/src/models/components/benefitlicensekeys.ts index d3875c30..1ae47f51 100644 --- a/src/models/components/benefitlicensekeys.ts +++ b/src/models/components/benefitlicensekeys.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitlicensekeyscreate.ts b/src/models/components/benefitlicensekeyscreate.ts index c7c2cdf0..afe121d6 100644 --- a/src/models/components/benefitlicensekeyscreate.ts +++ b/src/models/components/benefitlicensekeyscreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitlicensekeyscreateproperties.ts b/src/models/components/benefitlicensekeyscreateproperties.ts index 2bc08c5a..bb84d8e5 100644 --- a/src/models/components/benefitlicensekeyscreateproperties.ts +++ b/src/models/components/benefitlicensekeyscreateproperties.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitlicensekeysproperties.ts b/src/models/components/benefitlicensekeysproperties.ts index 347a2b5d..b9007aaa 100644 --- a/src/models/components/benefitlicensekeysproperties.ts +++ b/src/models/components/benefitlicensekeysproperties.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitlicensekeyssubscriber.ts b/src/models/components/benefitlicensekeyssubscriber.ts index ad9d9b9a..5e4c74a7 100644 --- a/src/models/components/benefitlicensekeyssubscriber.ts +++ b/src/models/components/benefitlicensekeyssubscriber.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitlicensekeyssubscriberproperties.ts b/src/models/components/benefitlicensekeyssubscriberproperties.ts index e92941de..c3540127 100644 --- a/src/models/components/benefitlicensekeyssubscriberproperties.ts +++ b/src/models/components/benefitlicensekeyssubscriberproperties.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitlicensekeysupdate.ts b/src/models/components/benefitlicensekeysupdate.ts index 9176717f..7f5ebf7b 100644 --- a/src/models/components/benefitlicensekeysupdate.ts +++ b/src/models/components/benefitlicensekeysupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/benefitmetercredit.ts b/src/models/components/benefitmetercredit.ts index ca24d400..59a159f9 100644 --- a/src/models/components/benefitmetercredit.ts +++ b/src/models/components/benefitmetercredit.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitmetercreditcreate.ts b/src/models/components/benefitmetercreditcreate.ts index f6c525fe..10b75393 100644 --- a/src/models/components/benefitmetercreditcreate.ts +++ b/src/models/components/benefitmetercreditcreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitmetercreditcreateproperties.ts b/src/models/components/benefitmetercreditcreateproperties.ts index ee891e55..bd91d1c6 100644 --- a/src/models/components/benefitmetercreditcreateproperties.ts +++ b/src/models/components/benefitmetercreditcreateproperties.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitmetercreditproperties.ts b/src/models/components/benefitmetercreditproperties.ts index cff5b12a..9ffc99fc 100644 --- a/src/models/components/benefitmetercreditproperties.ts +++ b/src/models/components/benefitmetercreditproperties.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitmetercreditsubscriber.ts b/src/models/components/benefitmetercreditsubscriber.ts index 27a1be74..1ad01c9b 100644 --- a/src/models/components/benefitmetercreditsubscriber.ts +++ b/src/models/components/benefitmetercreditsubscriber.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitmetercreditsubscriberproperties.ts b/src/models/components/benefitmetercreditsubscriberproperties.ts index 8b519949..621689bf 100644 --- a/src/models/components/benefitmetercreditsubscriberproperties.ts +++ b/src/models/components/benefitmetercreditsubscriberproperties.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitmetercreditupdate.ts b/src/models/components/benefitmetercreditupdate.ts index c642ab50..dc1cdd82 100644 --- a/src/models/components/benefitmetercreditupdate.ts +++ b/src/models/components/benefitmetercreditupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/benefitpublic.ts b/src/models/components/benefitpublic.ts index 091d93ad..b7feffa0 100644 --- a/src/models/components/benefitpublic.ts +++ b/src/models/components/benefitpublic.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitrevokedevent.ts b/src/models/components/benefitrevokedevent.ts index 41bff632..0a1b9e59 100644 --- a/src/models/components/benefitrevokedevent.ts +++ b/src/models/components/benefitrevokedevent.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/benefitsortproperty.ts b/src/models/components/benefitsortproperty.ts index a31a113d..72d98efb 100644 --- a/src/models/components/benefitsortproperty.ts +++ b/src/models/components/benefitsortproperty.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const BenefitSortProperty = { diff --git a/src/models/components/benefittype.ts b/src/models/components/benefittype.ts index 2d2552ba..321c4a17 100644 --- a/src/models/components/benefittype.ts +++ b/src/models/components/benefittype.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const BenefitType = { diff --git a/src/models/components/benefitupdatedevent.ts b/src/models/components/benefitupdatedevent.ts index 42ceb6dc..25eb37f6 100644 --- a/src/models/components/benefitupdatedevent.ts +++ b/src/models/components/benefitupdatedevent.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/billingaddressfieldmode.ts b/src/models/components/billingaddressfieldmode.ts index ccf58c54..2c1fdb20 100644 --- a/src/models/components/billingaddressfieldmode.ts +++ b/src/models/components/billingaddressfieldmode.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const BillingAddressFieldMode = { diff --git a/src/models/components/cardpayment.ts b/src/models/components/cardpayment.ts index bd344a21..5b47dd86 100644 --- a/src/models/components/cardpayment.ts +++ b/src/models/components/cardpayment.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/cardpaymentmetadata.ts b/src/models/components/cardpaymentmetadata.ts index e731f435..03ad428f 100644 --- a/src/models/components/cardpaymentmetadata.ts +++ b/src/models/components/cardpaymentmetadata.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/checkout.ts b/src/models/components/checkout.ts index f28dc326..b77cc628 100644 --- a/src/models/components/checkout.ts +++ b/src/models/components/checkout.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/checkoutbillingaddressfields.ts b/src/models/components/checkoutbillingaddressfields.ts index eb12d8df..f5951a73 100644 --- a/src/models/components/checkoutbillingaddressfields.ts +++ b/src/models/components/checkoutbillingaddressfields.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/checkoutconfirmstripe.ts b/src/models/components/checkoutconfirmstripe.ts index e5a62a9b..44cf5f91 100644 --- a/src/models/components/checkoutconfirmstripe.ts +++ b/src/models/components/checkoutconfirmstripe.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/checkoutcreate.ts b/src/models/components/checkoutcreate.ts index 8d0cb844..aa67b3d2 100644 --- a/src/models/components/checkoutcreate.ts +++ b/src/models/components/checkoutcreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/checkoutdiscountfixedonceforeverduration.ts b/src/models/components/checkoutdiscountfixedonceforeverduration.ts index 845ac9ef..21a5b3f9 100644 --- a/src/models/components/checkoutdiscountfixedonceforeverduration.ts +++ b/src/models/components/checkoutdiscountfixedonceforeverduration.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/checkoutdiscountfixedrepeatduration.ts b/src/models/components/checkoutdiscountfixedrepeatduration.ts index d9c3beb7..ab4a8746 100644 --- a/src/models/components/checkoutdiscountfixedrepeatduration.ts +++ b/src/models/components/checkoutdiscountfixedrepeatduration.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/checkoutdiscountpercentageonceforeverduration.ts b/src/models/components/checkoutdiscountpercentageonceforeverduration.ts index 76c7fc4a..027d17a0 100644 --- a/src/models/components/checkoutdiscountpercentageonceforeverduration.ts +++ b/src/models/components/checkoutdiscountpercentageonceforeverduration.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/checkoutdiscountpercentagerepeatduration.ts b/src/models/components/checkoutdiscountpercentagerepeatduration.ts index f007a1bf..ea0ad689 100644 --- a/src/models/components/checkoutdiscountpercentagerepeatduration.ts +++ b/src/models/components/checkoutdiscountpercentagerepeatduration.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/checkoutlink.ts b/src/models/components/checkoutlink.ts index ecd750de..b8256aba 100644 --- a/src/models/components/checkoutlink.ts +++ b/src/models/components/checkoutlink.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/checkoutlinkcreate.ts b/src/models/components/checkoutlinkcreate.ts index 504b1576..ddd99490 100644 --- a/src/models/components/checkoutlinkcreate.ts +++ b/src/models/components/checkoutlinkcreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/checkoutlinkcreateproduct.ts b/src/models/components/checkoutlinkcreateproduct.ts index 8127c76a..1a254766 100644 --- a/src/models/components/checkoutlinkcreateproduct.ts +++ b/src/models/components/checkoutlinkcreateproduct.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/checkoutlinkcreateproductprice.ts b/src/models/components/checkoutlinkcreateproductprice.ts index 9f057d50..ee044597 100644 --- a/src/models/components/checkoutlinkcreateproductprice.ts +++ b/src/models/components/checkoutlinkcreateproductprice.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/checkoutlinkcreateproducts.ts b/src/models/components/checkoutlinkcreateproducts.ts index 556bf5ea..16f3b098 100644 --- a/src/models/components/checkoutlinkcreateproducts.ts +++ b/src/models/components/checkoutlinkcreateproducts.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/checkoutlinkproduct.ts b/src/models/components/checkoutlinkproduct.ts index f65df160..1970ef32 100644 --- a/src/models/components/checkoutlinkproduct.ts +++ b/src/models/components/checkoutlinkproduct.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -82,9 +82,13 @@ export type CheckoutLinkProduct = { */ description: string | null; /** - * The recurring interval of the product. If `None`, the product is a one-time purchase.Note that the `day` and `week` values are for internal Polar staff use only. + * The recurring interval of the product. If `None`, the product is a one-time purchase. */ recurringInterval: SubscriptionRecurringInterval | null; + /** + * Number of interval units of the subscription.If this is set to 1 the charge will happen every interval (e.g. every month),if set to 2 it will be every other month, and so on. None for one-time products. + */ + recurringIntervalCount: number | null; /** * Whether the product is a subscription. */ @@ -240,6 +244,7 @@ export const CheckoutLinkProduct$inboundSchema: z.ZodType< name: z.string(), description: z.nullable(z.string()), recurring_interval: z.nullable(SubscriptionRecurringInterval$inboundSchema), + recurring_interval_count: z.nullable(z.number().int()), is_recurring: z.boolean(), is_archived: z.boolean(), organization_id: z.string(), @@ -258,6 +263,7 @@ export const CheckoutLinkProduct$inboundSchema: z.ZodType< "trial_interval": "trialInterval", "trial_interval_count": "trialIntervalCount", "recurring_interval": "recurringInterval", + "recurring_interval_count": "recurringIntervalCount", "is_recurring": "isRecurring", "is_archived": "isArchived", "organization_id": "organizationId", @@ -275,6 +281,7 @@ export type CheckoutLinkProduct$Outbound = { name: string; description: string | null; recurring_interval: string | null; + recurring_interval_count: number | null; is_recurring: boolean; is_archived: boolean; organization_id: string; @@ -300,6 +307,7 @@ export const CheckoutLinkProduct$outboundSchema: z.ZodType< name: z.string(), description: z.nullable(z.string()), recurringInterval: z.nullable(SubscriptionRecurringInterval$outboundSchema), + recurringIntervalCount: z.nullable(z.number().int()), isRecurring: z.boolean(), isArchived: z.boolean(), organizationId: z.string(), @@ -318,6 +326,7 @@ export const CheckoutLinkProduct$outboundSchema: z.ZodType< trialInterval: "trial_interval", trialIntervalCount: "trial_interval_count", recurringInterval: "recurring_interval", + recurringIntervalCount: "recurring_interval_count", isRecurring: "is_recurring", isArchived: "is_archived", organizationId: "organization_id", diff --git a/src/models/components/checkoutlinksortproperty.ts b/src/models/components/checkoutlinksortproperty.ts index 4ea482b1..e4fcb3b1 100644 --- a/src/models/components/checkoutlinksortproperty.ts +++ b/src/models/components/checkoutlinksortproperty.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const CheckoutLinkSortProperty = { diff --git a/src/models/components/checkoutlinkupdate.ts b/src/models/components/checkoutlinkupdate.ts index 6e7ee125..ead0d00c 100644 --- a/src/models/components/checkoutlinkupdate.ts +++ b/src/models/components/checkoutlinkupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/checkoutproduct.ts b/src/models/components/checkoutproduct.ts index f6a4af87..c1b3a9c0 100644 --- a/src/models/components/checkoutproduct.ts +++ b/src/models/components/checkoutproduct.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -77,9 +77,13 @@ export type CheckoutProduct = { */ description: string | null; /** - * The recurring interval of the product. If `None`, the product is a one-time purchase.Note that the `day` and `week` values are for internal Polar staff use only. + * The recurring interval of the product. If `None`, the product is a one-time purchase. */ recurringInterval: SubscriptionRecurringInterval | null; + /** + * Number of interval units of the subscription.If this is set to 1 the charge will happen every interval (e.g. every month),if set to 2 it will be every other month, and so on. None for one-time products. + */ + recurringIntervalCount: number | null; /** * Whether the product is a subscription. */ @@ -178,6 +182,7 @@ export const CheckoutProduct$inboundSchema: z.ZodType< name: z.string(), description: z.nullable(z.string()), recurring_interval: z.nullable(SubscriptionRecurringInterval$inboundSchema), + recurring_interval_count: z.nullable(z.number().int()), is_recurring: z.boolean(), is_archived: z.boolean(), organization_id: z.string(), @@ -196,6 +201,7 @@ export const CheckoutProduct$inboundSchema: z.ZodType< "trial_interval": "trialInterval", "trial_interval_count": "trialIntervalCount", "recurring_interval": "recurringInterval", + "recurring_interval_count": "recurringIntervalCount", "is_recurring": "isRecurring", "is_archived": "isArchived", "organization_id": "organizationId", @@ -212,6 +218,7 @@ export type CheckoutProduct$Outbound = { name: string; description: string | null; recurring_interval: string | null; + recurring_interval_count: number | null; is_recurring: boolean; is_archived: boolean; organization_id: string; @@ -234,6 +241,7 @@ export const CheckoutProduct$outboundSchema: z.ZodType< name: z.string(), description: z.nullable(z.string()), recurringInterval: z.nullable(SubscriptionRecurringInterval$outboundSchema), + recurringIntervalCount: z.nullable(z.number().int()), isRecurring: z.boolean(), isArchived: z.boolean(), organizationId: z.string(), @@ -252,6 +260,7 @@ export const CheckoutProduct$outboundSchema: z.ZodType< trialInterval: "trial_interval", trialIntervalCount: "trial_interval_count", recurringInterval: "recurring_interval", + recurringIntervalCount: "recurring_interval_count", isRecurring: "is_recurring", isArchived: "is_archived", organizationId: "organization_id", diff --git a/src/models/components/checkoutpublic.ts b/src/models/components/checkoutpublic.ts index 7f348e1d..85b0dceb 100644 --- a/src/models/components/checkoutpublic.ts +++ b/src/models/components/checkoutpublic.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/checkoutpublicconfirmed.ts b/src/models/components/checkoutpublicconfirmed.ts index fdf70fdf..0403e266 100644 --- a/src/models/components/checkoutpublicconfirmed.ts +++ b/src/models/components/checkoutpublicconfirmed.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/checkoutsortproperty.ts b/src/models/components/checkoutsortproperty.ts index b7ee0fd8..341f5a70 100644 --- a/src/models/components/checkoutsortproperty.ts +++ b/src/models/components/checkoutsortproperty.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const CheckoutSortProperty = { diff --git a/src/models/components/checkoutstatus.ts b/src/models/components/checkoutstatus.ts index 7a70205a..78cc59b0 100644 --- a/src/models/components/checkoutstatus.ts +++ b/src/models/components/checkoutstatus.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const CheckoutStatus = { diff --git a/src/models/components/checkoutupdate.ts b/src/models/components/checkoutupdate.ts index 08540c01..03c066a9 100644 --- a/src/models/components/checkoutupdate.ts +++ b/src/models/components/checkoutupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/checkoutupdatepublic.ts b/src/models/components/checkoutupdatepublic.ts index 908aac29..e0f4d90c 100644 --- a/src/models/components/checkoutupdatepublic.ts +++ b/src/models/components/checkoutupdatepublic.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/countaggregation.ts b/src/models/components/countaggregation.ts index c5ad28e5..6532532d 100644 --- a/src/models/components/countaggregation.ts +++ b/src/models/components/countaggregation.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/customer.ts b/src/models/components/customer.ts index 92bbaa9f..fc391772 100644 --- a/src/models/components/customer.ts +++ b/src/models/components/customer.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customerbalance.ts b/src/models/components/customerbalance.ts index f8a9cd17..40c4f0d6 100644 --- a/src/models/components/customerbalance.ts +++ b/src/models/components/customerbalance.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/customerbenefitgrant.ts b/src/models/components/customerbenefitgrant.ts index 2f8dfa04..e2ddbb89 100644 --- a/src/models/components/customerbenefitgrant.ts +++ b/src/models/components/customerbenefitgrant.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/customerbenefitgrantcustom.ts b/src/models/components/customerbenefitgrantcustom.ts index 8fe1fd1f..a32942e4 100644 --- a/src/models/components/customerbenefitgrantcustom.ts +++ b/src/models/components/customerbenefitgrantcustom.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customerbenefitgrantcustomupdate.ts b/src/models/components/customerbenefitgrantcustomupdate.ts index 131a1074..115889be 100644 --- a/src/models/components/customerbenefitgrantcustomupdate.ts +++ b/src/models/components/customerbenefitgrantcustomupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customerbenefitgrantdiscord.ts b/src/models/components/customerbenefitgrantdiscord.ts index 2f735f0e..f12f0985 100644 --- a/src/models/components/customerbenefitgrantdiscord.ts +++ b/src/models/components/customerbenefitgrantdiscord.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customerbenefitgrantdiscordpropertiesupdate.ts b/src/models/components/customerbenefitgrantdiscordpropertiesupdate.ts index 0643ec72..c6929f47 100644 --- a/src/models/components/customerbenefitgrantdiscordpropertiesupdate.ts +++ b/src/models/components/customerbenefitgrantdiscordpropertiesupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customerbenefitgrantdiscordupdate.ts b/src/models/components/customerbenefitgrantdiscordupdate.ts index 015123b4..bf774a7b 100644 --- a/src/models/components/customerbenefitgrantdiscordupdate.ts +++ b/src/models/components/customerbenefitgrantdiscordupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customerbenefitgrantdownloadables.ts b/src/models/components/customerbenefitgrantdownloadables.ts index f5f6766a..4c2f20d5 100644 --- a/src/models/components/customerbenefitgrantdownloadables.ts +++ b/src/models/components/customerbenefitgrantdownloadables.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customerbenefitgrantdownloadablesupdate.ts b/src/models/components/customerbenefitgrantdownloadablesupdate.ts index 20d56795..59a37aac 100644 --- a/src/models/components/customerbenefitgrantdownloadablesupdate.ts +++ b/src/models/components/customerbenefitgrantdownloadablesupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customerbenefitgrantgithubrepository.ts b/src/models/components/customerbenefitgrantgithubrepository.ts index e5d0a09e..a364d3d9 100644 --- a/src/models/components/customerbenefitgrantgithubrepository.ts +++ b/src/models/components/customerbenefitgrantgithubrepository.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customerbenefitgrantgithubrepositorypropertiesupdate.ts b/src/models/components/customerbenefitgrantgithubrepositorypropertiesupdate.ts index 8ddf661d..2814dea7 100644 --- a/src/models/components/customerbenefitgrantgithubrepositorypropertiesupdate.ts +++ b/src/models/components/customerbenefitgrantgithubrepositorypropertiesupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customerbenefitgrantgithubrepositoryupdate.ts b/src/models/components/customerbenefitgrantgithubrepositoryupdate.ts index 343ef779..df08b0b1 100644 --- a/src/models/components/customerbenefitgrantgithubrepositoryupdate.ts +++ b/src/models/components/customerbenefitgrantgithubrepositoryupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customerbenefitgrantlicensekeys.ts b/src/models/components/customerbenefitgrantlicensekeys.ts index e58271a0..6cc10d1b 100644 --- a/src/models/components/customerbenefitgrantlicensekeys.ts +++ b/src/models/components/customerbenefitgrantlicensekeys.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customerbenefitgrantlicensekeysupdate.ts b/src/models/components/customerbenefitgrantlicensekeysupdate.ts index b773833a..e46e846d 100644 --- a/src/models/components/customerbenefitgrantlicensekeysupdate.ts +++ b/src/models/components/customerbenefitgrantlicensekeysupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customerbenefitgrantmetercredit.ts b/src/models/components/customerbenefitgrantmetercredit.ts index 0038113d..0addb7b3 100644 --- a/src/models/components/customerbenefitgrantmetercredit.ts +++ b/src/models/components/customerbenefitgrantmetercredit.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customerbenefitgrantmetercreditupdate.ts b/src/models/components/customerbenefitgrantmetercreditupdate.ts index 323c6c38..8fd9d90c 100644 --- a/src/models/components/customerbenefitgrantmetercreditupdate.ts +++ b/src/models/components/customerbenefitgrantmetercreditupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customerbenefitgrantsortproperty.ts b/src/models/components/customerbenefitgrantsortproperty.ts index 2e5abb36..d378e47b 100644 --- a/src/models/components/customerbenefitgrantsortproperty.ts +++ b/src/models/components/customerbenefitgrantsortproperty.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const CustomerBenefitGrantSortProperty = { diff --git a/src/models/components/customerbenefitgrantupdate.ts b/src/models/components/customerbenefitgrantupdate.ts index 87e3015f..180a3b1f 100644 --- a/src/models/components/customerbenefitgrantupdate.ts +++ b/src/models/components/customerbenefitgrantupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/customercancellationreason.ts b/src/models/components/customercancellationreason.ts index 2b174a0c..54998011 100644 --- a/src/models/components/customercancellationreason.ts +++ b/src/models/components/customercancellationreason.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const CustomerCancellationReason = { diff --git a/src/models/components/customercreate.ts b/src/models/components/customercreate.ts index 3128ad6d..b3e5567c 100644 --- a/src/models/components/customercreate.ts +++ b/src/models/components/customercreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customercustomermeter.ts b/src/models/components/customercustomermeter.ts index 3037a6a8..f9a18519 100644 --- a/src/models/components/customercustomermeter.ts +++ b/src/models/components/customercustomermeter.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customercustomermetermeter.ts b/src/models/components/customercustomermetermeter.ts index 595875d7..c86e9214 100644 --- a/src/models/components/customercustomermetermeter.ts +++ b/src/models/components/customercustomermetermeter.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customercustomermetersortproperty.ts b/src/models/components/customercustomermetersortproperty.ts index 2b741ac5..e975bb45 100644 --- a/src/models/components/customercustomermetersortproperty.ts +++ b/src/models/components/customercustomermetersortproperty.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const CustomerCustomerMeterSortProperty = { diff --git a/src/models/components/customercustomersession.ts b/src/models/components/customercustomersession.ts index c25b5818..52210104 100644 --- a/src/models/components/customercustomersession.ts +++ b/src/models/components/customercustomersession.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customermeter.ts b/src/models/components/customermeter.ts index 7a756fad..efb92818 100644 --- a/src/models/components/customermeter.ts +++ b/src/models/components/customermeter.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customermetersortproperty.ts b/src/models/components/customermetersortproperty.ts index 3ce997f9..ed9bcd5c 100644 --- a/src/models/components/customermetersortproperty.ts +++ b/src/models/components/customermetersortproperty.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const CustomerMeterSortProperty = { diff --git a/src/models/components/customerorder.ts b/src/models/components/customerorder.ts index f6ff5af0..28ab67b0 100644 --- a/src/models/components/customerorder.ts +++ b/src/models/components/customerorder.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -111,8 +111,12 @@ export type CustomerOrder = { * Whether an invoice has been generated for this order. */ isInvoiceGenerated: boolean; + /** + * Number of seats purchased (for seat-based one-time orders). + */ + seats?: number | null | undefined; customerId: string; - productId: string; + productId: string | null; discountId: string | null; subscriptionId: string | null; checkoutId: string | null; @@ -120,12 +124,16 @@ export type CustomerOrder = { * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ userId: string; - product: CustomerOrderProduct; + product: CustomerOrderProduct | null; subscription: CustomerOrderSubscription | null; /** * Line items composing the order. */ items: Array; + /** + * A summary description of the order. + */ + description: string; /** * When the next payment retry is scheduled */ @@ -160,15 +168,17 @@ export const CustomerOrder$inboundSchema: z.ZodType< billing_address: z.nullable(Address$inboundSchema), invoice_number: z.string(), is_invoice_generated: z.boolean(), + seats: z.nullable(z.number().int()).optional(), customer_id: z.string(), - product_id: z.string(), + product_id: z.nullable(z.string()), discount_id: z.nullable(z.string()), subscription_id: z.nullable(z.string()), checkout_id: z.nullable(z.string()), user_id: z.string(), - product: CustomerOrderProduct$inboundSchema, + product: z.nullable(CustomerOrderProduct$inboundSchema), subscription: z.nullable(CustomerOrderSubscription$inboundSchema), items: z.array(OrderItemSchema$inboundSchema), + description: z.string(), next_payment_attempt_at: z.nullable( z.string().datetime({ offset: true }).transform(v => new Date(v)), ).optional(), @@ -222,15 +232,17 @@ export type CustomerOrder$Outbound = { billing_address: Address$Outbound | null; invoice_number: string; is_invoice_generated: boolean; + seats?: number | null | undefined; customer_id: string; - product_id: string; + product_id: string | null; discount_id: string | null; subscription_id: string | null; checkout_id: string | null; user_id: string; - product: CustomerOrderProduct$Outbound; + product: CustomerOrderProduct$Outbound | null; subscription: CustomerOrderSubscription$Outbound | null; items: Array; + description: string; next_payment_attempt_at?: string | null | undefined; }; @@ -260,15 +272,17 @@ export const CustomerOrder$outboundSchema: z.ZodType< billingAddress: z.nullable(Address$outboundSchema), invoiceNumber: z.string(), isInvoiceGenerated: z.boolean(), + seats: z.nullable(z.number().int()).optional(), customerId: z.string(), - productId: z.string(), + productId: z.nullable(z.string()), discountId: z.nullable(z.string()), subscriptionId: z.nullable(z.string()), checkoutId: z.nullable(z.string()), userId: z.string(), - product: CustomerOrderProduct$outboundSchema, + product: z.nullable(CustomerOrderProduct$outboundSchema), subscription: z.nullable(CustomerOrderSubscription$outboundSchema), items: z.array(OrderItemSchema$outboundSchema), + description: z.string(), nextPaymentAttemptAt: z.nullable(z.date().transform(v => v.toISOString())) .optional(), }).transform((v) => { diff --git a/src/models/components/customerorderconfirmpayment.ts b/src/models/components/customerorderconfirmpayment.ts index 8e78ec37..40f6292a 100644 --- a/src/models/components/customerorderconfirmpayment.ts +++ b/src/models/components/customerorderconfirmpayment.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customerorderinvoice.ts b/src/models/components/customerorderinvoice.ts index c3734408..ebe9c70e 100644 --- a/src/models/components/customerorderinvoice.ts +++ b/src/models/components/customerorderinvoice.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/customerorderpaymentconfirmation.ts b/src/models/components/customerorderpaymentconfirmation.ts index 24527f42..634e4fce 100644 --- a/src/models/components/customerorderpaymentconfirmation.ts +++ b/src/models/components/customerorderpaymentconfirmation.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customerorderpaymentstatus.ts b/src/models/components/customerorderpaymentstatus.ts index 9b72de7d..d9b68526 100644 --- a/src/models/components/customerorderpaymentstatus.ts +++ b/src/models/components/customerorderpaymentstatus.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/customerorderproduct.ts b/src/models/components/customerorderproduct.ts index c33a3ad3..69fc6e26 100644 --- a/src/models/components/customerorderproduct.ts +++ b/src/models/components/customerorderproduct.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -82,9 +82,13 @@ export type CustomerOrderProduct = { */ description: string | null; /** - * The recurring interval of the product. If `None`, the product is a one-time purchase.Note that the `day` and `week` values are for internal Polar staff use only. + * The recurring interval of the product. If `None`, the product is a one-time purchase. */ recurringInterval: SubscriptionRecurringInterval | null; + /** + * Number of interval units of the subscription.If this is set to 1 the charge will happen every interval (e.g. every month),if set to 2 it will be every other month, and so on. None for one-time products. + */ + recurringIntervalCount: number | null; /** * Whether the product is a subscription. */ @@ -184,6 +188,7 @@ export const CustomerOrderProduct$inboundSchema: z.ZodType< name: z.string(), description: z.nullable(z.string()), recurring_interval: z.nullable(SubscriptionRecurringInterval$inboundSchema), + recurring_interval_count: z.nullable(z.number().int()), is_recurring: z.boolean(), is_archived: z.boolean(), organization_id: z.string(), @@ -203,6 +208,7 @@ export const CustomerOrderProduct$inboundSchema: z.ZodType< "trial_interval": "trialInterval", "trial_interval_count": "trialIntervalCount", "recurring_interval": "recurringInterval", + "recurring_interval_count": "recurringIntervalCount", "is_recurring": "isRecurring", "is_archived": "isArchived", "organization_id": "organizationId", @@ -219,6 +225,7 @@ export type CustomerOrderProduct$Outbound = { name: string; description: string | null; recurring_interval: string | null; + recurring_interval_count: number | null; is_recurring: boolean; is_archived: boolean; organization_id: string; @@ -242,6 +249,7 @@ export const CustomerOrderProduct$outboundSchema: z.ZodType< name: z.string(), description: z.nullable(z.string()), recurringInterval: z.nullable(SubscriptionRecurringInterval$outboundSchema), + recurringIntervalCount: z.nullable(z.number().int()), isRecurring: z.boolean(), isArchived: z.boolean(), organizationId: z.string(), @@ -261,6 +269,7 @@ export const CustomerOrderProduct$outboundSchema: z.ZodType< trialInterval: "trial_interval", trialIntervalCount: "trial_interval_count", recurringInterval: "recurring_interval", + recurringIntervalCount: "recurring_interval_count", isRecurring: "is_recurring", isArchived: "is_archived", organizationId: "organization_id", diff --git a/src/models/components/customerordersortproperty.ts b/src/models/components/customerordersortproperty.ts index ce883dde..e74499ee 100644 --- a/src/models/components/customerordersortproperty.ts +++ b/src/models/components/customerordersortproperty.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const CustomerOrderSortProperty = { diff --git a/src/models/components/customerordersubscription.ts b/src/models/components/customerordersubscription.ts index 1ce62b9f..36dc0518 100644 --- a/src/models/components/customerordersubscription.ts +++ b/src/models/components/customerordersubscription.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -45,6 +45,10 @@ export type CustomerOrderSubscription = { */ currency: string; recurringInterval: SubscriptionRecurringInterval; + /** + * Number of interval units of the subscription.If this is set to 1 the charge will happen every interval (e.g. every month),if set to 2 it will be every other month, and so on. + */ + recurringIntervalCount: number; status: SubscriptionStatus; /** * The start timestamp of the current billing period. @@ -113,6 +117,7 @@ export const CustomerOrderSubscription$inboundSchema: z.ZodType< amount: z.number().int(), currency: z.string(), recurring_interval: SubscriptionRecurringInterval$inboundSchema, + recurring_interval_count: z.number().int(), status: SubscriptionStatus$inboundSchema, current_period_start: z.string().datetime({ offset: true }).transform(v => new Date(v) @@ -152,6 +157,7 @@ export const CustomerOrderSubscription$inboundSchema: z.ZodType< "created_at": "createdAt", "modified_at": "modifiedAt", "recurring_interval": "recurringInterval", + "recurring_interval_count": "recurringIntervalCount", "current_period_start": "currentPeriodStart", "current_period_end": "currentPeriodEnd", "trial_start": "trialStart", @@ -178,6 +184,7 @@ export type CustomerOrderSubscription$Outbound = { amount: number; currency: string; recurring_interval: string; + recurring_interval_count: number; status: string; current_period_start: string; current_period_end: string | null; @@ -208,6 +215,7 @@ export const CustomerOrderSubscription$outboundSchema: z.ZodType< amount: z.number().int(), currency: z.string(), recurringInterval: SubscriptionRecurringInterval$outboundSchema, + recurringIntervalCount: z.number().int(), status: SubscriptionStatus$outboundSchema, currentPeriodStart: z.date().transform(v => v.toISOString()), currentPeriodEnd: z.nullable(z.date().transform(v => v.toISOString())), @@ -231,6 +239,7 @@ export const CustomerOrderSubscription$outboundSchema: z.ZodType< createdAt: "created_at", modifiedAt: "modified_at", recurringInterval: "recurring_interval", + recurringIntervalCount: "recurring_interval_count", currentPeriodStart: "current_period_start", currentPeriodEnd: "current_period_end", trialStart: "trial_start", diff --git a/src/models/components/customerorderupdate.ts b/src/models/components/customerorderupdate.ts index 56db6e25..cd9698f3 100644 --- a/src/models/components/customerorderupdate.ts +++ b/src/models/components/customerorderupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customerorganization.ts b/src/models/components/customerorganization.ts index a22f2ae3..f9ef1b40 100644 --- a/src/models/components/customerorganization.ts +++ b/src/models/components/customerorganization.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/customerpaymentmethod.ts b/src/models/components/customerpaymentmethod.ts index b8e0d85b..73ef7abe 100644 --- a/src/models/components/customerpaymentmethod.ts +++ b/src/models/components/customerpaymentmethod.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/customerpaymentmethodconfirm.ts b/src/models/components/customerpaymentmethodconfirm.ts index d7c944b2..18dfaec1 100644 --- a/src/models/components/customerpaymentmethodconfirm.ts +++ b/src/models/components/customerpaymentmethodconfirm.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customerpaymentmethodcreate.ts b/src/models/components/customerpaymentmethodcreate.ts index 4d31c781..3095c876 100644 --- a/src/models/components/customerpaymentmethodcreate.ts +++ b/src/models/components/customerpaymentmethodcreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customerpaymentmethodcreaterequiresactionresponse.ts b/src/models/components/customerpaymentmethodcreaterequiresactionresponse.ts index b5f0bec8..a1b4ce5d 100644 --- a/src/models/components/customerpaymentmethodcreaterequiresactionresponse.ts +++ b/src/models/components/customerpaymentmethodcreaterequiresactionresponse.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customerpaymentmethodcreateresponse.ts b/src/models/components/customerpaymentmethodcreateresponse.ts index 525dab8e..08ac835a 100644 --- a/src/models/components/customerpaymentmethodcreateresponse.ts +++ b/src/models/components/customerpaymentmethodcreateresponse.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/customerpaymentmethodcreatesucceededresponse.ts b/src/models/components/customerpaymentmethodcreatesucceededresponse.ts index f6d51380..7f46706b 100644 --- a/src/models/components/customerpaymentmethodcreatesucceededresponse.ts +++ b/src/models/components/customerpaymentmethodcreatesucceededresponse.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customerportalcustomer.ts b/src/models/components/customerportalcustomer.ts index bffed288..2e717226 100644 --- a/src/models/components/customerportalcustomer.ts +++ b/src/models/components/customerportalcustomer.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customerportalcustomerupdate.ts b/src/models/components/customerportalcustomerupdate.ts index 52a832ba..949d3da5 100644 --- a/src/models/components/customerportalcustomerupdate.ts +++ b/src/models/components/customerportalcustomerupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customerportaloauthaccount.ts b/src/models/components/customerportaloauthaccount.ts index fdd3f9ec..1e9bee0f 100644 --- a/src/models/components/customerportaloauthaccount.ts +++ b/src/models/components/customerportaloauthaccount.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customerproduct.ts b/src/models/components/customerproduct.ts index 34a88a36..ef165273 100644 --- a/src/models/components/customerproduct.ts +++ b/src/models/components/customerproduct.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -77,9 +77,13 @@ export type CustomerProduct = { */ description: string | null; /** - * The recurring interval of the product. If `None`, the product is a one-time purchase.Note that the `day` and `week` values are for internal Polar staff use only. + * The recurring interval of the product. If `None`, the product is a one-time purchase. */ recurringInterval: SubscriptionRecurringInterval | null; + /** + * Number of interval units of the subscription.If this is set to 1 the charge will happen every interval (e.g. every month),if set to 2 it will be every other month, and so on. None for one-time products. + */ + recurringIntervalCount: number | null; /** * Whether the product is a subscription. */ @@ -178,6 +182,7 @@ export const CustomerProduct$inboundSchema: z.ZodType< name: z.string(), description: z.nullable(z.string()), recurring_interval: z.nullable(SubscriptionRecurringInterval$inboundSchema), + recurring_interval_count: z.nullable(z.number().int()), is_recurring: z.boolean(), is_archived: z.boolean(), organization_id: z.string(), @@ -196,6 +201,7 @@ export const CustomerProduct$inboundSchema: z.ZodType< "trial_interval": "trialInterval", "trial_interval_count": "trialIntervalCount", "recurring_interval": "recurringInterval", + "recurring_interval_count": "recurringIntervalCount", "is_recurring": "isRecurring", "is_archived": "isArchived", "organization_id": "organizationId", @@ -212,6 +218,7 @@ export type CustomerProduct$Outbound = { name: string; description: string | null; recurring_interval: string | null; + recurring_interval_count: number | null; is_recurring: boolean; is_archived: boolean; organization_id: string; @@ -234,6 +241,7 @@ export const CustomerProduct$outboundSchema: z.ZodType< name: z.string(), description: z.nullable(z.string()), recurringInterval: z.nullable(SubscriptionRecurringInterval$outboundSchema), + recurringIntervalCount: z.nullable(z.number().int()), isRecurring: z.boolean(), isArchived: z.boolean(), organizationId: z.string(), @@ -252,6 +260,7 @@ export const CustomerProduct$outboundSchema: z.ZodType< trialInterval: "trial_interval", trialIntervalCount: "trial_interval_count", recurringInterval: "recurring_interval", + recurringIntervalCount: "recurring_interval_count", isRecurring: "is_recurring", isArchived: "is_archived", organizationId: "organization_id", diff --git a/src/models/components/customerseat.ts b/src/models/components/customerseat.ts index 342e582b..3380cbdc 100644 --- a/src/models/components/customerseat.ts +++ b/src/models/components/customerseat.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,9 +27,13 @@ export type CustomerSeat = { */ id: string; /** - * The subscription ID + * The subscription ID (for recurring seats) */ - subscriptionId: string; + subscriptionId?: string | null | undefined; + /** + * The order ID (for one-time purchase seats) + */ + orderId?: string | null | undefined; status: SeatStatus; /** * The assigned customer ID @@ -68,7 +72,8 @@ export const CustomerSeat$inboundSchema: z.ZodType< z.string().datetime({ offset: true }).transform(v => new Date(v)), ), id: z.string(), - subscription_id: z.string(), + subscription_id: z.nullable(z.string()).optional(), + order_id: z.nullable(z.string()).optional(), status: SeatStatus$inboundSchema, customer_id: z.nullable(z.string()).optional(), customer_email: z.nullable(z.string()).optional(), @@ -87,6 +92,7 @@ export const CustomerSeat$inboundSchema: z.ZodType< "created_at": "createdAt", "modified_at": "modifiedAt", "subscription_id": "subscriptionId", + "order_id": "orderId", "customer_id": "customerId", "customer_email": "customerEmail", "invitation_token_expires_at": "invitationTokenExpiresAt", @@ -101,7 +107,8 @@ export type CustomerSeat$Outbound = { created_at: string; modified_at: string | null; id: string; - subscription_id: string; + subscription_id?: string | null | undefined; + order_id?: string | null | undefined; status: string; customer_id?: string | null | undefined; customer_email?: string | null | undefined; @@ -120,7 +127,8 @@ export const CustomerSeat$outboundSchema: z.ZodType< createdAt: z.date().transform(v => v.toISOString()), modifiedAt: z.nullable(z.date().transform(v => v.toISOString())), id: z.string(), - subscriptionId: z.string(), + subscriptionId: z.nullable(z.string()).optional(), + orderId: z.nullable(z.string()).optional(), status: SeatStatus$outboundSchema, customerId: z.nullable(z.string()).optional(), customerEmail: z.nullable(z.string()).optional(), @@ -134,6 +142,7 @@ export const CustomerSeat$outboundSchema: z.ZodType< createdAt: "created_at", modifiedAt: "modified_at", subscriptionId: "subscription_id", + orderId: "order_id", customerId: "customer_id", customerEmail: "customer_email", invitationTokenExpiresAt: "invitation_token_expires_at", diff --git a/src/models/components/customersession.ts b/src/models/components/customersession.ts index bc06ccc8..00479297 100644 --- a/src/models/components/customersession.ts +++ b/src/models/components/customersession.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customersessioncustomerexternalidcreate.ts b/src/models/components/customersessioncustomerexternalidcreate.ts index 29694814..fa585c46 100644 --- a/src/models/components/customersessioncustomerexternalidcreate.ts +++ b/src/models/components/customersessioncustomerexternalidcreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customersessioncustomeridcreate.ts b/src/models/components/customersessioncustomeridcreate.ts index 29851eb1..b5e5ef74 100644 --- a/src/models/components/customersessioncustomeridcreate.ts +++ b/src/models/components/customersessioncustomeridcreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customersortproperty.ts b/src/models/components/customersortproperty.ts index a8b7a32a..c79f50ee 100644 --- a/src/models/components/customersortproperty.ts +++ b/src/models/components/customersortproperty.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const CustomerSortProperty = { diff --git a/src/models/components/customerstate.ts b/src/models/components/customerstate.ts index 8af9e7cc..5eef706f 100644 --- a/src/models/components/customerstate.ts +++ b/src/models/components/customerstate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customerstatebenefitgrant.ts b/src/models/components/customerstatebenefitgrant.ts index 5d4fdafc..3c45f8f7 100644 --- a/src/models/components/customerstatebenefitgrant.ts +++ b/src/models/components/customerstatebenefitgrant.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customerstatemeter.ts b/src/models/components/customerstatemeter.ts index c75aea39..7a90d955 100644 --- a/src/models/components/customerstatemeter.ts +++ b/src/models/components/customerstatemeter.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customerstatesubscription.ts b/src/models/components/customerstatesubscription.ts index a95d7e11..1be7a516 100644 --- a/src/models/components/customerstatesubscription.ts +++ b/src/models/components/customerstatesubscription.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; diff --git a/src/models/components/customerstatesubscriptionmeter.ts b/src/models/components/customerstatesubscriptionmeter.ts index fbed7d69..21e4c17a 100644 --- a/src/models/components/customerstatesubscriptionmeter.ts +++ b/src/models/components/customerstatesubscriptionmeter.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customersubscription.ts b/src/models/components/customersubscription.ts index 2a63b62c..cd2b9f5e 100644 --- a/src/models/components/customersubscription.ts +++ b/src/models/components/customersubscription.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -73,6 +73,10 @@ export type CustomerSubscription = { */ currency: string; recurringInterval: SubscriptionRecurringInterval; + /** + * Number of interval units of the subscription.If this is set to 1 the charge will happen every interval (e.g. every month),if set to 2 it will be every other month, and so on. + */ + recurringIntervalCount: number; status: SubscriptionStatus; /** * The start timestamp of the current billing period. @@ -210,6 +214,7 @@ export const CustomerSubscription$inboundSchema: z.ZodType< amount: z.number().int(), currency: z.string(), recurring_interval: SubscriptionRecurringInterval$inboundSchema, + recurring_interval_count: z.number().int(), status: SubscriptionStatus$inboundSchema, current_period_start: z.string().datetime({ offset: true }).transform(v => new Date(v) @@ -258,6 +263,7 @@ export const CustomerSubscription$inboundSchema: z.ZodType< "created_at": "createdAt", "modified_at": "modifiedAt", "recurring_interval": "recurringInterval", + "recurring_interval_count": "recurringIntervalCount", "current_period_start": "currentPeriodStart", "current_period_end": "currentPeriodEnd", "trial_start": "trialStart", @@ -285,6 +291,7 @@ export type CustomerSubscription$Outbound = { amount: number; currency: string; recurring_interval: string; + recurring_interval_count: number; status: string; current_period_start: string; current_period_end: string | null; @@ -319,6 +326,7 @@ export const CustomerSubscription$outboundSchema: z.ZodType< amount: z.number().int(), currency: z.string(), recurringInterval: SubscriptionRecurringInterval$outboundSchema, + recurringIntervalCount: z.number().int(), status: SubscriptionStatus$outboundSchema, currentPeriodStart: z.date().transform(v => v.toISOString()), currentPeriodEnd: z.nullable(z.date().transform(v => v.toISOString())), @@ -351,6 +359,7 @@ export const CustomerSubscription$outboundSchema: z.ZodType< createdAt: "created_at", modifiedAt: "modified_at", recurringInterval: "recurring_interval", + recurringIntervalCount: "recurring_interval_count", currentPeriodStart: "current_period_start", currentPeriodEnd: "current_period_end", trialStart: "trial_start", diff --git a/src/models/components/customersubscriptioncancel.ts b/src/models/components/customersubscriptioncancel.ts index 2a647a7a..9a962b6e 100644 --- a/src/models/components/customersubscriptioncancel.ts +++ b/src/models/components/customersubscriptioncancel.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customersubscriptionmeter.ts b/src/models/components/customersubscriptionmeter.ts index 20c2f5b7..66131a9b 100644 --- a/src/models/components/customersubscriptionmeter.ts +++ b/src/models/components/customersubscriptionmeter.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customersubscriptionmetermeter.ts b/src/models/components/customersubscriptionmetermeter.ts index 3c9c6b58..5b433d35 100644 --- a/src/models/components/customersubscriptionmetermeter.ts +++ b/src/models/components/customersubscriptionmetermeter.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customersubscriptionproduct.ts b/src/models/components/customersubscriptionproduct.ts index 3ef5b018..2442b780 100644 --- a/src/models/components/customersubscriptionproduct.ts +++ b/src/models/components/customersubscriptionproduct.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -82,9 +82,13 @@ export type CustomerSubscriptionProduct = { */ description: string | null; /** - * The recurring interval of the product. If `None`, the product is a one-time purchase.Note that the `day` and `week` values are for internal Polar staff use only. + * The recurring interval of the product. If `None`, the product is a one-time purchase. */ recurringInterval: SubscriptionRecurringInterval | null; + /** + * Number of interval units of the subscription.If this is set to 1 the charge will happen every interval (e.g. every month),if set to 2 it will be every other month, and so on. None for one-time products. + */ + recurringIntervalCount: number | null; /** * Whether the product is a subscription. */ @@ -187,6 +191,7 @@ export const CustomerSubscriptionProduct$inboundSchema: z.ZodType< name: z.string(), description: z.nullable(z.string()), recurring_interval: z.nullable(SubscriptionRecurringInterval$inboundSchema), + recurring_interval_count: z.nullable(z.number().int()), is_recurring: z.boolean(), is_archived: z.boolean(), organization_id: z.string(), @@ -206,6 +211,7 @@ export const CustomerSubscriptionProduct$inboundSchema: z.ZodType< "trial_interval": "trialInterval", "trial_interval_count": "trialIntervalCount", "recurring_interval": "recurringInterval", + "recurring_interval_count": "recurringIntervalCount", "is_recurring": "isRecurring", "is_archived": "isArchived", "organization_id": "organizationId", @@ -222,6 +228,7 @@ export type CustomerSubscriptionProduct$Outbound = { name: string; description: string | null; recurring_interval: string | null; + recurring_interval_count: number | null; is_recurring: boolean; is_archived: boolean; organization_id: string; @@ -245,6 +252,7 @@ export const CustomerSubscriptionProduct$outboundSchema: z.ZodType< name: z.string(), description: z.nullable(z.string()), recurringInterval: z.nullable(SubscriptionRecurringInterval$outboundSchema), + recurringIntervalCount: z.nullable(z.number().int()), isRecurring: z.boolean(), isArchived: z.boolean(), organizationId: z.string(), @@ -264,6 +272,7 @@ export const CustomerSubscriptionProduct$outboundSchema: z.ZodType< trialInterval: "trial_interval", trialIntervalCount: "trial_interval_count", recurringInterval: "recurring_interval", + recurringIntervalCount: "recurring_interval_count", isRecurring: "is_recurring", isArchived: "is_archived", organizationId: "organization_id", diff --git a/src/models/components/customersubscriptionsortproperty.ts b/src/models/components/customersubscriptionsortproperty.ts index 2d4c3a20..f371210e 100644 --- a/src/models/components/customersubscriptionsortproperty.ts +++ b/src/models/components/customersubscriptionsortproperty.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const CustomerSubscriptionSortProperty = { diff --git a/src/models/components/customersubscriptionupdate.ts b/src/models/components/customersubscriptionupdate.ts index 6536e323..3fa8227d 100644 --- a/src/models/components/customersubscriptionupdate.ts +++ b/src/models/components/customersubscriptionupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/customersubscriptionupdateproduct.ts b/src/models/components/customersubscriptionupdateproduct.ts index 0d997c2d..fc5617dd 100644 --- a/src/models/components/customersubscriptionupdateproduct.ts +++ b/src/models/components/customersubscriptionupdateproduct.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customerupdate.ts b/src/models/components/customerupdate.ts index 1256f004..26372556 100644 --- a/src/models/components/customerupdate.ts +++ b/src/models/components/customerupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customerupdateexternalid.ts b/src/models/components/customerupdateexternalid.ts index 2fe3b8f6..cab53a75 100644 --- a/src/models/components/customerupdateexternalid.ts +++ b/src/models/components/customerupdateexternalid.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customfield.ts b/src/models/components/customfield.ts index dd43fb4b..849a10d0 100644 --- a/src/models/components/customfield.ts +++ b/src/models/components/customfield.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/customfieldcheckbox.ts b/src/models/components/customfieldcheckbox.ts index 0af94472..5041e045 100644 --- a/src/models/components/customfieldcheckbox.ts +++ b/src/models/components/customfieldcheckbox.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customfieldcheckboxproperties.ts b/src/models/components/customfieldcheckboxproperties.ts index fb7ddde1..5c781f83 100644 --- a/src/models/components/customfieldcheckboxproperties.ts +++ b/src/models/components/customfieldcheckboxproperties.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customfieldcreate.ts b/src/models/components/customfieldcreate.ts index 319d83a6..a8b51272 100644 --- a/src/models/components/customfieldcreate.ts +++ b/src/models/components/customfieldcreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/customfieldcreatecheckbox.ts b/src/models/components/customfieldcreatecheckbox.ts index 519f6ba1..fffe553f 100644 --- a/src/models/components/customfieldcreatecheckbox.ts +++ b/src/models/components/customfieldcreatecheckbox.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customfieldcreatedate.ts b/src/models/components/customfieldcreatedate.ts index 606aaf7b..0164d2d1 100644 --- a/src/models/components/customfieldcreatedate.ts +++ b/src/models/components/customfieldcreatedate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customfieldcreatenumber.ts b/src/models/components/customfieldcreatenumber.ts index ffc4f968..86270127 100644 --- a/src/models/components/customfieldcreatenumber.ts +++ b/src/models/components/customfieldcreatenumber.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customfieldcreateselect.ts b/src/models/components/customfieldcreateselect.ts index 8b15ad03..21c3b63f 100644 --- a/src/models/components/customfieldcreateselect.ts +++ b/src/models/components/customfieldcreateselect.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customfieldcreatetext.ts b/src/models/components/customfieldcreatetext.ts index 8ee21710..2e414422 100644 --- a/src/models/components/customfieldcreatetext.ts +++ b/src/models/components/customfieldcreatetext.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customfielddate.ts b/src/models/components/customfielddate.ts index 0cfd711e..b9775c22 100644 --- a/src/models/components/customfielddate.ts +++ b/src/models/components/customfielddate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customfielddateproperties.ts b/src/models/components/customfielddateproperties.ts index 1a712660..d6e8aa81 100644 --- a/src/models/components/customfielddateproperties.ts +++ b/src/models/components/customfielddateproperties.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customfieldnumber.ts b/src/models/components/customfieldnumber.ts index e44575d0..5b20eac6 100644 --- a/src/models/components/customfieldnumber.ts +++ b/src/models/components/customfieldnumber.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customfieldnumberproperties.ts b/src/models/components/customfieldnumberproperties.ts index 9d31de5d..f222ab1b 100644 --- a/src/models/components/customfieldnumberproperties.ts +++ b/src/models/components/customfieldnumberproperties.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customfieldselect.ts b/src/models/components/customfieldselect.ts index 856fe68f..88601b08 100644 --- a/src/models/components/customfieldselect.ts +++ b/src/models/components/customfieldselect.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customfieldselectoption.ts b/src/models/components/customfieldselectoption.ts index 3b21eb9d..133124a2 100644 --- a/src/models/components/customfieldselectoption.ts +++ b/src/models/components/customfieldselectoption.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/customfieldselectproperties.ts b/src/models/components/customfieldselectproperties.ts index a8cf7cb2..8944641e 100644 --- a/src/models/components/customfieldselectproperties.ts +++ b/src/models/components/customfieldselectproperties.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customfieldsortproperty.ts b/src/models/components/customfieldsortproperty.ts index 32f62638..75e7f9d5 100644 --- a/src/models/components/customfieldsortproperty.ts +++ b/src/models/components/customfieldsortproperty.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const CustomFieldSortProperty = { diff --git a/src/models/components/customfieldtext.ts b/src/models/components/customfieldtext.ts index 832d8b0e..43a093e8 100644 --- a/src/models/components/customfieldtext.ts +++ b/src/models/components/customfieldtext.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customfieldtextproperties.ts b/src/models/components/customfieldtextproperties.ts index dafdb6c2..4a71a9ea 100644 --- a/src/models/components/customfieldtextproperties.ts +++ b/src/models/components/customfieldtextproperties.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/customfieldtype.ts b/src/models/components/customfieldtype.ts index 9878229a..8a398d25 100644 --- a/src/models/components/customfieldtype.ts +++ b/src/models/components/customfieldtype.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const CustomFieldType = { diff --git a/src/models/components/customfieldupdate.ts b/src/models/components/customfieldupdate.ts index d271ac03..3f36bf39 100644 --- a/src/models/components/customfieldupdate.ts +++ b/src/models/components/customfieldupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/customfieldupdatecheckbox.ts b/src/models/components/customfieldupdatecheckbox.ts index d2822699..f92ceab4 100644 --- a/src/models/components/customfieldupdatecheckbox.ts +++ b/src/models/components/customfieldupdatecheckbox.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/customfieldupdatedate.ts b/src/models/components/customfieldupdatedate.ts index 1e0d8dd8..c50b048e 100644 --- a/src/models/components/customfieldupdatedate.ts +++ b/src/models/components/customfieldupdatedate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/customfieldupdatenumber.ts b/src/models/components/customfieldupdatenumber.ts index 32534cb7..34a5773a 100644 --- a/src/models/components/customfieldupdatenumber.ts +++ b/src/models/components/customfieldupdatenumber.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/customfieldupdateselect.ts b/src/models/components/customfieldupdateselect.ts index 2e2993c7..7314def3 100644 --- a/src/models/components/customfieldupdateselect.ts +++ b/src/models/components/customfieldupdateselect.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/customfieldupdatetext.ts b/src/models/components/customfieldupdatetext.ts index f2c2535a..972e3c15 100644 --- a/src/models/components/customfieldupdatetext.ts +++ b/src/models/components/customfieldupdatetext.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/discount.ts b/src/models/components/discount.ts index 092d24cf..232db18b 100644 --- a/src/models/components/discount.ts +++ b/src/models/components/discount.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/discountcreate.ts b/src/models/components/discountcreate.ts index fc6fef31..b0864ced 100644 --- a/src/models/components/discountcreate.ts +++ b/src/models/components/discountcreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/discountduration.ts b/src/models/components/discountduration.ts index e8a0675d..d2ba70c3 100644 --- a/src/models/components/discountduration.ts +++ b/src/models/components/discountduration.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const DiscountDuration = { diff --git a/src/models/components/discountfixedonceforeverduration.ts b/src/models/components/discountfixedonceforeverduration.ts index e7913527..4fa10205 100644 --- a/src/models/components/discountfixedonceforeverduration.ts +++ b/src/models/components/discountfixedonceforeverduration.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/discountfixedonceforeverdurationbase.ts b/src/models/components/discountfixedonceforeverdurationbase.ts index 408a0b9f..c3bf0dd8 100644 --- a/src/models/components/discountfixedonceforeverdurationbase.ts +++ b/src/models/components/discountfixedonceforeverdurationbase.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/discountfixedonceforeverdurationcreate.ts b/src/models/components/discountfixedonceforeverdurationcreate.ts index 50d6074c..b0a0345c 100644 --- a/src/models/components/discountfixedonceforeverdurationcreate.ts +++ b/src/models/components/discountfixedonceforeverdurationcreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/discountfixedrepeatduration.ts b/src/models/components/discountfixedrepeatduration.ts index 08e11c2d..51faa073 100644 --- a/src/models/components/discountfixedrepeatduration.ts +++ b/src/models/components/discountfixedrepeatduration.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/discountfixedrepeatdurationbase.ts b/src/models/components/discountfixedrepeatdurationbase.ts index 89599069..b0485233 100644 --- a/src/models/components/discountfixedrepeatdurationbase.ts +++ b/src/models/components/discountfixedrepeatdurationbase.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/discountfixedrepeatdurationcreate.ts b/src/models/components/discountfixedrepeatdurationcreate.ts index a234ba38..7c9e5871 100644 --- a/src/models/components/discountfixedrepeatdurationcreate.ts +++ b/src/models/components/discountfixedrepeatdurationcreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/discountpercentageonceforeverduration.ts b/src/models/components/discountpercentageonceforeverduration.ts index 5bdf14cf..98f1de28 100644 --- a/src/models/components/discountpercentageonceforeverduration.ts +++ b/src/models/components/discountpercentageonceforeverduration.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/discountpercentageonceforeverdurationbase.ts b/src/models/components/discountpercentageonceforeverdurationbase.ts index 03be339a..8a89eb74 100644 --- a/src/models/components/discountpercentageonceforeverdurationbase.ts +++ b/src/models/components/discountpercentageonceforeverdurationbase.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/discountpercentageonceforeverdurationcreate.ts b/src/models/components/discountpercentageonceforeverdurationcreate.ts index 312d8f5f..a9d16268 100644 --- a/src/models/components/discountpercentageonceforeverdurationcreate.ts +++ b/src/models/components/discountpercentageonceforeverdurationcreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/discountpercentagerepeatduration.ts b/src/models/components/discountpercentagerepeatduration.ts index 376916d7..4e3e43c2 100644 --- a/src/models/components/discountpercentagerepeatduration.ts +++ b/src/models/components/discountpercentagerepeatduration.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/discountpercentagerepeatdurationbase.ts b/src/models/components/discountpercentagerepeatdurationbase.ts index 10274eb1..57d28915 100644 --- a/src/models/components/discountpercentagerepeatdurationbase.ts +++ b/src/models/components/discountpercentagerepeatdurationbase.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/discountpercentagerepeatdurationcreate.ts b/src/models/components/discountpercentagerepeatdurationcreate.ts index 62e655a8..d018e37f 100644 --- a/src/models/components/discountpercentagerepeatdurationcreate.ts +++ b/src/models/components/discountpercentagerepeatdurationcreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/discountproduct.ts b/src/models/components/discountproduct.ts index 6e8d8405..9129cafc 100644 --- a/src/models/components/discountproduct.ts +++ b/src/models/components/discountproduct.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -54,9 +54,13 @@ export type DiscountProduct = { */ description: string | null; /** - * The recurring interval of the product. If `None`, the product is a one-time purchase.Note that the `day` and `week` values are for internal Polar staff use only. + * The recurring interval of the product. If `None`, the product is a one-time purchase. */ recurringInterval: SubscriptionRecurringInterval | null; + /** + * Number of interval units of the subscription.If this is set to 1 the charge will happen every interval (e.g. every month),if set to 2 it will be every other month, and so on. None for one-time products. + */ + recurringIntervalCount: number | null; /** * Whether the product is a subscription. */ @@ -142,6 +146,7 @@ export const DiscountProduct$inboundSchema: z.ZodType< name: z.string(), description: z.nullable(z.string()), recurring_interval: z.nullable(SubscriptionRecurringInterval$inboundSchema), + recurring_interval_count: z.nullable(z.number().int()), is_recurring: z.boolean(), is_archived: z.boolean(), organization_id: z.string(), @@ -152,6 +157,7 @@ export const DiscountProduct$inboundSchema: z.ZodType< "trial_interval": "trialInterval", "trial_interval_count": "trialIntervalCount", "recurring_interval": "recurringInterval", + "recurring_interval_count": "recurringIntervalCount", "is_recurring": "isRecurring", "is_archived": "isArchived", "organization_id": "organizationId", @@ -169,6 +175,7 @@ export type DiscountProduct$Outbound = { name: string; description: string | null; recurring_interval: string | null; + recurring_interval_count: number | null; is_recurring: boolean; is_archived: boolean; organization_id: string; @@ -191,6 +198,7 @@ export const DiscountProduct$outboundSchema: z.ZodType< name: z.string(), description: z.nullable(z.string()), recurringInterval: z.nullable(SubscriptionRecurringInterval$outboundSchema), + recurringIntervalCount: z.nullable(z.number().int()), isRecurring: z.boolean(), isArchived: z.boolean(), organizationId: z.string(), @@ -201,6 +209,7 @@ export const DiscountProduct$outboundSchema: z.ZodType< trialInterval: "trial_interval", trialIntervalCount: "trial_interval_count", recurringInterval: "recurring_interval", + recurringIntervalCount: "recurring_interval_count", isRecurring: "is_recurring", isArchived: "is_archived", organizationId: "organization_id", diff --git a/src/models/components/discountsortproperty.ts b/src/models/components/discountsortproperty.ts index 3149acf1..1bfff6a5 100644 --- a/src/models/components/discountsortproperty.ts +++ b/src/models/components/discountsortproperty.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const DiscountSortProperty = { diff --git a/src/models/components/discounttype.ts b/src/models/components/discounttype.ts index f4d05509..85009aae 100644 --- a/src/models/components/discounttype.ts +++ b/src/models/components/discounttype.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const DiscountType = { diff --git a/src/models/components/discountupdate.ts b/src/models/components/discountupdate.ts index ca12535e..67181db3 100644 --- a/src/models/components/discountupdate.ts +++ b/src/models/components/discountupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/downloadablefilecreate.ts b/src/models/components/downloadablefilecreate.ts index cb21eab9..77f99cc0 100644 --- a/src/models/components/downloadablefilecreate.ts +++ b/src/models/components/downloadablefilecreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/downloadablefileread.ts b/src/models/components/downloadablefileread.ts index f5669e34..2ea39521 100644 --- a/src/models/components/downloadablefileread.ts +++ b/src/models/components/downloadablefileread.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/downloadableread.ts b/src/models/components/downloadableread.ts index 190245d9..6bfcbe5e 100644 --- a/src/models/components/downloadableread.ts +++ b/src/models/components/downloadableread.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/event.ts b/src/models/components/event.ts index e308455c..d5bd9f62 100644 --- a/src/models/components/event.ts +++ b/src/models/components/event.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/eventcreatecustomer.ts b/src/models/components/eventcreatecustomer.ts index cee445bd..9287481c 100644 --- a/src/models/components/eventcreatecustomer.ts +++ b/src/models/components/eventcreatecustomer.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/eventcreateexternalcustomer.ts b/src/models/components/eventcreateexternalcustomer.ts index 355b89bb..eef96afc 100644 --- a/src/models/components/eventcreateexternalcustomer.ts +++ b/src/models/components/eventcreateexternalcustomer.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/eventmetadatainput.ts b/src/models/components/eventmetadatainput.ts index 4ad7bb02..a890eb72 100644 --- a/src/models/components/eventmetadatainput.ts +++ b/src/models/components/eventmetadatainput.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/eventmetadataoutput.ts b/src/models/components/eventmetadataoutput.ts index 9382ac7f..37efae4a 100644 --- a/src/models/components/eventmetadataoutput.ts +++ b/src/models/components/eventmetadataoutput.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/eventname.ts b/src/models/components/eventname.ts index aedba359..4d998908 100644 --- a/src/models/components/eventname.ts +++ b/src/models/components/eventname.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/eventnamessortproperty.ts b/src/models/components/eventnamessortproperty.ts index 88d4c606..4039d1fa 100644 --- a/src/models/components/eventnamessortproperty.ts +++ b/src/models/components/eventnamessortproperty.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const EventNamesSortProperty = { diff --git a/src/models/components/eventsingest.ts b/src/models/components/eventsingest.ts index 7eeb08e3..3746275b 100644 --- a/src/models/components/eventsingest.ts +++ b/src/models/components/eventsingest.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/eventsingestresponse.ts b/src/models/components/eventsingestresponse.ts index 90dd4cc0..26309a09 100644 --- a/src/models/components/eventsingestresponse.ts +++ b/src/models/components/eventsingestresponse.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/eventsortproperty.ts b/src/models/components/eventsortproperty.ts index 26763fac..61f26f3b 100644 --- a/src/models/components/eventsortproperty.ts +++ b/src/models/components/eventsortproperty.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const EventSortProperty = { diff --git a/src/models/components/eventsource.ts b/src/models/components/eventsource.ts index 7efc03c2..cb16a561 100644 --- a/src/models/components/eventsource.ts +++ b/src/models/components/eventsource.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const EventSource = { diff --git a/src/models/components/existingproductprice.ts b/src/models/components/existingproductprice.ts index 77b381bc..6416fb55 100644 --- a/src/models/components/existingproductprice.ts +++ b/src/models/components/existingproductprice.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/filecreate.ts b/src/models/components/filecreate.ts index d3ee0894..1c8fd456 100644 --- a/src/models/components/filecreate.ts +++ b/src/models/components/filecreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/filedownload.ts b/src/models/components/filedownload.ts index 9053743b..d38e5254 100644 --- a/src/models/components/filedownload.ts +++ b/src/models/components/filedownload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/filepatch.ts b/src/models/components/filepatch.ts index cdb7be4e..8a178fee 100644 --- a/src/models/components/filepatch.ts +++ b/src/models/components/filepatch.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/fileservicetypes.ts b/src/models/components/fileservicetypes.ts index 84056a8e..4e075ef7 100644 --- a/src/models/components/fileservicetypes.ts +++ b/src/models/components/fileservicetypes.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const FileServiceTypes = { diff --git a/src/models/components/fileupload.ts b/src/models/components/fileupload.ts index b9f68ea4..005ae858 100644 --- a/src/models/components/fileupload.ts +++ b/src/models/components/fileupload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/fileuploadcompleted.ts b/src/models/components/fileuploadcompleted.ts index d3767370..7269e259 100644 --- a/src/models/components/fileuploadcompleted.ts +++ b/src/models/components/fileuploadcompleted.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/filter.ts b/src/models/components/filter.ts index 9d5e2e24..c4a2d10e 100644 --- a/src/models/components/filter.ts +++ b/src/models/components/filter.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/filterclause.ts b/src/models/components/filterclause.ts index 9232a226..cf90eaa4 100644 --- a/src/models/components/filterclause.ts +++ b/src/models/components/filterclause.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/filterconjunction.ts b/src/models/components/filterconjunction.ts index 75a55391..e0a9d5b0 100644 --- a/src/models/components/filterconjunction.ts +++ b/src/models/components/filterconjunction.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const FilterConjunction = { diff --git a/src/models/components/filteroperator.ts b/src/models/components/filteroperator.ts index 190cbff7..dfaf49e6 100644 --- a/src/models/components/filteroperator.ts +++ b/src/models/components/filteroperator.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const FilterOperator = { diff --git a/src/models/components/genericpayment.ts b/src/models/components/genericpayment.ts index 7cc3c313..3d40dc1c 100644 --- a/src/models/components/genericpayment.ts +++ b/src/models/components/genericpayment.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/introspecttokenrequest.ts b/src/models/components/introspecttokenrequest.ts index 8a059fc1..72be02ac 100644 --- a/src/models/components/introspecttokenrequest.ts +++ b/src/models/components/introspecttokenrequest.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; diff --git a/src/models/components/introspecttokenresponse.ts b/src/models/components/introspecttokenresponse.ts index 20525aa4..0f82a816 100644 --- a/src/models/components/introspecttokenresponse.ts +++ b/src/models/components/introspecttokenresponse.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; diff --git a/src/models/components/legacyrecurringproductprice.ts b/src/models/components/legacyrecurringproductprice.ts index d3e408e4..d6b43fc1 100644 --- a/src/models/components/legacyrecurringproductprice.ts +++ b/src/models/components/legacyrecurringproductprice.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/legacyrecurringproductpricecustom.ts b/src/models/components/legacyrecurringproductpricecustom.ts index 1a1497c4..e4fce17a 100644 --- a/src/models/components/legacyrecurringproductpricecustom.ts +++ b/src/models/components/legacyrecurringproductpricecustom.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/legacyrecurringproductpricefixed.ts b/src/models/components/legacyrecurringproductpricefixed.ts index f16a4aea..7f11c31b 100644 --- a/src/models/components/legacyrecurringproductpricefixed.ts +++ b/src/models/components/legacyrecurringproductpricefixed.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/legacyrecurringproductpricefree.ts b/src/models/components/legacyrecurringproductpricefree.ts index f768868e..0a870e75 100644 --- a/src/models/components/legacyrecurringproductpricefree.ts +++ b/src/models/components/legacyrecurringproductpricefree.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/licensekeyactivate.ts b/src/models/components/licensekeyactivate.ts index 0748fd9c..3f6b34c0 100644 --- a/src/models/components/licensekeyactivate.ts +++ b/src/models/components/licensekeyactivate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/licensekeyactivationbase.ts b/src/models/components/licensekeyactivationbase.ts index cba613e5..fcee04ea 100644 --- a/src/models/components/licensekeyactivationbase.ts +++ b/src/models/components/licensekeyactivationbase.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/licensekeyactivationread.ts b/src/models/components/licensekeyactivationread.ts index c9179146..d08bf86e 100644 --- a/src/models/components/licensekeyactivationread.ts +++ b/src/models/components/licensekeyactivationread.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/licensekeycustomer.ts b/src/models/components/licensekeycustomer.ts index f51d405b..e297a184 100644 --- a/src/models/components/licensekeycustomer.ts +++ b/src/models/components/licensekeycustomer.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/licensekeydeactivate.ts b/src/models/components/licensekeydeactivate.ts index fc96df5b..1d00da2c 100644 --- a/src/models/components/licensekeydeactivate.ts +++ b/src/models/components/licensekeydeactivate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/licensekeyread.ts b/src/models/components/licensekeyread.ts index 3cd2cfd9..fb563579 100644 --- a/src/models/components/licensekeyread.ts +++ b/src/models/components/licensekeyread.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/licensekeystatus.ts b/src/models/components/licensekeystatus.ts index ce4eb38c..da428f20 100644 --- a/src/models/components/licensekeystatus.ts +++ b/src/models/components/licensekeystatus.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const LicenseKeyStatus = { diff --git a/src/models/components/licensekeyupdate.ts b/src/models/components/licensekeyupdate.ts index 13601a3d..82869bd5 100644 --- a/src/models/components/licensekeyupdate.ts +++ b/src/models/components/licensekeyupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/licensekeyvalidate.ts b/src/models/components/licensekeyvalidate.ts index 4048e158..68f209b8 100644 --- a/src/models/components/licensekeyvalidate.ts +++ b/src/models/components/licensekeyvalidate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/licensekeywithactivations.ts b/src/models/components/licensekeywithactivations.ts index 8a601a80..b520e4de 100644 --- a/src/models/components/licensekeywithactivations.ts +++ b/src/models/components/licensekeywithactivations.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/listresource.ts b/src/models/components/listresource.ts index 18f351e7..b685b7e2 100644 --- a/src/models/components/listresource.ts +++ b/src/models/components/listresource.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/listresourcebenefit.ts b/src/models/components/listresourcebenefit.ts index 5670af5a..fd31219c 100644 --- a/src/models/components/listresourcebenefit.ts +++ b/src/models/components/listresourcebenefit.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/listresourcebenefitgrant.ts b/src/models/components/listresourcebenefitgrant.ts index e3c6d547..c47a16dc 100644 --- a/src/models/components/listresourcebenefitgrant.ts +++ b/src/models/components/listresourcebenefitgrant.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/listresourcecheckout.ts b/src/models/components/listresourcecheckout.ts index 8c6c0239..726dc826 100644 --- a/src/models/components/listresourcecheckout.ts +++ b/src/models/components/listresourcecheckout.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/listresourcecheckoutlink.ts b/src/models/components/listresourcecheckoutlink.ts index a5c81605..d25bb08d 100644 --- a/src/models/components/listresourcecheckoutlink.ts +++ b/src/models/components/listresourcecheckoutlink.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/listresourcecustomer.ts b/src/models/components/listresourcecustomer.ts index e74dbea0..f6b383df 100644 --- a/src/models/components/listresourcecustomer.ts +++ b/src/models/components/listresourcecustomer.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/listresourcecustomerbenefitgrant.ts b/src/models/components/listresourcecustomerbenefitgrant.ts index d8716610..5c8d8bbc 100644 --- a/src/models/components/listresourcecustomerbenefitgrant.ts +++ b/src/models/components/listresourcecustomerbenefitgrant.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/listresourcecustomercustomermeter.ts b/src/models/components/listresourcecustomercustomermeter.ts index c4e18b85..9ef352fa 100644 --- a/src/models/components/listresourcecustomercustomermeter.ts +++ b/src/models/components/listresourcecustomercustomermeter.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/listresourcecustomermeter.ts b/src/models/components/listresourcecustomermeter.ts index 889e5c98..f737214d 100644 --- a/src/models/components/listresourcecustomermeter.ts +++ b/src/models/components/listresourcecustomermeter.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/listresourcecustomerorder.ts b/src/models/components/listresourcecustomerorder.ts index 7a33509e..eeb3656e 100644 --- a/src/models/components/listresourcecustomerorder.ts +++ b/src/models/components/listresourcecustomerorder.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/listresourcecustomerpaymentmethod.ts b/src/models/components/listresourcecustomerpaymentmethod.ts index b6d61951..7a8fe973 100644 --- a/src/models/components/listresourcecustomerpaymentmethod.ts +++ b/src/models/components/listresourcecustomerpaymentmethod.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/listresourcecustomersubscription.ts b/src/models/components/listresourcecustomersubscription.ts index 002a0a04..8b941630 100644 --- a/src/models/components/listresourcecustomersubscription.ts +++ b/src/models/components/listresourcecustomersubscription.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/listresourcecustomfield.ts b/src/models/components/listresourcecustomfield.ts index 992306dc..791ecbc4 100644 --- a/src/models/components/listresourcecustomfield.ts +++ b/src/models/components/listresourcecustomfield.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/listresourcediscount.ts b/src/models/components/listresourcediscount.ts index 10cbe3f8..79e0bb3f 100644 --- a/src/models/components/listresourcediscount.ts +++ b/src/models/components/listresourcediscount.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/listresourcedownloadableread.ts b/src/models/components/listresourcedownloadableread.ts index 4c75dc6c..8c2b5a0b 100644 --- a/src/models/components/listresourcedownloadableread.ts +++ b/src/models/components/listresourcedownloadableread.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/listresourceevent.ts b/src/models/components/listresourceevent.ts index 430f931e..9e6227e5 100644 --- a/src/models/components/listresourceevent.ts +++ b/src/models/components/listresourceevent.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/listresourceeventname.ts b/src/models/components/listresourceeventname.ts index 5694eab7..aba5dc41 100644 --- a/src/models/components/listresourceeventname.ts +++ b/src/models/components/listresourceeventname.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/listresourcefileread.ts b/src/models/components/listresourcefileread.ts index 35e86255..cc0d0ffc 100644 --- a/src/models/components/listresourcefileread.ts +++ b/src/models/components/listresourcefileread.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/listresourcelicensekeyread.ts b/src/models/components/listresourcelicensekeyread.ts index 83809bca..949453a5 100644 --- a/src/models/components/listresourcelicensekeyread.ts +++ b/src/models/components/listresourcelicensekeyread.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/listresourcemeter.ts b/src/models/components/listresourcemeter.ts index db3b6381..3b57257d 100644 --- a/src/models/components/listresourcemeter.ts +++ b/src/models/components/listresourcemeter.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/listresourceorder.ts b/src/models/components/listresourceorder.ts index 1693ca6a..feb2870b 100644 --- a/src/models/components/listresourceorder.ts +++ b/src/models/components/listresourceorder.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/listresourceorganization.ts b/src/models/components/listresourceorganization.ts index 66169bde..27b587d3 100644 --- a/src/models/components/listresourceorganization.ts +++ b/src/models/components/listresourceorganization.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/listresourceproduct.ts b/src/models/components/listresourceproduct.ts index 3c7a709a..d98efca7 100644 --- a/src/models/components/listresourceproduct.ts +++ b/src/models/components/listresourceproduct.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/listresourcerefund.ts b/src/models/components/listresourcerefund.ts index c03376ee..b20433a4 100644 --- a/src/models/components/listresourcerefund.ts +++ b/src/models/components/listresourcerefund.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/listresourcesubscription.ts b/src/models/components/listresourcesubscription.ts index 1c5631ac..1e5e01fb 100644 --- a/src/models/components/listresourcesubscription.ts +++ b/src/models/components/listresourcesubscription.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/listresourcewebhookdelivery.ts b/src/models/components/listresourcewebhookdelivery.ts index 1dc296d5..a6a78ac4 100644 --- a/src/models/components/listresourcewebhookdelivery.ts +++ b/src/models/components/listresourcewebhookdelivery.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/listresourcewebhookendpoint.ts b/src/models/components/listresourcewebhookendpoint.ts index 435ee83f..b1564381 100644 --- a/src/models/components/listresourcewebhookendpoint.ts +++ b/src/models/components/listresourcewebhookendpoint.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/meter.ts b/src/models/components/meter.ts index cfc629ec..26cadf1b 100644 --- a/src/models/components/meter.ts +++ b/src/models/components/meter.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/metercreate.ts b/src/models/components/metercreate.ts index 1c3e164f..e95459c1 100644 --- a/src/models/components/metercreate.ts +++ b/src/models/components/metercreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/metercreditedmetadata.ts b/src/models/components/metercreditedmetadata.ts index da631f99..ec58055e 100644 --- a/src/models/components/metercreditedmetadata.ts +++ b/src/models/components/metercreditedmetadata.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/metercreditevent.ts b/src/models/components/metercreditevent.ts index 4b262a78..d7325153 100644 --- a/src/models/components/metercreditevent.ts +++ b/src/models/components/metercreditevent.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/meterquantities.ts b/src/models/components/meterquantities.ts index f57f2f7c..c878ac2f 100644 --- a/src/models/components/meterquantities.ts +++ b/src/models/components/meterquantities.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/meterquantity.ts b/src/models/components/meterquantity.ts index 715b2f0e..296d3924 100644 --- a/src/models/components/meterquantity.ts +++ b/src/models/components/meterquantity.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/meterresetevent.ts b/src/models/components/meterresetevent.ts index 7f451b37..3cb2e786 100644 --- a/src/models/components/meterresetevent.ts +++ b/src/models/components/meterresetevent.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/meterresetmetadata.ts b/src/models/components/meterresetmetadata.ts index 3e928bfb..dbed9920 100644 --- a/src/models/components/meterresetmetadata.ts +++ b/src/models/components/meterresetmetadata.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/metersortproperty.ts b/src/models/components/metersortproperty.ts index 04b9afd5..f0bbc0fe 100644 --- a/src/models/components/metersortproperty.ts +++ b/src/models/components/metersortproperty.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const MeterSortProperty = { diff --git a/src/models/components/meterupdate.ts b/src/models/components/meterupdate.ts index 6058757a..888895bd 100644 --- a/src/models/components/meterupdate.ts +++ b/src/models/components/meterupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/metric.ts b/src/models/components/metric.ts index 92216f2f..cf141b31 100644 --- a/src/models/components/metric.ts +++ b/src/models/components/metric.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/metricperiod.ts b/src/models/components/metricperiod.ts index e604c9cc..91ce3d5e 100644 --- a/src/models/components/metricperiod.ts +++ b/src/models/components/metricperiod.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -18,6 +18,10 @@ export type CumulativeRevenue = number | number; export type NetCumulativeRevenue = number | number; +export type Costs = number | number; + +export type CumulativeCosts = number | number; + export type AverageOrderValue = number | number; export type NetAverageOrderValue = number | number; @@ -80,6 +84,8 @@ export type MetricPeriod = { netRevenue: number | number; cumulativeRevenue: number | number; netCumulativeRevenue: number | number; + costs: number | number; + cumulativeCosts: number | number; averageOrderValue: number | number; netAverageOrderValue: number | number; oneTimeProducts: number | number; @@ -330,6 +336,93 @@ export function netCumulativeRevenueFromJSON( ); } +/** @internal */ +export const Costs$inboundSchema: z.ZodType = z + .union([z.number().int(), z.number()]); + +/** @internal */ +export type Costs$Outbound = number | number; + +/** @internal */ +export const Costs$outboundSchema: z.ZodType< + Costs$Outbound, + z.ZodTypeDef, + Costs +> = z.union([z.number().int(), z.number()]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace Costs$ { + /** @deprecated use `Costs$inboundSchema` instead. */ + export const inboundSchema = Costs$inboundSchema; + /** @deprecated use `Costs$outboundSchema` instead. */ + export const outboundSchema = Costs$outboundSchema; + /** @deprecated use `Costs$Outbound` instead. */ + export type Outbound = Costs$Outbound; +} + +export function costsToJSON(costs: Costs): string { + return JSON.stringify(Costs$outboundSchema.parse(costs)); +} + +export function costsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Costs$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Costs' from JSON`, + ); +} + +/** @internal */ +export const CumulativeCosts$inboundSchema: z.ZodType< + CumulativeCosts, + z.ZodTypeDef, + unknown +> = z.union([z.number().int(), z.number()]); + +/** @internal */ +export type CumulativeCosts$Outbound = number | number; + +/** @internal */ +export const CumulativeCosts$outboundSchema: z.ZodType< + CumulativeCosts$Outbound, + z.ZodTypeDef, + CumulativeCosts +> = z.union([z.number().int(), z.number()]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CumulativeCosts$ { + /** @deprecated use `CumulativeCosts$inboundSchema` instead. */ + export const inboundSchema = CumulativeCosts$inboundSchema; + /** @deprecated use `CumulativeCosts$outboundSchema` instead. */ + export const outboundSchema = CumulativeCosts$outboundSchema; + /** @deprecated use `CumulativeCosts$Outbound` instead. */ + export type Outbound = CumulativeCosts$Outbound; +} + +export function cumulativeCostsToJSON( + cumulativeCosts: CumulativeCosts, +): string { + return JSON.stringify(CumulativeCosts$outboundSchema.parse(cumulativeCosts)); +} + +export function cumulativeCostsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CumulativeCosts$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CumulativeCosts' from JSON`, + ); +} + /** @internal */ export const AverageOrderValue$inboundSchema: z.ZodType< AverageOrderValue, @@ -1614,6 +1707,8 @@ export const MetricPeriod$inboundSchema: z.ZodType< net_revenue: z.union([z.number().int(), z.number()]), cumulative_revenue: z.union([z.number().int(), z.number()]), net_cumulative_revenue: z.union([z.number().int(), z.number()]), + costs: z.union([z.number().int(), z.number()]), + cumulative_costs: z.union([z.number().int(), z.number()]), average_order_value: z.union([z.number().int(), z.number()]), net_average_order_value: z.union([z.number().int(), z.number()]), one_time_products: z.union([z.number().int(), z.number()]), @@ -1654,6 +1749,7 @@ export const MetricPeriod$inboundSchema: z.ZodType< "net_revenue": "netRevenue", "cumulative_revenue": "cumulativeRevenue", "net_cumulative_revenue": "netCumulativeRevenue", + "cumulative_costs": "cumulativeCosts", "average_order_value": "averageOrderValue", "net_average_order_value": "netAverageOrderValue", "one_time_products": "oneTimeProducts", @@ -1693,6 +1789,8 @@ export type MetricPeriod$Outbound = { net_revenue: number | number; cumulative_revenue: number | number; net_cumulative_revenue: number | number; + costs: number | number; + cumulative_costs: number | number; average_order_value: number | number; net_average_order_value: number | number; one_time_products: number | number; @@ -1733,6 +1831,8 @@ export const MetricPeriod$outboundSchema: z.ZodType< netRevenue: z.union([z.number().int(), z.number()]), cumulativeRevenue: z.union([z.number().int(), z.number()]), netCumulativeRevenue: z.union([z.number().int(), z.number()]), + costs: z.union([z.number().int(), z.number()]), + cumulativeCosts: z.union([z.number().int(), z.number()]), averageOrderValue: z.union([z.number().int(), z.number()]), netAverageOrderValue: z.union([z.number().int(), z.number()]), oneTimeProducts: z.union([z.number().int(), z.number()]), @@ -1764,6 +1864,7 @@ export const MetricPeriod$outboundSchema: z.ZodType< netRevenue: "net_revenue", cumulativeRevenue: "cumulative_revenue", netCumulativeRevenue: "net_cumulative_revenue", + cumulativeCosts: "cumulative_costs", averageOrderValue: "average_order_value", netAverageOrderValue: "net_average_order_value", oneTimeProducts: "one_time_products", diff --git a/src/models/components/metrics.ts b/src/models/components/metrics.ts index a04499fe..4d65558f 100644 --- a/src/models/components/metrics.ts +++ b/src/models/components/metrics.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -35,6 +35,14 @@ export type Metrics = { * Information about a metric. */ netCumulativeRevenue: Metric; + /** + * Information about a metric. + */ + costs: Metric; + /** + * Information about a metric. + */ + cumulativeCosts: Metric; /** * Information about a metric. */ @@ -149,6 +157,8 @@ export const Metrics$inboundSchema: z.ZodType = net_revenue: Metric$inboundSchema, cumulative_revenue: Metric$inboundSchema, net_cumulative_revenue: Metric$inboundSchema, + costs: Metric$inboundSchema, + cumulative_costs: Metric$inboundSchema, average_order_value: Metric$inboundSchema, net_average_order_value: Metric$inboundSchema, one_time_products: Metric$inboundSchema, @@ -180,6 +190,7 @@ export const Metrics$inboundSchema: z.ZodType = "net_revenue": "netRevenue", "cumulative_revenue": "cumulativeRevenue", "net_cumulative_revenue": "netCumulativeRevenue", + "cumulative_costs": "cumulativeCosts", "average_order_value": "averageOrderValue", "net_average_order_value": "netAverageOrderValue", "one_time_products": "oneTimeProducts", @@ -219,6 +230,8 @@ export type Metrics$Outbound = { net_revenue: Metric$Outbound; cumulative_revenue: Metric$Outbound; net_cumulative_revenue: Metric$Outbound; + costs: Metric$Outbound; + cumulative_costs: Metric$Outbound; average_order_value: Metric$Outbound; net_average_order_value: Metric$Outbound; one_time_products: Metric$Outbound; @@ -258,6 +271,8 @@ export const Metrics$outboundSchema: z.ZodType< netRevenue: Metric$outboundSchema, cumulativeRevenue: Metric$outboundSchema, netCumulativeRevenue: Metric$outboundSchema, + costs: Metric$outboundSchema, + cumulativeCosts: Metric$outboundSchema, averageOrderValue: Metric$outboundSchema, netAverageOrderValue: Metric$outboundSchema, oneTimeProducts: Metric$outboundSchema, @@ -289,6 +304,7 @@ export const Metrics$outboundSchema: z.ZodType< netRevenue: "net_revenue", cumulativeRevenue: "cumulative_revenue", netCumulativeRevenue: "net_cumulative_revenue", + cumulativeCosts: "cumulative_costs", averageOrderValue: "average_order_value", netAverageOrderValue: "net_average_order_value", oneTimeProducts: "one_time_products", diff --git a/src/models/components/metricsintervallimit.ts b/src/models/components/metricsintervallimit.ts index ff678ed9..25012d1a 100644 --- a/src/models/components/metricsintervallimit.ts +++ b/src/models/components/metricsintervallimit.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/metricsintervalslimits.ts b/src/models/components/metricsintervalslimits.ts index 5e05af95..ec4c5f02 100644 --- a/src/models/components/metricsintervalslimits.ts +++ b/src/models/components/metricsintervalslimits.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/metricslimits.ts b/src/models/components/metricslimits.ts index 23c2cca3..39f4156e 100644 --- a/src/models/components/metricslimits.ts +++ b/src/models/components/metricslimits.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/metricsresponse.ts b/src/models/components/metricsresponse.ts index b61de756..63374233 100644 --- a/src/models/components/metricsresponse.ts +++ b/src/models/components/metricsresponse.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/metricstotals.ts b/src/models/components/metricstotals.ts index 6845eb8a..464ca988 100644 --- a/src/models/components/metricstotals.ts +++ b/src/models/components/metricstotals.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -18,6 +18,10 @@ export type MetricsTotalsCumulativeRevenue = number | number; export type MetricsTotalsNetCumulativeRevenue = number | number; +export type MetricsTotalsCosts = number | number; + +export type MetricsTotalsCumulativeCosts = number | number; + export type MetricsTotalsAverageOrderValue = number | number; export type MetricsTotalsNetAverageOrderValue = number | number; @@ -76,6 +80,8 @@ export type MetricsTotals = { netRevenue: number | number; cumulativeRevenue: number | number; netCumulativeRevenue: number | number; + costs: number | number; + cumulativeCosts: number | number; averageOrderValue: number | number; netAverageOrderValue: number | number; oneTimeProducts: number | number; @@ -349,6 +355,104 @@ export function metricsTotalsNetCumulativeRevenueFromJSON( ); } +/** @internal */ +export const MetricsTotalsCosts$inboundSchema: z.ZodType< + MetricsTotalsCosts, + z.ZodTypeDef, + unknown +> = z.union([z.number().int(), z.number()]); + +/** @internal */ +export type MetricsTotalsCosts$Outbound = number | number; + +/** @internal */ +export const MetricsTotalsCosts$outboundSchema: z.ZodType< + MetricsTotalsCosts$Outbound, + z.ZodTypeDef, + MetricsTotalsCosts +> = z.union([z.number().int(), z.number()]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace MetricsTotalsCosts$ { + /** @deprecated use `MetricsTotalsCosts$inboundSchema` instead. */ + export const inboundSchema = MetricsTotalsCosts$inboundSchema; + /** @deprecated use `MetricsTotalsCosts$outboundSchema` instead. */ + export const outboundSchema = MetricsTotalsCosts$outboundSchema; + /** @deprecated use `MetricsTotalsCosts$Outbound` instead. */ + export type Outbound = MetricsTotalsCosts$Outbound; +} + +export function metricsTotalsCostsToJSON( + metricsTotalsCosts: MetricsTotalsCosts, +): string { + return JSON.stringify( + MetricsTotalsCosts$outboundSchema.parse(metricsTotalsCosts), + ); +} + +export function metricsTotalsCostsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => MetricsTotalsCosts$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'MetricsTotalsCosts' from JSON`, + ); +} + +/** @internal */ +export const MetricsTotalsCumulativeCosts$inboundSchema: z.ZodType< + MetricsTotalsCumulativeCosts, + z.ZodTypeDef, + unknown +> = z.union([z.number().int(), z.number()]); + +/** @internal */ +export type MetricsTotalsCumulativeCosts$Outbound = number | number; + +/** @internal */ +export const MetricsTotalsCumulativeCosts$outboundSchema: z.ZodType< + MetricsTotalsCumulativeCosts$Outbound, + z.ZodTypeDef, + MetricsTotalsCumulativeCosts +> = z.union([z.number().int(), z.number()]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace MetricsTotalsCumulativeCosts$ { + /** @deprecated use `MetricsTotalsCumulativeCosts$inboundSchema` instead. */ + export const inboundSchema = MetricsTotalsCumulativeCosts$inboundSchema; + /** @deprecated use `MetricsTotalsCumulativeCosts$outboundSchema` instead. */ + export const outboundSchema = MetricsTotalsCumulativeCosts$outboundSchema; + /** @deprecated use `MetricsTotalsCumulativeCosts$Outbound` instead. */ + export type Outbound = MetricsTotalsCumulativeCosts$Outbound; +} + +export function metricsTotalsCumulativeCostsToJSON( + metricsTotalsCumulativeCosts: MetricsTotalsCumulativeCosts, +): string { + return JSON.stringify( + MetricsTotalsCumulativeCosts$outboundSchema.parse( + metricsTotalsCumulativeCosts, + ), + ); +} + +export function metricsTotalsCumulativeCostsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => MetricsTotalsCumulativeCosts$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'MetricsTotalsCumulativeCosts' from JSON`, + ); +} + /** @internal */ export const MetricsTotalsAverageOrderValue$inboundSchema: z.ZodType< MetricsTotalsAverageOrderValue, @@ -1819,6 +1923,8 @@ export const MetricsTotals$inboundSchema: z.ZodType< net_revenue: z.union([z.number().int(), z.number()]), cumulative_revenue: z.union([z.number().int(), z.number()]), net_cumulative_revenue: z.union([z.number().int(), z.number()]), + costs: z.union([z.number().int(), z.number()]), + cumulative_costs: z.union([z.number().int(), z.number()]), average_order_value: z.union([z.number().int(), z.number()]), net_average_order_value: z.union([z.number().int(), z.number()]), one_time_products: z.union([z.number().int(), z.number()]), @@ -1859,6 +1965,7 @@ export const MetricsTotals$inboundSchema: z.ZodType< "net_revenue": "netRevenue", "cumulative_revenue": "cumulativeRevenue", "net_cumulative_revenue": "netCumulativeRevenue", + "cumulative_costs": "cumulativeCosts", "average_order_value": "averageOrderValue", "net_average_order_value": "netAverageOrderValue", "one_time_products": "oneTimeProducts", @@ -1897,6 +2004,8 @@ export type MetricsTotals$Outbound = { net_revenue: number | number; cumulative_revenue: number | number; net_cumulative_revenue: number | number; + costs: number | number; + cumulative_costs: number | number; average_order_value: number | number; net_average_order_value: number | number; one_time_products: number | number; @@ -1936,6 +2045,8 @@ export const MetricsTotals$outboundSchema: z.ZodType< netRevenue: z.union([z.number().int(), z.number()]), cumulativeRevenue: z.union([z.number().int(), z.number()]), netCumulativeRevenue: z.union([z.number().int(), z.number()]), + costs: z.union([z.number().int(), z.number()]), + cumulativeCosts: z.union([z.number().int(), z.number()]), averageOrderValue: z.union([z.number().int(), z.number()]), netAverageOrderValue: z.union([z.number().int(), z.number()]), oneTimeProducts: z.union([z.number().int(), z.number()]), @@ -1967,6 +2078,7 @@ export const MetricsTotals$outboundSchema: z.ZodType< netRevenue: "net_revenue", cumulativeRevenue: "cumulative_revenue", netCumulativeRevenue: "net_cumulative_revenue", + cumulativeCosts: "cumulative_costs", averageOrderValue: "average_order_value", netAverageOrderValue: "net_average_order_value", oneTimeProducts: "one_time_products", diff --git a/src/models/components/metrictype.ts b/src/models/components/metrictype.ts index 0d1c860c..3512c7a1 100644 --- a/src/models/components/metrictype.ts +++ b/src/models/components/metrictype.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const MetricType = { diff --git a/src/models/components/oauth2clientconfiguration.ts b/src/models/components/oauth2clientconfiguration.ts index 32c48442..cd0bd1fb 100644 --- a/src/models/components/oauth2clientconfiguration.ts +++ b/src/models/components/oauth2clientconfiguration.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -96,7 +96,7 @@ export const OAuth2ClientConfiguration$inboundSchema: z.ZodType< grant_types: z.array(GrantTypes$inboundSchema).optional(), response_types: z.array(z.string()).optional(), scope: z.string().default( - "openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write transactions:read transactions:write payouts:read payouts:write products:read products:write benefits:read benefits:write events:read events:write meters:read meters:write files:read files:write subscriptions:read subscriptions:write customers:read customers:write customer_meters:read customer_sessions:write orders:read orders:write refunds:read refunds:write payments:read metrics:read webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write customer_portal:read customer_portal:write notifications:read notifications:write notification_recipients:read notification_recipients:write", + "openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write transactions:read transactions:write payouts:read payouts:write products:read products:write benefits:read benefits:write events:read events:write meters:read meters:write files:read files:write subscriptions:read subscriptions:write customers:read customers:write customer_meters:read customer_sessions:write customer_seats:read customer_seats:write orders:read orders:write refunds:read refunds:write payments:read metrics:read webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write customer_portal:read customer_portal:write notifications:read notifications:write notification_recipients:read notification_recipients:write", ), client_name: z.string(), client_uri: z.nullable(z.string()).optional(), @@ -147,7 +147,7 @@ export const OAuth2ClientConfiguration$outboundSchema: z.ZodType< grantTypes: z.array(GrantTypes$outboundSchema).optional(), responseTypes: z.array(z.string()).optional(), scope: z.string().default( - "openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write transactions:read transactions:write payouts:read payouts:write products:read products:write benefits:read benefits:write events:read events:write meters:read meters:write files:read files:write subscriptions:read subscriptions:write customers:read customers:write customer_meters:read customer_sessions:write orders:read orders:write refunds:read refunds:write payments:read metrics:read webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write customer_portal:read customer_portal:write notifications:read notifications:write notification_recipients:read notification_recipients:write", + "openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write transactions:read transactions:write payouts:read payouts:write products:read products:write benefits:read benefits:write events:read events:write meters:read meters:write files:read files:write subscriptions:read subscriptions:write customers:read customers:write customer_meters:read customer_sessions:write customer_seats:read customer_seats:write orders:read orders:write refunds:read refunds:write payments:read metrics:read webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write customer_portal:read customer_portal:write notifications:read notifications:write notification_recipients:read notification_recipients:write", ), clientName: z.string(), clientUri: z.nullable(z.string()).optional(), diff --git a/src/models/components/oauth2clientconfigurationupdate.ts b/src/models/components/oauth2clientconfigurationupdate.ts index c08794d7..a25929d5 100644 --- a/src/models/components/oauth2clientconfigurationupdate.ts +++ b/src/models/components/oauth2clientconfigurationupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -110,7 +110,7 @@ export const OAuth2ClientConfigurationUpdate$inboundSchema: z.ZodType< .optional(), response_types: z.array(z.string()).optional(), scope: z.string().default( - "openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write transactions:read transactions:write payouts:read payouts:write products:read products:write benefits:read benefits:write events:read events:write meters:read meters:write files:read files:write subscriptions:read subscriptions:write customers:read customers:write customer_meters:read customer_sessions:write orders:read orders:write refunds:read refunds:write payments:read metrics:read webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write customer_portal:read customer_portal:write notifications:read notifications:write notification_recipients:read notification_recipients:write", + "openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write transactions:read transactions:write payouts:read payouts:write products:read products:write benefits:read benefits:write events:read events:write meters:read meters:write files:read files:write subscriptions:read subscriptions:write customers:read customers:write customer_meters:read customer_sessions:write customer_seats:read customer_seats:write orders:read orders:write refunds:read refunds:write payments:read metrics:read webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write customer_portal:read customer_portal:write notifications:read notifications:write notification_recipients:read notification_recipients:write", ), client_name: z.string(), client_uri: z.nullable(z.string()).optional(), @@ -165,7 +165,7 @@ export const OAuth2ClientConfigurationUpdate$outboundSchema: z.ZodType< .optional(), responseTypes: z.array(z.string()).optional(), scope: z.string().default( - "openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write transactions:read transactions:write payouts:read payouts:write products:read products:write benefits:read benefits:write events:read events:write meters:read meters:write files:read files:write subscriptions:read subscriptions:write customers:read customers:write customer_meters:read customer_sessions:write orders:read orders:write refunds:read refunds:write payments:read metrics:read webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write customer_portal:read customer_portal:write notifications:read notifications:write notification_recipients:read notification_recipients:write", + "openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write transactions:read transactions:write payouts:read payouts:write products:read products:write benefits:read benefits:write events:read events:write meters:read meters:write files:read files:write subscriptions:read subscriptions:write customers:read customers:write customer_meters:read customer_sessions:write customer_seats:read customer_seats:write orders:read orders:write refunds:read refunds:write payments:read metrics:read webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write customer_portal:read customer_portal:write notifications:read notifications:write notification_recipients:read notification_recipients:write", ), clientName: z.string(), clientUri: z.nullable(z.string()).optional(), diff --git a/src/models/components/oauth2clientpublic.ts b/src/models/components/oauth2clientpublic.ts index ef807616..bd2a30b7 100644 --- a/src/models/components/oauth2clientpublic.ts +++ b/src/models/components/oauth2clientpublic.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/order.ts b/src/models/components/order.ts index 57d9b3d9..fa7c46a9 100644 --- a/src/models/components/order.ts +++ b/src/models/components/order.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -151,8 +151,12 @@ export type Order = { * Whether an invoice has been generated for this order. */ isInvoiceGenerated: boolean; + /** + * Number of seats purchased (for seat-based one-time orders). + */ + seats?: number | null | undefined; customerId: string; - productId: string; + productId: string | null; discountId: string | null; subscriptionId: string | null; checkoutId: string | null; @@ -172,7 +176,7 @@ export type Order = { * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ userId: string; - product: OrderProduct; + product: OrderProduct | null; discount: | DiscountFixedRepeatDurationBase | DiscountFixedOnceForeverDurationBase @@ -184,6 +188,10 @@ export type Order = { * Line items composing the order. */ items: Array; + /** + * A summary description of the order. + */ + description: string; }; /** @internal */ @@ -373,8 +381,9 @@ export const Order$inboundSchema: z.ZodType = z billing_address: z.nullable(Address$inboundSchema), invoice_number: z.string(), is_invoice_generated: z.boolean(), + seats: z.nullable(z.number().int()).optional(), customer_id: z.string(), - product_id: z.string(), + product_id: z.nullable(z.string()), discount_id: z.nullable(z.string()), subscription_id: z.nullable(z.string()), checkout_id: z.nullable(z.string()), @@ -394,7 +403,7 @@ export const Order$inboundSchema: z.ZodType = z platform_fee_amount: z.number().int(), customer: OrderCustomer$inboundSchema, user_id: z.string(), - product: OrderProduct$inboundSchema, + product: z.nullable(OrderProduct$inboundSchema), discount: z.nullable( z.union([ DiscountFixedRepeatDurationBase$inboundSchema, @@ -405,6 +414,7 @@ export const Order$inboundSchema: z.ZodType = z ), subscription: z.nullable(OrderSubscription$inboundSchema), items: z.array(OrderItemSchema$inboundSchema), + description: z.string(), }).transform((v) => { return remap$(v, { "created_at": "createdAt", @@ -456,8 +466,9 @@ export type Order$Outbound = { billing_address: Address$Outbound | null; invoice_number: string; is_invoice_generated: boolean; + seats?: number | null | undefined; customer_id: string; - product_id: string; + product_id: string | null; discount_id: string | null; subscription_id: string | null; checkout_id: string | null; @@ -468,7 +479,7 @@ export type Order$Outbound = { platform_fee_amount: number; customer: OrderCustomer$Outbound; user_id: string; - product: OrderProduct$Outbound; + product: OrderProduct$Outbound | null; discount: | DiscountFixedRepeatDurationBase$Outbound | DiscountFixedOnceForeverDurationBase$Outbound @@ -477,6 +488,7 @@ export type Order$Outbound = { | null; subscription: OrderSubscription$Outbound | null; items: Array; + description: string; }; /** @internal */ @@ -505,8 +517,9 @@ export const Order$outboundSchema: z.ZodType< billingAddress: z.nullable(Address$outboundSchema), invoiceNumber: z.string(), isInvoiceGenerated: z.boolean(), + seats: z.nullable(z.number().int()).optional(), customerId: z.string(), - productId: z.string(), + productId: z.nullable(z.string()), discountId: z.nullable(z.string()), subscriptionId: z.nullable(z.string()), checkoutId: z.nullable(z.string()), @@ -526,7 +539,7 @@ export const Order$outboundSchema: z.ZodType< platformFeeAmount: z.number().int(), customer: OrderCustomer$outboundSchema, userId: z.string(), - product: OrderProduct$outboundSchema, + product: z.nullable(OrderProduct$outboundSchema), discount: z.nullable( z.union([ DiscountFixedRepeatDurationBase$outboundSchema, @@ -537,6 +550,7 @@ export const Order$outboundSchema: z.ZodType< ), subscription: z.nullable(OrderSubscription$outboundSchema), items: z.array(OrderItemSchema$outboundSchema), + description: z.string(), }).transform((v) => { return remap$(v, { createdAt: "created_at", diff --git a/src/models/components/orderbillingreason.ts b/src/models/components/orderbillingreason.ts index a0e2472e..ea9c021f 100644 --- a/src/models/components/orderbillingreason.ts +++ b/src/models/components/orderbillingreason.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const OrderBillingReason = { diff --git a/src/models/components/ordercustomer.ts b/src/models/components/ordercustomer.ts index 71d7fa00..d8f65b20 100644 --- a/src/models/components/ordercustomer.ts +++ b/src/models/components/ordercustomer.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/orderinvoice.ts b/src/models/components/orderinvoice.ts index caccb109..5851e1aa 100644 --- a/src/models/components/orderinvoice.ts +++ b/src/models/components/orderinvoice.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/orderitemschema.ts b/src/models/components/orderitemschema.ts index 69d22223..24001d54 100644 --- a/src/models/components/orderitemschema.ts +++ b/src/models/components/orderitemschema.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/orderproduct.ts b/src/models/components/orderproduct.ts index f0fb519a..40dc9886 100644 --- a/src/models/components/orderproduct.ts +++ b/src/models/components/orderproduct.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -51,9 +51,13 @@ export type OrderProduct = { */ description: string | null; /** - * The recurring interval of the product. If `None`, the product is a one-time purchase.Note that the `day` and `week` values are for internal Polar staff use only. + * The recurring interval of the product. If `None`, the product is a one-time purchase. */ recurringInterval: SubscriptionRecurringInterval | null; + /** + * Number of interval units of the subscription.If this is set to 1 the charge will happen every interval (e.g. every month),if set to 2 it will be every other month, and so on. None for one-time products. + */ + recurringIntervalCount: number | null; /** * Whether the product is a subscription. */ @@ -135,6 +139,7 @@ export const OrderProduct$inboundSchema: z.ZodType< name: z.string(), description: z.nullable(z.string()), recurring_interval: z.nullable(SubscriptionRecurringInterval$inboundSchema), + recurring_interval_count: z.nullable(z.number().int()), is_recurring: z.boolean(), is_archived: z.boolean(), organization_id: z.string(), @@ -145,6 +150,7 @@ export const OrderProduct$inboundSchema: z.ZodType< "trial_interval": "trialInterval", "trial_interval_count": "trialIntervalCount", "recurring_interval": "recurringInterval", + "recurring_interval_count": "recurringIntervalCount", "is_recurring": "isRecurring", "is_archived": "isArchived", "organization_id": "organizationId", @@ -162,6 +168,7 @@ export type OrderProduct$Outbound = { name: string; description: string | null; recurring_interval: string | null; + recurring_interval_count: number | null; is_recurring: boolean; is_archived: boolean; organization_id: string; @@ -184,6 +191,7 @@ export const OrderProduct$outboundSchema: z.ZodType< name: z.string(), description: z.nullable(z.string()), recurringInterval: z.nullable(SubscriptionRecurringInterval$outboundSchema), + recurringIntervalCount: z.nullable(z.number().int()), isRecurring: z.boolean(), isArchived: z.boolean(), organizationId: z.string(), @@ -194,6 +202,7 @@ export const OrderProduct$outboundSchema: z.ZodType< trialInterval: "trial_interval", trialIntervalCount: "trial_interval_count", recurringInterval: "recurring_interval", + recurringIntervalCount: "recurring_interval_count", isRecurring: "is_recurring", isArchived: "is_archived", organizationId: "organization_id", diff --git a/src/models/components/ordersortproperty.ts b/src/models/components/ordersortproperty.ts index 0556634c..e9043bc3 100644 --- a/src/models/components/ordersortproperty.ts +++ b/src/models/components/ordersortproperty.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const OrderSortProperty = { diff --git a/src/models/components/orderstatus.ts b/src/models/components/orderstatus.ts index 40040ebd..c61387f0 100644 --- a/src/models/components/orderstatus.ts +++ b/src/models/components/orderstatus.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const OrderStatus = { diff --git a/src/models/components/ordersubscription.ts b/src/models/components/ordersubscription.ts index dedb1e49..27c0506e 100644 --- a/src/models/components/ordersubscription.ts +++ b/src/models/components/ordersubscription.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -48,6 +48,10 @@ export type OrderSubscription = { */ currency: string; recurringInterval: SubscriptionRecurringInterval; + /** + * Number of interval units of the subscription.If this is set to 1 the charge will happen every interval (e.g. every month),if set to 2 it will be every other month, and so on. + */ + recurringIntervalCount: number; status: SubscriptionStatus; /** * The start timestamp of the current billing period. @@ -171,6 +175,7 @@ export const OrderSubscription$inboundSchema: z.ZodType< amount: z.number().int(), currency: z.string(), recurring_interval: SubscriptionRecurringInterval$inboundSchema, + recurring_interval_count: z.number().int(), status: SubscriptionStatus$inboundSchema, current_period_start: z.string().datetime({ offset: true }).transform(v => new Date(v) @@ -210,6 +215,7 @@ export const OrderSubscription$inboundSchema: z.ZodType< "created_at": "createdAt", "modified_at": "modifiedAt", "recurring_interval": "recurringInterval", + "recurring_interval_count": "recurringIntervalCount", "current_period_start": "currentPeriodStart", "current_period_end": "currentPeriodEnd", "trial_start": "trialStart", @@ -237,6 +243,7 @@ export type OrderSubscription$Outbound = { amount: number; currency: string; recurring_interval: string; + recurring_interval_count: number; status: string; current_period_start: string; current_period_end: string | null; @@ -270,6 +277,7 @@ export const OrderSubscription$outboundSchema: z.ZodType< amount: z.number().int(), currency: z.string(), recurringInterval: SubscriptionRecurringInterval$outboundSchema, + recurringIntervalCount: z.number().int(), status: SubscriptionStatus$outboundSchema, currentPeriodStart: z.date().transform(v => v.toISOString()), currentPeriodEnd: z.nullable(z.date().transform(v => v.toISOString())), @@ -293,6 +301,7 @@ export const OrderSubscription$outboundSchema: z.ZodType< createdAt: "created_at", modifiedAt: "modified_at", recurringInterval: "recurring_interval", + recurringIntervalCount: "recurring_interval_count", currentPeriodStart: "current_period_start", currentPeriodEnd: "current_period_end", trialStart: "trial_start", diff --git a/src/models/components/orderupdate.ts b/src/models/components/orderupdate.ts index 593faf3b..7a869b4e 100644 --- a/src/models/components/orderupdate.ts +++ b/src/models/components/orderupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/organization.ts b/src/models/components/organization.ts index 4ba8b6c9..bb8cb4e1 100644 --- a/src/models/components/organization.ts +++ b/src/models/components/organization.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/organizationavatarfilecreate.ts b/src/models/components/organizationavatarfilecreate.ts index de54c64d..395e6f22 100644 --- a/src/models/components/organizationavatarfilecreate.ts +++ b/src/models/components/organizationavatarfilecreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/organizationavatarfileread.ts b/src/models/components/organizationavatarfileread.ts index 860b3130..2bab1f16 100644 --- a/src/models/components/organizationavatarfileread.ts +++ b/src/models/components/organizationavatarfileread.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/organizationcreate.ts b/src/models/components/organizationcreate.ts index 42ee0eb7..a2c51c36 100644 --- a/src/models/components/organizationcreate.ts +++ b/src/models/components/organizationcreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/organizationcustomeremailsettings.ts b/src/models/components/organizationcustomeremailsettings.ts index d68e8dd7..60d731ce 100644 --- a/src/models/components/organizationcustomeremailsettings.ts +++ b/src/models/components/organizationcustomeremailsettings.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/organizationdetails.ts b/src/models/components/organizationdetails.ts index 3b9c7c04..20309131 100644 --- a/src/models/components/organizationdetails.ts +++ b/src/models/components/organizationdetails.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; diff --git a/src/models/components/organizationfeaturesettings.ts b/src/models/components/organizationfeaturesettings.ts index 60705200..fe813911 100644 --- a/src/models/components/organizationfeaturesettings.ts +++ b/src/models/components/organizationfeaturesettings.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -17,6 +17,10 @@ export type OrganizationFeatureSettings = { * If this organization has seat-based pricing enabled */ seatBasedPricingEnabled?: boolean | undefined; + /** + * If this organization has RevOps enabled + */ + revopsEnabled?: boolean | undefined; }; /** @internal */ @@ -27,10 +31,12 @@ export const OrganizationFeatureSettings$inboundSchema: z.ZodType< > = z.object({ issue_funding_enabled: z.boolean().default(false), seat_based_pricing_enabled: z.boolean().default(false), + revops_enabled: z.boolean().default(false), }).transform((v) => { return remap$(v, { "issue_funding_enabled": "issueFundingEnabled", "seat_based_pricing_enabled": "seatBasedPricingEnabled", + "revops_enabled": "revopsEnabled", }); }); @@ -38,6 +44,7 @@ export const OrganizationFeatureSettings$inboundSchema: z.ZodType< export type OrganizationFeatureSettings$Outbound = { issue_funding_enabled: boolean; seat_based_pricing_enabled: boolean; + revops_enabled: boolean; }; /** @internal */ @@ -48,10 +55,12 @@ export const OrganizationFeatureSettings$outboundSchema: z.ZodType< > = z.object({ issueFundingEnabled: z.boolean().default(false), seatBasedPricingEnabled: z.boolean().default(false), + revopsEnabled: z.boolean().default(false), }).transform((v) => { return remap$(v, { issueFundingEnabled: "issue_funding_enabled", seatBasedPricingEnabled: "seat_based_pricing_enabled", + revopsEnabled: "revops_enabled", }); }); diff --git a/src/models/components/organizationnotificationsettings.ts b/src/models/components/organizationnotificationsettings.ts index d8ddb52f..d58bd2ed 100644 --- a/src/models/components/organizationnotificationsettings.ts +++ b/src/models/components/organizationnotificationsettings.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/organizationsociallink.ts b/src/models/components/organizationsociallink.ts index 4f809648..0f4edc5b 100644 --- a/src/models/components/organizationsociallink.ts +++ b/src/models/components/organizationsociallink.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/organizationsocialplatforms.ts b/src/models/components/organizationsocialplatforms.ts index a20cb0ec..4caac334 100644 --- a/src/models/components/organizationsocialplatforms.ts +++ b/src/models/components/organizationsocialplatforms.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const OrganizationSocialPlatforms = { diff --git a/src/models/components/organizationsortproperty.ts b/src/models/components/organizationsortproperty.ts index 992cfebc..8e34775c 100644 --- a/src/models/components/organizationsortproperty.ts +++ b/src/models/components/organizationsortproperty.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const OrganizationSortProperty = { diff --git a/src/models/components/organizationsubscriptionsettings.ts b/src/models/components/organizationsubscriptionsettings.ts index b20ffe90..9a0be1ba 100644 --- a/src/models/components/organizationsubscriptionsettings.ts +++ b/src/models/components/organizationsubscriptionsettings.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/organizationupdate.ts b/src/models/components/organizationupdate.ts index d3b88ba9..19e91236 100644 --- a/src/models/components/organizationupdate.ts +++ b/src/models/components/organizationupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/pagination.ts b/src/models/components/pagination.ts index 2a996e04..58ef9ba1 100644 --- a/src/models/components/pagination.ts +++ b/src/models/components/pagination.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/payment.ts b/src/models/components/payment.ts index eb4fae80..57acc769 100644 --- a/src/models/components/payment.ts +++ b/src/models/components/payment.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/paymentmethodcard.ts b/src/models/components/paymentmethodcard.ts index dc37bfb4..c4234b95 100644 --- a/src/models/components/paymentmethodcard.ts +++ b/src/models/components/paymentmethodcard.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/paymentmethodcardmetadata.ts b/src/models/components/paymentmethodcardmetadata.ts index 3f3ed49d..d9d72fe3 100644 --- a/src/models/components/paymentmethodcardmetadata.ts +++ b/src/models/components/paymentmethodcardmetadata.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/paymentmethodgeneric.ts b/src/models/components/paymentmethodgeneric.ts index f966f9ad..61830b6b 100644 --- a/src/models/components/paymentmethodgeneric.ts +++ b/src/models/components/paymentmethodgeneric.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/paymentprocessor.ts b/src/models/components/paymentprocessor.ts index 2b518d31..86e91505 100644 --- a/src/models/components/paymentprocessor.ts +++ b/src/models/components/paymentprocessor.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const PaymentProcessor = { diff --git a/src/models/components/paymentsortproperty.ts b/src/models/components/paymentsortproperty.ts index 066e42d9..99c403c6 100644 --- a/src/models/components/paymentsortproperty.ts +++ b/src/models/components/paymentsortproperty.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const PaymentSortProperty = { diff --git a/src/models/components/paymentstatus.ts b/src/models/components/paymentstatus.ts index 111472b0..d4017fd4 100644 --- a/src/models/components/paymentstatus.ts +++ b/src/models/components/paymentstatus.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const PaymentStatus = { diff --git a/src/models/components/product.ts b/src/models/components/product.ts index d44b265e..7907ca90 100644 --- a/src/models/components/product.ts +++ b/src/models/components/product.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -85,9 +85,13 @@ export type Product = { */ description: string | null; /** - * The recurring interval of the product. If `None`, the product is a one-time purchase.Note that the `day` and `week` values are for internal Polar staff use only. + * The recurring interval of the product. If `None`, the product is a one-time purchase. */ recurringInterval: SubscriptionRecurringInterval | null; + /** + * Number of interval units of the subscription.If this is set to 1 the charge will happen every interval (e.g. every month),if set to 2 it will be every other month, and so on. None for one-time products. + */ + recurringIntervalCount: number | null; /** * Whether the product is a subscription. */ @@ -229,6 +233,7 @@ export const Product$inboundSchema: z.ZodType = name: z.string(), description: z.nullable(z.string()), recurring_interval: z.nullable(SubscriptionRecurringInterval$inboundSchema), + recurring_interval_count: z.nullable(z.number().int()), is_recurring: z.boolean(), is_archived: z.boolean(), organization_id: z.string(), @@ -251,6 +256,7 @@ export const Product$inboundSchema: z.ZodType = "trial_interval": "trialInterval", "trial_interval_count": "trialIntervalCount", "recurring_interval": "recurringInterval", + "recurring_interval_count": "recurringIntervalCount", "is_recurring": "isRecurring", "is_archived": "isArchived", "organization_id": "organizationId", @@ -268,6 +274,7 @@ export type Product$Outbound = { name: string; description: string | null; recurring_interval: string | null; + recurring_interval_count: number | null; is_recurring: boolean; is_archived: boolean; organization_id: string; @@ -292,6 +299,7 @@ export const Product$outboundSchema: z.ZodType< name: z.string(), description: z.nullable(z.string()), recurringInterval: z.nullable(SubscriptionRecurringInterval$outboundSchema), + recurringIntervalCount: z.nullable(z.number().int()), isRecurring: z.boolean(), isArchived: z.boolean(), organizationId: z.string(), @@ -314,6 +322,7 @@ export const Product$outboundSchema: z.ZodType< trialInterval: "trial_interval", trialIntervalCount: "trial_interval_count", recurringInterval: "recurring_interval", + recurringIntervalCount: "recurring_interval_count", isRecurring: "is_recurring", isArchived: "is_archived", organizationId: "organization_id", diff --git a/src/models/components/productbenefitsupdate.ts b/src/models/components/productbenefitsupdate.ts index 55ca44e2..a6812011 100644 --- a/src/models/components/productbenefitsupdate.ts +++ b/src/models/components/productbenefitsupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/productbillingtype.ts b/src/models/components/productbillingtype.ts index 47ac1456..397a260c 100644 --- a/src/models/components/productbillingtype.ts +++ b/src/models/components/productbillingtype.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const ProductBillingType = { diff --git a/src/models/components/productcreate.ts b/src/models/components/productcreate.ts index 67d9e147..e675269f 100644 --- a/src/models/components/productcreate.ts +++ b/src/models/components/productcreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/productcreateonetime.ts b/src/models/components/productcreateonetime.ts index e3ce6a7c..7a9ad918 100644 --- a/src/models/components/productcreateonetime.ts +++ b/src/models/components/productcreateonetime.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -104,6 +104,10 @@ export type ProductCreateOneTime = { * States that the product is a one-time purchase. */ recurringInterval?: any | null | undefined; + /** + * One-time products don't have a recurring interval count. + */ + recurringIntervalCount?: any | null | undefined; }; /** @internal */ @@ -310,11 +314,13 @@ export const ProductCreateOneTime$inboundSchema: z.ZodType< .optional(), organization_id: z.nullable(z.string()).optional(), recurring_interval: z.nullable(z.any()).optional(), + recurring_interval_count: z.nullable(z.any()).optional(), }).transform((v) => { return remap$(v, { "attached_custom_fields": "attachedCustomFields", "organization_id": "organizationId", "recurring_interval": "recurringInterval", + "recurring_interval_count": "recurringIntervalCount", }); }); @@ -336,6 +342,7 @@ export type ProductCreateOneTime$Outbound = { | undefined; organization_id?: string | null | undefined; recurring_interval?: any | null | undefined; + recurring_interval_count?: any | null | undefined; }; /** @internal */ @@ -383,11 +390,13 @@ export const ProductCreateOneTime$outboundSchema: z.ZodType< .optional(), organizationId: z.nullable(z.string()).optional(), recurringInterval: z.nullable(z.any()).optional(), + recurringIntervalCount: z.nullable(z.any()).optional(), }).transform((v) => { return remap$(v, { attachedCustomFields: "attached_custom_fields", organizationId: "organization_id", recurringInterval: "recurring_interval", + recurringIntervalCount: "recurring_interval_count", }); }); diff --git a/src/models/components/productcreaterecurring.ts b/src/models/components/productcreaterecurring.ts index 33c4109f..53027e7e 100644 --- a/src/models/components/productcreaterecurring.ts +++ b/src/models/components/productcreaterecurring.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -119,6 +119,10 @@ export type ProductCreateRecurring = { */ trialIntervalCount?: number | null | undefined; recurringInterval: SubscriptionRecurringInterval; + /** + * Number of interval units of the subscription.If this is set to 1 the charge will happen every interval (e.g. every month),if set to 2 it will be every other month, and so on. + */ + recurringIntervalCount?: number | undefined; }; /** @internal */ @@ -329,6 +333,7 @@ export const ProductCreateRecurring$inboundSchema: z.ZodType< trial_interval: z.nullable(TrialInterval$inboundSchema).optional(), trial_interval_count: z.nullable(z.number().int()).optional(), recurring_interval: SubscriptionRecurringInterval$inboundSchema, + recurring_interval_count: z.number().int().default(1), }).transform((v) => { return remap$(v, { "attached_custom_fields": "attachedCustomFields", @@ -336,6 +341,7 @@ export const ProductCreateRecurring$inboundSchema: z.ZodType< "trial_interval": "trialInterval", "trial_interval_count": "trialIntervalCount", "recurring_interval": "recurringInterval", + "recurring_interval_count": "recurringIntervalCount", }); }); @@ -359,6 +365,7 @@ export type ProductCreateRecurring$Outbound = { trial_interval?: string | null | undefined; trial_interval_count?: number | null | undefined; recurring_interval: string; + recurring_interval_count: number; }; /** @internal */ @@ -408,6 +415,7 @@ export const ProductCreateRecurring$outboundSchema: z.ZodType< trialInterval: z.nullable(TrialInterval$outboundSchema).optional(), trialIntervalCount: z.nullable(z.number().int()).optional(), recurringInterval: SubscriptionRecurringInterval$outboundSchema, + recurringIntervalCount: z.number().int().default(1), }).transform((v) => { return remap$(v, { attachedCustomFields: "attached_custom_fields", @@ -415,6 +423,7 @@ export const ProductCreateRecurring$outboundSchema: z.ZodType< trialInterval: "trial_interval", trialIntervalCount: "trial_interval_count", recurringInterval: "recurring_interval", + recurringIntervalCount: "recurring_interval_count", }); }); diff --git a/src/models/components/productmediafilecreate.ts b/src/models/components/productmediafilecreate.ts index 7c4df369..8f7b54d8 100644 --- a/src/models/components/productmediafilecreate.ts +++ b/src/models/components/productmediafilecreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/productmediafileread.ts b/src/models/components/productmediafileread.ts index 718ce4d9..7cc55f4a 100644 --- a/src/models/components/productmediafileread.ts +++ b/src/models/components/productmediafileread.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/productprice.ts b/src/models/components/productprice.ts index 7e8abe96..7bdcd786 100644 --- a/src/models/components/productprice.ts +++ b/src/models/components/productprice.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/productpricecustom.ts b/src/models/components/productpricecustom.ts index 35fabf52..5e351753 100644 --- a/src/models/components/productpricecustom.ts +++ b/src/models/components/productpricecustom.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/productpricecustomcreate.ts b/src/models/components/productpricecustomcreate.ts index b8ec077b..16f5c101 100644 --- a/src/models/components/productpricecustomcreate.ts +++ b/src/models/components/productpricecustomcreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/productpricefixed.ts b/src/models/components/productpricefixed.ts index bbc87f04..febefe66 100644 --- a/src/models/components/productpricefixed.ts +++ b/src/models/components/productpricefixed.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/productpricefixedcreate.ts b/src/models/components/productpricefixedcreate.ts index 82b72c47..c5be1088 100644 --- a/src/models/components/productpricefixedcreate.ts +++ b/src/models/components/productpricefixedcreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/productpricefree.ts b/src/models/components/productpricefree.ts index 4017571f..836a85ed 100644 --- a/src/models/components/productpricefree.ts +++ b/src/models/components/productpricefree.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/productpricefreecreate.ts b/src/models/components/productpricefreecreate.ts index 622c4adc..f725904f 100644 --- a/src/models/components/productpricefreecreate.ts +++ b/src/models/components/productpricefreecreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/productpricemeter.ts b/src/models/components/productpricemeter.ts index fd6172dc..9f291b64 100644 --- a/src/models/components/productpricemeter.ts +++ b/src/models/components/productpricemeter.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/productpricemeteredunit.ts b/src/models/components/productpricemeteredunit.ts index d1657618..4220c722 100644 --- a/src/models/components/productpricemeteredunit.ts +++ b/src/models/components/productpricemeteredunit.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/productpricemeteredunitcreate.ts b/src/models/components/productpricemeteredunitcreate.ts index a625f795..67dce110 100644 --- a/src/models/components/productpricemeteredunitcreate.ts +++ b/src/models/components/productpricemeteredunitcreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/productpriceseatbased.ts b/src/models/components/productpriceseatbased.ts index 108b9805..7199f4a3 100644 --- a/src/models/components/productpriceseatbased.ts +++ b/src/models/components/productpriceseatbased.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/productpriceseatbasedcreate.ts b/src/models/components/productpriceseatbasedcreate.ts index cf73ba76..3815a1a0 100644 --- a/src/models/components/productpriceseatbasedcreate.ts +++ b/src/models/components/productpriceseatbasedcreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/productpriceseattier.ts b/src/models/components/productpriceseattier.ts index 51d8cacb..e7b05a07 100644 --- a/src/models/components/productpriceseattier.ts +++ b/src/models/components/productpriceseattier.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/productpriceseattiers.ts b/src/models/components/productpriceseattiers.ts index e5f9d89f..d8dbd7b6 100644 --- a/src/models/components/productpriceseattiers.ts +++ b/src/models/components/productpriceseattiers.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/productpricetype.ts b/src/models/components/productpricetype.ts index 82e92017..bf1a17c1 100644 --- a/src/models/components/productpricetype.ts +++ b/src/models/components/productpricetype.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const ProductPriceType = { diff --git a/src/models/components/productsortproperty.ts b/src/models/components/productsortproperty.ts index 4cec2f05..3ec2d520 100644 --- a/src/models/components/productsortproperty.ts +++ b/src/models/components/productsortproperty.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const ProductSortProperty = { diff --git a/src/models/components/productupdate.ts b/src/models/components/productupdate.ts index 8f240286..68dc92d1 100644 --- a/src/models/components/productupdate.ts +++ b/src/models/components/productupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -114,6 +114,10 @@ export type ProductUpdate = { * The recurring interval of the product. If `None`, the product is a one-time purchase. **Can only be set on legacy recurring products. Once set, it can't be changed.** */ recurringInterval?: SubscriptionRecurringInterval | null | undefined; + /** + * Number of interval units of the subscription.If this is set to 1 the charge will happen every interval (e.g. every month),if set to 2 it will be every other month, and so on. + */ + recurringIntervalCount?: number | null | undefined; /** * Whether the product is archived. If `true`, the product won't be available for purchase anymore. Existing customers will still have access to their benefits, and subscriptions will continue normally. */ @@ -410,6 +414,7 @@ export const ProductUpdate$inboundSchema: z.ZodType< description: z.nullable(z.string()).optional(), recurring_interval: z.nullable(SubscriptionRecurringInterval$inboundSchema) .optional(), + recurring_interval_count: z.nullable(z.number().int()).optional(), is_archived: z.nullable(z.boolean()).optional(), prices: z.nullable( z.array( @@ -454,6 +459,7 @@ export const ProductUpdate$inboundSchema: z.ZodType< "trial_interval": "trialInterval", "trial_interval_count": "trialIntervalCount", "recurring_interval": "recurringInterval", + "recurring_interval_count": "recurringIntervalCount", "is_archived": "isArchived", "attached_custom_fields": "attachedCustomFields", }); @@ -467,6 +473,7 @@ export type ProductUpdate$Outbound = { name?: string | null | undefined; description?: string | null | undefined; recurring_interval?: string | null | undefined; + recurring_interval_count?: number | null | undefined; is_archived?: boolean | null | undefined; prices?: | Array< @@ -503,6 +510,7 @@ export const ProductUpdate$outboundSchema: z.ZodType< description: z.nullable(z.string()).optional(), recurringInterval: z.nullable(SubscriptionRecurringInterval$outboundSchema) .optional(), + recurringIntervalCount: z.nullable(z.number().int()).optional(), isArchived: z.nullable(z.boolean()).optional(), prices: z.nullable( z.array( @@ -547,6 +555,7 @@ export const ProductUpdate$outboundSchema: z.ZodType< trialInterval: "trial_interval", trialIntervalCount: "trial_interval_count", recurringInterval: "recurring_interval", + recurringIntervalCount: "recurring_interval_count", isArchived: "is_archived", attachedCustomFields: "attached_custom_fields", }); diff --git a/src/models/components/propertyaggregation.ts b/src/models/components/propertyaggregation.ts index f07c8453..f44101f7 100644 --- a/src/models/components/propertyaggregation.ts +++ b/src/models/components/propertyaggregation.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/refreshtokenrequest.ts b/src/models/components/refreshtokenrequest.ts index 2e96ec28..a72f411c 100644 --- a/src/models/components/refreshtokenrequest.ts +++ b/src/models/components/refreshtokenrequest.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/refund.ts b/src/models/components/refund.ts index 56b06f7f..f702e069 100644 --- a/src/models/components/refund.ts +++ b/src/models/components/refund.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/refundcreate.ts b/src/models/components/refundcreate.ts index 90a4afde..c8395d83 100644 --- a/src/models/components/refundcreate.ts +++ b/src/models/components/refundcreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/refundreason.ts b/src/models/components/refundreason.ts index b1a72f0a..180b18b9 100644 --- a/src/models/components/refundreason.ts +++ b/src/models/components/refundreason.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const RefundReason = { diff --git a/src/models/components/refundsortproperty.ts b/src/models/components/refundsortproperty.ts index 3003db31..054b671f 100644 --- a/src/models/components/refundsortproperty.ts +++ b/src/models/components/refundsortproperty.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const RefundSortProperty = { diff --git a/src/models/components/refundstatus.ts b/src/models/components/refundstatus.ts index 48c8c9ba..7e9038c5 100644 --- a/src/models/components/refundstatus.ts +++ b/src/models/components/refundstatus.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const RefundStatus = { diff --git a/src/models/components/revoketokenrequest.ts b/src/models/components/revoketokenrequest.ts index a02a43cd..6e104746 100644 --- a/src/models/components/revoketokenrequest.ts +++ b/src/models/components/revoketokenrequest.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; diff --git a/src/models/components/revoketokenresponse.ts b/src/models/components/revoketokenresponse.ts index 8600eff5..2ff4cb69 100644 --- a/src/models/components/revoketokenresponse.ts +++ b/src/models/components/revoketokenresponse.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/s3downloadurl.ts b/src/models/components/s3downloadurl.ts index 7c19d184..22ece25d 100644 --- a/src/models/components/s3downloadurl.ts +++ b/src/models/components/s3downloadurl.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/s3filecreatemultipart.ts b/src/models/components/s3filecreatemultipart.ts index 29620cc1..099ba5ed 100644 --- a/src/models/components/s3filecreatemultipart.ts +++ b/src/models/components/s3filecreatemultipart.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/s3filecreatepart.ts b/src/models/components/s3filecreatepart.ts index 943f5a1d..69fa0578 100644 --- a/src/models/components/s3filecreatepart.ts +++ b/src/models/components/s3filecreatepart.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/s3fileuploadcompletedpart.ts b/src/models/components/s3fileuploadcompletedpart.ts index 339f0c50..46d6097c 100644 --- a/src/models/components/s3fileuploadcompletedpart.ts +++ b/src/models/components/s3fileuploadcompletedpart.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/s3fileuploadmultipart.ts b/src/models/components/s3fileuploadmultipart.ts index 6c9206b7..152ae4b6 100644 --- a/src/models/components/s3fileuploadmultipart.ts +++ b/src/models/components/s3fileuploadmultipart.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/s3fileuploadpart.ts b/src/models/components/s3fileuploadpart.ts index 21d8f47b..57a12495 100644 --- a/src/models/components/s3fileuploadpart.ts +++ b/src/models/components/s3fileuploadpart.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/scope.ts b/src/models/components/scope.ts index a358149c..c1adc4ca 100644 --- a/src/models/components/scope.ts +++ b/src/models/components/scope.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const Scope = { @@ -42,6 +42,8 @@ export const Scope = { CustomersWrite: "customers:write", CustomerMetersRead: "customer_meters:read", CustomerSessionsWrite: "customer_sessions:write", + CustomerSeatsRead: "customer_seats:read", + CustomerSeatsWrite: "customer_seats:write", OrdersRead: "orders:read", OrdersWrite: "orders:write", RefundsRead: "refunds:read", diff --git a/src/models/components/seatassign.ts b/src/models/components/seatassign.ts index 4f93593a..fbfd13d9 100644 --- a/src/models/components/seatassign.ts +++ b/src/models/components/seatassign.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -10,13 +10,17 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type SeatAssign = { /** - * Subscription ID. Required if checkout_id is not provided. + * Subscription ID. Required if checkout_id and order_id are not provided. */ subscriptionId?: string | null | undefined; /** - * Checkout ID. Used to look up subscription. Required if subscription_id is not provided. + * Checkout ID. Used to look up subscription or order from the checkout page. */ checkoutId?: string | null | undefined; + /** + * Order ID for one-time purchases. Required if subscription_id and checkout_id are not provided. + */ + orderId?: string | null | undefined; /** * Email of the customer to assign the seat to */ @@ -43,6 +47,7 @@ export const SeatAssign$inboundSchema: z.ZodType< > = z.object({ subscription_id: z.nullable(z.string()).optional(), checkout_id: z.nullable(z.string()).optional(), + order_id: z.nullable(z.string()).optional(), email: z.nullable(z.string()).optional(), external_customer_id: z.nullable(z.string()).optional(), customer_id: z.nullable(z.string()).optional(), @@ -51,6 +56,7 @@ export const SeatAssign$inboundSchema: z.ZodType< return remap$(v, { "subscription_id": "subscriptionId", "checkout_id": "checkoutId", + "order_id": "orderId", "external_customer_id": "externalCustomerId", "customer_id": "customerId", }); @@ -60,6 +66,7 @@ export const SeatAssign$inboundSchema: z.ZodType< export type SeatAssign$Outbound = { subscription_id?: string | null | undefined; checkout_id?: string | null | undefined; + order_id?: string | null | undefined; email?: string | null | undefined; external_customer_id?: string | null | undefined; customer_id?: string | null | undefined; @@ -74,6 +81,7 @@ export const SeatAssign$outboundSchema: z.ZodType< > = z.object({ subscriptionId: z.nullable(z.string()).optional(), checkoutId: z.nullable(z.string()).optional(), + orderId: z.nullable(z.string()).optional(), email: z.nullable(z.string()).optional(), externalCustomerId: z.nullable(z.string()).optional(), customerId: z.nullable(z.string()).optional(), @@ -82,6 +90,7 @@ export const SeatAssign$outboundSchema: z.ZodType< return remap$(v, { subscriptionId: "subscription_id", checkoutId: "checkout_id", + orderId: "order_id", externalCustomerId: "external_customer_id", customerId: "customer_id", }); diff --git a/src/models/components/seatslist.ts b/src/models/components/seatslist.ts index 78869772..9e04b2b5 100644 --- a/src/models/components/seatslist.ts +++ b/src/models/components/seatslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/seatstatus.ts b/src/models/components/seatstatus.ts index 4d110228..c5b702e1 100644 --- a/src/models/components/seatstatus.ts +++ b/src/models/components/seatstatus.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const SeatStatus = { diff --git a/src/models/components/security.ts b/src/models/components/security.ts index f98ed5e8..7300c1c6 100644 --- a/src/models/components/security.ts +++ b/src/models/components/security.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/status.ts b/src/models/components/status.ts index dc7cb9ff..2eaed64d 100644 --- a/src/models/components/status.ts +++ b/src/models/components/status.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const Status = { diff --git a/src/models/components/subscription.ts b/src/models/components/subscription.ts index ed3004bf..302567ad 100644 --- a/src/models/components/subscription.ts +++ b/src/models/components/subscription.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -111,6 +111,10 @@ export type Subscription = { */ currency: string; recurringInterval: SubscriptionRecurringInterval; + /** + * Number of interval units of the subscription.If this is set to 1 the charge will happen every interval (e.g. every month),if set to 2 it will be every other month, and so on. + */ + recurringIntervalCount: number; status: SubscriptionStatus; /** * The start timestamp of the current billing period. @@ -423,6 +427,7 @@ export const Subscription$inboundSchema: z.ZodType< amount: z.number().int(), currency: z.string(), recurring_interval: SubscriptionRecurringInterval$inboundSchema, + recurring_interval_count: z.number().int(), status: SubscriptionStatus$inboundSchema, current_period_start: z.string().datetime({ offset: true }).transform(v => new Date(v) @@ -492,6 +497,7 @@ export const Subscription$inboundSchema: z.ZodType< "created_at": "createdAt", "modified_at": "modifiedAt", "recurring_interval": "recurringInterval", + "recurring_interval_count": "recurringIntervalCount", "current_period_start": "currentPeriodStart", "current_period_end": "currentPeriodEnd", "trial_start": "trialStart", @@ -519,6 +525,7 @@ export type Subscription$Outbound = { amount: number; currency: string; recurring_interval: string; + recurring_interval_count: number; status: string; current_period_start: string; current_period_end: string | null; @@ -563,6 +570,7 @@ export const Subscription$outboundSchema: z.ZodType< amount: z.number().int(), currency: z.string(), recurringInterval: SubscriptionRecurringInterval$outboundSchema, + recurringIntervalCount: z.number().int(), status: SubscriptionStatus$outboundSchema, currentPeriodStart: z.date().transform(v => v.toISOString()), currentPeriodEnd: z.nullable(z.date().transform(v => v.toISOString())), @@ -616,6 +624,7 @@ export const Subscription$outboundSchema: z.ZodType< createdAt: "created_at", modifiedAt: "modified_at", recurringInterval: "recurring_interval", + recurringIntervalCount: "recurring_interval_count", currentPeriodStart: "current_period_start", currentPeriodEnd: "current_period_end", trialStart: "trial_start", diff --git a/src/models/components/subscriptioncancel.ts b/src/models/components/subscriptioncancel.ts index 82923d78..b1e66470 100644 --- a/src/models/components/subscriptioncancel.ts +++ b/src/models/components/subscriptioncancel.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/subscriptioncustomer.ts b/src/models/components/subscriptioncustomer.ts index c8c8be1a..c87dfed3 100644 --- a/src/models/components/subscriptioncustomer.ts +++ b/src/models/components/subscriptioncustomer.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/subscriptioncycledevent.ts b/src/models/components/subscriptioncycledevent.ts index be20390f..8a214006 100644 --- a/src/models/components/subscriptioncycledevent.ts +++ b/src/models/components/subscriptioncycledevent.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/subscriptioncycledmetadata.ts b/src/models/components/subscriptioncycledmetadata.ts index deae0a0c..5f2022d3 100644 --- a/src/models/components/subscriptioncycledmetadata.ts +++ b/src/models/components/subscriptioncycledmetadata.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/subscriptionmeter.ts b/src/models/components/subscriptionmeter.ts index 716bf68f..19ad3eb0 100644 --- a/src/models/components/subscriptionmeter.ts +++ b/src/models/components/subscriptionmeter.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/subscriptionproductupdatedevent.ts b/src/models/components/subscriptionproductupdatedevent.ts index d17b9cae..4a981bfe 100644 --- a/src/models/components/subscriptionproductupdatedevent.ts +++ b/src/models/components/subscriptionproductupdatedevent.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/subscriptionproductupdatedmetadata.ts b/src/models/components/subscriptionproductupdatedmetadata.ts index 7b1a97a8..6250ac4d 100644 --- a/src/models/components/subscriptionproductupdatedmetadata.ts +++ b/src/models/components/subscriptionproductupdatedmetadata.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/subscriptionprorationbehavior.ts b/src/models/components/subscriptionprorationbehavior.ts index 492b5e37..35a3cc39 100644 --- a/src/models/components/subscriptionprorationbehavior.ts +++ b/src/models/components/subscriptionprorationbehavior.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const SubscriptionProrationBehavior = { diff --git a/src/models/components/subscriptionrecurringinterval.ts b/src/models/components/subscriptionrecurringinterval.ts index 655312bc..4419cbab 100644 --- a/src/models/components/subscriptionrecurringinterval.ts +++ b/src/models/components/subscriptionrecurringinterval.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const SubscriptionRecurringInterval = { diff --git a/src/models/components/subscriptionrevoke.ts b/src/models/components/subscriptionrevoke.ts index dae166dd..d7f81a41 100644 --- a/src/models/components/subscriptionrevoke.ts +++ b/src/models/components/subscriptionrevoke.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/subscriptionrevokedevent.ts b/src/models/components/subscriptionrevokedevent.ts index 227b8191..4f6d4ab1 100644 --- a/src/models/components/subscriptionrevokedevent.ts +++ b/src/models/components/subscriptionrevokedevent.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/subscriptionrevokedmetadata.ts b/src/models/components/subscriptionrevokedmetadata.ts index 95ed4dce..dab44ff5 100644 --- a/src/models/components/subscriptionrevokedmetadata.ts +++ b/src/models/components/subscriptionrevokedmetadata.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/subscriptionslist.ts b/src/models/components/subscriptionslist.ts index 3b4d6413..b238d70e 100644 --- a/src/models/components/subscriptionslist.ts +++ b/src/models/components/subscriptionslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/subscriptionsortproperty.ts b/src/models/components/subscriptionsortproperty.ts index 686ef9e9..2f93885c 100644 --- a/src/models/components/subscriptionsortproperty.ts +++ b/src/models/components/subscriptionsortproperty.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const SubscriptionSortProperty = { diff --git a/src/models/components/subscriptionstatus.ts b/src/models/components/subscriptionstatus.ts index 07c77397..da5e0cd7 100644 --- a/src/models/components/subscriptionstatus.ts +++ b/src/models/components/subscriptionstatus.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const SubscriptionStatus = { diff --git a/src/models/components/subscriptionupdate.ts b/src/models/components/subscriptionupdate.ts index dc939963..1017fd29 100644 --- a/src/models/components/subscriptionupdate.ts +++ b/src/models/components/subscriptionupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/subscriptionupdatediscount.ts b/src/models/components/subscriptionupdatediscount.ts index fabb6d3f..3e841dd7 100644 --- a/src/models/components/subscriptionupdatediscount.ts +++ b/src/models/components/subscriptionupdatediscount.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/subscriptionupdateproduct.ts b/src/models/components/subscriptionupdateproduct.ts index 19e29130..e14a86d4 100644 --- a/src/models/components/subscriptionupdateproduct.ts +++ b/src/models/components/subscriptionupdateproduct.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/subscriptionupdatetrial.ts b/src/models/components/subscriptionupdatetrial.ts index 58489c0f..a7c2429d 100644 --- a/src/models/components/subscriptionupdatetrial.ts +++ b/src/models/components/subscriptionupdatetrial.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/subtype.ts b/src/models/components/subtype.ts index c83ea99e..68420083 100644 --- a/src/models/components/subtype.ts +++ b/src/models/components/subtype.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const SubType = { diff --git a/src/models/components/systemevent.ts b/src/models/components/systemevent.ts index 340ba413..a1c2d268 100644 --- a/src/models/components/systemevent.ts +++ b/src/models/components/systemevent.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/taxidformat.ts b/src/models/components/taxidformat.ts index edfb48ed..c3c7ac42 100644 --- a/src/models/components/taxidformat.ts +++ b/src/models/components/taxidformat.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** diff --git a/src/models/components/timeinterval.ts b/src/models/components/timeinterval.ts index 171a99ed..2414ac28 100644 --- a/src/models/components/timeinterval.ts +++ b/src/models/components/timeinterval.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const TimeInterval = { diff --git a/src/models/components/tokenresponse.ts b/src/models/components/tokenresponse.ts index cb2d43ff..68517674 100644 --- a/src/models/components/tokenresponse.ts +++ b/src/models/components/tokenresponse.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/trialinterval.ts b/src/models/components/trialinterval.ts index 301699ec..06d300ca 100644 --- a/src/models/components/trialinterval.ts +++ b/src/models/components/trialinterval.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const TrialInterval = { diff --git a/src/models/components/uniqueaggregation.ts b/src/models/components/uniqueaggregation.ts index 98988682..ab27dde5 100644 --- a/src/models/components/uniqueaggregation.ts +++ b/src/models/components/uniqueaggregation.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/userevent.ts b/src/models/components/userevent.ts index 0c155a94..2eda6bd0 100644 --- a/src/models/components/userevent.ts +++ b/src/models/components/userevent.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/userinfoorganization.ts b/src/models/components/userinfoorganization.ts index e5d586b0..b845d9e4 100644 --- a/src/models/components/userinfoorganization.ts +++ b/src/models/components/userinfoorganization.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/userinfouser.ts b/src/models/components/userinfouser.ts index c445c8a3..d351b4c8 100644 --- a/src/models/components/userinfouser.ts +++ b/src/models/components/userinfouser.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/validatedlicensekey.ts b/src/models/components/validatedlicensekey.ts index 878caa22..887ee902 100644 --- a/src/models/components/validatedlicensekey.ts +++ b/src/models/components/validatedlicensekey.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/validationerror.ts b/src/models/components/validationerror.ts index 9072a892..17584940 100644 --- a/src/models/components/validationerror.ts +++ b/src/models/components/validationerror.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/webhookbenefitcreatedpayload.ts b/src/models/components/webhookbenefitcreatedpayload.ts index 3fdfeabb..6063dd0d 100644 --- a/src/models/components/webhookbenefitcreatedpayload.ts +++ b/src/models/components/webhookbenefitcreatedpayload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/webhookbenefitgrantcreatedpayload.ts b/src/models/components/webhookbenefitgrantcreatedpayload.ts index ef3a704a..f814dbb3 100644 --- a/src/models/components/webhookbenefitgrantcreatedpayload.ts +++ b/src/models/components/webhookbenefitgrantcreatedpayload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/webhookbenefitgrantcycledpayload.ts b/src/models/components/webhookbenefitgrantcycledpayload.ts index 4e4929ba..5ff10181 100644 --- a/src/models/components/webhookbenefitgrantcycledpayload.ts +++ b/src/models/components/webhookbenefitgrantcycledpayload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/webhookbenefitgrantrevokedpayload.ts b/src/models/components/webhookbenefitgrantrevokedpayload.ts index 2f25dcc4..b37a3710 100644 --- a/src/models/components/webhookbenefitgrantrevokedpayload.ts +++ b/src/models/components/webhookbenefitgrantrevokedpayload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/webhookbenefitgrantupdatedpayload.ts b/src/models/components/webhookbenefitgrantupdatedpayload.ts index c7724e32..b7d7dc00 100644 --- a/src/models/components/webhookbenefitgrantupdatedpayload.ts +++ b/src/models/components/webhookbenefitgrantupdatedpayload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/webhookbenefitupdatedpayload.ts b/src/models/components/webhookbenefitupdatedpayload.ts index 97089e58..170c81f7 100644 --- a/src/models/components/webhookbenefitupdatedpayload.ts +++ b/src/models/components/webhookbenefitupdatedpayload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/webhookcheckoutcreatedpayload.ts b/src/models/components/webhookcheckoutcreatedpayload.ts index f0be2b0b..fed8753d 100644 --- a/src/models/components/webhookcheckoutcreatedpayload.ts +++ b/src/models/components/webhookcheckoutcreatedpayload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/webhookcheckoutupdatedpayload.ts b/src/models/components/webhookcheckoutupdatedpayload.ts index 00c1e516..0ac00765 100644 --- a/src/models/components/webhookcheckoutupdatedpayload.ts +++ b/src/models/components/webhookcheckoutupdatedpayload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/webhookcustomercreatedpayload.ts b/src/models/components/webhookcustomercreatedpayload.ts index a91b9594..89449d02 100644 --- a/src/models/components/webhookcustomercreatedpayload.ts +++ b/src/models/components/webhookcustomercreatedpayload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/webhookcustomerdeletedpayload.ts b/src/models/components/webhookcustomerdeletedpayload.ts index c8e2b737..65b77989 100644 --- a/src/models/components/webhookcustomerdeletedpayload.ts +++ b/src/models/components/webhookcustomerdeletedpayload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/webhookcustomerstatechangedpayload.ts b/src/models/components/webhookcustomerstatechangedpayload.ts index 693f8362..4a2996d7 100644 --- a/src/models/components/webhookcustomerstatechangedpayload.ts +++ b/src/models/components/webhookcustomerstatechangedpayload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/webhookcustomerupdatedpayload.ts b/src/models/components/webhookcustomerupdatedpayload.ts index 8983f32e..be2edf7b 100644 --- a/src/models/components/webhookcustomerupdatedpayload.ts +++ b/src/models/components/webhookcustomerupdatedpayload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/webhookdelivery.ts b/src/models/components/webhookdelivery.ts index ae60644e..84c6ad0f 100644 --- a/src/models/components/webhookdelivery.ts +++ b/src/models/components/webhookdelivery.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/webhookendpoint.ts b/src/models/components/webhookendpoint.ts index 446e8322..a495aa82 100644 --- a/src/models/components/webhookendpoint.ts +++ b/src/models/components/webhookendpoint.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/webhookendpointcreate.ts b/src/models/components/webhookendpointcreate.ts index 1a898a21..3d8d3b28 100644 --- a/src/models/components/webhookendpointcreate.ts +++ b/src/models/components/webhookendpointcreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/webhookendpointupdate.ts b/src/models/components/webhookendpointupdate.ts index 81779830..833e7516 100644 --- a/src/models/components/webhookendpointupdate.ts +++ b/src/models/components/webhookendpointupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/webhookevent.ts b/src/models/components/webhookevent.ts index 7babcfa5..ccb1ad98 100644 --- a/src/models/components/webhookevent.ts +++ b/src/models/components/webhookevent.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/components/webhookeventtype.ts b/src/models/components/webhookeventtype.ts index 9df4a43e..1c56b76f 100644 --- a/src/models/components/webhookeventtype.ts +++ b/src/models/components/webhookeventtype.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const WebhookEventType = { diff --git a/src/models/components/webhookformat.ts b/src/models/components/webhookformat.ts index 8d9ec74c..18b77050 100644 --- a/src/models/components/webhookformat.ts +++ b/src/models/components/webhookformat.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const WebhookFormat = { diff --git a/src/models/components/webhookordercreatedpayload.ts b/src/models/components/webhookordercreatedpayload.ts index 30a5652a..67480889 100644 --- a/src/models/components/webhookordercreatedpayload.ts +++ b/src/models/components/webhookordercreatedpayload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/webhookorderpaidpayload.ts b/src/models/components/webhookorderpaidpayload.ts index 1ea014db..aea54522 100644 --- a/src/models/components/webhookorderpaidpayload.ts +++ b/src/models/components/webhookorderpaidpayload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/webhookorderrefundedpayload.ts b/src/models/components/webhookorderrefundedpayload.ts index 0e1120e4..6fe84009 100644 --- a/src/models/components/webhookorderrefundedpayload.ts +++ b/src/models/components/webhookorderrefundedpayload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/webhookorderupdatedpayload.ts b/src/models/components/webhookorderupdatedpayload.ts index b9baf3b6..a691d9f9 100644 --- a/src/models/components/webhookorderupdatedpayload.ts +++ b/src/models/components/webhookorderupdatedpayload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/webhookorganizationupdatedpayload.ts b/src/models/components/webhookorganizationupdatedpayload.ts index 6c87f914..bca7d361 100644 --- a/src/models/components/webhookorganizationupdatedpayload.ts +++ b/src/models/components/webhookorganizationupdatedpayload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/webhookproductcreatedpayload.ts b/src/models/components/webhookproductcreatedpayload.ts index a8bc0b9f..ba80f76a 100644 --- a/src/models/components/webhookproductcreatedpayload.ts +++ b/src/models/components/webhookproductcreatedpayload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/webhookproductupdatedpayload.ts b/src/models/components/webhookproductupdatedpayload.ts index 5c01946f..94d34ace 100644 --- a/src/models/components/webhookproductupdatedpayload.ts +++ b/src/models/components/webhookproductupdatedpayload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/webhookrefundcreatedpayload.ts b/src/models/components/webhookrefundcreatedpayload.ts index 79fd6a2d..ca02b43b 100644 --- a/src/models/components/webhookrefundcreatedpayload.ts +++ b/src/models/components/webhookrefundcreatedpayload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/webhookrefundupdatedpayload.ts b/src/models/components/webhookrefundupdatedpayload.ts index ff049fa8..e2e1e365 100644 --- a/src/models/components/webhookrefundupdatedpayload.ts +++ b/src/models/components/webhookrefundupdatedpayload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/webhooksubscriptionactivepayload.ts b/src/models/components/webhooksubscriptionactivepayload.ts index d048bab6..e9f9d0ce 100644 --- a/src/models/components/webhooksubscriptionactivepayload.ts +++ b/src/models/components/webhooksubscriptionactivepayload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/webhooksubscriptioncanceledpayload.ts b/src/models/components/webhooksubscriptioncanceledpayload.ts index bc2d4e44..3a9cc373 100644 --- a/src/models/components/webhooksubscriptioncanceledpayload.ts +++ b/src/models/components/webhooksubscriptioncanceledpayload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/webhooksubscriptioncreatedpayload.ts b/src/models/components/webhooksubscriptioncreatedpayload.ts index aad6d0c6..46873b2c 100644 --- a/src/models/components/webhooksubscriptioncreatedpayload.ts +++ b/src/models/components/webhooksubscriptioncreatedpayload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/webhooksubscriptionrevokedpayload.ts b/src/models/components/webhooksubscriptionrevokedpayload.ts index 84d02127..d7b8067b 100644 --- a/src/models/components/webhooksubscriptionrevokedpayload.ts +++ b/src/models/components/webhooksubscriptionrevokedpayload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/webhooksubscriptionuncanceledpayload.ts b/src/models/components/webhooksubscriptionuncanceledpayload.ts index 6f9111ee..39ffd9e4 100644 --- a/src/models/components/webhooksubscriptionuncanceledpayload.ts +++ b/src/models/components/webhooksubscriptionuncanceledpayload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/webhooksubscriptionupdatedpayload.ts b/src/models/components/webhooksubscriptionupdatedpayload.ts index 62811289..671ee7fc 100644 --- a/src/models/components/webhooksubscriptionupdatedpayload.ts +++ b/src/models/components/webhooksubscriptionupdatedpayload.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/components/webtokenrequest.ts b/src/models/components/webtokenrequest.ts index 1dc478e0..7dc26875 100644 --- a/src/models/components/webtokenrequest.ts +++ b/src/models/components/webtokenrequest.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; diff --git a/src/models/errors/alreadyactivesubscriptionerror.ts b/src/models/errors/alreadyactivesubscriptionerror.ts index b991bd63..03d30051 100644 --- a/src/models/errors/alreadyactivesubscriptionerror.ts +++ b/src/models/errors/alreadyactivesubscriptionerror.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarError } from "./polarerror.js"; export type AlreadyActiveSubscriptionErrorData = { diff --git a/src/models/errors/alreadycanceledsubscription.ts b/src/models/errors/alreadycanceledsubscription.ts index 20dba5f3..6d69fcd6 100644 --- a/src/models/errors/alreadycanceledsubscription.ts +++ b/src/models/errors/alreadycanceledsubscription.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarError } from "./polarerror.js"; export type AlreadyCanceledSubscriptionData = { diff --git a/src/models/errors/checkoutforbiddenerror.ts b/src/models/errors/checkoutforbiddenerror.ts index 163b586e..f945eb79 100644 --- a/src/models/errors/checkoutforbiddenerror.ts +++ b/src/models/errors/checkoutforbiddenerror.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { diff --git a/src/models/errors/customernotready.ts b/src/models/errors/customernotready.ts index 4784df39..938752a7 100644 --- a/src/models/errors/customernotready.ts +++ b/src/models/errors/customernotready.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarError } from "./polarerror.js"; export type CustomerNotReadyData = { diff --git a/src/models/errors/customerportalordersgenerateinvoice.ts b/src/models/errors/customerportalordersgenerateinvoice.ts index a8e7b30f..34197bc4 100644 --- a/src/models/errors/customerportalordersgenerateinvoice.ts +++ b/src/models/errors/customerportalordersgenerateinvoice.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { diff --git a/src/models/errors/expiredcheckouterror.ts b/src/models/errors/expiredcheckouterror.ts index 0ed8eafd..b1cc3418 100644 --- a/src/models/errors/expiredcheckouterror.ts +++ b/src/models/errors/expiredcheckouterror.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarError } from "./polarerror.js"; export type ExpiredCheckoutErrorData = { diff --git a/src/models/errors/httpvalidationerror.ts b/src/models/errors/httpvalidationerror.ts index 2badb91e..109ef6ef 100644 --- a/src/models/errors/httpvalidationerror.ts +++ b/src/models/errors/httpvalidationerror.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ValidationError, ValidationError$inboundSchema, diff --git a/src/models/errors/invoicealreadyexists.ts b/src/models/errors/invoicealreadyexists.ts deleted file mode 100644 index bdff2f91..00000000 --- a/src/models/errors/invoicealreadyexists.ts +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { PolarError } from "./polarerror.js"; - -export type InvoiceAlreadyExistsData = { - error: "InvoiceAlreadyExists"; - detail: string; -}; - -export class InvoiceAlreadyExists extends PolarError { - error: "InvoiceAlreadyExists"; - detail: string; - - /** The original data that was passed to this error instance. */ - data$: InvoiceAlreadyExistsData; - - constructor( - err: InvoiceAlreadyExistsData, - httpMeta: { response: Response; request: Request; body: string }, - ) { - const message = "message" in err && typeof err.message === "string" - ? err.message - : `API error occurred: ${JSON.stringify(err)}`; - super(message, httpMeta); - this.data$ = err; - this.error = err.error; - this.detail = err.detail; - - this.name = "InvoiceAlreadyExists"; - } -} - -/** @internal */ -export const InvoiceAlreadyExists$inboundSchema: z.ZodType< - InvoiceAlreadyExists, - z.ZodTypeDef, - unknown -> = z.object({ - error: z.literal("InvoiceAlreadyExists"), - detail: z.string(), - request$: z.instanceof(Request), - response$: z.instanceof(Response), - body$: z.string(), -}) - .transform((v) => { - return new InvoiceAlreadyExists(v, { - request: v.request$, - response: v.response$, - body: v.body$, - }); - }); - -/** @internal */ -export type InvoiceAlreadyExists$Outbound = { - error: "InvoiceAlreadyExists"; - detail: string; -}; - -/** @internal */ -export const InvoiceAlreadyExists$outboundSchema: z.ZodType< - InvoiceAlreadyExists$Outbound, - z.ZodTypeDef, - InvoiceAlreadyExists -> = z.instanceof(InvoiceAlreadyExists) - .transform(v => v.data$) - .pipe(z.object({ - error: z.literal("InvoiceAlreadyExists"), - detail: z.string(), - })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InvoiceAlreadyExists$ { - /** @deprecated use `InvoiceAlreadyExists$inboundSchema` instead. */ - export const inboundSchema = InvoiceAlreadyExists$inboundSchema; - /** @deprecated use `InvoiceAlreadyExists$outboundSchema` instead. */ - export const outboundSchema = InvoiceAlreadyExists$outboundSchema; - /** @deprecated use `InvoiceAlreadyExists$Outbound` instead. */ - export type Outbound = InvoiceAlreadyExists$Outbound; -} diff --git a/src/models/errors/missinginvoicebillingdetails.ts b/src/models/errors/missinginvoicebillingdetails.ts index c8b30fd9..122273e9 100644 --- a/src/models/errors/missinginvoicebillingdetails.ts +++ b/src/models/errors/missinginvoicebillingdetails.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarError } from "./polarerror.js"; export type MissingInvoiceBillingDetailsData = { diff --git a/src/models/errors/notopencheckout.ts b/src/models/errors/notopencheckout.ts index 32801a41..7258d96a 100644 --- a/src/models/errors/notopencheckout.ts +++ b/src/models/errors/notopencheckout.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarError } from "./polarerror.js"; export type NotOpenCheckoutData = { diff --git a/src/models/errors/notpaidorder.ts b/src/models/errors/notpaidorder.ts index 0a06c71f..3aa3d93b 100644 --- a/src/models/errors/notpaidorder.ts +++ b/src/models/errors/notpaidorder.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarError } from "./polarerror.js"; export type NotPaidOrderData = { diff --git a/src/models/errors/notpermitted.ts b/src/models/errors/notpermitted.ts index 97e0a470..6cbf7363 100644 --- a/src/models/errors/notpermitted.ts +++ b/src/models/errors/notpermitted.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarError } from "./polarerror.js"; export type NotPermittedData = { diff --git a/src/models/errors/ordernoteligibleforretry.ts b/src/models/errors/ordernoteligibleforretry.ts index 4da1e7d3..d862436b 100644 --- a/src/models/errors/ordernoteligibleforretry.ts +++ b/src/models/errors/ordernoteligibleforretry.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarError } from "./polarerror.js"; export type OrderNotEligibleForRetryData = { diff --git a/src/models/errors/ordersgenerateinvoice.ts b/src/models/errors/ordersgenerateinvoice.ts index 4f6b2f12..75be23e7 100644 --- a/src/models/errors/ordersgenerateinvoice.ts +++ b/src/models/errors/ordersgenerateinvoice.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { diff --git a/src/models/errors/paymentalreadyinprogress.ts b/src/models/errors/paymentalreadyinprogress.ts index 3b436e17..47294663 100644 --- a/src/models/errors/paymentalreadyinprogress.ts +++ b/src/models/errors/paymentalreadyinprogress.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarError } from "./polarerror.js"; export type PaymentAlreadyInProgressData = { diff --git a/src/models/errors/paymenterror.ts b/src/models/errors/paymenterror.ts index 17c1432f..c2162331 100644 --- a/src/models/errors/paymenterror.ts +++ b/src/models/errors/paymenterror.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarError } from "./polarerror.js"; export type PaymentErrorData = { diff --git a/src/models/errors/paymentmethodinusebyactivesubscription.ts b/src/models/errors/paymentmethodinusebyactivesubscription.ts index 1c68c0f2..f1430f64 100644 --- a/src/models/errors/paymentmethodinusebyactivesubscription.ts +++ b/src/models/errors/paymentmethodinusebyactivesubscription.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarError } from "./polarerror.js"; export type PaymentMethodInUseByActiveSubscriptionData = { diff --git a/src/models/errors/paymentnotready.ts b/src/models/errors/paymentnotready.ts index fcc4d5e1..f94d0794 100644 --- a/src/models/errors/paymentnotready.ts +++ b/src/models/errors/paymentnotready.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarError } from "./polarerror.js"; export type PaymentNotReadyData = { diff --git a/src/models/errors/refundamounttoohigh.ts b/src/models/errors/refundamounttoohigh.ts index 864f3dbf..6c440f69 100644 --- a/src/models/errors/refundamounttoohigh.ts +++ b/src/models/errors/refundamounttoohigh.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarError } from "./polarerror.js"; export type RefundAmountTooHighData = { diff --git a/src/models/errors/refundedalready.ts b/src/models/errors/refundedalready.ts index d86e9b5f..0d144e20 100644 --- a/src/models/errors/refundedalready.ts +++ b/src/models/errors/refundedalready.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarError } from "./polarerror.js"; export type RefundedAlreadyData = { diff --git a/src/models/errors/resourcenotfound.ts b/src/models/errors/resourcenotfound.ts index 25180ef7..7dbe57e5 100644 --- a/src/models/errors/resourcenotfound.ts +++ b/src/models/errors/resourcenotfound.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarError } from "./polarerror.js"; export type ResourceNotFoundData = { diff --git a/src/models/errors/responsevalidationerror.ts b/src/models/errors/responsevalidationerror.ts index c321ee11..9e31ea92 100644 --- a/src/models/errors/responsevalidationerror.ts +++ b/src/models/errors/responsevalidationerror.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarError } from "./polarerror.js"; import { formatZodError } from "./sdkvalidationerror.js"; diff --git a/src/models/errors/sdkvalidationerror.ts b/src/models/errors/sdkvalidationerror.ts index 37face8a..6826e120 100644 --- a/src/models/errors/sdkvalidationerror.ts +++ b/src/models/errors/sdkvalidationerror.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; export class SDKValidationError extends Error { /** diff --git a/src/models/errors/subscriptionlocked.ts b/src/models/errors/subscriptionlocked.ts index 8395d4c0..a344df85 100644 --- a/src/models/errors/subscriptionlocked.ts +++ b/src/models/errors/subscriptionlocked.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarError } from "./polarerror.js"; export type SubscriptionLockedData = { diff --git a/src/models/errors/unauthorized.ts b/src/models/errors/unauthorized.ts index 74f20b87..86d285a7 100644 --- a/src/models/errors/unauthorized.ts +++ b/src/models/errors/unauthorized.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { PolarError } from "./polarerror.js"; export type UnauthorizedData = { diff --git a/src/models/operations/benefitgrantslist.ts b/src/models/operations/benefitgrantslist.ts index 56ade8e5..423451d0 100644 --- a/src/models/operations/benefitgrantslist.ts +++ b/src/models/operations/benefitgrantslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/benefitsdelete.ts b/src/models/operations/benefitsdelete.ts index d713dd70..e72dc6db 100644 --- a/src/models/operations/benefitsdelete.ts +++ b/src/models/operations/benefitsdelete.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/operations/benefitsget.ts b/src/models/operations/benefitsget.ts index 4191aa15..71abf128 100644 --- a/src/models/operations/benefitsget.ts +++ b/src/models/operations/benefitsget.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/operations/benefitsgrants.ts b/src/models/operations/benefitsgrants.ts index 19d56d4a..711ec6f3 100644 --- a/src/models/operations/benefitsgrants.ts +++ b/src/models/operations/benefitsgrants.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/benefitslist.ts b/src/models/operations/benefitslist.ts index 6ecf11c6..93ebfb80 100644 --- a/src/models/operations/benefitslist.ts +++ b/src/models/operations/benefitslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/benefitsupdate.ts b/src/models/operations/benefitsupdate.ts index 85f27470..6bb18aa6 100644 --- a/src/models/operations/benefitsupdate.ts +++ b/src/models/operations/benefitsupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/checkoutlinksdelete.ts b/src/models/operations/checkoutlinksdelete.ts index a2d93387..8c852f2c 100644 --- a/src/models/operations/checkoutlinksdelete.ts +++ b/src/models/operations/checkoutlinksdelete.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/operations/checkoutlinksget.ts b/src/models/operations/checkoutlinksget.ts index 098f270d..d1c3a38e 100644 --- a/src/models/operations/checkoutlinksget.ts +++ b/src/models/operations/checkoutlinksget.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/operations/checkoutlinkslist.ts b/src/models/operations/checkoutlinkslist.ts index 3764fbae..3d67e23c 100644 --- a/src/models/operations/checkoutlinkslist.ts +++ b/src/models/operations/checkoutlinkslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/checkoutlinksupdate.ts b/src/models/operations/checkoutlinksupdate.ts index c2dbd43c..5082ce37 100644 --- a/src/models/operations/checkoutlinksupdate.ts +++ b/src/models/operations/checkoutlinksupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/checkoutsclientconfirm.ts b/src/models/operations/checkoutsclientconfirm.ts index 6c86d940..50f772be 100644 --- a/src/models/operations/checkoutsclientconfirm.ts +++ b/src/models/operations/checkoutsclientconfirm.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/checkoutsclientget.ts b/src/models/operations/checkoutsclientget.ts index d8c4dfab..89098051 100644 --- a/src/models/operations/checkoutsclientget.ts +++ b/src/models/operations/checkoutsclientget.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/checkoutsclientupdate.ts b/src/models/operations/checkoutsclientupdate.ts index 47f4cdad..cee0604f 100644 --- a/src/models/operations/checkoutsclientupdate.ts +++ b/src/models/operations/checkoutsclientupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/checkoutsget.ts b/src/models/operations/checkoutsget.ts index 3e31062a..6f6af3bd 100644 --- a/src/models/operations/checkoutsget.ts +++ b/src/models/operations/checkoutsget.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/operations/checkoutslist.ts b/src/models/operations/checkoutslist.ts index 753dfbab..b9077df7 100644 --- a/src/models/operations/checkoutslist.ts +++ b/src/models/operations/checkoutslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/checkoutsupdate.ts b/src/models/operations/checkoutsupdate.ts index 8e3163b2..16ef96f9 100644 --- a/src/models/operations/checkoutsupdate.ts +++ b/src/models/operations/checkoutsupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customermetersget.ts b/src/models/operations/customermetersget.ts index 70b8f7f9..86c8b9c7 100644 --- a/src/models/operations/customermetersget.ts +++ b/src/models/operations/customermetersget.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/operations/customermeterslist.ts b/src/models/operations/customermeterslist.ts index f89c4679..775f114c 100644 --- a/src/models/operations/customermeterslist.ts +++ b/src/models/operations/customermeterslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customerportalbenefitgrantsget.ts b/src/models/operations/customerportalbenefitgrantsget.ts index 364590b6..d623ecc7 100644 --- a/src/models/operations/customerportalbenefitgrantsget.ts +++ b/src/models/operations/customerportalbenefitgrantsget.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customerportalbenefitgrantslist.ts b/src/models/operations/customerportalbenefitgrantslist.ts index 672c2c87..99ddcc89 100644 --- a/src/models/operations/customerportalbenefitgrantslist.ts +++ b/src/models/operations/customerportalbenefitgrantslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customerportalbenefitgrantsupdate.ts b/src/models/operations/customerportalbenefitgrantsupdate.ts index 988f9a2a..ead5704a 100644 --- a/src/models/operations/customerportalbenefitgrantsupdate.ts +++ b/src/models/operations/customerportalbenefitgrantsupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customerportalcustomermetersget.ts b/src/models/operations/customerportalcustomermetersget.ts index eebf29c0..e432ea09 100644 --- a/src/models/operations/customerportalcustomermetersget.ts +++ b/src/models/operations/customerportalcustomermetersget.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customerportalcustomermeterslist.ts b/src/models/operations/customerportalcustomermeterslist.ts index 68a62df3..a5be936c 100644 --- a/src/models/operations/customerportalcustomermeterslist.ts +++ b/src/models/operations/customerportalcustomermeterslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customerportalcustomersaddpaymentmethod.ts b/src/models/operations/customerportalcustomersaddpaymentmethod.ts index aa9abf54..b69415b2 100644 --- a/src/models/operations/customerportalcustomersaddpaymentmethod.ts +++ b/src/models/operations/customerportalcustomersaddpaymentmethod.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customerportalcustomersconfirmpaymentmethod.ts b/src/models/operations/customerportalcustomersconfirmpaymentmethod.ts index f41d834b..e7d51bdf 100644 --- a/src/models/operations/customerportalcustomersconfirmpaymentmethod.ts +++ b/src/models/operations/customerportalcustomersconfirmpaymentmethod.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customerportalcustomersdeletepaymentmethod.ts b/src/models/operations/customerportalcustomersdeletepaymentmethod.ts index e158be9d..8064f501 100644 --- a/src/models/operations/customerportalcustomersdeletepaymentmethod.ts +++ b/src/models/operations/customerportalcustomersdeletepaymentmethod.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customerportalcustomersessionintrospect.ts b/src/models/operations/customerportalcustomersessionintrospect.ts index ba7400c6..58e91a1f 100644 --- a/src/models/operations/customerportalcustomersessionintrospect.ts +++ b/src/models/operations/customerportalcustomersessionintrospect.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customerportalcustomersget.ts b/src/models/operations/customerportalcustomersget.ts index 68a2a29d..76a9515c 100644 --- a/src/models/operations/customerportalcustomersget.ts +++ b/src/models/operations/customerportalcustomersget.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customerportalcustomerslistpaymentmethods.ts b/src/models/operations/customerportalcustomerslistpaymentmethods.ts index 2dd6d7ba..1b480e7d 100644 --- a/src/models/operations/customerportalcustomerslistpaymentmethods.ts +++ b/src/models/operations/customerportalcustomerslistpaymentmethods.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customerportalcustomersupdate.ts b/src/models/operations/customerportalcustomersupdate.ts index 6e0a2da8..1de0341e 100644 --- a/src/models/operations/customerportalcustomersupdate.ts +++ b/src/models/operations/customerportalcustomersupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customerportaldownloadableslist.ts b/src/models/operations/customerportaldownloadableslist.ts index 7d8b6ed9..a1601654 100644 --- a/src/models/operations/customerportaldownloadableslist.ts +++ b/src/models/operations/customerportaldownloadableslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customerportallicensekeysget.ts b/src/models/operations/customerportallicensekeysget.ts index b6f58915..a7417c26 100644 --- a/src/models/operations/customerportallicensekeysget.ts +++ b/src/models/operations/customerportallicensekeysget.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customerportallicensekeyslist.ts b/src/models/operations/customerportallicensekeyslist.ts index ace390fe..af432bbd 100644 --- a/src/models/operations/customerportallicensekeyslist.ts +++ b/src/models/operations/customerportallicensekeyslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customerportalordersconfirmretrypayment.ts b/src/models/operations/customerportalordersconfirmretrypayment.ts index ad9a007d..04d695d2 100644 --- a/src/models/operations/customerportalordersconfirmretrypayment.ts +++ b/src/models/operations/customerportalordersconfirmretrypayment.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customerportalordersgenerateinvoice.ts b/src/models/operations/customerportalordersgenerateinvoice.ts index 77f3f27f..6217bc10 100644 --- a/src/models/operations/customerportalordersgenerateinvoice.ts +++ b/src/models/operations/customerportalordersgenerateinvoice.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customerportalordersget.ts b/src/models/operations/customerportalordersget.ts index 8b40c407..c707106f 100644 --- a/src/models/operations/customerportalordersget.ts +++ b/src/models/operations/customerportalordersget.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customerportalordersgetpaymentstatus.ts b/src/models/operations/customerportalordersgetpaymentstatus.ts index a874ac73..bf604af0 100644 --- a/src/models/operations/customerportalordersgetpaymentstatus.ts +++ b/src/models/operations/customerportalordersgetpaymentstatus.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customerportalordersinvoice.ts b/src/models/operations/customerportalordersinvoice.ts index 1d4104ec..1173004a 100644 --- a/src/models/operations/customerportalordersinvoice.ts +++ b/src/models/operations/customerportalordersinvoice.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customerportalorderslist.ts b/src/models/operations/customerportalorderslist.ts index 79ed2aba..190100cd 100644 --- a/src/models/operations/customerportalorderslist.ts +++ b/src/models/operations/customerportalorderslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customerportalordersupdate.ts b/src/models/operations/customerportalordersupdate.ts index 9590be99..06024c52 100644 --- a/src/models/operations/customerportalordersupdate.ts +++ b/src/models/operations/customerportalordersupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customerportalorganizationsget.ts b/src/models/operations/customerportalorganizationsget.ts index bc8f7b6e..66264f46 100644 --- a/src/models/operations/customerportalorganizationsget.ts +++ b/src/models/operations/customerportalorganizationsget.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/operations/customerportalseatsassignseat.ts b/src/models/operations/customerportalseatsassignseat.ts index 85130c07..24d69d54 100644 --- a/src/models/operations/customerportalseatsassignseat.ts +++ b/src/models/operations/customerportalseatsassignseat.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customerportalseatslistclaimedsubscriptions.ts b/src/models/operations/customerportalseatslistclaimedsubscriptions.ts index 4c73807f..2fbb8995 100644 --- a/src/models/operations/customerportalseatslistclaimedsubscriptions.ts +++ b/src/models/operations/customerportalseatslistclaimedsubscriptions.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customerportalseatslistseats.ts b/src/models/operations/customerportalseatslistseats.ts index 463d76a2..9d9dd8ab 100644 --- a/src/models/operations/customerportalseatslistseats.ts +++ b/src/models/operations/customerportalseatslistseats.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -16,7 +16,11 @@ export type CustomerPortalSeatsListSeatsRequest = { /** * Subscription ID */ - subscriptionId: string; + subscriptionId?: string | null | undefined; + /** + * Order ID + */ + orderId?: string | null | undefined; }; /** @internal */ @@ -92,16 +96,19 @@ export const CustomerPortalSeatsListSeatsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - subscription_id: z.string(), + subscription_id: z.nullable(z.string()).optional(), + order_id: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { "subscription_id": "subscriptionId", + "order_id": "orderId", }); }); /** @internal */ export type CustomerPortalSeatsListSeatsRequest$Outbound = { - subscription_id: string; + subscription_id?: string | null | undefined; + order_id?: string | null | undefined; }; /** @internal */ @@ -110,10 +117,12 @@ export const CustomerPortalSeatsListSeatsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, CustomerPortalSeatsListSeatsRequest > = z.object({ - subscriptionId: z.string(), + subscriptionId: z.nullable(z.string()).optional(), + orderId: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { subscriptionId: "subscription_id", + orderId: "order_id", }); }); diff --git a/src/models/operations/customerportalseatsresendinvitation.ts b/src/models/operations/customerportalseatsresendinvitation.ts index 4f8064a1..1154ea1b 100644 --- a/src/models/operations/customerportalseatsresendinvitation.ts +++ b/src/models/operations/customerportalseatsresendinvitation.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customerportalseatsrevokeseat.ts b/src/models/operations/customerportalseatsrevokeseat.ts index 6690e412..5680e765 100644 --- a/src/models/operations/customerportalseatsrevokeseat.ts +++ b/src/models/operations/customerportalseatsrevokeseat.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customerportalsubscriptionscancel.ts b/src/models/operations/customerportalsubscriptionscancel.ts index 807dcaf2..2ebc415c 100644 --- a/src/models/operations/customerportalsubscriptionscancel.ts +++ b/src/models/operations/customerportalsubscriptionscancel.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customerportalsubscriptionsget.ts b/src/models/operations/customerportalsubscriptionsget.ts index 0f7223d0..dea319a3 100644 --- a/src/models/operations/customerportalsubscriptionsget.ts +++ b/src/models/operations/customerportalsubscriptionsget.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customerportalsubscriptionslist.ts b/src/models/operations/customerportalsubscriptionslist.ts index b652ff23..cbe2b0ea 100644 --- a/src/models/operations/customerportalsubscriptionslist.ts +++ b/src/models/operations/customerportalsubscriptionslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customerportalsubscriptionsupdate.ts b/src/models/operations/customerportalsubscriptionsupdate.ts index 69fa39e9..6bb415f6 100644 --- a/src/models/operations/customerportalsubscriptionsupdate.ts +++ b/src/models/operations/customerportalsubscriptionsupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customersdelete.ts b/src/models/operations/customersdelete.ts index 381f8171..51bb6553 100644 --- a/src/models/operations/customersdelete.ts +++ b/src/models/operations/customersdelete.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/operations/customersdeleteexternal.ts b/src/models/operations/customersdeleteexternal.ts index b2457599..6b909f83 100644 --- a/src/models/operations/customersdeleteexternal.ts +++ b/src/models/operations/customersdeleteexternal.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customersessionscreate.ts b/src/models/operations/customersessionscreate.ts index a5d04b29..35437616 100644 --- a/src/models/operations/customersessionscreate.ts +++ b/src/models/operations/customersessionscreate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { diff --git a/src/models/operations/customersexport.ts b/src/models/operations/customersexport.ts index deeb36b0..62673a50 100644 --- a/src/models/operations/customersexport.ts +++ b/src/models/operations/customersexport.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customersget.ts b/src/models/operations/customersget.ts index 67c9ba8a..36f39f78 100644 --- a/src/models/operations/customersget.ts +++ b/src/models/operations/customersget.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/operations/customersgetbalance.ts b/src/models/operations/customersgetbalance.ts index 55d402e2..030a180e 100644 --- a/src/models/operations/customersgetbalance.ts +++ b/src/models/operations/customersgetbalance.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/operations/customersgetexternal.ts b/src/models/operations/customersgetexternal.ts index 0ddb6f25..9f386a5c 100644 --- a/src/models/operations/customersgetexternal.ts +++ b/src/models/operations/customersgetexternal.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customersgetstate.ts b/src/models/operations/customersgetstate.ts index 848159cc..fba7c6d8 100644 --- a/src/models/operations/customersgetstate.ts +++ b/src/models/operations/customersgetstate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/operations/customersgetstateexternal.ts b/src/models/operations/customersgetstateexternal.ts index b836f2d8..5a5977a0 100644 --- a/src/models/operations/customersgetstateexternal.ts +++ b/src/models/operations/customersgetstateexternal.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customerslist.ts b/src/models/operations/customerslist.ts index c514b399..7f255310 100644 --- a/src/models/operations/customerslist.ts +++ b/src/models/operations/customerslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customersupdate.ts b/src/models/operations/customersupdate.ts index bee045c6..f495632e 100644 --- a/src/models/operations/customersupdate.ts +++ b/src/models/operations/customersupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customersupdateexternal.ts b/src/models/operations/customersupdateexternal.ts index e3bd3884..8c81f565 100644 --- a/src/models/operations/customersupdateexternal.ts +++ b/src/models/operations/customersupdateexternal.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customfieldsdelete.ts b/src/models/operations/customfieldsdelete.ts index c55a69d1..06b6ef3a 100644 --- a/src/models/operations/customfieldsdelete.ts +++ b/src/models/operations/customfieldsdelete.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/operations/customfieldsget.ts b/src/models/operations/customfieldsget.ts index 101c7f35..144f3094 100644 --- a/src/models/operations/customfieldsget.ts +++ b/src/models/operations/customfieldsget.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/operations/customfieldslist.ts b/src/models/operations/customfieldslist.ts index e35ecc9a..910970b3 100644 --- a/src/models/operations/customfieldslist.ts +++ b/src/models/operations/customfieldslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/customfieldsupdate.ts b/src/models/operations/customfieldsupdate.ts index cc970516..db8db1b3 100644 --- a/src/models/operations/customfieldsupdate.ts +++ b/src/models/operations/customfieldsupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/discountsdelete.ts b/src/models/operations/discountsdelete.ts index bbd790fc..e366c0e0 100644 --- a/src/models/operations/discountsdelete.ts +++ b/src/models/operations/discountsdelete.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/operations/discountsget.ts b/src/models/operations/discountsget.ts index f8090915..be4246b0 100644 --- a/src/models/operations/discountsget.ts +++ b/src/models/operations/discountsget.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/operations/discountslist.ts b/src/models/operations/discountslist.ts index 2f9665f4..1b901496 100644 --- a/src/models/operations/discountslist.ts +++ b/src/models/operations/discountslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/discountsupdate.ts b/src/models/operations/discountsupdate.ts index 53715d1f..44221837 100644 --- a/src/models/operations/discountsupdate.ts +++ b/src/models/operations/discountsupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/eventsget.ts b/src/models/operations/eventsget.ts index f0e2abe7..176a8090 100644 --- a/src/models/operations/eventsget.ts +++ b/src/models/operations/eventsget.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/operations/eventslist.ts b/src/models/operations/eventslist.ts index 1f8038ad..ffeb9afd 100644 --- a/src/models/operations/eventslist.ts +++ b/src/models/operations/eventslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -92,6 +92,10 @@ export type EventsListRequest = { * Filter by event source. */ source?: EventSource | Array | null | undefined; + /** + * Query to filter events. + */ + query?: string | null | undefined; /** * Page number, defaults to 1. */ @@ -396,6 +400,7 @@ export const EventsListRequest$inboundSchema: z.ZodType< source: z.nullable( z.union([EventSource$inboundSchema, z.array(EventSource$inboundSchema)]), ).optional(), + query: z.nullable(z.string()).optional(), page: z.number().int().default(1), limit: z.number().int().default(10), sorting: z.nullable(z.array(EventSortProperty$inboundSchema)).optional(), @@ -422,6 +427,7 @@ export type EventsListRequest$Outbound = { meter_id?: string | null | undefined; name?: string | Array | null | undefined; source?: string | Array | null | undefined; + query?: string | null | undefined; page: number; limit: number; sorting?: Array | null | undefined; @@ -448,6 +454,7 @@ export const EventsListRequest$outboundSchema: z.ZodType< source: z.nullable( z.union([EventSource$outboundSchema, z.array(EventSource$outboundSchema)]), ).optional(), + query: z.nullable(z.string()).optional(), page: z.number().int().default(1), limit: z.number().int().default(10), sorting: z.nullable(z.array(EventSortProperty$outboundSchema)).optional(), diff --git a/src/models/operations/eventslistnames.ts b/src/models/operations/eventslistnames.ts index a1b51137..47045bd3 100644 --- a/src/models/operations/eventslistnames.ts +++ b/src/models/operations/eventslistnames.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/filesdelete.ts b/src/models/operations/filesdelete.ts index 4cc75626..856d6d1c 100644 --- a/src/models/operations/filesdelete.ts +++ b/src/models/operations/filesdelete.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/operations/fileslist.ts b/src/models/operations/fileslist.ts index 4471005e..854b87d2 100644 --- a/src/models/operations/fileslist.ts +++ b/src/models/operations/fileslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/filesupdate.ts b/src/models/operations/filesupdate.ts index b676755f..3c83084c 100644 --- a/src/models/operations/filesupdate.ts +++ b/src/models/operations/filesupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/filesuploaded.ts b/src/models/operations/filesuploaded.ts index df675684..32e63204 100644 --- a/src/models/operations/filesuploaded.ts +++ b/src/models/operations/filesuploaded.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/licensekeysget.ts b/src/models/operations/licensekeysget.ts index 658389b9..8326eeb7 100644 --- a/src/models/operations/licensekeysget.ts +++ b/src/models/operations/licensekeysget.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/operations/licensekeysgetactivation.ts b/src/models/operations/licensekeysgetactivation.ts index 29db79c7..dbd4f89a 100644 --- a/src/models/operations/licensekeysgetactivation.ts +++ b/src/models/operations/licensekeysgetactivation.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/licensekeyslist.ts b/src/models/operations/licensekeyslist.ts index b829c61a..f7cd0715 100644 --- a/src/models/operations/licensekeyslist.ts +++ b/src/models/operations/licensekeyslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/licensekeysupdate.ts b/src/models/operations/licensekeysupdate.ts index 92df8129..18b4aa51 100644 --- a/src/models/operations/licensekeysupdate.ts +++ b/src/models/operations/licensekeysupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/metersget.ts b/src/models/operations/metersget.ts index d6ffd79b..c420faa5 100644 --- a/src/models/operations/metersget.ts +++ b/src/models/operations/metersget.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/operations/meterslist.ts b/src/models/operations/meterslist.ts index 3fab0998..b9edd7dd 100644 --- a/src/models/operations/meterslist.ts +++ b/src/models/operations/meterslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/metersquantities.ts b/src/models/operations/metersquantities.ts index 8f5a1fa1..c93f5927 100644 --- a/src/models/operations/metersquantities.ts +++ b/src/models/operations/metersquantities.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/metersupdate.ts b/src/models/operations/metersupdate.ts index 13d9f380..dacd6a3b 100644 --- a/src/models/operations/metersupdate.ts +++ b/src/models/operations/metersupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/metricsget.ts b/src/models/operations/metricsget.ts index d33d658d..76b2b63f 100644 --- a/src/models/operations/metricsget.ts +++ b/src/models/operations/metricsget.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/oauth2authorize.ts b/src/models/operations/oauth2authorize.ts index ce3bc56c..de383908 100644 --- a/src/models/operations/oauth2authorize.ts +++ b/src/models/operations/oauth2authorize.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { diff --git a/src/models/operations/oauth2clientsoauth2deleteclient.ts b/src/models/operations/oauth2clientsoauth2deleteclient.ts index d2255a42..3d4be442 100644 --- a/src/models/operations/oauth2clientsoauth2deleteclient.ts +++ b/src/models/operations/oauth2clientsoauth2deleteclient.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/oauth2clientsoauth2getclient.ts b/src/models/operations/oauth2clientsoauth2getclient.ts index c7d91477..6e201005 100644 --- a/src/models/operations/oauth2clientsoauth2getclient.ts +++ b/src/models/operations/oauth2clientsoauth2getclient.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/oauth2clientsoauth2updateclient.ts b/src/models/operations/oauth2clientsoauth2updateclient.ts index ac23e3e4..f5794826 100644 --- a/src/models/operations/oauth2clientsoauth2updateclient.ts +++ b/src/models/operations/oauth2clientsoauth2updateclient.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/oauth2requesttoken.ts b/src/models/operations/oauth2requesttoken.ts index 16884d4a..96784b55 100644 --- a/src/models/operations/oauth2requesttoken.ts +++ b/src/models/operations/oauth2requesttoken.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { diff --git a/src/models/operations/oauth2userinfo.ts b/src/models/operations/oauth2userinfo.ts index 2215bc65..7f390325 100644 --- a/src/models/operations/oauth2userinfo.ts +++ b/src/models/operations/oauth2userinfo.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { diff --git a/src/models/operations/ordersgenerateinvoice.ts b/src/models/operations/ordersgenerateinvoice.ts index 0c07114b..b0c486ed 100644 --- a/src/models/operations/ordersgenerateinvoice.ts +++ b/src/models/operations/ordersgenerateinvoice.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/operations/ordersget.ts b/src/models/operations/ordersget.ts index 8afc58a6..831c2647 100644 --- a/src/models/operations/ordersget.ts +++ b/src/models/operations/ordersget.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/operations/ordersinvoice.ts b/src/models/operations/ordersinvoice.ts index 958323f5..b56f0cf1 100644 --- a/src/models/operations/ordersinvoice.ts +++ b/src/models/operations/ordersinvoice.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/operations/orderslist.ts b/src/models/operations/orderslist.ts index b955d985..c267b548 100644 --- a/src/models/operations/orderslist.ts +++ b/src/models/operations/orderslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/ordersupdate.ts b/src/models/operations/ordersupdate.ts index c4fb6480..f2bbe4fd 100644 --- a/src/models/operations/ordersupdate.ts +++ b/src/models/operations/ordersupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/organizationsget.ts b/src/models/operations/organizationsget.ts index d521a80d..8a599244 100644 --- a/src/models/operations/organizationsget.ts +++ b/src/models/operations/organizationsget.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/operations/organizationslist.ts b/src/models/operations/organizationslist.ts index e866294f..6e4ed568 100644 --- a/src/models/operations/organizationslist.ts +++ b/src/models/operations/organizationslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/organizationsupdate.ts b/src/models/operations/organizationsupdate.ts index bc9368b6..078bdbb1 100644 --- a/src/models/operations/organizationsupdate.ts +++ b/src/models/operations/organizationsupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/paymentsget.ts b/src/models/operations/paymentsget.ts index 25dd7dfa..8616d808 100644 --- a/src/models/operations/paymentsget.ts +++ b/src/models/operations/paymentsget.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/operations/paymentslist.ts b/src/models/operations/paymentslist.ts index 49be4a3d..a6448783 100644 --- a/src/models/operations/paymentslist.ts +++ b/src/models/operations/paymentslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/productsget.ts b/src/models/operations/productsget.ts index 25d7670d..3dfca06a 100644 --- a/src/models/operations/productsget.ts +++ b/src/models/operations/productsget.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/operations/productslist.ts b/src/models/operations/productslist.ts index 4e45cd8b..c750e993 100644 --- a/src/models/operations/productslist.ts +++ b/src/models/operations/productslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/productsupdate.ts b/src/models/operations/productsupdate.ts index d8482ebc..5df6b63a 100644 --- a/src/models/operations/productsupdate.ts +++ b/src/models/operations/productsupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/productsupdatebenefits.ts b/src/models/operations/productsupdatebenefits.ts index f69ce023..98de8e99 100644 --- a/src/models/operations/productsupdatebenefits.ts +++ b/src/models/operations/productsupdatebenefits.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/refundslist.ts b/src/models/operations/refundslist.ts index f70fe404..e676c173 100644 --- a/src/models/operations/refundslist.ts +++ b/src/models/operations/refundslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/subscriptionsexport.ts b/src/models/operations/subscriptionsexport.ts index e5ca0706..928c513c 100644 --- a/src/models/operations/subscriptionsexport.ts +++ b/src/models/operations/subscriptionsexport.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/subscriptionsget.ts b/src/models/operations/subscriptionsget.ts index e130eb72..e6a8f49c 100644 --- a/src/models/operations/subscriptionsget.ts +++ b/src/models/operations/subscriptionsget.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/operations/subscriptionslist.ts b/src/models/operations/subscriptionslist.ts index 2b6a3de9..cc00b32b 100644 --- a/src/models/operations/subscriptionslist.ts +++ b/src/models/operations/subscriptionslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/subscriptionsrevoke.ts b/src/models/operations/subscriptionsrevoke.ts index 5a739d62..0836b988 100644 --- a/src/models/operations/subscriptionsrevoke.ts +++ b/src/models/operations/subscriptionsrevoke.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/operations/subscriptionsupdate.ts b/src/models/operations/subscriptionsupdate.ts index e07c6bce..cd034e59 100644 --- a/src/models/operations/subscriptionsupdate.ts +++ b/src/models/operations/subscriptionsupdate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/webhooksdeletewebhookendpoint.ts b/src/models/operations/webhooksdeletewebhookendpoint.ts index 68c0a327..73b13c11 100644 --- a/src/models/operations/webhooksdeletewebhookendpoint.ts +++ b/src/models/operations/webhooksdeletewebhookendpoint.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/operations/webhooksgetwebhookendpoint.ts b/src/models/operations/webhooksgetwebhookendpoint.ts index 03f89157..362bace2 100644 --- a/src/models/operations/webhooksgetwebhookendpoint.ts +++ b/src/models/operations/webhooksgetwebhookendpoint.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/operations/webhookslistwebhookdeliveries.ts b/src/models/operations/webhookslistwebhookdeliveries.ts index a913e81c..d4dac087 100644 --- a/src/models/operations/webhookslistwebhookdeliveries.ts +++ b/src/models/operations/webhookslistwebhookdeliveries.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/webhookslistwebhookendpoints.ts b/src/models/operations/webhookslistwebhookendpoints.ts index 072232e2..f1cddc3a 100644 --- a/src/models/operations/webhookslistwebhookendpoints.ts +++ b/src/models/operations/webhookslistwebhookendpoints.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/models/operations/webhooksredeliverwebhookevent.ts b/src/models/operations/webhooksredeliverwebhookevent.ts index d602daeb..a15be07d 100644 --- a/src/models/operations/webhooksredeliverwebhookevent.ts +++ b/src/models/operations/webhooksredeliverwebhookevent.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/operations/webhooksresetwebhookendpointsecret.ts b/src/models/operations/webhooksresetwebhookendpointsecret.ts index ae2620ad..cc17f1ad 100644 --- a/src/models/operations/webhooksresetwebhookendpointsecret.ts +++ b/src/models/operations/webhooksresetwebhookendpointsecret.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; diff --git a/src/models/operations/webhooksupdatewebhookendpoint.ts b/src/models/operations/webhooksupdatewebhookendpoint.ts index 63522264..4a03b54f 100644 --- a/src/models/operations/webhooksupdatewebhookendpoint.ts +++ b/src/models/operations/webhooksupdatewebhookendpoint.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; diff --git a/src/types/blobs.ts b/src/types/blobs.ts index 4ce84602..cce2892d 100644 --- a/src/types/blobs.ts +++ b/src/types/blobs.ts @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; -export const blobLikeSchema: z.ZodType = - z.custom(isBlobLike, { - message: "expected a Blob, File or Blob-like object", - fatal: true, - }); +export const blobLikeSchema: z.ZodType = z.custom< + Blob +>(isBlobLike, { + message: "expected a Blob, File or Blob-like object", + fatal: true, +}); export function isBlobLike(val: unknown): val is Blob { if (val instanceof Blob) { diff --git a/src/types/constdatetime.ts b/src/types/constdatetime.ts index eeff4dde..fe62144e 100644 --- a/src/types/constdatetime.ts +++ b/src/types/constdatetime.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; export function constDateTime( val: string,