diff --git a/.devcontainer/README.md b/.devcontainer/README.md index 1d9b654..9e2caae 100644 --- a/.devcontainer/README.md +++ b/.devcontainer/README.md @@ -1,4 +1,9 @@ +
+ +
+
+ > **Remember to shutdown a GitHub Codespace when it is not in use!** # Dev Containers Quick Start diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 85740b6..78f224e 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,14 @@ lockVersion: 2.0.0 id: e7f2de70-a9ae-48d3-92f6-da15e6733a27 management: - docChecksum: 0214aad4e9d73d5b7522f1b59d3a78cc + docChecksum: 62e6096c95dd267726f5489a38313f3f docVersion: 0.1.0 - speakeasyVersion: 1.455.7 - generationVersion: 2.480.1 - releaseVersion: 0.0.1 - configChecksum: 75d69763b3a56961b45e89c2cf9cb2ed + speakeasyVersion: 1.456.0 + generationVersion: 2.481.0 + releaseVersion: 0.0.2 + configChecksum: 2953435635b091465413127df2b173ea + repoURL: https://github.com/polarsource/polar-go.git + installationURL: https://github.com/polarsource/polar-go features: go: additionalDependencies: 0.1.0 @@ -628,11 +630,13 @@ generatedFiles: - docs/models/components/checkoutlinkupdatemetadata.md - docs/models/components/checkoutmetadata.md - docs/models/components/checkoutpricecreate.md + - docs/models/components/checkoutpricecreatecustomermetadata.md - docs/models/components/checkoutpricecreatecustomfielddata.md - docs/models/components/checkoutpricecreatemetadata.md - docs/models/components/checkoutpricecreatepaymentprocessor.md - docs/models/components/checkoutproduct.md - docs/models/components/checkoutproductcreate.md + - docs/models/components/checkoutproductcreatecustomermetadata.md - docs/models/components/checkoutproductcreatecustomfielddata.md - docs/models/components/checkoutproductcreatemetadata.md - docs/models/components/checkoutproductcreatepaymentprocessor.md @@ -647,6 +651,7 @@ generatedFiles: - docs/models/components/checkoutsortproperty.md - docs/models/components/checkoutstatus.md - docs/models/components/checkoutupdate.md + - docs/models/components/checkoutupdatecustomermetadata.md - docs/models/components/checkoutupdatemetadata.md - docs/models/components/checkoutupdatepublic.md - docs/models/components/checkoutupdatepubliccustomfielddata.md @@ -679,6 +684,7 @@ generatedFiles: - docs/models/components/customercreate.md - docs/models/components/customercreatetaxid.md - docs/models/components/customermetadata.md + - docs/models/components/customermetadata1.md - docs/models/components/customerorder.md - docs/models/components/customerorderinvoice.md - docs/models/components/customerorderproduct.md @@ -1352,83 +1358,93 @@ examples: _endpointcheckout_created_post: speakeasy-default-endpointcheckout-created-post: requestBody: - application/json: {"data": {"created_at": "2024-11-12T14:26:42.882Z", "modified_at": "2023-05-28T05:08:06.235Z", "id": "", "status": "failed", "client_secret": "", "url": "https://heavy-beret.com/", "expires_at": "2022-02-25T02:26:48.460Z", "success_url": "https://sardonic-final.info/", "embed_origin": "", "amount": 962818, "tax_amount": 6400, "currency": "Yen", "subtotal_amount": 648726, "total_amount": 210702, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": true, "is_discount_applicable": false, "is_free_product_price": false, "is_payment_required": false, "is_payment_setup_required": false, "is_payment_form_required": false, "customer_id": "", "customer_name": "", "customer_email": "Ryley_Erdman@hotmail.com", "customer_ip_address": "", "customer_billing_address": {"country": "South Africa"}, "customer_tax_id": "", "metadata": {"key": 18677, "key1": 95370}, "product": {"created_at": "2022-04-02T00:05:42.586Z", "modified_at": "2023-12-16T03:02:38.803Z", "id": "", "name": "", "description": "for embarrassment untidy long-term near honestly separate yet", "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2022-09-05T11:14:58.018Z", "modified_at": "2024-09-29T09:02:41.206Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "price_amount": 640992}], "benefits": [{"created_at": "2023-08-22T00:47:02.059Z", "modified_at": "2023-06-04T10:32:44.101Z", "id": "", "type": "license_keys", "description": "within jacket unless", "selectable": false, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/private/var", "mime_type": "", "size": 245189, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-11-03T15:00:03.276Z", "version": "", "is_uploaded": false, "created_at": "2024-06-07T13:47:02.365Z", "size_readable": "", "public_url": "https://webbed-experience.name/"}]}, "product_price": {"created_at": "2023-09-24T13:56:02.770Z", "modified_at": "2024-10-05T11:55:07.194Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 659274}, "discount": {"duration": "repeating", "type": "fixed", "basis_points": 341163, "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2022-06-04T22:52:20.747Z", "modified_at": "2022-10-05T05:32:28.211Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": ""}, "order": 996863, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2024-10-25T18:55:34.184Z", "modified_at": "2024-03-12T22:11:16.367Z", "id": "", "metadata": {"key": false}, "slug": "", "name": "", "organization_id": "", "properties": {"options": [{"value": "", "label": ""}, {"value": "", "label": ""}, {"value": "", "label": ""}]}}, "order": 72589, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2024-01-25T11:40:59.444Z", "modified_at": "2024-03-11T01:07:03.723Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": ""}, "order": 161325, "required": true}]}} + application/json: {"data": {"created_at": "2024-11-12T14:26:42.882Z", "modified_at": "2023-05-28T05:08:06.235Z", "id": "", "status": "failed", "client_secret": "", "url": "https://heavy-beret.com/", "expires_at": "2022-02-25T02:26:48.460Z", "success_url": "https://sardonic-final.info/", "embed_origin": "", "amount": 962818, "tax_amount": 6400, "currency": "Yen", "subtotal_amount": 648726, "total_amount": 210702, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": true, "is_discount_applicable": false, "is_free_product_price": false, "is_payment_required": false, "is_payment_setup_required": false, "is_payment_form_required": false, "customer_id": "", "customer_name": "", "customer_email": "Ryley_Erdman@hotmail.com", "customer_ip_address": "", "customer_billing_address": {"country": "South Africa"}, "customer_tax_id": "", "metadata": {"key": 18677, "key1": 95370}, "product": {"created_at": "2022-04-02T00:05:42.586Z", "modified_at": "2023-12-16T03:02:38.803Z", "id": "", "name": "", "description": "for embarrassment untidy long-term near honestly separate yet", "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2024-11-19T15:59:15.588Z", "modified_at": "2022-11-17T00:11:23.972Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 75876, "maximum_amount": 82334, "preset_amount": 50275}], "benefits": [{"created_at": "2023-08-22T00:47:02.059Z", "modified_at": "2023-06-04T10:32:44.101Z", "id": "", "type": "license_keys", "description": "within jacket unless", "selectable": false, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/private/var", "mime_type": "", "size": 245189, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-11-03T15:00:03.276Z", "version": "", "is_uploaded": false, "created_at": "2024-06-07T13:47:02.365Z", "size_readable": "", "public_url": "https://webbed-experience.name/"}]}, "product_price": {"created_at": "2022-12-28T20:59:29.904Z", "modified_at": "2023-04-04T00:20:23.805Z", "id": "", "is_archived": false, "product_id": "", "recurring_interval": "month"}, "discount": {"duration": "repeating", "type": "fixed", "basis_points": 341163, "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-12-13T00:05:03.649Z", "modified_at": "2022-08-19T22:18:44.316Z", "id": "", "metadata": {"key": false}, "slug": "", "name": "", "organization_id": ""}, "order": 996863, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2024-01-25T18:08:49.597Z", "modified_at": "2024-07-22T12:18:02.066Z", "id": "", "metadata": {"key": true, "key1": "", "key2": 385218}, "slug": "", "name": "", "organization_id": ""}, "order": 72589, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2024-06-25T22:47:14.264Z", "modified_at": "2024-01-28T19:10:37.564Z", "id": "", "metadata": {"key": ""}, "slug": "", "name": "", "organization_id": ""}, "order": 161325, "required": true}], "customer_metadata": {"key": "", "key1": ""}}} responses: "200": application/json: "" - "422": {} + "422": + application/json: {} _endpointcheckout_updated_post: speakeasy-default-endpointcheckout-updated-post: requestBody: - application/json: {"data": {"created_at": "2024-10-04T13:06:10.658Z", "modified_at": "2023-10-03T21:25:15.366Z", "id": "", "status": "failed", "client_secret": "", "url": "https://square-cafe.biz/", "expires_at": "2024-03-25T08:55:11.873Z", "success_url": "https://physical-import.name/", "embed_origin": "", "amount": 245418, "tax_amount": 624213, "currency": "Naira", "subtotal_amount": 24587, "total_amount": 447013, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": true, "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": "", "customer_name": "", "customer_email": "Jairo39@hotmail.com", "customer_ip_address": "", "customer_billing_address": {"country": "Greenland"}, "customer_tax_id": "", "metadata": {}, "product": {"created_at": "2024-01-25T14:28:29.444Z", "modified_at": "2024-09-21T12:18:51.327Z", "id": "", "name": "", "description": "engender reopen yahoo draft", "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2022-05-03T10:56:45.069Z", "modified_at": "2022-10-18T05:55:05.359Z", "id": "", "is_archived": false, "product_id": "", "recurring_interval": "year"}], "benefits": [{"created_at": "2024-04-09T09:30:36.910Z", "modified_at": "2022-10-16T19:52:50.377Z", "id": "", "type": "github_repository", "description": "posh hm meatloaf politely ugh fidget to inborn putrid", "selectable": false, "deletable": true, "organization_id": ""}, {"created_at": "2023-12-31T03:17:46.406Z", "modified_at": "2022-11-12T16:32:46.306Z", "id": "", "type": "license_keys", "description": "blah likewise whose notwithstanding airline aboard frightened enfold colorfully", "selectable": true, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/home/user", "mime_type": "", "size": 767806, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-01-15T18:22:33.094Z", "version": "", "is_uploaded": false, "created_at": "2023-02-14T06:20:54.950Z", "size_readable": "", "public_url": "https://pushy-tomatillo.org/"}, {"id": "", "organization_id": "", "name": "", "path": "/private", "mime_type": "", "size": 432333, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-03-08T18:51:14.729Z", "version": "", "is_uploaded": false, "created_at": "2022-11-18T09:33:10.032Z", "size_readable": "", "public_url": "https://affectionate-charm.net"}]}, "product_price": {"created_at": "2024-02-13T15:09:51.656Z", "modified_at": "2022-01-13T15:01:23.486Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "price_amount": 376972}, "discount": {"duration": "once", "type": "percentage", "amount": 883154, "currency": "East Caribbean Dollar", "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-11-20T06:42:52.884Z", "modified_at": "2024-06-16T13:15:22.449Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": ""}, "order": 108303, "required": false}]}} + application/json: {"data": {"created_at": "2024-10-04T13:06:10.658Z", "modified_at": "2023-10-03T21:25:15.366Z", "id": "", "status": "failed", "client_secret": "", "url": "https://square-cafe.biz/", "expires_at": "2024-03-25T08:55:11.873Z", "success_url": "https://physical-import.name/", "embed_origin": "", "amount": 245418, "tax_amount": 624213, "currency": "Naira", "subtotal_amount": 24587, "total_amount": 447013, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": true, "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": "", "customer_name": "", "customer_email": "Jairo39@hotmail.com", "customer_ip_address": "", "customer_billing_address": {"country": "Greenland"}, "customer_tax_id": "", "metadata": {}, "product": {"created_at": "2024-01-25T14:28:29.444Z", "modified_at": "2024-09-21T12:18:51.327Z", "id": "", "name": "", "description": "engender reopen yahoo draft", "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2024-10-20T04:48:05.954Z", "modified_at": "2023-03-13T21:45:21.173Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 108579, "maximum_amount": 316079, "preset_amount": 743040}], "benefits": [{"created_at": "2024-04-09T09:30:36.910Z", "modified_at": "2022-10-16T19:52:50.377Z", "id": "", "type": "github_repository", "description": "posh hm meatloaf politely ugh fidget to inborn putrid", "selectable": false, "deletable": true, "organization_id": ""}, {"created_at": "2023-12-31T03:17:46.406Z", "modified_at": "2022-11-12T16:32:46.306Z", "id": "", "type": "license_keys", "description": "blah likewise whose notwithstanding airline aboard frightened enfold colorfully", "selectable": true, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/home/user", "mime_type": "", "size": 767806, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-01-15T18:22:33.094Z", "version": "", "is_uploaded": false, "created_at": "2023-02-14T06:20:54.950Z", "size_readable": "", "public_url": "https://pushy-tomatillo.org/"}, {"id": "", "organization_id": "", "name": "", "path": "/private", "mime_type": "", "size": 432333, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-03-08T18:51:14.729Z", "version": "", "is_uploaded": false, "created_at": "2022-11-18T09:33:10.032Z", "size_readable": "", "public_url": "https://affectionate-charm.net"}]}, "product_price": {"created_at": "2023-05-16T07:46:47.748Z", "modified_at": "2023-10-04T07:55:07.025Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 624213, "maximum_amount": 615580, "preset_amount": 24587, "recurring_interval": "month"}, "discount": {"duration": "once", "type": "percentage", "amount": 883154, "currency": "East Caribbean Dollar", "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-04-19T00:52:44.462Z", "modified_at": "2022-09-21T13:33:23.592Z", "id": "", "metadata": {"key": 226088, "key1": true, "key2": ""}, "slug": "", "name": "", "organization_id": ""}, "order": 108303, "required": false}], "customer_metadata": {"key": 396660, "key1": true, "key2": ""}}} responses: "200": application/json: "" - "422": {} + "422": + application/json: {} _endpointorder_created_post: speakeasy-default-endpointorder-created-post: requestBody: - application/json: {"data": {"created_at": "2023-11-12T12:46:15.007Z", "modified_at": "2023-03-24T03:54:38.261Z", "id": "", "metadata": {"key": "", "key1": ""}, "amount": 485666, "tax_amount": 81588, "currency": "Metical", "billing_reason": "subscription_cycle", "billing_address": {"country": "Hungary"}, "customer_id": "", "product_id": "", "product_price_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "customer": {"created_at": "2022-09-09T08:07:10.665Z", "modified_at": "2023-08-19T18:18:41.438Z", "id": "", "metadata": {"key": false, "key1": "", "key2": ""}, "email": "Gia.Boyer87@yahoo.com", "email_verified": false, "name": "", "billing_address": {"country": "Reunion"}, "tax_id": ["", "my_sst", "br_cpf"], "organization_id": "", "avatar_url": "https://darling-kit.org"}, "user_id": "", "user": {"id": "", "email": "Delphine_Weber@hotmail.com", "public_name": ""}, "product": {"created_at": "2024-12-27T14:05:37.748Z", "modified_at": "2024-01-02T22:00:53.940Z", "id": "", "name": "", "description": "circle colorize given", "is_recurring": true, "is_archived": true, "organization_id": ""}, "product_price": {"created_at": "2024-01-30T11:53:29.204Z", "modified_at": "2024-02-01T18:37:23.866Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 498640, "maximum_amount": 732997, "preset_amount": 959813}, "discount": {"duration": "repeating", "type": "fixed", "amount": 228282, "currency": "Baht", "created_at": "2022-04-06T06:29:00.267Z", "modified_at": "2022-03-01T18:48:46.167Z", "id": "", "metadata": {"key": "", "key1": "", "key2": ""}, "name": "", "code": "", "starts_at": "2022-12-14T21:08:51.727Z", "ends_at": "2022-08-24T00:05:31.570Z", "max_redemptions": 133794, "redemptions_count": 558400, "organization_id": ""}, "subscription": {"metadata": {"key": 838937, "key1": true}, "created_at": "2024-05-09T06:10:47.548Z", "modified_at": "2024-02-14T18:51:37.875Z", "id": "", "amount": 420337, "currency": "New Zealand Dollar", "recurring_interval": "year", "status": "incomplete", "current_period_start": "2024-12-01T13:27:57.927Z", "current_period_end": "2022-06-23T18:54:19.334Z", "cancel_at_period_end": false, "started_at": "2023-11-16T11:53:36.436Z", "ended_at": "2024-11-18T03:47:21.756Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "user_id": ""}}} + application/json: {"data": {"created_at": "2023-11-12T12:46:15.007Z", "modified_at": "2023-03-24T03:54:38.261Z", "id": "", "metadata": {"key": "", "key1": ""}, "amount": 485666, "tax_amount": 81588, "currency": "Metical", "billing_reason": "subscription_cycle", "billing_address": {"country": "Hungary"}, "customer_id": "", "product_id": "", "product_price_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "customer": {"created_at": "2022-09-09T08:07:10.665Z", "modified_at": "2023-08-19T18:18:41.438Z", "id": "", "metadata": {"key": 407995, "key1": "", "key2": ""}, "email": "Gia.Boyer87@yahoo.com", "email_verified": false, "name": "", "billing_address": {"country": "Reunion"}, "tax_id": ["", "my_sst", "br_cpf"], "organization_id": "", "avatar_url": "https://darling-kit.org"}, "user_id": "", "user": {"id": "", "email": "Delphine_Weber@hotmail.com", "public_name": ""}, "product": {"created_at": "2024-12-27T14:05:37.748Z", "modified_at": "2024-01-02T22:00:53.940Z", "id": "", "name": "", "description": "circle colorize given", "is_recurring": true, "is_archived": true, "organization_id": ""}, "product_price": {"created_at": "2022-08-04T05:13:22.817Z", "modified_at": "2023-06-17T06:57:11.062Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 605593}, "discount": {"duration": "forever", "type": "fixed", "basis_points": 543579, "created_at": "2024-09-23T11:59:51.286Z", "modified_at": "2024-12-14T00:30:10.871Z", "id": "", "metadata": {"key": "", "key1": "", "key2": 386855}, "name": "", "code": "", "starts_at": "2022-01-27T10:40:59.012Z", "ends_at": "2022-04-15T20:14:00.592Z", "max_redemptions": 244557, "redemptions_count": 870081, "organization_id": ""}, "subscription": {"metadata": {"key": 838937, "key1": true}, "created_at": "2024-05-09T06:10:47.548Z", "modified_at": "2024-02-14T18:51:37.875Z", "id": "", "amount": 420337, "currency": "New Zealand Dollar", "recurring_interval": "year", "status": "incomplete", "current_period_start": "2024-12-01T13:27:57.927Z", "current_period_end": "2022-06-23T18:54:19.334Z", "cancel_at_period_end": false, "started_at": "2023-11-16T11:53:36.436Z", "ended_at": "2024-11-18T03:47:21.756Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "user_id": ""}}} responses: "200": application/json: "" - "422": {} + "422": + application/json: {} _endpointsubscription_created_post: speakeasy-default-endpointsubscription-created-post: requestBody: - application/json: {"data": {"created_at": "2023-07-04T01:29:40.920Z", "modified_at": "2022-02-20T03:35:25.500Z", "id": "", "amount": 78980, "currency": "Dong", "recurring_interval": "month", "status": "incomplete_expired", "current_period_start": "2024-01-26T02:46:12.208Z", "current_period_end": "2022-10-08T16:07:22.449Z", "cancel_at_period_end": false, "started_at": "2024-10-17T20:21:29.819Z", "ended_at": "2022-02-26T17:52:17.099Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "metadata": {}, "customer": {"created_at": "2022-09-06T09:33:34.348Z", "modified_at": "2024-05-17T19:46:56.602Z", "id": "", "metadata": {"key": "", "key1": 229409}, "email": "Jermey.Ward@gmail.com", "email_verified": false, "name": "", "billing_address": {"country": "Vietnam"}, "tax_id": ["", "sg_gst"], "organization_id": "", "avatar_url": "https://junior-numeracy.info/"}, "user_id": "", "user": {"id": "", "email": "Rosalia.Ritchie@yahoo.com", "public_name": ""}, "product": {"created_at": "2024-02-26T17:46:34.360Z", "modified_at": "2023-12-01T21:55:43.801Z", "id": "", "name": "", "description": "from below aw request", "is_recurring": false, "is_archived": true, "organization_id": "", "metadata": {}, "prices": [{"created_at": "2023-01-18T07:13:43.618Z", "modified_at": "2024-03-25T07:32:09.500Z", "id": "", "is_archived": false, "product_id": ""}, {"created_at": "2023-04-09T12:02:25.241Z", "modified_at": "2024-11-25T13:35:04.099Z", "id": "", "is_archived": true, "product_id": ""}], "benefits": [{"created_at": "2023-10-21T04:11:00.112Z", "modified_at": "2022-10-15T04:37:01.123Z", "id": "", "description": "plus upright accentuate ha noted ill-fated", "selectable": false, "deletable": true, "organization_id": "", "properties": {"note": ""}, "is_tax_applicable": true}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/etc/defaults", "mime_type": "", "size": 212274, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-02-07T09:30:30.379Z", "version": "", "is_uploaded": true, "created_at": "2023-02-24T03:01:46.062Z", "size_readable": "", "public_url": "https://courageous-sailor.com/"}, {"id": "", "organization_id": "", "name": "", "path": "/bin", "mime_type": "", "size": 411556, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-11-06T04:00:51.558Z", "version": "", "is_uploaded": true, "created_at": "2024-08-27T08:53:33.064Z", "size_readable": "", "public_url": "https://snappy-airline.name"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-11-26T15:12:50.077Z", "modified_at": "2023-02-21T18:53:58.260Z", "id": "", "metadata": {"key": "", "key1": true, "key2": ""}, "slug": "", "name": "", "organization_id": "", "properties": {"options": [{"value": "", "label": ""}, {"value": "", "label": ""}, {"value": "", "label": ""}]}}, "order": 893449, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2023-12-08T02:10:09.849Z", "modified_at": "2022-04-23T05:13:32.001Z", "id": "", "metadata": {"key": true}, "slug": "", "name": "", "organization_id": "", "properties": {"options": [{"value": "", "label": ""}]}}, "order": 954791, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2023-03-29T11:41:21.826Z", "modified_at": "2022-08-17T16:36:09.140Z", "id": "", "metadata": {"key": "", "key1": true, "key2": ""}, "slug": "", "name": "", "organization_id": ""}, "order": 748789, "required": true}]}, "price": {"created_at": "2024-11-01T22:56:07.845Z", "modified_at": "2024-08-24T07:17:40.258Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 221384, "maximum_amount": 948270, "preset_amount": 346483, "recurring_interval": "month"}, "discount": {"duration": "forever", "type": "fixed", "basis_points": 116399, "created_at": "2024-09-29T12:11:21.682Z", "modified_at": "2022-07-03T04:55:47.377Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2022-03-13T02:22:01.631Z", "ends_at": "2024-09-16T04:55:19.972Z", "max_redemptions": 803154, "redemptions_count": 825426, "organization_id": ""}}} + application/json: {"data": {"created_at": "2023-07-04T01:29:40.920Z", "modified_at": "2022-02-20T03:35:25.500Z", "id": "", "amount": 78980, "currency": "Dong", "recurring_interval": "month", "status": "incomplete_expired", "current_period_start": "2024-01-26T02:46:12.208Z", "current_period_end": "2022-10-08T16:07:22.449Z", "cancel_at_period_end": false, "started_at": "2024-10-17T20:21:29.819Z", "ended_at": "2022-02-26T17:52:17.099Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "metadata": {}, "customer": {"created_at": "2022-09-06T09:33:34.348Z", "modified_at": "2024-05-17T19:46:56.602Z", "id": "", "metadata": {"key": "", "key1": 229409}, "email": "Jermey.Ward@gmail.com", "email_verified": false, "name": "", "billing_address": {"country": "Vietnam"}, "tax_id": ["", "sg_gst"], "organization_id": "", "avatar_url": "https://junior-numeracy.info/"}, "user_id": "", "user": {"id": "", "email": "Rosalia.Ritchie@yahoo.com", "public_name": ""}, "product": {"created_at": "2024-02-26T17:46:34.360Z", "modified_at": "2023-12-01T21:55:43.801Z", "id": "", "name": "", "description": "from below aw request", "is_recurring": false, "is_archived": true, "organization_id": "", "metadata": {}, "prices": [{"created_at": "2022-03-28T13:29:27.613Z", "modified_at": "2024-10-05T17:53:50.261Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 209938}, {"created_at": "2024-03-25T06:36:23.018Z", "modified_at": "2024-10-17T20:21:29.819Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 168635}], "benefits": [{"created_at": "2024-05-17T19:46:56.602Z", "modified_at": "2024-03-19T21:12:06.131Z", "id": "", "description": "huff wherever gosh bah", "selectable": true, "deletable": false, "organization_id": "", "properties": {"note": ""}, "is_tax_applicable": true}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/etc/defaults", "mime_type": "", "size": 212274, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-02-07T09:30:30.379Z", "version": "", "is_uploaded": true, "created_at": "2023-02-24T03:01:46.062Z", "size_readable": "", "public_url": "https://courageous-sailor.com/"}, {"id": "", "organization_id": "", "name": "", "path": "/bin", "mime_type": "", "size": 411556, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-11-06T04:00:51.558Z", "version": "", "is_uploaded": true, "created_at": "2024-08-27T08:53:33.064Z", "size_readable": "", "public_url": "https://snappy-airline.name"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2022-11-27T13:49:43.101Z", "modified_at": "2023-09-17T15:58:20.823Z", "id": "", "metadata": {"key": 350104, "key1": true, "key2": true}, "slug": "", "name": "", "organization_id": "", "properties": {"options": []}}, "order": 893449, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2022-04-25T16:52:58.082Z", "modified_at": "2024-09-13T20:49:31.920Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": ""}, "order": 954791, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2024-08-18T11:34:55.537Z", "modified_at": "2024-05-10T11:44:49.483Z", "id": "", "metadata": {"key": 44168, "key1": ""}, "slug": "", "name": "", "organization_id": ""}, "order": 748789, "required": true}]}, "price": {"created_at": "2024-08-06T20:21:56.108Z", "modified_at": "2022-07-07T19:12:22.984Z", "id": "", "is_archived": false, "product_id": "", "recurring_interval": "year"}, "discount": {"duration": "forever", "type": "fixed", "basis_points": 116399, "created_at": "2024-09-29T12:11:21.682Z", "modified_at": "2022-07-03T04:55:47.377Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2022-03-13T02:22:01.631Z", "ends_at": "2024-09-16T04:55:19.972Z", "max_redemptions": 803154, "redemptions_count": 825426, "organization_id": ""}}} responses: "200": application/json: "" - "422": {} + "422": + application/json: {} _endpointsubscription_updated_post: speakeasy-default-endpointsubscription-updated-post: requestBody: - application/json: {"data": {"created_at": "2022-08-16T06:35:49.390Z", "modified_at": "2024-11-13T10:48:05.575Z", "id": "", "amount": 299644, "currency": "Baht", "recurring_interval": "year", "status": "trialing", "current_period_start": "2024-10-06T07:01:55.000Z", "current_period_end": "2024-01-21T06:59:31.349Z", "cancel_at_period_end": false, "started_at": "2022-10-04T04:56:04.382Z", "ended_at": "2022-01-22T12:57:07.430Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "metadata": {"key": "", "key1": 442859, "key2": 394013}, "customer": {"created_at": "2024-09-14T04:37:19.722Z", "modified_at": "2024-03-24T00:03:13.207Z", "id": "", "metadata": {"key": "", "key1": true, "key2": 392900}, "email": "Dominic.Toy27@yahoo.com", "email_verified": false, "name": "", "billing_address": {"country": "Sweden"}, "tax_id": ["mx_rfc", "gb_vat", ""], "organization_id": "", "avatar_url": "https://worthy-place.biz"}, "user_id": "", "user": {"id": "", "email": "Domenico_Franecki46@hotmail.com", "public_name": ""}, "product": {"created_at": "2023-06-12T14:55:33.574Z", "modified_at": "2022-06-02T07:14:13.619Z", "id": "", "name": "", "description": "intent that yowza", "is_recurring": true, "is_archived": false, "organization_id": "", "metadata": {"key": "", "key1": true}, "prices": [], "benefits": [{"created_at": "2023-03-28T11:34:21.664Z", "modified_at": "2023-04-27T03:42:46.919Z", "id": "", "description": "who joyous like when", "selectable": false, "deletable": false, "organization_id": "", "properties": {"guild_id": "", "role_id": "", "guild_token": ""}}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/lost+found", "mime_type": "", "size": 562154, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-08-06T03:20:53.935Z", "version": "", "is_uploaded": false, "created_at": "2023-09-07T09:54:32.715Z", "size_readable": "", "public_url": "https://rare-trash.info"}, {"id": "", "organization_id": "", "name": "", "path": "/etc/ppp", "mime_type": "", "size": 66044, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-07-07T23:54:00.303Z", "version": "", "is_uploaded": true, "created_at": "2022-10-11T04:49:26.739Z", "size_readable": "", "public_url": "https://worse-ceramic.org"}, {"id": "", "organization_id": "", "name": "", "path": "/home", "mime_type": "", "size": 75695, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-09-16T06:56:23.715Z", "version": "", "is_uploaded": false, "created_at": "2023-06-23T20:54:57.375Z", "size_readable": "", "public_url": "https://closed-seafood.info"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2022-11-13T10:00:40.060Z", "modified_at": "2023-03-10T00:03:49.294Z", "id": "", "metadata": {"key": "", "key1": 464282}, "slug": "", "name": "", "organization_id": ""}, "order": 553735, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2022-01-10T11:39:31.896Z", "modified_at": "2023-01-22T10:58:37.730Z", "id": "", "metadata": {"key": false}, "slug": "", "name": "", "organization_id": ""}, "order": 892169, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2023-07-28T01:03:51.776Z", "modified_at": "2023-01-12T16:48:08.024Z", "id": "", "metadata": {"key": 210374}, "slug": "", "name": "", "organization_id": ""}, "order": 578881, "required": false}]}, "price": {"created_at": "2023-05-11T19:30:40.237Z", "modified_at": "2023-02-20T21:50:40.246Z", "id": "", "is_archived": true, "product_id": "", "recurring_interval": "month"}, "discount": {"duration": "forever", "duration_in_months": 466774, "type": "fixed", "basis_points": 373090, "created_at": "2024-03-19T15:55:32.315Z", "modified_at": "2023-03-27T06:41:23.276Z", "id": "", "metadata": {"key": "", "key1": "", "key2": 94826}, "name": "", "code": "", "starts_at": "2023-07-15T14:21:57.379Z", "ends_at": "2023-11-20T07:47:16.233Z", "max_redemptions": 184709, "redemptions_count": 388273, "organization_id": ""}}} + application/json: {"data": {"created_at": "2022-08-16T06:35:49.390Z", "modified_at": "2024-11-13T10:48:05.575Z", "id": "", "amount": 299644, "currency": "Baht", "recurring_interval": "year", "status": "trialing", "current_period_start": "2024-10-06T07:01:55.000Z", "current_period_end": "2024-01-21T06:59:31.349Z", "cancel_at_period_end": false, "started_at": "2022-10-04T04:56:04.382Z", "ended_at": "2022-01-22T12:57:07.430Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "metadata": {"key": "", "key1": 442859, "key2": 394013}, "customer": {"created_at": "2024-09-14T04:37:19.722Z", "modified_at": "2024-03-24T00:03:13.207Z", "id": "", "metadata": {"key": "", "key1": true, "key2": 392900}, "email": "Dominic.Toy27@yahoo.com", "email_verified": false, "name": "", "billing_address": {"country": "Sweden"}, "tax_id": ["mx_rfc", "gb_vat", ""], "organization_id": "", "avatar_url": "https://worthy-place.biz"}, "user_id": "", "user": {"id": "", "email": "Domenico_Franecki46@hotmail.com", "public_name": ""}, "product": {"created_at": "2023-06-12T14:55:33.574Z", "modified_at": "2022-06-02T07:14:13.619Z", "id": "", "name": "", "description": "intent that yowza", "is_recurring": true, "is_archived": false, "organization_id": "", "metadata": {"key": "", "key1": true}, "prices": [], "benefits": [{"created_at": "2024-11-13T10:48:05.575Z", "modified_at": "2022-11-25T09:50:52.301Z", "id": "", "description": "afford while lest at important ew yowza whereas demob", "selectable": false, "deletable": true, "organization_id": "", "properties": {"note": ""}, "is_tax_applicable": true}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/lost+found", "mime_type": "", "size": 562154, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-08-06T03:20:53.935Z", "version": "", "is_uploaded": false, "created_at": "2023-09-07T09:54:32.715Z", "size_readable": "", "public_url": "https://rare-trash.info"}, {"id": "", "organization_id": "", "name": "", "path": "/etc/ppp", "mime_type": "", "size": 66044, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-07-07T23:54:00.303Z", "version": "", "is_uploaded": true, "created_at": "2022-10-11T04:49:26.739Z", "size_readable": "", "public_url": "https://worse-ceramic.org"}, {"id": "", "organization_id": "", "name": "", "path": "/home", "mime_type": "", "size": 75695, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-09-16T06:56:23.715Z", "version": "", "is_uploaded": false, "created_at": "2023-06-23T20:54:57.375Z", "size_readable": "", "public_url": "https://closed-seafood.info"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-02-22T02:13:37.066Z", "modified_at": "2022-03-20T07:08:33.141Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": ""}, "order": 553735, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2022-03-14T13:16:39.126Z", "modified_at": "2024-02-16T13:33:22.624Z", "id": "", "metadata": {"key": "", "key1": true}, "slug": "", "name": "", "organization_id": ""}, "order": 892169, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2023-01-23T12:07:57.632Z", "modified_at": "2023-06-01T12:55:02.235Z", "id": "", "metadata": {"key": 173939}, "slug": "", "name": "", "organization_id": ""}, "order": 578881, "required": false}]}, "price": {"created_at": "2024-05-02T08:49:43.636Z", "modified_at": "2023-03-07T23:45:11.850Z", "id": "", "is_archived": false, "product_id": "", "recurring_interval": "month"}, "discount": {"duration": "repeating", "duration_in_months": 579725, "type": "fixed", "basis_points": 427480, "created_at": "2023-05-08T14:53:14.873Z", "modified_at": "2023-08-15T00:52:40.141Z", "id": "", "metadata": {"key": 506784, "key1": 392045}, "name": "", "code": "", "starts_at": "2022-04-01T15:22:55.520Z", "ends_at": "2023-11-05T14:17:31.159Z", "max_redemptions": 848282, "redemptions_count": 542595, "organization_id": ""}}} responses: "200": application/json: "" - "422": {} + "422": + application/json: {} _endpointsubscription_active_post: speakeasy-default-endpointsubscription-active-post: requestBody: - application/json: {"data": {"created_at": "2022-09-17T11:03:44.679Z", "modified_at": "2024-07-24T20:02:17.426Z", "id": "", "amount": 116760, "currency": "Quetzal", "recurring_interval": "month", "status": "incomplete", "current_period_start": "2022-08-25T00:14:50.252Z", "current_period_end": "2022-12-10T18:25:01.577Z", "cancel_at_period_end": false, "started_at": "2023-07-06T14:07:23.099Z", "ended_at": "2023-07-01T08:12:48.355Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "metadata": {}, "customer": {"created_at": "2024-10-30T02:51:06.576Z", "modified_at": "2023-06-21T14:46:16.535Z", "id": "", "metadata": {"key": true, "key1": "", "key2": 615212}, "email": "Sincere42@gmail.com", "email_verified": false, "name": "", "billing_address": {"country": "Tanzania"}, "tax_id": ["", "", "mx_rfc"], "organization_id": "", "avatar_url": "https://negative-tentacle.com"}, "user_id": "", "user": {"id": "", "email": "Zoey_Bahringer88@hotmail.com", "public_name": ""}, "product": {"created_at": "2024-03-05T21:40:58.905Z", "modified_at": "2022-06-03T13:50:25.005Z", "id": "", "name": "", "description": "synthesise beautifully until below barring concerning", "is_recurring": true, "is_archived": false, "organization_id": "", "metadata": {"key": false, "key1": 893296}, "prices": [{"created_at": "2022-03-06T00:38:11.071Z", "modified_at": "2022-02-13T01:11:01.495Z", "id": "", "is_archived": false, "product_id": "", "recurring_interval": "year"}], "benefits": [{"created_at": "2022-12-20T17:12:38.621Z", "modified_at": "2022-05-15T20:51:57.377Z", "id": "", "description": "aboard scarily sneaky", "selectable": false, "deletable": true, "organization_id": "", "properties": {"prefix": "", "expires": {"ttl": 599975, "timeframe": "month"}, "activations": {"limit": 630245, "enable_customer_admin": false}, "limit_usage": 275346}}, {"created_at": "2023-07-07T18:40:04.116Z", "modified_at": "2022-05-12T20:57:57.609Z", "id": "", "description": "uncommon conclude focalise dark like", "selectable": true, "deletable": false, "organization_id": "", "properties": {"note": ""}, "is_tax_applicable": true}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/media", "mime_type": "", "size": 931655, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-06-07T17:40:48.757Z", "version": "", "is_uploaded": false, "created_at": "2023-07-28T18:04:02.928Z", "size_readable": "", "public_url": "https://remorseful-hamburger.name"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-01-21T12:23:37.845Z", "modified_at": "2024-03-05T16:09:49.058Z", "id": "", "metadata": {"key": false, "key1": true, "key2": 639045}, "slug": "", "name": "", "organization_id": ""}, "order": 769742, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2022-11-03T11:33:22.005Z", "modified_at": "2023-07-24T16:35:31.707Z", "id": "", "metadata": {"key": 521869}, "slug": "", "name": "", "organization_id": ""}, "order": 61975, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2023-10-25T23:47:56.996Z", "modified_at": "2023-10-25T01:03:37.094Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": ""}, "order": 531803, "required": true}]}, "price": {"created_at": "2023-02-02T00:30:57.495Z", "modified_at": "2023-08-16T16:58:49.210Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 325436, "maximum_amount": 272507, "preset_amount": 910219, "recurring_interval": "month"}, "discount": {"duration": "repeating", "type": "percentage", "basis_points": 722311, "created_at": "2024-09-04T07:15:12.730Z", "modified_at": "2024-10-06T11:12:50.335Z", "id": "", "metadata": {"key": ""}, "name": "", "code": "", "starts_at": "2024-11-16T18:30:55.860Z", "ends_at": "2024-02-09T03:34:15.957Z", "max_redemptions": 692583, "redemptions_count": 78638, "organization_id": ""}}} + application/json: {"data": {"created_at": "2022-09-17T11:03:44.679Z", "modified_at": "2024-07-24T20:02:17.426Z", "id": "", "amount": 116760, "currency": "Quetzal", "recurring_interval": "month", "status": "incomplete", "current_period_start": "2022-08-25T00:14:50.252Z", "current_period_end": "2022-12-10T18:25:01.577Z", "cancel_at_period_end": false, "started_at": "2023-07-06T14:07:23.099Z", "ended_at": "2023-07-01T08:12:48.355Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "metadata": {}, "customer": {"created_at": "2024-10-30T02:51:06.576Z", "modified_at": "2023-06-21T14:46:16.535Z", "id": "", "metadata": {"key": true, "key1": "", "key2": 615212}, "email": "Sincere42@gmail.com", "email_verified": false, "name": "", "billing_address": {"country": "Tanzania"}, "tax_id": ["", "", "mx_rfc"], "organization_id": "", "avatar_url": "https://negative-tentacle.com"}, "user_id": "", "user": {"id": "", "email": "Zoey_Bahringer88@hotmail.com", "public_name": ""}, "product": {"created_at": "2024-03-05T21:40:58.905Z", "modified_at": "2022-06-03T13:50:25.005Z", "id": "", "name": "", "description": "synthesise beautifully until below barring concerning", "is_recurring": true, "is_archived": false, "organization_id": "", "metadata": {"key": "", "key1": 893296}, "prices": [{"created_at": "2022-12-23T21:06:29.057Z", "modified_at": "2023-06-19T07:32:20.859Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 215338}], "benefits": [{"created_at": "2023-09-05T07:05:35.451Z", "modified_at": "2023-07-06T14:07:23.099Z", "id": "", "description": "braid incidentally excitedly sympathetically pro tremendously", "selectable": true, "deletable": false, "organization_id": "", "properties": {"note": ""}, "is_tax_applicable": true}, {"created_at": "2023-03-25T21:51:07.916Z", "modified_at": "2022-05-30T19:54:17.610Z", "id": "", "description": "blah lock ugh eek", "selectable": true, "deletable": true, "organization_id": "", "properties": {"archived": {}, "files": ["", ""]}}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/media", "mime_type": "", "size": 931655, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-06-07T17:40:48.757Z", "version": "", "is_uploaded": false, "created_at": "2023-07-28T18:04:02.928Z", "size_readable": "", "public_url": "https://remorseful-hamburger.name"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-12-17T07:08:38.057Z", "modified_at": "2024-02-21T21:21:04.349Z", "id": "", "metadata": {"key": true}, "slug": "", "name": "", "organization_id": "", "properties": {"options": []}}, "order": 769742, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2022-03-06T00:38:11.071Z", "modified_at": "2022-02-13T01:11:01.495Z", "id": "", "metadata": {"key": false, "key1": true, "key2": ""}, "slug": "", "name": "", "organization_id": ""}, "order": 61975, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2022-09-29T16:24:13.569Z", "modified_at": "2024-02-18T13:39:50.808Z", "id": "", "metadata": {"key": 775460, "key1": ""}, "slug": "", "name": "", "organization_id": ""}, "order": 531803, "required": true}]}, "price": {"created_at": "2024-03-03T05:42:43.472Z", "modified_at": "2024-04-25T20:49:29.186Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "price_amount": 967195, "recurring_interval": "month"}, "discount": {"duration": "repeating", "type": "fixed", "amount": 781157, "currency": "Forint", "created_at": "2024-04-30T15:58:53.765Z", "modified_at": "2024-05-24T11:54:23.246Z", "id": "", "metadata": {"key": false, "key1": ""}, "name": "", "code": "", "starts_at": "2023-10-20T13:44:20.141Z", "ends_at": "2023-08-31T17:40:05.617Z", "max_redemptions": 630245, "redemptions_count": 508495, "organization_id": ""}}} responses: "200": application/json: "" - "422": {} + "422": + application/json: {} _endpointsubscription_canceled_post: speakeasy-default-endpointsubscription-canceled-post: requestBody: - application/json: {"data": {"created_at": "2023-02-08T10:04:43.200Z", "modified_at": "2022-02-20T09:16:44.963Z", "id": "", "amount": 384017, "currency": "Nakfa", "recurring_interval": "month", "status": "canceled", "current_period_start": "2024-08-29T23:51:26.505Z", "current_period_end": "2023-01-30T14:57:29.126Z", "cancel_at_period_end": false, "started_at": "2022-05-31T10:57:35.559Z", "ended_at": "2023-11-01T08:13:37.012Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "metadata": {}, "customer": {"created_at": "2022-07-13T20:08:34.251Z", "modified_at": "2023-11-18T03:48:04.429Z", "id": "", "metadata": {"key": "", "key1": "", "key2": 199269}, "email": "Marcella_Gislason@gmail.com", "email_verified": false, "name": "", "billing_address": {"country": "Kuwait"}, "tax_id": ["", "ca_qst", "ua_vat"], "organization_id": "", "avatar_url": "https://oily-juggernaut.com/"}, "user_id": "", "user": {"id": "", "email": "Sherwood.Murphy2@yahoo.com", "public_name": ""}, "product": {"created_at": "2022-04-28T07:50:03.180Z", "modified_at": "2022-02-20T03:50:20.279Z", "id": "", "name": "", "description": "tenant indeed when distorted before excluding claw stool aw self-reliant", "is_recurring": true, "is_archived": false, "organization_id": "", "metadata": {"key": 231419}, "prices": [], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/include", "mime_type": "", "size": 778001, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-03-31T22:07:25.990Z", "version": "", "is_uploaded": false, "created_at": "2024-09-17T20:00:26.644Z", "size_readable": "", "public_url": "https://dim-tail.org"}, {"id": "", "organization_id": "", "name": "", "path": "/etc/namedb", "mime_type": "", "size": 797228, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-12-03T23:14:09.199Z", "version": "", "is_uploaded": true, "created_at": "2024-10-11T05:55:27.601Z", "size_readable": "", "public_url": "https://tragic-castanet.biz/"}, {"id": "", "organization_id": "", "name": "", "path": "/private/tmp", "mime_type": "", "size": 547184, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-08-24T04:18:58.722Z", "version": "", "is_uploaded": true, "created_at": "2023-07-31T11:34:39.128Z", "size_readable": "", "public_url": "https://cumbersome-forage.biz"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-12-30T11:12:44.032Z", "modified_at": "2023-08-30T10:47:47.076Z", "id": "", "metadata": {"key": ""}, "slug": "", "name": "", "organization_id": ""}, "order": 790486, "required": true}]}, "price": {"created_at": "2024-03-03T21:38:43.364Z", "modified_at": "2022-09-17T02:05:01.437Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 508456, "maximum_amount": 131154, "preset_amount": 964532, "recurring_interval": "year"}, "discount": {"duration": "forever", "type": "fixed", "basis_points": 739935, "created_at": "2024-01-07T00:47:12.415Z", "modified_at": "2023-10-22T01:42:22.352Z", "id": "", "metadata": {"key": ""}, "name": "", "code": "", "starts_at": "2022-03-21T19:23:01.895Z", "ends_at": "2023-05-10T03:41:57.095Z", "max_redemptions": 467461, "redemptions_count": 178728, "organization_id": ""}}} + application/json: {"data": {"created_at": "2023-02-08T10:04:43.200Z", "modified_at": "2022-02-20T09:16:44.963Z", "id": "", "amount": 384017, "currency": "Nakfa", "recurring_interval": "month", "status": "canceled", "current_period_start": "2024-08-29T23:51:26.505Z", "current_period_end": "2023-01-30T14:57:29.126Z", "cancel_at_period_end": false, "started_at": "2022-05-31T10:57:35.559Z", "ended_at": "2023-11-01T08:13:37.012Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "metadata": {}, "customer": {"created_at": "2022-07-13T20:08:34.251Z", "modified_at": "2023-11-18T03:48:04.429Z", "id": "", "metadata": {"key": "", "key1": "", "key2": 199269}, "email": "Marcella_Gislason@gmail.com", "email_verified": false, "name": "", "billing_address": {"country": "Kuwait"}, "tax_id": ["", "ca_qst", "ua_vat"], "organization_id": "", "avatar_url": "https://oily-juggernaut.com/"}, "user_id": "", "user": {"id": "", "email": "Sherwood.Murphy2@yahoo.com", "public_name": ""}, "product": {"created_at": "2022-04-28T07:50:03.180Z", "modified_at": "2022-02-20T03:50:20.279Z", "id": "", "name": "", "description": "tenant indeed when distorted before excluding claw stool aw self-reliant", "is_recurring": true, "is_archived": false, "organization_id": "", "metadata": {"key": 231419}, "prices": [], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/include", "mime_type": "", "size": 778001, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-03-31T22:07:25.990Z", "version": "", "is_uploaded": false, "created_at": "2024-09-17T20:00:26.644Z", "size_readable": "", "public_url": "https://dim-tail.org"}, {"id": "", "organization_id": "", "name": "", "path": "/etc/namedb", "mime_type": "", "size": 797228, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-12-03T23:14:09.199Z", "version": "", "is_uploaded": true, "created_at": "2024-10-11T05:55:27.601Z", "size_readable": "", "public_url": "https://tragic-castanet.biz/"}, {"id": "", "organization_id": "", "name": "", "path": "/private/tmp", "mime_type": "", "size": 547184, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-08-24T04:18:58.722Z", "version": "", "is_uploaded": true, "created_at": "2023-07-31T11:34:39.128Z", "size_readable": "", "public_url": "https://cumbersome-forage.biz"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2022-02-20T09:16:44.963Z", "modified_at": "2023-02-25T21:11:48.890Z", "id": "", "metadata": {"key": 803599}, "slug": "", "name": "", "organization_id": ""}, "order": 790486, "required": true}]}, "price": {"created_at": "2023-01-30T14:57:29.126Z", "modified_at": "2023-11-08T11:19:25.895Z", "id": "", "is_archived": true, "product_id": "", "recurring_interval": "year"}, "discount": {"duration": "once", "type": "percentage", "amount": 810079, "currency": "Fiji Dollar", "created_at": "2022-02-12T13:18:53.912Z", "modified_at": "2023-01-07T15:42:13.412Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2022-12-04T19:57:16.999Z", "ends_at": "2024-01-04T00:48:16.846Z", "max_redemptions": 402264, "redemptions_count": 262452, "organization_id": ""}}} responses: "200": application/json: "" - "422": {} + "422": + application/json: {} _endpointsubscription_revoked_post: speakeasy-default-endpointsubscription-revoked-post: requestBody: - application/json: {"data": {"created_at": "2024-11-29T12:00:55.925Z", "modified_at": "2022-03-13T04:36:55.320Z", "id": "", "amount": 780683, "currency": "CFP Franc", "recurring_interval": "year", "status": "trialing", "current_period_start": "2022-06-20T05:55:42.170Z", "current_period_end": "2023-05-17T17:55:53.899Z", "cancel_at_period_end": true, "started_at": "2024-10-25T10:04:20.460Z", "ended_at": "2023-09-30T18:36:35.285Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "metadata": {"key": 721489}, "customer": {"created_at": "2022-06-02T05:06:11.692Z", "modified_at": "2024-09-02T15:09:07.489Z", "id": "", "metadata": {"key": 112038, "key1": 182663, "key2": 85731}, "email": "Tia59@yahoo.com", "email_verified": true, "name": "", "billing_address": {"country": "Azerbaijan"}, "tax_id": [], "organization_id": "", "avatar_url": "https://babyish-plastic.net"}, "user_id": "", "user": {"id": "", "email": "Reina59@yahoo.com", "public_name": ""}, "product": {"created_at": "2023-11-12T08:35:43.186Z", "modified_at": "2023-02-16T16:26:12.752Z", "id": "", "name": "", "description": "knavishly next unlike", "is_recurring": false, "is_archived": false, "organization_id": "", "metadata": {}, "prices": [{"created_at": "2023-08-20T08:47:21.294Z", "modified_at": "2022-06-08T10:13:09.277Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 494511, "maximum_amount": 85523, "preset_amount": 945814}, {"created_at": "2023-07-27T22:37:48.771Z", "modified_at": "2022-07-08T15:43:38.078Z", "id": "", "is_archived": true, "product_id": ""}, {"created_at": "2024-04-13T22:55:01.059Z", "modified_at": "2022-09-24T20:16:33.762Z", "id": "", "is_archived": true, "product_id": "", "recurring_interval": "year"}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/selinux", "mime_type": "", "size": 307478, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-08-09T04:03:47.757Z", "version": "", "is_uploaded": true, "created_at": "2024-03-19T06:48:17.921Z", "size_readable": "", "public_url": "https://bleak-worth.name"}, {"id": "", "organization_id": "", "name": "", "path": "/opt/sbin", "mime_type": "", "size": 846156, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-07-22T16:48:21.593Z", "version": "", "is_uploaded": false, "created_at": "2022-01-29T12:49:28.784Z", "size_readable": "", "public_url": "https://unusual-switch.name"}, {"id": "", "organization_id": "", "name": "", "path": "/var/mail", "mime_type": "", "size": 4230, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-09-24T13:03:31.087Z", "version": "", "is_uploaded": true, "created_at": "2022-07-22T04:02:13.353Z", "size_readable": "", "public_url": "https://warm-sideboard.name/"}], "attached_custom_fields": []}, "price": {"created_at": "2023-10-26T16:43:54.572Z", "modified_at": "2022-06-30T10:25:57.370Z", "id": "", "is_archived": true, "product_id": "", "recurring_interval": "year"}, "discount": {"duration": "repeating", "duration_in_months": 849469, "type": "fixed", "amount": 450102, "currency": "New Israeli Sheqel", "created_at": "2023-02-27T04:32:02.630Z", "modified_at": "2023-11-04T14:27:09.906Z", "id": "", "metadata": {"key": false, "key1": "", "key2": 731442}, "name": "", "code": "", "starts_at": "2024-11-02T20:54:50.367Z", "ends_at": "2022-09-22T21:33:21.170Z", "max_redemptions": 812657, "redemptions_count": 625027, "organization_id": ""}}} + application/json: {"data": {"created_at": "2024-11-29T12:00:55.925Z", "modified_at": "2022-03-13T04:36:55.320Z", "id": "", "amount": 780683, "currency": "CFP Franc", "recurring_interval": "year", "status": "trialing", "current_period_start": "2022-06-20T05:55:42.170Z", "current_period_end": "2023-05-17T17:55:53.899Z", "cancel_at_period_end": true, "started_at": "2024-10-25T10:04:20.460Z", "ended_at": "2023-09-30T18:36:35.285Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "metadata": {"key": 721489}, "customer": {"created_at": "2022-06-02T05:06:11.692Z", "modified_at": "2024-09-02T15:09:07.489Z", "id": "", "metadata": {"key": 112038, "key1": 182663, "key2": 85731}, "email": "Tia59@yahoo.com", "email_verified": true, "name": "", "billing_address": {"country": "Azerbaijan"}, "tax_id": [], "organization_id": "", "avatar_url": "https://babyish-plastic.net"}, "user_id": "", "user": {"id": "", "email": "Reina59@yahoo.com", "public_name": ""}, "product": {"created_at": "2023-11-12T08:35:43.186Z", "modified_at": "2023-02-16T16:26:12.752Z", "id": "", "name": "", "description": "knavishly next unlike", "is_recurring": false, "is_archived": false, "organization_id": "", "metadata": {}, "prices": [{"created_at": "2024-05-05T15:05:02.863Z", "modified_at": "2024-11-17T16:25:39.728Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "price_amount": 320796}, {"created_at": "2023-06-25T17:28:30.971Z", "modified_at": "2024-10-25T10:04:20.460Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 382050, "maximum_amount": 354441, "preset_amount": 721489, "recurring_interval": "month"}, {"created_at": "2023-11-03T11:38:25.623Z", "modified_at": "2022-05-03T19:03:39.188Z", "id": "", "is_archived": false, "product_id": ""}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/selinux", "mime_type": "", "size": 307478, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-08-09T04:03:47.757Z", "version": "", "is_uploaded": true, "created_at": "2024-03-19T06:48:17.921Z", "size_readable": "", "public_url": "https://bleak-worth.name"}, {"id": "", "organization_id": "", "name": "", "path": "/opt/sbin", "mime_type": "", "size": 846156, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-07-22T16:48:21.593Z", "version": "", "is_uploaded": false, "created_at": "2022-01-29T12:49:28.784Z", "size_readable": "", "public_url": "https://unusual-switch.name"}, {"id": "", "organization_id": "", "name": "", "path": "/var/mail", "mime_type": "", "size": 4230, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-09-24T13:03:31.087Z", "version": "", "is_uploaded": true, "created_at": "2022-07-22T04:02:13.353Z", "size_readable": "", "public_url": "https://warm-sideboard.name/"}], "attached_custom_fields": []}, "price": {"created_at": "2023-11-18T04:36:46.811Z", "modified_at": "2022-04-04T23:05:18.441Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "price_amount": 925065, "recurring_interval": "year"}, "discount": {"duration": "once", "type": "percentage", "basis_points": 718152, "created_at": "2022-08-13T23:12:18.932Z", "modified_at": "2022-03-09T13:37:07.084Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2024-10-09T23:38:38.066Z", "ends_at": "2022-03-02T20:08:06.884Z", "max_redemptions": 678696, "redemptions_count": 794564, "organization_id": ""}}} responses: "200": application/json: "" - "422": {} + "422": + application/json: {} _endpointproduct_created_post: speakeasy-default-endpointproduct-created-post: requestBody: - application/json: {"data": {"created_at": "2022-03-27T06:36:20.130Z", "modified_at": "2024-04-21T12:05:16.637Z", "id": "", "name": "", "description": "into horst metal grimy clinch big grounded industrialize", "is_recurring": true, "is_archived": true, "organization_id": "", "metadata": {}, "prices": [{"created_at": "2023-10-16T05:16:34.193Z", "modified_at": "2022-01-19T10:36:12.447Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 917766, "recurring_interval": "month"}, {"created_at": "2023-06-28T16:44:29.523Z", "modified_at": "2024-06-04T10:50:19.647Z", "id": "", "is_archived": true, "product_id": ""}], "benefits": [{"created_at": "2023-11-28T02:40:31.262Z", "modified_at": "2024-12-04T18:07:56.097Z", "id": "", "description": "and massage super even about till", "selectable": true, "deletable": false, "organization_id": "", "properties": {"guild_id": "", "role_id": "", "guild_token": ""}}, {"created_at": "2024-05-03T07:01:53.491Z", "modified_at": "2023-11-12T23:57:26.081Z", "id": "", "description": "whup other truly", "selectable": false, "deletable": true, "organization_id": "", "properties": {"archived": {"key": true, "key1": false, "key2": true}, "files": ["", ""]}}, {"created_at": "2022-05-17T05:27:36.888Z", "modified_at": "2022-03-28T23:52:23.232Z", "id": "", "description": "rapid toady tabletop terrorise", "selectable": false, "deletable": true, "organization_id": "", "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "admin"}}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/Users", "mime_type": "", "size": 692895, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-02-28T01:03:14.537Z", "version": "", "is_uploaded": true, "created_at": "2022-06-03T00:39:20.038Z", "size_readable": "", "public_url": "https://monstrous-cop-out.net"}, {"id": "", "organization_id": "", "name": "", "path": "/var/mail", "mime_type": "", "size": 843323, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-04-23T21:31:25.476Z", "version": "", "is_uploaded": true, "created_at": "2022-07-19T01:29:35.587Z", "size_readable": "", "public_url": "https://well-made-farm.com"}, {"id": "", "organization_id": "", "name": "", "path": "/root", "mime_type": "", "size": 849549, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-07-30T13:09:33.963Z", "version": "", "is_uploaded": false, "created_at": "2023-10-03T20:39:40.444Z", "size_readable": "", "public_url": "https://simplistic-devastation.com"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-10-10T07:23:59.782Z", "modified_at": "2024-05-03T18:46:00.326Z", "id": "", "metadata": {"key": 821321, "key1": ""}, "slug": "", "name": "", "organization_id": "", "properties": {"options": [{"value": "", "label": ""}, {"value": "", "label": ""}, {"value": "", "label": ""}]}}, "order": 317196, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2024-12-23T06:51:37.558Z", "modified_at": "2024-03-15T08:42:59.966Z", "id": "", "metadata": {"key": 445920}, "slug": "", "name": "", "organization_id": ""}, "order": 492053, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2024-12-10T02:09:45.595Z", "modified_at": "2022-08-11T03:09:54.248Z", "id": "", "metadata": {"key": 139516, "key1": false, "key2": false}, "slug": "", "name": "", "organization_id": ""}, "order": 17631, "required": true}]}} + application/json: {"data": {"created_at": "2022-03-27T06:36:20.130Z", "modified_at": "2024-04-21T12:05:16.637Z", "id": "", "name": "", "description": "into horst metal grimy clinch big grounded industrialize", "is_recurring": true, "is_archived": true, "organization_id": "", "metadata": {}, "prices": [{"created_at": "2023-12-08T23:31:39.577Z", "modified_at": "2023-04-26T10:21:28.587Z", "id": "", "is_archived": true, "product_id": "", "recurring_interval": "year"}, {"created_at": "2023-10-10T12:20:00.039Z", "modified_at": "2023-08-02T06:11:52.894Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 66164, "maximum_amount": 215783, "preset_amount": 203043}], "benefits": [{"created_at": "2022-12-13T12:26:05.455Z", "modified_at": "2023-04-18T08:36:36.851Z", "id": "", "description": "before requite than throughout", "selectable": true, "deletable": true, "organization_id": ""}, {"created_at": "2024-01-30T06:25:40.029Z", "modified_at": "2024-05-25T20:52:15.774Z", "id": "", "description": "industrialize necklace meh innocent and", "selectable": true, "deletable": false, "organization_id": "", "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "maintain"}}, {"created_at": "2022-12-21T02:33:35.683Z", "modified_at": "2022-05-31T01:25:34.413Z", "id": "", "description": "super even about till what optimal slimy", "selectable": true, "deletable": true, "organization_id": "", "properties": {"prefix": "", "expires": {"ttl": 118349, "timeframe": "day"}, "activations": {"limit": 158822, "enable_customer_admin": false}, "limit_usage": 553531}}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/Users", "mime_type": "", "size": 692895, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-02-28T01:03:14.537Z", "version": "", "is_uploaded": true, "created_at": "2022-06-03T00:39:20.038Z", "size_readable": "", "public_url": "https://monstrous-cop-out.net"}, {"id": "", "organization_id": "", "name": "", "path": "/var/mail", "mime_type": "", "size": 843323, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-04-23T21:31:25.476Z", "version": "", "is_uploaded": true, "created_at": "2022-07-19T01:29:35.587Z", "size_readable": "", "public_url": "https://well-made-farm.com"}, {"id": "", "organization_id": "", "name": "", "path": "/root", "mime_type": "", "size": 849549, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-07-30T13:09:33.963Z", "version": "", "is_uploaded": false, "created_at": "2023-10-03T20:39:40.444Z", "size_readable": "", "public_url": "https://simplistic-devastation.com"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-07-07T02:17:46.592Z", "modified_at": "2023-01-06T06:37:37.257Z", "id": "", "metadata": {"key": 733716, "key1": 124295, "key2": ""}, "slug": "", "name": "", "organization_id": ""}, "order": 317196, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2023-01-22T17:57:22.350Z", "modified_at": "2023-07-20T04:28:49.429Z", "id": "", "metadata": {"key": 719843}, "slug": "", "name": "", "organization_id": ""}, "order": 492053, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2023-12-31T18:52:05.817Z", "modified_at": "2023-07-15T08:10:59.538Z", "id": "", "metadata": {"key": true}, "slug": "", "name": "", "organization_id": ""}, "order": 17631, "required": true}]}} responses: "200": application/json: "" - "422": {} + "422": + application/json: {} _endpointproduct_updated_post: speakeasy-default-endpointproduct-updated-post: requestBody: - application/json: {"data": {"created_at": "2023-06-26T03:46:32.479Z", "modified_at": "2022-06-04T01:47:33.158Z", "id": "", "name": "", "description": "er ick birdcage", "is_recurring": true, "is_archived": false, "organization_id": "", "metadata": {}, "prices": [{"created_at": "2023-06-25T21:02:48.964Z", "modified_at": "2022-08-09T05:30:26.799Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 378732, "maximum_amount": 210625, "preset_amount": 195640, "recurring_interval": "month"}], "benefits": [{"created_at": "2024-01-15T17:21:06.263Z", "modified_at": "2023-08-12T16:50:22.415Z", "id": "", "description": "antelope mmm strictly meanwhile powerless drat lotion role till by", "selectable": true, "deletable": false, "organization_id": "", "properties": {"guild_id": "", "role_id": "", "guild_token": ""}}, {"created_at": "2023-09-26T18:43:30.596Z", "modified_at": "2022-12-07T11:19:18.583Z", "id": "", "description": "lazily yesterday who unlike surprisingly oh dowse", "selectable": true, "deletable": true, "organization_id": "", "properties": {"prefix": "", "expires": {"ttl": 277255, "timeframe": "day"}, "activations": {"limit": 701228, "enable_customer_admin": false}, "limit_usage": 495553}}, {"created_at": "2022-08-08T00:59:39.516Z", "modified_at": "2022-11-20T10:40:31.232Z", "id": "", "description": "as yuppify observe while creature", "selectable": true, "deletable": true, "organization_id": ""}], "medias": [], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-01-10T14:49:34.261Z", "modified_at": "2023-06-27T12:22:33.699Z", "id": "", "metadata": {"key": 201711, "key1": false}, "slug": "", "name": "", "organization_id": ""}, "order": 19557, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2022-01-24T21:09:39.290Z", "modified_at": "2024-09-19T22:05:27.996Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": ""}, "order": 753420, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2022-11-05T16:20:13.541Z", "modified_at": "2023-09-06T06:02:28.654Z", "id": "", "metadata": {"key": true}, "slug": "", "name": "", "organization_id": "", "properties": {"options": []}}, "order": 454407, "required": true}]}} + application/json: {"data": {"created_at": "2023-06-26T03:46:32.479Z", "modified_at": "2022-06-04T01:47:33.158Z", "id": "", "name": "", "description": "er ick birdcage", "is_recurring": true, "is_archived": false, "organization_id": "", "metadata": {}, "prices": [{"created_at": "2022-04-14T23:22:06.974Z", "modified_at": "2022-11-27T16:49:54.775Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 147529, "recurring_interval": "month"}], "benefits": [{"created_at": "2023-03-01T01:53:23.154Z", "modified_at": "2024-10-01T01:25:21.739Z", "id": "", "description": "for kissingly countess", "selectable": false, "deletable": true, "organization_id": ""}, {"created_at": "2022-08-03T10:08:00.590Z", "modified_at": "2022-07-04T20:42:15.638Z", "id": "", "description": "along always modulo fidget inside lightly gigantic pigpen under", "selectable": true, "deletable": true, "organization_id": "", "properties": {"note": ""}, "is_tax_applicable": false}, {"created_at": "2023-12-22T18:08:53.429Z", "modified_at": "2023-04-06T15:47:57.618Z", "id": "", "description": "typify attest amid incidentally afore ultimately beloved seldom", "selectable": false, "deletable": false, "organization_id": "", "properties": {"archived": {"key": true}, "files": [""]}}], "medias": [], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-06-25T07:43:21.903Z", "modified_at": "2024-02-08T13:05:15.287Z", "id": "", "metadata": {"key": 81731, "key1": "", "key2": ""}, "slug": "", "name": "", "organization_id": ""}, "order": 19557, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2024-08-19T11:13:30.301Z", "modified_at": "2023-11-12T22:19:55.213Z", "id": "", "metadata": {"key": "", "key1": ""}, "slug": "", "name": "", "organization_id": ""}, "order": 753420, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2022-03-20T08:40:07.478Z", "modified_at": "2023-10-25T07:58:05.681Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": ""}, "order": 454407, "required": true}]}} responses: "200": application/json: "" - "422": {} + "422": + application/json: {} _endpointpledge_created_post: speakeasy-default-endpointpledge-created-post: requestBody: @@ -1436,7 +1452,8 @@ examples: responses: "200": application/json: "" - "422": {} + "422": + application/json: {} _endpointpledge_updated_post: speakeasy-default-endpointpledge-updated-post: requestBody: @@ -1444,7 +1461,8 @@ examples: responses: "200": application/json: "" - "422": {} + "422": + application/json: {} _endpointorganization_updated_post: speakeasy-default-endpointorganization-updated-post: requestBody: @@ -1452,7 +1470,8 @@ examples: responses: "200": application/json: "" - "422": {} + "422": + application/json: {} _endpointbenefit_created_post: speakeasy-default-endpointbenefit-created-post: requestBody: @@ -1460,7 +1479,8 @@ examples: responses: "200": application/json: "" - "422": {} + "422": + application/json: {} _endpointbenefit_updated_post: speakeasy-default-endpointbenefit-updated-post: requestBody: @@ -1468,43 +1488,49 @@ examples: responses: "200": application/json: "" - "422": {} + "422": + application/json: {} _endpointbenefit_grant_created_post: speakeasy-default-endpointbenefit-grant-created-post: requestBody: - application/json: {"data": {"created_at": "2024-01-05T13:03:27.870Z", "modified_at": "2022-05-08T00:47:14.556Z", "id": "", "is_granted": true, "is_revoked": false, "subscription_id": "", "order_id": "", "customer_id": "", "user_id": "", "benefit_id": "", "benefit": {"created_at": "2022-08-27T21:34:38.278Z", "modified_at": "2023-11-11T08:42:33.497Z", "id": "", "description": "drowse aw incomparable wicked anti torn", "selectable": false, "deletable": true, "organization_id": ""}}} + application/json: {"data": {"created_at": "2024-01-05T13:03:27.870Z", "modified_at": "2022-05-08T00:47:14.556Z", "id": "", "is_granted": true, "is_revoked": false, "subscription_id": "", "order_id": "", "customer_id": "", "user_id": "", "benefit_id": "", "properties": {"advertisement_campaign_id": ""}, "benefit": {"created_at": "2022-02-20T12:28:33.166Z", "modified_at": "2023-07-19T18:10:25.895Z", "id": "", "description": "though oof geez ha scuffle um inwardly narrow waterlogged normal", "selectable": true, "deletable": false, "organization_id": ""}}} responses: "200": application/json: "" - "422": {} + "422": + application/json: {} _endpointbenefit_grant_updated_post: speakeasy-default-endpointbenefit-grant-updated-post: requestBody: - application/json: {"data": {"created_at": "2024-01-03T13:54:42.243Z", "modified_at": "2023-02-25T11:58:59.486Z", "id": "", "is_granted": false, "is_revoked": false, "subscription_id": "", "order_id": "", "customer_id": "", "user_id": "", "benefit_id": "", "benefit": {"created_at": "2024-05-23T01:54:32.734Z", "modified_at": "2022-09-08T08:24:29.899Z", "id": "", "description": "blind forenenst than bah guard tectonics since", "selectable": false, "deletable": false, "organization_id": "", "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "push"}}}} + application/json: {"data": {"created_at": "2024-01-03T13:54:42.243Z", "modified_at": "2023-02-25T11:58:59.486Z", "id": "", "is_granted": false, "is_revoked": false, "subscription_id": "", "order_id": "", "customer_id": "", "user_id": "", "benefit_id": "", "properties": {"advertisement_campaign_id": ""}, "benefit": {"created_at": "2024-04-04T12:08:04.168Z", "modified_at": "2024-02-23T02:27:57.903Z", "id": "", "description": "meager merit by pish intermesh gah out muddy ah", "selectable": false, "deletable": true, "organization_id": "", "properties": {"guild_id": "", "role_id": "", "guild_token": ""}}}} responses: "200": application/json: "" - "422": {} + "422": + application/json: {} _endpointbenefit_grant_revoked_post: speakeasy-default-endpointbenefit-grant-revoked-post: requestBody: - application/json: {"data": {"created_at": "2024-03-12T10:35:36.881Z", "modified_at": "2024-04-12T13:10:16.426Z", "id": "", "is_granted": true, "is_revoked": false, "subscription_id": "", "order_id": "", "customer_id": "", "user_id": "", "benefit_id": "", "properties": {"advertisement_campaign_id": ""}, "benefit": {"created_at": "2022-03-17T20:39:41.188Z", "modified_at": "2024-10-16T14:21:38.359Z", "id": "", "description": "seldom border mortally", "selectable": false, "deletable": true, "organization_id": "", "properties": {"prefix": "", "expires": {"ttl": 232067, "timeframe": "day"}, "activations": {"limit": 789656, "enable_customer_admin": false}, "limit_usage": 39616}}}} + application/json: {"data": {"created_at": "2024-03-12T10:35:36.881Z", "modified_at": "2024-04-12T13:10:16.426Z", "id": "", "is_granted": true, "is_revoked": false, "subscription_id": "", "order_id": "", "customer_id": "", "user_id": "", "benefit_id": "", "properties": {"advertisement_campaign_id": ""}, "benefit": {"created_at": "2024-04-12T13:10:16.426Z", "modified_at": "2023-03-09T05:20:11.943Z", "id": "", "description": "incidentally immense scotch meh quaff generously supposing however ugh kindly", "selectable": false, "deletable": false, "organization_id": "", "properties": {"archived": {"key": true, "key1": true, "key2": false}, "files": []}}}} responses: "200": application/json: "" - "422": {} + "422": + application/json: {} external_organizations:list: speakeasy-default-external-organizations:list: responses: "200": application/json: {"items": [{"id": "8a232aa0-b11b-48a0-8057-1e9e705d0e6e", "name": "", "avatar_url": "https://unpleasant-chairperson.info/", "is_personal": true, "bio": "", "pretty_name": "", "company": "Kshlerin Group", "blog": "", "location": "", "email": "Roman.Stracke39@yahoo.com", "twitter_username": "", "organization_id": ""}, {"id": "2e0aee1b-9ddf-4121-adc2-a4c8104fb451", "name": "", "avatar_url": "https://accurate-siege.org/", "is_personal": false, "bio": "", "pretty_name": "", "company": "White and Sons", "blog": "", "location": "", "email": "Jan.Reinger-Runte@gmail.com", "twitter_username": "", "organization_id": ""}, {"id": "b960d561-1ff6-4573-be0a-62331ad7c07c", "name": "", "avatar_url": "https://new-bug.name/", "is_personal": false, "bio": "", "pretty_name": "", "company": "Jacobs - Mills", "blog": "", "location": "", "email": "Trace_Strosin20@yahoo.com", "twitter_username": "", "organization_id": ""}], "pagination": {"total_count": 710528, "max_page": 489312}} - "422": {} + "422": + application/json: {} repositories:list: speakeasy-default-repositories:list: responses: "200": application/json: {"items": [{"id": "8a232aa0-b11b-48a0-8057-1e9e705d0e6e", "is_private": true, "name": "MyOrg", "description": "lid covenant safely briefly ugh fen phew reschedule hammock ick", "stars": 1337, "license": "", "homepage": "", "organization": {"id": "f6573e0a-6233-41ad-b7c0-7cc481991696", "name": "", "avatar_url": "https://troubled-knickers.biz", "is_personal": true, "bio": "", "pretty_name": "", "company": "Kuhn, Smitham and Larson", "blog": "", "location": "", "email": "Carrie.Emard89@hotmail.com", "twitter_username": "", "organization_id": ""}, "internal_organization": {"created_at": "2023-07-28T09:20:59.531Z", "modified_at": "2022-12-12T02:49:50.316Z", "id": "", "name": "", "slug": "", "avatar_url": "https://frail-discourse.org", "bio": "", "company": "Schoen, Tremblay and Pfeffer", "blog": "", "location": "", "email": "Jayda.Stanton@gmail.com", "twitter_username": "", "pledge_minimum_amount": 190272, "pledge_badge_show_amount": false, "default_upfront_split_to_contributors": 19410}}, {"id": "a17c478e-329a-49ec-8979-38e1a630f5fe", "is_private": true, "name": "MyOrg", "description": "consequently husband since wonderfully ruin likable widow", "stars": 1337, "license": "", "homepage": "", "organization": {"id": "7bcfa269-af21-494d-9586-1b3fe5754c0c", "name": "", "avatar_url": "https://big-pearl.name/", "is_personal": true, "bio": "", "pretty_name": "", "company": "King, Glover and Effertz", "blog": "", "location": "", "email": "Robin.Wisozk57@gmail.com", "twitter_username": "", "organization_id": ""}, "internal_organization": {"created_at": "2024-09-05T07:44:59.336Z", "modified_at": "2022-07-24T14:46:52.205Z", "id": "", "name": "", "slug": "", "avatar_url": "https://major-injunction.net/", "bio": "", "company": "Gulgowski, Schoen and Gibson", "blog": "", "location": "", "email": "Americo82@hotmail.com", "twitter_username": "", "pledge_minimum_amount": 356375, "pledge_badge_show_amount": true, "default_upfront_split_to_contributors": 788480}}, {"id": "7155b0db-a7a3-40fd-b263-f0ccec19e17a", "is_private": false, "name": "MyOrg", "description": "secret burgeon duh powerfully", "stars": 1337, "license": "", "homepage": "", "organization": {"id": "4b3d276b-63f8-406d-994b-843a1ce423bc", "name": "", "avatar_url": "https://troubled-sport.info/", "is_personal": false, "bio": "", "pretty_name": "", "company": "Greenholt, Daugherty and Wilkinson", "blog": "", "location": "", "email": "Vaughn23@hotmail.com", "twitter_username": "", "organization_id": ""}, "internal_organization": {"created_at": "2023-05-08T14:59:44.450Z", "modified_at": "2024-01-27T20:57:36.235Z", "id": "", "name": "", "slug": "", "avatar_url": "https://subtle-formula.name/", "bio": "", "company": "Trantow, Homenick and Bogisich", "blog": "", "location": "", "email": "Federico.West19@gmail.com", "twitter_username": "", "pledge_minimum_amount": 311256, "pledge_badge_show_amount": false, "default_upfront_split_to_contributors": 50847}}], "pagination": {"total_count": 654965, "max_page": 204047}} - "422": {} + "422": + application/json: {} repositories:get: speakeasy-default-repositories:get: parameters: @@ -1515,7 +1541,8 @@ examples: application/json: {"id": "b888f774-3e7c-4135-a18c-6b985523c4bc", "is_private": false, "name": "MyOrg", "description": "ugh roundabout middle ha rise", "stars": 1337, "license": "", "homepage": "", "organization": {"id": "8f7112aa-f0ab-44e4-83b4-cca3716f6208", "name": "", "avatar_url": "https://prickly-packaging.com/", "is_personal": false, "bio": "", "pretty_name": "", "company": "Schaefer and Sons", "blog": "", "location": "", "email": "Eunice_Lemke@gmail.com", "twitter_username": "", "organization_id": ""}, "internal_organization": {"created_at": "2023-08-09T16:26:13.017Z", "modified_at": "2024-09-14T13:34:42.081Z", "id": "", "name": "", "slug": "", "avatar_url": "https://elastic-lounge.com", "bio": "", "company": "Howell, Rau and Gerlach", "blog": "", "location": "", "email": "Kale_Hickle@hotmail.com", "twitter_username": "", "pledge_minimum_amount": 856562, "pledge_badge_show_amount": true, "default_upfront_split_to_contributors": 287673}} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} repositories:update: speakeasy-default-repositories:update: parameters: @@ -1528,13 +1555,15 @@ examples: application/json: {"detail": ""} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} organizations:list: speakeasy-default-organizations:list: responses: "200": application/json: {"items": [{"created_at": "2023-08-23T19:26:20.850Z", "modified_at": "2024-01-14T10:26:00.433Z", "id": "", "name": "", "slug": "", "avatar_url": "https://energetic-circumference.name/", "bio": "", "company": "Auer LLC", "blog": "", "location": "", "email": "Annetta_Langosh0@gmail.com", "twitter_username": "", "pledge_minimum_amount": 367745, "pledge_badge_show_amount": true, "default_upfront_split_to_contributors": 73227}, {"created_at": "2024-10-17T13:20:28.265Z", "modified_at": "2023-09-14T22:04:07.138Z", "id": "", "name": "", "slug": "", "avatar_url": "https://lustrous-atrium.biz", "bio": "", "company": "Auer, Treutel and Kassulke", "blog": "", "location": "", "email": "Chad.Treutel@hotmail.com", "twitter_username": "", "pledge_minimum_amount": 432930, "pledge_badge_show_amount": true, "default_upfront_split_to_contributors": 103421}, {"created_at": "2023-07-29T04:00:22.486Z", "modified_at": "2024-07-10T18:28:07.954Z", "id": "", "name": "", "slug": "", "avatar_url": "https://tragic-exhaust.info/", "bio": "", "company": "Davis - Volkman", "blog": "", "location": "", "email": "Llewellyn.VonRueden@gmail.com", "twitter_username": "", "pledge_minimum_amount": 838930, "pledge_badge_show_amount": false, "default_upfront_split_to_contributors": 996014}], "pagination": {"total_count": 81309, "max_page": 164965}} - "422": {} + "422": + application/json: {} organizations:create: speakeasy-default-organizations:create: requestBody: @@ -1542,7 +1571,8 @@ examples: responses: "201": application/json: {"created_at": "2023-06-18T07:14:55.338Z", "modified_at": "2023-12-01T17:06:07.804Z", "id": "", "name": "", "slug": "", "avatar_url": "https://concerned-battle.net/", "bio": "", "company": "Abbott, Dach and Borer", "blog": "", "location": "", "email": "Raymundo_Rolfson35@hotmail.com", "twitter_username": "", "pledge_minimum_amount": 17759, "pledge_badge_show_amount": true, "default_upfront_split_to_contributors": 211337} - "422": {} + "422": + application/json: {} organizations:get: speakeasy-default-organizations:get: parameters: @@ -1553,7 +1583,8 @@ examples: application/json: {"created_at": "2024-02-07T13:54:48.821Z", "modified_at": "2023-09-05T11:33:52.011Z", "id": "", "name": "", "slug": "", "avatar_url": "https://misguided-violin.info", "bio": "", "company": "Gislason Group", "blog": "", "location": "", "email": "Ian.Block31@hotmail.com", "twitter_username": "", "pledge_minimum_amount": 552582, "pledge_badge_show_amount": false, "default_upfront_split_to_contributors": 380699} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} organizations:update: speakeasy-default-organizations:update: parameters: @@ -1566,19 +1597,22 @@ examples: application/json: {"detail": ""} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} subscriptions:list: speakeasy-default-subscriptions:list: responses: "200": - application/json: {"items": [{"created_at": "2023-08-23T19:26:20.850Z", "modified_at": "2024-01-14T10:26:00.433Z", "id": "", "amount": 177706, "currency": "Danish Krone", "recurring_interval": "month", "status": "past_due", "current_period_start": "2023-12-02T18:25:37.169Z", "current_period_end": "2022-01-20T06:21:22.156Z", "cancel_at_period_end": false, "started_at": "2022-04-05T09:49:38.010Z", "ended_at": "2022-03-17T01:57:00.187Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "metadata": {"key": 633911, "key1": ""}, "customer": {"created_at": "2022-03-01T20:22:54.911Z", "modified_at": "2023-02-08T01:09:52.088Z", "id": "", "metadata": {"key": ""}, "email": "Kenyatta32@hotmail.com", "email_verified": true, "name": "", "billing_address": {"country": "Tokelau"}, "tax_id": ["ca_pst_bc"], "organization_id": "", "avatar_url": "https://unpleasant-chairperson.info/"}, "user_id": "", "user": {"id": "", "email": "Hope_Brakus@yahoo.com", "public_name": ""}, "product": {"created_at": "2024-08-04T08:35:41.482Z", "modified_at": "2022-12-03T21:35:05.453Z", "id": "", "name": "", "description": "er boom however when uh-huh madly", "is_recurring": false, "is_archived": false, "organization_id": "", "metadata": {"key": 29267, "key1": 688784, "key2": 408066}, "prices": [], "benefits": [{"created_at": "2023-03-22T09:41:56.524Z", "modified_at": "2022-03-28T18:28:26.777Z", "id": "", "description": "tenement commonly softly", "selectable": false, "deletable": true, "organization_id": "", "properties": {"note": ""}, "is_tax_applicable": false}, {"created_at": "2023-10-15T09:46:50.350Z", "modified_at": "2023-09-15T02:22:04.749Z", "id": "", "description": "massive sorrowful aw", "selectable": true, "deletable": false, "organization_id": ""}, {"created_at": "2022-10-09T03:58:07.827Z", "modified_at": "2024-10-07T04:54:41.981Z", "id": "", "description": "steeple overheard swerve than bicycle twine huzzah obnoxiously", "selectable": true, "deletable": true, "organization_id": "", "properties": {"note": ""}, "is_tax_applicable": false}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/sbin", "mime_type": "", "size": 207713, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-01-01T09:29:03.176Z", "version": "", "is_uploaded": true, "created_at": "2023-03-31T01:03:36.657Z", "size_readable": "", "public_url": "https://next-taxicab.net/"}], "attached_custom_fields": []}, "price": {"created_at": "2024-07-14T16:07:38.809Z", "modified_at": "2023-06-19T04:12:45.071Z", "id": "", "is_archived": false, "product_id": "", "recurring_interval": "month"}, "discount": {"duration": "once", "type": "percentage", "amount": 832756, "currency": "Hryvnia", "created_at": "2024-04-21T05:31:02.040Z", "modified_at": "2023-03-29T11:42:09.368Z", "id": "", "metadata": {"key": "", "key1": 824962, "key2": 467428}, "name": "", "code": "", "starts_at": "2024-03-07T02:26:31.358Z", "ends_at": "2022-06-21T02:05:32.746Z", "max_redemptions": 783071, "redemptions_count": 374478, "organization_id": ""}}, {"created_at": "2024-07-30T17:58:06.895Z", "modified_at": "2023-06-28T18:50:42.778Z", "id": "", "amount": 985599, "currency": "Lebanese Pound", "recurring_interval": "year", "status": "canceled", "current_period_start": "2024-10-25T10:50:37.438Z", "current_period_end": "2024-01-10T05:13:52.456Z", "cancel_at_period_end": true, "started_at": "2023-04-23T16:13:21.235Z", "ended_at": "2023-09-11T11:54:14.319Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "metadata": {"key": true, "key1": ""}, "customer": {"created_at": "2023-10-30T05:49:01.311Z", "modified_at": "2022-12-07T09:46:44.632Z", "id": "", "metadata": {"key": 527084, "key1": 80289, "key2": true}, "email": "Timmy27@hotmail.com", "email_verified": true, "name": "", "billing_address": {"country": "Saudi Arabia"}, "tax_id": [""], "organization_id": "", "avatar_url": "https://puzzled-morning.com/"}, "user_id": "", "user": {"id": "", "email": "Isabelle83@hotmail.com", "public_name": ""}, "product": {"created_at": "2024-11-27T17:23:02.117Z", "modified_at": "2022-04-04T09:25:47.730Z", "id": "", "name": "", "description": "till boo ack solicit weakly segregate boo", "is_recurring": true, "is_archived": false, "organization_id": "", "metadata": {"key": true, "key1": true, "key2": 387926}, "prices": [{"created_at": "2023-12-20T21:19:09.188Z", "modified_at": "2022-10-19T07:09:33.817Z", "id": "", "is_archived": true, "product_id": "", "recurring_interval": "month"}, {"created_at": "2022-04-17T02:32:11.293Z", "modified_at": "2022-02-08T12:01:40.965Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 847002}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/var/mail", "mime_type": "", "size": 677862, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-10-02T21:48:51.327Z", "version": "", "is_uploaded": false, "created_at": "2024-01-18T21:03:55.557Z", "size_readable": "", "public_url": "https://clear-cut-dredger.name"}, {"id": "", "organization_id": "", "name": "", "path": "/lost+found", "mime_type": "", "size": 708212, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-08-25T01:38:35.053Z", "version": "", "is_uploaded": false, "created_at": "2022-06-11T03:56:34.876Z", "size_readable": "", "public_url": "https://humble-programme.info/"}, {"id": "", "organization_id": "", "name": "", "path": "/lib", "mime_type": "", "size": 981370, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-08-28T12:00:34.207Z", "version": "", "is_uploaded": true, "created_at": "2023-03-08T00:48:20.677Z", "size_readable": "", "public_url": "https://pleasing-edge.net"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2022-08-10T06:23:08.124Z", "modified_at": "2023-12-11T13:25:02.054Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": ""}, "order": 794717, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2022-07-04T18:07:17.452Z", "modified_at": "2022-08-14T23:46:39.543Z", "id": "", "metadata": {"key": true, "key1": 869031}, "slug": "", "name": "", "organization_id": ""}, "order": 839453, "required": true}]}, "price": {"created_at": "2024-01-27T04:32:33.599Z", "modified_at": "2022-11-16T19:05:14.488Z", "id": "", "is_archived": true, "product_id": "", "recurring_interval": "year"}, "discount": {"duration": "repeating", "duration_in_months": 668046, "type": "fixed", "basis_points": 976080, "created_at": "2022-09-15T23:31:11.246Z", "modified_at": "2024-10-29T11:50:25.062Z", "id": "", "metadata": {"key": true}, "name": "", "code": "", "starts_at": "2024-06-14T21:21:53.369Z", "ends_at": "2023-01-29T07:09:20.439Z", "max_redemptions": 503527, "redemptions_count": 919939, "organization_id": ""}}, {"created_at": "2024-09-05T20:18:34.543Z", "modified_at": "2023-02-23T23:44:40.827Z", "id": "", "amount": 86895, "currency": "Cedi", "recurring_interval": "month", "status": "active", "current_period_start": "2024-11-01T20:47:26.029Z", "current_period_end": "2023-07-01T05:56:59.196Z", "cancel_at_period_end": true, "started_at": "2022-02-21T11:53:00.306Z", "ended_at": "2022-12-08T03:17:39.708Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "metadata": {"key": "", "key1": 204047}, "customer": {"created_at": "2023-05-04T11:56:14.302Z", "modified_at": "2022-05-09T08:47:32.901Z", "id": "", "metadata": {"key": true}, "email": "Vallie.Goyette@gmail.com", "email_verified": true, "name": "", "billing_address": {"country": "Rwanda"}, "tax_id": ["ge_vat"], "organization_id": "", "avatar_url": "https://nimble-individual.biz/"}, "user_id": "", "user": {"id": "", "email": "Florida_Mills10@hotmail.com", "public_name": ""}, "product": {"created_at": "2024-10-07T12:14:45.651Z", "modified_at": "2024-08-07T16:09:30.509Z", "id": "", "name": "", "description": "via the proper uncommon cap", "is_recurring": true, "is_archived": true, "organization_id": "", "metadata": {"key": 751280, "key1": ""}, "prices": [{"created_at": "2023-05-01T20:59:40.436Z", "modified_at": "2024-12-21T09:31:52.337Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 552172, "maximum_amount": 206795, "preset_amount": 257426, "recurring_interval": "month"}, {"created_at": "2023-08-12T23:03:40.659Z", "modified_at": "2023-08-01T10:27:50.144Z", "id": "", "is_archived": false, "product_id": ""}, {"created_at": "2024-03-30T11:09:26.643Z", "modified_at": "2024-01-27T18:37:09.216Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 481272, "maximum_amount": 439032, "preset_amount": 351638}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt/share", "mime_type": "", "size": 505796, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-03-05T15:08:11.722Z", "version": "", "is_uploaded": true, "created_at": "2024-06-20T20:39:56.038Z", "size_readable": "", "public_url": "https://elliptical-marketplace.biz"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/share", "mime_type": "", "size": 96647, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-01-09T21:57:02.179Z", "version": "", "is_uploaded": true, "created_at": "2024-02-07T05:52:39.668Z", "size_readable": "", "public_url": "https://weighty-tentacle.name/"}, {"id": "", "organization_id": "", "name": "", "path": "/Users", "mime_type": "", "size": 191255, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-02-13T19:40:48.863Z", "version": "", "is_uploaded": false, "created_at": "2023-06-09T07:01:01.703Z", "size_readable": "", "public_url": "https://homely-testing.org"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2022-07-15T13:55:49.316Z", "modified_at": "2022-08-25T07:45:20.632Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": "", "properties": {"options": []}}, "order": 27174, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2023-05-20T20:06:15.435Z", "modified_at": "2022-09-28T19:48:55.538Z", "id": "", "metadata": {"key": 929829}, "slug": "", "name": "", "organization_id": ""}, "order": 134580, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2023-05-30T02:21:30.439Z", "modified_at": "2022-08-11T20:43:56.103Z", "id": "", "metadata": {"key": "", "key1": ""}, "slug": "", "name": "", "organization_id": ""}, "order": 223832, "required": true}]}, "price": {"created_at": "2022-08-06T07:43:13.764Z", "modified_at": "2022-04-05T00:28:25.982Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 311681, "recurring_interval": "month"}, "discount": {"duration": "once", "type": "percentage", "basis_points": 906109, "created_at": "2023-12-15T10:29:31.180Z", "modified_at": "2022-10-09T07:21:47.148Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2022-04-15T11:16:29.756Z", "ends_at": "2023-03-31T11:43:42.338Z", "max_redemptions": 644930, "redemptions_count": 379069, "organization_id": ""}}], "pagination": {"total_count": 709485, "max_page": 543675}} - "422": {} + application/json: {"items": [{"created_at": "2023-08-23T19:26:20.850Z", "modified_at": "2024-01-14T10:26:00.433Z", "id": "", "amount": 177706, "currency": "Danish Krone", "recurring_interval": "month", "status": "past_due", "current_period_start": "2023-12-02T18:25:37.169Z", "current_period_end": "2022-01-20T06:21:22.156Z", "cancel_at_period_end": false, "started_at": "2022-04-05T09:49:38.010Z", "ended_at": "2022-03-17T01:57:00.187Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "metadata": {"key": 633911, "key1": ""}, "customer": {"created_at": "2022-03-01T20:22:54.911Z", "modified_at": "2023-02-08T01:09:52.088Z", "id": "", "metadata": {"key": ""}, "email": "Kenyatta32@hotmail.com", "email_verified": true, "name": "", "billing_address": {"country": "Tokelau"}, "tax_id": ["ca_pst_bc"], "organization_id": "", "avatar_url": "https://unpleasant-chairperson.info/"}, "user_id": "", "user": {"id": "", "email": "Hope_Brakus@yahoo.com", "public_name": ""}, "product": {"created_at": "2024-08-04T08:35:41.482Z", "modified_at": "2022-12-03T21:35:05.453Z", "id": "", "name": "", "description": "er boom however when uh-huh madly", "is_recurring": false, "is_archived": false, "organization_id": "", "metadata": {"key": 29267, "key1": 688784, "key2": 408066}, "prices": [], "benefits": [{"created_at": "2023-08-23T19:26:20.850Z", "modified_at": "2024-01-14T10:26:00.433Z", "id": "", "description": "bob inwardly beautifully comparison", "selectable": true, "deletable": false, "organization_id": "", "properties": {"archived": {}, "files": [""]}}, {"created_at": "2023-04-20T11:47:41.889Z", "modified_at": "2023-06-11T18:07:18.321Z", "id": "", "description": "cleverly blossom defiantly", "selectable": true, "deletable": false, "organization_id": "", "properties": {"guild_id": "", "role_id": "", "guild_token": ""}}, {"created_at": "2022-06-05T08:58:03.644Z", "modified_at": "2023-12-29T19:56:44.465Z", "id": "", "description": "when uh-huh madly unless brightly", "selectable": true, "deletable": false, "organization_id": "", "properties": {"archived": {"key": true, "key1": true, "key2": true}, "files": []}}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/sbin", "mime_type": "", "size": 207713, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-01-01T09:29:03.176Z", "version": "", "is_uploaded": true, "created_at": "2023-03-31T01:03:36.657Z", "size_readable": "", "public_url": "https://next-taxicab.net/"}], "attached_custom_fields": []}, "price": {"created_at": "2022-02-25T05:24:29.459Z", "modified_at": "2023-11-17T05:41:51.253Z", "id": "", "is_archived": true, "product_id": "", "recurring_interval": "month"}, "discount": {"duration": "once", "type": "fixed", "amount": 673953, "currency": "Tunisian Dinar", "created_at": "2023-05-22T17:28:14.899Z", "modified_at": "2024-04-07T21:37:23.489Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2023-06-19T05:46:32.685Z", "ends_at": "2024-04-03T18:06:02.533Z", "max_redemptions": 751563, "redemptions_count": 277523, "organization_id": ""}}, {"created_at": "2024-07-30T17:58:06.895Z", "modified_at": "2023-06-28T18:50:42.778Z", "id": "", "amount": 985599, "currency": "Lebanese Pound", "recurring_interval": "year", "status": "canceled", "current_period_start": "2024-10-25T10:50:37.438Z", "current_period_end": "2024-01-10T05:13:52.456Z", "cancel_at_period_end": true, "started_at": "2023-04-23T16:13:21.235Z", "ended_at": "2023-09-11T11:54:14.319Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "metadata": {"key": true, "key1": ""}, "customer": {"created_at": "2023-10-30T05:49:01.311Z", "modified_at": "2022-12-07T09:46:44.632Z", "id": "", "metadata": {"key": 527084, "key1": 80289, "key2": true}, "email": "Timmy27@hotmail.com", "email_verified": true, "name": "", "billing_address": {"country": "Saudi Arabia"}, "tax_id": [""], "organization_id": "", "avatar_url": "https://puzzled-morning.com/"}, "user_id": "", "user": {"id": "", "email": "Isabelle83@hotmail.com", "public_name": ""}, "product": {"created_at": "2024-11-27T17:23:02.117Z", "modified_at": "2022-04-04T09:25:47.730Z", "id": "", "name": "", "description": "till boo ack solicit weakly segregate boo", "is_recurring": true, "is_archived": false, "organization_id": "", "metadata": {"key": true, "key1": true, "key2": 387926}, "prices": [{"created_at": "2023-10-15T09:46:50.350Z", "modified_at": "2023-09-15T02:22:04.749Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 401228}, {"created_at": "2024-10-20T12:04:56.060Z", "modified_at": "2024-04-01T19:36:12.946Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 500063, "maximum_amount": 206163, "preset_amount": 310383}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/var/mail", "mime_type": "", "size": 677862, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-10-02T21:48:51.327Z", "version": "", "is_uploaded": false, "created_at": "2024-01-18T21:03:55.557Z", "size_readable": "", "public_url": "https://clear-cut-dredger.name"}, {"id": "", "organization_id": "", "name": "", "path": "/lost+found", "mime_type": "", "size": 708212, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-08-25T01:38:35.053Z", "version": "", "is_uploaded": false, "created_at": "2022-06-11T03:56:34.876Z", "size_readable": "", "public_url": "https://humble-programme.info/"}, {"id": "", "organization_id": "", "name": "", "path": "/lib", "mime_type": "", "size": 981370, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-08-28T12:00:34.207Z", "version": "", "is_uploaded": true, "created_at": "2023-03-08T00:48:20.677Z", "size_readable": "", "public_url": "https://pleasing-edge.net"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-06-21T06:51:31.298Z", "modified_at": "2024-07-07T11:43:51.448Z", "id": "", "metadata": {"key": true, "key1": ""}, "slug": "", "name": "", "organization_id": "", "properties": {"options": []}}, "order": 794717, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2024-09-08T10:15:51.443Z", "modified_at": "2022-01-27T21:43:08.849Z", "id": "", "metadata": {"key": "", "key1": 292228}, "slug": "", "name": "", "organization_id": ""}, "order": 839453, "required": true}]}, "price": {"created_at": "2024-10-07T04:54:41.981Z", "modified_at": "2024-03-07T17:43:00.381Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "price_amount": 895424, "recurring_interval": "year"}, "discount": {"duration": "forever", "type": "percentage", "amount": 849513, "currency": "Falkland Islands Pound", "created_at": "2023-06-21T13:26:28.598Z", "modified_at": "2023-01-19T17:39:17.317Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2024-06-29T11:50:30.649Z", "ends_at": "2022-01-22T06:34:12.791Z", "max_redemptions": 634941, "redemptions_count": 93125, "organization_id": ""}}, {"created_at": "2024-09-05T20:18:34.543Z", "modified_at": "2023-02-23T23:44:40.827Z", "id": "", "amount": 86895, "currency": "Cedi", "recurring_interval": "month", "status": "active", "current_period_start": "2024-11-01T20:47:26.029Z", "current_period_end": "2023-07-01T05:56:59.196Z", "cancel_at_period_end": true, "started_at": "2022-02-21T11:53:00.306Z", "ended_at": "2022-12-08T03:17:39.708Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "metadata": {"key": "", "key1": 204047}, "customer": {"created_at": "2023-05-04T11:56:14.302Z", "modified_at": "2022-05-09T08:47:32.901Z", "id": "", "metadata": {"key": true}, "email": "Vallie.Goyette@gmail.com", "email_verified": true, "name": "", "billing_address": {"country": "Rwanda"}, "tax_id": ["ge_vat"], "organization_id": "", "avatar_url": "https://nimble-individual.biz/"}, "user_id": "", "user": {"id": "", "email": "Florida_Mills10@hotmail.com", "public_name": ""}, "product": {"created_at": "2024-10-07T12:14:45.651Z", "modified_at": "2024-08-07T16:09:30.509Z", "id": "", "name": "", "description": "via the proper uncommon cap", "is_recurring": true, "is_archived": true, "organization_id": "", "metadata": {"key": 751280, "key1": ""}, "prices": [{"created_at": "2022-11-05T03:32:00.916Z", "modified_at": "2023-05-03T02:57:15.201Z", "id": "", "is_archived": false, "product_id": "", "recurring_interval": "year"}, {"created_at": "2023-09-20T19:57:30.820Z", "modified_at": "2023-11-26T13:23:23.987Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "price_amount": 919645, "recurring_interval": "year"}, {"created_at": "2023-09-29T09:08:13.966Z", "modified_at": "2022-08-22T04:11:15.149Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 895039, "maximum_amount": 65720, "preset_amount": 648645}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt/share", "mime_type": "", "size": 505796, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-03-05T15:08:11.722Z", "version": "", "is_uploaded": true, "created_at": "2024-06-20T20:39:56.038Z", "size_readable": "", "public_url": "https://elliptical-marketplace.biz"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/share", "mime_type": "", "size": 96647, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-01-09T21:57:02.179Z", "version": "", "is_uploaded": true, "created_at": "2024-02-07T05:52:39.668Z", "size_readable": "", "public_url": "https://weighty-tentacle.name/"}, {"id": "", "organization_id": "", "name": "", "path": "/Users", "mime_type": "", "size": 191255, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-02-13T19:40:48.863Z", "version": "", "is_uploaded": false, "created_at": "2023-06-09T07:01:01.703Z", "size_readable": "", "public_url": "https://homely-testing.org"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2022-09-28T14:04:50.967Z", "modified_at": "2022-01-03T14:26:00.039Z", "id": "", "metadata": {"key": 939917, "key1": true, "key2": 527743}, "slug": "", "name": "", "organization_id": ""}, "order": 27174, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2023-08-13T02:33:31.911Z", "modified_at": "2022-07-09T17:20:28.194Z", "id": "", "metadata": {"key": 19407, "key1": "", "key2": true}, "slug": "", "name": "", "organization_id": ""}, "order": 134580, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2023-04-28T03:04:42.633Z", "modified_at": "2022-11-15T16:58:31.247Z", "id": "", "metadata": {"key": 561143, "key1": "", "key2": ""}, "slug": "", "name": "", "organization_id": ""}, "order": 223832, "required": true}]}, "price": {"created_at": "2023-03-31T01:03:36.657Z", "modified_at": "2022-10-05T20:49:32.362Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 894700, "maximum_amount": 810689, "preset_amount": 152303, "recurring_interval": "year"}, "discount": {"duration": "once", "type": "percentage", "basis_points": 906109, "created_at": "2023-12-15T10:29:31.180Z", "modified_at": "2022-10-09T07:21:47.148Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2022-04-15T11:16:29.756Z", "ends_at": "2023-03-31T11:43:42.338Z", "max_redemptions": 644930, "redemptions_count": 379069, "organization_id": ""}}], "pagination": {"total_count": 709485, "max_page": 543675}} + "422": + application/json: {} subscriptions:export: speakeasy-default-subscriptions:export: responses: "200": application/json: "" - "422": {} + "422": + application/json: {} advertisements:list: speakeasy-default-advertisements:list: parameters: @@ -1587,7 +1621,8 @@ examples: responses: "200": application/json: {"items": [{"created_at": "2023-08-23T19:26:20.850Z", "modified_at": "2024-01-14T10:26:00.433Z", "id": "", "image_url": "https://energetic-circumference.name/", "image_url_dark": "https://agile-publicity.com", "text": "", "link_url": "https://roasted-language.name/"}, {"created_at": "2022-01-09T04:26:27.312Z", "modified_at": "2022-03-01T20:22:54.911Z", "id": "", "image_url": "https://lovely-bench.org/", "image_url_dark": "https://ugly-jungle.com", "text": "", "link_url": "https://torn-affiliate.org/"}, {"created_at": "2023-04-11T02:32:42.816Z", "modified_at": "2024-09-28T03:47:03.515Z", "id": "", "image_url": "https://blue-technologist.com/", "image_url_dark": "https://instructive-hospitalization.info/", "text": "", "link_url": "https://moist-sprinkles.info/"}], "pagination": {"total_count": 863466, "max_page": 307390}, "dimensions": [113486]} - "422": {} + "422": + application/json: {} advertisements:get: speakeasy-default-advertisements:get: parameters: @@ -1598,7 +1633,8 @@ examples: application/json: {"created_at": "2024-02-07T13:54:48.821Z", "modified_at": "2023-09-05T11:33:52.011Z", "id": "", "image_url": "https://misguided-violin.info", "image_url_dark": "https://fatal-custom.org/", "text": "", "link_url": "https://stiff-bidet.biz/"} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} oauth2:authorize: speakeasy-default-oauth2-:authorize: responses: @@ -1615,6 +1651,9 @@ examples: speakeasy-default-oauth2-:revoke-token: requestBody: application/x-www-form-urlencoded: {"token": "", "client_id": "", "client_secret": ""} + responses: + "200": + application/json: {} oauth2:introspect_token: speakeasy-default-oauth2-:introspect-token: requestBody: @@ -1632,7 +1671,8 @@ examples: responses: "200": application/json: {"items": [{"redirect_uris": ["https://definite-deer.com", "https://productive-affect.net"], "client_name": "", "created_at": "2022-04-05T09:49:38.010Z", "modified_at": "2022-03-17T01:57:00.187Z", "client_id": "", "client_secret": "", "client_id_issued_at": 687960, "client_secret_expires_at": 509883}, {"redirect_uris": ["https://awful-fund.info/", "https://victorious-merit.org/"], "client_name": "", "created_at": "2023-06-22T03:00:04.393Z", "modified_at": "2022-02-26T15:25:42.165Z", "client_id": "", "client_secret": "", "client_id_issued_at": 322596, "client_secret_expires_at": 860596}, {"redirect_uris": [], "client_name": "", "created_at": "2024-09-10T07:49:25.657Z", "modified_at": "2023-04-11T02:32:42.816Z", "client_id": "", "client_secret": "", "client_id_issued_at": 913465, "client_secret_expires_at": 173090}], "pagination": {"total_count": 75058, "max_page": 897069}} - "422": {} + "422": + application/json: {} oauth2:clients:oauth2:create_client: speakeasy-default-oauth2-:clients:oauth2-:create-client: requestBody: @@ -1640,7 +1680,8 @@ examples: responses: "200": application/json: "" - "422": {} + "422": + application/json: {} oauth2:clients:oauth2:get_client: speakeasy-default-oauth2-:clients:oauth2-:get-client: parameters: @@ -1649,7 +1690,8 @@ examples: responses: "200": application/json: "" - "422": {} + "422": + application/json: {} oauth2:clients:oauth2:update_client: speakeasy-default-oauth2-:clients:oauth2-:update-client: parameters: @@ -1660,7 +1702,8 @@ examples: responses: "200": application/json: "" - "422": {} + "422": + application/json: {} oauth2:clients:oauth2:delete_client: speakeasy-default-oauth2-:clients:oauth2-:delete-client: parameters: @@ -1669,13 +1712,15 @@ examples: responses: "200": application/json: "" - "422": {} + "422": + application/json: {} benefits:list: speakeasy-default-benefits:list: responses: "200": - application/json: {"items": [{"created_at": "2024-01-14T10:26:00.433Z", "modified_at": "2022-07-14T18:23:27.528Z", "id": "", "description": "biodegrade miserably fedora blah", "selectable": false, "deletable": true, "organization_id": "", "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "push"}}, {"created_at": "2023-04-20T11:47:41.889Z", "modified_at": "2023-06-11T18:07:18.321Z", "id": "", "description": "cleverly blossom defiantly", "selectable": true, "deletable": false, "organization_id": "", "properties": {"guild_id": "", "role_id": "", "guild_token": ""}}, {"created_at": "2022-06-05T08:58:03.644Z", "modified_at": "2023-12-29T19:56:44.465Z", "id": "", "description": "when uh-huh madly unless brightly", "selectable": true, "deletable": false, "organization_id": "", "properties": {"archived": {"key": true, "key1": true, "key2": true}, "files": []}}], "pagination": {"total_count": 900911, "max_page": 50388}} - "422": {} + application/json: {"items": [{"created_at": "2023-08-23T19:26:20.850Z", "modified_at": "2024-01-14T10:26:00.433Z", "id": "", "description": "bob inwardly beautifully comparison", "selectable": true, "deletable": false, "organization_id": "", "properties": {"archived": {}, "files": [""]}}, {"created_at": "2023-04-20T11:47:41.889Z", "modified_at": "2023-06-11T18:07:18.321Z", "id": "", "description": "cleverly blossom defiantly", "selectable": true, "deletable": false, "organization_id": "", "properties": {"guild_id": "", "role_id": "", "guild_token": ""}}, {"created_at": "2022-06-05T08:58:03.644Z", "modified_at": "2023-12-29T19:56:44.465Z", "id": "", "description": "when uh-huh madly unless brightly", "selectable": true, "deletable": false, "organization_id": "", "properties": {"archived": {"key": true, "key1": true, "key2": true}, "files": []}}], "pagination": {"total_count": 900911, "max_page": 50388}} + "422": + application/json: {} benefits:create: speakeasy-default-benefits:create: requestBody: @@ -1683,7 +1728,8 @@ examples: responses: "201": application/json: {"created_at": "2023-07-24T05:13:02.679Z", "modified_at": "2022-12-24T06:50:18.755Z", "id": "", "description": "while till lazily than clear-cut whoever", "selectable": false, "deletable": false, "organization_id": "", "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "admin"}} - "422": {} + "422": + application/json: {} benefits:get: speakeasy-default-benefits:get: parameters: @@ -1694,7 +1740,8 @@ examples: application/json: {"created_at": "2023-09-05T11:33:52.011Z", "modified_at": "2023-08-20T11:11:04.610Z", "id": "", "description": "hundred whereas dimly unused cone restructure gadzooks", "selectable": false, "deletable": false, "organization_id": "", "properties": {"archived": {"key": true, "key1": false, "key2": true}, "files": []}} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} benefits:update: speakeasy-default-benefits:update: parameters: @@ -1707,7 +1754,8 @@ examples: application/json: {"detail": ""} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} benefits:delete: speakeasy-default-benefits:delete: parameters: @@ -1718,7 +1766,8 @@ examples: application/json: {"detail": ""} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} benefits:grants: speakeasy-default-benefits:grants: parameters: @@ -1730,21 +1779,24 @@ examples: application/json: {"items": [{"created_at": "2022-12-04T08:24:23.192Z", "modified_at": "2024-08-14T16:34:09.973Z", "id": "", "is_granted": false, "is_revoked": true, "subscription_id": "", "order_id": "", "customer_id": "", "user_id": "", "benefit_id": ""}], "pagination": {"total_count": 693229, "max_page": 47010}} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} products:list: speakeasy-default-products:list: responses: "200": - application/json: {"items": [{"created_at": "2023-08-23T19:26:20.850Z", "modified_at": "2024-01-14T10:26:00.433Z", "id": "", "name": "", "description": "bob inwardly beautifully comparison", "is_recurring": true, "is_archived": false, "organization_id": "", "metadata": {}, "prices": [{"created_at": "2023-06-11T18:07:18.321Z", "modified_at": "2022-04-24T08:24:21.019Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 841031, "maximum_amount": 410206, "preset_amount": 863466, "recurring_interval": "month"}], "benefits": [{"created_at": "2022-07-18T12:08:53.113Z", "modified_at": "2024-09-28T13:56:10.162Z", "id": "", "description": "gosh whenever as", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/Library", "mime_type": "", "size": 324206, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-04-16T23:50:27.729Z", "version": "", "is_uploaded": false, "created_at": "2023-05-04T10:59:46.313Z", "size_readable": "", "public_url": "https://stunning-vanadyl.net/"}, {"id": "", "organization_id": "", "name": "", "path": "/proc", "mime_type": "", "size": 948614, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-09-13T12:26:55.235Z", "version": "", "is_uploaded": true, "created_at": "2023-05-28T16:21:14.723Z", "size_readable": "", "public_url": "https://severe-ruin.info"}], "attached_custom_fields": []}, {"created_at": "2023-12-16T22:46:18.179Z", "modified_at": "2024-01-25T21:46:28.752Z", "id": "", "name": "", "description": "censor tenement commonly softly boo massive sorrowful", "is_recurring": true, "is_archived": true, "organization_id": "", "metadata": {}, "prices": [{"created_at": "2023-07-28T09:20:59.531Z", "modified_at": "2022-12-12T02:49:50.316Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "price_amount": 292228}], "benefits": [{"created_at": "2024-03-07T17:43:00.381Z", "modified_at": "2024-06-02T11:43:36.892Z", "id": "", "description": "monthly lampoon colligate linear hoot at off however kissingly whether", "selectable": true, "deletable": false, "organization_id": "", "properties": {"prefix": "", "expires": {"ttl": 232917, "timeframe": "year"}, "activations": {"limit": 197777, "enable_customer_admin": false}, "limit_usage": 832756}}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/libexec", "mime_type": "", "size": 412854, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-10-29T17:09:20.090Z", "version": "", "is_uploaded": true, "created_at": "2023-01-25T00:59:27.422Z", "size_readable": "", "public_url": "https://oblong-inspection.net"}, {"id": "", "organization_id": "", "name": "", "path": "/etc/periodic", "mime_type": "", "size": 783071, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-02-15T10:16:55.982Z", "version": "", "is_uploaded": false, "created_at": "2023-06-28T18:50:42.778Z", "size_readable": "", "public_url": "https://married-presume.net"}, {"id": "", "organization_id": "", "name": "", "path": "/var/mail", "mime_type": "", "size": 674469, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-06-25T16:02:25.369Z", "version": "", "is_uploaded": true, "created_at": "2023-09-11T11:54:14.319Z", "size_readable": "", "public_url": "https://writhing-conversation.com"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-08-14T13:01:58.600Z", "modified_at": "2023-01-30T05:46:03.648Z", "id": "", "metadata": {"key": 80289, "key1": true}, "slug": "", "name": "", "organization_id": ""}, "order": 974885, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2023-05-24T05:25:18.593Z", "modified_at": "2022-12-11T04:34:44.230Z", "id": "", "metadata": {"key": true}, "slug": "", "name": "", "organization_id": ""}, "order": 785481, "required": true}]}, {"created_at": "2023-02-08T13:08:21.816Z", "modified_at": "2022-03-14T00:27:12.916Z", "id": "", "name": "", "description": "char while beneath while whoa piglet apud suffice", "is_recurring": false, "is_archived": true, "organization_id": "", "metadata": {"key": true, "key1": 684218}, "prices": [{"created_at": "2024-09-04T00:37:31.188Z", "modified_at": "2022-05-23T19:32:31.453Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "price_amount": 387926}, {"created_at": "2024-05-23T21:54:30.697Z", "modified_at": "2023-12-20T21:19:09.188Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 249879}, {"created_at": "2022-05-07T21:01:22.996Z", "modified_at": "2022-04-17T02:32:11.293Z", "id": "", "is_archived": true, "product_id": "", "recurring_interval": "month"}], "benefits": [{"created_at": "2024-09-02T23:08:00.186Z", "modified_at": "2024-10-28T04:58:58.509Z", "id": "", "description": "powerfully considering despite darn even heavy ick sadly", "selectable": true, "deletable": false, "organization_id": ""}, {"created_at": "2023-07-06T20:46:49.834Z", "modified_at": "2024-10-05T06:03:04.753Z", "id": "", "description": "in fooey whose rival astride yowza whose portray rectangular mixed", "selectable": false, "deletable": false, "organization_id": "", "properties": {"guild_id": "", "role_id": "", "guild_token": ""}}, {"created_at": "2024-11-28T05:50:05.391Z", "modified_at": "2023-11-06T18:58:59.059Z", "id": "", "description": "supposing limply over simple unlike elliptical", "selectable": false, "deletable": true, "organization_id": "", "properties": {"prefix": "", "expires": {"ttl": 871016, "timeframe": "year"}, "activations": {"limit": 341163, "enable_customer_admin": true}, "limit_usage": 700041}}], "medias": [], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-07-14T16:13:57.819Z", "modified_at": "2023-12-21T01:52:19.079Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": ""}, "order": 706040, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2024-08-12T23:43:12.321Z", "modified_at": "2023-02-10T18:58:34.440Z", "id": "", "metadata": {"key": false, "key1": 178449, "key2": ""}, "slug": "", "name": "", "organization_id": ""}, "order": 123590, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2023-10-09T14:35:58.475Z", "modified_at": "2024-07-31T12:32:19.036Z", "id": "", "metadata": {"key": ""}, "slug": "", "name": "", "organization_id": ""}, "order": 394137, "required": true}]}], "pagination": {"total_count": 929829, "max_page": 134580}} - "422": {} + application/json: {"items": [{"created_at": "2023-08-23T19:26:20.850Z", "modified_at": "2024-01-14T10:26:00.433Z", "id": "", "name": "", "description": "bob inwardly beautifully comparison", "is_recurring": true, "is_archived": false, "organization_id": "", "metadata": {}, "prices": [{"created_at": "2024-01-14T10:26:00.433Z", "modified_at": "2022-07-14T18:23:27.528Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 152837, "maximum_amount": 635532, "preset_amount": 639387}], "benefits": [{"created_at": "2024-02-27T06:14:46.641Z", "modified_at": "2022-04-05T09:49:38.010Z", "id": "", "description": "miserably fedora blah", "selectable": false, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/Library", "mime_type": "", "size": 324206, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-04-16T23:50:27.729Z", "version": "", "is_uploaded": false, "created_at": "2023-05-04T10:59:46.313Z", "size_readable": "", "public_url": "https://stunning-vanadyl.net/"}, {"id": "", "organization_id": "", "name": "", "path": "/proc", "mime_type": "", "size": 948614, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-09-13T12:26:55.235Z", "version": "", "is_uploaded": true, "created_at": "2023-05-28T16:21:14.723Z", "size_readable": "", "public_url": "https://severe-ruin.info"}], "attached_custom_fields": []}, {"created_at": "2023-12-16T22:46:18.179Z", "modified_at": "2024-01-25T21:46:28.752Z", "id": "", "name": "", "description": "censor tenement commonly softly boo massive sorrowful", "is_recurring": true, "is_archived": true, "organization_id": "", "metadata": {}, "prices": [{"created_at": "2023-04-20T11:47:41.889Z", "modified_at": "2023-06-11T18:07:18.321Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 523875, "maximum_amount": 841031, "preset_amount": 410206, "recurring_interval": "year"}], "benefits": [{"created_at": "2023-03-06T16:40:09.484Z", "modified_at": "2022-05-05T09:08:16.530Z", "id": "", "description": "safely briefly ugh fen", "selectable": true, "deletable": false, "organization_id": "", "properties": {"note": ""}, "is_tax_applicable": true}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/libexec", "mime_type": "", "size": 412854, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-10-29T17:09:20.090Z", "version": "", "is_uploaded": true, "created_at": "2023-01-25T00:59:27.422Z", "size_readable": "", "public_url": "https://oblong-inspection.net"}, {"id": "", "organization_id": "", "name": "", "path": "/etc/periodic", "mime_type": "", "size": 783071, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-02-15T10:16:55.982Z", "version": "", "is_uploaded": false, "created_at": "2023-06-28T18:50:42.778Z", "size_readable": "", "public_url": "https://married-presume.net"}, {"id": "", "organization_id": "", "name": "", "path": "/var/mail", "mime_type": "", "size": 674469, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-06-25T16:02:25.369Z", "version": "", "is_uploaded": true, "created_at": "2023-09-11T11:54:14.319Z", "size_readable": "", "public_url": "https://writhing-conversation.com"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-06-07T14:29:00.429Z", "modified_at": "2024-11-14T19:49:34.065Z", "id": "", "metadata": {"key": 948614, "key1": true, "key2": 993677}, "slug": "", "name": "", "organization_id": ""}, "order": 974885, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2024-04-21T16:08:32.154Z", "modified_at": "2023-03-22T14:01:55.283Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": "", "properties": {"options": [{"value": "", "label": ""}, {"value": "", "label": ""}]}}, "order": 785481, "required": true}]}, {"created_at": "2023-02-08T13:08:21.816Z", "modified_at": "2022-03-14T00:27:12.916Z", "id": "", "name": "", "description": "char while beneath while whoa piglet apud suffice", "is_recurring": false, "is_archived": true, "organization_id": "", "metadata": {"key": true, "key1": 684218}, "prices": [{"created_at": "2023-03-24T05:46:37.955Z", "modified_at": "2022-02-15T08:57:09.959Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 329360, "maximum_amount": 406391, "preset_amount": 79169}, {"created_at": "2024-12-19T15:02:23.114Z", "modified_at": "2023-04-09T13:05:11.917Z", "id": "", "is_archived": true, "product_id": "", "recurring_interval": "month"}, {"created_at": "2022-02-25T05:24:29.459Z", "modified_at": "2023-11-17T05:41:51.253Z", "id": "", "is_archived": true, "product_id": "", "recurring_interval": "month"}], "benefits": [{"created_at": "2022-08-31T18:02:52.360Z", "modified_at": "2022-05-16T00:18:50.934Z", "id": "", "description": "reservation down dramatic damp inasmuch unlined monthly lampoon", "selectable": false, "deletable": true, "organization_id": "", "properties": {"note": ""}, "is_tax_applicable": true}, {"created_at": "2024-09-09T09:50:03.003Z", "modified_at": "2022-09-09T21:43:59.605Z", "id": "", "description": "linear hoot at off", "selectable": true, "deletable": true, "organization_id": "", "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "admin"}}, {"created_at": "2023-08-11T21:36:18.548Z", "modified_at": "2023-04-28T03:04:42.633Z", "id": "", "description": "kissingly whether wherever too unfortunately", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-02-12T02:35:46.909Z", "modified_at": "2024-05-27T06:03:00.110Z", "id": "", "metadata": {"key": true, "key1": 564321, "key2": false}, "slug": "", "name": "", "organization_id": ""}, "order": 706040, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2022-03-11T17:32:08.709Z", "modified_at": "2023-10-30T05:49:01.311Z", "id": "", "metadata": {"key": true}, "slug": "", "name": "", "organization_id": ""}, "order": 123590, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2023-03-28T14:59:46.668Z", "modified_at": "2022-03-29T23:56:17.126Z", "id": "", "metadata": {"key": "", "key1": false}, "slug": "", "name": "", "organization_id": ""}, "order": 394137, "required": true}]}], "pagination": {"total_count": 929829, "max_page": 134580}} + "422": + application/json: {} products:create: speakeasy-default-products:create: requestBody: application/json: {"name": "", "prices": [{"recurring_interval": "month"}]} responses: "201": - application/json: {"created_at": "2022-03-17T15:39:20.911Z", "modified_at": "2024-05-22T22:27:14.379Z", "id": "", "name": "", "description": "resolve barracks approximate though championship kookily attend alongside aw blend", "is_recurring": false, "is_archived": false, "organization_id": "", "metadata": {"key": "", "key1": ""}, "prices": [{"created_at": "2024-06-21T18:08:28.651Z", "modified_at": "2022-08-22T04:50:14.370Z", "id": "", "is_archived": false, "product_id": ""}], "benefits": [{"created_at": "2022-10-25T02:31:52.809Z", "modified_at": "2023-06-29T18:56:13.043Z", "id": "", "description": "embalm simple ouch when pfft ah vainly", "selectable": true, "deletable": false, "organization_id": "", "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "maintain"}}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/private", "mime_type": "", "size": 931588, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-10-12T04:29:06.039Z", "version": "", "is_uploaded": true, "created_at": "2024-12-13T05:18:01.829Z", "size_readable": "", "public_url": "https://charming-request.com/"}, {"id": "", "organization_id": "", "name": "", "path": "/opt/bin", "mime_type": "", "size": 572012, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-12-08T21:10:50.355Z", "version": "", "is_uploaded": true, "created_at": "2023-11-08T02:43:41.978Z", "size_readable": "", "public_url": "https://different-exterior.net"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/libdata", "mime_type": "", "size": 590634, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-09-03T08:51:57.955Z", "version": "", "is_uploaded": false, "created_at": "2024-07-21T08:37:15.860Z", "size_readable": "", "public_url": "https://distant-horde.org"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-02-21T15:45:43.913Z", "modified_at": "2024-08-26T02:51:53.751Z", "id": "", "metadata": {"key": "", "key1": 665035, "key2": true}, "slug": "", "name": "", "organization_id": ""}, "order": 70072, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2024-09-28T14:21:02.300Z", "modified_at": "2023-06-06T11:03:53.648Z", "id": "", "metadata": {"key": "", "key1": ""}, "slug": "", "name": "", "organization_id": ""}, "order": 608435, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2022-09-09T04:13:50.826Z", "modified_at": "2023-05-13T13:20:59.575Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": ""}, "order": 409874, "required": false}]} - "422": {} + application/json: {"created_at": "2022-03-17T15:39:20.911Z", "modified_at": "2024-05-22T22:27:14.379Z", "id": "", "name": "", "description": "resolve barracks approximate though championship kookily attend alongside aw blend", "is_recurring": false, "is_archived": false, "organization_id": "", "metadata": {"key": "", "key1": ""}, "prices": [{"created_at": "2024-11-08T08:43:39.394Z", "modified_at": "2022-01-01T02:16:41.381Z", "id": "", "is_archived": true, "product_id": "", "recurring_interval": "month"}], "benefits": [{"created_at": "2024-06-13T23:30:51.782Z", "modified_at": "2023-10-05T11:56:21.731Z", "id": "", "description": "barracks approximate though championship kookily attend alongside aw blend", "selectable": false, "deletable": false, "organization_id": "", "properties": {"archived": {"key": true, "key1": true}, "files": [""]}}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/private", "mime_type": "", "size": 931588, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-10-12T04:29:06.039Z", "version": "", "is_uploaded": true, "created_at": "2024-12-13T05:18:01.829Z", "size_readable": "", "public_url": "https://charming-request.com/"}, {"id": "", "organization_id": "", "name": "", "path": "/opt/bin", "mime_type": "", "size": 572012, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-12-08T21:10:50.355Z", "version": "", "is_uploaded": true, "created_at": "2023-11-08T02:43:41.978Z", "size_readable": "", "public_url": "https://different-exterior.net"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/libdata", "mime_type": "", "size": 590634, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-09-03T08:51:57.955Z", "version": "", "is_uploaded": false, "created_at": "2024-07-21T08:37:15.860Z", "size_readable": "", "public_url": "https://distant-horde.org"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-12-27T10:52:08.449Z", "modified_at": "2024-06-21T18:08:28.651Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": "", "properties": {"options": [{"value": "", "label": ""}, {"value": "", "label": ""}]}}, "order": 70072, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2023-10-29T18:55:39.709Z", "modified_at": "2022-10-25T02:31:52.809Z", "id": "", "metadata": {"key": 520049}, "slug": "", "name": "", "organization_id": ""}, "order": 608435, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2024-05-27T15:09:35.417Z", "modified_at": "2022-05-10T01:13:36.523Z", "id": "", "metadata": {"key": true, "key1": true}, "slug": "", "name": "", "organization_id": "", "properties": {"options": []}}, "order": 409874, "required": false}]} + "422": + application/json: {} products:get: speakeasy-default-products:get: parameters: @@ -1752,10 +1804,11 @@ examples: id: "" responses: "200": - application/json: {"created_at": "2024-02-07T13:54:48.821Z", "modified_at": "2023-09-05T11:33:52.011Z", "id": "", "name": "", "description": "tune only fellow scary but embarrassment metabolise", "is_recurring": false, "is_archived": false, "organization_id": "", "metadata": {"key": true, "key1": true}, "prices": [], "benefits": [{"created_at": "2024-09-22T11:43:32.718Z", "modified_at": "2024-04-06T10:37:18.493Z", "id": "", "description": "bravely quizzically how lest given wash fork whose helpful", "selectable": false, "deletable": true, "organization_id": "", "properties": {"guild_id": "", "role_id": "", "guild_token": ""}}, {"created_at": "2024-07-27T18:59:52.807Z", "modified_at": "2022-12-27T04:21:17.306Z", "id": "", "description": "obediently valley vice joshingly although", "selectable": false, "deletable": true, "organization_id": "", "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "maintain"}}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/rescue", "mime_type": "", "size": 443816, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-12-12T23:35:27.798Z", "version": "", "is_uploaded": true, "created_at": "2023-01-28T12:32:42.599Z", "size_readable": "", "public_url": "https://needy-orchid.biz/"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2022-12-11T03:15:37.914Z", "modified_at": "2024-10-20T04:57:39.211Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": ""}, "order": 893124, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2024-09-19T13:07:51.180Z", "modified_at": "2022-02-03T19:38:47.426Z", "id": "", "metadata": {"key": 609810, "key1": 306618, "key2": ""}, "slug": "", "name": "", "organization_id": ""}, "order": 318562, "required": false}]} + application/json: {"created_at": "2024-02-07T13:54:48.821Z", "modified_at": "2023-09-05T11:33:52.011Z", "id": "", "name": "", "description": "tune only fellow scary but embarrassment metabolise", "is_recurring": false, "is_archived": false, "organization_id": "", "metadata": {"key": true, "key1": true}, "prices": [], "benefits": [{"created_at": "2023-09-05T11:33:52.011Z", "modified_at": "2023-08-20T11:11:04.610Z", "id": "", "description": "hundred whereas dimly unused cone restructure gadzooks", "selectable": false, "deletable": false, "organization_id": "", "properties": {"archived": {"key": true, "key1": false, "key2": true}, "files": []}}, {"created_at": "2023-03-07T06:16:39.367Z", "modified_at": "2024-09-22T11:43:32.718Z", "id": "", "description": "jogging airman per border ascertain scholarship to blink nifty", "selectable": true, "deletable": false, "organization_id": "", "properties": {"archived": {}, "files": ["", ""]}}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/rescue", "mime_type": "", "size": 443816, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-12-12T23:35:27.798Z", "version": "", "is_uploaded": true, "created_at": "2023-01-28T12:32:42.599Z", "size_readable": "", "public_url": "https://needy-orchid.biz/"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2022-12-27T04:21:17.306Z", "modified_at": "2022-11-12T06:57:18.668Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": ""}, "order": 893124, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2022-06-04T09:34:39.316Z", "modified_at": "2023-11-10T22:35:34.856Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": "", "properties": {"options": [{"value": "", "label": ""}]}}, "order": 318562, "required": false}]} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} products:update: speakeasy-default-products:update: parameters: @@ -1763,12 +1816,13 @@ examples: id: "" responses: "200": - application/json: {"created_at": "2024-07-28T19:04:48.565Z", "modified_at": "2023-10-17T10:52:42.015Z", "id": "", "name": "", "description": "hydrolyze for drat underneath sticky", "is_recurring": true, "is_archived": true, "organization_id": "", "metadata": {"key": 119053}, "prices": [{"created_at": "2022-04-23T07:27:43.936Z", "modified_at": "2024-05-13T01:40:59.920Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 348627, "maximum_amount": 404031, "preset_amount": 166206, "recurring_interval": "year"}, {"created_at": "2023-03-07T08:49:00.130Z", "modified_at": "2022-10-16T11:25:33.944Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 845914, "maximum_amount": 652850, "preset_amount": 828354}], "benefits": [{"created_at": "2024-01-06T19:25:16.577Z", "modified_at": "2022-09-24T19:37:32.283Z", "id": "", "description": "belabor past wearily broadside backburn", "selectable": false, "deletable": true, "organization_id": "", "properties": {"note": ""}, "is_tax_applicable": true}, {"created_at": "2022-05-10T12:36:21.295Z", "modified_at": "2023-06-17T12:36:03.175Z", "id": "", "description": "represent braid courageously coin highlight norm savour", "selectable": true, "deletable": false, "organization_id": "", "properties": {"prefix": "", "expires": {"ttl": 245780, "timeframe": "month"}, "activations": {"limit": 734197, "enable_customer_admin": true}, "limit_usage": 924554}}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/root", "mime_type": "", "size": 308458, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-08-20T05:17:08.709Z", "version": "", "is_uploaded": true, "created_at": "2024-05-05T06:06:40.987Z", "size_readable": "", "public_url": "https://nice-lender.net"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/src", "mime_type": "", "size": 224552, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-08-16T05:21:16.931Z", "version": "", "is_uploaded": false, "created_at": "2022-06-01T04:50:20.641Z", "size_readable": "", "public_url": "https://forceful-collectivization.net/"}, {"id": "", "organization_id": "", "name": "", "path": "/etc/defaults", "mime_type": "", "size": 925954, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-08-14T10:29:49.382Z", "version": "", "is_uploaded": false, "created_at": "2022-08-10T12:27:48.657Z", "size_readable": "", "public_url": "https://elderly-devil.net/"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-02-06T00:04:44.770Z", "modified_at": "2022-09-15T07:55:56.375Z", "id": "", "metadata": {"key": ""}, "slug": "", "name": "", "organization_id": ""}, "order": 158724, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2023-06-05T13:23:06.952Z", "modified_at": "2024-04-14T17:47:24.255Z", "id": "", "metadata": {"key": 462626, "key1": 679791}, "slug": "", "name": "", "organization_id": ""}, "order": 676467, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2022-10-01T21:58:51.340Z", "modified_at": "2023-05-14T05:25:13.723Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": ""}, "order": 619716, "required": true}]} + application/json: {"created_at": "2024-07-28T19:04:48.565Z", "modified_at": "2023-10-17T10:52:42.015Z", "id": "", "name": "", "description": "hydrolyze for drat underneath sticky", "is_recurring": true, "is_archived": true, "organization_id": "", "metadata": {"key": 119053}, "prices": [{"created_at": "2023-01-13T16:52:57.274Z", "modified_at": "2024-12-22T15:27:45.882Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 488852, "maximum_amount": 984008, "preset_amount": 54062}, {"created_at": "2022-12-08T09:52:54.805Z", "modified_at": "2022-10-01T09:16:09.932Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 789275, "maximum_amount": 889838, "preset_amount": 302461}], "benefits": [{"created_at": "2024-04-25T05:43:42.397Z", "modified_at": "2024-01-31T02:01:14.461Z", "id": "", "description": "furthermore graceful hungrily where woot royal", "selectable": true, "deletable": false, "organization_id": "", "properties": {"guild_id": "", "role_id": "", "guild_token": ""}}, {"created_at": "2022-10-18T10:44:09.680Z", "modified_at": "2022-08-06T05:00:55.823Z", "id": "", "description": "blah intensely fragrant lest ferret", "selectable": true, "deletable": false, "organization_id": "", "properties": {"note": ""}, "is_tax_applicable": true}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/root", "mime_type": "", "size": 308458, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-08-20T05:17:08.709Z", "version": "", "is_uploaded": true, "created_at": "2024-05-05T06:06:40.987Z", "size_readable": "", "public_url": "https://nice-lender.net"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/src", "mime_type": "", "size": 224552, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-08-16T05:21:16.931Z", "version": "", "is_uploaded": false, "created_at": "2022-06-01T04:50:20.641Z", "size_readable": "", "public_url": "https://forceful-collectivization.net/"}, {"id": "", "organization_id": "", "name": "", "path": "/etc/defaults", "mime_type": "", "size": 925954, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-08-14T10:29:49.382Z", "version": "", "is_uploaded": false, "created_at": "2022-08-10T12:27:48.657Z", "size_readable": "", "public_url": "https://elderly-devil.net/"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-08-11T02:36:04.300Z", "modified_at": "2024-01-10T08:40:25.521Z", "id": "", "metadata": {"key": 44563}, "slug": "", "name": "", "organization_id": ""}, "order": 158724, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2023-07-24T20:53:49.881Z", "modified_at": "2024-02-29T13:16:52.929Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": ""}, "order": 676467, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2024-07-10T11:49:12.863Z", "modified_at": "2024-11-16T14:51:36.195Z", "id": "", "metadata": {"key": true, "key1": false, "key2": 99360}, "slug": "", "name": "", "organization_id": ""}, "order": 619716, "required": true}]} "403": application/json: {"detail": ""} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} products:update_benefits: speakeasy-default-products:update-benefits: parameters: @@ -1778,18 +1832,20 @@ examples: application/json: {"benefits": [""]} responses: "200": - application/json: {"created_at": "2023-03-21T10:54:06.081Z", "modified_at": "2024-03-05T13:29:26.777Z", "id": "", "name": "", "description": "tag shakily wholly thankfully", "is_recurring": false, "is_archived": false, "organization_id": "", "metadata": {"key": 428702, "key1": 148878}, "prices": [], "benefits": [{"created_at": "2024-10-10T14:56:19.830Z", "modified_at": "2024-11-20T11:00:09.297Z", "id": "", "description": "glossy geez scotch", "selectable": false, "deletable": true, "organization_id": ""}, {"created_at": "2024-05-23T20:40:12.507Z", "modified_at": "2023-06-20T17:54:59.183Z", "id": "", "description": "apud even painfully giant till as", "selectable": true, "deletable": false, "organization_id": "", "properties": {"archived": {}, "files": []}}, {"created_at": "2022-05-13T01:26:44.096Z", "modified_at": "2023-06-28T17:47:59.829Z", "id": "", "description": "dreamily ripe commemorate", "selectable": true, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/var/tmp", "mime_type": "", "size": 564220, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-10-13T13:56:42.606Z", "version": "", "is_uploaded": true, "created_at": "2022-09-01T05:56:05.291Z", "size_readable": "", "public_url": "https://low-outrun.org/"}, {"id": "", "organization_id": "", "name": "", "path": "/dev", "mime_type": "", "size": 529660, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-06-15T16:28:04.815Z", "version": "", "is_uploaded": false, "created_at": "2022-04-13T09:38:30.260Z", "size_readable": "", "public_url": "https://rare-reorganisation.net"}, {"id": "", "organization_id": "", "name": "", "path": "/etc/periodic", "mime_type": "", "size": 95994, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-07-08T04:10:14.526Z", "version": "", "is_uploaded": true, "created_at": "2023-09-01T13:19:30.143Z", "size_readable": "", "public_url": "https://prickly-petticoat.biz"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-05-20T01:46:57.228Z", "modified_at": "2022-08-01T22:44:57.999Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": ""}, "order": 75934, "required": true}]} + application/json: {"created_at": "2023-03-21T10:54:06.081Z", "modified_at": "2024-03-05T13:29:26.777Z", "id": "", "name": "", "description": "tag shakily wholly thankfully", "is_recurring": false, "is_archived": false, "organization_id": "", "metadata": {"key": 428702, "key1": 148878}, "prices": [], "benefits": [{"created_at": "2023-03-21T10:54:06.081Z", "modified_at": "2024-03-05T13:29:26.777Z", "id": "", "description": "tag shakily wholly thankfully", "selectable": false, "deletable": false, "organization_id": "", "properties": {"guild_id": "", "role_id": "", "guild_token": ""}}, {"created_at": "2023-03-03T23:01:58.690Z", "modified_at": "2023-04-15T20:34:00.404Z", "id": "", "description": "phooey glossy geez scotch for scarily", "selectable": false, "deletable": true, "organization_id": "", "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "maintain"}}, {"created_at": "2023-09-03T01:22:06.093Z", "modified_at": "2022-11-29T15:55:29.808Z", "id": "", "description": "hoot oil for but atomize dreamily", "selectable": false, "deletable": false, "organization_id": "", "properties": {"guild_id": "", "role_id": "", "guild_token": ""}}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/var/tmp", "mime_type": "", "size": 564220, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-10-13T13:56:42.606Z", "version": "", "is_uploaded": true, "created_at": "2022-09-01T05:56:05.291Z", "size_readable": "", "public_url": "https://low-outrun.org/"}, {"id": "", "organization_id": "", "name": "", "path": "/dev", "mime_type": "", "size": 529660, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-06-15T16:28:04.815Z", "version": "", "is_uploaded": false, "created_at": "2022-04-13T09:38:30.260Z", "size_readable": "", "public_url": "https://rare-reorganisation.net"}, {"id": "", "organization_id": "", "name": "", "path": "/etc/periodic", "mime_type": "", "size": 95994, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-07-08T04:10:14.526Z", "version": "", "is_uploaded": true, "created_at": "2023-09-01T13:19:30.143Z", "size_readable": "", "public_url": "https://prickly-petticoat.biz"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2022-10-02T08:13:22.668Z", "modified_at": "2023-03-30T07:41:47.778Z", "id": "", "metadata": {"key": true, "key1": 742936, "key2": false}, "slug": "", "name": "", "organization_id": "", "properties": {"options": [{"value": "", "label": ""}, {"value": "", "label": ""}, {"value": "", "label": ""}]}}, "order": 75934, "required": true}]} "403": application/json: {"detail": ""} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} orders:list: speakeasy-default-orders:list: responses: "200": - application/json: {"items": [{"created_at": "2023-08-23T19:26:20.850Z", "modified_at": "2024-01-14T10:26:00.433Z", "id": "", "metadata": {}, "amount": 229716, "tax_amount": 152837, "currency": "Nepalese Rupee", "billing_reason": "subscription_cycle", "billing_address": {"country": "American Samoa"}, "customer_id": "", "product_id": "", "product_price_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "customer": {"created_at": "2024-02-27T06:14:46.641Z", "modified_at": "2022-04-05T09:49:38.010Z", "id": "", "metadata": {}, "email": "Johnathan.Adams@hotmail.com", "email_verified": true, "name": "", "billing_address": {"country": "Uganda"}, "tax_id": ["in_gst", ""], "organization_id": "", "avatar_url": "https://torn-affiliate.org/"}, "user_id": "", "user": {"id": "", "email": "Tate_Blanda@yahoo.com", "public_name": ""}, "product": {"created_at": "2023-04-12T03:59:08.538Z", "modified_at": "2023-04-20T11:47:41.889Z", "id": "", "name": "", "description": "despite er boom however when uh-huh", "is_recurring": false, "is_archived": false, "organization_id": ""}, "product_price": {"created_at": "2024-09-13T12:26:55.235Z", "modified_at": "2022-01-23T14:15:37.576Z", "id": "", "is_archived": true, "product_id": ""}, "discount": {"duration": "repeating", "duration_in_months": 767950, "type": "fixed", "basis_points": 29267, "created_at": "2023-12-16T22:46:18.179Z", "modified_at": "2024-01-25T21:46:28.752Z", "id": "", "metadata": {"key": 41398, "key1": true}, "name": "", "code": "", "starts_at": "2023-03-22T09:41:56.524Z", "ends_at": "2022-03-28T18:28:26.777Z", "max_redemptions": 117386, "redemptions_count": 943672, "organization_id": ""}, "subscription": {"metadata": {"key": 370293, "key1": 212921, "key2": true}, "created_at": "2023-11-17T05:41:51.253Z", "modified_at": "2023-04-11T08:18:00.740Z", "id": "", "amount": 185394, "currency": "Cuban Peso", "recurring_interval": "month", "status": "incomplete", "current_period_start": "2024-01-09T15:39:01.722Z", "current_period_end": "2024-07-08T10:18:47.471Z", "cancel_at_period_end": true, "started_at": "2024-04-07T21:37:23.489Z", "ended_at": "2022-01-09T23:59:38.923Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "user_id": ""}}, {"created_at": "2023-06-19T05:46:32.685Z", "modified_at": "2024-04-03T18:06:02.533Z", "id": "", "metadata": {"key": "", "key1": 105170, "key2": 567608}, "amount": 100208, "tax_amount": 401228, "currency": "Malaysian Ringgit", "billing_reason": "subscription_create", "billing_address": {"country": "Ukraine"}, "customer_id": "", "product_id": "", "product_price_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "customer": {"created_at": "2024-04-01T19:36:12.946Z", "modified_at": "2024-08-10T12:40:39.409Z", "id": "", "metadata": {"key": "", "key1": ""}, "email": "Jena_Larson16@hotmail.com", "email_verified": true, "name": "", "billing_address": {"country": "Haiti"}, "tax_id": ["", "do_rcn", "cr_tin"], "organization_id": "", "avatar_url": "https://utilized-quit.net/"}, "user_id": "", "user": {"id": "", "email": "Marty_Kshlerin84@hotmail.com", "public_name": ""}, "product": {"created_at": "2023-06-21T13:26:28.598Z", "modified_at": "2023-01-19T17:39:17.317Z", "id": "", "name": "", "description": "earth that early abseil", "is_recurring": false, "is_archived": true, "organization_id": ""}, "product_price": {"created_at": "2022-09-13T18:15:24.131Z", "modified_at": "2023-04-01T20:36:57.465Z", "id": "", "is_archived": false, "product_id": ""}, "discount": {"duration": "forever", "type": "fixed", "amount": 962607, "currency": "Norwegian Krone", "created_at": "2022-01-22T06:30:00.744Z", "modified_at": "2022-06-03T14:18:34.914Z", "id": "", "metadata": {"key": "", "key1": 439898, "key2": ""}, "name": "", "code": "", "starts_at": "2024-08-22T13:40:19.150Z", "ends_at": "2023-04-30T04:53:25.451Z", "max_redemptions": 561143, "redemptions_count": 207713, "organization_id": ""}, "subscription": {"metadata": {}, "created_at": "2023-04-28T12:09:29.137Z", "modified_at": "2023-03-31T01:03:36.657Z", "id": "", "amount": 253529, "currency": "Tugrik", "recurring_interval": "year", "status": "canceled", "current_period_start": "2022-06-16T22:11:32.719Z", "current_period_end": "2024-10-03T23:44:36.269Z", "cancel_at_period_end": false, "started_at": "2023-06-19T04:12:45.071Z", "ended_at": "2024-12-03T09:47:00.347Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "user_id": ""}}, {"created_at": "2022-09-13T06:39:19.968Z", "modified_at": "2022-01-21T07:06:12.853Z", "id": "", "metadata": {}, "amount": 621450, "tax_amount": 832756, "currency": "Hryvnia", "billing_reason": "subscription_update", "billing_address": {"country": "Iceland"}, "customer_id": "", "product_id": "", "product_price_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "customer": {"created_at": "2024-10-29T17:09:20.090Z", "modified_at": "2022-11-06T03:01:50.647Z", "id": "", "metadata": {"key": false}, "email": "Mollie.Sawayn@yahoo.com", "email_verified": false, "name": "", "billing_address": {"country": "Lebanon"}, "tax_id": ["us_ein", "ca_gst_hst"], "organization_id": "", "avatar_url": "https://obedient-plumber.org/"}, "user_id": "", "user": {"id": "", "email": "Anika_Hagenes@gmail.com", "public_name": ""}, "product": {"created_at": "2023-03-28T14:59:46.668Z", "modified_at": "2022-03-29T23:56:17.126Z", "id": "", "name": "", "description": "how though char while beneath while whoa piglet", "is_recurring": true, "is_archived": false, "organization_id": ""}, "product_price": {"created_at": "2024-11-03T16:27:04.267Z", "modified_at": "2024-07-03T01:58:07.843Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 436278, "recurring_interval": "month"}, "discount": {"duration": "once", "duration_in_months": 784266, "type": "percentage", "basis_points": 882392, "created_at": "2024-06-08T14:13:41.397Z", "modified_at": "2022-05-02T01:47:04.536Z", "id": "", "metadata": {"key": true, "key1": 684218}, "name": "", "code": "", "starts_at": "2024-10-06T07:08:41.329Z", "ends_at": "2024-12-31T08:16:04.009Z", "max_redemptions": 161254, "redemptions_count": 891448, "organization_id": ""}, "subscription": {"metadata": {}, "created_at": "2023-08-15T18:41:19.055Z", "modified_at": "2023-03-02T04:00:01.219Z", "id": "", "amount": 586154, "currency": "Dalasi", "recurring_interval": "year", "status": "past_due", "current_period_start": "2022-10-19T07:09:33.817Z", "current_period_end": "2022-10-01T20:49:37.013Z", "cancel_at_period_end": true, "started_at": "2024-03-08T08:44:16.186Z", "ended_at": "2022-05-07T21:01:22.996Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "user_id": ""}}], "pagination": {"total_count": 96811, "max_page": 35128}} - "422": {} + application/json: {"items": [{"created_at": "2023-08-23T19:26:20.850Z", "modified_at": "2024-01-14T10:26:00.433Z", "id": "", "metadata": {}, "amount": 229716, "tax_amount": 152837, "currency": "Nepalese Rupee", "billing_reason": "subscription_cycle", "billing_address": {"country": "American Samoa"}, "customer_id": "", "product_id": "", "product_price_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "customer": {"created_at": "2024-02-27T06:14:46.641Z", "modified_at": "2022-04-05T09:49:38.010Z", "id": "", "metadata": {}, "email": "Johnathan.Adams@hotmail.com", "email_verified": true, "name": "", "billing_address": {"country": "Uganda"}, "tax_id": ["in_gst", ""], "organization_id": "", "avatar_url": "https://torn-affiliate.org/"}, "user_id": "", "user": {"id": "", "email": "Tate_Blanda@yahoo.com", "public_name": ""}, "product": {"created_at": "2023-04-12T03:59:08.538Z", "modified_at": "2023-04-20T11:47:41.889Z", "id": "", "name": "", "description": "despite er boom however when uh-huh", "is_recurring": false, "is_archived": false, "organization_id": ""}, "product_price": {"created_at": "2024-01-14T10:26:00.433Z", "modified_at": "2022-07-14T18:23:27.528Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 152837, "maximum_amount": 635532, "preset_amount": 639387}, "discount": {"duration": "repeating", "type": "fixed", "amount": 68504, "currency": "Zloty", "created_at": "2023-07-13T19:57:33.016Z", "modified_at": "2023-11-26T18:23:24.264Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2022-03-01T20:22:54.911Z", "ends_at": "2023-02-08T01:09:52.088Z", "max_redemptions": 485729, "redemptions_count": 73227, "organization_id": ""}, "subscription": {"metadata": {"key": 370293, "key1": 212921, "key2": true}, "created_at": "2023-11-17T05:41:51.253Z", "modified_at": "2023-04-11T08:18:00.740Z", "id": "", "amount": 185394, "currency": "Cuban Peso", "recurring_interval": "month", "status": "incomplete", "current_period_start": "2024-01-09T15:39:01.722Z", "current_period_end": "2024-07-08T10:18:47.471Z", "cancel_at_period_end": true, "started_at": "2024-04-07T21:37:23.489Z", "ended_at": "2022-01-09T23:59:38.923Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "user_id": ""}}, {"created_at": "2023-06-19T05:46:32.685Z", "modified_at": "2024-04-03T18:06:02.533Z", "id": "", "metadata": {"key": "", "key1": 105170, "key2": 567608}, "amount": 100208, "tax_amount": 401228, "currency": "Malaysian Ringgit", "billing_reason": "subscription_create", "billing_address": {"country": "Ukraine"}, "customer_id": "", "product_id": "", "product_price_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "customer": {"created_at": "2024-04-01T19:36:12.946Z", "modified_at": "2024-08-10T12:40:39.409Z", "id": "", "metadata": {"key": "", "key1": ""}, "email": "Jena_Larson16@hotmail.com", "email_verified": true, "name": "", "billing_address": {"country": "Haiti"}, "tax_id": ["", "do_rcn", "cr_tin"], "organization_id": "", "avatar_url": "https://utilized-quit.net/"}, "user_id": "", "user": {"id": "", "email": "Marty_Kshlerin84@hotmail.com", "public_name": ""}, "product": {"created_at": "2023-06-21T13:26:28.598Z", "modified_at": "2023-01-19T17:39:17.317Z", "id": "", "name": "", "description": "earth that early abseil", "is_recurring": false, "is_archived": true, "organization_id": ""}, "product_price": {"created_at": "2024-08-18T13:00:42.665Z", "modified_at": "2023-06-22T03:00:04.393Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 322596, "maximum_amount": 860596, "preset_amount": 18278}, "discount": {"duration": "forever", "duration_in_months": 913465, "type": "fixed", "basis_points": 75058, "created_at": "2024-09-10T04:30:13.188Z", "modified_at": "2022-05-29T14:05:29.727Z", "id": "", "metadata": {"key": 432930}, "name": "", "code": "", "starts_at": "2023-06-11T18:07:18.321Z", "ends_at": "2022-04-24T08:24:21.019Z", "max_redemptions": 523875, "redemptions_count": 841031, "organization_id": ""}, "subscription": {"metadata": {}, "created_at": "2023-04-28T12:09:29.137Z", "modified_at": "2023-03-31T01:03:36.657Z", "id": "", "amount": 253529, "currency": "Tugrik", "recurring_interval": "year", "status": "canceled", "current_period_start": "2022-06-16T22:11:32.719Z", "current_period_end": "2024-10-03T23:44:36.269Z", "cancel_at_period_end": false, "started_at": "2023-06-19T04:12:45.071Z", "ended_at": "2024-12-03T09:47:00.347Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "user_id": ""}}, {"created_at": "2022-09-13T06:39:19.968Z", "modified_at": "2022-01-21T07:06:12.853Z", "id": "", "metadata": {}, "amount": 621450, "tax_amount": 832756, "currency": "Hryvnia", "billing_reason": "subscription_update", "billing_address": {"country": "Iceland"}, "customer_id": "", "product_id": "", "product_price_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "customer": {"created_at": "2024-10-29T17:09:20.090Z", "modified_at": "2022-11-06T03:01:50.647Z", "id": "", "metadata": {"key": 863466}, "email": "Mollie.Sawayn@yahoo.com", "email_verified": false, "name": "", "billing_address": {"country": "Lebanon"}, "tax_id": ["us_ein", "ca_gst_hst"], "organization_id": "", "avatar_url": "https://obedient-plumber.org/"}, "user_id": "", "user": {"id": "", "email": "Anika_Hagenes@gmail.com", "public_name": ""}, "product": {"created_at": "2023-03-28T14:59:46.668Z", "modified_at": "2022-03-29T23:56:17.126Z", "id": "", "name": "", "description": "how though char while beneath while whoa piglet", "is_recurring": true, "is_archived": false, "organization_id": ""}, "product_price": {"created_at": "2022-05-05T09:08:16.530Z", "modified_at": "2022-07-18T12:08:53.113Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 33597, "maximum_amount": 628106, "preset_amount": 934960, "recurring_interval": "year"}, "discount": {"duration": "repeating", "type": "percentage", "amount": 838930, "currency": "Lilangeni", "created_at": "2024-12-27T15:09:02.427Z", "modified_at": "2022-03-31T02:45:39.610Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2022-03-23T01:47:30.770Z", "ends_at": "2024-07-06T02:51:23.749Z", "max_redemptions": 777245, "redemptions_count": 141764, "organization_id": ""}, "subscription": {"metadata": {}, "created_at": "2023-08-15T18:41:19.055Z", "modified_at": "2023-03-02T04:00:01.219Z", "id": "", "amount": 586154, "currency": "Dalasi", "recurring_interval": "year", "status": "past_due", "current_period_start": "2022-10-19T07:09:33.817Z", "current_period_end": "2022-10-01T20:49:37.013Z", "cancel_at_period_end": true, "started_at": "2024-03-08T08:44:16.186Z", "ended_at": "2022-05-07T21:01:22.996Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "user_id": ""}}], "pagination": {"total_count": 96811, "max_page": 35128}} + "422": + application/json: {} orders:get: speakeasy-default-orders:get: parameters: @@ -1797,10 +1853,11 @@ examples: id: "" responses: "200": - application/json: {"created_at": "2024-02-07T13:54:48.821Z", "modified_at": "2023-09-05T11:33:52.011Z", "id": "", "metadata": {"key": 969961, "key1": 450824}, "amount": 262795, "tax_amount": 213457, "currency": "CFA Franc BEAC", "billing_reason": "subscription_create", "billing_address": {"country": "Sierra Leone"}, "customer_id": "", "product_id": "", "product_price_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "customer": {"created_at": "2022-03-28T11:05:23.685Z", "modified_at": "2022-08-30T01:43:46.030Z", "id": "", "metadata": {"key": ""}, "email": "Rachael_Rogahn55@yahoo.com", "email_verified": true, "name": "", "billing_address": {"country": "Chile"}, "tax_id": [], "organization_id": "", "avatar_url": "https://fond-reconsideration.net"}, "user_id": "", "user": {"id": "", "email": "Sylvester_Bartoletti@hotmail.com", "public_name": ""}, "product": {"created_at": "2022-05-26T16:57:22.796Z", "modified_at": "2022-06-25T00:21:23.098Z", "id": "", "name": "", "description": "roundabout middle ha rise readily usefully raw", "is_recurring": true, "is_archived": true, "organization_id": ""}, "product_price": {"created_at": "2024-11-03T02:18:54.211Z", "modified_at": "2023-03-10T03:01:19.173Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 58014, "maximum_amount": 546533, "preset_amount": 41101, "recurring_interval": "month"}, "discount": {"duration": "forever", "type": "fixed", "basis_points": 974994, "created_at": "2023-08-23T17:07:10.826Z", "modified_at": "2024-05-12T07:32:27.170Z", "id": "", "metadata": {"key": "", "key1": 844917, "key2": 576892}, "name": "", "code": "", "starts_at": "2024-07-16T00:03:53.405Z", "ends_at": "2023-01-20T11:46:53.929Z", "max_redemptions": 534384, "redemptions_count": 901064, "organization_id": ""}, "subscription": {"metadata": {"key": "", "key1": 73798, "key2": true}, "created_at": "2024-02-25T00:40:57.545Z", "modified_at": "2022-10-11T17:06:00.229Z", "id": "", "amount": 698722, "currency": "Malagasy Ariary", "recurring_interval": "year", "status": "trialing", "current_period_start": "2024-05-16T19:46:15.177Z", "current_period_end": "2022-03-02T09:16:28.575Z", "cancel_at_period_end": false, "started_at": "2024-07-27T18:59:52.807Z", "ended_at": "2022-12-27T04:21:17.306Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "user_id": ""}} + application/json: {"created_at": "2024-02-07T13:54:48.821Z", "modified_at": "2023-09-05T11:33:52.011Z", "id": "", "metadata": {"key": 969961, "key1": 450824}, "amount": 262795, "tax_amount": 213457, "currency": "CFA Franc BEAC", "billing_reason": "subscription_create", "billing_address": {"country": "Sierra Leone"}, "customer_id": "", "product_id": "", "product_price_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "customer": {"created_at": "2022-03-28T11:05:23.685Z", "modified_at": "2022-08-30T01:43:46.030Z", "id": "", "metadata": {"key": ""}, "email": "Rachael_Rogahn55@yahoo.com", "email_verified": true, "name": "", "billing_address": {"country": "Chile"}, "tax_id": [], "organization_id": "", "avatar_url": "https://fond-reconsideration.net"}, "user_id": "", "user": {"id": "", "email": "Sylvester_Bartoletti@hotmail.com", "public_name": ""}, "product": {"created_at": "2022-05-26T16:57:22.796Z", "modified_at": "2022-06-25T00:21:23.098Z", "id": "", "name": "", "description": "roundabout middle ha rise readily usefully raw", "is_recurring": true, "is_archived": true, "organization_id": ""}, "product_price": {"created_at": "2023-08-20T11:11:04.610Z", "modified_at": "2023-07-26T06:33:15.810Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 458049, "maximum_amount": 450824, "preset_amount": 262795}, "discount": {"duration": "repeating", "type": "fixed", "amount": 801373, "currency": "Taka", "created_at": "2022-08-30T01:43:46.030Z", "modified_at": "2022-12-10T13:21:20.945Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2023-08-29T15:06:35.685Z", "ends_at": "2024-06-02T05:45:06.910Z", "max_redemptions": 380699, "redemptions_count": 746585, "organization_id": ""}, "subscription": {"metadata": {"key": "", "key1": 73798, "key2": true}, "created_at": "2024-02-25T00:40:57.545Z", "modified_at": "2022-10-11T17:06:00.229Z", "id": "", "amount": 698722, "currency": "Malagasy Ariary", "recurring_interval": "year", "status": "trialing", "current_period_start": "2024-05-16T19:46:15.177Z", "current_period_end": "2022-03-02T09:16:28.575Z", "cancel_at_period_end": false, "started_at": "2024-07-27T18:59:52.807Z", "ended_at": "2022-12-27T04:21:17.306Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "user_id": ""}} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} orders:invoice: speakeasy-default-orders:invoice: parameters: @@ -1811,15 +1868,17 @@ examples: application/json: {"url": "https://those-director.org"} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} checkouts:create: speakeasy-default-checkouts:create: requestBody: application/json: {"product_price_id": "", "success_url": "https://probable-heating.com/"} responses: "201": - application/json: {"id": "", "customer_email": "", "customer_name": "", "product": {"created_at": "2022-03-17T15:39:20.911Z", "modified_at": "2024-05-22T22:27:14.379Z", "id": "", "name": "", "description": "resolve barracks approximate though championship kookily attend alongside aw blend", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2023-04-20T19:31:49.649Z", "modified_at": "2024-02-20T14:03:40.154Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "price_amount": 823683, "recurring_interval": "month"}, {"created_at": "2023-10-29T18:55:39.709Z", "modified_at": "2022-10-25T02:31:52.809Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 609755}], "benefits": [{"created_at": "2024-03-09T19:18:20.415Z", "modified_at": "2024-05-27T15:09:35.417Z", "id": "", "type": "custom", "description": "than rightfully brightly sleet where schedule insolence", "selectable": false, "deletable": true, "organization_id": ""}, {"created_at": "2022-10-10T12:11:05.217Z", "modified_at": "2024-12-13T05:18:01.829Z", "id": "", "type": "discord", "description": "obligation elliptical ick", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/src", "mime_type": "", "size": 199311, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-09-12T01:54:42.561Z", "version": "", "is_uploaded": false, "created_at": "2024-03-28T10:54:13.192Z", "size_readable": "", "public_url": "https://blank-manner.org/"}, {"id": "", "organization_id": "", "name": "", "path": "/var", "mime_type": "", "size": 475786, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-02-02T04:08:07.069Z", "version": "", "is_uploaded": true, "created_at": "2022-10-14T21:15:17.585Z", "size_readable": "", "public_url": "https://impolite-dish.biz"}, {"id": "", "organization_id": "", "name": "", "path": "/private", "mime_type": "", "size": 149413, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-03-26T05:20:06.588Z", "version": "", "is_uploaded": false, "created_at": "2024-02-10T15:32:31.554Z", "size_readable": "", "public_url": "https://mild-switchboard.info/"}]}, "product_price": {"created_at": "2024-09-17T13:33:11.923Z", "modified_at": "2023-09-04T11:39:39.566Z", "id": "", "is_archived": false, "product_id": "", "recurring_interval": "year"}} - "422": {} + application/json: {"id": "", "customer_email": "", "customer_name": "", "product": {"created_at": "2022-03-17T15:39:20.911Z", "modified_at": "2024-05-22T22:27:14.379Z", "id": "", "name": "", "description": "resolve barracks approximate though championship kookily attend alongside aw blend", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2023-04-03T12:48:32.253Z", "modified_at": "2022-05-28T06:20:22.766Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 796474, "maximum_amount": 951062, "preset_amount": 86, "recurring_interval": "month"}, {"created_at": "2024-06-13T23:30:51.782Z", "modified_at": "2023-10-05T11:56:21.731Z", "id": "", "is_archived": false, "product_id": "", "recurring_interval": "year"}], "benefits": [{"created_at": "2024-03-09T19:18:20.415Z", "modified_at": "2024-05-27T15:09:35.417Z", "id": "", "type": "custom", "description": "than rightfully brightly sleet where schedule insolence", "selectable": false, "deletable": true, "organization_id": ""}, {"created_at": "2022-10-10T12:11:05.217Z", "modified_at": "2024-12-13T05:18:01.829Z", "id": "", "type": "discord", "description": "obligation elliptical ick", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/src", "mime_type": "", "size": 199311, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-09-12T01:54:42.561Z", "version": "", "is_uploaded": false, "created_at": "2024-03-28T10:54:13.192Z", "size_readable": "", "public_url": "https://blank-manner.org/"}, {"id": "", "organization_id": "", "name": "", "path": "/var", "mime_type": "", "size": 475786, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-02-02T04:08:07.069Z", "version": "", "is_uploaded": true, "created_at": "2022-10-14T21:15:17.585Z", "size_readable": "", "public_url": "https://impolite-dish.biz"}, {"id": "", "organization_id": "", "name": "", "path": "/private", "mime_type": "", "size": 149413, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-03-26T05:20:06.588Z", "version": "", "is_uploaded": false, "created_at": "2024-02-10T15:32:31.554Z", "size_readable": "", "public_url": "https://mild-switchboard.info/"}]}, "product_price": {"created_at": "2022-01-20T11:09:16.789Z", "modified_at": "2022-09-10T10:08:53.440Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 64738, "recurring_interval": "month"}} + "422": + application/json: {} checkouts:get: speakeasy-default-checkouts:get: parameters: @@ -1827,22 +1886,25 @@ examples: id: "" responses: "200": - application/json: {"id": "", "customer_email": "", "customer_name": "", "product": {"created_at": "2024-02-07T13:54:48.821Z", "modified_at": "2023-09-05T11:33:52.011Z", "id": "", "name": "", "description": "tune only fellow scary but embarrassment metabolise", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2024-03-05T14:23:34.462Z", "modified_at": "2023-05-15T03:28:18.685Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 716006, "maximum_amount": 392574, "preset_amount": 908293}, {"created_at": "2023-04-01T04:11:43.083Z", "modified_at": "2022-06-13T10:08:35.363Z", "id": "", "is_archived": false, "product_id": ""}], "benefits": [{"created_at": "2024-11-07T20:31:03.453Z", "modified_at": "2023-06-18T09:19:42.888Z", "id": "", "type": "custom", "description": "unless scholarship ick", "selectable": true, "deletable": true, "organization_id": ""}, {"created_at": "2022-03-05T14:01:26.927Z", "modified_at": "2023-08-22T23:59:38.589Z", "id": "", "type": "custom", "description": "wash fork whose helpful calmly council", "selectable": true, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/dev", "mime_type": "", "size": 363455, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-11-12T10:51:39.493Z", "version": "", "is_uploaded": false, "created_at": "2024-06-10T14:56:30.468Z", "size_readable": "", "public_url": "https://violent-hyphenation.info/"}, {"id": "", "organization_id": "", "name": "", "path": "/var/spool", "mime_type": "", "size": 362683, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-04-16T15:25:27.950Z", "version": "", "is_uploaded": true, "created_at": "2023-11-10T06:42:52.951Z", "size_readable": "", "public_url": "https://descriptive-giggle.biz"}]}, "product_price": {"created_at": "2024-10-18T08:53:06.113Z", "modified_at": "2022-11-20T17:50:58.298Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "price_amount": 22258}} - "422": {} + application/json: {"id": "", "customer_email": "", "customer_name": "", "product": {"created_at": "2024-02-07T13:54:48.821Z", "modified_at": "2023-09-05T11:33:52.011Z", "id": "", "name": "", "description": "tune only fellow scary but embarrassment metabolise", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2023-08-20T11:11:04.610Z", "modified_at": "2023-07-26T06:33:15.810Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 458049, "maximum_amount": 450824, "preset_amount": 262795}, {"created_at": "2023-04-26T04:53:50.189Z", "modified_at": "2024-05-28T07:17:57.134Z", "id": "", "is_archived": true, "product_id": "", "recurring_interval": "month"}], "benefits": [{"created_at": "2024-11-07T20:31:03.453Z", "modified_at": "2023-06-18T09:19:42.888Z", "id": "", "type": "custom", "description": "unless scholarship ick", "selectable": true, "deletable": true, "organization_id": ""}, {"created_at": "2022-03-05T14:01:26.927Z", "modified_at": "2023-08-22T23:59:38.589Z", "id": "", "type": "custom", "description": "wash fork whose helpful calmly council", "selectable": true, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/dev", "mime_type": "", "size": 363455, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-11-12T10:51:39.493Z", "version": "", "is_uploaded": false, "created_at": "2024-06-10T14:56:30.468Z", "size_readable": "", "public_url": "https://violent-hyphenation.info/"}, {"id": "", "organization_id": "", "name": "", "path": "/var/spool", "mime_type": "", "size": 362683, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-04-16T15:25:27.950Z", "version": "", "is_uploaded": true, "created_at": "2023-11-10T06:42:52.951Z", "size_readable": "", "public_url": "https://descriptive-giggle.biz"}]}, "product_price": {"created_at": "2023-08-29T15:06:35.685Z", "modified_at": "2024-06-02T05:45:06.910Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 746585, "recurring_interval": "year"}} + "422": + application/json: {} checkouts:custom:list: speakeasy-default-checkouts:custom:list: responses: "200": - application/json: {"items": [{"created_at": "2023-08-23T19:26:20.850Z", "modified_at": "2024-01-14T10:26:00.433Z", "id": "", "status": "open", "client_secret": "", "url": "https://crooked-overload.name/", "expires_at": "2022-01-20T06:21:22.156Z", "success_url": "https://breakable-bathrobe.net", "embed_origin": "", "amount": 509883, "tax_amount": 633911, "currency": "Afghani", "subtotal_amount": 54607, "total_amount": 367745, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": true, "is_discount_applicable": true, "is_free_product_price": false, "is_payment_required": false, "is_payment_setup_required": false, "is_payment_form_required": true, "customer_id": "", "customer_name": "", "customer_email": "Enid42@gmail.com", "customer_ip_address": "", "customer_billing_address": {"country": "Chad"}, "customer_tax_id": "", "metadata": {}, "product": {"created_at": "2024-09-10T04:30:13.188Z", "modified_at": "2022-05-29T14:05:29.727Z", "id": "", "name": "", "description": "aha although gosh whenever as plastic", "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2023-07-09T07:59:15.466Z", "modified_at": "2024-11-05T16:19:50.933Z", "id": "", "is_archived": false, "product_id": ""}, {"created_at": "2024-12-25T01:40:30.203Z", "modified_at": "2024-03-07T11:07:08.720Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 406555, "maximum_amount": 29267, "preset_amount": 652326, "recurring_interval": "year"}, {"created_at": "2022-02-15T08:57:09.959Z", "modified_at": "2024-06-28T00:46:13.804Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 406391, "maximum_amount": 79169, "preset_amount": 117386}], "benefits": [{"created_at": "2024-12-19T15:02:23.114Z", "modified_at": "2023-04-09T13:05:11.917Z", "id": "", "type": "discord", "description": "fooey a supposing regarding times uselessly", "selectable": true, "deletable": false, "organization_id": ""}, {"created_at": "2022-12-12T02:49:50.316Z", "modified_at": "2023-11-13T05:16:04.525Z", "id": "", "type": "ads", "description": "merrily wherever failing orchestrate lest", "selectable": false, "deletable": true, "organization_id": ""}, {"created_at": "2023-12-12T21:57:01.257Z", "modified_at": "2023-03-24T19:09:17.797Z", "id": "", "type": "ads", "description": "noisily consequently husband", "selectable": false, "deletable": true, "organization_id": ""}], "medias": []}, "product_price": {"created_at": "2022-10-05T20:49:32.362Z", "modified_at": "2023-08-29T08:32:20.644Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 810689, "maximum_amount": 152303, "preset_amount": 918786, "recurring_interval": "year"}, "discount": {"duration": "repeating", "duration_in_months": 232917, "type": "fixed", "amount": 197777, "currency": "Cordoba Oro", "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-04-21T05:31:02.040Z", "modified_at": "2023-03-29T11:42:09.368Z", "id": "", "metadata": {"key": "", "key1": 824962, "key2": 467428}, "slug": "", "name": "", "organization_id": ""}, "order": 726370, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2023-02-15T10:16:55.982Z", "modified_at": "2024-07-30T17:58:06.895Z", "id": "", "metadata": {"key": true}, "slug": "", "name": "", "organization_id": "", "properties": {"options": [{"value": "", "label": ""}, {"value": "", "label": ""}]}}, "order": 800413, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2022-06-25T16:02:25.369Z", "modified_at": "2023-04-23T16:13:21.235Z", "id": "", "metadata": {"key": false, "key1": ""}, "slug": "", "name": "", "organization_id": "", "properties": {"options": []}}, "order": 608798, "required": true}]}, {"created_at": "2024-08-14T13:01:58.600Z", "modified_at": "2023-01-30T05:46:03.648Z", "id": "", "status": "confirmed", "client_secret": "", "url": "https://boring-populist.biz/", "expires_at": "2024-12-04T11:22:18.277Z", "success_url": "https://grave-information.biz", "embed_origin": "", "amount": 272832, "tax_amount": 792775, "currency": "UAE Dirham", "subtotal_amount": 785481, "total_amount": 327973, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": true, "is_discount_applicable": true, "is_free_product_price": false, "is_payment_required": false, "is_payment_setup_required": true, "is_payment_form_required": false, "customer_id": "", "customer_name": "", "customer_email": "Dominique83@yahoo.com", "customer_ip_address": "", "customer_billing_address": {"country": "Belgium"}, "customer_tax_id": "", "metadata": {"key": "", "key1": true}, "product": {"created_at": "2022-04-28T15:20:19.317Z", "modified_at": "2023-06-28T02:37:34.714Z", "id": "", "name": "", "description": "and jaggedly aftermath after although while", "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2022-06-26T17:38:16.835Z", "modified_at": "2024-09-04T00:37:31.188Z", "id": "", "is_archived": true, "product_id": ""}, {"created_at": "2023-10-05T10:11:23.447Z", "modified_at": "2022-12-10T20:12:06.938Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 655920, "maximum_amount": 265783, "preset_amount": 249879}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/etc/defaults", "mime_type": "", "size": 96811, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-02-08T12:01:40.965Z", "version": "", "is_uploaded": true, "created_at": "2024-07-17T07:32:23.211Z", "size_readable": "", "public_url": "https://unimportant-tusk.net/"}, {"id": "", "organization_id": "", "name": "", "path": "/var/log", "mime_type": "", "size": 714491, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-01-18T21:03:55.557Z", "version": "", "is_uploaded": false, "created_at": "2022-05-10T00:49:50.875Z", "size_readable": "", "public_url": "https://passionate-dream.net/"}]}, "product_price": {"created_at": "2022-06-11T03:56:34.876Z", "modified_at": "2023-06-16T02:57:43.819Z", "id": "", "is_archived": true, "product_id": "", "recurring_interval": "year"}, "discount": {"duration": "once", "duration_in_months": 981370, "type": "percentage", "amount": 20448, "currency": "Iraqi Dinar", "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2022-11-08T22:51:52.592Z", "modified_at": "2024-03-15T20:26:37.826Z", "id": "", "metadata": {"key": "", "key1": ""}, "slug": "", "name": "", "organization_id": "", "properties": {"options": [{"value": "", "label": ""}, {"value": "", "label": ""}]}}, "order": 64260, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2022-10-08T07:15:02.232Z", "modified_at": "2022-07-04T18:07:17.452Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": ""}, "order": 741584, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2023-06-25T22:13:08.086Z", "modified_at": "2024-08-10T10:58:19.822Z", "id": "", "metadata": {"key": 734320, "key1": true, "key2": ""}, "slug": "", "name": "", "organization_id": ""}, "order": 955132, "required": false}]}, {"created_at": "2024-11-10T02:07:57.067Z", "modified_at": "2024-01-03T04:16:32.739Z", "id": "", "status": "confirmed", "client_secret": "", "url": "https://esteemed-typeface.info", "expires_at": "2024-01-27T20:57:36.235Z", "success_url": "https://subtle-formula.name/", "embed_origin": "", "amount": 919939, "tax_amount": 893108, "currency": "Bhutanese Ngultrum", "subtotal_amount": 86895, "total_amount": 299166, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": true, "is_discount_applicable": false, "is_free_product_price": false, "is_payment_required": true, "is_payment_setup_required": true, "is_payment_form_required": true, "customer_id": "", "customer_name": "", "customer_email": "Marcella.OKeefe44@gmail.com", "customer_ip_address": "", "customer_billing_address": {"country": "Guam"}, "customer_tax_id": "", "metadata": {"key": 300024, "key1": true, "key2": ""}, "product": {"created_at": "2022-06-03T07:49:02.697Z", "modified_at": "2024-09-22T10:31:41.180Z", "id": "", "name": "", "description": "mid next dearly competent tender right plump", "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2023-06-03T17:02:41.566Z", "modified_at": "2022-01-13T23:48:07.394Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "price_amount": 584284}], "benefits": [{"created_at": "2022-07-07T02:09:47.800Z", "modified_at": "2024-06-14T16:34:33.586Z", "id": "", "type": "custom", "description": "bathhouse nifty for second characterization apud", "selectable": false, "deletable": false, "organization_id": ""}, {"created_at": "2023-06-09T07:01:01.703Z", "modified_at": "2024-08-12T23:43:12.321Z", "id": "", "type": "discord", "description": "crossly but unless blowgun zowie yahoo on drum dusk rightfully", "selectable": false, "deletable": false, "organization_id": ""}, {"created_at": "2024-02-17T23:39:37.895Z", "modified_at": "2022-10-09T13:38:48.456Z", "id": "", "type": "custom", "description": "hm technician jaggedly scarcely honestly submitter likewise", "selectable": true, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/var/mail", "mime_type": "", "size": 458459, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-08-04T18:39:28.864Z", "version": "", "is_uploaded": false, "created_at": "2023-03-04T00:12:10.008Z", "size_readable": "", "public_url": "https://cloudy-tackle.net/"}]}, "product_price": {"created_at": "2022-07-07T06:05:22.693Z", "modified_at": "2023-02-11T01:38:19.826Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 663136, "maximum_amount": 197579, "preset_amount": 490604, "recurring_interval": "month"}, "discount": {"duration": "once", "duration_in_months": 91394, "type": "fixed", "amount": 263847, "currency": "Hryvnia", "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2022-04-01T16:32:23.802Z", "modified_at": "2023-08-07T00:47:15.900Z", "id": "", "metadata": {"key": false}, "slug": "", "name": "", "organization_id": "", "properties": {"options": [{"value": "", "label": ""}, {"value": "", "label": ""}]}}, "order": 512850, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2023-10-21T09:03:42.323Z", "modified_at": "2024-10-15T15:45:55.786Z", "id": "", "metadata": {"key": false}, "slug": "", "name": "", "organization_id": "", "properties": {"options": []}}, "order": 602353, "required": true}]}], "pagination": {"total_count": 388886, "max_page": 382592}} - "422": {} + application/json: {"items": [{"created_at": "2023-08-23T19:26:20.850Z", "modified_at": "2024-01-14T10:26:00.433Z", "id": "", "status": "open", "client_secret": "", "url": "https://crooked-overload.name/", "expires_at": "2022-01-20T06:21:22.156Z", "success_url": "https://breakable-bathrobe.net", "embed_origin": "", "amount": 509883, "tax_amount": 633911, "currency": "Afghani", "subtotal_amount": 54607, "total_amount": 367745, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": true, "is_discount_applicable": true, "is_free_product_price": false, "is_payment_required": false, "is_payment_setup_required": false, "is_payment_form_required": true, "customer_id": "", "customer_name": "", "customer_email": "Enid42@gmail.com", "customer_ip_address": "", "customer_billing_address": {"country": "Chad"}, "customer_tax_id": "", "metadata": {}, "product": {"created_at": "2024-09-10T04:30:13.188Z", "modified_at": "2022-05-29T14:05:29.727Z", "id": "", "name": "", "description": "aha although gosh whenever as plastic", "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2024-01-14T10:26:00.433Z", "modified_at": "2022-07-14T18:23:27.528Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 152837, "maximum_amount": 635532, "preset_amount": 639387}, {"created_at": "2022-04-05T09:49:38.010Z", "modified_at": "2022-03-17T01:57:00.187Z", "id": "", "is_archived": false, "product_id": "", "recurring_interval": "year"}, {"created_at": "2022-03-01T20:22:54.911Z", "modified_at": "2023-02-08T01:09:52.088Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 73227}], "benefits": [{"created_at": "2024-12-19T15:02:23.114Z", "modified_at": "2023-04-09T13:05:11.917Z", "id": "", "type": "discord", "description": "fooey a supposing regarding times uselessly", "selectable": true, "deletable": false, "organization_id": ""}, {"created_at": "2022-12-12T02:49:50.316Z", "modified_at": "2023-11-13T05:16:04.525Z", "id": "", "type": "ads", "description": "merrily wherever failing orchestrate lest", "selectable": false, "deletable": true, "organization_id": ""}, {"created_at": "2023-12-12T21:57:01.257Z", "modified_at": "2023-03-24T19:09:17.797Z", "id": "", "type": "ads", "description": "noisily consequently husband", "selectable": false, "deletable": true, "organization_id": ""}], "medias": []}, "product_price": {"created_at": "2024-08-18T13:00:42.665Z", "modified_at": "2023-06-22T03:00:04.393Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 322596, "maximum_amount": 860596, "preset_amount": 18278}, "discount": {"duration": "repeating", "duration_in_months": 232917, "type": "fixed", "amount": 197777, "currency": "Cordoba Oro", "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-04-11T02:32:42.816Z", "modified_at": "2024-09-28T03:47:03.515Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": ""}, "order": 726370, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2024-09-10T04:30:13.188Z", "modified_at": "2022-05-29T14:05:29.727Z", "id": "", "metadata": {"key": 432930}, "slug": "", "name": "", "organization_id": ""}, "order": 800413, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2022-04-24T08:24:21.019Z", "modified_at": "2023-07-29T04:00:22.486Z", "id": "", "metadata": {"key": 863466, "key1": "", "key2": 113486}, "slug": "", "name": "", "organization_id": ""}, "order": 608798, "required": true}], "customer_metadata": {}}, {"created_at": "2024-08-14T13:01:58.600Z", "modified_at": "2023-01-30T05:46:03.648Z", "id": "", "status": "confirmed", "client_secret": "", "url": "https://boring-populist.biz/", "expires_at": "2024-12-04T11:22:18.277Z", "success_url": "https://grave-information.biz", "embed_origin": "", "amount": 272832, "tax_amount": 792775, "currency": "UAE Dirham", "subtotal_amount": 785481, "total_amount": 327973, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": true, "is_discount_applicable": true, "is_free_product_price": false, "is_payment_required": false, "is_payment_setup_required": true, "is_payment_form_required": false, "customer_id": "", "customer_name": "", "customer_email": "Dominique83@yahoo.com", "customer_ip_address": "", "customer_billing_address": {"country": "Belgium"}, "customer_tax_id": "", "metadata": {"key": "", "key1": true}, "product": {"created_at": "2022-04-28T15:20:19.317Z", "modified_at": "2023-06-28T02:37:34.714Z", "id": "", "name": "", "description": "and jaggedly aftermath after although while", "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2023-11-20T09:41:40.649Z", "modified_at": "2024-10-21T17:10:37.357Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "price_amount": 84189}, {"created_at": "2024-07-08T11:13:00.198Z", "modified_at": "2024-06-14T00:49:25.662Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 81309, "maximum_amount": 164965, "preset_amount": 73973}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/etc/defaults", "mime_type": "", "size": 96811, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-02-08T12:01:40.965Z", "version": "", "is_uploaded": true, "created_at": "2024-07-17T07:32:23.211Z", "size_readable": "", "public_url": "https://unimportant-tusk.net/"}, {"id": "", "organization_id": "", "name": "", "path": "/var/log", "mime_type": "", "size": 714491, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-01-18T21:03:55.557Z", "version": "", "is_uploaded": false, "created_at": "2022-05-10T00:49:50.875Z", "size_readable": "", "public_url": "https://passionate-dream.net/"}]}, "product_price": {"created_at": "2022-06-05T08:58:03.644Z", "modified_at": "2023-12-29T19:56:44.465Z", "id": "", "is_archived": true, "product_id": ""}, "discount": {"duration": "once", "duration_in_months": 981370, "type": "percentage", "amount": 20448, "currency": "Iraqi Dinar", "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-08-20T22:29:27.736Z", "modified_at": "2022-03-15T10:11:56.132Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": "", "properties": {"options": [{"value": "", "label": ""}]}}, "order": 64260, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2024-03-30T07:52:25.805Z", "modified_at": "2022-10-11T19:17:33.283Z", "id": "", "metadata": {"key": ""}, "slug": "", "name": "", "organization_id": ""}, "order": 741584, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2023-05-04T10:59:46.313Z", "modified_at": "2022-01-06T17:33:20.863Z", "id": "", "metadata": {"key": false, "key1": 948614, "key2": true}, "slug": "", "name": "", "organization_id": "", "properties": {"options": [{"value": "", "label": ""}]}}, "order": 955132, "required": false}], "customer_metadata": {"key": false, "key1": 29267, "key2": 688784}}, {"created_at": "2024-11-10T02:07:57.067Z", "modified_at": "2024-01-03T04:16:32.739Z", "id": "", "status": "confirmed", "client_secret": "", "url": "https://esteemed-typeface.info", "expires_at": "2024-01-27T20:57:36.235Z", "success_url": "https://subtle-formula.name/", "embed_origin": "", "amount": 919939, "tax_amount": 893108, "currency": "Bhutanese Ngultrum", "subtotal_amount": 86895, "total_amount": 299166, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": true, "is_discount_applicable": false, "is_free_product_price": false, "is_payment_required": true, "is_payment_setup_required": true, "is_payment_form_required": true, "customer_id": "", "customer_name": "", "customer_email": "Marcella.OKeefe44@gmail.com", "customer_ip_address": "", "customer_billing_address": {"country": "Guam"}, "customer_tax_id": "", "metadata": {"key": 300024, "key1": true, "key2": ""}, "product": {"created_at": "2022-06-03T07:49:02.697Z", "modified_at": "2024-09-22T10:31:41.180Z", "id": "", "name": "", "description": "mid next dearly competent tender right plump", "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2022-02-15T08:57:09.959Z", "modified_at": "2024-06-28T00:46:13.804Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 406391, "maximum_amount": 79169, "preset_amount": 117386}], "benefits": [{"created_at": "2022-07-07T02:09:47.800Z", "modified_at": "2024-06-14T16:34:33.586Z", "id": "", "type": "custom", "description": "bathhouse nifty for second characterization apud", "selectable": false, "deletable": false, "organization_id": ""}, {"created_at": "2023-06-09T07:01:01.703Z", "modified_at": "2024-08-12T23:43:12.321Z", "id": "", "type": "discord", "description": "crossly but unless blowgun zowie yahoo on drum dusk rightfully", "selectable": false, "deletable": false, "organization_id": ""}, {"created_at": "2024-02-17T23:39:37.895Z", "modified_at": "2022-10-09T13:38:48.456Z", "id": "", "type": "custom", "description": "hm technician jaggedly scarcely honestly submitter likewise", "selectable": true, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/var/mail", "mime_type": "", "size": 458459, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-08-04T18:39:28.864Z", "version": "", "is_uploaded": false, "created_at": "2023-03-04T00:12:10.008Z", "size_readable": "", "public_url": "https://cloudy-tackle.net/"}]}, "product_price": {"created_at": "2023-04-09T13:05:11.917Z", "modified_at": "2023-02-10T20:11:51.410Z", "id": "", "is_archived": true, "product_id": ""}, "discount": {"duration": "once", "duration_in_months": 91394, "type": "fixed", "amount": 263847, "currency": "Hryvnia", "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-09-14T09:33:23.636Z", "modified_at": "2022-02-25T05:24:29.459Z", "id": "", "metadata": {"key": 185394, "key1": ""}, "slug": "", "name": "", "organization_id": ""}, "order": 512850, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2022-05-16T00:18:50.934Z", "modified_at": "2024-01-09T15:39:01.722Z", "id": "", "metadata": {"key": 755384, "key1": "", "key2": 751601}, "slug": "", "name": "", "organization_id": ""}, "order": 602353, "required": true}], "customer_metadata": {"key": "", "key1": 105170, "key2": 567608}}], "pagination": {"total_count": 388886, "max_page": 382592}} + "422": + application/json: {} checkouts:custom:create: speakeasy-default-checkouts:custom:create: requestBody: application/json: {"product_id": ""} responses: "201": - application/json: {"created_at": "2023-12-01T17:06:07.804Z", "modified_at": "2023-04-03T12:48:32.253Z", "id": "", "status": "open", "client_secret": "", "url": "https://standard-utilization.com/", "expires_at": "2022-07-06T00:30:20.403Z", "success_url": "https://stable-skean.name/", "embed_origin": "", "amount": 752438, "tax_amount": 957409, "currency": "Gourde", "subtotal_amount": 259629, "total_amount": 17759, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": true, "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": "", "customer_name": "", "customer_email": "Mack_Bashirian65@gmail.com", "customer_ip_address": "", "customer_billing_address": {"country": "Algeria"}, "customer_tax_id": "", "metadata": {"key": "", "key1": 550483}, "product": {"created_at": "2024-09-20T13:32:39.611Z", "modified_at": "2023-05-11T15:17:37.707Z", "id": "", "name": "", "description": "round major misjudge yuck forager beneath", "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2022-08-22T04:50:14.370Z", "modified_at": "2023-11-12T08:08:14.535Z", "id": "", "is_archived": true, "product_id": ""}, {"created_at": "2023-06-29T18:56:13.043Z", "modified_at": "2023-10-31T06:59:44.964Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "price_amount": 728836}], "benefits": [{"created_at": "2022-05-10T01:13:36.523Z", "modified_at": "2023-10-09T10:25:33.125Z", "id": "", "type": "license_keys", "description": "simple ouch when pfft ah", "selectable": false, "deletable": true, "organization_id": ""}, {"created_at": "2023-03-21T10:12:21.713Z", "modified_at": "2023-11-21T10:52:58.426Z", "id": "", "type": "downloadables", "description": "victoriously consequently apud to per", "selectable": false, "deletable": false, "organization_id": ""}, {"created_at": "2022-08-07T10:40:26.624Z", "modified_at": "2023-09-12T01:54:42.561Z", "id": "", "type": "github_repository", "description": "scarcely ignorance pish rural determined shush than expensive", "selectable": false, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/mnt", "mime_type": "", "size": 330292, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-10-10T08:21:56.833Z", "version": "", "is_uploaded": false, "created_at": "2022-11-10T16:34:38.355Z", "size_readable": "", "public_url": "https://blushing-equal.net/"}, {"id": "", "organization_id": "", "name": "", "path": "/etc/defaults", "mime_type": "", "size": 226826, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-08-16T05:49:46.698Z", "version": "", "is_uploaded": false, "created_at": "2022-04-14T11:26:41.291Z", "size_readable": "", "public_url": "https://bustling-resolve.net/"}]}, "product_price": {"created_at": "2022-05-15T13:39:19.264Z", "modified_at": "2024-03-14T04:33:08.745Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 778234, "recurring_interval": "month"}, "discount": {"duration": "repeating", "duration_in_months": 70396, "type": "fixed", "amount": 961628, "currency": "Guarani", "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-04-13T07:21:51.411Z", "modified_at": "2022-12-02T12:20:25.385Z", "id": "", "metadata": {"key": false, "key1": ""}, "slug": "", "name": "", "organization_id": ""}, "order": 473588, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2023-07-19T12:18:30.481Z", "modified_at": "2024-03-05T11:25:25.980Z", "id": "", "metadata": {"key": 774663, "key1": false, "key2": ""}, "slug": "", "name": "", "organization_id": ""}, "order": 288002, "required": false}]} - "422": {} + application/json: {"created_at": "2023-12-01T17:06:07.804Z", "modified_at": "2023-04-03T12:48:32.253Z", "id": "", "status": "open", "client_secret": "", "url": "https://standard-utilization.com/", "expires_at": "2022-07-06T00:30:20.403Z", "success_url": "https://stable-skean.name/", "embed_origin": "", "amount": 752438, "tax_amount": 957409, "currency": "Gourde", "subtotal_amount": 259629, "total_amount": 17759, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": true, "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": "", "customer_name": "", "customer_email": "Mack_Bashirian65@gmail.com", "customer_ip_address": "", "customer_billing_address": {"country": "Algeria"}, "customer_tax_id": "", "metadata": {"key": "", "key1": 550483}, "product": {"created_at": "2024-09-20T13:32:39.611Z", "modified_at": "2023-05-11T15:17:37.707Z", "id": "", "name": "", "description": "round major misjudge yuck forager beneath", "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2022-05-28T06:20:22.766Z", "modified_at": "2022-03-17T15:39:20.911Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 951062, "maximum_amount": 86, "preset_amount": 169727}, {"created_at": "2024-06-13T23:30:51.782Z", "modified_at": "2023-10-05T11:56:21.731Z", "id": "", "is_archived": false, "product_id": "", "recurring_interval": "year"}], "benefits": [{"created_at": "2022-05-10T01:13:36.523Z", "modified_at": "2023-10-09T10:25:33.125Z", "id": "", "type": "license_keys", "description": "simple ouch when pfft ah", "selectable": false, "deletable": true, "organization_id": ""}, {"created_at": "2023-03-21T10:12:21.713Z", "modified_at": "2023-11-21T10:52:58.426Z", "id": "", "type": "downloadables", "description": "victoriously consequently apud to per", "selectable": false, "deletable": false, "organization_id": ""}, {"created_at": "2022-08-07T10:40:26.624Z", "modified_at": "2023-09-12T01:54:42.561Z", "id": "", "type": "github_repository", "description": "scarcely ignorance pish rural determined shush than expensive", "selectable": false, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/mnt", "mime_type": "", "size": 330292, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-10-10T08:21:56.833Z", "version": "", "is_uploaded": false, "created_at": "2022-11-10T16:34:38.355Z", "size_readable": "", "public_url": "https://blushing-equal.net/"}, {"id": "", "organization_id": "", "name": "", "path": "/etc/defaults", "mime_type": "", "size": 226826, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-08-16T05:49:46.698Z", "version": "", "is_uploaded": false, "created_at": "2022-04-14T11:26:41.291Z", "size_readable": "", "public_url": "https://bustling-resolve.net/"}]}, "product_price": {"created_at": "2022-01-20T11:09:16.789Z", "modified_at": "2022-09-10T10:08:53.440Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 64738, "recurring_interval": "month"}, "discount": {"duration": "repeating", "duration_in_months": 70396, "type": "fixed", "amount": 961628, "currency": "Guarani", "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2022-03-22T23:50:34.661Z", "modified_at": "2022-04-21T15:49:25.047Z", "id": "", "metadata": {"key": 36521, "key1": 650237}, "slug": "", "name": "", "organization_id": ""}, "order": 473588, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2022-01-18T01:06:03.366Z", "modified_at": "2023-07-28T18:44:31.482Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": ""}, "order": 288002, "required": false}], "customer_metadata": {"key": 906537, "key1": 496323}} + "422": + application/json: {} checkouts:custom:get: speakeasy-default-checkouts:custom:get: parameters: @@ -1850,10 +1912,11 @@ examples: id: "" responses: "200": - application/json: {"created_at": "2024-02-07T13:54:48.821Z", "modified_at": "2023-09-05T11:33:52.011Z", "id": "", "status": "confirmed", "client_secret": "", "url": "https://willing-impostor.info", "expires_at": "2022-10-16T00:34:27.106Z", "success_url": "https://warm-hundred.net/", "embed_origin": "", "amount": 78888, "tax_amount": 219956, "currency": "Dalasi", "subtotal_amount": 94589, "total_amount": 552582, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "is_discount_applicable": true, "is_free_product_price": false, "is_payment_required": false, "is_payment_setup_required": false, "is_payment_form_required": true, "customer_id": "", "customer_name": "", "customer_email": "Charlotte73@gmail.com", "customer_ip_address": "", "customer_billing_address": {"country": "Pitcairn Islands"}, "customer_tax_id": "", "metadata": {"key": "", "key1": "", "key2": true}, "product": {"created_at": "2023-04-10T23:37:07.835Z", "modified_at": "2022-05-26T16:57:22.796Z", "id": "", "name": "", "description": "restructure gadzooks alongside daily", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2022-03-31T04:26:02.125Z", "modified_at": "2022-07-01T01:48:45.676Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "price_amount": 666980, "recurring_interval": "year"}, {"created_at": "2024-01-25T20:29:18.334Z", "modified_at": "2022-11-17T13:07:10.938Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 286547, "maximum_amount": 237994, "preset_amount": 710636, "recurring_interval": "month"}, {"created_at": "2024-01-02T17:44:05.420Z", "modified_at": "2022-07-26T12:11:42.166Z", "id": "", "is_archived": true, "product_id": ""}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/var/mail", "mime_type": "", "size": 395188, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-07-04T22:10:57.702Z", "version": "", "is_uploaded": true, "created_at": "2023-08-22T23:59:38.589Z", "size_readable": "", "public_url": "https://mad-overheard.name/"}]}, "product_price": {"created_at": "2023-08-23T17:07:10.826Z", "modified_at": "2024-05-12T07:32:27.170Z", "id": "", "is_archived": false, "product_id": "", "recurring_interval": "month"}, "discount": {"duration": "repeating", "duration_in_months": 531548, "type": "percentage", "amount": 845806, "currency": "Gourde", "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-09-27T20:59:18.499Z", "modified_at": "2022-08-28T17:52:37.706Z", "id": "", "metadata": {"key": "", "key1": true}, "slug": "", "name": "", "organization_id": ""}, "order": 716267, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2023-08-12T22:26:32.433Z", "modified_at": "2023-08-31T13:12:42.845Z", "id": "", "metadata": {"key": true}, "slug": "", "name": "", "organization_id": "", "properties": {"options": [{"value": "", "label": ""}, {"value": "", "label": ""}]}}, "order": 856562, "required": true}]} + application/json: {"created_at": "2024-02-07T13:54:48.821Z", "modified_at": "2023-09-05T11:33:52.011Z", "id": "", "status": "confirmed", "client_secret": "", "url": "https://willing-impostor.info", "expires_at": "2022-10-16T00:34:27.106Z", "success_url": "https://warm-hundred.net/", "embed_origin": "", "amount": 78888, "tax_amount": 219956, "currency": "Dalasi", "subtotal_amount": 94589, "total_amount": 552582, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "is_discount_applicable": true, "is_free_product_price": false, "is_payment_required": false, "is_payment_setup_required": false, "is_payment_form_required": true, "customer_id": "", "customer_name": "", "customer_email": "Charlotte73@gmail.com", "customer_ip_address": "", "customer_billing_address": {"country": "Pitcairn Islands"}, "customer_tax_id": "", "metadata": {"key": "", "key1": "", "key2": true}, "product": {"created_at": "2023-04-10T23:37:07.835Z", "modified_at": "2022-05-26T16:57:22.796Z", "id": "", "name": "", "description": "restructure gadzooks alongside daily", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2023-08-20T11:11:04.610Z", "modified_at": "2023-07-26T06:33:15.810Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 458049, "maximum_amount": 450824, "preset_amount": 262795}, {"created_at": "2023-04-26T04:53:50.189Z", "modified_at": "2024-05-28T07:17:57.134Z", "id": "", "is_archived": true, "product_id": "", "recurring_interval": "month"}, {"created_at": "2023-08-29T15:06:35.685Z", "modified_at": "2024-06-02T05:45:06.910Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 746585, "recurring_interval": "year"}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/var/mail", "mime_type": "", "size": 395188, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-07-04T22:10:57.702Z", "version": "", "is_uploaded": true, "created_at": "2023-08-22T23:59:38.589Z", "size_readable": "", "public_url": "https://mad-overheard.name/"}]}, "product_price": {"created_at": "2022-12-21T05:04:07.004Z", "modified_at": "2022-07-14T09:41:03.922Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 780262}, "discount": {"duration": "repeating", "duration_in_months": 531548, "type": "percentage", "amount": 845806, "currency": "Gourde", "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-03-19T09:19:03.347Z", "modified_at": "2024-04-26T05:27:06.241Z", "id": "", "metadata": {"key": true, "key1": ""}, "slug": "", "name": "", "organization_id": ""}, "order": 716267, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2023-05-03T12:57:21.117Z", "modified_at": "2023-04-10T23:37:07.835Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": ""}, "order": 856562, "required": true}], "customer_metadata": {}} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} checkouts:custom:update: speakeasy-default-checkouts:custom:update: parameters: @@ -1861,10 +1924,11 @@ examples: id: "" responses: "200": - application/json: {"created_at": "2024-07-28T19:04:48.565Z", "modified_at": "2023-10-17T10:52:42.015Z", "id": "", "status": "expired", "client_secret": "", "url": "https://powerless-juggernaut.org", "expires_at": "2022-03-01T06:03:05.915Z", "success_url": "https://juvenile-exploration.biz", "embed_origin": "", "amount": 139579, "tax_amount": 789275, "currency": "US Dollar", "subtotal_amount": 302461, "total_amount": 464385, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "is_discount_applicable": false, "is_free_product_price": true, "is_payment_required": true, "is_payment_setup_required": false, "is_payment_form_required": false, "customer_id": "", "customer_name": "", "customer_email": "Jewel82@yahoo.com", "customer_ip_address": "", "customer_billing_address": {"country": "Timor-Leste"}, "customer_tax_id": "", "metadata": {"key": 329712, "key1": 579805}, "product": {"created_at": "2023-07-18T17:44:43.444Z", "modified_at": "2024-05-26T21:39:46.926Z", "id": "", "name": "", "description": "from that qualified", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [], "benefits": [{"created_at": "2022-09-24T19:37:32.283Z", "modified_at": "2022-10-18T10:44:09.680Z", "id": "", "type": "ads", "description": "blah intensely fragrant lest ferret", "selectable": true, "deletable": false, "organization_id": ""}, {"created_at": "2022-05-10T12:36:21.295Z", "modified_at": "2023-06-17T12:36:03.175Z", "id": "", "type": "github_repository", "description": "clamour urgently voluntarily scale gut readies concerning statement", "selectable": false, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt", "mime_type": "", "size": 780342, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-10-17T01:35:15.856Z", "version": "", "is_uploaded": false, "created_at": "2023-07-26T09:32:51.778Z", "size_readable": "", "public_url": "https://unimportant-declaration.biz"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/libexec", "mime_type": "", "size": 137957, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-07-15T06:46:09.402Z", "version": "", "is_uploaded": true, "created_at": "2022-07-02T00:00:11.531Z", "size_readable": "", "public_url": "https://clean-translation.name"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/X11R6", "mime_type": "", "size": 202116, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-12-16T05:25:22.270Z", "version": "", "is_uploaded": true, "created_at": "2022-09-27T20:28:57.413Z", "size_readable": "", "public_url": "https://snappy-interchange.net"}]}, "product_price": {"created_at": "2022-10-05T22:28:31.580Z", "modified_at": "2022-06-23T23:05:21.385Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 358043, "maximum_amount": 474961, "preset_amount": 761625, "recurring_interval": "year"}, "discount": {"duration": "forever", "duration_in_months": 517232, "type": "percentage", "amount": 676467, "currency": "Sudanese Pound", "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-05-14T05:25:13.723Z", "modified_at": "2022-01-25T20:29:41.475Z", "id": "", "metadata": {"key": 245016, "key1": 355250}, "slug": "", "name": "", "organization_id": ""}, "order": 40788, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2024-05-05T14:01:10.128Z", "modified_at": "2022-10-01T21:33:23.746Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": ""}, "order": 315330, "required": false}]} + application/json: {"created_at": "2024-07-28T19:04:48.565Z", "modified_at": "2023-10-17T10:52:42.015Z", "id": "", "status": "expired", "client_secret": "", "url": "https://powerless-juggernaut.org", "expires_at": "2022-03-01T06:03:05.915Z", "success_url": "https://juvenile-exploration.biz", "embed_origin": "", "amount": 139579, "tax_amount": 789275, "currency": "US Dollar", "subtotal_amount": 302461, "total_amount": 464385, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "is_discount_applicable": false, "is_free_product_price": true, "is_payment_required": true, "is_payment_setup_required": false, "is_payment_form_required": false, "customer_id": "", "customer_name": "", "customer_email": "Jewel82@yahoo.com", "customer_ip_address": "", "customer_billing_address": {"country": "Timor-Leste"}, "customer_tax_id": "", "metadata": {"key": 329712, "key1": 579805}, "product": {"created_at": "2023-07-18T17:44:43.444Z", "modified_at": "2024-05-26T21:39:46.926Z", "id": "", "name": "", "description": "from that qualified", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [], "benefits": [{"created_at": "2022-09-24T19:37:32.283Z", "modified_at": "2022-10-18T10:44:09.680Z", "id": "", "type": "ads", "description": "blah intensely fragrant lest ferret", "selectable": true, "deletable": false, "organization_id": ""}, {"created_at": "2022-05-10T12:36:21.295Z", "modified_at": "2023-06-17T12:36:03.175Z", "id": "", "type": "github_repository", "description": "clamour urgently voluntarily scale gut readies concerning statement", "selectable": false, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt", "mime_type": "", "size": 780342, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-10-17T01:35:15.856Z", "version": "", "is_uploaded": false, "created_at": "2023-07-26T09:32:51.778Z", "size_readable": "", "public_url": "https://unimportant-declaration.biz"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/libexec", "mime_type": "", "size": 137957, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-07-15T06:46:09.402Z", "version": "", "is_uploaded": true, "created_at": "2022-07-02T00:00:11.531Z", "size_readable": "", "public_url": "https://clean-translation.name"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/X11R6", "mime_type": "", "size": 202116, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-12-16T05:25:22.270Z", "version": "", "is_uploaded": true, "created_at": "2022-09-27T20:28:57.413Z", "size_readable": "", "public_url": "https://snappy-interchange.net"}]}, "product_price": {"created_at": "2023-01-13T16:52:57.274Z", "modified_at": "2024-12-22T15:27:45.882Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 488852, "maximum_amount": 984008, "preset_amount": 54062}, "discount": {"duration": "forever", "duration_in_months": 517232, "type": "percentage", "amount": 676467, "currency": "Sudanese Pound", "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-05-05T18:16:40.936Z", "modified_at": "2022-12-08T09:52:54.805Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": ""}, "order": 40788, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2024-05-15T01:05:20.251Z", "modified_at": "2024-09-02T06:16:41.919Z", "id": "", "metadata": {"key": 771203}, "slug": "", "name": "", "organization_id": ""}, "order": 315330, "required": false}], "customer_metadata": {"key": 33980, "key1": false}} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} checkouts:custom:client_get: speakeasy-default-checkouts:custom:client-get: parameters: @@ -1872,10 +1936,11 @@ examples: client_secret: "" responses: "200": - application/json: {"created_at": "2022-06-23T19:45:02.115Z", "modified_at": "2022-11-26T05:04:17.930Z", "id": "", "status": "succeeded", "client_secret": "", "url": "https://firm-median.name", "expires_at": "2024-10-05T02:43:03.106Z", "success_url": "https://distinct-release.info", "embed_origin": "", "amount": 649087, "tax_amount": 818651, "currency": "Costa Rican Colon", "subtotal_amount": 643894, "total_amount": 773661, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "is_discount_applicable": true, "is_free_product_price": false, "is_payment_required": false, "is_payment_setup_required": true, "is_payment_form_required": false, "customer_id": "", "customer_name": "", "customer_email": "June.Welch@gmail.com", "customer_ip_address": "", "customer_billing_address": {"country": "Namibia"}, "customer_tax_id": "", "product": {"created_at": "2024-03-24T21:11:57.960Z", "modified_at": "2022-09-03T17:25:21.121Z", "id": "", "name": "", "description": "row co-producer babushka assured onto", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2023-06-12T00:00:28.674Z", "modified_at": "2023-08-20T18:01:14.692Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "price_amount": 670458}, {"created_at": "2023-09-20T12:59:12.930Z", "modified_at": "2022-04-02T23:27:47.174Z", "id": "", "is_archived": true, "product_id": ""}], "benefits": [{"created_at": "2023-12-30T10:29:13.010Z", "modified_at": "2024-04-24T21:58:26.448Z", "id": "", "type": "downloadables", "description": "indeed save orchestrate", "selectable": false, "deletable": true, "organization_id": ""}, {"created_at": "2024-11-28T07:38:21.211Z", "modified_at": "2022-04-20T18:32:12.688Z", "id": "", "type": "license_keys", "description": "upon king slimy hm gee coordination till archaeology yippee fuel", "selectable": true, "deletable": true, "organization_id": ""}], "medias": []}, "product_price": {"created_at": "2023-10-22T03:05:40.949Z", "modified_at": "2022-03-07T23:19:39.199Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 844187, "maximum_amount": 391633, "preset_amount": 312179}, "discount": {"duration": "repeating", "type": "fixed", "amount": 306879, "currency": "Kip", "id": "", "name": "", "code": ""}, "organization": {"created_at": "2022-11-04T11:36:47.282Z", "modified_at": "2024-10-01T07:30:04.249Z", "id": "", "name": "", "slug": "", "avatar_url": "https://lumpy-jellyfish.com", "bio": "", "company": "Hodkiewicz LLC", "blog": "", "location": "", "email": "Davion_Runolfsdottir-Johnston@gmail.com", "twitter_username": "", "pledge_minimum_amount": 589933, "pledge_badge_show_amount": false, "default_upfront_split_to_contributors": 205754}, "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-01-07T16:50:23.778Z", "modified_at": "2022-01-15T02:08:18.131Z", "id": "", "metadata": {"key": "", "key1": 714405, "key2": 658996}, "slug": "", "name": "", "organization_id": "", "properties": {"options": [{"value": "", "label": ""}]}}, "order": 414731, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2023-09-16T20:22:50.755Z", "modified_at": "2022-05-13T14:08:42.909Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": "", "properties": {"options": [{"value": "", "label": ""}]}}, "order": 824643, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2023-06-07T21:38:57.031Z", "modified_at": "2022-01-28T05:29:03.290Z", "id": "", "metadata": {"key": true}, "slug": "", "name": "", "organization_id": ""}, "order": 31200, "required": false}]} + application/json: {"created_at": "2022-06-23T19:45:02.115Z", "modified_at": "2022-11-26T05:04:17.930Z", "id": "", "status": "succeeded", "client_secret": "", "url": "https://firm-median.name", "expires_at": "2024-10-05T02:43:03.106Z", "success_url": "https://distinct-release.info", "embed_origin": "", "amount": 649087, "tax_amount": 818651, "currency": "Costa Rican Colon", "subtotal_amount": 643894, "total_amount": 773661, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "is_discount_applicable": true, "is_free_product_price": false, "is_payment_required": false, "is_payment_setup_required": true, "is_payment_form_required": false, "customer_id": "", "customer_name": "", "customer_email": "June.Welch@gmail.com", "customer_ip_address": "", "customer_billing_address": {"country": "Namibia"}, "customer_tax_id": "", "product": {"created_at": "2024-03-24T21:11:57.960Z", "modified_at": "2022-09-03T17:25:21.121Z", "id": "", "name": "", "description": "row co-producer babushka assured onto", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2024-04-14T21:02:40.457Z", "modified_at": "2023-08-07T16:01:01.665Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 564186, "recurring_interval": "year"}, {"created_at": "2022-08-09T10:44:49.155Z", "modified_at": "2024-03-23T07:06:26.009Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 649087, "maximum_amount": 818651, "preset_amount": 200899}], "benefits": [{"created_at": "2023-12-30T10:29:13.010Z", "modified_at": "2024-04-24T21:58:26.448Z", "id": "", "type": "downloadables", "description": "indeed save orchestrate", "selectable": false, "deletable": true, "organization_id": ""}, {"created_at": "2024-11-28T07:38:21.211Z", "modified_at": "2022-04-20T18:32:12.688Z", "id": "", "type": "license_keys", "description": "upon king slimy hm gee coordination till archaeology yippee fuel", "selectable": true, "deletable": true, "organization_id": ""}], "medias": []}, "product_price": {"created_at": "2024-01-07T03:44:33.409Z", "modified_at": "2023-03-15T11:17:47.100Z", "id": "", "is_archived": false, "product_id": ""}, "discount": {"duration": "repeating", "type": "fixed", "amount": 306879, "currency": "Kip", "id": "", "name": "", "code": ""}, "organization": {"created_at": "2022-11-04T11:36:47.282Z", "modified_at": "2024-10-01T07:30:04.249Z", "id": "", "name": "", "slug": "", "avatar_url": "https://lumpy-jellyfish.com", "bio": "", "company": "Hodkiewicz LLC", "blog": "", "location": "", "email": "Davion_Runolfsdottir-Johnston@gmail.com", "twitter_username": "", "pledge_minimum_amount": 589933, "pledge_badge_show_amount": false, "default_upfront_split_to_contributors": 205754}, "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2022-09-10T21:17:06.373Z", "modified_at": "2024-10-11T12:01:20.600Z", "id": "", "metadata": {"key": 260681}, "slug": "", "name": "", "organization_id": ""}, "order": 414731, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2022-05-26T18:30:39.536Z", "modified_at": "2024-09-06T08:48:06.798Z", "id": "", "metadata": {"key": 742595}, "slug": "", "name": "", "organization_id": ""}, "order": 824643, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2022-10-02T19:30:27.681Z", "modified_at": "2024-07-02T20:33:07.976Z", "id": "", "metadata": {"key": true}, "slug": "", "name": "", "organization_id": ""}, "order": 31200, "required": false}]} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} checkouts:custom:client_update: speakeasy-default-checkouts:custom:client-update: parameters: @@ -1883,10 +1948,11 @@ examples: client_secret: "" responses: "200": - application/json: {"created_at": "2024-10-22T20:45:21.815Z", "modified_at": "2023-07-17T23:31:05.499Z", "id": "", "status": "expired", "client_secret": "", "url": "https://energetic-nectarine.org", "expires_at": "2022-07-02T09:01:58.946Z", "success_url": "https://unsteady-reservation.net", "embed_origin": "", "amount": 169287, "tax_amount": 984514, "currency": "Naira", "subtotal_amount": 839103, "total_amount": 574252, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": true, "is_discount_applicable": false, "is_free_product_price": false, "is_payment_required": true, "is_payment_setup_required": false, "is_payment_form_required": true, "customer_id": "", "customer_name": "", "customer_email": "Reagan_DAmore51@gmail.com", "customer_ip_address": "", "customer_billing_address": {"country": "Serbia"}, "customer_tax_id": "", "product": {"created_at": "2022-07-18T14:46:38.829Z", "modified_at": "2023-12-25T03:42:50.687Z", "id": "", "name": "", "description": "deserted when till warmly capsize", "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [], "benefits": [{"created_at": "2022-12-31T06:13:31.477Z", "modified_at": "2024-07-17T10:51:55.423Z", "id": "", "type": "license_keys", "description": "wedge soap triangular oxidise petticoat probable", "selectable": true, "deletable": true, "organization_id": ""}], "medias": []}, "product_price": {"created_at": "2022-11-20T08:42:29.022Z", "modified_at": "2022-11-14T00:21:22.761Z", "id": "", "is_archived": true, "product_id": ""}, "discount": {"duration": "once", "type": "percentage", "basis_points": 506990, "id": "", "name": "", "code": ""}, "organization": {"created_at": "2023-08-24T08:58:55.157Z", "modified_at": "2024-01-26T16:47:29.231Z", "id": "", "name": "", "slug": "", "avatar_url": "https://flickering-validity.biz/", "bio": "", "company": "Fadel - Leffler", "blog": "", "location": "", "email": "Eloise.Brekke58@gmail.com", "twitter_username": "", "pledge_minimum_amount": 809814, "pledge_badge_show_amount": true, "default_upfront_split_to_contributors": 613632}, "attached_custom_fields": []} + application/json: {"created_at": "2024-10-22T20:45:21.815Z", "modified_at": "2023-07-17T23:31:05.499Z", "id": "", "status": "expired", "client_secret": "", "url": "https://energetic-nectarine.org", "expires_at": "2022-07-02T09:01:58.946Z", "success_url": "https://unsteady-reservation.net", "embed_origin": "", "amount": 169287, "tax_amount": 984514, "currency": "Naira", "subtotal_amount": 839103, "total_amount": 574252, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": true, "is_discount_applicable": false, "is_free_product_price": false, "is_payment_required": true, "is_payment_setup_required": false, "is_payment_form_required": true, "customer_id": "", "customer_name": "", "customer_email": "Reagan_DAmore51@gmail.com", "customer_ip_address": "", "customer_billing_address": {"country": "Serbia"}, "customer_tax_id": "", "product": {"created_at": "2022-07-18T14:46:38.829Z", "modified_at": "2023-12-25T03:42:50.687Z", "id": "", "name": "", "description": "deserted when till warmly capsize", "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [], "benefits": [{"created_at": "2022-12-31T06:13:31.477Z", "modified_at": "2024-07-17T10:51:55.423Z", "id": "", "type": "license_keys", "description": "wedge soap triangular oxidise petticoat probable", "selectable": true, "deletable": true, "organization_id": ""}], "medias": []}, "product_price": {"created_at": "2022-11-16T20:51:18.745Z", "modified_at": "2023-07-14T01:44:24.320Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 597177, "maximum_amount": 947630, "preset_amount": 166401}, "discount": {"duration": "once", "type": "percentage", "basis_points": 506990, "id": "", "name": "", "code": ""}, "organization": {"created_at": "2023-08-24T08:58:55.157Z", "modified_at": "2024-01-26T16:47:29.231Z", "id": "", "name": "", "slug": "", "avatar_url": "https://flickering-validity.biz/", "bio": "", "company": "Fadel - Leffler", "blog": "", "location": "", "email": "Eloise.Brekke58@gmail.com", "twitter_username": "", "pledge_minimum_amount": 809814, "pledge_badge_show_amount": true, "default_upfront_split_to_contributors": 613632}, "attached_custom_fields": []} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} checkouts:custom:client_confirm: speakeasy-default-checkouts:custom:client-confirm: parameters: @@ -1894,16 +1960,18 @@ examples: client_secret: "" responses: "200": - application/json: {"created_at": "2024-09-27T22:33:04.250Z", "modified_at": "2024-07-24T02:45:26.067Z", "id": "", "client_secret": "", "url": "https://difficult-summary.net", "expires_at": "2023-02-11T02:25:13.433Z", "success_url": "https://quixotic-ceramic.name", "embed_origin": "", "amount": 714568, "tax_amount": 682520, "currency": "Taka", "subtotal_amount": 660127, "total_amount": 433381, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "is_discount_applicable": false, "is_free_product_price": true, "is_payment_required": false, "is_payment_setup_required": false, "is_payment_form_required": true, "customer_id": "", "customer_name": "", "customer_email": "Nash_Rolfson71@gmail.com", "customer_ip_address": "", "customer_billing_address": {"country": "Aland Islands"}, "customer_tax_id": "", "product": {"created_at": "2023-10-16T06:21:58.495Z", "modified_at": "2023-04-02T23:39:58.524Z", "id": "", "name": "", "description": "revoke ugh worldly worldly furthermore watery seemingly yahoo intently overwork", "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2022-10-26T00:33:02.422Z", "modified_at": "2023-07-16T13:35:59.661Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 720560}, {"created_at": "2022-03-02T11:38:31.977Z", "modified_at": "2022-11-27T03:42:07.871Z", "id": "", "is_archived": false, "product_id": "", "recurring_interval": "month"}, {"created_at": "2024-04-17T06:34:20.354Z", "modified_at": "2022-02-14T05:54:05.521Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 692059, "maximum_amount": 382528, "preset_amount": 153626, "recurring_interval": "month"}], "benefits": [{"created_at": "2023-07-15T01:35:47.336Z", "modified_at": "2022-01-29T19:05:28.910Z", "id": "", "type": "discord", "description": "lest where appropriate well-groomed finally forceful out optimistically psst", "selectable": true, "deletable": true, "organization_id": ""}, {"created_at": "2024-08-15T05:04:38.366Z", "modified_at": "2024-01-13T11:34:41.637Z", "id": "", "type": "custom", "description": "sticky coordinated linseed tabletop woot boohoo", "selectable": true, "deletable": false, "organization_id": ""}, {"created_at": "2022-12-01T02:02:53.967Z", "modified_at": "2022-11-22T01:14:30.421Z", "id": "", "type": "ads", "description": "cop captain sanity worth divert", "selectable": true, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/media", "mime_type": "", "size": 533777, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-03-18T23:31:38.728Z", "version": "", "is_uploaded": true, "created_at": "2022-06-20T09:28:03.495Z", "size_readable": "", "public_url": "https://untidy-paintwork.net/"}]}, "product_price": {"created_at": "2022-10-10T08:07:00.512Z", "modified_at": "2024-02-07T00:31:01.503Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 580580, "maximum_amount": 249047, "preset_amount": 610309}, "discount": {"duration": "forever", "type": "fixed", "basis_points": 309170, "id": "", "name": "", "code": ""}, "organization": {"created_at": "2023-08-31T08:44:42.567Z", "modified_at": "2023-01-17T20:40:08.507Z", "id": "", "name": "", "slug": "", "avatar_url": "https://celebrated-obesity.name", "bio": "", "company": "Wiza Group", "blog": "", "location": "", "email": "Jana.Kuhic@hotmail.com", "twitter_username": "", "pledge_minimum_amount": 872332, "pledge_badge_show_amount": false, "default_upfront_split_to_contributors": 199155}, "attached_custom_fields": [], "customer_session_token": ""} + application/json: {"created_at": "2024-09-27T22:33:04.250Z", "modified_at": "2024-07-24T02:45:26.067Z", "id": "", "client_secret": "", "url": "https://difficult-summary.net", "expires_at": "2023-02-11T02:25:13.433Z", "success_url": "https://quixotic-ceramic.name", "embed_origin": "", "amount": 714568, "tax_amount": 682520, "currency": "Taka", "subtotal_amount": 660127, "total_amount": 433381, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "is_discount_applicable": false, "is_free_product_price": true, "is_payment_required": false, "is_payment_setup_required": false, "is_payment_form_required": true, "customer_id": "", "customer_name": "", "customer_email": "Nash_Rolfson71@gmail.com", "customer_ip_address": "", "customer_billing_address": {"country": "Aland Islands"}, "customer_tax_id": "", "product": {"created_at": "2023-10-16T06:21:58.495Z", "modified_at": "2023-04-02T23:39:58.524Z", "id": "", "name": "", "description": "revoke ugh worldly worldly furthermore watery seemingly yahoo intently overwork", "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2023-11-15T07:38:37.445Z", "modified_at": "2022-07-30T06:29:51.767Z", "id": "", "is_archived": false, "product_id": ""}, {"created_at": "2024-01-07T19:25:42.663Z", "modified_at": "2023-12-28T12:48:47.240Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 636092, "maximum_amount": 714568, "preset_amount": 682520}, {"created_at": "2023-04-20T23:39:35.416Z", "modified_at": "2024-05-31T11:57:12.852Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 185124, "maximum_amount": 694451, "preset_amount": 648418, "recurring_interval": "month"}], "benefits": [{"created_at": "2023-07-15T01:35:47.336Z", "modified_at": "2022-01-29T19:05:28.910Z", "id": "", "type": "discord", "description": "lest where appropriate well-groomed finally forceful out optimistically psst", "selectable": true, "deletable": true, "organization_id": ""}, {"created_at": "2024-08-15T05:04:38.366Z", "modified_at": "2024-01-13T11:34:41.637Z", "id": "", "type": "custom", "description": "sticky coordinated linseed tabletop woot boohoo", "selectable": true, "deletable": false, "organization_id": ""}, {"created_at": "2022-12-01T02:02:53.967Z", "modified_at": "2022-11-22T01:14:30.421Z", "id": "", "type": "ads", "description": "cop captain sanity worth divert", "selectable": true, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/media", "mime_type": "", "size": 533777, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-03-18T23:31:38.728Z", "version": "", "is_uploaded": true, "created_at": "2022-06-20T09:28:03.495Z", "size_readable": "", "public_url": "https://untidy-paintwork.net/"}]}, "product_price": {"created_at": "2024-05-15T21:24:29.311Z", "modified_at": "2024-04-02T20:53:59.657Z", "id": "", "is_archived": false, "product_id": "", "recurring_interval": "year"}, "discount": {"duration": "forever", "type": "fixed", "basis_points": 309170, "id": "", "name": "", "code": ""}, "organization": {"created_at": "2023-08-31T08:44:42.567Z", "modified_at": "2023-01-17T20:40:08.507Z", "id": "", "name": "", "slug": "", "avatar_url": "https://celebrated-obesity.name", "bio": "", "company": "Wiza Group", "blog": "", "location": "", "email": "Jana.Kuhic@hotmail.com", "twitter_username": "", "pledge_minimum_amount": 872332, "pledge_badge_show_amount": false, "default_upfront_split_to_contributors": 199155}, "attached_custom_fields": [], "customer_session_token": ""} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} files:list: speakeasy-default-files:list: responses: "200": - application/json: {"items": [{"id": "", "organization_id": "", "name": "", "path": "/usr", "mime_type": "", "size": 177706, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-09-09T18:28:08.953Z", "version": "", "is_uploaded": true, "created_at": "2023-11-28T13:02:27.296Z", "size_readable": "", "public_url": "https://agile-publicity.com"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/X11R6", "mime_type": "", "size": 509883, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-11-26T18:23:24.264Z", "version": "", "is_uploaded": true, "created_at": "2022-03-01T20:22:54.911Z", "size_readable": ""}, {"id": "", "organization_id": "", "name": "", "path": "/private/var", "mime_type": "", "size": 73227, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-10-17T13:20:28.265Z", "version": "", "is_uploaded": false, "created_at": "2024-08-18T13:00:42.665Z", "size_readable": "", "public_url": "https://average-fedora.org/"}], "pagination": {"total_count": 18278, "max_page": 897196}} - "422": {} + application/json: {"items": [{"id": "", "organization_id": "", "name": "", "path": "/root", "mime_type": "", "size": 678317, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-07-14T18:23:27.528Z", "version": "", "is_uploaded": true, "created_at": "2022-06-17T12:14:27.999Z", "size_readable": "", "public_url": "https://productive-affect.net"}, {"id": "", "organization_id": "", "name": "", "path": "/dev", "mime_type": "", "size": 687960, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-07-13T19:57:33.016Z", "version": "", "is_uploaded": false, "created_at": "2022-01-09T04:26:27.312Z", "size_readable": ""}, {"id": "", "organization_id": "", "name": "", "path": "/opt/bin", "mime_type": "", "size": 485729, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-03-22T06:10:55.267Z", "version": "", "is_uploaded": false, "created_at": "2023-09-14T22:04:07.138Z", "size_readable": ""}], "pagination": {"total_count": 18278, "max_page": 897196}} + "422": + application/json: {} files:create: speakeasy-default-files:create: requestBody: @@ -1911,7 +1979,8 @@ examples: responses: "201": application/json: {"id": "", "organization_id": "", "name": "", "path": "/var/spool", "mime_type": "", "size": 86, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-07-06T00:30:20.403Z", "upload": {"id": "", "path": "/etc", "parts": [{"number": 816588, "chunk_start": 586220, "chunk_end": 752438, "url": "https://harmful-disposer.com", "expires_at": "2022-09-10T10:08:53.440Z"}, {"number": 211337, "chunk_start": 64738, "chunk_end": 322997, "url": "https://blind-breastplate.name/", "expires_at": "2023-01-07T19:16:11.129Z"}, {"number": 36521, "chunk_start": 621636, "chunk_end": 650237, "url": "https://aggravating-lid.com/", "expires_at": "2023-12-25T00:15:46.309Z"}]}, "version": "", "service": "product_media", "size_readable": ""} - "422": {} + "422": + application/json: {} files:uploaded: speakeasy-default-files:uploaded: parameters: @@ -1921,12 +1990,13 @@ examples: application/json: {"id": "", "path": "/sys", "parts": [{"number": 173116, "checksum_etag": "", "checksum_sha256_base64": ""}, {"number": 894030, "checksum_etag": "", "checksum_sha256_base64": ""}, {"number": 673715, "checksum_etag": "", "checksum_sha256_base64": ""}]} responses: "200": - application/json: {"id": "", "organization_id": "", "name": "", "path": "/net", "mime_type": "", "size": 361127, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-01-17T04:07:38.336Z", "version": "", "is_uploaded": false, "created_at": "2024-07-26T19:39:54.130Z", "size_readable": "", "public_url": "https://buzzing-step-mother.biz/"} + application/json: {"id": "", "organization_id": "", "name": "", "path": "/usr/ports", "mime_type": "", "size": 173116, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-09-06T20:34:00.390Z", "version": "", "is_uploaded": false, "created_at": "2023-12-06T04:28:57.373Z", "size_readable": "", "public_url": "https://heartfelt-folklore.net/"} "403": application/json: {"detail": ""} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} files:update: speakeasy-default-files:update: parameters: @@ -1939,7 +2009,8 @@ examples: application/json: {"detail": ""} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} files:delete: speakeasy-default-files:delete: parameters: @@ -1950,7 +2021,8 @@ examples: application/json: {"detail": ""} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} metrics:get: speakeasy-default-metrics:get: parameters: @@ -1961,7 +2033,8 @@ examples: responses: "200": application/json: {"periods": [{"timestamp": "2024-11-29T01:50:48.954Z", "orders": 458049, "revenue": 450824, "average_order_value": 262795, "one_time_products": 213457, "one_time_products_revenue": 937146, "new_subscriptions": 438142, "new_subscriptions_revenue": 801373, "renewed_subscriptions": 78888, "renewed_subscriptions_revenue": 219956, "active_subscriptions": 313464, "monthly_recurring_revenue": 94589}, {"timestamp": "2023-08-29T15:06:35.685Z", "orders": 805876, "revenue": 380699, "average_order_value": 746585, "one_time_products": 608535, "one_time_products_revenue": 550965, "new_subscriptions": 322612, "new_subscriptions_revenue": 323185, "renewed_subscriptions": 177375, "renewed_subscriptions_revenue": 243354, "active_subscriptions": 780262, "monthly_recurring_revenue": 284041}], "metrics": {"orders": {"slug": "", "display_name": "Myrl_Rath32", "type": "currency"}, "revenue": {"slug": "", "display_name": "Irwin.Cole55", "type": "currency"}, "average_order_value": {"slug": "", "display_name": "Lula_Greenholt", "type": "scalar"}, "one_time_products": {"slug": "", "display_name": "Aubrey_Lang", "type": "currency"}, "one_time_products_revenue": {"slug": "", "display_name": "Graham.Klocko", "type": "currency"}, "new_subscriptions": {"slug": "", "display_name": "Nicklaus.Johns", "type": "currency"}, "new_subscriptions_revenue": {"slug": "", "display_name": "Jed64", "type": "currency"}, "renewed_subscriptions": {"slug": "", "display_name": "Albina.Pfeffer89", "type": "scalar"}, "renewed_subscriptions_revenue": {"slug": "", "display_name": "Meredith_Schaefer66", "type": "scalar"}, "active_subscriptions": {"slug": "", "display_name": "Aron.West16", "type": "currency"}, "monthly_recurring_revenue": {"slug": "", "display_name": "Allan7", "type": "currency"}}} - "422": {} + "422": + application/json: {} metrics:limits: speakeasy-default-metrics:limits: responses: @@ -1971,12 +2044,13 @@ examples: speakeasy-default-license-keys:list: responses: "200": - application/json: {"items": [{"id": "", "organization_id": "", "user_id": "", "customer_id": "", "user": {"id": "", "email": "Marie.Fay@yahoo.com", "public_name": ""}, "customer": {"created_at": "2022-01-20T06:21:22.156Z", "modified_at": "2024-02-27T06:14:46.641Z", "id": "", "metadata": {}, "email": "Martin.Nader@gmail.com", "email_verified": true, "name": "", "billing_address": {"country": "Bangladesh"}, "tax_id": ["sv_nit", "", ""], "organization_id": "", "avatar_url": "https://torn-affiliate.org/"}, "benefit_id": "", "key": "", "display_key": "", "status": "revoked", "limit_activations": 913465, "usage": 173090, "limit_usage": 75058, "validations": 897069, "last_validated_at": "2022-05-29T14:05:29.727Z", "expires_at": "2023-05-20T11:06:26.987Z"}, {"id": "", "organization_id": "", "user_id": "", "customer_id": "", "user": {"id": "", "email": "Hope_Brakus@yahoo.com", "public_name": ""}, "customer": {"created_at": "2024-08-04T08:35:41.482Z", "modified_at": "2022-12-03T21:35:05.453Z", "id": "", "metadata": {"key": ""}, "email": "Tatyana_Murphy91@gmail.com", "email_verified": false, "name": "", "billing_address": {"country": "Mauritius"}, "tax_id": ["za_vat", "", ""], "organization_id": "", "avatar_url": "https://tasty-sarong.com/"}, "benefit_id": "", "key": "", "display_key": "", "status": "revoked", "limit_activations": 284580, "usage": 781409, "limit_usage": 544651, "validations": 66993, "last_validated_at": "2022-03-08T17:05:22.411Z", "expires_at": "2022-11-19T07:34:10.466Z"}, {"id": "", "organization_id": "", "user_id": "", "customer_id": "", "user": {"id": "", "email": "Neha.Hane@hotmail.com", "public_name": ""}, "customer": {"created_at": "2022-01-06T17:33:20.863Z", "modified_at": "2024-06-07T14:29:00.429Z", "id": "", "metadata": {"key": false, "key1": false, "key2": ""}, "email": "Zackery.Runte@yahoo.com", "email_verified": false, "name": "", "billing_address": {"country": "Morocco"}, "tax_id": [""], "organization_id": "", "avatar_url": "https://graceful-halt.com"}, "benefit_id": "", "key": "", "display_key": "", "status": "granted", "limit_activations": 943672, "usage": 988711, "limit_usage": 422943, "validations": 370293, "last_validated_at": "2023-05-17T08:33:13.471Z", "expires_at": "2022-08-22T08:40:22.005Z"}], "pagination": {"total_count": 900911, "max_page": 50388}} + application/json: {"items": [{"id": "", "organization_id": "", "user_id": "", "customer_id": "", "user": {"id": "", "email": "Marie.Fay@yahoo.com", "public_name": ""}, "customer": {"created_at": "2022-01-20T06:21:22.156Z", "modified_at": "2024-02-27T06:14:46.641Z", "id": "", "metadata": {}, "email": "Martin.Nader@gmail.com", "email_verified": true, "name": "", "billing_address": {"country": "Bangladesh"}, "tax_id": ["sv_nit", "", ""], "organization_id": "", "avatar_url": "https://torn-affiliate.org/"}, "benefit_id": "", "key": "", "display_key": "", "status": "revoked", "limit_activations": 913465, "usage": 173090, "limit_usage": 75058, "validations": 897069, "last_validated_at": "2022-05-29T14:05:29.727Z", "expires_at": "2023-05-20T11:06:26.987Z"}, {"id": "", "organization_id": "", "user_id": "", "customer_id": "", "user": {"id": "", "email": "Hope_Brakus@yahoo.com", "public_name": ""}, "customer": {"created_at": "2024-08-04T08:35:41.482Z", "modified_at": "2022-12-03T21:35:05.453Z", "id": "", "metadata": {"key": ""}, "email": "Tatyana_Murphy91@gmail.com", "email_verified": false, "name": "", "billing_address": {"country": "Mauritius"}, "tax_id": ["za_vat", "", ""], "organization_id": "", "avatar_url": "https://tasty-sarong.com/"}, "benefit_id": "", "key": "", "display_key": "", "status": "revoked", "limit_activations": 284580, "usage": 781409, "limit_usage": 544651, "validations": 66993, "last_validated_at": "2022-03-08T17:05:22.411Z", "expires_at": "2022-11-19T07:34:10.466Z"}, {"id": "", "organization_id": "", "user_id": "", "customer_id": "", "user": {"id": "", "email": "Neha.Hane@hotmail.com", "public_name": ""}, "customer": {"created_at": "2022-01-06T17:33:20.863Z", "modified_at": "2024-06-07T14:29:00.429Z", "id": "", "metadata": {"key": false, "key1": true, "key2": ""}, "email": "Zackery.Runte@yahoo.com", "email_verified": false, "name": "", "billing_address": {"country": "Morocco"}, "tax_id": [""], "organization_id": "", "avatar_url": "https://graceful-halt.com"}, "benefit_id": "", "key": "", "display_key": "", "status": "granted", "limit_activations": 943672, "usage": 988711, "limit_usage": 422943, "validations": 370293, "last_validated_at": "2023-05-17T08:33:13.471Z", "expires_at": "2022-08-22T08:40:22.005Z"}], "pagination": {"total_count": 900911, "max_page": 50388}} "401": application/json: {"detail": ""} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} license_keys:get: speakeasy-default-license-keys:get: parameters: @@ -1989,7 +2063,8 @@ examples: application/json: {"detail": ""} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} license_keys:update: speakeasy-default-license-keys:update: parameters: @@ -2002,7 +2077,8 @@ examples: application/json: {"detail": ""} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} license_keys:get_activation: speakeasy-default-license-keys:get-activation: parameters: @@ -2011,26 +2087,29 @@ examples: activation_id: "" responses: "200": - application/json: {"id": "", "license_key_id": "", "label": "", "created_at": "2023-12-01T08:59:23.889Z", "modified_at": "2023-05-28T04:18:44.299Z", "license_key": {"id": "", "organization_id": "", "user_id": "", "customer_id": "", "user": {"id": "", "email": "Liliane.Donnelly57@hotmail.com", "public_name": ""}, "customer": {"created_at": "2022-02-12T09:53:47.529Z", "modified_at": "2023-03-29T03:08:34.429Z", "id": "", "metadata": {"key": true, "key1": false}, "email": "Jaylon_Jerde@gmail.com", "email_verified": false, "name": "", "billing_address": {"country": "Lesotho"}, "tax_id": [], "organization_id": "", "avatar_url": "https://superb-bidet.name/"}, "benefit_id": "", "key": "", "display_key": "", "status": "disabled", "limit_activations": 966179, "usage": 237111, "limit_usage": 444742, "validations": 555833, "last_validated_at": "2024-08-15T05:27:39.612Z", "expires_at": "2024-10-07T20:58:07.617Z"}} + application/json: {"id": "", "license_key_id": "", "label": "", "created_at": "2023-12-01T08:59:23.889Z", "modified_at": "2023-05-28T04:18:44.299Z", "license_key": {"id": "", "organization_id": "", "user_id": "", "customer_id": "", "user": {"id": "", "email": "Liliane.Donnelly57@hotmail.com", "public_name": ""}, "customer": {"created_at": "2022-02-12T09:53:47.529Z", "modified_at": "2023-03-29T03:08:34.429Z", "id": "", "metadata": {"key": true, "key1": 467317}, "email": "Jaylon_Jerde@gmail.com", "email_verified": false, "name": "", "billing_address": {"country": "Lesotho"}, "tax_id": [], "organization_id": "", "avatar_url": "https://superb-bidet.name/"}, "benefit_id": "", "key": "", "display_key": "", "status": "disabled", "limit_activations": 966179, "usage": 237111, "limit_usage": 444742, "validations": 555833, "last_validated_at": "2024-08-15T05:27:39.612Z", "expires_at": "2024-10-07T20:58:07.617Z"}} "401": application/json: {"detail": ""} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} checkout-links:list: speakeasy-default-checkout-links:list: responses: "200": - application/json: {"items": [{"created_at": "2023-08-23T19:26:20.850Z", "modified_at": "2024-01-14T10:26:00.433Z", "id": "", "metadata": {}, "client_secret": "", "success_url": "https://crooked-overload.name/", "label": "", "allow_discount_codes": true, "product_id": "", "product_price_id": "", "discount_id": "", "product": {"created_at": "2024-02-27T06:14:46.641Z", "modified_at": "2022-04-05T09:49:38.010Z", "id": "", "name": "", "description": "miserably fedora blah", "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2023-06-11T18:07:18.321Z", "modified_at": "2022-04-24T08:24:21.019Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 841031, "maximum_amount": 410206, "preset_amount": 863466, "recurring_interval": "month"}], "benefits": [{"created_at": "2022-05-05T09:08:16.530Z", "modified_at": "2022-07-18T12:08:53.113Z", "id": "", "type": "license_keys", "description": "gosh whenever as", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/Library", "mime_type": "", "size": 324206, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-04-16T23:50:27.729Z", "version": "", "is_uploaded": false, "created_at": "2023-05-04T10:59:46.313Z", "size_readable": "", "public_url": "https://stunning-vanadyl.net/"}, {"id": "", "organization_id": "", "name": "", "path": "/proc", "mime_type": "", "size": 948614, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-09-13T12:26:55.235Z", "version": "", "is_uploaded": true, "created_at": "2023-05-28T16:21:14.723Z", "size_readable": "", "public_url": "https://severe-ruin.info"}]}, "product_price": {"created_at": "2024-01-25T21:46:28.752Z", "modified_at": "2023-10-26T03:45:41.195Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 41398, "maximum_amount": 829409, "preset_amount": 329360, "recurring_interval": "month"}, "discount": {"duration": "once", "type": "percentage", "amount": 988711, "currency": "Yen", "created_at": "2023-02-10T20:11:51.410Z", "modified_at": "2023-05-17T08:33:13.471Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2024-09-14T09:33:23.636Z", "ends_at": "2022-02-25T05:24:29.459Z", "max_redemptions": 625217, "redemptions_count": 424586, "organization_id": ""}, "url": "https://dreary-dead.com/"}, {"created_at": "2024-01-09T15:39:01.722Z", "modified_at": "2024-07-08T10:18:47.471Z", "id": "", "metadata": {"key": true}, "client_secret": "", "success_url": "https://skeletal-reservation.biz/", "label": "", "allow_discount_codes": false, "product_id": "", "product_price_id": "", "discount_id": "", "product": {"created_at": "2022-04-26T06:24:09.264Z", "modified_at": "2023-10-15T09:46:50.350Z", "id": "", "name": "", "description": "stigmatize minor oh what steeple overheard swerve", "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2024-10-04T22:19:43.532Z", "modified_at": "2024-05-17T20:40:45.053Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 472871, "maximum_amount": 580639, "preset_amount": 212750}, {"created_at": "2022-03-14T00:43:13.016Z", "modified_at": "2023-12-12T21:57:01.257Z", "id": "", "is_archived": true, "product_id": ""}], "benefits": [], "medias": []}, "product_price": {"created_at": "2024-10-27T03:34:38.356Z", "modified_at": "2024-09-24T21:13:12.223Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 415930, "maximum_amount": 527743, "preset_amount": 19629}, "discount": {"duration": "once", "type": "percentage", "basis_points": 625809, "created_at": "2022-01-22T06:30:00.744Z", "modified_at": "2022-06-03T14:18:34.914Z", "id": "", "metadata": {"key": "", "key1": 439898, "key2": ""}, "name": "", "code": "", "starts_at": "2024-08-22T13:40:19.150Z", "ends_at": "2023-04-30T04:53:25.451Z", "max_redemptions": 561143, "redemptions_count": 207713, "organization_id": ""}, "url": "https://joyous-hawk.biz/"}, {"created_at": "2023-08-29T08:32:20.644Z", "modified_at": "2024-09-07T14:10:22.892Z", "id": "", "metadata": {"key": "", "key1": false, "key2": 973913}, "client_secret": "", "success_url": "https://agitated-couch.name/", "label": "", "allow_discount_codes": false, "product_id": "", "product_price_id": "", "discount_id": "", "product": {"created_at": "2024-08-19T10:34:27.488Z", "modified_at": "2024-04-21T05:31:02.040Z", "id": "", "name": "", "description": "what married owlishly which wonderfully CD", "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2023-10-06T17:09:46.559Z", "modified_at": "2022-05-22T12:31:34.361Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 446559, "maximum_amount": 269946, "preset_amount": 211832, "recurring_interval": "month"}], "benefits": [{"created_at": "2024-07-09T08:01:51.932Z", "modified_at": "2024-11-27T17:23:02.117Z", "id": "", "type": "custom", "description": "till boo ack solicit weakly segregate boo", "selectable": true, "deletable": false, "organization_id": ""}, {"created_at": "2024-10-06T07:08:41.329Z", "modified_at": "2024-12-31T08:16:04.009Z", "id": "", "type": "custom", "description": "opposite amnesty tomography how until to onto ouch shrilly ramp", "selectable": true, "deletable": false, "organization_id": ""}, {"created_at": "2022-09-15T23:31:11.246Z", "modified_at": "2024-10-29T11:50:25.062Z", "id": "", "type": "discord", "description": "icy council meanwhile except following ick verbally drat", "selectable": false, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/etc/mail", "mime_type": "", "size": 993741, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-11-16T01:22:49.169Z", "version": "", "is_uploaded": false, "created_at": "2023-12-09T05:38:21.152Z", "size_readable": "", "public_url": "https://tender-squid.org"}, {"id": "", "organization_id": "", "name": "", "path": "/usr", "mime_type": "", "size": 440830, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-06-16T08:19:05.026Z", "version": "", "is_uploaded": false, "created_at": "2024-07-16T11:55:05.618Z", "size_readable": "", "public_url": "https://unwelcome-license.org"}]}, "product_price": {"created_at": "2024-11-28T05:50:05.391Z", "modified_at": "2023-11-06T18:58:59.059Z", "id": "", "is_archived": true, "product_id": ""}, "discount": {"duration": "once", "type": "percentage", "amount": 113341, "currency": "Kuwaiti Dinar", "created_at": "2022-01-13T23:48:07.394Z", "modified_at": "2023-10-07T22:24:47.498Z", "id": "", "metadata": {"key": true, "key1": true}, "name": "", "code": "", "starts_at": "2023-05-18T10:01:40.294Z", "ends_at": "2023-05-01T20:59:40.436Z", "max_redemptions": 990326, "redemptions_count": 263498, "organization_id": ""}, "url": "https://dramatic-dish.com"}], "pagination": {"total_count": 679829, "max_page": 770830}} - "422": {} + application/json: {"items": [{"created_at": "2023-08-23T19:26:20.850Z", "modified_at": "2024-01-14T10:26:00.433Z", "id": "", "metadata": {}, "client_secret": "", "success_url": "https://crooked-overload.name/", "label": "", "allow_discount_codes": true, "product_id": "", "product_price_id": "", "discount_id": "", "product": {"created_at": "2024-02-27T06:14:46.641Z", "modified_at": "2022-04-05T09:49:38.010Z", "id": "", "name": "", "description": "miserably fedora blah", "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2024-01-14T10:26:00.433Z", "modified_at": "2022-07-14T18:23:27.528Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 152837, "maximum_amount": 635532, "preset_amount": 639387}], "benefits": [{"created_at": "2022-05-05T09:08:16.530Z", "modified_at": "2022-07-18T12:08:53.113Z", "id": "", "type": "license_keys", "description": "gosh whenever as", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/Library", "mime_type": "", "size": 324206, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-04-16T23:50:27.729Z", "version": "", "is_uploaded": false, "created_at": "2023-05-04T10:59:46.313Z", "size_readable": "", "public_url": "https://stunning-vanadyl.net/"}, {"id": "", "organization_id": "", "name": "", "path": "/proc", "mime_type": "", "size": 948614, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-09-13T12:26:55.235Z", "version": "", "is_uploaded": true, "created_at": "2023-05-28T16:21:14.723Z", "size_readable": "", "public_url": "https://severe-ruin.info"}]}, "product_price": {"created_at": "2022-04-05T09:49:38.010Z", "modified_at": "2022-03-17T01:57:00.187Z", "id": "", "is_archived": false, "product_id": "", "recurring_interval": "year"}, "discount": {"duration": "once", "type": "percentage", "amount": 988711, "currency": "Yen", "created_at": "2023-02-10T20:11:51.410Z", "modified_at": "2023-05-17T08:33:13.471Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2024-09-14T09:33:23.636Z", "ends_at": "2022-02-25T05:24:29.459Z", "max_redemptions": 625217, "redemptions_count": 424586, "organization_id": ""}, "url": "https://dreary-dead.com/"}, {"created_at": "2024-01-09T15:39:01.722Z", "modified_at": "2024-07-08T10:18:47.471Z", "id": "", "metadata": {"key": true}, "client_secret": "", "success_url": "https://skeletal-reservation.biz/", "label": "", "allow_discount_codes": false, "product_id": "", "product_price_id": "", "discount_id": "", "product": {"created_at": "2022-04-26T06:24:09.264Z", "modified_at": "2023-10-15T09:46:50.350Z", "id": "", "name": "", "description": "stigmatize minor oh what steeple overheard swerve", "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2022-03-01T20:22:54.911Z", "modified_at": "2023-02-08T01:09:52.088Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 73227}, {"created_at": "2024-08-18T13:00:42.665Z", "modified_at": "2023-06-22T03:00:04.393Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 322596, "maximum_amount": 860596, "preset_amount": 18278}], "benefits": [], "medias": []}, "product_price": {"created_at": "2024-09-28T03:47:03.515Z", "modified_at": "2022-07-09T16:58:41.012Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 897069, "maximum_amount": 135572, "preset_amount": 460276}, "discount": {"duration": "forever", "duration_in_months": 480616, "type": "fixed", "amount": 523875, "currency": "Tunisian Dinar", "created_at": "2023-03-26T14:03:52.771Z", "modified_at": "2024-08-04T08:35:41.482Z", "id": "", "metadata": {"key": 113486}, "name": "", "code": "", "starts_at": "2022-07-18T12:08:53.113Z", "ends_at": "2024-09-28T13:56:10.162Z", "max_redemptions": 33597, "redemptions_count": 628106, "organization_id": ""}, "url": "https://joyous-hawk.biz/"}, {"created_at": "2023-08-29T08:32:20.644Z", "modified_at": "2024-09-07T14:10:22.892Z", "id": "", "metadata": {"key": "", "key1": false, "key2": 973913}, "client_secret": "", "success_url": "https://agitated-couch.name/", "label": "", "allow_discount_codes": false, "product_id": "", "product_price_id": "", "discount_id": "", "product": {"created_at": "2024-08-19T10:34:27.488Z", "modified_at": "2024-04-21T05:31:02.040Z", "id": "", "name": "", "description": "what married owlishly which wonderfully CD", "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2023-09-15T04:48:08.824Z", "modified_at": "2024-07-08T11:13:00.198Z", "id": "", "is_archived": false, "product_id": "", "recurring_interval": "year"}], "benefits": [{"created_at": "2024-07-09T08:01:51.932Z", "modified_at": "2024-11-27T17:23:02.117Z", "id": "", "type": "custom", "description": "till boo ack solicit weakly segregate boo", "selectable": true, "deletable": false, "organization_id": ""}, {"created_at": "2024-10-06T07:08:41.329Z", "modified_at": "2024-12-31T08:16:04.009Z", "id": "", "type": "custom", "description": "opposite amnesty tomography how until to onto ouch shrilly ramp", "selectable": true, "deletable": false, "organization_id": ""}, {"created_at": "2022-09-15T23:31:11.246Z", "modified_at": "2024-10-29T11:50:25.062Z", "id": "", "type": "discord", "description": "icy council meanwhile except following ick verbally drat", "selectable": false, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/etc/mail", "mime_type": "", "size": 993741, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-11-16T01:22:49.169Z", "version": "", "is_uploaded": false, "created_at": "2023-12-09T05:38:21.152Z", "size_readable": "", "public_url": "https://tender-squid.org"}, {"id": "", "organization_id": "", "name": "", "path": "/usr", "mime_type": "", "size": 440830, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-06-16T08:19:05.026Z", "version": "", "is_uploaded": false, "created_at": "2024-07-16T11:55:05.618Z", "size_readable": "", "public_url": "https://unwelcome-license.org"}]}, "product_price": {"created_at": "2022-03-23T01:47:30.770Z", "modified_at": "2024-07-06T02:51:23.749Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "price_amount": 141764, "recurring_interval": "year"}, "discount": {"duration": "repeating", "duration_in_months": 544651, "type": "fixed", "amount": 60868, "currency": "Lari", "created_at": "2024-12-24T15:52:28.107Z", "modified_at": "2024-03-30T07:52:25.805Z", "id": "", "metadata": {"key": ""}, "name": "", "code": "", "starts_at": "2022-04-16T23:50:27.729Z", "ends_at": "2024-01-14T06:48:49.446Z", "max_redemptions": 445673, "redemptions_count": 5229, "organization_id": ""}, "url": "https://dramatic-dish.com"}], "pagination": {"total_count": 679829, "max_page": 770830}} + "422": + application/json: {} checkout-links:create: speakeasy-default-checkout-links:create: requestBody: application/json: {"product_id": ""} responses: "201": - application/json: {"created_at": "2023-12-01T17:06:07.804Z", "modified_at": "2023-04-03T12:48:32.253Z", "id": "", "metadata": {}, "client_secret": "", "success_url": "https://standard-utilization.com/", "label": "", "allow_discount_codes": true, "product_id": "", "product_price_id": "", "discount_id": "", "product": {"created_at": "2022-04-09T14:25:29.356Z", "modified_at": "2024-05-18T17:03:53.906Z", "id": "", "name": "", "description": "geez pearl nicely disposer demob fencing fencing vainly kookily", "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2022-11-20T22:21:08.259Z", "modified_at": "2022-08-11T18:29:05.567Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 712214, "maximum_amount": 995852, "preset_amount": 823683}, {"created_at": "2022-11-08T09:30:18.760Z", "modified_at": "2023-10-29T18:55:39.709Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 497070, "maximum_amount": 609755, "preset_amount": 520049, "recurring_interval": "year"}, {"created_at": "2023-10-09T10:25:33.125Z", "modified_at": "2024-08-06T15:05:56.075Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 770370}], "benefits": [{"created_at": "2022-04-15T08:31:18.832Z", "modified_at": "2024-10-17T04:31:41.259Z", "id": "", "type": "github_repository", "description": "where until waver colorless beyond victoriously consequently", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/home", "mime_type": "", "size": 616892, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-12-07T10:32:46.074Z", "version": "", "is_uploaded": true, "created_at": "2022-12-11T08:10:46.096Z", "size_readable": "", "public_url": "https://smooth-mouser.biz"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/libdata", "mime_type": "", "size": 850693, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-08-07T16:03:54.759Z", "version": "", "is_uploaded": true, "created_at": "2023-04-15T15:17:22.965Z", "size_readable": "", "public_url": "https://well-groomed-coordination.net"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/share", "mime_type": "", "size": 892770, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-08-07T10:40:26.624Z", "version": "", "is_uploaded": false, "created_at": "2023-12-30T21:05:10.955Z", "size_readable": "", "public_url": "https://fortunate-begonia.name"}]}, "product_price": {"created_at": "2023-06-06T11:03:53.648Z", "modified_at": "2024-02-02T04:08:07.069Z", "id": "", "is_archived": true, "product_id": ""}, "discount": {"duration": "forever", "duration_in_months": 400422, "type": "fixed", "amount": 229175, "currency": "Comoro Franc", "created_at": "2022-06-13T18:10:46.985Z", "modified_at": "2023-03-26T05:20:06.588Z", "id": "", "metadata": {"key": true, "key1": 884414}, "name": "", "code": "", "starts_at": "2023-01-07T20:05:20.802Z", "ends_at": "2022-12-09T20:13:45.912Z", "max_redemptions": 885411, "redemptions_count": 903800, "organization_id": ""}, "url": "https://proud-premier.net"} - "422": {} + application/json: {"created_at": "2023-12-01T17:06:07.804Z", "modified_at": "2023-04-03T12:48:32.253Z", "id": "", "metadata": {}, "client_secret": "", "success_url": "https://standard-utilization.com/", "label": "", "allow_discount_codes": true, "product_id": "", "product_price_id": "", "discount_id": "", "product": {"created_at": "2022-04-09T14:25:29.356Z", "modified_at": "2024-05-18T17:03:53.906Z", "id": "", "name": "", "description": "geez pearl nicely disposer demob fencing fencing vainly kookily", "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2022-05-28T06:20:22.766Z", "modified_at": "2022-03-17T15:39:20.911Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 951062, "maximum_amount": 86, "preset_amount": 169727}, {"created_at": "2024-06-13T23:30:51.782Z", "modified_at": "2023-10-05T11:56:21.731Z", "id": "", "is_archived": false, "product_id": "", "recurring_interval": "year"}, {"created_at": "2022-01-20T11:09:16.789Z", "modified_at": "2022-09-10T10:08:53.440Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 64738, "recurring_interval": "month"}], "benefits": [{"created_at": "2022-04-15T08:31:18.832Z", "modified_at": "2024-10-17T04:31:41.259Z", "id": "", "type": "github_repository", "description": "where until waver colorless beyond victoriously consequently", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/home", "mime_type": "", "size": 616892, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-12-07T10:32:46.074Z", "version": "", "is_uploaded": true, "created_at": "2022-12-11T08:10:46.096Z", "size_readable": "", "public_url": "https://smooth-mouser.biz"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/libdata", "mime_type": "", "size": 850693, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-08-07T16:03:54.759Z", "version": "", "is_uploaded": true, "created_at": "2023-04-15T15:17:22.965Z", "size_readable": "", "public_url": "https://well-groomed-coordination.net"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/share", "mime_type": "", "size": 892770, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-08-07T10:40:26.624Z", "version": "", "is_uploaded": false, "created_at": "2023-12-30T21:05:10.955Z", "size_readable": "", "public_url": "https://fortunate-begonia.name"}]}, "product_price": {"created_at": "2022-04-21T15:49:25.047Z", "modified_at": "2023-12-16T13:47:55.993Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 36521, "recurring_interval": "year"}, "discount": {"duration": "once", "type": "fixed", "basis_points": 523523, "created_at": "2022-01-31T06:30:36.486Z", "modified_at": "2023-12-25T00:15:46.309Z", "id": "", "metadata": {"key": true, "key1": 259772}, "name": "", "code": "", "starts_at": "2024-05-07T11:22:17.516Z", "ends_at": "2022-05-31T12:10:19.425Z", "max_redemptions": 703441, "redemptions_count": 920994, "organization_id": ""}, "url": "https://proud-premier.net"} + "422": + application/json: {} checkout-links:get: speakeasy-default-checkout-links:get: parameters: @@ -2038,10 +2117,11 @@ examples: id: "" responses: "200": - application/json: {"created_at": "2024-02-07T13:54:48.821Z", "modified_at": "2023-09-05T11:33:52.011Z", "id": "", "metadata": {"key": 969961, "key1": 450824}, "client_secret": "", "success_url": "https://earnest-tuber.info/", "label": "", "allow_discount_codes": false, "product_id": "", "product_price_id": "", "discount_id": "", "product": {"created_at": "2022-03-28T11:05:23.685Z", "modified_at": "2022-08-30T01:43:46.030Z", "id": "", "name": "", "description": "neaten qua meanwhile bah because", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2024-05-29T14:54:03.265Z", "modified_at": "2023-03-12T15:23:46.888Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 455424, "maximum_amount": 103111, "preset_amount": 716006}, {"created_at": "2024-04-06T10:37:18.493Z", "modified_at": "2024-07-13T14:31:52.430Z", "id": "", "is_archived": true, "product_id": "", "recurring_interval": "month"}], "benefits": [{"created_at": "2023-07-07T00:34:30.082Z", "modified_at": "2024-11-07T20:31:03.453Z", "id": "", "type": "discord", "description": "quizzically how lest", "selectable": false, "deletable": true, "organization_id": ""}, {"created_at": "2022-07-04T22:10:57.702Z", "modified_at": "2022-03-05T14:01:26.927Z", "id": "", "type": "github_repository", "description": "scholarship to blink", "selectable": false, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/Library", "mime_type": "", "size": 698722, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-08-12T22:26:32.433Z", "version": "", "is_uploaded": false, "created_at": "2023-02-05T08:11:26.016Z", "size_readable": "", "public_url": "https://babyish-mixture.org"}, {"id": "", "organization_id": "", "name": "", "path": "/net", "mime_type": "", "size": 287673, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-04-09T16:28:47.030Z", "version": "", "is_uploaded": false, "created_at": "2022-06-04T09:34:39.316Z", "size_readable": "", "public_url": "https://dutiful-grass.name"}]}, "product_price": {"created_at": "2022-11-15T11:05:23.221Z", "modified_at": "2023-12-01T03:14:17.295Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 363455, "maximum_amount": 954793, "preset_amount": 530112, "recurring_interval": "year"}, "discount": {"duration": "repeating", "duration_in_months": 449497, "type": "fixed", "amount": 960234, "currency": "Forint", "created_at": "2022-04-16T15:25:27.950Z", "modified_at": "2023-06-26T21:05:40.122Z", "id": "", "metadata": {"key": true, "key1": 247958}, "name": "", "code": "", "starts_at": "2024-05-08T18:55:26.211Z", "ends_at": "2022-06-29T15:48:45.688Z", "max_redemptions": 931908, "redemptions_count": 295386, "organization_id": ""}, "url": "https://alert-requirement.com"} + application/json: {"created_at": "2024-02-07T13:54:48.821Z", "modified_at": "2023-09-05T11:33:52.011Z", "id": "", "metadata": {"key": 969961, "key1": 450824}, "client_secret": "", "success_url": "https://earnest-tuber.info/", "label": "", "allow_discount_codes": false, "product_id": "", "product_price_id": "", "discount_id": "", "product": {"created_at": "2022-03-28T11:05:23.685Z", "modified_at": "2022-08-30T01:43:46.030Z", "id": "", "name": "", "description": "neaten qua meanwhile bah because", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2023-08-20T11:11:04.610Z", "modified_at": "2023-07-26T06:33:15.810Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 458049, "maximum_amount": 450824, "preset_amount": 262795}, {"created_at": "2023-04-26T04:53:50.189Z", "modified_at": "2024-05-28T07:17:57.134Z", "id": "", "is_archived": true, "product_id": "", "recurring_interval": "month"}], "benefits": [{"created_at": "2023-07-07T00:34:30.082Z", "modified_at": "2024-11-07T20:31:03.453Z", "id": "", "type": "discord", "description": "quizzically how lest", "selectable": false, "deletable": true, "organization_id": ""}, {"created_at": "2022-07-04T22:10:57.702Z", "modified_at": "2022-03-05T14:01:26.927Z", "id": "", "type": "github_repository", "description": "scholarship to blink", "selectable": false, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/Library", "mime_type": "", "size": 698722, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-08-12T22:26:32.433Z", "version": "", "is_uploaded": false, "created_at": "2023-02-05T08:11:26.016Z", "size_readable": "", "public_url": "https://babyish-mixture.org"}, {"id": "", "organization_id": "", "name": "", "path": "/net", "mime_type": "", "size": 287673, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-04-09T16:28:47.030Z", "version": "", "is_uploaded": false, "created_at": "2022-06-04T09:34:39.316Z", "size_readable": "", "public_url": "https://dutiful-grass.name"}]}, "product_price": {"created_at": "2023-08-29T15:06:35.685Z", "modified_at": "2024-06-02T05:45:06.910Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 746585, "recurring_interval": "year"}, "discount": {"duration": "once", "type": "fixed", "basis_points": 177375, "created_at": "2022-09-24T17:11:04.561Z", "modified_at": "2024-05-05T04:00:06.053Z", "id": "", "metadata": {"key": false}, "name": "", "code": "", "starts_at": "2024-02-18T16:58:52.102Z", "ends_at": "2024-09-23T09:26:26.647Z", "max_redemptions": 324692, "redemptions_count": 32069, "organization_id": ""}, "url": "https://alert-requirement.com"} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} checkout-links:update: speakeasy-default-checkout-links:update: parameters: @@ -2049,10 +2129,11 @@ examples: id: "" responses: "200": - application/json: {"created_at": "2024-07-28T19:04:48.565Z", "modified_at": "2023-10-17T10:52:42.015Z", "id": "", "metadata": {"key": false}, "client_secret": "", "success_url": "https://worthwhile-avalanche.org/", "label": "", "allow_discount_codes": true, "product_id": "", "product_price_id": "", "discount_id": "", "product": {"created_at": "2022-12-08T09:52:54.805Z", "modified_at": "2022-10-01T09:16:09.932Z", "id": "", "name": "", "description": "impressionable furthermore graceful hungrily", "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2022-04-23T07:27:43.936Z", "modified_at": "2024-05-13T01:40:59.920Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 348627, "maximum_amount": 404031, "preset_amount": 166206, "recurring_interval": "year"}, {"created_at": "2023-03-07T08:49:00.130Z", "modified_at": "2022-10-16T11:25:33.944Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 845914, "maximum_amount": 652850, "preset_amount": 828354}], "benefits": [{"created_at": "2022-08-12T00:40:23.342Z", "modified_at": "2024-01-06T19:25:16.577Z", "id": "", "type": "ads", "description": "belabor past wearily broadside backburn", "selectable": false, "deletable": true, "organization_id": ""}, {"created_at": "2022-02-07T07:18:25.786Z", "modified_at": "2024-09-26T03:13:45.129Z", "id": "", "type": "custom", "description": "misjudge scare cinema ouch weary euphonium", "selectable": false, "deletable": false, "organization_id": ""}], "medias": []}, "product_price": {"created_at": "2024-12-05T01:57:12.137Z", "modified_at": "2024-03-14T17:31:49.028Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "price_amount": 372087, "recurring_interval": "year"}, "discount": {"duration": "forever", "type": "percentage", "amount": 239080, "currency": "Vatu", "created_at": "2024-08-08T14:33:10.018Z", "modified_at": "2023-08-12T02:39:15.905Z", "id": "", "metadata": {"key": true}, "name": "", "code": "", "starts_at": "2024-05-05T06:06:40.987Z", "ends_at": "2024-10-17T01:35:15.856Z", "max_redemptions": 553018, "redemptions_count": 521348, "organization_id": ""}, "url": "https://unimportant-declaration.biz"} + application/json: {"created_at": "2024-07-28T19:04:48.565Z", "modified_at": "2023-10-17T10:52:42.015Z", "id": "", "metadata": {"key": false}, "client_secret": "", "success_url": "https://worthwhile-avalanche.org/", "label": "", "allow_discount_codes": true, "product_id": "", "product_price_id": "", "discount_id": "", "product": {"created_at": "2022-12-08T09:52:54.805Z", "modified_at": "2022-10-01T09:16:09.932Z", "id": "", "name": "", "description": "impressionable furthermore graceful hungrily", "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2023-11-19T22:44:58.301Z", "modified_at": "2023-06-20T18:46:17.643Z", "id": "", "is_archived": false, "product_id": "", "recurring_interval": "month"}, {"created_at": "2022-12-08T09:52:54.805Z", "modified_at": "2022-10-01T09:16:09.932Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 789275, "maximum_amount": 889838, "preset_amount": 302461}], "benefits": [{"created_at": "2022-08-12T00:40:23.342Z", "modified_at": "2024-01-06T19:25:16.577Z", "id": "", "type": "ads", "description": "belabor past wearily broadside backburn", "selectable": false, "deletable": true, "organization_id": ""}, {"created_at": "2022-02-07T07:18:25.786Z", "modified_at": "2024-09-26T03:13:45.129Z", "id": "", "type": "custom", "description": "misjudge scare cinema ouch weary euphonium", "selectable": false, "deletable": false, "organization_id": ""}], "medias": []}, "product_price": {"created_at": "2024-01-31T02:01:14.461Z", "modified_at": "2023-03-20T01:46:46.018Z", "id": "", "is_archived": true, "product_id": "", "recurring_interval": "year"}, "discount": {"duration": "forever", "duration_in_months": 501135, "type": "fixed", "basis_points": 232374, "created_at": "2023-01-22T19:32:52.503Z", "modified_at": "2024-06-22T20:20:38.468Z", "id": "", "metadata": {"key": false, "key1": 329712, "key2": 579805}, "name": "", "code": "", "starts_at": "2023-07-18T17:44:43.444Z", "ends_at": "2024-05-26T21:39:46.926Z", "max_redemptions": 72219, "redemptions_count": 151827, "organization_id": ""}, "url": "https://unimportant-declaration.biz"} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} checkout-links:delete: speakeasy-default-checkout-links:delete: parameters: @@ -2061,13 +2142,15 @@ examples: responses: "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} custom-fields:list: speakeasy-default-custom-fields:list: responses: "200": - application/json: {"items": [{"created_at": "2024-01-14T10:26:00.433Z", "modified_at": "2022-07-14T18:23:27.528Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": ""}, {"created_at": "2023-11-28T13:02:27.296Z", "modified_at": "2023-12-02T18:25:37.169Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": ""}, {"created_at": "2022-04-05T09:49:38.010Z", "modified_at": "2022-03-17T01:57:00.187Z", "id": "", "metadata": {"key": 633911, "key1": ""}, "slug": "", "name": "", "organization_id": "", "properties": {"options": []}}], "pagination": {"total_count": 367745, "max_page": 485729}} - "422": {} + application/json: {"items": [{"created_at": "2023-08-23T19:26:20.850Z", "modified_at": "2024-01-14T10:26:00.433Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": "", "properties": {"options": []}}, {"created_at": "2023-11-28T13:02:27.296Z", "modified_at": "2023-12-02T18:25:37.169Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": ""}, {"created_at": "2022-04-05T09:49:38.010Z", "modified_at": "2022-03-17T01:57:00.187Z", "id": "", "metadata": {"key": 633911, "key1": ""}, "slug": "", "name": "", "organization_id": "", "properties": {"options": []}}], "pagination": {"total_count": 367745, "max_page": 485729}} + "422": + application/json: {} custom-fields:create: speakeasy-default-custom-fields:create: requestBody: @@ -2075,7 +2158,8 @@ examples: responses: "201": application/json: {"created_at": "2023-04-03T12:48:32.253Z", "modified_at": "2022-05-28T06:20:22.766Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": "", "properties": {"options": [{"value": "", "label": ""}, {"value": "", "label": ""}, {"value": "", "label": ""}]}} - "422": {} + "422": + application/json: {} custom-fields:get: speakeasy-default-custom-fields:get: parameters: @@ -2086,7 +2170,8 @@ examples: application/json: {"created_at": "2023-09-05T11:33:52.011Z", "modified_at": "2023-08-20T11:11:04.610Z", "id": "", "metadata": {"key": true, "key1": 262795}, "slug": "", "name": "", "organization_id": "", "properties": {"options": []}} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} custom-fields:update: speakeasy-default-custom-fields:update: parameters: @@ -2097,7 +2182,8 @@ examples: application/json: {"created_at": "2023-01-13T16:52:57.274Z", "modified_at": "2024-12-22T15:27:45.882Z", "id": "", "metadata": {"key": 984008, "key1": ""}, "slug": "", "name": "", "organization_id": ""} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} custom-fields:delete: speakeasy-default-custom-fields:delete: parameters: @@ -2106,21 +2192,24 @@ examples: responses: "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} discounts:list: speakeasy-default-discounts:list: responses: "200": - application/json: {"items": [{"duration": "repeating", "type": "fixed", "basis_points": 229716, "created_at": "2022-06-17T12:14:27.999Z", "modified_at": "2023-11-28T13:02:27.296Z", "id": "", "metadata": {"key": "", "key1": true}, "name": "", "code": "", "starts_at": "2022-03-17T01:57:00.187Z", "ends_at": "2024-01-25T00:05:25.844Z", "max_redemptions": 509883, "redemptions_count": 633911, "organization_id": "", "products": []}, {"duration": "forever", "type": "fixed", "amount": 73227, "currency": "Tala", "created_at": "2023-09-14T22:04:07.138Z", "modified_at": "2024-08-18T13:00:42.665Z", "id": "", "metadata": {"key": ""}, "name": "", "code": "", "starts_at": "2022-12-20T13:34:28.286Z", "ends_at": "2024-08-01T05:06:49.492Z", "max_redemptions": 18278, "redemptions_count": 897196, "organization_id": "", "products": [{"created_at": "2024-09-28T03:47:03.515Z", "modified_at": "2022-07-09T16:58:41.012Z", "id": "", "name": "", "description": "brook cleverly blossom", "is_recurring": false, "is_archived": false, "organization_id": ""}]}, {"duration": "repeating", "duration_in_months": 996014, "type": "fixed", "basis_points": 164965, "created_at": "2022-03-23T01:47:30.770Z", "modified_at": "2024-07-06T02:51:23.749Z", "id": "", "metadata": {"key": "", "key1": 284580, "key2": false}, "name": "", "code": "", "starts_at": "2022-03-15T10:11:56.132Z", "ends_at": "2022-03-08T17:05:22.411Z", "max_redemptions": 294083, "redemptions_count": 993305, "organization_id": "", "products": [{"created_at": "2022-10-11T19:17:33.283Z", "modified_at": "2022-12-22T07:54:29.563Z", "id": "", "name": "", "description": "memorise ruin apparatus", "is_recurring": false, "is_archived": true, "organization_id": ""}, {"created_at": "2023-03-22T09:41:56.524Z", "modified_at": "2022-03-28T18:28:26.777Z", "id": "", "name": "", "description": "tenement commonly softly", "is_recurring": false, "is_archived": true, "organization_id": ""}]}], "pagination": {"total_count": 551258, "max_page": 105170}} - "422": {} + application/json: {"items": [{"duration": "forever", "duration_in_months": 678317, "type": "fixed", "basis_points": 229716, "created_at": "2022-06-17T12:14:27.999Z", "modified_at": "2023-11-28T13:02:27.296Z", "id": "", "metadata": {"key": "", "key1": true}, "name": "", "code": "", "starts_at": "2022-03-17T01:57:00.187Z", "ends_at": "2024-01-25T00:05:25.844Z", "max_redemptions": 509883, "redemptions_count": 633911, "organization_id": "", "products": []}, {"duration": "forever", "type": "fixed", "amount": 73227, "currency": "Tala", "created_at": "2023-09-14T22:04:07.138Z", "modified_at": "2024-08-18T13:00:42.665Z", "id": "", "metadata": {"key": ""}, "name": "", "code": "", "starts_at": "2022-12-20T13:34:28.286Z", "ends_at": "2024-08-01T05:06:49.492Z", "max_redemptions": 18278, "redemptions_count": 897196, "organization_id": "", "products": [{"created_at": "2024-09-28T03:47:03.515Z", "modified_at": "2022-07-09T16:58:41.012Z", "id": "", "name": "", "description": "brook cleverly blossom", "is_recurring": false, "is_archived": false, "organization_id": ""}]}, {"duration": "repeating", "duration_in_months": 996014, "type": "fixed", "basis_points": 164965, "created_at": "2022-03-23T01:47:30.770Z", "modified_at": "2024-07-06T02:51:23.749Z", "id": "", "metadata": {"key": "", "key1": 284580, "key2": false}, "name": "", "code": "", "starts_at": "2022-03-15T10:11:56.132Z", "ends_at": "2022-03-08T17:05:22.411Z", "max_redemptions": 294083, "redemptions_count": 993305, "organization_id": "", "products": [{"created_at": "2022-10-11T19:17:33.283Z", "modified_at": "2022-12-22T07:54:29.563Z", "id": "", "name": "", "description": "memorise ruin apparatus", "is_recurring": false, "is_archived": true, "organization_id": ""}, {"created_at": "2023-03-22T09:41:56.524Z", "modified_at": "2022-03-28T18:28:26.777Z", "id": "", "name": "", "description": "tenement commonly softly", "is_recurring": false, "is_archived": true, "organization_id": ""}]}], "pagination": {"total_count": 551258, "max_page": 105170}} + "422": + application/json: {} discounts:create: speakeasy-default-discounts:create: requestBody: application/json: {"duration": "forever", "duration_in_months": 417458, "type": "fixed", "amount": 69025, "name": ""} responses: "201": - application/json: {"duration": "repeating", "duration_in_months": 86, "type": "fixed", "basis_points": 89964, "created_at": "2024-05-18T17:03:53.906Z", "modified_at": "2024-06-13T23:30:51.782Z", "id": "", "metadata": {"key": false, "key1": 259629}, "name": "", "code": "", "starts_at": "2022-01-20T11:09:16.789Z", "ends_at": "2022-09-10T10:08:53.440Z", "max_redemptions": 211337, "redemptions_count": 64738, "organization_id": "", "products": [{"created_at": "2022-07-23T12:28:22.635Z", "modified_at": "2022-03-22T23:50:34.661Z", "id": "", "name": "", "description": "yuck mortally round", "is_recurring": true, "is_archived": true, "organization_id": ""}]} - "422": {} + application/json: {"duration": "forever", "duration_in_months": 417458, "type": "fixed", "amount": 69025, "currency": "South Sudanese pound", "created_at": "2024-11-08T08:43:39.394Z", "modified_at": "2022-01-01T02:16:41.381Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2022-04-09T14:25:29.356Z", "ends_at": "2024-05-18T17:03:53.906Z", "max_redemptions": 816588, "redemptions_count": 586220, "organization_id": "", "products": [{"created_at": "2024-11-15T07:40:19.243Z", "modified_at": "2023-01-27T07:05:06.005Z", "id": "", "name": "", "description": "bench around igloo scaffold junior", "is_recurring": true, "is_archived": true, "organization_id": ""}, {"created_at": "2024-10-10T05:37:22.119Z", "modified_at": "2022-02-19T18:37:18.227Z", "id": "", "name": "", "description": "coordination affect hmph worth", "is_recurring": false, "is_archived": true, "organization_id": ""}, {"created_at": "2023-11-12T08:08:14.535Z", "modified_at": "2022-11-08T09:30:18.760Z", "id": "", "name": "", "description": "clear-cut whoever defiantly indolent apud formula other", "is_recurring": false, "is_archived": true, "organization_id": ""}]} + "422": + application/json: {} discounts:get: speakeasy-default-discounts:get: parameters: @@ -2131,7 +2220,8 @@ examples: application/json: {"duration": "forever", "type": "percentage", "basis_points": 521235, "created_at": "2024-11-29T01:50:48.954Z", "modified_at": "2023-05-18T00:32:02.244Z", "id": "", "metadata": {"key": ""}, "name": "", "code": "", "starts_at": "2022-08-22T22:47:10.166Z", "ends_at": "2024-10-24T02:41:21.259Z", "max_redemptions": 438142, "redemptions_count": 801373, "organization_id": "", "products": []} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} discounts:update: speakeasy-default-discounts:update: parameters: @@ -2142,7 +2232,8 @@ examples: application/json: {"duration": "forever", "duration_in_months": 344620, "type": "percentage", "basis_points": 627690, "created_at": "2023-06-20T18:46:17.643Z", "modified_at": "2024-12-14T11:19:45.098Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2024-09-09T13:32:29.600Z", "ends_at": "2023-05-05T18:16:40.936Z", "max_redemptions": 311507, "redemptions_count": 249440, "organization_id": "", "products": []} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} discounts:delete: speakeasy-default-discounts:delete: parameters: @@ -2151,13 +2242,15 @@ examples: responses: "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} customers:list: speakeasy-default-customers:list: responses: "200": application/json: {"items": [{"created_at": "2023-08-23T19:26:20.850Z", "modified_at": "2024-01-14T10:26:00.433Z", "id": "", "metadata": {}, "email": "Candelario.Nikolaus71@gmail.com", "email_verified": true, "name": "", "billing_address": {"country": "Panama"}, "tax_id": ["ad_nrt", ""], "organization_id": "", "avatar_url": "https://lovely-bench.org/"}, {"created_at": "2023-09-14T22:04:07.138Z", "modified_at": "2024-08-18T13:00:42.665Z", "id": "", "metadata": {"key": ""}, "email": "Sabrina.Treutel91@gmail.com", "email_verified": true, "name": "", "billing_address": {"country": "Tokelau"}, "tax_id": [], "organization_id": "", "avatar_url": "https://instructive-hospitalization.info/"}, {"created_at": "2022-04-24T08:24:21.019Z", "modified_at": "2023-07-29T04:00:22.486Z", "id": "", "metadata": {"key": 863466, "key1": "", "key2": 113486}, "email": "Tatyana_Murphy91@gmail.com", "email_verified": false, "name": "", "billing_address": {"country": "Mauritius"}, "tax_id": ["za_vat", "", ""], "organization_id": "", "avatar_url": "https://tasty-sarong.com/"}], "pagination": {"total_count": 664080, "max_page": 284580}} - "422": {} + "422": + application/json: {} customers:create: speakeasy-default-customers:create: requestBody: @@ -2165,7 +2258,8 @@ examples: responses: "201": application/json: {"created_at": "2022-01-01T02:16:41.381Z", "modified_at": "2022-07-06T00:30:20.403Z", "id": "", "metadata": {}, "email": "Raymundo_Rolfson35@hotmail.com", "email_verified": true, "name": "", "billing_address": {"country": "Cyprus"}, "tax_id": [], "organization_id": "", "avatar_url": "https://glorious-convection.com/"} - "422": {} + "422": + application/json: {} customers:get: speakeasy-default-customers:get: parameters: @@ -2176,7 +2270,8 @@ examples: application/json: {"created_at": "2024-02-07T13:54:48.821Z", "modified_at": "2023-09-05T11:33:52.011Z", "id": "", "metadata": {"key": 969961, "key1": 450824}, "email": "Creola_Kessler7@gmail.com", "email_verified": true, "name": "", "billing_address": {"country": "Benin"}, "tax_id": ["eu_vat", "mx_rfc"], "organization_id": "", "avatar_url": "https://glorious-fellow.biz"} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} customers:update: speakeasy-default-customers:update: parameters: @@ -2187,7 +2282,8 @@ examples: application/json: {"created_at": "2024-07-28T19:04:48.565Z", "modified_at": "2023-10-17T10:52:42.015Z", "id": "", "metadata": {"key": false}, "email": "Wilson.Treutel31@yahoo.com", "email_verified": true, "name": "", "billing_address": {"country": "Senegal"}, "tax_id": ["", "", "no_voec"], "organization_id": "", "avatar_url": "https://animated-retention.net/"} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} customers:delete: speakeasy-default-customers:delete: parameters: @@ -2196,13 +2292,15 @@ examples: responses: "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} customer_portal:benefit-grants:list: speakeasy-default-customer-portal:benefit-grants:list: responses: "200": - application/json: {"items": [{"created_at": "2024-01-14T10:26:00.433Z", "modified_at": "2022-07-14T18:23:27.528Z", "id": "", "granted_at": "2022-09-09T18:28:08.953Z", "revoked_at": "2022-06-17T12:14:27.999Z", "customer_id": "", "benefit_id": "", "subscription_id": "", "order_id": "", "is_granted": false, "is_revoked": false, "benefit": {"created_at": "2022-01-20T06:21:22.156Z", "modified_at": "2024-02-27T06:14:46.641Z", "id": "", "description": "inwardly beautifully comparison", "selectable": true, "deletable": false, "organization_id": "", "organization": {"created_at": "2022-05-29T14:05:29.727Z", "modified_at": "2023-05-20T11:06:26.987Z", "id": "", "name": "", "slug": "", "avatar_url": "https://ironclad-iridescence.com/", "bio": "", "company": "Spencer Inc", "blog": "", "location": "", "email": "Elody.Bruen91@hotmail.com", "twitter_username": "", "pledge_minimum_amount": 628106, "pledge_badge_show_amount": false, "default_upfront_split_to_contributors": 918561}, "properties": {"prefix": "", "expires": {"ttl": 84189, "timeframe": "day"}, "activations": {"limit": 567701, "enable_customer_admin": false}, "limit_usage": 816637}}}, {"created_at": "2022-03-31T02:45:39.610Z", "modified_at": "2022-06-30T19:14:35.502Z", "id": "", "granted_at": "2022-03-23T01:47:30.770Z", "revoked_at": "2024-07-06T02:51:23.749Z", "customer_id": "", "benefit_id": "", "subscription_id": "", "order_id": "", "is_granted": false, "is_revoked": true, "benefit": {"created_at": "2023-12-29T19:56:44.465Z", "modified_at": "2022-11-08T21:35:05.868Z", "id": "", "description": "disk usher yesterday eek censor tenement commonly softly boo", "selectable": true, "deletable": false, "organization_id": "", "organization": {"created_at": "2023-02-27T07:39:18.966Z", "modified_at": "2024-10-20T12:04:56.060Z", "id": "", "name": "", "slug": "", "avatar_url": "https://troubled-knickers.biz", "bio": "", "company": "Rath - Kuhn", "blog": "", "location": "", "email": "Joseph.Crooks@hotmail.com", "twitter_username": "", "pledge_minimum_amount": 895464, "pledge_badge_show_amount": true, "default_upfront_split_to_contributors": 523166}, "properties": {"note": ""}}}, {"created_at": "2023-11-13T05:16:04.525Z", "modified_at": "2022-11-17T06:46:18.694Z", "id": "", "granted_at": "2022-10-09T03:58:07.827Z", "revoked_at": "2024-10-07T04:54:41.981Z", "customer_id": "", "benefit_id": "", "subscription_id": "", "order_id": "", "is_granted": false, "is_revoked": false, "benefit": {"created_at": "2024-09-08T09:13:39.168Z", "modified_at": "2024-01-26T06:39:02.045Z", "id": "", "description": "finally earth that early", "selectable": false, "deletable": false, "organization_id": "", "organization": {"created_at": "2022-03-14T00:43:13.016Z", "modified_at": "2023-12-12T21:57:01.257Z", "id": "", "name": "", "slug": "", "avatar_url": "https://expensive-abacus.org/", "bio": "", "company": "Weimann and Sons", "blog": "", "location": "", "email": "Hattie17@gmail.com", "twitter_username": "", "pledge_minimum_amount": 625809, "pledge_badge_show_amount": true, "default_upfront_split_to_contributors": 140142}, "properties": {"repository_owner": "polarsource", "repository_name": "private_repo"}}}], "pagination": {"total_count": 900213, "max_page": 29339}} - "422": {} + application/json: {"items": [{"created_at": "2023-08-23T19:26:20.850Z", "modified_at": "2024-01-14T10:26:00.433Z", "id": "", "granted_at": "2022-07-14T18:23:27.528Z", "revoked_at": "2022-09-09T18:28:08.953Z", "customer_id": "", "benefit_id": "", "subscription_id": "", "order_id": "", "is_granted": true, "is_revoked": false, "benefit": {"created_at": "2023-12-02T18:25:37.169Z", "modified_at": "2022-01-20T06:21:22.156Z", "id": "", "description": "avalanche jungle unto meanwhile beside tromp worth reluctantly", "selectable": true, "deletable": false, "organization_id": "", "organization": {"created_at": "2023-08-20T22:29:27.736Z", "modified_at": "2022-03-15T10:11:56.132Z", "id": "", "name": "", "slug": "", "avatar_url": "https://free-yak.net/", "bio": "", "company": "Hane - Boyer", "blog": "", "location": "", "email": "Isabell_Schroeder@hotmail.com", "twitter_username": "", "pledge_minimum_amount": 948614, "pledge_badge_show_amount": false, "default_upfront_split_to_contributors": 20615}}, "properties": {"advertisement_campaign_id": ""}}, {"created_at": "2024-12-25T01:40:30.203Z", "modified_at": "2024-03-07T11:07:08.720Z", "id": "", "granted_at": "2024-04-21T16:08:32.154Z", "revoked_at": "2023-03-22T14:01:55.283Z", "customer_id": "", "benefit_id": "", "subscription_id": "", "order_id": "", "is_granted": true, "is_revoked": false, "benefit": {"created_at": "2024-01-25T21:46:28.752Z", "modified_at": "2023-10-26T03:45:41.195Z", "id": "", "description": "ick absent righteously reservation down dramatic", "selectable": true, "deletable": false, "organization_id": "", "organization": {"created_at": "2023-06-21T06:51:31.298Z", "modified_at": "2024-07-07T11:43:51.448Z", "id": "", "name": "", "slug": "", "avatar_url": "https://sorrowful-coil.biz", "bio": "", "company": "Howell - Tremblay", "blog": "", "location": "", "email": "Judah25@gmail.com", "twitter_username": "", "pledge_minimum_amount": 726951, "pledge_badge_show_amount": false, "default_upfront_split_to_contributors": 895424}, "properties": {"active_files": ["", ""]}}}, {"created_at": "2023-06-11T07:32:02.289Z", "modified_at": "2024-03-21T06:52:57.825Z", "id": "", "granted_at": "2024-07-20T01:34:08.268Z", "revoked_at": "2022-11-06T04:06:54.106Z", "customer_id": "", "benefit_id": "", "subscription_id": "", "order_id": "", "is_granted": true, "is_revoked": true, "benefit": {"created_at": "2022-07-28T12:54:58.990Z", "modified_at": "2024-06-29T11:50:30.649Z", "id": "", "description": "never tooth swelter", "selectable": true, "deletable": false, "organization_id": "", "organization": {"created_at": "2023-03-24T19:09:17.797Z", "modified_at": "2022-09-28T14:04:50.967Z", "id": "", "name": "", "slug": "", "avatar_url": "https://well-lit-fund.org/", "bio": "", "company": "Feest, Johns and Legros", "blog": "", "location": "", "email": "Kaleb_Windler1@gmail.com", "twitter_username": "", "pledge_minimum_amount": 900213, "pledge_badge_show_amount": true, "default_upfront_split_to_contributors": 536405}, "properties": {"guild_id": ""}}}], "pagination": {"total_count": 900213, "max_page": 29339}} + "422": + application/json: {} customer_portal:benefit-grants:get: speakeasy-default-customer-portal:benefit-grants:get: parameters: @@ -2213,7 +2311,8 @@ examples: application/json: {"created_at": "2023-09-05T11:33:52.011Z", "modified_at": "2023-08-20T11:11:04.610Z", "id": "", "granted_at": "2023-07-26T06:33:15.810Z", "revoked_at": "2024-11-29T01:50:48.954Z", "customer_id": "", "benefit_id": "", "subscription_id": "", "order_id": "", "is_granted": true, "is_revoked": true, "benefit": {"created_at": "2022-10-16T00:34:27.106Z", "modified_at": "2022-08-22T22:47:10.166Z", "id": "", "description": "only fellow scary but embarrassment metabolise last huddle after unless", "selectable": true, "deletable": false, "organization_id": "", "organization": {"created_at": "2022-11-11T01:19:41.687Z", "modified_at": "2022-09-18T20:12:25.613Z", "id": "", "name": "", "slug": "", "avatar_url": "https://fantastic-scholarship.net", "bio": "", "company": "Dickens, Koch and Boehm", "blog": "", "location": "", "email": "Tyson.Cummings54@yahoo.com", "twitter_username": "", "pledge_minimum_amount": 491026, "pledge_badge_show_amount": false, "default_upfront_split_to_contributors": 638700}}, "properties": {"advertisement_campaign_id": ""}} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} customer_portal:benefit-grants:update: speakeasy-default-customer-portal:benefit-grants:update: parameters: @@ -2226,7 +2325,8 @@ examples: application/json: {"detail": ""} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} customer_portal:customers:get: speakeasy-default-customer-portal:customers:get: parameters: @@ -2237,13 +2337,15 @@ examples: application/json: {"created_at": "2024-02-07T13:54:48.821Z", "modified_at": "2023-09-05T11:33:52.011Z", "id": "", "email": "Jovanny21@yahoo.com", "email_verified": true, "name": "", "billing_address": {"country": "Sierra Leone"}, "tax_id": [], "oauth_accounts": {}} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} customer_portal:downloadables:list: speakeasy-default-customer-portal:downloadables:list: responses: "200": application/json: {"items": [{"id": "", "benefit_id": "", "file": {"id": "", "organization_id": "", "name": "", "path": "/root", "mime_type": "", "size": 678317, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-07-14T18:23:27.528Z", "download": {"url": "https://crooked-overload.name/", "expires_at": "2022-01-20T06:21:22.156Z"}, "version": "", "is_uploaded": false, "service": "downloadable", "size_readable": ""}}, {"id": "", "benefit_id": "", "file": {"id": "", "organization_id": "", "name": "", "path": "/dev", "mime_type": "", "size": 687960, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-07-13T19:57:33.016Z", "download": {"url": "https://acidic-avalanche.info", "expires_at": "2023-06-17T08:36:51.636Z"}, "version": "", "is_uploaded": true, "service": "organization_avatar", "size_readable": ""}}, {"id": "", "benefit_id": "", "file": {"id": "", "organization_id": "", "name": "", "path": "/selinux", "mime_type": "", "size": 876407, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-06-22T03:00:04.393Z", "download": {"url": "https://glorious-strategy.com/", "expires_at": "2024-09-10T07:49:25.657Z"}, "version": "", "is_uploaded": true, "service": "organization_avatar", "size_readable": ""}}], "pagination": {"total_count": 173090, "max_page": 75058}} - "422": {} + "422": + application/json: {} customer_portal:downloadables:customer_portal.downloadables.get: speakeasy-default-customer-portal:downloadables:customer-portal-downloadables-get: parameters: @@ -2252,17 +2354,19 @@ examples: responses: "200": application/json: "" - "422": {} + "422": + application/json: {} customer_portal:license_keys:list: speakeasy-default-customer-portal:license-keys:list: responses: "200": - application/json: {"items": [{"id": "", "organization_id": "", "user_id": "", "customer_id": "", "user": {"id": "", "email": "Marie.Fay@yahoo.com", "public_name": ""}, "customer": {"created_at": "2022-01-20T06:21:22.156Z", "modified_at": "2024-02-27T06:14:46.641Z", "id": "", "metadata": {}, "email": "Martin.Nader@gmail.com", "email_verified": true, "name": "", "billing_address": {"country": "Bangladesh"}, "tax_id": ["sv_nit", "", ""], "organization_id": "", "avatar_url": "https://torn-affiliate.org/"}, "benefit_id": "", "key": "", "display_key": "", "status": "revoked", "limit_activations": 913465, "usage": 173090, "limit_usage": 75058, "validations": 897069, "last_validated_at": "2022-05-29T14:05:29.727Z", "expires_at": "2023-05-20T11:06:26.987Z"}, {"id": "", "organization_id": "", "user_id": "", "customer_id": "", "user": {"id": "", "email": "Hope_Brakus@yahoo.com", "public_name": ""}, "customer": {"created_at": "2024-08-04T08:35:41.482Z", "modified_at": "2022-12-03T21:35:05.453Z", "id": "", "metadata": {"key": ""}, "email": "Tatyana_Murphy91@gmail.com", "email_verified": false, "name": "", "billing_address": {"country": "Mauritius"}, "tax_id": ["za_vat", "", ""], "organization_id": "", "avatar_url": "https://tasty-sarong.com/"}, "benefit_id": "", "key": "", "display_key": "", "status": "revoked", "limit_activations": 284580, "usage": 781409, "limit_usage": 544651, "validations": 66993, "last_validated_at": "2022-03-08T17:05:22.411Z", "expires_at": "2022-11-19T07:34:10.466Z"}, {"id": "", "organization_id": "", "user_id": "", "customer_id": "", "user": {"id": "", "email": "Neha.Hane@hotmail.com", "public_name": ""}, "customer": {"created_at": "2022-01-06T17:33:20.863Z", "modified_at": "2024-06-07T14:29:00.429Z", "id": "", "metadata": {"key": false, "key1": false, "key2": ""}, "email": "Zackery.Runte@yahoo.com", "email_verified": false, "name": "", "billing_address": {"country": "Morocco"}, "tax_id": [""], "organization_id": "", "avatar_url": "https://graceful-halt.com"}, "benefit_id": "", "key": "", "display_key": "", "status": "granted", "limit_activations": 943672, "usage": 988711, "limit_usage": 422943, "validations": 370293, "last_validated_at": "2023-05-17T08:33:13.471Z", "expires_at": "2022-08-22T08:40:22.005Z"}], "pagination": {"total_count": 900911, "max_page": 50388}} + application/json: {"items": [{"id": "", "organization_id": "", "user_id": "", "customer_id": "", "user": {"id": "", "email": "Marie.Fay@yahoo.com", "public_name": ""}, "customer": {"created_at": "2022-01-20T06:21:22.156Z", "modified_at": "2024-02-27T06:14:46.641Z", "id": "", "metadata": {}, "email": "Martin.Nader@gmail.com", "email_verified": true, "name": "", "billing_address": {"country": "Bangladesh"}, "tax_id": ["sv_nit", "", ""], "organization_id": "", "avatar_url": "https://torn-affiliate.org/"}, "benefit_id": "", "key": "", "display_key": "", "status": "revoked", "limit_activations": 913465, "usage": 173090, "limit_usage": 75058, "validations": 897069, "last_validated_at": "2022-05-29T14:05:29.727Z", "expires_at": "2023-05-20T11:06:26.987Z"}, {"id": "", "organization_id": "", "user_id": "", "customer_id": "", "user": {"id": "", "email": "Hope_Brakus@yahoo.com", "public_name": ""}, "customer": {"created_at": "2024-08-04T08:35:41.482Z", "modified_at": "2022-12-03T21:35:05.453Z", "id": "", "metadata": {"key": ""}, "email": "Tatyana_Murphy91@gmail.com", "email_verified": false, "name": "", "billing_address": {"country": "Mauritius"}, "tax_id": ["za_vat", "", ""], "organization_id": "", "avatar_url": "https://tasty-sarong.com/"}, "benefit_id": "", "key": "", "display_key": "", "status": "revoked", "limit_activations": 284580, "usage": 781409, "limit_usage": 544651, "validations": 66993, "last_validated_at": "2022-03-08T17:05:22.411Z", "expires_at": "2022-11-19T07:34:10.466Z"}, {"id": "", "organization_id": "", "user_id": "", "customer_id": "", "user": {"id": "", "email": "Neha.Hane@hotmail.com", "public_name": ""}, "customer": {"created_at": "2022-01-06T17:33:20.863Z", "modified_at": "2024-06-07T14:29:00.429Z", "id": "", "metadata": {"key": false, "key1": true, "key2": ""}, "email": "Zackery.Runte@yahoo.com", "email_verified": false, "name": "", "billing_address": {"country": "Morocco"}, "tax_id": [""], "organization_id": "", "avatar_url": "https://graceful-halt.com"}, "benefit_id": "", "key": "", "display_key": "", "status": "granted", "limit_activations": 943672, "usage": 988711, "limit_usage": 422943, "validations": 370293, "last_validated_at": "2023-05-17T08:33:13.471Z", "expires_at": "2022-08-22T08:40:22.005Z"}], "pagination": {"total_count": 900911, "max_page": 50388}} "401": application/json: {"detail": ""} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} customer_portal:license_keys:get: speakeasy-default-customer-portal:license-keys:get: parameters: @@ -2273,17 +2377,19 @@ examples: application/json: {"id": "", "organization_id": "", "user_id": "", "customer_id": "", "user": {"id": "", "email": "Keeley_Lebsack@hotmail.com", "public_name": ""}, "customer": {"created_at": "2022-10-16T00:34:27.106Z", "modified_at": "2022-08-22T22:47:10.166Z", "id": "", "metadata": {"key": 801373, "key1": "", "key2": ""}, "email": "Aurelio.Schoen@gmail.com", "email_verified": false, "name": "", "billing_address": {"country": "Gabon"}, "tax_id": [""], "organization_id": "", "avatar_url": "https://sparse-edge.net/"}, "benefit_id": "", "key": "", "display_key": "", "status": "disabled", "limit_activations": 710500, "usage": 909118, "limit_usage": 324692, "validations": 32069, "last_validated_at": "2024-11-21T18:15:13.381Z", "expires_at": "2023-05-03T12:57:21.117Z", "activations": [{"id": "", "license_key_id": "", "label": "", "created_at": "2022-05-26T16:57:22.796Z", "modified_at": "2022-06-25T00:21:23.098Z"}]} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} customer_portal:license_keys:validate: speakeasy-default-customer-portal:license-keys:validate: requestBody: application/json: {"key": "", "organization_id": ""} responses: "200": - application/json: {"id": "", "organization_id": "", "user_id": "", "customer_id": "", "user": {"id": "", "email": "Clotilde.Frami@hotmail.com", "public_name": ""}, "customer": {"created_at": "2023-06-20T08:52:32.019Z", "modified_at": "2022-01-16T10:18:54.359Z", "id": "", "metadata": {"key": 495384, "key1": 982092, "key2": false}, "email": "Garrett.Gottlieb-Mayer@hotmail.com", "email_verified": false, "name": "", "billing_address": {"country": "Gambia"}, "tax_id": ["", "", ""], "organization_id": "", "avatar_url": "https://sore-meal.name"}, "benefit_id": "", "key": "", "display_key": "", "status": "granted", "limit_activations": 583538, "usage": 399852, "limit_usage": 903429, "validations": 426755, "last_validated_at": "2024-12-01T23:16:48.830Z", "expires_at": "2024-12-29T17:14:08.855Z"} + application/json: {"id": "", "organization_id": "", "user_id": "", "customer_id": "", "user": {"id": "", "email": "Clotilde.Frami@hotmail.com", "public_name": ""}, "customer": {"created_at": "2023-06-20T08:52:32.019Z", "modified_at": "2022-01-16T10:18:54.359Z", "id": "", "metadata": {"key": 495384, "key1": 982092, "key2": true}, "email": "Garrett.Gottlieb-Mayer@hotmail.com", "email_verified": false, "name": "", "billing_address": {"country": "Gambia"}, "tax_id": ["", "", ""], "organization_id": "", "avatar_url": "https://sore-meal.name"}, "benefit_id": "", "key": "", "display_key": "", "status": "granted", "limit_activations": 583538, "usage": 399852, "limit_usage": 903429, "validations": 426755, "last_validated_at": "2024-12-01T23:16:48.830Z", "expires_at": "2024-12-29T17:14:08.855Z"} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} customer_portal:license_keys:activate: speakeasy-default-customer-portal:license-keys:activate: requestBody: @@ -2295,7 +2401,8 @@ examples: application/json: {"detail": ""} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} customer_portal:license_keys:deactivate: speakeasy-default-customer-portal:license-keys:deactivate: requestBody: @@ -2303,13 +2410,15 @@ examples: responses: "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} customer_portal:orders:list: speakeasy-default-customer-portal:orders:list: responses: "200": - application/json: {"items": [{"created_at": "2023-08-23T19:26:20.850Z", "modified_at": "2024-01-14T10:26:00.433Z", "id": "", "amount": 177706, "tax_amount": 229716, "currency": "Belize Dollar", "customer_id": "", "product_id": "", "product_price_id": "", "subscription_id": "", "user_id": "", "product": {"created_at": "2023-11-28T13:02:27.296Z", "modified_at": "2023-12-02T18:25:37.169Z", "id": "", "name": "", "description": "accountability pish likewise", "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [], "benefits": [{"created_at": "2022-05-29T14:05:29.727Z", "modified_at": "2023-05-20T11:06:26.987Z", "id": "", "type": "discord", "description": "beside tromp worth reluctantly wound accompanist", "selectable": false, "deletable": false, "organization_id": ""}, {"created_at": "2024-05-02T01:42:40.060Z", "modified_at": "2023-07-09T07:59:15.466Z", "id": "", "type": "license_keys", "description": "angrily inasmuch irritably finally round alongside whoever jump joyfully discourse", "selectable": false, "deletable": false, "organization_id": ""}, {"created_at": "2024-06-02T11:43:36.892Z", "modified_at": "2024-09-08T09:13:39.168Z", "id": "", "type": "downloadables", "description": "finally earth that early", "selectable": false, "deletable": false, "organization_id": ""}], "medias": [], "organization": {"created_at": "2023-12-12T21:57:01.257Z", "modified_at": "2023-03-24T19:09:17.797Z", "id": "", "name": "", "slug": "", "avatar_url": "https://acceptable-validity.info/", "bio": "", "company": "Vandervort, Feest and Johns", "blog": "", "location": "", "email": "Aimee_DAmore62@yahoo.com", "twitter_username": "", "pledge_minimum_amount": 140142, "pledge_badge_show_amount": false, "default_upfront_split_to_contributors": 29339}}, "product_price": {"created_at": "2022-11-15T16:58:31.247Z", "modified_at": "2024-08-22T13:40:19.150Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 561143, "maximum_amount": 207713, "preset_amount": 360}, "subscription": {"created_at": "2023-04-28T12:09:29.137Z", "modified_at": "2023-03-31T01:03:36.657Z", "id": "", "amount": 253529, "currency": "Tugrik", "recurring_interval": "year", "status": "canceled", "current_period_start": "2022-06-16T22:11:32.719Z", "current_period_end": "2024-10-03T23:44:36.269Z", "cancel_at_period_end": false, "started_at": "2023-06-19T04:12:45.071Z", "ended_at": "2024-12-03T09:47:00.347Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": ""}}, {"created_at": "2022-09-13T06:39:19.968Z", "modified_at": "2022-01-21T07:06:12.853Z", "id": "", "amount": 197777, "tax_amount": 621450, "currency": "Manat", "customer_id": "", "product_id": "", "product_price_id": "", "subscription_id": "", "user_id": "", "product": {"created_at": "2024-08-19T10:34:27.488Z", "modified_at": "2024-04-21T05:31:02.040Z", "id": "", "name": "", "description": "what married owlishly which wonderfully CD", "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2023-10-06T17:09:46.559Z", "modified_at": "2022-05-22T12:31:34.361Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 446559, "maximum_amount": 269946, "preset_amount": 211832, "recurring_interval": "month"}], "benefits": [{"created_at": "2024-07-09T08:01:51.932Z", "modified_at": "2024-11-27T17:23:02.117Z", "id": "", "type": "custom", "description": "till boo ack solicit weakly segregate boo", "selectable": true, "deletable": false, "organization_id": ""}, {"created_at": "2024-10-06T07:08:41.329Z", "modified_at": "2024-12-31T08:16:04.009Z", "id": "", "type": "custom", "description": "opposite amnesty tomography how until to onto ouch shrilly ramp", "selectable": true, "deletable": false, "organization_id": ""}, {"created_at": "2022-09-15T23:31:11.246Z", "modified_at": "2024-10-29T11:50:25.062Z", "id": "", "type": "discord", "description": "icy council meanwhile except following ick verbally drat", "selectable": false, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/etc/mail", "mime_type": "", "size": 993741, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-11-16T01:22:49.169Z", "version": "", "is_uploaded": false, "created_at": "2023-12-09T05:38:21.152Z", "size_readable": "", "public_url": "https://tender-squid.org"}, {"id": "", "organization_id": "", "name": "", "path": "/usr", "mime_type": "", "size": 440830, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-06-16T08:19:05.026Z", "version": "", "is_uploaded": false, "created_at": "2024-07-16T11:55:05.618Z", "size_readable": "", "public_url": "https://unwelcome-license.org"}], "organization": {"created_at": "2024-05-28T03:27:06.201Z", "modified_at": "2024-08-23T10:37:24.845Z", "id": "", "name": "", "slug": "", "avatar_url": "https://plump-horde.com", "bio": "", "company": "Pfeffer - Bruen", "blog": "", "location": "", "email": "Adolf17@yahoo.com", "twitter_username": "", "pledge_minimum_amount": 73002, "pledge_badge_show_amount": true, "default_upfront_split_to_contributors": 443316}}, "product_price": {"created_at": "2023-08-29T04:19:26.736Z", "modified_at": "2022-08-15T15:31:52.313Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 67039}, "subscription": {"created_at": "2024-01-16T02:12:31.415Z", "modified_at": "2024-04-24T19:54:59.989Z", "id": "", "amount": 537373, "currency": "Moldovan Leu", "recurring_interval": "year", "status": "past_due", "current_period_start": "2023-09-01T03:57:12.777Z", "current_period_end": "2024-03-30T11:09:26.643Z", "cancel_at_period_end": false, "started_at": "2024-03-07T05:10:23.090Z", "ended_at": "2023-06-12T11:22:18.392Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": ""}}, {"created_at": "2023-04-27T04:18:19.309Z", "modified_at": "2023-01-21T09:29:51.966Z", "id": "", "amount": 213662, "tax_amount": 898170, "currency": "Comoro Franc", "customer_id": "", "product_id": "", "product_price_id": "", "subscription_id": "", "user_id": "", "product": {"created_at": "2023-07-09T08:27:04.982Z", "modified_at": "2024-03-05T15:08:11.722Z", "id": "", "name": "", "description": "boo larva homely commonly grass", "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [], "benefits": [{"created_at": "2024-10-22T23:23:39.791Z", "modified_at": "2023-05-30T02:21:30.439Z", "id": "", "type": "ads", "description": "blowgun zowie yahoo on drum dusk rightfully finally", "selectable": true, "deletable": true, "organization_id": ""}, {"created_at": "2023-11-26T06:16:53.741Z", "modified_at": "2022-02-25T14:48:29.331Z", "id": "", "type": "license_keys", "description": "technician jaggedly scarcely honestly submitter", "selectable": true, "deletable": false, "organization_id": ""}, {"created_at": "2024-05-26T16:28:35.656Z", "modified_at": "2022-08-22T17:51:41.532Z", "id": "", "type": "custom", "description": "aw ew once underneath mid impressionable jovially", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/mnt", "mime_type": "", "size": 196134, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-04-13T21:18:45.526Z", "version": "", "is_uploaded": true, "created_at": "2024-01-14T08:44:55.565Z", "size_readable": "", "public_url": "https://oddball-cricket.name"}], "organization": {"created_at": "2022-06-11T01:25:26.848Z", "modified_at": "2022-04-01T21:39:44.500Z", "id": "", "name": "", "slug": "", "avatar_url": "https://helpful-barracks.org/", "bio": "", "company": "Schmidt, Ferry and Cormier", "blog": "", "location": "", "email": "Irma_McCullough30@gmail.com", "twitter_username": "", "pledge_minimum_amount": 974, "pledge_badge_show_amount": true, "default_upfront_split_to_contributors": 206014}}, "product_price": {"created_at": "2024-03-18T16:47:11.340Z", "modified_at": "2022-06-01T11:34:05.876Z", "id": "", "is_archived": false, "product_id": "", "recurring_interval": "month"}, "subscription": {"created_at": "2023-01-19T21:34:42.876Z", "modified_at": "2024-08-07T03:26:01.283Z", "id": "", "amount": 772002, "currency": "Malaysian Ringgit", "recurring_interval": "year", "status": "past_due", "current_period_start": "2022-02-25T21:21:59.049Z", "current_period_end": "2024-02-14T12:44:36.784Z", "cancel_at_period_end": true, "started_at": "2023-06-19T20:01:25.362Z", "ended_at": "2022-11-08T22:14:18.852Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": ""}}], "pagination": {"total_count": 584415, "max_page": 883301}} - "422": {} + application/json: {"items": [{"created_at": "2023-08-23T19:26:20.850Z", "modified_at": "2024-01-14T10:26:00.433Z", "id": "", "amount": 177706, "tax_amount": 229716, "currency": "Belize Dollar", "customer_id": "", "product_id": "", "product_price_id": "", "subscription_id": "", "user_id": "", "product": {"created_at": "2023-11-28T13:02:27.296Z", "modified_at": "2023-12-02T18:25:37.169Z", "id": "", "name": "", "description": "accountability pish likewise", "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [], "benefits": [{"created_at": "2022-05-29T14:05:29.727Z", "modified_at": "2023-05-20T11:06:26.987Z", "id": "", "type": "discord", "description": "beside tromp worth reluctantly wound accompanist", "selectable": false, "deletable": false, "organization_id": ""}, {"created_at": "2024-05-02T01:42:40.060Z", "modified_at": "2023-07-09T07:59:15.466Z", "id": "", "type": "license_keys", "description": "angrily inasmuch irritably finally round alongside whoever jump joyfully discourse", "selectable": false, "deletable": false, "organization_id": ""}, {"created_at": "2024-06-02T11:43:36.892Z", "modified_at": "2024-09-08T09:13:39.168Z", "id": "", "type": "downloadables", "description": "finally earth that early", "selectable": false, "deletable": false, "organization_id": ""}], "medias": [], "organization": {"created_at": "2023-12-12T21:57:01.257Z", "modified_at": "2023-03-24T19:09:17.797Z", "id": "", "name": "", "slug": "", "avatar_url": "https://acceptable-validity.info/", "bio": "", "company": "Vandervort, Feest and Johns", "blog": "", "location": "", "email": "Aimee_DAmore62@yahoo.com", "twitter_username": "", "pledge_minimum_amount": 140142, "pledge_badge_show_amount": false, "default_upfront_split_to_contributors": 29339}}, "product_price": {"created_at": "2024-01-14T10:26:00.433Z", "modified_at": "2022-07-14T18:23:27.528Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 152837, "maximum_amount": 635532, "preset_amount": 639387}, "subscription": {"created_at": "2023-04-28T12:09:29.137Z", "modified_at": "2023-03-31T01:03:36.657Z", "id": "", "amount": 253529, "currency": "Tugrik", "recurring_interval": "year", "status": "canceled", "current_period_start": "2022-06-16T22:11:32.719Z", "current_period_end": "2024-10-03T23:44:36.269Z", "cancel_at_period_end": false, "started_at": "2023-06-19T04:12:45.071Z", "ended_at": "2024-12-03T09:47:00.347Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": ""}}, {"created_at": "2022-09-13T06:39:19.968Z", "modified_at": "2022-01-21T07:06:12.853Z", "id": "", "amount": 197777, "tax_amount": 621450, "currency": "Manat", "customer_id": "", "product_id": "", "product_price_id": "", "subscription_id": "", "user_id": "", "product": {"created_at": "2024-08-19T10:34:27.488Z", "modified_at": "2024-04-21T05:31:02.040Z", "id": "", "name": "", "description": "what married owlishly which wonderfully CD", "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2022-04-05T09:49:38.010Z", "modified_at": "2022-03-17T01:57:00.187Z", "id": "", "is_archived": false, "product_id": "", "recurring_interval": "year"}], "benefits": [{"created_at": "2024-07-09T08:01:51.932Z", "modified_at": "2024-11-27T17:23:02.117Z", "id": "", "type": "custom", "description": "till boo ack solicit weakly segregate boo", "selectable": true, "deletable": false, "organization_id": ""}, {"created_at": "2024-10-06T07:08:41.329Z", "modified_at": "2024-12-31T08:16:04.009Z", "id": "", "type": "custom", "description": "opposite amnesty tomography how until to onto ouch shrilly ramp", "selectable": true, "deletable": false, "organization_id": ""}, {"created_at": "2022-09-15T23:31:11.246Z", "modified_at": "2024-10-29T11:50:25.062Z", "id": "", "type": "discord", "description": "icy council meanwhile except following ick verbally drat", "selectable": false, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/etc/mail", "mime_type": "", "size": 993741, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-11-16T01:22:49.169Z", "version": "", "is_uploaded": false, "created_at": "2023-12-09T05:38:21.152Z", "size_readable": "", "public_url": "https://tender-squid.org"}, {"id": "", "organization_id": "", "name": "", "path": "/usr", "mime_type": "", "size": 440830, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-06-16T08:19:05.026Z", "version": "", "is_uploaded": false, "created_at": "2024-07-16T11:55:05.618Z", "size_readable": "", "public_url": "https://unwelcome-license.org"}], "organization": {"created_at": "2024-05-28T03:27:06.201Z", "modified_at": "2024-08-23T10:37:24.845Z", "id": "", "name": "", "slug": "", "avatar_url": "https://plump-horde.com", "bio": "", "company": "Pfeffer - Bruen", "blog": "", "location": "", "email": "Adolf17@yahoo.com", "twitter_username": "", "pledge_minimum_amount": 73002, "pledge_badge_show_amount": true, "default_upfront_split_to_contributors": 443316}}, "product_price": {"created_at": "2022-03-01T20:22:54.911Z", "modified_at": "2023-02-08T01:09:52.088Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 73227}, "subscription": {"created_at": "2024-01-16T02:12:31.415Z", "modified_at": "2024-04-24T19:54:59.989Z", "id": "", "amount": 537373, "currency": "Moldovan Leu", "recurring_interval": "year", "status": "past_due", "current_period_start": "2023-09-01T03:57:12.777Z", "current_period_end": "2024-03-30T11:09:26.643Z", "cancel_at_period_end": false, "started_at": "2024-03-07T05:10:23.090Z", "ended_at": "2023-06-12T11:22:18.392Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": ""}}, {"created_at": "2023-04-27T04:18:19.309Z", "modified_at": "2023-01-21T09:29:51.966Z", "id": "", "amount": 213662, "tax_amount": 898170, "currency": "Comoro Franc", "customer_id": "", "product_id": "", "product_price_id": "", "subscription_id": "", "user_id": "", "product": {"created_at": "2023-07-09T08:27:04.982Z", "modified_at": "2024-03-05T15:08:11.722Z", "id": "", "name": "", "description": "boo larva homely commonly grass", "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [], "benefits": [{"created_at": "2024-10-22T23:23:39.791Z", "modified_at": "2023-05-30T02:21:30.439Z", "id": "", "type": "ads", "description": "blowgun zowie yahoo on drum dusk rightfully finally", "selectable": true, "deletable": true, "organization_id": ""}, {"created_at": "2023-11-26T06:16:53.741Z", "modified_at": "2022-02-25T14:48:29.331Z", "id": "", "type": "license_keys", "description": "technician jaggedly scarcely honestly submitter", "selectable": true, "deletable": false, "organization_id": ""}, {"created_at": "2024-05-26T16:28:35.656Z", "modified_at": "2022-08-22T17:51:41.532Z", "id": "", "type": "custom", "description": "aw ew once underneath mid impressionable jovially", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/mnt", "mime_type": "", "size": 196134, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-04-13T21:18:45.526Z", "version": "", "is_uploaded": true, "created_at": "2024-01-14T08:44:55.565Z", "size_readable": "", "public_url": "https://oddball-cricket.name"}], "organization": {"created_at": "2022-06-11T01:25:26.848Z", "modified_at": "2022-04-01T21:39:44.500Z", "id": "", "name": "", "slug": "", "avatar_url": "https://helpful-barracks.org/", "bio": "", "company": "Schmidt, Ferry and Cormier", "blog": "", "location": "", "email": "Irma_McCullough30@gmail.com", "twitter_username": "", "pledge_minimum_amount": 974, "pledge_badge_show_amount": true, "default_upfront_split_to_contributors": 206014}}, "product_price": {"created_at": "2024-08-18T13:00:42.665Z", "modified_at": "2023-06-22T03:00:04.393Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 322596, "maximum_amount": 860596, "preset_amount": 18278}, "subscription": {"created_at": "2023-01-19T21:34:42.876Z", "modified_at": "2024-08-07T03:26:01.283Z", "id": "", "amount": 772002, "currency": "Malaysian Ringgit", "recurring_interval": "year", "status": "past_due", "current_period_start": "2022-02-25T21:21:59.049Z", "current_period_end": "2024-02-14T12:44:36.784Z", "cancel_at_period_end": true, "started_at": "2023-06-19T20:01:25.362Z", "ended_at": "2022-11-08T22:14:18.852Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": ""}}], "pagination": {"total_count": 584415, "max_page": 883301}} + "422": + application/json: {} customer_portal:orders:get: speakeasy-default-customer-portal:orders:get: parameters: @@ -2317,10 +2426,11 @@ examples: id: "" responses: "200": - application/json: {"created_at": "2024-02-07T13:54:48.821Z", "modified_at": "2023-09-05T11:33:52.011Z", "id": "", "amount": 544221, "tax_amount": 521235, "currency": "Rand", "customer_id": "", "product_id": "", "product_price_id": "", "subscription_id": "", "user_id": "", "product": {"created_at": "2023-05-18T00:32:02.244Z", "modified_at": "2023-05-10T02:28:23.533Z", "id": "", "name": "", "description": "extract neaten qua meanwhile bah", "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2023-02-26T18:55:59.898Z", "modified_at": "2022-04-10T19:02:17.424Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 508887, "maximum_amount": 656841, "preset_amount": 570980}, {"created_at": "2023-03-12T15:23:46.888Z", "modified_at": "2024-03-05T14:23:34.462Z", "id": "", "is_archived": true, "product_id": ""}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt/include", "mime_type": "", "size": 908293, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-04-06T10:37:18.493Z", "version": "", "is_uploaded": false, "created_at": "2023-04-01T04:11:43.083Z", "size_readable": "", "public_url": "https://shy-knuckle.org/"}, {"id": "", "organization_id": "", "name": "", "path": "/private/var", "mime_type": "", "size": 72108, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-03-31T04:26:02.125Z", "version": "", "is_uploaded": true, "created_at": "2023-12-13T10:59:52.193Z", "size_readable": "", "public_url": "https://writhing-airman.name"}], "organization": {"created_at": "2024-01-25T20:29:18.334Z", "modified_at": "2022-11-17T13:07:10.938Z", "id": "", "name": "", "slug": "", "avatar_url": "https://foolish-descendant.net", "bio": "", "company": "Schaefer - Sawayn", "blog": "", "location": "", "email": "Citlalli.Boehm@hotmail.com", "twitter_username": "", "pledge_minimum_amount": 168726, "pledge_badge_show_amount": true, "default_upfront_split_to_contributors": 546533}}, "product_price": {"created_at": "2023-11-27T02:36:46.301Z", "modified_at": "2023-12-02T00:21:35.045Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 974994, "maximum_amount": 547184, "preset_amount": 786783, "recurring_interval": "year"}, "subscription": {"created_at": "2022-02-04T11:10:26.128Z", "modified_at": "2023-01-08T11:20:01.925Z", "id": "", "amount": 844917, "currency": "Moldovan Leu", "recurring_interval": "year", "status": "canceled", "current_period_start": "2023-01-20T11:46:53.929Z", "current_period_end": "2023-08-09T16:26:13.017Z", "cancel_at_period_end": false, "started_at": "2024-09-27T20:59:18.499Z", "ended_at": "2022-08-28T17:52:37.706Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": ""}} + application/json: {"created_at": "2024-02-07T13:54:48.821Z", "modified_at": "2023-09-05T11:33:52.011Z", "id": "", "amount": 544221, "tax_amount": 521235, "currency": "Rand", "customer_id": "", "product_id": "", "product_price_id": "", "subscription_id": "", "user_id": "", "product": {"created_at": "2023-05-18T00:32:02.244Z", "modified_at": "2023-05-10T02:28:23.533Z", "id": "", "name": "", "description": "extract neaten qua meanwhile bah", "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2023-08-20T11:11:04.610Z", "modified_at": "2023-07-26T06:33:15.810Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 458049, "maximum_amount": 450824, "preset_amount": 262795}, {"created_at": "2023-04-26T04:53:50.189Z", "modified_at": "2024-05-28T07:17:57.134Z", "id": "", "is_archived": true, "product_id": "", "recurring_interval": "month"}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt/include", "mime_type": "", "size": 908293, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-04-06T10:37:18.493Z", "version": "", "is_uploaded": false, "created_at": "2023-04-01T04:11:43.083Z", "size_readable": "", "public_url": "https://shy-knuckle.org/"}, {"id": "", "organization_id": "", "name": "", "path": "/private/var", "mime_type": "", "size": 72108, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-03-31T04:26:02.125Z", "version": "", "is_uploaded": true, "created_at": "2023-12-13T10:59:52.193Z", "size_readable": "", "public_url": "https://writhing-airman.name"}], "organization": {"created_at": "2024-01-25T20:29:18.334Z", "modified_at": "2022-11-17T13:07:10.938Z", "id": "", "name": "", "slug": "", "avatar_url": "https://foolish-descendant.net", "bio": "", "company": "Schaefer - Sawayn", "blog": "", "location": "", "email": "Citlalli.Boehm@hotmail.com", "twitter_username": "", "pledge_minimum_amount": 168726, "pledge_badge_show_amount": true, "default_upfront_split_to_contributors": 546533}}, "product_price": {"created_at": "2023-08-29T15:06:35.685Z", "modified_at": "2024-06-02T05:45:06.910Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 746585, "recurring_interval": "year"}, "subscription": {"created_at": "2022-02-04T11:10:26.128Z", "modified_at": "2023-01-08T11:20:01.925Z", "id": "", "amount": 844917, "currency": "Moldovan Leu", "recurring_interval": "year", "status": "canceled", "current_period_start": "2023-01-20T11:46:53.929Z", "current_period_end": "2023-08-09T16:26:13.017Z", "cancel_at_period_end": false, "started_at": "2024-09-27T20:59:18.499Z", "ended_at": "2022-08-28T17:52:37.706Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": ""}} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} customer_portal:orders:invoice: speakeasy-default-customer-portal:orders:invoice: parameters: @@ -2331,7 +2441,8 @@ examples: application/json: {"url": "https://those-director.org"} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} customer_portal:organizations:get: speakeasy-default-customer-portal:organizations:get: parameters: @@ -2342,13 +2453,15 @@ examples: application/json: {"created_at": "2024-02-07T13:54:48.821Z", "modified_at": "2023-09-05T11:33:52.011Z", "id": "", "name": "", "slug": "", "avatar_url": "https://misguided-violin.info", "bio": "", "company": "Gislason Group", "blog": "", "location": "", "email": "Ian.Block31@hotmail.com", "twitter_username": "", "pledge_minimum_amount": 552582, "pledge_badge_show_amount": false, "default_upfront_split_to_contributors": 380699} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} customer_portal:subscriptions:list: speakeasy-default-customer-portal:subscriptions:list: responses: "200": - application/json: {"items": [{"created_at": "2023-08-23T19:26:20.850Z", "modified_at": "2024-01-14T10:26:00.433Z", "id": "", "amount": 177706, "currency": "Danish Krone", "recurring_interval": "month", "status": "past_due", "current_period_start": "2023-12-02T18:25:37.169Z", "current_period_end": "2022-01-20T06:21:22.156Z", "cancel_at_period_end": false, "started_at": "2022-04-05T09:49:38.010Z", "ended_at": "2022-03-17T01:57:00.187Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "user_id": "", "product": {"created_at": "2024-01-25T00:05:25.844Z", "modified_at": "2023-07-13T19:57:33.016Z", "id": "", "name": "", "description": "since zowie loudly aha although gosh whenever as", "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2022-04-16T23:50:27.729Z", "modified_at": "2024-01-14T06:48:49.446Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 5229, "recurring_interval": "year"}, {"created_at": "2023-07-09T07:59:15.466Z", "modified_at": "2024-11-05T16:19:50.933Z", "id": "", "is_archived": false, "product_id": ""}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/var/yp", "mime_type": "", "size": 726700, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-04-21T16:08:32.154Z", "version": "", "is_uploaded": true, "created_at": "2022-02-02T01:51:19.643Z", "size_readable": "", "public_url": "https://robust-nightlife.info"}], "organization": {"created_at": "2022-02-15T08:57:09.959Z", "modified_at": "2024-06-28T00:46:13.804Z", "id": "", "name": "", "slug": "", "avatar_url": "https://improbable-bin.com/", "bio": "", "company": "Yundt, Kassulke and Hilpert", "blog": "", "location": "", "email": "Craig_Beatty42@yahoo.com", "twitter_username": "", "pledge_minimum_amount": 207451, "pledge_badge_show_amount": true, "default_upfront_split_to_contributors": 123187}}, "price": {"created_at": "2023-05-22T17:28:14.899Z", "modified_at": "2024-04-07T21:37:23.489Z", "id": "", "is_archived": true, "product_id": ""}}, {"created_at": "2023-06-19T05:46:32.685Z", "modified_at": "2024-04-03T18:06:02.533Z", "id": "", "amount": 751563, "currency": "Fiji Dollar", "recurring_interval": "year", "status": "incomplete", "current_period_start": "2023-10-15T09:46:50.350Z", "current_period_end": "2023-09-15T02:22:04.749Z", "cancel_at_period_end": true, "started_at": "2023-03-16T17:53:52.024Z", "ended_at": "2023-10-23T07:49:38.272Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "user_id": "", "product": {"created_at": "2023-02-27T07:39:18.966Z", "modified_at": "2024-10-20T12:04:56.060Z", "id": "", "name": "", "description": "times uselessly toothpick silently aftermath never tooth swelter", "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2024-11-11T02:33:24.486Z", "modified_at": "2023-02-07T13:50:00.322Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "price_amount": 910479, "recurring_interval": "month"}], "benefits": [{"created_at": "2023-08-02T09:45:28.536Z", "modified_at": "2022-01-22T12:19:34.261Z", "id": "", "type": "github_repository", "description": "obnoxiously after crooked enthusiastically", "selectable": false, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/libexec", "mime_type": "", "size": 412854, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-10-29T17:09:20.090Z", "version": "", "is_uploaded": true, "created_at": "2023-01-25T00:59:27.422Z", "size_readable": "", "public_url": "https://oblong-inspection.net"}, {"id": "", "organization_id": "", "name": "", "path": "/etc/periodic", "mime_type": "", "size": 783071, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-02-15T10:16:55.982Z", "version": "", "is_uploaded": false, "created_at": "2023-06-28T18:50:42.778Z", "size_readable": "", "public_url": "https://married-presume.net"}, {"id": "", "organization_id": "", "name": "", "path": "/var/mail", "mime_type": "", "size": 674469, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-06-25T16:02:25.369Z", "version": "", "is_uploaded": true, "created_at": "2023-09-11T11:54:14.319Z", "size_readable": "", "public_url": "https://writhing-conversation.com"}], "organization": {"created_at": "2023-10-30T05:49:01.311Z", "modified_at": "2022-12-07T09:46:44.632Z", "id": "", "name": "", "slug": "", "avatar_url": "https://hateful-linseed.info", "bio": "", "company": "Powlowski - Ebert", "blog": "", "location": "", "email": "Timmy27@hotmail.com", "twitter_username": "", "pledge_minimum_amount": 421, "pledge_badge_show_amount": false, "default_upfront_split_to_contributors": 327973}}, "price": {"created_at": "2023-12-15T18:53:29.970Z", "modified_at": "2023-10-06T17:09:46.559Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 779761, "recurring_interval": "month"}}, {"created_at": "2022-10-23T20:39:57.368Z", "modified_at": "2022-08-21T04:01:37.813Z", "id": "", "amount": 119137, "currency": "Manat", "recurring_interval": "year", "status": "unpaid", "current_period_start": "2022-04-04T09:25:47.730Z", "current_period_end": "2023-09-27T01:29:37.942Z", "cancel_at_period_end": true, "started_at": "2024-09-05T07:44:59.336Z", "ended_at": "2022-07-24T14:46:52.205Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "user_id": "", "product": {"created_at": "2022-04-28T15:20:19.317Z", "modified_at": "2023-06-28T02:37:34.714Z", "id": "", "name": "", "description": "and jaggedly aftermath after although while", "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2022-06-26T17:38:16.835Z", "modified_at": "2024-09-04T00:37:31.188Z", "id": "", "is_archived": true, "product_id": ""}, {"created_at": "2023-10-05T10:11:23.447Z", "modified_at": "2022-12-10T20:12:06.938Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 655920, "maximum_amount": 265783, "preset_amount": 249879}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/etc/defaults", "mime_type": "", "size": 96811, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-02-08T12:01:40.965Z", "version": "", "is_uploaded": true, "created_at": "2024-07-17T07:32:23.211Z", "size_readable": "", "public_url": "https://unimportant-tusk.net/"}, {"id": "", "organization_id": "", "name": "", "path": "/var/log", "mime_type": "", "size": 714491, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-01-18T21:03:55.557Z", "version": "", "is_uploaded": false, "created_at": "2022-05-10T00:49:50.875Z", "size_readable": "", "public_url": "https://passionate-dream.net/"}], "organization": {"created_at": "2022-08-25T01:38:35.053Z", "modified_at": "2024-07-11T17:35:14.425Z", "id": "", "name": "", "slug": "", "avatar_url": "https://lovable-gift.net/", "bio": "", "company": "Fisher and Sons", "blog": "", "location": "", "email": "Akeem28@yahoo.com", "twitter_username": "", "pledge_minimum_amount": 526688, "pledge_badge_show_amount": true, "default_upfront_split_to_contributors": 201885}}, "price": {"created_at": "2024-05-21T00:14:09.882Z", "modified_at": "2024-10-05T07:36:38.773Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 168572}}], "pagination": {"total_count": 206196, "max_page": 741584}} - "422": {} + application/json: {"items": [{"created_at": "2023-08-23T19:26:20.850Z", "modified_at": "2024-01-14T10:26:00.433Z", "id": "", "amount": 177706, "currency": "Danish Krone", "recurring_interval": "month", "status": "past_due", "current_period_start": "2023-12-02T18:25:37.169Z", "current_period_end": "2022-01-20T06:21:22.156Z", "cancel_at_period_end": false, "started_at": "2022-04-05T09:49:38.010Z", "ended_at": "2022-03-17T01:57:00.187Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "user_id": "", "product": {"created_at": "2024-01-25T00:05:25.844Z", "modified_at": "2023-07-13T19:57:33.016Z", "id": "", "name": "", "description": "since zowie loudly aha although gosh whenever as", "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2024-01-14T10:26:00.433Z", "modified_at": "2022-07-14T18:23:27.528Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 152837, "maximum_amount": 635532, "preset_amount": 639387}, {"created_at": "2022-04-05T09:49:38.010Z", "modified_at": "2022-03-17T01:57:00.187Z", "id": "", "is_archived": false, "product_id": "", "recurring_interval": "year"}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/var/yp", "mime_type": "", "size": 726700, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-04-21T16:08:32.154Z", "version": "", "is_uploaded": true, "created_at": "2022-02-02T01:51:19.643Z", "size_readable": "", "public_url": "https://robust-nightlife.info"}], "organization": {"created_at": "2022-02-15T08:57:09.959Z", "modified_at": "2024-06-28T00:46:13.804Z", "id": "", "name": "", "slug": "", "avatar_url": "https://improbable-bin.com/", "bio": "", "company": "Yundt, Kassulke and Hilpert", "blog": "", "location": "", "email": "Craig_Beatty42@yahoo.com", "twitter_username": "", "pledge_minimum_amount": 207451, "pledge_badge_show_amount": true, "default_upfront_split_to_contributors": 123187}}, "price": {"created_at": "2022-03-01T20:22:54.911Z", "modified_at": "2023-02-08T01:09:52.088Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 73227}}, {"created_at": "2023-06-19T05:46:32.685Z", "modified_at": "2024-04-03T18:06:02.533Z", "id": "", "amount": 751563, "currency": "Fiji Dollar", "recurring_interval": "year", "status": "incomplete", "current_period_start": "2023-10-15T09:46:50.350Z", "current_period_end": "2023-09-15T02:22:04.749Z", "cancel_at_period_end": true, "started_at": "2023-03-16T17:53:52.024Z", "ended_at": "2023-10-23T07:49:38.272Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "user_id": "", "product": {"created_at": "2023-02-27T07:39:18.966Z", "modified_at": "2024-10-20T12:04:56.060Z", "id": "", "name": "", "description": "times uselessly toothpick silently aftermath never tooth swelter", "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2024-08-18T13:00:42.665Z", "modified_at": "2023-06-22T03:00:04.393Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 322596, "maximum_amount": 860596, "preset_amount": 18278}], "benefits": [{"created_at": "2023-08-02T09:45:28.536Z", "modified_at": "2022-01-22T12:19:34.261Z", "id": "", "type": "github_repository", "description": "obnoxiously after crooked enthusiastically", "selectable": false, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/libexec", "mime_type": "", "size": 412854, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-10-29T17:09:20.090Z", "version": "", "is_uploaded": true, "created_at": "2023-01-25T00:59:27.422Z", "size_readable": "", "public_url": "https://oblong-inspection.net"}, {"id": "", "organization_id": "", "name": "", "path": "/etc/periodic", "mime_type": "", "size": 783071, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-02-15T10:16:55.982Z", "version": "", "is_uploaded": false, "created_at": "2023-06-28T18:50:42.778Z", "size_readable": "", "public_url": "https://married-presume.net"}, {"id": "", "organization_id": "", "name": "", "path": "/var/mail", "mime_type": "", "size": 674469, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-06-25T16:02:25.369Z", "version": "", "is_uploaded": true, "created_at": "2023-09-11T11:54:14.319Z", "size_readable": "", "public_url": "https://writhing-conversation.com"}], "organization": {"created_at": "2023-10-30T05:49:01.311Z", "modified_at": "2022-12-07T09:46:44.632Z", "id": "", "name": "", "slug": "", "avatar_url": "https://hateful-linseed.info", "bio": "", "company": "Powlowski - Ebert", "blog": "", "location": "", "email": "Timmy27@hotmail.com", "twitter_username": "", "pledge_minimum_amount": 421, "pledge_badge_show_amount": false, "default_upfront_split_to_contributors": 327973}}, "price": {"created_at": "2024-09-28T03:47:03.515Z", "modified_at": "2022-07-09T16:58:41.012Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 897069, "maximum_amount": 135572, "preset_amount": 460276}}, {"created_at": "2022-10-23T20:39:57.368Z", "modified_at": "2022-08-21T04:01:37.813Z", "id": "", "amount": 119137, "currency": "Manat", "recurring_interval": "year", "status": "unpaid", "current_period_start": "2022-04-04T09:25:47.730Z", "current_period_end": "2023-09-27T01:29:37.942Z", "cancel_at_period_end": true, "started_at": "2024-09-05T07:44:59.336Z", "ended_at": "2022-07-24T14:46:52.205Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "user_id": "", "product": {"created_at": "2022-04-28T15:20:19.317Z", "modified_at": "2023-06-28T02:37:34.714Z", "id": "", "name": "", "description": "and jaggedly aftermath after although while", "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2023-06-11T18:07:18.321Z", "modified_at": "2022-04-24T08:24:21.019Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 841031, "maximum_amount": 410206, "preset_amount": 863466, "recurring_interval": "month"}, {"created_at": "2022-07-18T12:08:53.113Z", "modified_at": "2024-09-28T13:56:10.162Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 628106, "recurring_interval": "year"}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/etc/defaults", "mime_type": "", "size": 96811, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-02-08T12:01:40.965Z", "version": "", "is_uploaded": true, "created_at": "2024-07-17T07:32:23.211Z", "size_readable": "", "public_url": "https://unimportant-tusk.net/"}, {"id": "", "organization_id": "", "name": "", "path": "/var/log", "mime_type": "", "size": 714491, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-01-18T21:03:55.557Z", "version": "", "is_uploaded": false, "created_at": "2022-05-10T00:49:50.875Z", "size_readable": "", "public_url": "https://passionate-dream.net/"}], "organization": {"created_at": "2022-08-25T01:38:35.053Z", "modified_at": "2024-07-11T17:35:14.425Z", "id": "", "name": "", "slug": "", "avatar_url": "https://lovable-gift.net/", "bio": "", "company": "Fisher and Sons", "blog": "", "location": "", "email": "Akeem28@yahoo.com", "twitter_username": "", "pledge_minimum_amount": 526688, "pledge_badge_show_amount": true, "default_upfront_split_to_contributors": 201885}}, "price": {"created_at": "2024-01-30T10:30:11.361Z", "modified_at": "2023-09-15T04:48:08.824Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "price_amount": 816637}}], "pagination": {"total_count": 206196, "max_page": 741584}} + "422": + application/json: {} customer_portal:subscriptions:get: speakeasy-default-customer-portal:subscriptions:get: parameters: @@ -2356,10 +2469,11 @@ examples: id: "" responses: "200": - application/json: {"created_at": "2024-02-07T13:54:48.821Z", "modified_at": "2023-09-05T11:33:52.011Z", "id": "", "amount": 544221, "currency": "Moroccan Dirham", "recurring_interval": "year", "status": "active", "current_period_start": "2023-05-10T02:28:23.533Z", "current_period_end": "2022-10-16T00:34:27.106Z", "cancel_at_period_end": true, "started_at": "2024-10-24T02:41:21.259Z", "ended_at": "2023-04-26T04:53:50.189Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "user_id": "", "product": {"created_at": "2024-05-28T07:17:57.134Z", "modified_at": "2022-03-28T11:05:23.685Z", "id": "", "name": "", "description": "notwithstanding however willfully toward", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2023-03-23T10:25:11.970Z", "modified_at": "2023-02-26T18:55:59.898Z", "id": "", "is_archived": true, "product_id": ""}], "benefits": [{"created_at": "2023-07-12T17:45:11.243Z", "modified_at": "2023-12-21T21:32:22.245Z", "id": "", "type": "github_repository", "description": "harangue once out effector determined backburn weary", "selectable": false, "deletable": false, "organization_id": ""}, {"created_at": "2024-12-01T14:44:00.985Z", "modified_at": "2022-02-04T11:10:26.128Z", "id": "", "type": "discord", "description": "unwilling disk modulo offset pacemaker violently plait trench guilt", "selectable": false, "deletable": true, "organization_id": ""}, {"created_at": "2022-12-12T23:35:27.798Z", "modified_at": "2022-10-07T02:56:50.564Z", "id": "", "type": "discord", "description": "upon triumphantly minus", "selectable": true, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/root", "mime_type": "", "size": 413854, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-01-20T21:06:21.391Z", "version": "", "is_uploaded": true, "created_at": "2023-04-24T16:38:24.942Z", "size_readable": "", "public_url": "https://square-cash.org/"}, {"id": "", "organization_id": "", "name": "", "path": "/Network", "mime_type": "", "size": 418179, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-06-14T20:06:16.618Z", "version": "", "is_uploaded": true, "created_at": "2024-02-18T20:06:14.861Z", "size_readable": "", "public_url": "https://classic-netsuke.biz/"}, {"id": "", "organization_id": "", "name": "", "path": "/net", "mime_type": "", "size": 213989, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-12-17T03:14:33.642Z", "version": "", "is_uploaded": true, "created_at": "2022-06-13T06:21:37.012Z", "size_readable": "", "public_url": "https://strong-allocation.info"}], "organization": {"created_at": "2024-01-28T08:45:49.386Z", "modified_at": "2022-11-06T01:10:18.215Z", "id": "", "name": "", "slug": "", "avatar_url": "https://frilly-league.name", "bio": "", "company": "Lubowitz - Kirlin", "blog": "", "location": "", "email": "Jammie.Mayert79@yahoo.com", "twitter_username": "", "pledge_minimum_amount": 443704, "pledge_badge_show_amount": true, "default_upfront_split_to_contributors": 292089}}, "price": {"created_at": "2022-12-16T13:24:07.925Z", "modified_at": "2022-05-04T04:21:49.237Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 241816, "maximum_amount": 832295, "preset_amount": 15843}} + application/json: {"created_at": "2024-02-07T13:54:48.821Z", "modified_at": "2023-09-05T11:33:52.011Z", "id": "", "amount": 544221, "currency": "Moroccan Dirham", "recurring_interval": "year", "status": "active", "current_period_start": "2023-05-10T02:28:23.533Z", "current_period_end": "2022-10-16T00:34:27.106Z", "cancel_at_period_end": true, "started_at": "2024-10-24T02:41:21.259Z", "ended_at": "2023-04-26T04:53:50.189Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "user_id": "", "product": {"created_at": "2024-05-28T07:17:57.134Z", "modified_at": "2022-03-28T11:05:23.685Z", "id": "", "name": "", "description": "notwithstanding however willfully toward", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2023-08-20T11:11:04.610Z", "modified_at": "2023-07-26T06:33:15.810Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 458049, "maximum_amount": 450824, "preset_amount": 262795}], "benefits": [{"created_at": "2023-07-12T17:45:11.243Z", "modified_at": "2023-12-21T21:32:22.245Z", "id": "", "type": "github_repository", "description": "harangue once out effector determined backburn weary", "selectable": false, "deletable": false, "organization_id": ""}, {"created_at": "2024-12-01T14:44:00.985Z", "modified_at": "2022-02-04T11:10:26.128Z", "id": "", "type": "discord", "description": "unwilling disk modulo offset pacemaker violently plait trench guilt", "selectable": false, "deletable": true, "organization_id": ""}, {"created_at": "2022-12-12T23:35:27.798Z", "modified_at": "2022-10-07T02:56:50.564Z", "id": "", "type": "discord", "description": "upon triumphantly minus", "selectable": true, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/root", "mime_type": "", "size": 413854, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-01-20T21:06:21.391Z", "version": "", "is_uploaded": true, "created_at": "2023-04-24T16:38:24.942Z", "size_readable": "", "public_url": "https://square-cash.org/"}, {"id": "", "organization_id": "", "name": "", "path": "/Network", "mime_type": "", "size": 418179, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-06-14T20:06:16.618Z", "version": "", "is_uploaded": true, "created_at": "2024-02-18T20:06:14.861Z", "size_readable": "", "public_url": "https://classic-netsuke.biz/"}, {"id": "", "organization_id": "", "name": "", "path": "/net", "mime_type": "", "size": 213989, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-12-17T03:14:33.642Z", "version": "", "is_uploaded": true, "created_at": "2022-06-13T06:21:37.012Z", "size_readable": "", "public_url": "https://strong-allocation.info"}], "organization": {"created_at": "2024-01-28T08:45:49.386Z", "modified_at": "2022-11-06T01:10:18.215Z", "id": "", "name": "", "slug": "", "avatar_url": "https://frilly-league.name", "bio": "", "company": "Lubowitz - Kirlin", "blog": "", "location": "", "email": "Jammie.Mayert79@yahoo.com", "twitter_username": "", "pledge_minimum_amount": 443704, "pledge_badge_show_amount": true, "default_upfront_split_to_contributors": 292089}}, "price": {"created_at": "2023-04-26T04:53:50.189Z", "modified_at": "2024-05-28T07:17:57.134Z", "id": "", "is_archived": true, "product_id": "", "recurring_interval": "month"}} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} customer_portal:subscriptions:update: speakeasy-default-customer-portal:subscriptions:update: parameters: @@ -2369,10 +2483,11 @@ examples: application/json: {"product_price_id": ""} responses: "200": - application/json: {"created_at": "2024-07-28T19:04:48.565Z", "modified_at": "2023-10-17T10:52:42.015Z", "id": "", "amount": 344620, "currency": "Zambian Kwacha", "recurring_interval": "year", "status": "active", "current_period_start": "2024-12-14T11:19:45.098Z", "current_period_end": "2022-03-01T06:03:05.915Z", "cancel_at_period_end": false, "started_at": "2023-05-05T18:16:40.936Z", "ended_at": "2022-12-08T09:52:54.805Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "user_id": "", "product": {"created_at": "2022-10-01T09:16:09.932Z", "modified_at": "2022-06-02T23:29:52.263Z", "id": "", "name": "", "description": "about inquisitively ugh recklessly incidentally jubilantly doting boohoo pish", "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2023-06-08T20:27:05.650Z", "modified_at": "2023-10-15T11:40:10.965Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 424273, "maximum_amount": 947714, "preset_amount": 601233, "recurring_interval": "month"}, {"created_at": "2023-12-22T09:02:21.902Z", "modified_at": "2022-09-30T22:23:40.880Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 335191, "recurring_interval": "year"}], "benefits": [{"created_at": "2023-09-03T03:35:45.584Z", "modified_at": "2023-05-23T21:03:36.028Z", "id": "", "type": "discord", "description": "lest represent braid", "selectable": false, "deletable": false, "organization_id": ""}, {"created_at": "2023-07-07T17:41:05.826Z", "modified_at": "2022-04-19T21:35:13.447Z", "id": "", "type": "downloadables", "description": "ouch weary euphonium what", "selectable": false, "deletable": true, "organization_id": ""}, {"created_at": "2023-08-02T03:11:23.164Z", "modified_at": "2022-09-27T08:59:31.628Z", "id": "", "type": "discord", "description": "hm eminent sham excitedly following pro parched gah", "selectable": true, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/home", "mime_type": "", "size": 780643, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-10-01T21:33:23.746Z", "version": "", "is_uploaded": true, "created_at": "2022-12-12T14:26:30.108Z", "size_readable": "", "public_url": "https://illiterate-kiss.com"}], "organization": {"created_at": "2023-09-04T16:16:36.463Z", "modified_at": "2022-06-09T10:57:26.043Z", "id": "", "name": "", "slug": "", "avatar_url": "https://pointed-angle.net/", "bio": "", "company": "Leffler - Heidenreich", "blog": "", "location": "", "email": "Greta94@yahoo.com", "twitter_username": "", "pledge_minimum_amount": 611007, "pledge_badge_show_amount": false, "default_upfront_split_to_contributors": 286835}}, "price": {"created_at": "2022-07-11T08:04:50.615Z", "modified_at": "2022-01-03T13:42:15.243Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 289037}} + application/json: {"created_at": "2024-07-28T19:04:48.565Z", "modified_at": "2023-10-17T10:52:42.015Z", "id": "", "amount": 344620, "currency": "Zambian Kwacha", "recurring_interval": "year", "status": "active", "current_period_start": "2024-12-14T11:19:45.098Z", "current_period_end": "2022-03-01T06:03:05.915Z", "cancel_at_period_end": false, "started_at": "2023-05-05T18:16:40.936Z", "ended_at": "2022-12-08T09:52:54.805Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "user_id": "", "product": {"created_at": "2022-10-01T09:16:09.932Z", "modified_at": "2022-06-02T23:29:52.263Z", "id": "", "name": "", "description": "about inquisitively ugh recklessly incidentally jubilantly doting boohoo pish", "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2023-01-13T16:52:57.274Z", "modified_at": "2024-12-22T15:27:45.882Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 488852, "maximum_amount": 984008, "preset_amount": 54062}, {"created_at": "2022-12-08T09:52:54.805Z", "modified_at": "2022-10-01T09:16:09.932Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 789275, "maximum_amount": 889838, "preset_amount": 302461}], "benefits": [{"created_at": "2023-09-03T03:35:45.584Z", "modified_at": "2023-05-23T21:03:36.028Z", "id": "", "type": "discord", "description": "lest represent braid", "selectable": false, "deletable": false, "organization_id": ""}, {"created_at": "2023-07-07T17:41:05.826Z", "modified_at": "2022-04-19T21:35:13.447Z", "id": "", "type": "downloadables", "description": "ouch weary euphonium what", "selectable": false, "deletable": true, "organization_id": ""}, {"created_at": "2023-08-02T03:11:23.164Z", "modified_at": "2022-09-27T08:59:31.628Z", "id": "", "type": "discord", "description": "hm eminent sham excitedly following pro parched gah", "selectable": true, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/home", "mime_type": "", "size": 780643, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2022-10-01T21:33:23.746Z", "version": "", "is_uploaded": true, "created_at": "2022-12-12T14:26:30.108Z", "size_readable": "", "public_url": "https://illiterate-kiss.com"}], "organization": {"created_at": "2023-09-04T16:16:36.463Z", "modified_at": "2022-06-09T10:57:26.043Z", "id": "", "name": "", "slug": "", "avatar_url": "https://pointed-angle.net/", "bio": "", "company": "Leffler - Heidenreich", "blog": "", "location": "", "email": "Greta94@yahoo.com", "twitter_username": "", "pledge_minimum_amount": 611007, "pledge_badge_show_amount": false, "default_upfront_split_to_contributors": 286835}}, "price": {"created_at": "2024-01-31T02:01:14.461Z", "modified_at": "2023-03-20T01:46:46.018Z", "id": "", "is_archived": true, "product_id": "", "recurring_interval": "year"}} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} customer_portal:subscriptions:cancel: speakeasy-default-customer-portal:subscriptions:cancel: parameters: @@ -2380,10 +2495,11 @@ examples: id: "" responses: "200": - application/json: {"created_at": "2022-01-28T04:39:19.513Z", "modified_at": "2024-12-24T10:36:51.473Z", "id": "", "amount": 473916, "currency": "Bulgarian Lev", "recurring_interval": "month", "status": "trialing", "current_period_start": "2022-02-14T08:23:52.236Z", "current_period_end": "2022-06-28T03:41:26.855Z", "cancel_at_period_end": false, "started_at": "2022-06-09T14:11:56.790Z", "ended_at": "2022-08-28T23:20:26.332Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "user_id": "", "product": {"created_at": "2022-08-29T10:04:34.451Z", "modified_at": "2022-03-26T15:01:55.926Z", "id": "", "name": "", "description": "lightly engender westernize for evince voluntarily carefully ah whether", "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [], "benefits": [], "medias": [], "organization": {"created_at": "2024-10-31T13:48:30.383Z", "modified_at": "2023-06-29T22:23:08.521Z", "id": "", "name": "", "slug": "", "avatar_url": "https://steep-mentor.com", "bio": "", "company": "Bernier - Denesik", "blog": "", "location": "", "email": "Alvina_Gleichner@gmail.com", "twitter_username": "", "pledge_minimum_amount": 660092, "pledge_badge_show_amount": true, "default_upfront_split_to_contributors": 979409}}, "price": {"created_at": "2024-02-16T04:39:43.032Z", "modified_at": "2024-07-29T14:39:40.765Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 566953}} + application/json: {"created_at": "2022-01-28T04:39:19.513Z", "modified_at": "2024-12-24T10:36:51.473Z", "id": "", "amount": 473916, "currency": "Bulgarian Lev", "recurring_interval": "month", "status": "trialing", "current_period_start": "2022-02-14T08:23:52.236Z", "current_period_end": "2022-06-28T03:41:26.855Z", "cancel_at_period_end": false, "started_at": "2022-06-09T14:11:56.790Z", "ended_at": "2022-08-28T23:20:26.332Z", "customer_id": "", "product_id": "", "price_id": "", "discount_id": "", "checkout_id": "", "user_id": "", "product": {"created_at": "2022-08-29T10:04:34.451Z", "modified_at": "2022-03-26T15:01:55.926Z", "id": "", "name": "", "description": "lightly engender westernize for evince voluntarily carefully ah whether", "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [], "benefits": [], "medias": [], "organization": {"created_at": "2024-10-31T13:48:30.383Z", "modified_at": "2023-06-29T22:23:08.521Z", "id": "", "name": "", "slug": "", "avatar_url": "https://steep-mentor.com", "bio": "", "company": "Bernier - Denesik", "blog": "", "location": "", "email": "Alvina_Gleichner@gmail.com", "twitter_username": "", "pledge_minimum_amount": 660092, "pledge_badge_show_amount": true, "default_upfront_split_to_contributors": 979409}}, "price": {"created_at": "2023-06-04T09:53:22.758Z", "modified_at": "2022-04-04T13:59:58.090Z", "id": "", "is_archived": true, "product_id": "", "recurring_interval": "month"}} "403": application/json: {"detail": ""} "404": application/json: {"detail": ""} - "422": {} + "422": + application/json: {} generatedTests: {} diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index aa89286..1621ff3 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -16,7 +16,7 @@ generation: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: true go: - version: 0.0.1 + version: 0.0.2 additionalDependencies: {} allowUnknownFieldsInWeakUnions: false clientServerStatusCodesAsErrors: true diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index ce67e44..6683b75 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,20 +1,21 @@ -speakeasyVersion: 1.455.7 +speakeasyVersion: 1.456.0 sources: Polar-OAS: sourceNamespace: polar-oas - sourceRevisionDigest: sha256:f30da726b995d1db21d6bc98c3e543aa1c900f5858115c6fd387d5d4b145e46d - sourceBlobDigest: sha256:76b4afe82993867862c297d27fc83ed8feaa0dcd99007d82a66c56454b631a24 + sourceRevisionDigest: sha256:223a518df110fa526c83bc5ea820a34acbf87c109c85ede5681da5d12798dd9e + sourceBlobDigest: sha256:937f1e89736ba0d1ed3c2affd965fdb1e7213012c7b7f15b20541a9e9f829620 tags: - latest + - speakeasy-sdk-regen-1734481520 - 0.1.0 targets: polar: source: Polar-OAS sourceNamespace: polar-oas - sourceRevisionDigest: sha256:f30da726b995d1db21d6bc98c3e543aa1c900f5858115c6fd387d5d4b145e46d - sourceBlobDigest: sha256:76b4afe82993867862c297d27fc83ed8feaa0dcd99007d82a66c56454b631a24 + sourceRevisionDigest: sha256:223a518df110fa526c83bc5ea820a34acbf87c109c85ede5681da5d12798dd9e + sourceBlobDigest: sha256:937f1e89736ba0d1ed3c2affd965fdb1e7213012c7b7f15b20541a9e9f829620 codeSamplesNamespace: polar-oas-code-samples - codeSamplesRevisionDigest: sha256:9224478b34ad5bc0532fedf514276c37f95fe21fb7296d0a7f5850dfce85b0f9 + codeSamplesRevisionDigest: sha256:dcd5c64cb182962109903273005ca97ee02720b138f993f497c4057fd480241f workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 0b808b7..cec831d 100644 --- a/README.md +++ b/README.md @@ -61,16 +61,16 @@ package main import ( "context" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" - "github.com/polarsource/polar-go/types" "log" + "polar" + "polar/models/components" + "polar/types" ) func main() { ctx := context.Background() - s := polargo.New() + s := polar.New() res, err := s.EndpointcheckoutCreatedPost(ctx, components.WebhookCheckoutCreatedPayload{ Data: components.Checkout{ @@ -82,29 +82,29 @@ func main() { URL: "https://heavy-beret.com/", ExpiresAt: types.MustTimeFromString("2022-02-25T02:26:48.460Z"), SuccessURL: "https://sardonic-final.info/", - EmbedOrigin: polargo.String(""), - Amount: polargo.Int64(962818), - TaxAmount: polargo.Int64(6400), - Currency: polargo.String("Yen"), - SubtotalAmount: polargo.Int64(648726), - TotalAmount: polargo.Int64(210702), + EmbedOrigin: polar.String(""), + Amount: polar.Int64(962818), + TaxAmount: polar.Int64(6400), + Currency: polar.String("Yen"), + SubtotalAmount: polar.Int64(648726), + TotalAmount: polar.Int64(210702), ProductID: "", ProductPriceID: "", - DiscountID: polargo.String(""), + DiscountID: polar.String(""), AllowDiscountCodes: true, IsDiscountApplicable: false, IsFreeProductPrice: false, IsPaymentRequired: false, IsPaymentSetupRequired: false, IsPaymentFormRequired: false, - CustomerID: polargo.String(""), - CustomerName: polargo.String(""), - CustomerEmail: polargo.String("Ryley_Erdman@hotmail.com"), - CustomerIPAddress: polargo.String(""), + CustomerID: polar.String(""), + CustomerName: polar.String(""), + CustomerEmail: polar.String("Ryley_Erdman@hotmail.com"), + CustomerIPAddress: polar.String(""), CustomerBillingAddress: &components.Address{ Country: "South Africa", }, - CustomerTaxID: polargo.String(""), + CustomerTaxID: polar.String(""), PaymentProcessorMetadata: components.PaymentProcessorMetadata{}, Metadata: map[string]components.CheckoutMetadata{ "key": components.CreateCheckoutMetadataInteger( @@ -119,7 +119,7 @@ func main() { ModifiedAt: types.MustNewTimeFromString("2023-12-16T03:02:38.803Z"), ID: "", Name: "", - Description: polargo.String("for embarrassment untidy long-term near honestly separate yet"), + Description: polar.String("for embarrassment untidy long-term near honestly separate yet"), IsRecurring: true, IsArchived: false, OrganizationID: "", @@ -133,9 +133,9 @@ func main() { IsArchived: false, ProductID: "", PriceCurrency: "", - MinimumAmount: polargo.Int64(691423), - MaximumAmount: polargo.Int64(499526), - PresetAmount: polargo.Int64(18677), + MinimumAmount: polar.Int64(691423), + MaximumAmount: polar.Int64(499526), + PresetAmount: polar.Int64(18677), }, ), ), @@ -160,12 +160,12 @@ func main() { Path: "/private/var", MimeType: "", Size: 245189, - StorageVersion: polargo.String(""), - ChecksumEtag: polargo.String(""), - ChecksumSha256Base64: polargo.String(""), - ChecksumSha256Hex: polargo.String(""), + StorageVersion: polar.String(""), + ChecksumEtag: polar.String(""), + ChecksumSha256Base64: polar.String(""), + ChecksumSha256Hex: polar.String(""), LastModifiedAt: types.MustNewTimeFromString("2022-11-03T15:00:03.276Z"), - Version: polargo.String(""), + Version: polar.String(""), IsUploaded: false, CreatedAt: types.MustTimeFromString("2024-06-07T13:47:02.365Z"), SizeReadable: "", @@ -193,10 +193,10 @@ func main() { BasisPoints: 341163, ID: "", Name: "", - Code: polargo.String(""), + Code: polar.String(""), }, ), - SubscriptionID: polargo.String(""), + SubscriptionID: polar.String(""), AttachedCustomFields: []components.AttachedCustomField{ components.AttachedCustomField{ CustomFieldID: "", @@ -269,6 +269,14 @@ func main() { Required: true, }, }, + CustomerMetadata: map[string]components.CustomerMetadata{ + "key": components.CreateCustomerMetadataStr( + "", + ), + "key1": components.CreateCustomerMetadataStr( + "", + ), + }, }, }) if err != nil { @@ -299,17 +307,17 @@ package main import ( "context" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/operations" "log" "os" + "polar" + "polar/models/operations" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.ExternalOrganizations.List(ctx, operations.ExternalOrganizationsListRequest{}) @@ -535,17 +543,17 @@ package main import ( "context" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/operations" "log" "os" + "polar" + "polar/models/operations" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.ExternalOrganizations.List(ctx, operations.ExternalOrganizationsListRequest{}) @@ -583,19 +591,19 @@ package main import ( "context" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/operations" - "github.com/polarsource/polar-go/retry" "log" "models/operations" "os" + "polar" + "polar/models/operations" + "polar/retry" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.ExternalOrganizations.List(ctx, operations.ExternalOrganizationsListRequest{}, operations.WithRetries( @@ -637,18 +645,18 @@ package main import ( "context" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/operations" - "github.com/polarsource/polar-go/retry" "log" "os" + "polar" + "polar/models/operations" + "polar/retry" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithRetryConfig( + s := polar.New( + polar.WithRetryConfig( retry.Config{ Strategy: "backoff", Backoff: &retry.BackoffStrategy{ @@ -659,7 +667,7 @@ func main() { }, RetryConnectionErrors: false, }), - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.ExternalOrganizations.List(ctx, operations.ExternalOrganizationsListRequest{}) @@ -708,18 +716,18 @@ package main import ( "context" "errors" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/apierrors" - "github.com/polarsource/polar-go/models/operations" "log" "os" + "polar" + "polar/models/apierrors" + "polar/models/operations" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.ExternalOrganizations.List(ctx, operations.ExternalOrganizationsListRequest{}) @@ -761,18 +769,18 @@ package main import ( "context" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/operations" "log" "os" + "polar" + "polar/models/operations" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithServer("sandbox"), - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithServer("sandbox"), + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.ExternalOrganizations.List(ctx, operations.ExternalOrganizationsListRequest{}) @@ -806,18 +814,18 @@ package main import ( "context" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/operations" "log" "os" + "polar" + "polar/models/operations" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithServerURL("https://api.polar.sh"), - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithServerURL("https://api.polar.sh"), + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.ExternalOrganizations.List(ctx, operations.ExternalOrganizationsListRequest{}) diff --git a/RELEASES.md b/RELEASES.md new file mode 100644 index 0000000..bc7968e --- /dev/null +++ b/RELEASES.md @@ -0,0 +1,11 @@ + + +## 2024-12-18 08:38:33 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.456.0 (2.481.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [go v0.0.2] . +### Releases +- [Go v0.0.2] https://github.com/polarsource/polar-go/releases/tag/v0.0.2 - . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index 4cabf79..d044e4d 100644 --- a/USAGE.md +++ b/USAGE.md @@ -4,17 +4,17 @@ package main import ( "context" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/operations" "log" "os" + "polar" + "polar/models/operations" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.ExternalOrganizations.List(ctx, operations.ExternalOrganizationsListRequest{}) diff --git a/advertisements.go b/advertisements.go index 1faf888..ed5d1ef 100644 --- a/advertisements.go +++ b/advertisements.go @@ -1,20 +1,20 @@ // Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -package polargo +package polar import ( "bytes" "context" "fmt" - "github.com/polarsource/polar-go/internal/hooks" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/apierrors" - "github.com/polarsource/polar-go/models/components" - "github.com/polarsource/polar-go/models/operations" - "github.com/polarsource/polar-go/retry" "github.com/spyzhov/ajson" "net/http" "net/url" + "polar/internal/hooks" + "polar/internal/utils" + "polar/models/apierrors" + "polar/models/components" + "polar/models/operations" + "polar/retry" ) type Advertisements struct { diff --git a/benefitgrants.go b/benefitgrants.go index e559897..3946dd0 100644 --- a/benefitgrants.go +++ b/benefitgrants.go @@ -1,20 +1,20 @@ // Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -package polargo +package polar import ( "bytes" "context" "fmt" - "github.com/polarsource/polar-go/internal/hooks" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/apierrors" - "github.com/polarsource/polar-go/models/components" - "github.com/polarsource/polar-go/models/operations" - "github.com/polarsource/polar-go/retry" "github.com/spyzhov/ajson" "net/http" "net/url" + "polar/internal/hooks" + "polar/internal/utils" + "polar/models/apierrors" + "polar/models/components" + "polar/models/operations" + "polar/retry" ) type BenefitGrants struct { diff --git a/benefits.go b/benefits.go index f4336e6..9427897 100644 --- a/benefits.go +++ b/benefits.go @@ -1,20 +1,20 @@ // Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -package polargo +package polar import ( "bytes" "context" "fmt" - "github.com/polarsource/polar-go/internal/hooks" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/apierrors" - "github.com/polarsource/polar-go/models/components" - "github.com/polarsource/polar-go/models/operations" - "github.com/polarsource/polar-go/retry" "github.com/spyzhov/ajson" "net/http" "net/url" + "polar/internal/hooks" + "polar/internal/utils" + "polar/models/apierrors" + "polar/models/components" + "polar/models/operations" + "polar/retry" ) type Benefits struct { diff --git a/checkoutlinks.go b/checkoutlinks.go index f3fdf4f..bb0c0fe 100644 --- a/checkoutlinks.go +++ b/checkoutlinks.go @@ -1,20 +1,20 @@ // Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -package polargo +package polar import ( "bytes" "context" "fmt" - "github.com/polarsource/polar-go/internal/hooks" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/apierrors" - "github.com/polarsource/polar-go/models/components" - "github.com/polarsource/polar-go/models/operations" - "github.com/polarsource/polar-go/retry" "github.com/spyzhov/ajson" "net/http" "net/url" + "polar/internal/hooks" + "polar/internal/utils" + "polar/models/apierrors" + "polar/models/components" + "polar/models/operations" + "polar/retry" ) type CheckoutLinks struct { diff --git a/checkouts.go b/checkouts.go index e146d3a..3365e0c 100644 --- a/checkouts.go +++ b/checkouts.go @@ -1,19 +1,19 @@ // Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -package polargo +package polar import ( "bytes" "context" "fmt" - "github.com/polarsource/polar-go/internal/hooks" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/apierrors" - "github.com/polarsource/polar-go/models/components" - "github.com/polarsource/polar-go/models/operations" - "github.com/polarsource/polar-go/retry" "net/http" "net/url" + "polar/internal/hooks" + "polar/internal/utils" + "polar/models/apierrors" + "polar/models/components" + "polar/models/operations" + "polar/retry" ) type Checkouts struct { diff --git a/clients.go b/clients.go index 264e404..67ab3d9 100644 --- a/clients.go +++ b/clients.go @@ -1,20 +1,20 @@ // Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -package polargo +package polar import ( "bytes" "context" "fmt" - "github.com/polarsource/polar-go/internal/hooks" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/apierrors" - "github.com/polarsource/polar-go/models/components" - "github.com/polarsource/polar-go/models/operations" - "github.com/polarsource/polar-go/retry" "github.com/spyzhov/ajson" "net/http" "net/url" + "polar/internal/hooks" + "polar/internal/utils" + "polar/models/apierrors" + "polar/models/components" + "polar/models/operations" + "polar/retry" ) type Clients struct { diff --git a/codeSamples.yaml b/codeSamples.yaml index 0101c73..3201436 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -8,664 +8,664 @@ actions: "x-codeSamples": - "lang": "go" "label": "list" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Advertisements.List(ctx, \"\", nil, nil, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.AdvertisementCampaignListResource != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Advertisements.List(ctx, \"\", nil, nil, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.AdvertisementCampaignListResource != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" - target: $["paths"]["/v1/advertisements/{id}"]["get"] update: "x-codeSamples": - "lang": "go" "label": "get" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Advertisements.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.AdvertisementCampaign != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Advertisements.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.AdvertisementCampaign != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/benefits/"]["get"] update: "x-codeSamples": - "lang": "go" "label": "list" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Benefits.List(ctx, nil, nil, nil, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceBenefit != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Benefits.List(ctx, nil, nil, nil, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceBenefit != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" - target: $["paths"]["/v1/benefits/"]["post"] update: "x-codeSamples": - "lang": "go" "label": "create" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Benefits.Create(ctx, components.CreateBenefitCreateBenefitDownloadablesCreate(\n components.BenefitDownloadablesCreate{\n Description: \"yuck forager beneath please shadowy foodstuffs welcome\",\n Properties: components.BenefitDownloadablesCreateProperties{\n Files: []string{\n \"\",\n },\n },\n },\n ))\n if err != nil {\n log.Fatal(err)\n }\n if res.Benefit != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Benefits.Create(ctx, components.CreateBenefitCreateBenefitDownloadablesCreate(\n components.BenefitDownloadablesCreate{\n Description: \"yuck forager beneath please shadowy foodstuffs welcome\",\n Properties: components.BenefitDownloadablesCreateProperties{\n Files: []string{\n \"\",\n },\n },\n },\n ))\n if err != nil {\n log.Fatal(err)\n }\n if res.Benefit != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/benefits/{id}"]["delete"] update: "x-codeSamples": - "lang": "go" "label": "delete" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Benefits.Delete(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Benefits.Delete(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/benefits/{id}"]["get"] update: "x-codeSamples": - "lang": "go" "label": "get" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Benefits.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.Benefit != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Benefits.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.Benefit != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/benefits/{id}"]["patch"] update: "x-codeSamples": - "lang": "go" "label": "update" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Benefits.Update(ctx, \"\", operations.CreateBenefitsUpdateBenefitUpdateBenefitGitHubRepositoryUpdate(\n components.BenefitGitHubRepositoryUpdate{\n Properties: &components.BenefitGitHubRepositoryCreateProperties{\n RepositoryOwner: \"polarsource\",\n RepositoryName: \"private_repo\",\n Permission: components.BenefitGitHubRepositoryCreatePropertiesPermissionTriage,\n },\n },\n ))\n if err != nil {\n log.Fatal(err)\n }\n if res.Benefit != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Benefits.Update(ctx, \"\", operations.CreateBenefitsUpdateBenefitUpdateBenefitGitHubRepositoryUpdate(\n components.BenefitGitHubRepositoryUpdate{\n Properties: &components.BenefitGitHubRepositoryCreateProperties{\n RepositoryOwner: \"polarsource\",\n RepositoryName: \"private_repo\",\n Permission: components.BenefitGitHubRepositoryCreatePropertiesPermissionTriage,\n },\n },\n ))\n if err != nil {\n log.Fatal(err)\n }\n if res.Benefit != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/benefits/{id}/grants"]["get"] update: "x-codeSamples": - "lang": "go" "label": "grants" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Benefits.Grants(ctx, operations.BenefitsGrantsRequest{\n ID: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceBenefitGrant != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Benefits.Grants(ctx, operations.BenefitsGrantsRequest{\n ID: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceBenefitGrant != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" - target: $["paths"]["/v1/checkout-links/"]["get"] update: "x-codeSamples": - "lang": "go" "label": "list" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CheckoutLinks.List(ctx, operations.CheckoutLinksListRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceCheckoutLink != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CheckoutLinks.List(ctx, operations.CheckoutLinksListRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceCheckoutLink != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" - target: $["paths"]["/v1/checkout-links/"]["post"] update: "x-codeSamples": - "lang": "go" "label": "create" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CheckoutLinks.Create(ctx, components.CreateCheckoutLinkCreateCheckoutLinkPriceCreate(\n components.CheckoutLinkPriceCreate{\n ProductPriceID: \"\",\n },\n ))\n if err != nil {\n log.Fatal(err)\n }\n if res.CheckoutLink != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CheckoutLinks.Create(ctx, components.CreateCheckoutLinkCreateCheckoutLinkPriceCreate(\n components.CheckoutLinkPriceCreate{\n ProductPriceID: \"\",\n },\n ))\n if err != nil {\n log.Fatal(err)\n }\n if res.CheckoutLink != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/checkout-links/{id}"]["delete"] update: "x-codeSamples": - "lang": "go" "label": "delete" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CheckoutLinks.Delete(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CheckoutLinks.Delete(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/checkout-links/{id}"]["get"] update: "x-codeSamples": - "lang": "go" "label": "get" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CheckoutLinks.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.CheckoutLink != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CheckoutLinks.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.CheckoutLink != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/checkout-links/{id}"]["patch"] update: "x-codeSamples": - "lang": "go" "label": "update" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CheckoutLinks.Update(ctx, \"\", components.CheckoutLinkUpdate{})\n if err != nil {\n log.Fatal(err)\n }\n if res.CheckoutLink != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CheckoutLinks.Update(ctx, \"\", components.CheckoutLinkUpdate{})\n if err != nil {\n log.Fatal(err)\n }\n if res.CheckoutLink != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/checkouts/custom/"]["get"] update: "x-codeSamples": - "lang": "go" "label": "list" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Checkouts.Custom.List(ctx, operations.CheckoutsCustomListRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceCheckout != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Checkouts.Custom.List(ctx, operations.CheckoutsCustomListRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceCheckout != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" - target: $["paths"]["/v1/checkouts/custom/"]["post"] update: "x-codeSamples": - "lang": "go" "label": "create" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Checkouts.Custom.Create(ctx, components.CreateCheckoutCreateCheckoutPriceCreate(\n components.CheckoutPriceCreate{\n ProductPriceID: \"\",\n },\n ))\n if err != nil {\n log.Fatal(err)\n }\n if res.Checkout != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Checkouts.Custom.Create(ctx, components.CreateCheckoutCreateCheckoutPriceCreate(\n components.CheckoutPriceCreate{\n ProductPriceID: \"\",\n },\n ))\n if err != nil {\n log.Fatal(err)\n }\n if res.Checkout != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/checkouts/custom/client/{client_secret}"]["get"] update: "x-codeSamples": - "lang": "go" "label": "client_get" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Checkouts.Custom.ClientGet(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.CheckoutPublic != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Checkouts.Custom.ClientGet(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.CheckoutPublic != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/checkouts/custom/client/{client_secret}"]["patch"] update: "x-codeSamples": - "lang": "go" "label": "client_update" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Checkouts.Custom.ClientUpdate(ctx, \"\", components.CheckoutUpdatePublic{})\n if err != nil {\n log.Fatal(err)\n }\n if res.CheckoutPublic != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Checkouts.Custom.ClientUpdate(ctx, \"\", components.CheckoutUpdatePublic{})\n if err != nil {\n log.Fatal(err)\n }\n if res.CheckoutPublic != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/checkouts/custom/client/{client_secret}/confirm"]["post"] update: "x-codeSamples": - "lang": "go" "label": "client_confirm" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Checkouts.Custom.ClientConfirm(ctx, \"\", components.CheckoutConfirmStripe{})\n if err != nil {\n log.Fatal(err)\n }\n if res.CheckoutPublicConfirmed != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Checkouts.Custom.ClientConfirm(ctx, \"\", components.CheckoutConfirmStripe{})\n if err != nil {\n log.Fatal(err)\n }\n if res.CheckoutPublicConfirmed != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/checkouts/custom/{id}"]["get"] update: "x-codeSamples": - "lang": "go" "label": "get" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Checkouts.Custom.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.Checkout != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Checkouts.Custom.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.Checkout != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/checkouts/custom/{id}"]["patch"] update: "x-codeSamples": - "lang": "go" "label": "update" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Checkouts.Custom.Update(ctx, \"\", components.CheckoutUpdate{})\n if err != nil {\n log.Fatal(err)\n }\n if res.Checkout != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Checkouts.Custom.Update(ctx, \"\", components.CheckoutUpdate{})\n if err != nil {\n log.Fatal(err)\n }\n if res.Checkout != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/custom-fields/"]["get"] update: "x-codeSamples": - "lang": "go" "label": "list" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomFields.List(ctx, operations.CustomFieldsListRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceCustomField != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomFields.List(ctx, operations.CustomFieldsListRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceCustomField != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" - target: $["paths"]["/v1/custom-fields/"]["post"] update: "x-codeSamples": - "lang": "go" "label": "create" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomFields.Create(ctx, components.CreateCustomFieldCreateCustomFieldCreateSelect(\n components.CustomFieldCreateSelect{\n Slug: \"\",\n Name: \"\",\n Properties: components.CustomFieldSelectProperties{\n Options: []components.CustomFieldSelectOption{\n components.CustomFieldSelectOption{\n Value: \"\",\n Label: \"\",\n },\n },\n },\n },\n ))\n if err != nil {\n log.Fatal(err)\n }\n if res.CustomField != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomFields.Create(ctx, components.CreateCustomFieldCreateCustomFieldCreateSelect(\n components.CustomFieldCreateSelect{\n Slug: \"\",\n Name: \"\",\n Properties: components.CustomFieldSelectProperties{\n Options: []components.CustomFieldSelectOption{\n components.CustomFieldSelectOption{\n Value: \"\",\n Label: \"\",\n },\n },\n },\n },\n ))\n if err != nil {\n log.Fatal(err)\n }\n if res.CustomField != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/custom-fields/{id}"]["delete"] update: "x-codeSamples": - "lang": "go" "label": "delete" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomFields.Delete(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomFields.Delete(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/custom-fields/{id}"]["get"] update: "x-codeSamples": - "lang": "go" "label": "get" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomFields.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.CustomField != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomFields.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.CustomField != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/custom-fields/{id}"]["patch"] update: "x-codeSamples": - "lang": "go" "label": "update" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomFields.Update(ctx, \"\", components.CreateCustomFieldUpdateCustomFieldUpdateNumber(\n components.CustomFieldUpdateNumber{},\n ))\n if err != nil {\n log.Fatal(err)\n }\n if res.CustomField != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomFields.Update(ctx, \"\", components.CreateCustomFieldUpdateCustomFieldUpdateNumber(\n components.CustomFieldUpdateNumber{},\n ))\n if err != nil {\n log.Fatal(err)\n }\n if res.CustomField != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/customer-portal/benefit-grants/"]["get"] update: "x-codeSamples": - "lang": "go" "label": "list" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.BenefitGrants.List(ctx, operations.CustomerPortalBenefitGrantsListRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceCustomerBenefitGrant != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.BenefitGrants.List(ctx, operations.CustomerPortalBenefitGrantsListRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceCustomerBenefitGrant != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" - target: $["paths"]["/v1/customer-portal/benefit-grants/{id}"]["get"] update: "x-codeSamples": - "lang": "go" "label": "get" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.BenefitGrants.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.CustomerBenefitGrant != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.BenefitGrants.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.CustomerBenefitGrant != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/customer-portal/benefit-grants/{id}"]["patch"] update: "x-codeSamples": - "lang": "go" "label": "update" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.BenefitGrants.Update(ctx, \"\", components.CreateCustomerBenefitGrantUpdateCustomerBenefitGrantDownloadablesUpdate(\n components.CustomerBenefitGrantDownloadablesUpdate{},\n ))\n if err != nil {\n log.Fatal(err)\n }\n if res.CustomerBenefitGrant != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.BenefitGrants.Update(ctx, \"\", components.CreateCustomerBenefitGrantUpdateCustomerBenefitGrantDownloadablesUpdate(\n components.CustomerBenefitGrantDownloadablesUpdate{},\n ))\n if err != nil {\n log.Fatal(err)\n }\n if res.CustomerBenefitGrant != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/customer-portal/customers/{id}"]["get"] update: "x-codeSamples": - "lang": "go" "label": "get" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.Customers.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.CustomerPortalCustomer != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.Customers.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.CustomerPortalCustomer != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/customer-portal/downloadables/"]["get"] update: "x-codeSamples": - "lang": "go" "label": "list" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.Downloadables.List(ctx, nil, nil, nil, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceDownloadableRead != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.Downloadables.List(ctx, nil, nil, nil, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceDownloadableRead != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" - target: $["paths"]["/v1/customer-portal/downloadables/{token}"]["get"] update: "x-codeSamples": - "lang": "go" "label": "get" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.Downloadables.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.Downloadables.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/customer-portal/license-keys/"]["get"] update: "x-codeSamples": - "lang": "go" "label": "list" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.LicenseKeys.List(ctx, nil, nil, nil, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceLicenseKeyRead != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.LicenseKeys.List(ctx, nil, nil, nil, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceLicenseKeyRead != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" - target: $["paths"]["/v1/customer-portal/license-keys/activate"]["post"] update: "x-codeSamples": - "lang": "go" "label": "activate" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.LicenseKeys.Activate(ctx, components.LicenseKeyActivate{\n Key: \"\",\n OrganizationID: \"\",\n Label: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.LicenseKeyActivationRead != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.LicenseKeys.Activate(ctx, components.LicenseKeyActivate{\n Key: \"\",\n OrganizationID: \"\",\n Label: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.LicenseKeyActivationRead != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/customer-portal/license-keys/deactivate"]["post"] update: "x-codeSamples": - "lang": "go" "label": "deactivate" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.LicenseKeys.Deactivate(ctx, components.LicenseKeyDeactivate{\n Key: \"\",\n OrganizationID: \"\",\n ActivationID: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.LicenseKeys.Deactivate(ctx, components.LicenseKeyDeactivate{\n Key: \"\",\n OrganizationID: \"\",\n ActivationID: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/customer-portal/license-keys/validate"]["post"] update: "x-codeSamples": - "lang": "go" "label": "validate" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.LicenseKeys.Validate(ctx, components.LicenseKeyValidate{\n Key: \"\",\n OrganizationID: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.ValidatedLicenseKey != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.LicenseKeys.Validate(ctx, components.LicenseKeyValidate{\n Key: \"\",\n OrganizationID: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.ValidatedLicenseKey != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/customer-portal/license-keys/{id}"]["get"] update: "x-codeSamples": - "lang": "go" "label": "get" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.LicenseKeys.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.LicenseKeyWithActivations != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.LicenseKeys.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.LicenseKeyWithActivations != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/customer-portal/orders/"]["get"] update: "x-codeSamples": - "lang": "go" "label": "list" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.Orders.List(ctx, operations.CustomerPortalOrdersListRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceCustomerOrder != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.Orders.List(ctx, operations.CustomerPortalOrdersListRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceCustomerOrder != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" - target: $["paths"]["/v1/customer-portal/orders/{id}"]["get"] update: "x-codeSamples": - "lang": "go" "label": "get" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.Orders.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.CustomerOrder != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.Orders.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.CustomerOrder != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/customer-portal/orders/{id}/invoice"]["get"] update: "x-codeSamples": - "lang": "go" "label": "invoice" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.Orders.Invoice(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.CustomerOrderInvoice != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.Orders.Invoice(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.CustomerOrderInvoice != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/customer-portal/organizations/{slug}"]["get"] update: "x-codeSamples": - "lang": "go" "label": "get" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.Organizations.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.Organization != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.Organizations.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.Organization != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/customer-portal/subscriptions/"]["get"] update: "x-codeSamples": - "lang": "go" "label": "list" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.Subscriptions.List(ctx, operations.CustomerPortalSubscriptionsListRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceCustomerSubscription != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.Subscriptions.List(ctx, operations.CustomerPortalSubscriptionsListRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceCustomerSubscription != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" - target: $["paths"]["/v1/customer-portal/subscriptions/{id}"]["delete"] update: "x-codeSamples": - "lang": "go" "label": "cancel" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.Subscriptions.Cancel(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.CustomerSubscription != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.Subscriptions.Cancel(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.CustomerSubscription != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/customer-portal/subscriptions/{id}"]["get"] update: "x-codeSamples": - "lang": "go" "label": "get" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.Subscriptions.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.CustomerSubscription != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.Subscriptions.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.CustomerSubscription != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/customer-portal/subscriptions/{id}"]["patch"] update: "x-codeSamples": - "lang": "go" "label": "update" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.Subscriptions.Update(ctx, \"\", components.CustomerSubscriptionUpdate{\n ProductPriceID: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.CustomerSubscription != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.CustomerPortal.Subscriptions.Update(ctx, \"\", components.CustomerSubscriptionUpdate{\n ProductPriceID: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.CustomerSubscription != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/customers/"]["get"] update: "x-codeSamples": - "lang": "go" "label": "list" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Customers.List(ctx, operations.CustomersListRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceCustomer != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Customers.List(ctx, operations.CustomersListRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceCustomer != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" - target: $["paths"]["/v1/customers/"]["post"] update: "x-codeSamples": - "lang": "go" "label": "create" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Customers.Create(ctx, components.CustomerCreate{\n Email: \"Loyal79@yahoo.com\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Customer != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Customers.Create(ctx, components.CustomerCreate{\n Email: \"Loyal79@yahoo.com\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Customer != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/customers/{id}"]["delete"] update: "x-codeSamples": - "lang": "go" "label": "delete" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Customers.Delete(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Customers.Delete(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/customers/{id}"]["get"] update: "x-codeSamples": - "lang": "go" "label": "get" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Customers.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.Customer != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Customers.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.Customer != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/customers/{id}"]["patch"] update: "x-codeSamples": - "lang": "go" "label": "update" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Customers.Update(ctx, \"\", components.CustomerUpdate{})\n if err != nil {\n log.Fatal(err)\n }\n if res.Customer != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Customers.Update(ctx, \"\", components.CustomerUpdate{})\n if err != nil {\n log.Fatal(err)\n }\n if res.Customer != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/discounts/"]["get"] update: "x-codeSamples": - "lang": "go" "label": "list" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Discounts.List(ctx, operations.DiscountsListRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceDiscount != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Discounts.List(ctx, operations.DiscountsListRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceDiscount != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" - target: $["paths"]["/v1/discounts/"]["post"] update: "x-codeSamples": - "lang": "go" "label": "create" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Discounts.Create(ctx, components.CreateDiscountCreateDiscountFixedRepeatDurationCreate(\n components.DiscountFixedRepeatDurationCreate{\n Duration: components.DiscountDurationForever,\n DurationInMonths: 417458,\n Type: components.DiscountTypeFixed,\n Amount: 69025,\n Name: \"\",\n },\n ))\n if err != nil {\n log.Fatal(err)\n }\n if res.Discount != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Discounts.Create(ctx, components.CreateDiscountCreateDiscountFixedRepeatDurationCreate(\n components.DiscountFixedRepeatDurationCreate{\n Duration: components.DiscountDurationForever,\n DurationInMonths: 417458,\n Type: components.DiscountTypeFixed,\n Amount: 69025,\n Name: \"\",\n },\n ))\n if err != nil {\n log.Fatal(err)\n }\n if res.Discount != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/discounts/{id}"]["delete"] update: "x-codeSamples": - "lang": "go" "label": "delete" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Discounts.Delete(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Discounts.Delete(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/discounts/{id}"]["get"] update: "x-codeSamples": - "lang": "go" "label": "get" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Discounts.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.Discount != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Discounts.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.Discount != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/discounts/{id}"]["patch"] update: "x-codeSamples": - "lang": "go" "label": "update" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Discounts.Update(ctx, \"\", components.DiscountUpdate{})\n if err != nil {\n log.Fatal(err)\n }\n if res.Discount != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Discounts.Update(ctx, \"\", components.DiscountUpdate{})\n if err != nil {\n log.Fatal(err)\n }\n if res.Discount != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/external_organizations/"]["get"] update: "x-codeSamples": - "lang": "go" "label": "list" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.ExternalOrganizations.List(ctx, operations.ExternalOrganizationsListRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceExternalOrganization != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.ExternalOrganizations.List(ctx, operations.ExternalOrganizationsListRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceExternalOrganization != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" - target: $["paths"]["/v1/files/"]["get"] update: "x-codeSamples": - "lang": "go" "label": "list" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Files.List(ctx, nil, nil, nil, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceFileRead != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Files.List(ctx, nil, nil, nil, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceFileRead != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" - target: $["paths"]["/v1/files/"]["post"] update: "x-codeSamples": - "lang": "go" "label": "create" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Files.Create(ctx, components.CreateFileCreateProductMediaFileCreate(\n components.ProductMediaFileCreate{\n Name: \"\",\n MimeType: \"\",\n Size: 951062,\n Upload: components.S3FileCreateMultipart{\n Parts: []components.S3FileCreatePart{\n components.S3FileCreatePart{\n Number: 86,\n ChunkStart: 169727,\n ChunkEnd: 89964,\n },\n },\n },\n },\n ))\n if err != nil {\n log.Fatal(err)\n }\n if res.FileUpload != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Files.Create(ctx, components.CreateFileCreateProductMediaFileCreate(\n components.ProductMediaFileCreate{\n Name: \"\",\n MimeType: \"\",\n Size: 951062,\n Upload: components.S3FileCreateMultipart{\n Parts: []components.S3FileCreatePart{\n components.S3FileCreatePart{\n Number: 86,\n ChunkStart: 169727,\n ChunkEnd: 89964,\n },\n },\n },\n },\n ))\n if err != nil {\n log.Fatal(err)\n }\n if res.FileUpload != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/files/{id}"]["delete"] update: "x-codeSamples": - "lang": "go" "label": "delete" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Files.Delete(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Files.Delete(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/files/{id}"]["patch"] update: "x-codeSamples": - "lang": "go" "label": "update" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Files.Update(ctx, \"\", components.FilePatch{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ResponseFilesUpdate != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Files.Update(ctx, \"\", components.FilePatch{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ResponseFilesUpdate != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/files/{id}/uploaded"]["post"] update: "x-codeSamples": - "lang": "go" "label": "uploaded" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Files.Uploaded(ctx, \"\", components.FileUploadCompleted{\n ID: \"\",\n Path: \"/sys\",\n Parts: []components.S3FileUploadCompletedPart{\n components.S3FileUploadCompletedPart{\n Number: 173116,\n ChecksumEtag: \"\",\n ChecksumSha256Base64: polargo.String(\"\"),\n },\n components.S3FileUploadCompletedPart{\n Number: 894030,\n ChecksumEtag: \"\",\n ChecksumSha256Base64: polargo.String(\"\"),\n },\n components.S3FileUploadCompletedPart{\n Number: 673715,\n ChecksumEtag: \"\",\n ChecksumSha256Base64: polargo.String(\"\"),\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.ResponseFilesUploaded != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Files.Uploaded(ctx, \"\", components.FileUploadCompleted{\n ID: \"\",\n Path: \"/sys\",\n Parts: []components.S3FileUploadCompletedPart{\n components.S3FileUploadCompletedPart{\n Number: 173116,\n ChecksumEtag: \"\",\n ChecksumSha256Base64: polar.String(\"\"),\n },\n components.S3FileUploadCompletedPart{\n Number: 894030,\n ChecksumEtag: \"\",\n ChecksumSha256Base64: polar.String(\"\"),\n },\n components.S3FileUploadCompletedPart{\n Number: 673715,\n ChecksumEtag: \"\",\n ChecksumSha256Base64: polar.String(\"\"),\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.ResponseFilesUploaded != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/license-keys"]["get"] update: "x-codeSamples": - "lang": "go" "label": "list" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.LicenseKeys.List(ctx, nil, nil, nil, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceLicenseKeyRead != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.LicenseKeys.List(ctx, nil, nil, nil, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceLicenseKeyRead != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" - target: $["paths"]["/v1/license-keys/{id}"]["get"] update: "x-codeSamples": - "lang": "go" "label": "get" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.LicenseKeys.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.LicenseKeyWithActivations != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.LicenseKeys.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.LicenseKeyWithActivations != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/license-keys/{id}"]["patch"] update: "x-codeSamples": - "lang": "go" "label": "update" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.LicenseKeys.Update(ctx, \"\", components.LicenseKeyUpdate{})\n if err != nil {\n log.Fatal(err)\n }\n if res.LicenseKeyRead != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.LicenseKeys.Update(ctx, \"\", components.LicenseKeyUpdate{})\n if err != nil {\n log.Fatal(err)\n }\n if res.LicenseKeyRead != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/license-keys/{id}/activations/{activation_id}"]["get"] update: "x-codeSamples": - "lang": "go" "label": "get_activation" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.LicenseKeys.GetActivation(ctx, \"\", \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.LicenseKeyActivationRead != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.LicenseKeys.GetActivation(ctx, \"\", \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.LicenseKeyActivationRead != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/metrics/"]["get"] update: "x-codeSamples": - "lang": "go" "label": "get" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/types\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"github.com/polarsource/polar-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Metrics.Get(ctx, operations.MetricsGetRequest{\n StartDate: types.MustDateFromString(\"2024-02-07\"),\n EndDate: types.MustDateFromString(\"2023-09-05\"),\n Interval: components.IntervalWeek,\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.MetricsResponse != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/types\"\n\t\"polar/models/components\"\n\t\"polar/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Metrics.Get(ctx, operations.MetricsGetRequest{\n StartDate: types.MustDateFromString(\"2024-02-07\"),\n EndDate: types.MustDateFromString(\"2023-09-05\"),\n Interval: components.IntervalWeek,\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.MetricsResponse != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/metrics/limits"]["get"] update: "x-codeSamples": - "lang": "go" "label": "limits" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Metrics.Limits(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res.MetricsLimits != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Metrics.Limits(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res.MetricsLimits != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/oauth2/"]["get"] update: "x-codeSamples": - "lang": "go" "label": "list" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Oauth2.Clients.List(ctx, nil, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceOAuth2Client != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Oauth2.Clients.List(ctx, nil, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceOAuth2Client != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" - target: $["paths"]["/v1/oauth2/authorize"]["get"] update: "x-codeSamples": - "lang": "go" "label": "authorize" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Oauth2.Authorize(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res.ResponseOauth2Authorize != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Oauth2.Authorize(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res.ResponseOauth2Authorize != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/oauth2/introspect"]["post"] update: "x-codeSamples": - "lang": "go" "label": "introspect_token" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Oauth2.Introspect(ctx, operations.Oauth2IntrospectTokenIntrospectTokenRequest{\n Token: \"\",\n ClientID: \"\",\n ClientSecret: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.IntrospectTokenResponse != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Oauth2.Introspect(ctx, operations.Oauth2IntrospectTokenIntrospectTokenRequest{\n Token: \"\",\n ClientID: \"\",\n ClientSecret: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.IntrospectTokenResponse != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/oauth2/register"]["post"] update: "x-codeSamples": - "lang": "go" "label": "create_client" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Oauth2.Clients.Create(ctx, components.OAuth2ClientConfiguration{\n RedirectUris: []string{\n \"https://inferior-chainstay.com\",\n },\n ClientName: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Oauth2.Clients.Create(ctx, components.OAuth2ClientConfiguration{\n RedirectUris: []string{\n \"https://inferior-chainstay.com\",\n },\n ClientName: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/oauth2/register/{client_id}"]["delete"] update: "x-codeSamples": - "lang": "go" "label": "delete_client" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Oauth2.Clients.Delete(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Oauth2.Clients.Delete(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/oauth2/register/{client_id}"]["get"] update: "x-codeSamples": - "lang": "go" "label": "get_client" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Oauth2.Clients.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Oauth2.Clients.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/oauth2/register/{client_id}"]["put"] update: "x-codeSamples": - "lang": "go" "label": "update_client" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Oauth2.Clients.Update(ctx, \"\", components.OAuth2ClientConfigurationUpdate{\n RedirectUris: []string{\n \"https://grown-worth.name\",\n \"https://worthwhile-avalanche.org/\",\n \"https://general-digit.com/\",\n },\n ClientName: \"\",\n ClientID: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Oauth2.Clients.Update(ctx, \"\", components.OAuth2ClientConfigurationUpdate{\n RedirectUris: []string{\n \"https://grown-worth.name\",\n \"https://worthwhile-avalanche.org/\",\n \"https://general-digit.com/\",\n },\n ClientName: \"\",\n ClientID: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/oauth2/revoke"]["post"] update: "x-codeSamples": - "lang": "go" "label": "revoke_token" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Oauth2.Revoke(ctx, operations.Oauth2RevokeTokenRevokeTokenRequest{\n Token: \"\",\n ClientID: \"\",\n ClientSecret: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.RevokeTokenResponse != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Oauth2.Revoke(ctx, operations.Oauth2RevokeTokenRevokeTokenRequest{\n Token: \"\",\n ClientID: \"\",\n ClientSecret: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.RevokeTokenResponse != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/oauth2/token"]["post"] update: "x-codeSamples": - "lang": "go" "label": "request_token" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Oauth2.Token(ctx, operations.CreateOauth2RequestTokenRequestBodyOnev11oauth21tokenPostXComponentsAuthorizationCodeTokenRequest(\n components.Onev11oauth21tokenPostXComponentsAuthorizationCodeTokenRequest{\n ClientID: \"\",\n ClientSecret: \"\",\n Code: \"\",\n RedirectURI: \"https://talkative-barracks.com\",\n },\n ))\n if err != nil {\n log.Fatal(err)\n }\n if res.TokenResponse != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Oauth2.Token(ctx, operations.CreateOauth2RequestTokenRequestBodyOnev11oauth21tokenPostXComponentsAuthorizationCodeTokenRequest(\n components.Onev11oauth21tokenPostXComponentsAuthorizationCodeTokenRequest{\n ClientID: \"\",\n ClientSecret: \"\",\n Code: \"\",\n RedirectURI: \"https://talkative-barracks.com\",\n },\n ))\n if err != nil {\n log.Fatal(err)\n }\n if res.TokenResponse != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/oauth2/userinfo"]["get"] update: "x-codeSamples": - "lang": "go" "label": "userinfo" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Oauth2.Userinfo(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res.ResponseOauth2Userinfo != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Oauth2.Userinfo(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res.ResponseOauth2Userinfo != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/orders/"]["get"] update: "x-codeSamples": - "lang": "go" "label": "list" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Orders.List(ctx, operations.OrdersListRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceOrder != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Orders.List(ctx, operations.OrdersListRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceOrder != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" - target: $["paths"]["/v1/orders/{id}"]["get"] update: "x-codeSamples": - "lang": "go" "label": "get" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Orders.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.Order != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Orders.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.Order != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/orders/{id}/invoice"]["get"] update: "x-codeSamples": - "lang": "go" "label": "invoice" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Orders.Invoice(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.OrderInvoice != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Orders.Invoice(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.OrderInvoice != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/organizations/"]["get"] update: "x-codeSamples": - "lang": "go" "label": "list" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Organizations.List(ctx, nil, nil, nil, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceOrganization != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Organizations.List(ctx, nil, nil, nil, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceOrganization != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" - target: $["paths"]["/v1/organizations/"]["post"] update: "x-codeSamples": - "lang": "go" "label": "create" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Organizations.Create(ctx, components.OrganizationCreate{\n Name: \"\",\n Slug: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Organization != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Organizations.Create(ctx, components.OrganizationCreate{\n Name: \"\",\n Slug: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Organization != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/organizations/{id}"]["get"] update: "x-codeSamples": - "lang": "go" "label": "get" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Organizations.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.Organization != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Organizations.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.Organization != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/organizations/{id}"]["patch"] update: "x-codeSamples": - "lang": "go" "label": "update" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Organizations.Update(ctx, \"\", components.OrganizationUpdate{})\n if err != nil {\n log.Fatal(err)\n }\n if res.Organization != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Organizations.Update(ctx, \"\", components.OrganizationUpdate{})\n if err != nil {\n log.Fatal(err)\n }\n if res.Organization != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/products/"]["get"] update: "x-codeSamples": - "lang": "go" "label": "list" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Products.List(ctx, operations.ProductsListRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceProduct != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Products.List(ctx, operations.ProductsListRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceProduct != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" - target: $["paths"]["/v1/products/"]["post"] update: "x-codeSamples": - "lang": "go" "label": "create" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Products.Create(ctx, components.CreateProductCreateProductRecurringCreate(\n components.ProductRecurringCreate{\n Name: \"\",\n Prices: components.CreateProductRecurringCreatePricesArrayOfProductPriceRecurringFixedCreate(\n []components.ProductPriceRecurringFixedCreate{\n components.ProductPriceRecurringFixedCreate{\n PriceAmount: 796474,\n RecurringInterval: components.SubscriptionRecurringIntervalYear,\n },\n },\n ),\n },\n ))\n if err != nil {\n log.Fatal(err)\n }\n if res.Product != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Products.Create(ctx, components.CreateProductCreateProductRecurringCreate(\n components.ProductRecurringCreate{\n Name: \"\",\n Prices: components.CreateProductRecurringCreatePricesArrayOfProductPriceRecurringFixedCreate(\n []components.ProductPriceRecurringFixedCreate{\n components.ProductPriceRecurringFixedCreate{\n PriceAmount: 796474,\n RecurringInterval: components.SubscriptionRecurringIntervalYear,\n },\n },\n ),\n },\n ))\n if err != nil {\n log.Fatal(err)\n }\n if res.Product != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/products/{id}"]["get"] update: "x-codeSamples": - "lang": "go" "label": "get" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Products.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.Product != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Products.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.Product != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/products/{id}"]["patch"] update: "x-codeSamples": - "lang": "go" "label": "update" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Products.Update(ctx, \"\", components.ProductUpdate{})\n if err != nil {\n log.Fatal(err)\n }\n if res.Product != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Products.Update(ctx, \"\", components.ProductUpdate{})\n if err != nil {\n log.Fatal(err)\n }\n if res.Product != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/products/{id}/benefits"]["post"] update: "x-codeSamples": - "lang": "go" "label": "update_benefits" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Products.UpdateBenefits(ctx, \"\", components.ProductBenefitsUpdate{\n Benefits: []string{\n \"\",\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Product != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Products.UpdateBenefits(ctx, \"\", components.ProductBenefitsUpdate{\n Benefits: []string{\n \"\",\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Product != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/repositories/"]["get"] update: "x-codeSamples": - "lang": "go" "label": "list" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Repositories.List(ctx, operations.RepositoriesListRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceRepository != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Repositories.List(ctx, operations.RepositoriesListRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceRepository != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" - target: $["paths"]["/v1/repositories/{id}"]["get"] update: "x-codeSamples": - "lang": "go" "label": "get" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Repositories.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.Repository != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Repositories.Get(ctx, \"\")\n if err != nil {\n log.Fatal(err)\n }\n if res.Repository != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/repositories/{id}"]["patch"] update: "x-codeSamples": - "lang": "go" "label": "update" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Repositories.Update(ctx, \"\", components.RepositoryUpdate{})\n if err != nil {\n log.Fatal(err)\n }\n if res.Repository != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Repositories.Update(ctx, \"\", components.RepositoryUpdate{})\n if err != nil {\n log.Fatal(err)\n }\n if res.Repository != nil {\n // handle response\n }\n}" - target: $["paths"]["/v1/subscriptions/"]["get"] update: "x-codeSamples": - "lang": "go" "label": "list" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Subscriptions.List(ctx, operations.SubscriptionsListRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceSubscription != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"polar/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Subscriptions.List(ctx, operations.SubscriptionsListRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res.ListResourceSubscription != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}" - target: $["paths"]["/v1/subscriptions/export"]["get"] update: "x-codeSamples": - "lang": "go" "label": "export" - "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New(\n polargo.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Subscriptions.Export(ctx, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"os\"\n\t\"polar\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New(\n polar.WithSecurity(os.Getenv(\"POLAR_ACCESS_TOKEN\")),\n )\n\n res, err := s.Subscriptions.Export(ctx, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" - target: $["paths"]["benefit.created"]["post"] update: "x-codeSamples": - "lang": "go" "label": "_endpointbenefit_created_post" - "source": "package main\n\nimport(\n\t\"context\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/types\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New()\n\n res, err := s.EndpointbenefitCreatedPost(ctx, components.WebhookBenefitCreatedPayload{\n Data: components.CreateBenefitBenefitDiscord(\n components.BenefitDiscord{\n CreatedAt: types.MustTimeFromString(\"2022-04-06T19:25:41.598Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-09-12T07:25:54.518Z\"),\n ID: \"\",\n Description: \"log uproot pointless pfft solace besides\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitDiscordProperties{\n GuildID: \"\",\n RoleID: \"\",\n GuildToken: \"\",\n },\n },\n ),\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"polar\"\n\t\"polar/types\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New()\n\n res, err := s.EndpointbenefitCreatedPost(ctx, components.WebhookBenefitCreatedPayload{\n Data: components.CreateBenefitBenefitDiscord(\n components.BenefitDiscord{\n CreatedAt: types.MustTimeFromString(\"2022-04-06T19:25:41.598Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-09-12T07:25:54.518Z\"),\n ID: \"\",\n Description: \"log uproot pointless pfft solace besides\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitDiscordProperties{\n GuildID: \"\",\n RoleID: \"\",\n GuildToken: \"\",\n },\n },\n ),\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" - target: $["paths"]["benefit.updated"]["post"] update: "x-codeSamples": - "lang": "go" "label": "_endpointbenefit_updated_post" - "source": "package main\n\nimport(\n\t\"context\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/types\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New()\n\n res, err := s.EndpointbenefitUpdatedPost(ctx, components.WebhookBenefitUpdatedPayload{\n Data: components.CreateBenefitBenefitLicenseKeys(\n components.BenefitLicenseKeys{\n CreatedAt: types.MustTimeFromString(\"2022-04-01T23:52:01.692Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-01-28T14:40:26.364Z\"),\n ID: \"\",\n Description: \"until overconfidently masquerade once\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitLicenseKeysProperties{\n Prefix: polargo.String(\"\"),\n Expires: &components.BenefitLicenseKeyExpirationProperties{\n TTL: 424968,\n Timeframe: components.TimeframeYear,\n },\n Activations: &components.BenefitLicenseKeyActivationProperties{\n Limit: 735229,\n EnableCustomerAdmin: false,\n },\n LimitUsage: polargo.Int64(923317),\n },\n },\n ),\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"polar\"\n\t\"polar/types\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New()\n\n res, err := s.EndpointbenefitUpdatedPost(ctx, components.WebhookBenefitUpdatedPayload{\n Data: components.CreateBenefitBenefitLicenseKeys(\n components.BenefitLicenseKeys{\n CreatedAt: types.MustTimeFromString(\"2022-04-01T23:52:01.692Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-01-28T14:40:26.364Z\"),\n ID: \"\",\n Description: \"until overconfidently masquerade once\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitLicenseKeysProperties{\n Prefix: polar.String(\"\"),\n Expires: &components.BenefitLicenseKeyExpirationProperties{\n TTL: 424968,\n Timeframe: components.TimeframeYear,\n },\n Activations: &components.BenefitLicenseKeyActivationProperties{\n Limit: 735229,\n EnableCustomerAdmin: false,\n },\n LimitUsage: polar.Int64(923317),\n },\n },\n ),\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" - target: $["paths"]["benefit_grant.created"]["post"] update: "x-codeSamples": - "lang": "go" "label": "_endpointbenefit_grant_created_post" - "source": "package main\n\nimport(\n\t\"context\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/types\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New()\n\n res, err := s.EndpointbenefitGrantCreatedPost(ctx, components.WebhookBenefitGrantCreatedPayload{\n Data: components.BenefitGrantWebhook{\n CreatedAt: types.MustTimeFromString(\"2024-01-05T13:03:27.870Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-05-08T00:47:14.556Z\"),\n ID: \"\",\n IsGranted: true,\n IsRevoked: false,\n SubscriptionID: polargo.String(\"\"),\n OrderID: polargo.String(\"\"),\n CustomerID: \"\",\n UserID: \"\",\n BenefitID: \"\",\n Properties: components.CreateBenefitGrantWebhookPropertiesBenefitGrantDiscordProperties(\n components.BenefitGrantDiscordProperties{},\n ),\n Benefit: components.CreateBenefitBenefitLicenseKeys(\n components.BenefitLicenseKeys{\n CreatedAt: types.MustTimeFromString(\"2022-11-17T13:58:04.744Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-01-29T12:08:54.434Z\"),\n ID: \"\",\n Description: \"svelte oh yuck rebel mountain likewise since\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitLicenseKeysProperties{\n Prefix: polargo.String(\"\"),\n Expires: &components.BenefitLicenseKeyExpirationProperties{\n TTL: 477461,\n Timeframe: components.TimeframeYear,\n },\n Activations: &components.BenefitLicenseKeyActivationProperties{\n Limit: 680981,\n EnableCustomerAdmin: false,\n },\n LimitUsage: polargo.Int64(301013),\n },\n },\n ),\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"polar\"\n\t\"polar/types\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New()\n\n res, err := s.EndpointbenefitGrantCreatedPost(ctx, components.WebhookBenefitGrantCreatedPayload{\n Data: components.BenefitGrantWebhook{\n CreatedAt: types.MustTimeFromString(\"2024-01-05T13:03:27.870Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-05-08T00:47:14.556Z\"),\n ID: \"\",\n IsGranted: true,\n IsRevoked: false,\n SubscriptionID: polar.String(\"\"),\n OrderID: polar.String(\"\"),\n CustomerID: \"\",\n UserID: \"\",\n BenefitID: \"\",\n Properties: components.CreateBenefitGrantWebhookPropertiesBenefitGrantDiscordProperties(\n components.BenefitGrantDiscordProperties{},\n ),\n Benefit: components.CreateBenefitBenefitLicenseKeys(\n components.BenefitLicenseKeys{\n CreatedAt: types.MustTimeFromString(\"2022-11-17T13:58:04.744Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-01-29T12:08:54.434Z\"),\n ID: \"\",\n Description: \"svelte oh yuck rebel mountain likewise since\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitLicenseKeysProperties{\n Prefix: polar.String(\"\"),\n Expires: &components.BenefitLicenseKeyExpirationProperties{\n TTL: 477461,\n Timeframe: components.TimeframeYear,\n },\n Activations: &components.BenefitLicenseKeyActivationProperties{\n Limit: 680981,\n EnableCustomerAdmin: false,\n },\n LimitUsage: polar.Int64(301013),\n },\n },\n ),\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" - target: $["paths"]["benefit_grant.revoked"]["post"] update: "x-codeSamples": - "lang": "go" "label": "_endpointbenefit_grant_revoked_post" - "source": "package main\n\nimport(\n\t\"context\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/types\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New()\n\n res, err := s.EndpointbenefitGrantRevokedPost(ctx, components.WebhookBenefitGrantRevokedPayload{\n Data: components.BenefitGrantWebhook{\n CreatedAt: types.MustTimeFromString(\"2024-03-12T10:35:36.881Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-04-12T13:10:16.426Z\"),\n ID: \"\",\n IsGranted: true,\n IsRevoked: false,\n SubscriptionID: polargo.String(\"\"),\n OrderID: polargo.String(\"\"),\n CustomerID: \"\",\n UserID: \"\",\n BenefitID: \"\",\n Properties: components.CreateBenefitGrantWebhookPropertiesBenefitGrantAdsProperties(\n components.BenefitGrantAdsProperties{\n AdvertisementCampaignID: \"\",\n },\n ),\n Benefit: components.CreateBenefitBenefitLicenseKeys(\n components.BenefitLicenseKeys{\n CreatedAt: types.MustTimeFromString(\"2024-01-25T10:59:47.946Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-10-10T13:39:07.288Z\"),\n ID: \"\",\n Description: \"brr obsess unbearably\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitLicenseKeysProperties{\n Prefix: polargo.String(\"\"),\n Expires: &components.BenefitLicenseKeyExpirationProperties{\n TTL: 339630,\n Timeframe: components.TimeframeDay,\n },\n Activations: &components.BenefitLicenseKeyActivationProperties{\n Limit: 343928,\n EnableCustomerAdmin: false,\n },\n LimitUsage: polargo.Int64(429815),\n },\n },\n ),\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"polar\"\n\t\"polar/types\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New()\n\n res, err := s.EndpointbenefitGrantRevokedPost(ctx, components.WebhookBenefitGrantRevokedPayload{\n Data: components.BenefitGrantWebhook{\n CreatedAt: types.MustTimeFromString(\"2024-03-12T10:35:36.881Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-04-12T13:10:16.426Z\"),\n ID: \"\",\n IsGranted: true,\n IsRevoked: false,\n SubscriptionID: polar.String(\"\"),\n OrderID: polar.String(\"\"),\n CustomerID: \"\",\n UserID: \"\",\n BenefitID: \"\",\n Properties: components.CreateBenefitGrantWebhookPropertiesBenefitGrantAdsProperties(\n components.BenefitGrantAdsProperties{\n AdvertisementCampaignID: \"\",\n },\n ),\n Benefit: components.CreateBenefitBenefitLicenseKeys(\n components.BenefitLicenseKeys{\n CreatedAt: types.MustTimeFromString(\"2024-01-25T10:59:47.946Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-10-10T13:39:07.288Z\"),\n ID: \"\",\n Description: \"brr obsess unbearably\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitLicenseKeysProperties{\n Prefix: polar.String(\"\"),\n Expires: &components.BenefitLicenseKeyExpirationProperties{\n TTL: 339630,\n Timeframe: components.TimeframeDay,\n },\n Activations: &components.BenefitLicenseKeyActivationProperties{\n Limit: 343928,\n EnableCustomerAdmin: false,\n },\n LimitUsage: polar.Int64(429815),\n },\n },\n ),\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" - target: $["paths"]["benefit_grant.updated"]["post"] update: "x-codeSamples": - "lang": "go" "label": "_endpointbenefit_grant_updated_post" - "source": "package main\n\nimport(\n\t\"context\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/types\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New()\n\n res, err := s.EndpointbenefitGrantUpdatedPost(ctx, components.WebhookBenefitGrantUpdatedPayload{\n Data: components.BenefitGrantWebhook{\n CreatedAt: types.MustTimeFromString(\"2024-01-03T13:54:42.243Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-02-25T11:58:59.486Z\"),\n ID: \"\",\n IsGranted: false,\n IsRevoked: false,\n SubscriptionID: polargo.String(\"\"),\n OrderID: polargo.String(\"\"),\n CustomerID: \"\",\n UserID: \"\",\n BenefitID: \"\",\n Properties: components.CreateBenefitGrantWebhookPropertiesBenefitGrantLicenseKeysProperties(\n components.BenefitGrantLicenseKeysProperties{},\n ),\n Benefit: components.CreateBenefitBenefitAds(\n components.BenefitAds{\n CreatedAt: types.MustTimeFromString(\"2022-12-17T22:29:17.144Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-05-01T18:11:33.063Z\"),\n ID: \"\",\n Description: \"watery lest whether that stealthily ack woot provided\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitAdsProperties{},\n },\n ),\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"polar\"\n\t\"polar/types\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New()\n\n res, err := s.EndpointbenefitGrantUpdatedPost(ctx, components.WebhookBenefitGrantUpdatedPayload{\n Data: components.BenefitGrantWebhook{\n CreatedAt: types.MustTimeFromString(\"2024-01-03T13:54:42.243Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-02-25T11:58:59.486Z\"),\n ID: \"\",\n IsGranted: false,\n IsRevoked: false,\n SubscriptionID: polar.String(\"\"),\n OrderID: polar.String(\"\"),\n CustomerID: \"\",\n UserID: \"\",\n BenefitID: \"\",\n Properties: components.CreateBenefitGrantWebhookPropertiesBenefitGrantLicenseKeysProperties(\n components.BenefitGrantLicenseKeysProperties{},\n ),\n Benefit: components.CreateBenefitBenefitAds(\n components.BenefitAds{\n CreatedAt: types.MustTimeFromString(\"2022-12-17T22:29:17.144Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-05-01T18:11:33.063Z\"),\n ID: \"\",\n Description: \"watery lest whether that stealthily ack woot provided\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitAdsProperties{},\n },\n ),\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" - target: $["paths"]["checkout.created"]["post"] update: "x-codeSamples": - "lang": "go" "label": "_endpointcheckout_created_post" - "source": "package main\n\nimport(\n\t\"context\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/types\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New()\n\n res, err := s.EndpointcheckoutCreatedPost(ctx, components.WebhookCheckoutCreatedPayload{\n Data: components.Checkout{\n CreatedAt: types.MustTimeFromString(\"2024-11-12T14:26:42.882Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-05-28T05:08:06.235Z\"),\n ID: \"\",\n Status: components.CheckoutStatusFailed,\n ClientSecret: \"\",\n URL: \"https://heavy-beret.com/\",\n ExpiresAt: types.MustTimeFromString(\"2022-02-25T02:26:48.460Z\"),\n SuccessURL: \"https://sardonic-final.info/\",\n EmbedOrigin: polargo.String(\"\"),\n Amount: polargo.Int64(962818),\n TaxAmount: polargo.Int64(6400),\n Currency: polargo.String(\"Yen\"),\n SubtotalAmount: polargo.Int64(648726),\n TotalAmount: polargo.Int64(210702),\n ProductID: \"\",\n ProductPriceID: \"\",\n DiscountID: polargo.String(\"\"),\n AllowDiscountCodes: true,\n IsDiscountApplicable: false,\n IsFreeProductPrice: false,\n IsPaymentRequired: false,\n IsPaymentSetupRequired: false,\n IsPaymentFormRequired: false,\n CustomerID: polargo.String(\"\"),\n CustomerName: polargo.String(\"\"),\n CustomerEmail: polargo.String(\"Ryley_Erdman@hotmail.com\"),\n CustomerIPAddress: polargo.String(\"\"),\n CustomerBillingAddress: &components.Address{\n Country: \"South Africa\",\n },\n CustomerTaxID: polargo.String(\"\"),\n PaymentProcessorMetadata: components.PaymentProcessorMetadata{},\n Metadata: map[string]components.CheckoutMetadata{\n \"key\": components.CreateCheckoutMetadataInteger(\n 18677,\n ),\n \"key1\": components.CreateCheckoutMetadataInteger(\n 95370,\n ),\n },\n Product: components.CheckoutProduct{\n CreatedAt: types.MustTimeFromString(\"2022-04-02T00:05:42.586Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-12-16T03:02:38.803Z\"),\n ID: \"\",\n Name: \"\",\n Description: polargo.String(\"for embarrassment untidy long-term near honestly separate yet\"),\n IsRecurring: true,\n IsArchived: false,\n OrganizationID: \"\",\n Prices: []components.ProductPrice{\n components.CreateProductPriceProductPriceOneTime(\n components.CreateProductPriceOneTimeProductPriceOneTimeCustom(\n components.ProductPriceOneTimeCustom{\n CreatedAt: types.MustTimeFromString(\"2023-02-07T04:30:48.802Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-06-25T22:47:14.264Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n PriceCurrency: \"\",\n MinimumAmount: polargo.Int64(691423),\n MaximumAmount: polargo.Int64(499526),\n PresetAmount: polargo.Int64(18677),\n },\n ),\n ),\n },\n Benefits: []components.BenefitBase{\n components.BenefitBase{\n CreatedAt: types.MustTimeFromString(\"2023-08-22T00:47:02.059Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-06-04T10:32:44.101Z\"),\n ID: \"\",\n Type: components.BenefitTypeLicenseKeys,\n Description: \"within jacket unless\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n },\n },\n Medias: []components.ProductMediaFileRead{\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/private/var\",\n MimeType: \"\",\n Size: 245189,\n StorageVersion: polargo.String(\"\"),\n ChecksumEtag: polargo.String(\"\"),\n ChecksumSha256Base64: polargo.String(\"\"),\n ChecksumSha256Hex: polargo.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2022-11-03T15:00:03.276Z\"),\n Version: polargo.String(\"\"),\n IsUploaded: false,\n CreatedAt: types.MustTimeFromString(\"2024-06-07T13:47:02.365Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://webbed-experience.name/\",\n },\n },\n },\n ProductPrice: components.CreateProductPriceProductPriceOneTime(\n components.CreateProductPriceOneTimeProductPriceOneTimeFixed(\n components.ProductPriceOneTimeFixed{\n CreatedAt: types.MustTimeFromString(\"2022-04-02T00:05:42.586Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-12-16T03:02:38.803Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n PriceCurrency: \"\",\n PriceAmount: 740296,\n },\n ),\n ),\n Discount: components.CreateCheckoutDiscountCheckoutDiscountPercentageOnceForeverDuration(\n components.CheckoutDiscountPercentageOnceForeverDuration{\n Duration: components.DiscountDurationRepeating,\n Type: components.DiscountTypeFixed,\n BasisPoints: 341163,\n ID: \"\",\n Name: \"\",\n Code: polargo.String(\"\"),\n },\n ),\n SubscriptionID: polargo.String(\"\"),\n AttachedCustomFields: []components.AttachedCustomField{\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldNumber(\n components.CustomFieldNumber{\n CreatedAt: types.MustTimeFromString(\"2024-06-23T16:57:50.081Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-12-14T18:25:33.693Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldNumberMetadata{\n \"key\": components.CreateCustomFieldNumberMetadataStr(\n \"\",\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldNumberProperties{},\n },\n ),\n Order: 996863,\n Required: false,\n },\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldSelect(\n components.CustomFieldSelect{\n CreatedAt: types.MustTimeFromString(\"2022-04-26T22:34:57.487Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-08-07T19:57:51.694Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldSelectMetadata{\n \"key\": components.CreateCustomFieldSelectMetadataInteger(\n 856200,\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldSelectProperties{\n Options: []components.CustomFieldSelectOption{\n components.CustomFieldSelectOption{\n Value: \"\",\n Label: \"\",\n },\n },\n },\n },\n ),\n Order: 72589,\n Required: true,\n },\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldCheckbox(\n components.CustomFieldCheckbox{\n CreatedAt: types.MustTimeFromString(\"2024-05-25T15:20:50.694Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-11-28T14:29:40.329Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldCheckboxMetadata{\n \"key\": components.CreateCustomFieldCheckboxMetadataBoolean(\n false,\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldCheckboxProperties{},\n },\n ),\n Order: 161325,\n Required: true,\n },\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"polar\"\n\t\"polar/types\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New()\n\n res, err := s.EndpointcheckoutCreatedPost(ctx, components.WebhookCheckoutCreatedPayload{\n Data: components.Checkout{\n CreatedAt: types.MustTimeFromString(\"2024-11-12T14:26:42.882Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-05-28T05:08:06.235Z\"),\n ID: \"\",\n Status: components.CheckoutStatusFailed,\n ClientSecret: \"\",\n URL: \"https://heavy-beret.com/\",\n ExpiresAt: types.MustTimeFromString(\"2022-02-25T02:26:48.460Z\"),\n SuccessURL: \"https://sardonic-final.info/\",\n EmbedOrigin: polar.String(\"\"),\n Amount: polar.Int64(962818),\n TaxAmount: polar.Int64(6400),\n Currency: polar.String(\"Yen\"),\n SubtotalAmount: polar.Int64(648726),\n TotalAmount: polar.Int64(210702),\n ProductID: \"\",\n ProductPriceID: \"\",\n DiscountID: polar.String(\"\"),\n AllowDiscountCodes: true,\n IsDiscountApplicable: false,\n IsFreeProductPrice: false,\n IsPaymentRequired: false,\n IsPaymentSetupRequired: false,\n IsPaymentFormRequired: false,\n CustomerID: polar.String(\"\"),\n CustomerName: polar.String(\"\"),\n CustomerEmail: polar.String(\"Ryley_Erdman@hotmail.com\"),\n CustomerIPAddress: polar.String(\"\"),\n CustomerBillingAddress: &components.Address{\n Country: \"South Africa\",\n },\n CustomerTaxID: polar.String(\"\"),\n PaymentProcessorMetadata: components.PaymentProcessorMetadata{},\n Metadata: map[string]components.CheckoutMetadata{\n \"key\": components.CreateCheckoutMetadataInteger(\n 18677,\n ),\n \"key1\": components.CreateCheckoutMetadataInteger(\n 95370,\n ),\n },\n Product: components.CheckoutProduct{\n CreatedAt: types.MustTimeFromString(\"2022-04-02T00:05:42.586Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-12-16T03:02:38.803Z\"),\n ID: \"\",\n Name: \"\",\n Description: polar.String(\"for embarrassment untidy long-term near honestly separate yet\"),\n IsRecurring: true,\n IsArchived: false,\n OrganizationID: \"\",\n Prices: []components.ProductPrice{\n components.CreateProductPriceProductPriceRecurring(\n components.CreateProductPriceRecurringProductPriceRecurringFree(\n components.ProductPriceRecurringFree{\n CreatedAt: types.MustTimeFromString(\"2024-01-28T19:10:37.564Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-07-02T11:31:44.349Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n RecurringInterval: components.SubscriptionRecurringIntervalMonth,\n },\n ),\n ),\n },\n Benefits: []components.BenefitBase{\n components.BenefitBase{\n CreatedAt: types.MustTimeFromString(\"2023-08-22T00:47:02.059Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-06-04T10:32:44.101Z\"),\n ID: \"\",\n Type: components.BenefitTypeLicenseKeys,\n Description: \"within jacket unless\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n },\n },\n Medias: []components.ProductMediaFileRead{\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/private/var\",\n MimeType: \"\",\n Size: 245189,\n StorageVersion: polar.String(\"\"),\n ChecksumEtag: polar.String(\"\"),\n ChecksumSha256Base64: polar.String(\"\"),\n ChecksumSha256Hex: polar.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2022-11-03T15:00:03.276Z\"),\n Version: polar.String(\"\"),\n IsUploaded: false,\n CreatedAt: types.MustTimeFromString(\"2024-06-07T13:47:02.365Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://webbed-experience.name/\",\n },\n },\n },\n ProductPrice: components.CreateProductPriceProductPriceOneTime(\n components.CreateProductPriceOneTimeProductPriceOneTimeFixed(\n components.ProductPriceOneTimeFixed{\n CreatedAt: types.MustTimeFromString(\"2022-04-02T00:05:42.586Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-12-16T03:02:38.803Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n PriceCurrency: \"\",\n PriceAmount: 740296,\n },\n ),\n ),\n Discount: components.CreateCheckoutDiscountCheckoutDiscountPercentageOnceForeverDuration(\n components.CheckoutDiscountPercentageOnceForeverDuration{\n Duration: components.DiscountDurationRepeating,\n Type: components.DiscountTypeFixed,\n BasisPoints: 341163,\n ID: \"\",\n Name: \"\",\n Code: polar.String(\"\"),\n },\n ),\n SubscriptionID: polar.String(\"\"),\n AttachedCustomFields: []components.AttachedCustomField{\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldNumber(\n components.CustomFieldNumber{\n CreatedAt: types.MustTimeFromString(\"2024-06-23T16:57:50.081Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-12-14T18:25:33.693Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldNumberMetadata{\n \"key\": components.CreateCustomFieldNumberMetadataStr(\n \"\",\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldNumberProperties{},\n },\n ),\n Order: 996863,\n Required: false,\n },\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldSelect(\n components.CustomFieldSelect{\n CreatedAt: types.MustTimeFromString(\"2022-04-26T22:34:57.487Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-08-07T19:57:51.694Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldSelectMetadata{\n \"key\": components.CreateCustomFieldSelectMetadataInteger(\n 856200,\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldSelectProperties{\n Options: []components.CustomFieldSelectOption{\n components.CustomFieldSelectOption{\n Value: \"\",\n Label: \"\",\n },\n },\n },\n },\n ),\n Order: 72589,\n Required: true,\n },\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldCheckbox(\n components.CustomFieldCheckbox{\n CreatedAt: types.MustTimeFromString(\"2024-05-25T15:20:50.694Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-11-28T14:29:40.329Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldCheckboxMetadata{\n \"key\": components.CreateCustomFieldCheckboxMetadataBoolean(\n false,\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldCheckboxProperties{},\n },\n ),\n Order: 161325,\n Required: true,\n },\n },\n CustomerMetadata: map[string]components.CustomerMetadata{\n \"key\": components.CreateCustomerMetadataStr(\n \"\",\n ),\n \"key1\": components.CreateCustomerMetadataStr(\n \"\",\n ),\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" - target: $["paths"]["checkout.updated"]["post"] update: "x-codeSamples": - "lang": "go" "label": "_endpointcheckout_updated_post" - "source": "package main\n\nimport(\n\t\"context\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/types\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New()\n\n res, err := s.EndpointcheckoutUpdatedPost(ctx, components.WebhookCheckoutUpdatedPayload{\n Data: components.Checkout{\n CreatedAt: types.MustTimeFromString(\"2024-10-04T13:06:10.658Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-10-03T21:25:15.366Z\"),\n ID: \"\",\n Status: components.CheckoutStatusFailed,\n ClientSecret: \"\",\n URL: \"https://square-cafe.biz/\",\n ExpiresAt: types.MustTimeFromString(\"2024-03-25T08:55:11.873Z\"),\n SuccessURL: \"https://physical-import.name/\",\n EmbedOrigin: polargo.String(\"\"),\n Amount: polargo.Int64(245418),\n TaxAmount: polargo.Int64(624213),\n Currency: polargo.String(\"Naira\"),\n SubtotalAmount: polargo.Int64(24587),\n TotalAmount: polargo.Int64(447013),\n ProductID: \"\",\n ProductPriceID: \"\",\n DiscountID: polargo.String(\"\"),\n AllowDiscountCodes: true,\n IsDiscountApplicable: true,\n IsFreeProductPrice: true,\n IsPaymentRequired: false,\n IsPaymentSetupRequired: false,\n IsPaymentFormRequired: true,\n CustomerID: polargo.String(\"\"),\n CustomerName: polargo.String(\"\"),\n CustomerEmail: polargo.String(\"Jairo39@hotmail.com\"),\n CustomerIPAddress: polargo.String(\"\"),\n CustomerBillingAddress: &components.Address{\n Country: \"Greenland\",\n },\n CustomerTaxID: polargo.String(\"\"),\n PaymentProcessorMetadata: components.PaymentProcessorMetadata{},\n Metadata: map[string]components.CheckoutMetadata{\n\n },\n Product: components.CheckoutProduct{\n CreatedAt: types.MustTimeFromString(\"2024-01-25T14:28:29.444Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-09-21T12:18:51.327Z\"),\n ID: \"\",\n Name: \"\",\n Description: polargo.String(\"engender reopen yahoo draft\"),\n IsRecurring: false,\n IsArchived: true,\n OrganizationID: \"\",\n Prices: []components.ProductPrice{\n components.CreateProductPriceProductPriceRecurring(\n components.CreateProductPriceRecurringProductPriceRecurringCustom(\n components.ProductPriceRecurringCustom{\n CreatedAt: types.MustTimeFromString(\"2023-04-19T00:52:44.462Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-09-21T13:33:23.592Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n PriceCurrency: \"\",\n MinimumAmount: polargo.Int64(861868),\n MaximumAmount: polargo.Int64(626316),\n PresetAmount: polargo.Int64(226088),\n RecurringInterval: components.SubscriptionRecurringIntervalYear,\n },\n ),\n ),\n },\n Benefits: []components.BenefitBase{\n components.BenefitBase{\n CreatedAt: types.MustTimeFromString(\"2024-04-09T09:30:36.910Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-10-16T19:52:50.377Z\"),\n ID: \"\",\n Type: components.BenefitTypeGithubRepository,\n Description: \"posh hm meatloaf politely ugh fidget to inborn putrid\",\n Selectable: false,\n Deletable: true,\n OrganizationID: \"\",\n },\n components.BenefitBase{\n CreatedAt: types.MustTimeFromString(\"2023-12-31T03:17:46.406Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-11-12T16:32:46.306Z\"),\n ID: \"\",\n Type: components.BenefitTypeLicenseKeys,\n Description: \"blah likewise whose notwithstanding airline aboard frightened enfold colorfully\",\n Selectable: true,\n Deletable: true,\n OrganizationID: \"\",\n },\n },\n Medias: []components.ProductMediaFileRead{\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/home/user\",\n MimeType: \"\",\n Size: 767806,\n StorageVersion: polargo.String(\"\"),\n ChecksumEtag: polargo.String(\"\"),\n ChecksumSha256Base64: polargo.String(\"\"),\n ChecksumSha256Hex: polargo.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2023-01-15T18:22:33.094Z\"),\n Version: polargo.String(\"\"),\n IsUploaded: false,\n CreatedAt: types.MustTimeFromString(\"2023-02-14T06:20:54.950Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://pushy-tomatillo.org/\",\n },\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/private\",\n MimeType: \"\",\n Size: 432333,\n StorageVersion: polargo.String(\"\"),\n ChecksumEtag: polargo.String(\"\"),\n ChecksumSha256Base64: polargo.String(\"\"),\n ChecksumSha256Hex: polargo.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2023-03-08T18:51:14.729Z\"),\n Version: polargo.String(\"\"),\n IsUploaded: false,\n CreatedAt: types.MustTimeFromString(\"2022-11-18T09:33:10.032Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://affectionate-charm.net\",\n },\n },\n },\n ProductPrice: components.CreateProductPriceProductPriceRecurring(\n components.CreateProductPriceRecurringProductPriceRecurringFixed(\n components.ProductPriceRecurringFixed{\n CreatedAt: types.MustTimeFromString(\"2024-04-04T09:36:58.685Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-03-13T12:25:44.387Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n PriceCurrency: \"\",\n PriceAmount: 396660,\n RecurringInterval: components.SubscriptionRecurringIntervalYear,\n },\n ),\n ),\n Discount: components.CreateCheckoutDiscountCheckoutDiscountFixedOnceForeverDuration(\n components.CheckoutDiscountFixedOnceForeverDuration{\n Duration: components.DiscountDurationOnce,\n Type: components.DiscountTypePercentage,\n Amount: 883154,\n Currency: \"East Caribbean Dollar\",\n ID: \"\",\n Name: \"\",\n Code: polargo.String(\"\"),\n },\n ),\n SubscriptionID: polargo.String(\"\"),\n AttachedCustomFields: []components.AttachedCustomField{\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldDate(\n components.CustomFieldDate{\n CreatedAt: types.MustTimeFromString(\"2022-07-11T15:52:54.020Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-01-25T14:28:29.444Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldDateMetadata{\n \"key\": components.CreateCustomFieldDateMetadataBoolean(\n false,\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldDateProperties{},\n },\n ),\n Order: 108303,\n Required: false,\n },\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"polar\"\n\t\"polar/types\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New()\n\n res, err := s.EndpointcheckoutUpdatedPost(ctx, components.WebhookCheckoutUpdatedPayload{\n Data: components.Checkout{\n CreatedAt: types.MustTimeFromString(\"2024-10-04T13:06:10.658Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-10-03T21:25:15.366Z\"),\n ID: \"\",\n Status: components.CheckoutStatusFailed,\n ClientSecret: \"\",\n URL: \"https://square-cafe.biz/\",\n ExpiresAt: types.MustTimeFromString(\"2024-03-25T08:55:11.873Z\"),\n SuccessURL: \"https://physical-import.name/\",\n EmbedOrigin: polar.String(\"\"),\n Amount: polar.Int64(245418),\n TaxAmount: polar.Int64(624213),\n Currency: polar.String(\"Naira\"),\n SubtotalAmount: polar.Int64(24587),\n TotalAmount: polar.Int64(447013),\n ProductID: \"\",\n ProductPriceID: \"\",\n DiscountID: polar.String(\"\"),\n AllowDiscountCodes: true,\n IsDiscountApplicable: true,\n IsFreeProductPrice: true,\n IsPaymentRequired: false,\n IsPaymentSetupRequired: false,\n IsPaymentFormRequired: true,\n CustomerID: polar.String(\"\"),\n CustomerName: polar.String(\"\"),\n CustomerEmail: polar.String(\"Jairo39@hotmail.com\"),\n CustomerIPAddress: polar.String(\"\"),\n CustomerBillingAddress: &components.Address{\n Country: \"Greenland\",\n },\n CustomerTaxID: polar.String(\"\"),\n PaymentProcessorMetadata: components.PaymentProcessorMetadata{},\n Metadata: map[string]components.CheckoutMetadata{\n\n },\n Product: components.CheckoutProduct{\n CreatedAt: types.MustTimeFromString(\"2024-01-25T14:28:29.444Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-09-21T12:18:51.327Z\"),\n ID: \"\",\n Name: \"\",\n Description: polar.String(\"engender reopen yahoo draft\"),\n IsRecurring: false,\n IsArchived: true,\n OrganizationID: \"\",\n Prices: []components.ProductPrice{\n components.CreateProductPriceProductPriceRecurring(\n components.CreateProductPriceRecurringProductPriceRecurringFixed(\n components.ProductPriceRecurringFixed{\n CreatedAt: types.MustTimeFromString(\"2024-08-02T14:33:19.677Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-11-18T10:36:50.593Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n PriceCurrency: \"\",\n PriceAmount: 226088,\n RecurringInterval: components.SubscriptionRecurringIntervalYear,\n },\n ),\n ),\n },\n Benefits: []components.BenefitBase{\n components.BenefitBase{\n CreatedAt: types.MustTimeFromString(\"2024-04-09T09:30:36.910Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-10-16T19:52:50.377Z\"),\n ID: \"\",\n Type: components.BenefitTypeGithubRepository,\n Description: \"posh hm meatloaf politely ugh fidget to inborn putrid\",\n Selectable: false,\n Deletable: true,\n OrganizationID: \"\",\n },\n components.BenefitBase{\n CreatedAt: types.MustTimeFromString(\"2023-12-31T03:17:46.406Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-11-12T16:32:46.306Z\"),\n ID: \"\",\n Type: components.BenefitTypeLicenseKeys,\n Description: \"blah likewise whose notwithstanding airline aboard frightened enfold colorfully\",\n Selectable: true,\n Deletable: true,\n OrganizationID: \"\",\n },\n },\n Medias: []components.ProductMediaFileRead{\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/home/user\",\n MimeType: \"\",\n Size: 767806,\n StorageVersion: polar.String(\"\"),\n ChecksumEtag: polar.String(\"\"),\n ChecksumSha256Base64: polar.String(\"\"),\n ChecksumSha256Hex: polar.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2023-01-15T18:22:33.094Z\"),\n Version: polar.String(\"\"),\n IsUploaded: false,\n CreatedAt: types.MustTimeFromString(\"2023-02-14T06:20:54.950Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://pushy-tomatillo.org/\",\n },\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/private\",\n MimeType: \"\",\n Size: 432333,\n StorageVersion: polar.String(\"\"),\n ChecksumEtag: polar.String(\"\"),\n ChecksumSha256Base64: polar.String(\"\"),\n ChecksumSha256Hex: polar.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2023-03-08T18:51:14.729Z\"),\n Version: polar.String(\"\"),\n IsUploaded: false,\n CreatedAt: types.MustTimeFromString(\"2022-11-18T09:33:10.032Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://affectionate-charm.net\",\n },\n },\n },\n ProductPrice: components.CreateProductPriceProductPriceRecurring(\n components.CreateProductPriceRecurringProductPriceRecurringFixed(\n components.ProductPriceRecurringFixed{\n CreatedAt: types.MustTimeFromString(\"2024-04-04T09:36:58.685Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-03-13T12:25:44.387Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n PriceCurrency: \"\",\n PriceAmount: 396660,\n RecurringInterval: components.SubscriptionRecurringIntervalYear,\n },\n ),\n ),\n Discount: components.CreateCheckoutDiscountCheckoutDiscountFixedOnceForeverDuration(\n components.CheckoutDiscountFixedOnceForeverDuration{\n Duration: components.DiscountDurationOnce,\n Type: components.DiscountTypePercentage,\n Amount: 883154,\n Currency: \"East Caribbean Dollar\",\n ID: \"\",\n Name: \"\",\n Code: polar.String(\"\"),\n },\n ),\n SubscriptionID: polar.String(\"\"),\n AttachedCustomFields: []components.AttachedCustomField{\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldDate(\n components.CustomFieldDate{\n CreatedAt: types.MustTimeFromString(\"2022-07-11T15:52:54.020Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-01-25T14:28:29.444Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldDateMetadata{\n \"key\": components.CreateCustomFieldDateMetadataBoolean(\n false,\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldDateProperties{},\n },\n ),\n Order: 108303,\n Required: false,\n },\n },\n CustomerMetadata: map[string]components.CustomerMetadata{\n \"key\": components.CreateCustomerMetadataStr(\n \"\",\n ),\n \"key1\": components.CreateCustomerMetadataBoolean(\n true,\n ),\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" - target: $["paths"]["order.created"]["post"] update: "x-codeSamples": - "lang": "go" "label": "_endpointorder_created_post" - "source": "package main\n\nimport(\n\t\"context\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/types\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New()\n\n res, err := s.EndpointorderCreatedPost(ctx, components.WebhookOrderCreatedPayload{\n Data: components.Order{\n CreatedAt: types.MustTimeFromString(\"2023-11-12T12:46:15.007Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-03-24T03:54:38.261Z\"),\n ID: \"\",\n Metadata: map[string]components.OrderMetadata{\n \"key\": components.CreateOrderMetadataStr(\n \"\",\n ),\n \"key1\": components.CreateOrderMetadataStr(\n \"\",\n ),\n },\n Amount: 485666,\n TaxAmount: 81588,\n Currency: \"Metical\",\n BillingReason: components.OrderBillingReasonSubscriptionCycle,\n BillingAddress: &components.Address{\n Country: \"Hungary\",\n },\n CustomerID: \"\",\n ProductID: \"\",\n ProductPriceID: \"\",\n DiscountID: polargo.String(\"\"),\n SubscriptionID: polargo.String(\"\"),\n CheckoutID: polargo.String(\"\"),\n Customer: components.OrderCustomer{\n CreatedAt: types.MustTimeFromString(\"2022-09-09T08:07:10.665Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-08-19T18:18:41.438Z\"),\n ID: \"\",\n Metadata: map[string]components.OrderCustomerMetadata{\n \"key\": components.CreateOrderCustomerMetadataInteger(\n 24128,\n ),\n \"key1\": components.CreateOrderCustomerMetadataStr(\n \"\",\n ),\n \"key2\": components.CreateOrderCustomerMetadataStr(\n \"\",\n ),\n },\n Email: \"Gia.Boyer87@yahoo.com\",\n EmailVerified: false,\n Name: polargo.String(\"\"),\n BillingAddress: &components.Address{\n Country: \"Reunion\",\n },\n TaxID: []components.OrderCustomerTaxID{\n components.CreateOrderCustomerTaxIDStr(\n \"\",\n ),\n components.CreateOrderCustomerTaxIDStr(\n \"my_sst\",\n ),\n components.CreateOrderCustomerTaxIDStr(\n \"br_cpf\",\n ),\n },\n OrganizationID: \"\",\n AvatarURL: \"https://darling-kit.org\",\n },\n UserID: \"\",\n User: components.OrderUser{\n ID: \"\",\n Email: \"Delphine_Weber@hotmail.com\",\n PublicName: \"\",\n },\n Product: components.OrderProduct{\n CreatedAt: types.MustTimeFromString(\"2024-12-27T14:05:37.748Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-01-02T22:00:53.940Z\"),\n ID: \"\",\n Name: \"\",\n Description: polargo.String(\"circle colorize given\"),\n IsRecurring: true,\n IsArchived: true,\n OrganizationID: \"\",\n },\n ProductPrice: components.CreateProductPriceProductPriceRecurring(\n components.CreateProductPriceRecurringProductPriceRecurringFixed(\n components.ProductPriceRecurringFixed{\n CreatedAt: types.MustTimeFromString(\"2024-08-11T14:36:04.800Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-12-17T11:20:04.235Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n PriceCurrency: \"\",\n PriceAmount: 656121,\n RecurringInterval: components.SubscriptionRecurringIntervalYear,\n },\n ),\n ),\n Discount: components.CreateOrderDiscountDiscountPercentageRepeatDurationBase(\n components.DiscountPercentageRepeatDurationBase{\n Duration: components.DiscountDurationForever,\n DurationInMonths: 694649,\n Type: components.DiscountTypePercentage,\n BasisPoints: 683727,\n CreatedAt: types.MustTimeFromString(\"2022-05-22T16:28:34.624Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-08-31T17:55:50.952Z\"),\n ID: \"\",\n Metadata: map[string]components.DiscountPercentageRepeatDurationBaseMetadata{\n \"key\": components.CreateDiscountPercentageRepeatDurationBaseMetadataStr(\n \"\",\n ),\n },\n Name: \"\",\n Code: polargo.String(\"\"),\n StartsAt: types.MustNewTimeFromString(\"2023-07-02T07:12:57.258Z\"),\n EndsAt: types.MustNewTimeFromString(\"2024-10-22T16:43:41.873Z\"),\n MaxRedemptions: polargo.Int64(738266),\n RedemptionsCount: 249608,\n OrganizationID: \"\",\n },\n ),\n Subscription: &components.OrderSubscription{\n Metadata: map[string]components.OrderSubscriptionMetadata{\n \"key\": components.CreateOrderSubscriptionMetadataInteger(\n 838937,\n ),\n \"key1\": components.CreateOrderSubscriptionMetadataBoolean(\n true,\n ),\n },\n CreatedAt: types.MustTimeFromString(\"2024-05-09T06:10:47.548Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-02-14T18:51:37.875Z\"),\n ID: \"\",\n Amount: polargo.Int64(420337),\n Currency: polargo.String(\"New Zealand Dollar\"),\n RecurringInterval: components.SubscriptionRecurringIntervalYear,\n Status: components.SubscriptionStatusIncomplete,\n CurrentPeriodStart: types.MustTimeFromString(\"2024-12-01T13:27:57.927Z\"),\n CurrentPeriodEnd: types.MustNewTimeFromString(\"2022-06-23T18:54:19.334Z\"),\n CancelAtPeriodEnd: false,\n StartedAt: types.MustNewTimeFromString(\"2023-11-16T11:53:36.436Z\"),\n EndedAt: types.MustNewTimeFromString(\"2024-11-18T03:47:21.756Z\"),\n CustomerID: \"\",\n ProductID: \"\",\n PriceID: \"\",\n DiscountID: polargo.String(\"\"),\n CheckoutID: polargo.String(\"\"),\n UserID: \"\",\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"polar\"\n\t\"polar/types\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New()\n\n res, err := s.EndpointorderCreatedPost(ctx, components.WebhookOrderCreatedPayload{\n Data: components.Order{\n CreatedAt: types.MustTimeFromString(\"2023-11-12T12:46:15.007Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-03-24T03:54:38.261Z\"),\n ID: \"\",\n Metadata: map[string]components.OrderMetadata{\n \"key\": components.CreateOrderMetadataStr(\n \"\",\n ),\n \"key1\": components.CreateOrderMetadataStr(\n \"\",\n ),\n },\n Amount: 485666,\n TaxAmount: 81588,\n Currency: \"Metical\",\n BillingReason: components.OrderBillingReasonSubscriptionCycle,\n BillingAddress: &components.Address{\n Country: \"Hungary\",\n },\n CustomerID: \"\",\n ProductID: \"\",\n ProductPriceID: \"\",\n DiscountID: polar.String(\"\"),\n SubscriptionID: polar.String(\"\"),\n CheckoutID: polar.String(\"\"),\n Customer: components.OrderCustomer{\n CreatedAt: types.MustTimeFromString(\"2022-09-09T08:07:10.665Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-08-19T18:18:41.438Z\"),\n ID: \"\",\n Metadata: map[string]components.OrderCustomerMetadata{\n \"key\": components.CreateOrderCustomerMetadataInteger(\n 24128,\n ),\n \"key1\": components.CreateOrderCustomerMetadataStr(\n \"\",\n ),\n \"key2\": components.CreateOrderCustomerMetadataStr(\n \"\",\n ),\n },\n Email: \"Gia.Boyer87@yahoo.com\",\n EmailVerified: false,\n Name: polar.String(\"\"),\n BillingAddress: &components.Address{\n Country: \"Reunion\",\n },\n TaxID: []components.OrderCustomerTaxID{\n components.CreateOrderCustomerTaxIDStr(\n \"\",\n ),\n components.CreateOrderCustomerTaxIDStr(\n \"my_sst\",\n ),\n components.CreateOrderCustomerTaxIDStr(\n \"br_cpf\",\n ),\n },\n OrganizationID: \"\",\n AvatarURL: \"https://darling-kit.org\",\n },\n UserID: \"\",\n User: components.OrderUser{\n ID: \"\",\n Email: \"Delphine_Weber@hotmail.com\",\n PublicName: \"\",\n },\n Product: components.OrderProduct{\n CreatedAt: types.MustTimeFromString(\"2024-12-27T14:05:37.748Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-01-02T22:00:53.940Z\"),\n ID: \"\",\n Name: \"\",\n Description: polar.String(\"circle colorize given\"),\n IsRecurring: true,\n IsArchived: true,\n OrganizationID: \"\",\n },\n ProductPrice: components.CreateProductPriceProductPriceRecurring(\n components.CreateProductPriceRecurringProductPriceRecurringFixed(\n components.ProductPriceRecurringFixed{\n CreatedAt: types.MustTimeFromString(\"2024-08-11T14:36:04.800Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-12-17T11:20:04.235Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n PriceCurrency: \"\",\n PriceAmount: 656121,\n RecurringInterval: components.SubscriptionRecurringIntervalYear,\n },\n ),\n ),\n Discount: components.CreateOrderDiscountDiscountPercentageRepeatDurationBase(\n components.DiscountPercentageRepeatDurationBase{\n Duration: components.DiscountDurationForever,\n DurationInMonths: 694649,\n Type: components.DiscountTypePercentage,\n BasisPoints: 683727,\n CreatedAt: types.MustTimeFromString(\"2022-05-22T16:28:34.624Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-08-31T17:55:50.952Z\"),\n ID: \"\",\n Metadata: map[string]components.DiscountPercentageRepeatDurationBaseMetadata{\n \"key\": components.CreateDiscountPercentageRepeatDurationBaseMetadataStr(\n \"\",\n ),\n },\n Name: \"\",\n Code: polar.String(\"\"),\n StartsAt: types.MustNewTimeFromString(\"2023-07-02T07:12:57.258Z\"),\n EndsAt: types.MustNewTimeFromString(\"2024-10-22T16:43:41.873Z\"),\n MaxRedemptions: polar.Int64(738266),\n RedemptionsCount: 249608,\n OrganizationID: \"\",\n },\n ),\n Subscription: &components.OrderSubscription{\n Metadata: map[string]components.OrderSubscriptionMetadata{\n \"key\": components.CreateOrderSubscriptionMetadataInteger(\n 838937,\n ),\n \"key1\": components.CreateOrderSubscriptionMetadataBoolean(\n true,\n ),\n },\n CreatedAt: types.MustTimeFromString(\"2024-05-09T06:10:47.548Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-02-14T18:51:37.875Z\"),\n ID: \"\",\n Amount: polar.Int64(420337),\n Currency: polar.String(\"New Zealand Dollar\"),\n RecurringInterval: components.SubscriptionRecurringIntervalYear,\n Status: components.SubscriptionStatusIncomplete,\n CurrentPeriodStart: types.MustTimeFromString(\"2024-12-01T13:27:57.927Z\"),\n CurrentPeriodEnd: types.MustNewTimeFromString(\"2022-06-23T18:54:19.334Z\"),\n CancelAtPeriodEnd: false,\n StartedAt: types.MustNewTimeFromString(\"2023-11-16T11:53:36.436Z\"),\n EndedAt: types.MustNewTimeFromString(\"2024-11-18T03:47:21.756Z\"),\n CustomerID: \"\",\n ProductID: \"\",\n PriceID: \"\",\n DiscountID: polar.String(\"\"),\n CheckoutID: polar.String(\"\"),\n UserID: \"\",\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" - target: $["paths"]["organization.updated"]["post"] update: "x-codeSamples": - "lang": "go" "label": "_endpointorganization_updated_post" - "source": "package main\n\nimport(\n\t\"context\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/types\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New()\n\n res, err := s.EndpointorganizationUpdatedPost(ctx, components.WebhookOrganizationUpdatedPayload{\n Data: components.Organization{\n CreatedAt: types.MustTimeFromString(\"2022-08-12T18:45:04.236Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-12-29T16:35:25.119Z\"),\n ID: \"\",\n Name: \"\",\n Slug: \"\",\n AvatarURL: polargo.String(\"https://devoted-bump.net\"),\n Bio: polargo.String(\"\"),\n Company: polargo.String(\"Torp, Kuhlman and Howell\"),\n Blog: polargo.String(\"\"),\n Location: polargo.String(\"\"),\n Email: polargo.String(\"Dock_Friesen57@yahoo.com\"),\n TwitterUsername: polargo.String(\"\"),\n PledgeMinimumAmount: 105265,\n PledgeBadgeShowAmount: true,\n DefaultUpfrontSplitToContributors: polargo.Int64(907160),\n ProfileSettings: &components.OrganizationProfileSettings{},\n FeatureSettings: &components.OrganizationFeatureSettings{},\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"polar\"\n\t\"polar/types\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New()\n\n res, err := s.EndpointorganizationUpdatedPost(ctx, components.WebhookOrganizationUpdatedPayload{\n Data: components.Organization{\n CreatedAt: types.MustTimeFromString(\"2022-08-12T18:45:04.236Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-12-29T16:35:25.119Z\"),\n ID: \"\",\n Name: \"\",\n Slug: \"\",\n AvatarURL: polar.String(\"https://devoted-bump.net\"),\n Bio: polar.String(\"\"),\n Company: polar.String(\"Torp, Kuhlman and Howell\"),\n Blog: polar.String(\"\"),\n Location: polar.String(\"\"),\n Email: polar.String(\"Dock_Friesen57@yahoo.com\"),\n TwitterUsername: polar.String(\"\"),\n PledgeMinimumAmount: 105265,\n PledgeBadgeShowAmount: true,\n DefaultUpfrontSplitToContributors: polar.Int64(907160),\n ProfileSettings: &components.OrganizationProfileSettings{},\n FeatureSettings: &components.OrganizationFeatureSettings{},\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" - target: $["paths"]["pledge.created"]["post"] update: "x-codeSamples": - "lang": "go" "label": "_endpointpledge_created_post" - "source": "package main\n\nimport(\n\t\"context\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/types\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New()\n\n res, err := s.EndpointpledgeCreatedPost(ctx, components.WebhookPledgeCreatedPayload{\n Data: components.Pledge{\n CreatedAt: types.MustTimeFromString(\"2024-03-12T00:19:41.487Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-04-19T01:42:59.169Z\"),\n ID: \"\",\n Amount: 330877,\n Currency: \"Jamaican Dollar\",\n State: components.PledgeStateDisputed,\n Type: components.PledgeTypePayDirectly,\n Issue: components.Issue{\n ID: \"66524b69-aa0b-47ac-bb9a-0cee5d3a9110\",\n Number: 280857,\n Title: \"\",\n State: components.StateOpen,\n IssueCreatedAt: types.MustTimeFromString(\"2023-02-26T00:33:35.289Z\"),\n NeedsConfirmationSolved: false,\n Funding: components.Funding{},\n Repository: components.Repository{\n ID: \"356e14cb-87a4-484c-bcfa-ebfe50487706\",\n IsPrivate: true,\n Name: \"MyOrg\",\n Description: polargo.String(\"different premium tinderbox peter under often buzzing hastily\"),\n Stars: polargo.Int64(1337),\n License: polargo.String(\"\"),\n Homepage: polargo.String(\"\"),\n ProfileSettings: &components.RepositoryProfileSettings{},\n Organization: components.ExternalOrganization{\n ID: \"29159f56-74c0-464d-b598-8d5bc3b9cdda\",\n Name: \"\",\n AvatarURL: \"https://frightened-poppy.com/\",\n IsPersonal: false,\n Bio: polargo.String(\"\"),\n PrettyName: polargo.String(\"\"),\n Company: polargo.String(\"Bailey - Towne\"),\n Blog: polargo.String(\"\"),\n Location: polargo.String(\"\"),\n Email: polargo.String(\"Cortez_Stehr70@yahoo.com\"),\n TwitterUsername: polargo.String(\"\"),\n OrganizationID: polargo.String(\"\"),\n },\n InternalOrganization: &components.Organization{\n CreatedAt: types.MustTimeFromString(\"2024-01-04T15:27:13.109Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-02-15T22:10:17.041Z\"),\n ID: \"\",\n Name: \"\",\n Slug: \"\",\n AvatarURL: polargo.String(\"https://hard-to-find-thyme.org\"),\n Bio: polargo.String(\"\"),\n Company: polargo.String(\"Schinner - Wiegand\"),\n Blog: polargo.String(\"\"),\n Location: polargo.String(\"\"),\n Email: polargo.String(\"Pearline_Brekke@hotmail.com\"),\n TwitterUsername: polargo.String(\"\"),\n PledgeMinimumAmount: 273260,\n PledgeBadgeShowAmount: false,\n DefaultUpfrontSplitToContributors: polargo.Int64(976949),\n ProfileSettings: &components.OrganizationProfileSettings{},\n FeatureSettings: &components.OrganizationFeatureSettings{},\n },\n },\n PledgeBadgeCurrentlyEmbedded: true,\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"polar\"\n\t\"polar/types\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New()\n\n res, err := s.EndpointpledgeCreatedPost(ctx, components.WebhookPledgeCreatedPayload{\n Data: components.Pledge{\n CreatedAt: types.MustTimeFromString(\"2024-03-12T00:19:41.487Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-04-19T01:42:59.169Z\"),\n ID: \"\",\n Amount: 330877,\n Currency: \"Jamaican Dollar\",\n State: components.PledgeStateDisputed,\n Type: components.PledgeTypePayDirectly,\n Issue: components.Issue{\n ID: \"66524b69-aa0b-47ac-bb9a-0cee5d3a9110\",\n Number: 280857,\n Title: \"\",\n State: components.StateOpen,\n IssueCreatedAt: types.MustTimeFromString(\"2023-02-26T00:33:35.289Z\"),\n NeedsConfirmationSolved: false,\n Funding: components.Funding{},\n Repository: components.Repository{\n ID: \"356e14cb-87a4-484c-bcfa-ebfe50487706\",\n IsPrivate: true,\n Name: \"MyOrg\",\n Description: polar.String(\"different premium tinderbox peter under often buzzing hastily\"),\n Stars: polar.Int64(1337),\n License: polar.String(\"\"),\n Homepage: polar.String(\"\"),\n ProfileSettings: &components.RepositoryProfileSettings{},\n Organization: components.ExternalOrganization{\n ID: \"29159f56-74c0-464d-b598-8d5bc3b9cdda\",\n Name: \"\",\n AvatarURL: \"https://frightened-poppy.com/\",\n IsPersonal: false,\n Bio: polar.String(\"\"),\n PrettyName: polar.String(\"\"),\n Company: polar.String(\"Bailey - Towne\"),\n Blog: polar.String(\"\"),\n Location: polar.String(\"\"),\n Email: polar.String(\"Cortez_Stehr70@yahoo.com\"),\n TwitterUsername: polar.String(\"\"),\n OrganizationID: polar.String(\"\"),\n },\n InternalOrganization: &components.Organization{\n CreatedAt: types.MustTimeFromString(\"2024-01-04T15:27:13.109Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-02-15T22:10:17.041Z\"),\n ID: \"\",\n Name: \"\",\n Slug: \"\",\n AvatarURL: polar.String(\"https://hard-to-find-thyme.org\"),\n Bio: polar.String(\"\"),\n Company: polar.String(\"Schinner - Wiegand\"),\n Blog: polar.String(\"\"),\n Location: polar.String(\"\"),\n Email: polar.String(\"Pearline_Brekke@hotmail.com\"),\n TwitterUsername: polar.String(\"\"),\n PledgeMinimumAmount: 273260,\n PledgeBadgeShowAmount: false,\n DefaultUpfrontSplitToContributors: polar.Int64(976949),\n ProfileSettings: &components.OrganizationProfileSettings{},\n FeatureSettings: &components.OrganizationFeatureSettings{},\n },\n },\n PledgeBadgeCurrentlyEmbedded: true,\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" - target: $["paths"]["pledge.updated"]["post"] update: "x-codeSamples": - "lang": "go" "label": "_endpointpledge_updated_post" - "source": "package main\n\nimport(\n\t\"context\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/types\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New()\n\n res, err := s.EndpointpledgeUpdatedPost(ctx, components.WebhookPledgeUpdatedPayload{\n Data: components.Pledge{\n CreatedAt: types.MustTimeFromString(\"2023-11-30T00:10:39.674Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-10-02T21:42:49.754Z\"),\n ID: \"\",\n Amount: 634567,\n Currency: \"Singapore Dollar\",\n State: components.PledgeStateRefunded,\n Type: components.PledgeTypePayOnCompletion,\n Issue: components.Issue{\n ID: \"d2e1349d-085a-441c-abf4-379a1f21d0da\",\n Number: 218372,\n Title: \"\",\n State: components.StateClosed,\n IssueCreatedAt: types.MustTimeFromString(\"2023-08-13T14:08:31.083Z\"),\n NeedsConfirmationSolved: true,\n Funding: components.Funding{},\n Repository: components.Repository{\n ID: \"814bd7c6-3412-4f11-b523-7b38c659f44a\",\n IsPrivate: false,\n Name: \"MyOrg\",\n Description: polargo.String(\"hm however microchip\"),\n Stars: polargo.Int64(1337),\n License: polargo.String(\"\"),\n Homepage: polargo.String(\"\"),\n ProfileSettings: &components.RepositoryProfileSettings{},\n Organization: components.ExternalOrganization{\n ID: \"3ddd5cc2-de10-41ef-baa1-7551cf671cc3\",\n Name: \"\",\n AvatarURL: \"https://gummy-interviewer.biz\",\n IsPersonal: false,\n Bio: polargo.String(\"\"),\n PrettyName: polargo.String(\"\"),\n Company: polargo.String(\"Ferry - Tremblay\"),\n Blog: polargo.String(\"\"),\n Location: polargo.String(\"\"),\n Email: polargo.String(\"Reggie_Crist@yahoo.com\"),\n TwitterUsername: polargo.String(\"\"),\n OrganizationID: polargo.String(\"\"),\n },\n InternalOrganization: &components.Organization{\n CreatedAt: types.MustTimeFromString(\"2024-12-13T11:00:39.217Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-12-02T09:51:26.214Z\"),\n ID: \"\",\n Name: \"\",\n Slug: \"\",\n AvatarURL: polargo.String(\"https://memorable-numeracy.com/\"),\n Bio: polargo.String(\"\"),\n Company: polargo.String(\"Schuster - Crooks\"),\n Blog: polargo.String(\"\"),\n Location: polargo.String(\"\"),\n Email: polargo.String(\"Tatum.Block37@yahoo.com\"),\n TwitterUsername: polargo.String(\"\"),\n PledgeMinimumAmount: 653584,\n PledgeBadgeShowAmount: false,\n DefaultUpfrontSplitToContributors: polargo.Int64(175899),\n ProfileSettings: &components.OrganizationProfileSettings{},\n FeatureSettings: &components.OrganizationFeatureSettings{},\n },\n },\n PledgeBadgeCurrentlyEmbedded: false,\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"polar\"\n\t\"polar/types\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New()\n\n res, err := s.EndpointpledgeUpdatedPost(ctx, components.WebhookPledgeUpdatedPayload{\n Data: components.Pledge{\n CreatedAt: types.MustTimeFromString(\"2023-11-30T00:10:39.674Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-10-02T21:42:49.754Z\"),\n ID: \"\",\n Amount: 634567,\n Currency: \"Singapore Dollar\",\n State: components.PledgeStateRefunded,\n Type: components.PledgeTypePayOnCompletion,\n Issue: components.Issue{\n ID: \"d2e1349d-085a-441c-abf4-379a1f21d0da\",\n Number: 218372,\n Title: \"\",\n State: components.StateClosed,\n IssueCreatedAt: types.MustTimeFromString(\"2023-08-13T14:08:31.083Z\"),\n NeedsConfirmationSolved: true,\n Funding: components.Funding{},\n Repository: components.Repository{\n ID: \"814bd7c6-3412-4f11-b523-7b38c659f44a\",\n IsPrivate: false,\n Name: \"MyOrg\",\n Description: polar.String(\"hm however microchip\"),\n Stars: polar.Int64(1337),\n License: polar.String(\"\"),\n Homepage: polar.String(\"\"),\n ProfileSettings: &components.RepositoryProfileSettings{},\n Organization: components.ExternalOrganization{\n ID: \"3ddd5cc2-de10-41ef-baa1-7551cf671cc3\",\n Name: \"\",\n AvatarURL: \"https://gummy-interviewer.biz\",\n IsPersonal: false,\n Bio: polar.String(\"\"),\n PrettyName: polar.String(\"\"),\n Company: polar.String(\"Ferry - Tremblay\"),\n Blog: polar.String(\"\"),\n Location: polar.String(\"\"),\n Email: polar.String(\"Reggie_Crist@yahoo.com\"),\n TwitterUsername: polar.String(\"\"),\n OrganizationID: polar.String(\"\"),\n },\n InternalOrganization: &components.Organization{\n CreatedAt: types.MustTimeFromString(\"2024-12-13T11:00:39.217Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-12-02T09:51:26.214Z\"),\n ID: \"\",\n Name: \"\",\n Slug: \"\",\n AvatarURL: polar.String(\"https://memorable-numeracy.com/\"),\n Bio: polar.String(\"\"),\n Company: polar.String(\"Schuster - Crooks\"),\n Blog: polar.String(\"\"),\n Location: polar.String(\"\"),\n Email: polar.String(\"Tatum.Block37@yahoo.com\"),\n TwitterUsername: polar.String(\"\"),\n PledgeMinimumAmount: 653584,\n PledgeBadgeShowAmount: false,\n DefaultUpfrontSplitToContributors: polar.Int64(175899),\n ProfileSettings: &components.OrganizationProfileSettings{},\n FeatureSettings: &components.OrganizationFeatureSettings{},\n },\n },\n PledgeBadgeCurrentlyEmbedded: false,\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" - target: $["paths"]["product.created"]["post"] update: "x-codeSamples": - "lang": "go" "label": "_endpointproduct_created_post" - "source": "package main\n\nimport(\n\t\"context\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/types\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New()\n\n res, err := s.EndpointproductCreatedPost(ctx, components.WebhookProductCreatedPayload{\n Data: components.Product{\n CreatedAt: types.MustTimeFromString(\"2022-03-27T06:36:20.130Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-04-21T12:05:16.637Z\"),\n ID: \"\",\n Name: \"\",\n Description: polargo.String(\"into horst metal grimy clinch big grounded industrialize\"),\n IsRecurring: true,\n IsArchived: true,\n OrganizationID: \"\",\n Metadata: map[string]components.ProductMetadata{\n\n },\n Prices: []components.ProductPrice{\n components.CreateProductPriceProductPriceOneTime(\n components.CreateProductPriceOneTimeProductPriceOneTimeCustom(\n components.ProductPriceOneTimeCustom{\n CreatedAt: types.MustTimeFromString(\"2022-02-03T03:46:28.818Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-03-12T22:34:53.042Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n PriceCurrency: \"\",\n MinimumAmount: polargo.Int64(249521),\n MaximumAmount: polargo.Int64(723329),\n PresetAmount: polargo.Int64(675965),\n },\n ),\n ),\n components.CreateProductPriceProductPriceRecurring(\n components.CreateProductPriceRecurringProductPriceRecurringCustom(\n components.ProductPriceRecurringCustom{\n CreatedAt: types.MustTimeFromString(\"2024-12-18T17:38:35.838Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-09-22T07:48:34.028Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n PriceCurrency: \"\",\n MinimumAmount: polargo.Int64(399325),\n MaximumAmount: polargo.Int64(862650),\n PresetAmount: polargo.Int64(434249),\n RecurringInterval: components.SubscriptionRecurringIntervalYear,\n },\n ),\n ),\n },\n Benefits: []components.Benefit{\n components.CreateBenefitBenefitGitHubRepository(\n components.BenefitGitHubRepository{\n CreatedAt: types.MustTimeFromString(\"2023-09-30T01:35:30.554Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-04-07T02:06:02.757Z\"),\n ID: \"\",\n Description: \"phooey coarse mmm venture every\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitGitHubRepositoryProperties{\n RepositoryOwner: \"polarsource\",\n RepositoryName: \"private_repo\",\n Permission: components.PermissionAdmin,\n },\n },\n ),\n components.CreateBenefitBenefitLicenseKeys(\n components.BenefitLicenseKeys{\n CreatedAt: types.MustTimeFromString(\"2022-06-21T15:29:47.140Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-08-03T05:27:40.759Z\"),\n ID: \"\",\n Description: \"whoever provided besides whether\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitLicenseKeysProperties{\n Prefix: polargo.String(\"\"),\n Expires: &components.BenefitLicenseKeyExpirationProperties{\n TTL: 192106,\n Timeframe: components.TimeframeMonth,\n },\n Activations: &components.BenefitLicenseKeyActivationProperties{\n Limit: 584727,\n EnableCustomerAdmin: false,\n },\n LimitUsage: polargo.Int64(720229),\n },\n },\n ),\n components.CreateBenefitBenefitDownloadables(\n components.BenefitDownloadables{\n CreatedAt: types.MustTimeFromString(\"2022-09-25T06:48:53.071Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-06-15T10:56:39.139Z\"),\n ID: \"\",\n Description: \"faraway fibre distorted seagull final accidentally joyously responsibility after\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitDownloadablesProperties{\n Archived: map[string]bool{\n \"key\": false,\n },\n Files: []string{\n \"\",\n },\n },\n },\n ),\n },\n Medias: []components.ProductMediaFileRead{\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/Users\",\n MimeType: \"\",\n Size: 692895,\n StorageVersion: polargo.String(\"\"),\n ChecksumEtag: polargo.String(\"\"),\n ChecksumSha256Base64: polargo.String(\"\"),\n ChecksumSha256Hex: polargo.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2022-02-28T01:03:14.537Z\"),\n Version: polargo.String(\"\"),\n IsUploaded: true,\n CreatedAt: types.MustTimeFromString(\"2022-06-03T00:39:20.038Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://monstrous-cop-out.net\",\n },\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/var/mail\",\n MimeType: \"\",\n Size: 843323,\n StorageVersion: polargo.String(\"\"),\n ChecksumEtag: polargo.String(\"\"),\n ChecksumSha256Base64: polargo.String(\"\"),\n ChecksumSha256Hex: polargo.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2022-04-23T21:31:25.476Z\"),\n Version: polargo.String(\"\"),\n IsUploaded: true,\n CreatedAt: types.MustTimeFromString(\"2022-07-19T01:29:35.587Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://well-made-farm.com\",\n },\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/root\",\n MimeType: \"\",\n Size: 849549,\n StorageVersion: polargo.String(\"\"),\n ChecksumEtag: polargo.String(\"\"),\n ChecksumSha256Base64: polargo.String(\"\"),\n ChecksumSha256Hex: polargo.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2022-07-30T13:09:33.963Z\"),\n Version: polargo.String(\"\"),\n IsUploaded: false,\n CreatedAt: types.MustTimeFromString(\"2023-10-03T20:39:40.444Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://simplistic-devastation.com\",\n },\n },\n AttachedCustomFields: []components.AttachedCustomField{\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldDate(\n components.CustomFieldDate{\n CreatedAt: types.MustTimeFromString(\"2022-08-25T09:54:34.570Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-03-23T10:22:09.584Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldDateMetadata{\n \"key\": components.CreateCustomFieldDateMetadataBoolean(\n false,\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldDateProperties{},\n },\n ),\n Order: 317196,\n Required: false,\n },\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldNumber(\n components.CustomFieldNumber{\n CreatedAt: types.MustTimeFromString(\"2024-02-13T16:46:51.894Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-02-20T05:40:24.943Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldNumberMetadata{\n \"key\": components.CreateCustomFieldNumberMetadataBoolean(\n false,\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldNumberProperties{},\n },\n ),\n Order: 492053,\n Required: true,\n },\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldCheckbox(\n components.CustomFieldCheckbox{\n CreatedAt: types.MustTimeFromString(\"2024-10-21T08:02:08.197Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-02-07T01:56:51.342Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldCheckboxMetadata{\n \"key\": components.CreateCustomFieldCheckboxMetadataStr(\n \"\",\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldCheckboxProperties{},\n },\n ),\n Order: 17631,\n Required: true,\n },\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"polar\"\n\t\"polar/types\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New()\n\n res, err := s.EndpointproductCreatedPost(ctx, components.WebhookProductCreatedPayload{\n Data: components.Product{\n CreatedAt: types.MustTimeFromString(\"2022-03-27T06:36:20.130Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-04-21T12:05:16.637Z\"),\n ID: \"\",\n Name: \"\",\n Description: polar.String(\"into horst metal grimy clinch big grounded industrialize\"),\n IsRecurring: true,\n IsArchived: true,\n OrganizationID: \"\",\n Metadata: map[string]components.ProductMetadata{\n\n },\n Prices: []components.ProductPrice{\n components.CreateProductPriceProductPriceOneTime(\n components.CreateProductPriceOneTimeProductPriceOneTimeCustom(\n components.ProductPriceOneTimeCustom{\n CreatedAt: types.MustTimeFromString(\"2022-02-03T03:46:28.818Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-03-12T22:34:53.042Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n PriceCurrency: \"\",\n MinimumAmount: polar.Int64(249521),\n MaximumAmount: polar.Int64(723329),\n PresetAmount: polar.Int64(675965),\n },\n ),\n ),\n components.CreateProductPriceProductPriceRecurring(\n components.CreateProductPriceRecurringProductPriceRecurringCustom(\n components.ProductPriceRecurringCustom{\n CreatedAt: types.MustTimeFromString(\"2024-12-18T17:38:35.838Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-09-22T07:48:34.028Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n PriceCurrency: \"\",\n MinimumAmount: polar.Int64(399325),\n MaximumAmount: polar.Int64(862650),\n PresetAmount: polar.Int64(434249),\n RecurringInterval: components.SubscriptionRecurringIntervalYear,\n },\n ),\n ),\n },\n Benefits: []components.Benefit{\n components.CreateBenefitBenefitGitHubRepository(\n components.BenefitGitHubRepository{\n CreatedAt: types.MustTimeFromString(\"2023-09-30T01:35:30.554Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-04-07T02:06:02.757Z\"),\n ID: \"\",\n Description: \"phooey coarse mmm venture every\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitGitHubRepositoryProperties{\n RepositoryOwner: \"polarsource\",\n RepositoryName: \"private_repo\",\n Permission: components.PermissionAdmin,\n },\n },\n ),\n components.CreateBenefitBenefitLicenseKeys(\n components.BenefitLicenseKeys{\n CreatedAt: types.MustTimeFromString(\"2022-06-21T15:29:47.140Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-08-03T05:27:40.759Z\"),\n ID: \"\",\n Description: \"whoever provided besides whether\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitLicenseKeysProperties{\n Prefix: polar.String(\"\"),\n Expires: &components.BenefitLicenseKeyExpirationProperties{\n TTL: 192106,\n Timeframe: components.TimeframeMonth,\n },\n Activations: &components.BenefitLicenseKeyActivationProperties{\n Limit: 584727,\n EnableCustomerAdmin: false,\n },\n LimitUsage: polar.Int64(720229),\n },\n },\n ),\n components.CreateBenefitBenefitDownloadables(\n components.BenefitDownloadables{\n CreatedAt: types.MustTimeFromString(\"2022-09-25T06:48:53.071Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-06-15T10:56:39.139Z\"),\n ID: \"\",\n Description: \"faraway fibre distorted seagull final accidentally joyously responsibility after\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitDownloadablesProperties{\n Archived: map[string]bool{\n \"key\": false,\n },\n Files: []string{\n \"\",\n },\n },\n },\n ),\n },\n Medias: []components.ProductMediaFileRead{\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/Users\",\n MimeType: \"\",\n Size: 692895,\n StorageVersion: polar.String(\"\"),\n ChecksumEtag: polar.String(\"\"),\n ChecksumSha256Base64: polar.String(\"\"),\n ChecksumSha256Hex: polar.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2022-02-28T01:03:14.537Z\"),\n Version: polar.String(\"\"),\n IsUploaded: true,\n CreatedAt: types.MustTimeFromString(\"2022-06-03T00:39:20.038Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://monstrous-cop-out.net\",\n },\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/var/mail\",\n MimeType: \"\",\n Size: 843323,\n StorageVersion: polar.String(\"\"),\n ChecksumEtag: polar.String(\"\"),\n ChecksumSha256Base64: polar.String(\"\"),\n ChecksumSha256Hex: polar.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2022-04-23T21:31:25.476Z\"),\n Version: polar.String(\"\"),\n IsUploaded: true,\n CreatedAt: types.MustTimeFromString(\"2022-07-19T01:29:35.587Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://well-made-farm.com\",\n },\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/root\",\n MimeType: \"\",\n Size: 849549,\n StorageVersion: polar.String(\"\"),\n ChecksumEtag: polar.String(\"\"),\n ChecksumSha256Base64: polar.String(\"\"),\n ChecksumSha256Hex: polar.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2022-07-30T13:09:33.963Z\"),\n Version: polar.String(\"\"),\n IsUploaded: false,\n CreatedAt: types.MustTimeFromString(\"2023-10-03T20:39:40.444Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://simplistic-devastation.com\",\n },\n },\n AttachedCustomFields: []components.AttachedCustomField{\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldDate(\n components.CustomFieldDate{\n CreatedAt: types.MustTimeFromString(\"2022-08-25T09:54:34.570Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-03-23T10:22:09.584Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldDateMetadata{\n \"key\": components.CreateCustomFieldDateMetadataBoolean(\n false,\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldDateProperties{},\n },\n ),\n Order: 317196,\n Required: false,\n },\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldNumber(\n components.CustomFieldNumber{\n CreatedAt: types.MustTimeFromString(\"2024-02-13T16:46:51.894Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-02-20T05:40:24.943Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldNumberMetadata{\n \"key\": components.CreateCustomFieldNumberMetadataBoolean(\n false,\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldNumberProperties{},\n },\n ),\n Order: 492053,\n Required: true,\n },\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldCheckbox(\n components.CustomFieldCheckbox{\n CreatedAt: types.MustTimeFromString(\"2024-10-21T08:02:08.197Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-02-07T01:56:51.342Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldCheckboxMetadata{\n \"key\": components.CreateCustomFieldCheckboxMetadataStr(\n \"\",\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldCheckboxProperties{},\n },\n ),\n Order: 17631,\n Required: true,\n },\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" - target: $["paths"]["product.updated"]["post"] update: "x-codeSamples": - "lang": "go" "label": "_endpointproduct_updated_post" - "source": "package main\n\nimport(\n\t\"context\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/types\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New()\n\n res, err := s.EndpointproductUpdatedPost(ctx, components.WebhookProductUpdatedPayload{\n Data: components.Product{\n CreatedAt: types.MustTimeFromString(\"2023-06-26T03:46:32.479Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-06-04T01:47:33.158Z\"),\n ID: \"\",\n Name: \"\",\n Description: polargo.String(\"er ick birdcage\"),\n IsRecurring: true,\n IsArchived: false,\n OrganizationID: \"\",\n Metadata: map[string]components.ProductMetadata{\n\n },\n Prices: []components.ProductPrice{\n components.CreateProductPriceProductPriceRecurring(\n components.CreateProductPriceRecurringProductPriceRecurringFixed(\n components.ProductPriceRecurringFixed{\n CreatedAt: types.MustTimeFromString(\"2023-07-17T21:09:51.818Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-03-20T08:40:07.478Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n PriceCurrency: \"\",\n PriceAmount: 604318,\n RecurringInterval: components.SubscriptionRecurringIntervalMonth,\n },\n ),\n ),\n },\n Benefits: []components.Benefit{\n components.CreateBenefitBenefitDiscord(\n components.BenefitDiscord{\n CreatedAt: types.MustTimeFromString(\"2024-05-20T12:53:47.146Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-04-21T12:36:34.746Z\"),\n ID: \"\",\n Description: \"sometimes lest uselessly brr aftermath behind pfft unrealistic abseil\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitDiscordProperties{\n GuildID: \"\",\n RoleID: \"\",\n GuildToken: \"\",\n },\n },\n ),\n components.CreateBenefitBenefitDownloadables(\n components.BenefitDownloadables{\n CreatedAt: types.MustTimeFromString(\"2023-06-19T20:15:14.004Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-08-28T23:32:17.658Z\"),\n ID: \"\",\n Description: \"blindly after whoa charter\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitDownloadablesProperties{\n Archived: map[string]bool{\n \"key\": false,\n },\n Files: []string{\n \"\",\n },\n },\n },\n ),\n components.CreateBenefitBenefitDownloadables(\n components.BenefitDownloadables{\n CreatedAt: types.MustTimeFromString(\"2023-11-04T07:22:50.678Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-03-23T03:59:25.986Z\"),\n ID: \"\",\n Description: \"nor scratchy inasmuch shipper these range as notwithstanding\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitDownloadablesProperties{\n Archived: map[string]bool{\n \"key\": false,\n },\n Files: []string{\n \"\",\n },\n },\n },\n ),\n },\n Medias: []components.ProductMediaFileRead{\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/dev\",\n MimeType: \"\",\n Size: 37455,\n StorageVersion: polargo.String(\"\"),\n ChecksumEtag: polargo.String(\"\"),\n ChecksumSha256Base64: polargo.String(\"\"),\n ChecksumSha256Hex: polargo.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2024-09-15T21:42:22.500Z\"),\n Version: polargo.String(\"\"),\n IsUploaded: false,\n CreatedAt: types.MustTimeFromString(\"2024-06-18T16:17:48.946Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://unknown-lava.com\",\n },\n },\n AttachedCustomFields: []components.AttachedCustomField{\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldText(\n components.CustomFieldText{\n CreatedAt: types.MustTimeFromString(\"2024-12-02T04:10:31.923Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-06-06T15:01:23.581Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldTextMetadata{\n \"key\": components.CreateCustomFieldTextMetadataInteger(\n 767516,\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldTextProperties{},\n },\n ),\n Order: 19557,\n Required: true,\n },\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldCheckbox(\n components.CustomFieldCheckbox{\n CreatedAt: types.MustTimeFromString(\"2022-04-26T16:11:06.774Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-01-27T07:09:12.561Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldCheckboxMetadata{\n \"key\": components.CreateCustomFieldCheckboxMetadataStr(\n \"\",\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldCheckboxProperties{},\n },\n ),\n Order: 753420,\n Required: true,\n },\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldText(\n components.CustomFieldText{\n CreatedAt: types.MustTimeFromString(\"2023-03-22T07:09:29.044Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-12-31T13:16:31.036Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldTextMetadata{\n \"key\": components.CreateCustomFieldTextMetadataBoolean(\n false,\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldTextProperties{},\n },\n ),\n Order: 454407,\n Required: true,\n },\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"polar\"\n\t\"polar/types\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New()\n\n res, err := s.EndpointproductUpdatedPost(ctx, components.WebhookProductUpdatedPayload{\n Data: components.Product{\n CreatedAt: types.MustTimeFromString(\"2023-06-26T03:46:32.479Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-06-04T01:47:33.158Z\"),\n ID: \"\",\n Name: \"\",\n Description: polar.String(\"er ick birdcage\"),\n IsRecurring: true,\n IsArchived: false,\n OrganizationID: \"\",\n Metadata: map[string]components.ProductMetadata{\n\n },\n Prices: []components.ProductPrice{\n components.CreateProductPriceProductPriceRecurring(\n components.CreateProductPriceRecurringProductPriceRecurringFixed(\n components.ProductPriceRecurringFixed{\n CreatedAt: types.MustTimeFromString(\"2023-07-17T21:09:51.818Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-03-20T08:40:07.478Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n PriceCurrency: \"\",\n PriceAmount: 604318,\n RecurringInterval: components.SubscriptionRecurringIntervalMonth,\n },\n ),\n ),\n },\n Benefits: []components.Benefit{\n components.CreateBenefitBenefitDiscord(\n components.BenefitDiscord{\n CreatedAt: types.MustTimeFromString(\"2024-05-20T12:53:47.146Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-04-21T12:36:34.746Z\"),\n ID: \"\",\n Description: \"sometimes lest uselessly brr aftermath behind pfft unrealistic abseil\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitDiscordProperties{\n GuildID: \"\",\n RoleID: \"\",\n GuildToken: \"\",\n },\n },\n ),\n components.CreateBenefitBenefitDownloadables(\n components.BenefitDownloadables{\n CreatedAt: types.MustTimeFromString(\"2023-06-19T20:15:14.004Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-08-28T23:32:17.658Z\"),\n ID: \"\",\n Description: \"blindly after whoa charter\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitDownloadablesProperties{\n Archived: map[string]bool{\n \"key\": false,\n },\n Files: []string{\n \"\",\n },\n },\n },\n ),\n components.CreateBenefitBenefitDownloadables(\n components.BenefitDownloadables{\n CreatedAt: types.MustTimeFromString(\"2023-11-04T07:22:50.678Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-03-23T03:59:25.986Z\"),\n ID: \"\",\n Description: \"nor scratchy inasmuch shipper these range as notwithstanding\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitDownloadablesProperties{\n Archived: map[string]bool{\n \"key\": false,\n },\n Files: []string{\n \"\",\n },\n },\n },\n ),\n },\n Medias: []components.ProductMediaFileRead{\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/dev\",\n MimeType: \"\",\n Size: 37455,\n StorageVersion: polar.String(\"\"),\n ChecksumEtag: polar.String(\"\"),\n ChecksumSha256Base64: polar.String(\"\"),\n ChecksumSha256Hex: polar.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2024-09-15T21:42:22.500Z\"),\n Version: polar.String(\"\"),\n IsUploaded: false,\n CreatedAt: types.MustTimeFromString(\"2024-06-18T16:17:48.946Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://unknown-lava.com\",\n },\n },\n AttachedCustomFields: []components.AttachedCustomField{\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldText(\n components.CustomFieldText{\n CreatedAt: types.MustTimeFromString(\"2024-12-02T04:10:31.923Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-06-06T15:01:23.581Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldTextMetadata{\n \"key\": components.CreateCustomFieldTextMetadataInteger(\n 767516,\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldTextProperties{},\n },\n ),\n Order: 19557,\n Required: true,\n },\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldCheckbox(\n components.CustomFieldCheckbox{\n CreatedAt: types.MustTimeFromString(\"2022-04-26T16:11:06.774Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-01-27T07:09:12.561Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldCheckboxMetadata{\n \"key\": components.CreateCustomFieldCheckboxMetadataStr(\n \"\",\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldCheckboxProperties{},\n },\n ),\n Order: 753420,\n Required: true,\n },\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldText(\n components.CustomFieldText{\n CreatedAt: types.MustTimeFromString(\"2023-03-22T07:09:29.044Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-12-31T13:16:31.036Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldTextMetadata{\n \"key\": components.CreateCustomFieldTextMetadataBoolean(\n false,\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldTextProperties{},\n },\n ),\n Order: 454407,\n Required: true,\n },\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" - target: $["paths"]["subscription.active"]["post"] update: "x-codeSamples": - "lang": "go" "label": "_endpointsubscription_active_post" - "source": "package main\n\nimport(\n\t\"context\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/types\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New()\n\n res, err := s.EndpointsubscriptionActivePost(ctx, components.WebhookSubscriptionActivePayload{\n Data: components.Subscription{\n CreatedAt: types.MustTimeFromString(\"2022-09-17T11:03:44.679Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-07-24T20:02:17.426Z\"),\n ID: \"\",\n Amount: polargo.Int64(116760),\n Currency: polargo.String(\"Quetzal\"),\n RecurringInterval: components.SubscriptionRecurringIntervalMonth,\n Status: components.SubscriptionStatusIncomplete,\n CurrentPeriodStart: types.MustTimeFromString(\"2022-08-25T00:14:50.252Z\"),\n CurrentPeriodEnd: types.MustNewTimeFromString(\"2022-12-10T18:25:01.577Z\"),\n CancelAtPeriodEnd: false,\n StartedAt: types.MustNewTimeFromString(\"2023-07-06T14:07:23.099Z\"),\n EndedAt: types.MustNewTimeFromString(\"2023-07-01T08:12:48.355Z\"),\n CustomerID: \"\",\n ProductID: \"\",\n PriceID: \"\",\n DiscountID: polargo.String(\"\"),\n CheckoutID: polargo.String(\"\"),\n Metadata: map[string]components.Metadata{\n\n },\n Customer: components.SubscriptionCustomer{\n CreatedAt: types.MustTimeFromString(\"2024-10-30T02:51:06.576Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-06-21T14:46:16.535Z\"),\n ID: \"\",\n Metadata: map[string]components.SubscriptionCustomerMetadata{\n \"key\": components.CreateSubscriptionCustomerMetadataBoolean(\n true,\n ),\n \"key1\": components.CreateSubscriptionCustomerMetadataStr(\n \"\",\n ),\n \"key2\": components.CreateSubscriptionCustomerMetadataInteger(\n 615212,\n ),\n },\n Email: \"Sincere42@gmail.com\",\n EmailVerified: false,\n Name: polargo.String(\"\"),\n BillingAddress: &components.Address{\n Country: \"Tanzania\",\n },\n TaxID: []components.TaxID{\n components.CreateTaxIDStr(\n \"\",\n ),\n components.CreateTaxIDStr(\n \"\",\n ),\n components.CreateTaxIDStr(\n \"mx_rfc\",\n ),\n },\n OrganizationID: \"\",\n AvatarURL: \"https://negative-tentacle.com\",\n },\n UserID: \"\",\n User: components.SubscriptionUser{\n ID: \"\",\n Email: \"Zoey_Bahringer88@hotmail.com\",\n PublicName: \"\",\n },\n Product: components.Product{\n CreatedAt: types.MustTimeFromString(\"2024-03-05T21:40:58.905Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-06-03T13:50:25.005Z\"),\n ID: \"\",\n Name: \"\",\n Description: polargo.String(\"synthesise beautifully until below barring concerning\"),\n IsRecurring: true,\n IsArchived: false,\n OrganizationID: \"\",\n Metadata: map[string]components.ProductMetadata{\n \"key\": components.CreateProductMetadataStr(\n \"\",\n ),\n \"key1\": components.CreateProductMetadataInteger(\n 893296,\n ),\n },\n Prices: []components.ProductPrice{\n components.CreateProductPriceProductPriceRecurring(\n components.CreateProductPriceRecurringProductPriceRecurringCustom(\n components.ProductPriceRecurringCustom{\n CreatedAt: types.MustTimeFromString(\"2022-10-02T10:57:52.944Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-08-22T22:26:19.404Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n PriceCurrency: \"\",\n MinimumAmount: polargo.Int64(569952),\n MaximumAmount: polargo.Int64(620296),\n PresetAmount: polargo.Int64(975064),\n RecurringInterval: components.SubscriptionRecurringIntervalYear,\n },\n ),\n ),\n },\n Benefits: []components.Benefit{\n components.CreateBenefitBenefitCustom(\n components.BenefitCustom{\n CreatedAt: types.MustTimeFromString(\"2022-08-07T05:36:52.623Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-07-24T09:11:52.906Z\"),\n ID: \"\",\n Description: \"redevelop misguided following gerbil plastic\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitCustomProperties{\n Note: polargo.String(\"\"),\n },\n IsTaxApplicable: false,\n },\n ),\n components.CreateBenefitBenefitDiscord(\n components.BenefitDiscord{\n CreatedAt: types.MustTimeFromString(\"2023-08-18T12:26:22.550Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-12-24T15:06:38.460Z\"),\n ID: \"\",\n Description: \"enchanting nervously eek\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitDiscordProperties{\n GuildID: \"\",\n RoleID: \"\",\n GuildToken: \"\",\n },\n },\n ),\n },\n Medias: []components.ProductMediaFileRead{\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/media\",\n MimeType: \"\",\n Size: 931655,\n StorageVersion: polargo.String(\"\"),\n ChecksumEtag: polargo.String(\"\"),\n ChecksumSha256Base64: polargo.String(\"\"),\n ChecksumSha256Hex: polargo.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2022-06-07T17:40:48.757Z\"),\n Version: polargo.String(\"\"),\n IsUploaded: false,\n CreatedAt: types.MustTimeFromString(\"2023-07-28T18:04:02.928Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://remorseful-hamburger.name\",\n },\n },\n AttachedCustomFields: []components.AttachedCustomField{\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldSelect(\n components.CustomFieldSelect{\n CreatedAt: types.MustTimeFromString(\"2022-02-14T19:12:16.238Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-08-06T20:32:14.443Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldSelectMetadata{\n \"key\": components.CreateCustomFieldSelectMetadataStr(\n \"\",\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldSelectProperties{\n Options: []components.CustomFieldSelectOption{\n components.CustomFieldSelectOption{\n Value: \"\",\n Label: \"\",\n },\n },\n },\n },\n ),\n Order: 769742,\n Required: false,\n },\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldNumber(\n components.CustomFieldNumber{\n CreatedAt: types.MustTimeFromString(\"2023-02-02T00:30:57.495Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-08-16T16:58:49.210Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldNumberMetadata{\n \"key\": components.CreateCustomFieldNumberMetadataStr(\n \"\",\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldNumberProperties{},\n },\n ),\n Order: 61975,\n Required: false,\n },\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldDate(\n components.CustomFieldDate{\n CreatedAt: types.MustTimeFromString(\"2022-10-26T16:01:57.187Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-09-24T14:23:14.148Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldDateMetadata{\n \"key\": components.CreateCustomFieldDateMetadataInteger(\n 708601,\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldDateProperties{},\n },\n ),\n Order: 531803,\n Required: true,\n },\n },\n },\n Price: components.CreateProductPriceRecurringProductPriceRecurringFree(\n components.ProductPriceRecurringFree{\n CreatedAt: types.MustTimeFromString(\"2023-07-23T07:33:56.099Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-03-02T15:40:26.218Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n RecurringInterval: components.SubscriptionRecurringIntervalYear,\n },\n ),\n Discount: components.CreateSubscriptionDiscountDiscountPercentageRepeatDurationBase(\n components.DiscountPercentageRepeatDurationBase{\n Duration: components.DiscountDurationForever,\n DurationInMonths: 85516,\n Type: components.DiscountTypePercentage,\n BasisPoints: 701778,\n CreatedAt: types.MustTimeFromString(\"2024-01-30T01:41:22.902Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-03-28T04:30:51.396Z\"),\n ID: \"\",\n Metadata: map[string]components.DiscountPercentageRepeatDurationBaseMetadata{\n \"key\": components.CreateDiscountPercentageRepeatDurationBaseMetadataInteger(\n 670175,\n ),\n },\n Name: \"\",\n Code: polargo.String(\"\"),\n StartsAt: types.MustNewTimeFromString(\"2024-06-15T23:59:22.430Z\"),\n EndsAt: types.MustNewTimeFromString(\"2024-10-04T16:09:53.872Z\"),\n MaxRedemptions: polargo.Int64(831694),\n RedemptionsCount: 886073,\n OrganizationID: \"\",\n },\n ),\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"polar\"\n\t\"polar/types\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New()\n\n res, err := s.EndpointsubscriptionActivePost(ctx, components.WebhookSubscriptionActivePayload{\n Data: components.Subscription{\n CreatedAt: types.MustTimeFromString(\"2022-09-17T11:03:44.679Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-07-24T20:02:17.426Z\"),\n ID: \"\",\n Amount: polar.Int64(116760),\n Currency: polar.String(\"Quetzal\"),\n RecurringInterval: components.SubscriptionRecurringIntervalMonth,\n Status: components.SubscriptionStatusIncomplete,\n CurrentPeriodStart: types.MustTimeFromString(\"2022-08-25T00:14:50.252Z\"),\n CurrentPeriodEnd: types.MustNewTimeFromString(\"2022-12-10T18:25:01.577Z\"),\n CancelAtPeriodEnd: false,\n StartedAt: types.MustNewTimeFromString(\"2023-07-06T14:07:23.099Z\"),\n EndedAt: types.MustNewTimeFromString(\"2023-07-01T08:12:48.355Z\"),\n CustomerID: \"\",\n ProductID: \"\",\n PriceID: \"\",\n DiscountID: polar.String(\"\"),\n CheckoutID: polar.String(\"\"),\n Metadata: map[string]components.Metadata{\n\n },\n Customer: components.SubscriptionCustomer{\n CreatedAt: types.MustTimeFromString(\"2024-10-30T02:51:06.576Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-06-21T14:46:16.535Z\"),\n ID: \"\",\n Metadata: map[string]components.SubscriptionCustomerMetadata{\n \"key\": components.CreateSubscriptionCustomerMetadataBoolean(\n true,\n ),\n \"key1\": components.CreateSubscriptionCustomerMetadataStr(\n \"\",\n ),\n \"key2\": components.CreateSubscriptionCustomerMetadataInteger(\n 615212,\n ),\n },\n Email: \"Sincere42@gmail.com\",\n EmailVerified: false,\n Name: polar.String(\"\"),\n BillingAddress: &components.Address{\n Country: \"Tanzania\",\n },\n TaxID: []components.TaxID{\n components.CreateTaxIDStr(\n \"\",\n ),\n components.CreateTaxIDStr(\n \"\",\n ),\n components.CreateTaxIDStr(\n \"mx_rfc\",\n ),\n },\n OrganizationID: \"\",\n AvatarURL: \"https://negative-tentacle.com\",\n },\n UserID: \"\",\n User: components.SubscriptionUser{\n ID: \"\",\n Email: \"Zoey_Bahringer88@hotmail.com\",\n PublicName: \"\",\n },\n Product: components.Product{\n CreatedAt: types.MustTimeFromString(\"2024-03-05T21:40:58.905Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-06-03T13:50:25.005Z\"),\n ID: \"\",\n Name: \"\",\n Description: polar.String(\"synthesise beautifully until below barring concerning\"),\n IsRecurring: true,\n IsArchived: false,\n OrganizationID: \"\",\n Metadata: map[string]components.ProductMetadata{\n \"key\": components.CreateProductMetadataStr(\n \"\",\n ),\n \"key1\": components.CreateProductMetadataInteger(\n 893296,\n ),\n },\n Prices: []components.ProductPrice{\n components.CreateProductPriceProductPriceRecurring(\n components.CreateProductPriceRecurringProductPriceRecurringCustom(\n components.ProductPriceRecurringCustom{\n CreatedAt: types.MustTimeFromString(\"2022-10-02T10:57:52.944Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-08-22T22:26:19.404Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n PriceCurrency: \"\",\n MinimumAmount: polar.Int64(569952),\n MaximumAmount: polar.Int64(620296),\n PresetAmount: polar.Int64(975064),\n RecurringInterval: components.SubscriptionRecurringIntervalYear,\n },\n ),\n ),\n },\n Benefits: []components.Benefit{\n components.CreateBenefitBenefitCustom(\n components.BenefitCustom{\n CreatedAt: types.MustTimeFromString(\"2022-08-07T05:36:52.623Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-07-24T09:11:52.906Z\"),\n ID: \"\",\n Description: \"redevelop misguided following gerbil plastic\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitCustomProperties{\n Note: polar.String(\"\"),\n },\n IsTaxApplicable: false,\n },\n ),\n components.CreateBenefitBenefitDiscord(\n components.BenefitDiscord{\n CreatedAt: types.MustTimeFromString(\"2023-08-18T12:26:22.550Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-12-24T15:06:38.460Z\"),\n ID: \"\",\n Description: \"enchanting nervously eek\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitDiscordProperties{\n GuildID: \"\",\n RoleID: \"\",\n GuildToken: \"\",\n },\n },\n ),\n },\n Medias: []components.ProductMediaFileRead{\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/media\",\n MimeType: \"\",\n Size: 931655,\n StorageVersion: polar.String(\"\"),\n ChecksumEtag: polar.String(\"\"),\n ChecksumSha256Base64: polar.String(\"\"),\n ChecksumSha256Hex: polar.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2022-06-07T17:40:48.757Z\"),\n Version: polar.String(\"\"),\n IsUploaded: false,\n CreatedAt: types.MustTimeFromString(\"2023-07-28T18:04:02.928Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://remorseful-hamburger.name\",\n },\n },\n AttachedCustomFields: []components.AttachedCustomField{\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldSelect(\n components.CustomFieldSelect{\n CreatedAt: types.MustTimeFromString(\"2022-02-14T19:12:16.238Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-08-06T20:32:14.443Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldSelectMetadata{\n \"key\": components.CreateCustomFieldSelectMetadataStr(\n \"\",\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldSelectProperties{\n Options: []components.CustomFieldSelectOption{\n components.CustomFieldSelectOption{\n Value: \"\",\n Label: \"\",\n },\n },\n },\n },\n ),\n Order: 769742,\n Required: false,\n },\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldNumber(\n components.CustomFieldNumber{\n CreatedAt: types.MustTimeFromString(\"2023-02-02T00:30:57.495Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-08-16T16:58:49.210Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldNumberMetadata{\n \"key\": components.CreateCustomFieldNumberMetadataStr(\n \"\",\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldNumberProperties{},\n },\n ),\n Order: 61975,\n Required: false,\n },\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldDate(\n components.CustomFieldDate{\n CreatedAt: types.MustTimeFromString(\"2022-10-26T16:01:57.187Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-09-24T14:23:14.148Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldDateMetadata{\n \"key\": components.CreateCustomFieldDateMetadataInteger(\n 708601,\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldDateProperties{},\n },\n ),\n Order: 531803,\n Required: true,\n },\n },\n },\n Price: components.CreateProductPriceRecurringProductPriceRecurringFree(\n components.ProductPriceRecurringFree{\n CreatedAt: types.MustTimeFromString(\"2023-07-23T07:33:56.099Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-03-02T15:40:26.218Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n RecurringInterval: components.SubscriptionRecurringIntervalYear,\n },\n ),\n Discount: components.CreateSubscriptionDiscountDiscountPercentageRepeatDurationBase(\n components.DiscountPercentageRepeatDurationBase{\n Duration: components.DiscountDurationForever,\n DurationInMonths: 85516,\n Type: components.DiscountTypePercentage,\n BasisPoints: 701778,\n CreatedAt: types.MustTimeFromString(\"2024-01-30T01:41:22.902Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-03-28T04:30:51.396Z\"),\n ID: \"\",\n Metadata: map[string]components.DiscountPercentageRepeatDurationBaseMetadata{\n \"key\": components.CreateDiscountPercentageRepeatDurationBaseMetadataInteger(\n 670175,\n ),\n },\n Name: \"\",\n Code: polar.String(\"\"),\n StartsAt: types.MustNewTimeFromString(\"2024-06-15T23:59:22.430Z\"),\n EndsAt: types.MustNewTimeFromString(\"2024-10-04T16:09:53.872Z\"),\n MaxRedemptions: polar.Int64(831694),\n RedemptionsCount: 886073,\n OrganizationID: \"\",\n },\n ),\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" - target: $["paths"]["subscription.canceled"]["post"] update: "x-codeSamples": - "lang": "go" "label": "_endpointsubscription_canceled_post" - "source": "package main\n\nimport(\n\t\"context\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/types\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New()\n\n res, err := s.EndpointsubscriptionCanceledPost(ctx, components.WebhookSubscriptionCanceledPayload{\n Data: components.Subscription{\n CreatedAt: types.MustTimeFromString(\"2023-02-08T10:04:43.200Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-02-20T09:16:44.963Z\"),\n ID: \"\",\n Amount: polargo.Int64(384017),\n Currency: polargo.String(\"Nakfa\"),\n RecurringInterval: components.SubscriptionRecurringIntervalMonth,\n Status: components.SubscriptionStatusCanceled,\n CurrentPeriodStart: types.MustTimeFromString(\"2024-08-29T23:51:26.505Z\"),\n CurrentPeriodEnd: types.MustNewTimeFromString(\"2023-01-30T14:57:29.126Z\"),\n CancelAtPeriodEnd: false,\n StartedAt: types.MustNewTimeFromString(\"2022-05-31T10:57:35.559Z\"),\n EndedAt: types.MustNewTimeFromString(\"2023-11-01T08:13:37.012Z\"),\n CustomerID: \"\",\n ProductID: \"\",\n PriceID: \"\",\n DiscountID: polargo.String(\"\"),\n CheckoutID: polargo.String(\"\"),\n Metadata: map[string]components.Metadata{\n\n },\n Customer: components.SubscriptionCustomer{\n CreatedAt: types.MustTimeFromString(\"2022-07-13T20:08:34.251Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-11-18T03:48:04.429Z\"),\n ID: \"\",\n Metadata: map[string]components.SubscriptionCustomerMetadata{\n \"key\": components.CreateSubscriptionCustomerMetadataStr(\n \"\",\n ),\n \"key1\": components.CreateSubscriptionCustomerMetadataStr(\n \"\",\n ),\n \"key2\": components.CreateSubscriptionCustomerMetadataInteger(\n 199269,\n ),\n },\n Email: \"Marcella_Gislason@gmail.com\",\n EmailVerified: false,\n Name: polargo.String(\"\"),\n BillingAddress: &components.Address{\n Country: \"Kuwait\",\n },\n TaxID: []components.TaxID{\n components.CreateTaxIDStr(\n \"\",\n ),\n components.CreateTaxIDStr(\n \"ca_qst\",\n ),\n components.CreateTaxIDStr(\n \"ua_vat\",\n ),\n },\n OrganizationID: \"\",\n AvatarURL: \"https://oily-juggernaut.com/\",\n },\n UserID: \"\",\n User: components.SubscriptionUser{\n ID: \"\",\n Email: \"Sherwood.Murphy2@yahoo.com\",\n PublicName: \"\",\n },\n Product: components.Product{\n CreatedAt: types.MustTimeFromString(\"2022-04-28T07:50:03.180Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-02-20T03:50:20.279Z\"),\n ID: \"\",\n Name: \"\",\n Description: polargo.String(\"tenant indeed when distorted before excluding claw stool aw self-reliant\"),\n IsRecurring: true,\n IsArchived: false,\n OrganizationID: \"\",\n Metadata: map[string]components.ProductMetadata{\n \"key\": components.CreateProductMetadataInteger(\n 231419,\n ),\n },\n Prices: []components.ProductPrice{\n components.CreateProductPriceProductPriceOneTime(\n components.CreateProductPriceOneTimeProductPriceOneTimeFree(\n components.ProductPriceOneTimeFree{\n CreatedAt: types.MustTimeFromString(\"2023-02-21T19:14:41.464Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-05-02T06:25:43.734Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n },\n ),\n ),\n },\n Benefits: []components.Benefit{\n components.CreateBenefitBenefitDownloadables(\n components.BenefitDownloadables{\n CreatedAt: types.MustTimeFromString(\"2024-04-12T18:57:51.082Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-02-02T11:25:35.223Z\"),\n ID: \"\",\n Description: \"bestride circa aw gum judgementally till upwardly pro urgently\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitDownloadablesProperties{\n Archived: map[string]bool{\n \"key\": false,\n },\n Files: []string{\n \"\",\n },\n },\n },\n ),\n },\n Medias: []components.ProductMediaFileRead{\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/usr/include\",\n MimeType: \"\",\n Size: 778001,\n StorageVersion: polargo.String(\"\"),\n ChecksumEtag: polargo.String(\"\"),\n ChecksumSha256Base64: polargo.String(\"\"),\n ChecksumSha256Hex: polargo.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2023-03-31T22:07:25.990Z\"),\n Version: polargo.String(\"\"),\n IsUploaded: false,\n CreatedAt: types.MustTimeFromString(\"2024-09-17T20:00:26.644Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://dim-tail.org\",\n },\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/etc/namedb\",\n MimeType: \"\",\n Size: 797228,\n StorageVersion: polargo.String(\"\"),\n ChecksumEtag: polargo.String(\"\"),\n ChecksumSha256Base64: polargo.String(\"\"),\n ChecksumSha256Hex: polargo.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2022-12-03T23:14:09.199Z\"),\n Version: polargo.String(\"\"),\n IsUploaded: true,\n CreatedAt: types.MustTimeFromString(\"2024-10-11T05:55:27.601Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://tragic-castanet.biz/\",\n },\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/private/tmp\",\n MimeType: \"\",\n Size: 547184,\n StorageVersion: polargo.String(\"\"),\n ChecksumEtag: polargo.String(\"\"),\n ChecksumSha256Base64: polargo.String(\"\"),\n ChecksumSha256Hex: polargo.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2024-08-24T04:18:58.722Z\"),\n Version: polargo.String(\"\"),\n IsUploaded: true,\n CreatedAt: types.MustTimeFromString(\"2023-07-31T11:34:39.128Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://cumbersome-forage.biz\",\n },\n },\n AttachedCustomFields: []components.AttachedCustomField{\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldText(\n components.CustomFieldText{\n CreatedAt: types.MustTimeFromString(\"2022-06-03T19:12:20.362Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-05-23T18:16:04.701Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldTextMetadata{\n \"key\": components.CreateCustomFieldTextMetadataStr(\n \"\",\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldTextProperties{},\n },\n ),\n Order: 790486,\n Required: true,\n },\n },\n },\n Price: components.CreateProductPriceRecurringProductPriceRecurringCustom(\n components.ProductPriceRecurringCustom{\n CreatedAt: types.MustTimeFromString(\"2024-10-11T05:55:27.601Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-10-27T13:26:08.325Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n PriceCurrency: \"\",\n MinimumAmount: polargo.Int64(863460),\n MaximumAmount: polargo.Int64(125035),\n PresetAmount: polargo.Int64(255928),\n RecurringInterval: components.SubscriptionRecurringIntervalMonth,\n },\n ),\n Discount: components.CreateSubscriptionDiscountDiscountPercentageOnceForeverDurationBase(\n components.DiscountPercentageOnceForeverDurationBase{\n Duration: components.DiscountDurationRepeating,\n Type: components.DiscountTypeFixed,\n BasisPoints: 525988,\n CreatedAt: types.MustTimeFromString(\"2024-07-07T08:51:50.154Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-06-23T12:56:40.348Z\"),\n ID: \"\",\n Metadata: map[string]components.DiscountPercentageOnceForeverDurationBaseMetadata{\n \"key\": components.CreateDiscountPercentageOnceForeverDurationBaseMetadataInteger(\n 304953,\n ),\n },\n Name: \"\",\n Code: polargo.String(\"\"),\n StartsAt: types.MustNewTimeFromString(\"2023-01-01T16:52:51.122Z\"),\n EndsAt: types.MustNewTimeFromString(\"2022-02-17T00:38:28.053Z\"),\n MaxRedemptions: polargo.Int64(998602),\n RedemptionsCount: 553330,\n OrganizationID: \"\",\n },\n ),\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"polar\"\n\t\"polar/types\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New()\n\n res, err := s.EndpointsubscriptionCanceledPost(ctx, components.WebhookSubscriptionCanceledPayload{\n Data: components.Subscription{\n CreatedAt: types.MustTimeFromString(\"2023-02-08T10:04:43.200Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-02-20T09:16:44.963Z\"),\n ID: \"\",\n Amount: polar.Int64(384017),\n Currency: polar.String(\"Nakfa\"),\n RecurringInterval: components.SubscriptionRecurringIntervalMonth,\n Status: components.SubscriptionStatusCanceled,\n CurrentPeriodStart: types.MustTimeFromString(\"2024-08-29T23:51:26.505Z\"),\n CurrentPeriodEnd: types.MustNewTimeFromString(\"2023-01-30T14:57:29.126Z\"),\n CancelAtPeriodEnd: false,\n StartedAt: types.MustNewTimeFromString(\"2022-05-31T10:57:35.559Z\"),\n EndedAt: types.MustNewTimeFromString(\"2023-11-01T08:13:37.012Z\"),\n CustomerID: \"\",\n ProductID: \"\",\n PriceID: \"\",\n DiscountID: polar.String(\"\"),\n CheckoutID: polar.String(\"\"),\n Metadata: map[string]components.Metadata{\n\n },\n Customer: components.SubscriptionCustomer{\n CreatedAt: types.MustTimeFromString(\"2022-07-13T20:08:34.251Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-11-18T03:48:04.429Z\"),\n ID: \"\",\n Metadata: map[string]components.SubscriptionCustomerMetadata{\n \"key\": components.CreateSubscriptionCustomerMetadataStr(\n \"\",\n ),\n \"key1\": components.CreateSubscriptionCustomerMetadataStr(\n \"\",\n ),\n \"key2\": components.CreateSubscriptionCustomerMetadataInteger(\n 199269,\n ),\n },\n Email: \"Marcella_Gislason@gmail.com\",\n EmailVerified: false,\n Name: polar.String(\"\"),\n BillingAddress: &components.Address{\n Country: \"Kuwait\",\n },\n TaxID: []components.TaxID{\n components.CreateTaxIDStr(\n \"\",\n ),\n components.CreateTaxIDStr(\n \"ca_qst\",\n ),\n components.CreateTaxIDStr(\n \"ua_vat\",\n ),\n },\n OrganizationID: \"\",\n AvatarURL: \"https://oily-juggernaut.com/\",\n },\n UserID: \"\",\n User: components.SubscriptionUser{\n ID: \"\",\n Email: \"Sherwood.Murphy2@yahoo.com\",\n PublicName: \"\",\n },\n Product: components.Product{\n CreatedAt: types.MustTimeFromString(\"2022-04-28T07:50:03.180Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-02-20T03:50:20.279Z\"),\n ID: \"\",\n Name: \"\",\n Description: polar.String(\"tenant indeed when distorted before excluding claw stool aw self-reliant\"),\n IsRecurring: true,\n IsArchived: false,\n OrganizationID: \"\",\n Metadata: map[string]components.ProductMetadata{\n \"key\": components.CreateProductMetadataInteger(\n 231419,\n ),\n },\n Prices: []components.ProductPrice{\n components.CreateProductPriceProductPriceOneTime(\n components.CreateProductPriceOneTimeProductPriceOneTimeFree(\n components.ProductPriceOneTimeFree{\n CreatedAt: types.MustTimeFromString(\"2023-02-21T19:14:41.464Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-05-02T06:25:43.734Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n },\n ),\n ),\n },\n Benefits: []components.Benefit{\n components.CreateBenefitBenefitDownloadables(\n components.BenefitDownloadables{\n CreatedAt: types.MustTimeFromString(\"2024-04-12T18:57:51.082Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-02-02T11:25:35.223Z\"),\n ID: \"\",\n Description: \"bestride circa aw gum judgementally till upwardly pro urgently\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitDownloadablesProperties{\n Archived: map[string]bool{\n \"key\": false,\n },\n Files: []string{\n \"\",\n },\n },\n },\n ),\n },\n Medias: []components.ProductMediaFileRead{\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/usr/include\",\n MimeType: \"\",\n Size: 778001,\n StorageVersion: polar.String(\"\"),\n ChecksumEtag: polar.String(\"\"),\n ChecksumSha256Base64: polar.String(\"\"),\n ChecksumSha256Hex: polar.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2023-03-31T22:07:25.990Z\"),\n Version: polar.String(\"\"),\n IsUploaded: false,\n CreatedAt: types.MustTimeFromString(\"2024-09-17T20:00:26.644Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://dim-tail.org\",\n },\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/etc/namedb\",\n MimeType: \"\",\n Size: 797228,\n StorageVersion: polar.String(\"\"),\n ChecksumEtag: polar.String(\"\"),\n ChecksumSha256Base64: polar.String(\"\"),\n ChecksumSha256Hex: polar.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2022-12-03T23:14:09.199Z\"),\n Version: polar.String(\"\"),\n IsUploaded: true,\n CreatedAt: types.MustTimeFromString(\"2024-10-11T05:55:27.601Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://tragic-castanet.biz/\",\n },\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/private/tmp\",\n MimeType: \"\",\n Size: 547184,\n StorageVersion: polar.String(\"\"),\n ChecksumEtag: polar.String(\"\"),\n ChecksumSha256Base64: polar.String(\"\"),\n ChecksumSha256Hex: polar.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2024-08-24T04:18:58.722Z\"),\n Version: polar.String(\"\"),\n IsUploaded: true,\n CreatedAt: types.MustTimeFromString(\"2023-07-31T11:34:39.128Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://cumbersome-forage.biz\",\n },\n },\n AttachedCustomFields: []components.AttachedCustomField{\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldText(\n components.CustomFieldText{\n CreatedAt: types.MustTimeFromString(\"2022-06-03T19:12:20.362Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-05-23T18:16:04.701Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldTextMetadata{\n \"key\": components.CreateCustomFieldTextMetadataStr(\n \"\",\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldTextProperties{},\n },\n ),\n Order: 790486,\n Required: true,\n },\n },\n },\n Price: components.CreateProductPriceRecurringProductPriceRecurringCustom(\n components.ProductPriceRecurringCustom{\n CreatedAt: types.MustTimeFromString(\"2024-10-11T05:55:27.601Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-10-27T13:26:08.325Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n PriceCurrency: \"\",\n MinimumAmount: polar.Int64(863460),\n MaximumAmount: polar.Int64(125035),\n PresetAmount: polar.Int64(255928),\n RecurringInterval: components.SubscriptionRecurringIntervalMonth,\n },\n ),\n Discount: components.CreateSubscriptionDiscountDiscountPercentageOnceForeverDurationBase(\n components.DiscountPercentageOnceForeverDurationBase{\n Duration: components.DiscountDurationRepeating,\n Type: components.DiscountTypeFixed,\n BasisPoints: 525988,\n CreatedAt: types.MustTimeFromString(\"2024-07-07T08:51:50.154Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-06-23T12:56:40.348Z\"),\n ID: \"\",\n Metadata: map[string]components.DiscountPercentageOnceForeverDurationBaseMetadata{\n \"key\": components.CreateDiscountPercentageOnceForeverDurationBaseMetadataInteger(\n 304953,\n ),\n },\n Name: \"\",\n Code: polar.String(\"\"),\n StartsAt: types.MustNewTimeFromString(\"2023-01-01T16:52:51.122Z\"),\n EndsAt: types.MustNewTimeFromString(\"2022-02-17T00:38:28.053Z\"),\n MaxRedemptions: polar.Int64(998602),\n RedemptionsCount: 553330,\n OrganizationID: \"\",\n },\n ),\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" - target: $["paths"]["subscription.created"]["post"] update: "x-codeSamples": - "lang": "go" "label": "_endpointsubscription_created_post" - "source": "package main\n\nimport(\n\t\"context\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/types\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New()\n\n res, err := s.EndpointsubscriptionCreatedPost(ctx, components.WebhookSubscriptionCreatedPayload{\n Data: components.Subscription{\n CreatedAt: types.MustTimeFromString(\"2023-07-04T01:29:40.920Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-02-20T03:35:25.500Z\"),\n ID: \"\",\n Amount: polargo.Int64(78980),\n Currency: polargo.String(\"Dong\"),\n RecurringInterval: components.SubscriptionRecurringIntervalMonth,\n Status: components.SubscriptionStatusIncompleteExpired,\n CurrentPeriodStart: types.MustTimeFromString(\"2024-01-26T02:46:12.208Z\"),\n CurrentPeriodEnd: types.MustNewTimeFromString(\"2022-10-08T16:07:22.449Z\"),\n CancelAtPeriodEnd: false,\n StartedAt: types.MustNewTimeFromString(\"2024-10-17T20:21:29.819Z\"),\n EndedAt: types.MustNewTimeFromString(\"2022-02-26T17:52:17.099Z\"),\n CustomerID: \"\",\n ProductID: \"\",\n PriceID: \"\",\n DiscountID: polargo.String(\"\"),\n CheckoutID: polargo.String(\"\"),\n Metadata: map[string]components.Metadata{\n\n },\n Customer: components.SubscriptionCustomer{\n CreatedAt: types.MustTimeFromString(\"2022-09-06T09:33:34.348Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-05-17T19:46:56.602Z\"),\n ID: \"\",\n Metadata: map[string]components.SubscriptionCustomerMetadata{\n \"key\": components.CreateSubscriptionCustomerMetadataStr(\n \"\",\n ),\n \"key1\": components.CreateSubscriptionCustomerMetadataInteger(\n 229409,\n ),\n },\n Email: \"Jermey.Ward@gmail.com\",\n EmailVerified: false,\n Name: polargo.String(\"\"),\n BillingAddress: &components.Address{\n Country: \"Vietnam\",\n },\n TaxID: []components.TaxID{\n components.CreateTaxIDStr(\n \"\",\n ),\n components.CreateTaxIDStr(\n \"sg_gst\",\n ),\n },\n OrganizationID: \"\",\n AvatarURL: \"https://junior-numeracy.info/\",\n },\n UserID: \"\",\n User: components.SubscriptionUser{\n ID: \"\",\n Email: \"Rosalia.Ritchie@yahoo.com\",\n PublicName: \"\",\n },\n Product: components.Product{\n CreatedAt: types.MustTimeFromString(\"2024-02-26T17:46:34.360Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-12-01T21:55:43.801Z\"),\n ID: \"\",\n Name: \"\",\n Description: polargo.String(\"from below aw request\"),\n IsRecurring: false,\n IsArchived: true,\n OrganizationID: \"\",\n Metadata: map[string]components.ProductMetadata{\n\n },\n Prices: []components.ProductPrice{\n components.CreateProductPriceProductPriceOneTime(\n components.CreateProductPriceOneTimeProductPriceOneTimeCustom(\n components.ProductPriceOneTimeCustom{\n CreatedAt: types.MustTimeFromString(\"2022-06-25T23:28:37.736Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-01-28T21:29:28.022Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n PriceCurrency: \"\",\n MinimumAmount: polargo.Int64(933452),\n MaximumAmount: polargo.Int64(725754),\n PresetAmount: polargo.Int64(210876),\n },\n ),\n ),\n components.CreateProductPriceProductPriceOneTime(\n components.CreateProductPriceOneTimeProductPriceOneTimeFixed(\n components.ProductPriceOneTimeFixed{\n CreatedAt: types.MustTimeFromString(\"2022-05-21T04:19:09.625Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-04-30T14:02:56.290Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n PriceCurrency: \"\",\n PriceAmount: 111336,\n },\n ),\n ),\n },\n Benefits: []components.Benefit{\n components.CreateBenefitBenefitLicenseKeys(\n components.BenefitLicenseKeys{\n CreatedAt: types.MustTimeFromString(\"2023-06-10T03:59:30.672Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-01-05T10:41:20.531Z\"),\n ID: \"\",\n Description: \"tool white needily grandpa\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitLicenseKeysProperties{\n Prefix: polargo.String(\"\"),\n Expires: &components.BenefitLicenseKeyExpirationProperties{\n TTL: 382414,\n Timeframe: components.TimeframeYear,\n },\n Activations: &components.BenefitLicenseKeyActivationProperties{\n Limit: 144670,\n EnableCustomerAdmin: false,\n },\n LimitUsage: polargo.Int64(772158),\n },\n },\n ),\n },\n Medias: []components.ProductMediaFileRead{\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/etc/defaults\",\n MimeType: \"\",\n Size: 212274,\n StorageVersion: polargo.String(\"\"),\n ChecksumEtag: polargo.String(\"\"),\n ChecksumSha256Base64: polargo.String(\"\"),\n ChecksumSha256Hex: polargo.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2024-02-07T09:30:30.379Z\"),\n Version: polargo.String(\"\"),\n IsUploaded: true,\n CreatedAt: types.MustTimeFromString(\"2023-02-24T03:01:46.062Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://courageous-sailor.com/\",\n },\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/bin\",\n MimeType: \"\",\n Size: 411556,\n StorageVersion: polargo.String(\"\"),\n ChecksumEtag: polargo.String(\"\"),\n ChecksumSha256Base64: polargo.String(\"\"),\n ChecksumSha256Hex: polargo.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2022-11-06T04:00:51.558Z\"),\n Version: polargo.String(\"\"),\n IsUploaded: true,\n CreatedAt: types.MustTimeFromString(\"2024-08-27T08:53:33.064Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://snappy-airline.name\",\n },\n },\n AttachedCustomFields: []components.AttachedCustomField{\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldCheckbox(\n components.CustomFieldCheckbox{\n CreatedAt: types.MustTimeFromString(\"2022-01-29T05:08:10.453Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-03-28T01:34:09.042Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldCheckboxMetadata{\n \"key\": components.CreateCustomFieldCheckboxMetadataStr(\n \"\",\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldCheckboxProperties{},\n },\n ),\n Order: 893449,\n Required: false,\n },\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldDate(\n components.CustomFieldDate{\n CreatedAt: types.MustTimeFromString(\"2024-08-27T08:53:33.064Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-12-28T19:45:50.280Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldDateMetadata{\n \"key\": components.CreateCustomFieldDateMetadataBoolean(\n false,\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldDateProperties{},\n },\n ),\n Order: 954791,\n Required: false,\n },\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldCheckbox(\n components.CustomFieldCheckbox{\n CreatedAt: types.MustTimeFromString(\"2023-12-31T11:33:29.704Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-08-07T10:12:08.922Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldCheckboxMetadata{\n \"key\": components.CreateCustomFieldCheckboxMetadataBoolean(\n false,\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldCheckboxProperties{},\n },\n ),\n Order: 748789,\n Required: true,\n },\n },\n },\n Price: components.CreateProductPriceRecurringProductPriceRecurringCustom(\n components.ProductPriceRecurringCustom{\n CreatedAt: types.MustTimeFromString(\"2023-02-21T18:53:58.260Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-08-27T05:11:23.388Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n PriceCurrency: \"\",\n MinimumAmount: polargo.Int64(188933),\n MaximumAmount: polargo.Int64(814719),\n PresetAmount: polargo.Int64(438932),\n RecurringInterval: components.SubscriptionRecurringIntervalMonth,\n },\n ),\n Discount: components.CreateSubscriptionDiscountDiscountPercentageOnceForeverDurationBase(\n components.DiscountPercentageOnceForeverDurationBase{\n Duration: components.DiscountDurationForever,\n Type: components.DiscountTypeFixed,\n BasisPoints: 116399,\n CreatedAt: types.MustTimeFromString(\"2024-09-29T12:11:21.682Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-07-03T04:55:47.377Z\"),\n ID: \"\",\n Metadata: map[string]components.DiscountPercentageOnceForeverDurationBaseMetadata{\n\n },\n Name: \"\",\n Code: polargo.String(\"\"),\n StartsAt: types.MustNewTimeFromString(\"2022-03-13T02:22:01.631Z\"),\n EndsAt: types.MustNewTimeFromString(\"2024-09-16T04:55:19.972Z\"),\n MaxRedemptions: polargo.Int64(803154),\n RedemptionsCount: 825426,\n OrganizationID: \"\",\n },\n ),\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"polar\"\n\t\"polar/types\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New()\n\n res, err := s.EndpointsubscriptionCreatedPost(ctx, components.WebhookSubscriptionCreatedPayload{\n Data: components.Subscription{\n CreatedAt: types.MustTimeFromString(\"2023-07-04T01:29:40.920Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-02-20T03:35:25.500Z\"),\n ID: \"\",\n Amount: polar.Int64(78980),\n Currency: polar.String(\"Dong\"),\n RecurringInterval: components.SubscriptionRecurringIntervalMonth,\n Status: components.SubscriptionStatusIncompleteExpired,\n CurrentPeriodStart: types.MustTimeFromString(\"2024-01-26T02:46:12.208Z\"),\n CurrentPeriodEnd: types.MustNewTimeFromString(\"2022-10-08T16:07:22.449Z\"),\n CancelAtPeriodEnd: false,\n StartedAt: types.MustNewTimeFromString(\"2024-10-17T20:21:29.819Z\"),\n EndedAt: types.MustNewTimeFromString(\"2022-02-26T17:52:17.099Z\"),\n CustomerID: \"\",\n ProductID: \"\",\n PriceID: \"\",\n DiscountID: polar.String(\"\"),\n CheckoutID: polar.String(\"\"),\n Metadata: map[string]components.Metadata{\n\n },\n Customer: components.SubscriptionCustomer{\n CreatedAt: types.MustTimeFromString(\"2022-09-06T09:33:34.348Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-05-17T19:46:56.602Z\"),\n ID: \"\",\n Metadata: map[string]components.SubscriptionCustomerMetadata{\n \"key\": components.CreateSubscriptionCustomerMetadataStr(\n \"\",\n ),\n \"key1\": components.CreateSubscriptionCustomerMetadataInteger(\n 229409,\n ),\n },\n Email: \"Jermey.Ward@gmail.com\",\n EmailVerified: false,\n Name: polar.String(\"\"),\n BillingAddress: &components.Address{\n Country: \"Vietnam\",\n },\n TaxID: []components.TaxID{\n components.CreateTaxIDStr(\n \"\",\n ),\n components.CreateTaxIDStr(\n \"sg_gst\",\n ),\n },\n OrganizationID: \"\",\n AvatarURL: \"https://junior-numeracy.info/\",\n },\n UserID: \"\",\n User: components.SubscriptionUser{\n ID: \"\",\n Email: \"Rosalia.Ritchie@yahoo.com\",\n PublicName: \"\",\n },\n Product: components.Product{\n CreatedAt: types.MustTimeFromString(\"2024-02-26T17:46:34.360Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-12-01T21:55:43.801Z\"),\n ID: \"\",\n Name: \"\",\n Description: polar.String(\"from below aw request\"),\n IsRecurring: false,\n IsArchived: true,\n OrganizationID: \"\",\n Metadata: map[string]components.ProductMetadata{\n\n },\n Prices: []components.ProductPrice{\n components.CreateProductPriceProductPriceOneTime(\n components.CreateProductPriceOneTimeProductPriceOneTimeCustom(\n components.ProductPriceOneTimeCustom{\n CreatedAt: types.MustTimeFromString(\"2022-06-25T23:28:37.736Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-01-28T21:29:28.022Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n PriceCurrency: \"\",\n MinimumAmount: polar.Int64(933452),\n MaximumAmount: polar.Int64(725754),\n PresetAmount: polar.Int64(210876),\n },\n ),\n ),\n components.CreateProductPriceProductPriceOneTime(\n components.CreateProductPriceOneTimeProductPriceOneTimeFixed(\n components.ProductPriceOneTimeFixed{\n CreatedAt: types.MustTimeFromString(\"2022-05-21T04:19:09.625Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-04-30T14:02:56.290Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n PriceCurrency: \"\",\n PriceAmount: 111336,\n },\n ),\n ),\n },\n Benefits: []components.Benefit{\n components.CreateBenefitBenefitLicenseKeys(\n components.BenefitLicenseKeys{\n CreatedAt: types.MustTimeFromString(\"2023-06-10T03:59:30.672Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-01-05T10:41:20.531Z\"),\n ID: \"\",\n Description: \"tool white needily grandpa\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitLicenseKeysProperties{\n Prefix: polar.String(\"\"),\n Expires: &components.BenefitLicenseKeyExpirationProperties{\n TTL: 382414,\n Timeframe: components.TimeframeYear,\n },\n Activations: &components.BenefitLicenseKeyActivationProperties{\n Limit: 144670,\n EnableCustomerAdmin: false,\n },\n LimitUsage: polar.Int64(772158),\n },\n },\n ),\n },\n Medias: []components.ProductMediaFileRead{\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/etc/defaults\",\n MimeType: \"\",\n Size: 212274,\n StorageVersion: polar.String(\"\"),\n ChecksumEtag: polar.String(\"\"),\n ChecksumSha256Base64: polar.String(\"\"),\n ChecksumSha256Hex: polar.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2024-02-07T09:30:30.379Z\"),\n Version: polar.String(\"\"),\n IsUploaded: true,\n CreatedAt: types.MustTimeFromString(\"2023-02-24T03:01:46.062Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://courageous-sailor.com/\",\n },\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/bin\",\n MimeType: \"\",\n Size: 411556,\n StorageVersion: polar.String(\"\"),\n ChecksumEtag: polar.String(\"\"),\n ChecksumSha256Base64: polar.String(\"\"),\n ChecksumSha256Hex: polar.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2022-11-06T04:00:51.558Z\"),\n Version: polar.String(\"\"),\n IsUploaded: true,\n CreatedAt: types.MustTimeFromString(\"2024-08-27T08:53:33.064Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://snappy-airline.name\",\n },\n },\n AttachedCustomFields: []components.AttachedCustomField{\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldCheckbox(\n components.CustomFieldCheckbox{\n CreatedAt: types.MustTimeFromString(\"2022-01-29T05:08:10.453Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-03-28T01:34:09.042Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldCheckboxMetadata{\n \"key\": components.CreateCustomFieldCheckboxMetadataStr(\n \"\",\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldCheckboxProperties{},\n },\n ),\n Order: 893449,\n Required: false,\n },\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldDate(\n components.CustomFieldDate{\n CreatedAt: types.MustTimeFromString(\"2024-08-27T08:53:33.064Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-12-28T19:45:50.280Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldDateMetadata{\n \"key\": components.CreateCustomFieldDateMetadataBoolean(\n false,\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldDateProperties{},\n },\n ),\n Order: 954791,\n Required: false,\n },\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldCheckbox(\n components.CustomFieldCheckbox{\n CreatedAt: types.MustTimeFromString(\"2023-12-31T11:33:29.704Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-08-07T10:12:08.922Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldCheckboxMetadata{\n \"key\": components.CreateCustomFieldCheckboxMetadataBoolean(\n false,\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldCheckboxProperties{},\n },\n ),\n Order: 748789,\n Required: true,\n },\n },\n },\n Price: components.CreateProductPriceRecurringProductPriceRecurringCustom(\n components.ProductPriceRecurringCustom{\n CreatedAt: types.MustTimeFromString(\"2023-02-21T18:53:58.260Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-08-27T05:11:23.388Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n PriceCurrency: \"\",\n MinimumAmount: polar.Int64(188933),\n MaximumAmount: polar.Int64(814719),\n PresetAmount: polar.Int64(438932),\n RecurringInterval: components.SubscriptionRecurringIntervalMonth,\n },\n ),\n Discount: components.CreateSubscriptionDiscountDiscountPercentageOnceForeverDurationBase(\n components.DiscountPercentageOnceForeverDurationBase{\n Duration: components.DiscountDurationForever,\n Type: components.DiscountTypeFixed,\n BasisPoints: 116399,\n CreatedAt: types.MustTimeFromString(\"2024-09-29T12:11:21.682Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-07-03T04:55:47.377Z\"),\n ID: \"\",\n Metadata: map[string]components.DiscountPercentageOnceForeverDurationBaseMetadata{\n\n },\n Name: \"\",\n Code: polar.String(\"\"),\n StartsAt: types.MustNewTimeFromString(\"2022-03-13T02:22:01.631Z\"),\n EndsAt: types.MustNewTimeFromString(\"2024-09-16T04:55:19.972Z\"),\n MaxRedemptions: polar.Int64(803154),\n RedemptionsCount: 825426,\n OrganizationID: \"\",\n },\n ),\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" - target: $["paths"]["subscription.revoked"]["post"] update: "x-codeSamples": - "lang": "go" "label": "_endpointsubscription_revoked_post" - "source": "package main\n\nimport(\n\t\"context\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/types\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New()\n\n res, err := s.EndpointsubscriptionRevokedPost(ctx, components.WebhookSubscriptionRevokedPayload{\n Data: components.Subscription{\n CreatedAt: types.MustTimeFromString(\"2024-11-29T12:00:55.925Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-03-13T04:36:55.320Z\"),\n ID: \"\",\n Amount: polargo.Int64(780683),\n Currency: polargo.String(\"CFP Franc\"),\n RecurringInterval: components.SubscriptionRecurringIntervalYear,\n Status: components.SubscriptionStatusTrialing,\n CurrentPeriodStart: types.MustTimeFromString(\"2022-06-20T05:55:42.170Z\"),\n CurrentPeriodEnd: types.MustNewTimeFromString(\"2023-05-17T17:55:53.899Z\"),\n CancelAtPeriodEnd: true,\n StartedAt: types.MustNewTimeFromString(\"2024-10-25T10:04:20.460Z\"),\n EndedAt: types.MustNewTimeFromString(\"2023-09-30T18:36:35.285Z\"),\n CustomerID: \"\",\n ProductID: \"\",\n PriceID: \"\",\n DiscountID: polargo.String(\"\"),\n CheckoutID: polargo.String(\"\"),\n Metadata: map[string]components.Metadata{\n \"key\": components.CreateMetadataInteger(\n 721489,\n ),\n },\n Customer: components.SubscriptionCustomer{\n CreatedAt: types.MustTimeFromString(\"2022-06-02T05:06:11.692Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-09-02T15:09:07.489Z\"),\n ID: \"\",\n Metadata: map[string]components.SubscriptionCustomerMetadata{\n \"key\": components.CreateSubscriptionCustomerMetadataInteger(\n 112038,\n ),\n \"key1\": components.CreateSubscriptionCustomerMetadataInteger(\n 182663,\n ),\n \"key2\": components.CreateSubscriptionCustomerMetadataInteger(\n 85731,\n ),\n },\n Email: \"Tia59@yahoo.com\",\n EmailVerified: true,\n Name: polargo.String(\"\"),\n BillingAddress: &components.Address{\n Country: \"Azerbaijan\",\n },\n TaxID: []components.TaxID{\n components.CreateTaxIDTaxIDFormat(\n components.TaxIDFormatSgUen,\n ),\n },\n OrganizationID: \"\",\n AvatarURL: \"https://babyish-plastic.net\",\n },\n UserID: \"\",\n User: components.SubscriptionUser{\n ID: \"\",\n Email: \"Reina59@yahoo.com\",\n PublicName: \"\",\n },\n Product: components.Product{\n CreatedAt: types.MustTimeFromString(\"2023-11-12T08:35:43.186Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-02-16T16:26:12.752Z\"),\n ID: \"\",\n Name: \"\",\n Description: polargo.String(\"knavishly next unlike\"),\n IsRecurring: false,\n IsArchived: false,\n OrganizationID: \"\",\n Metadata: map[string]components.ProductMetadata{\n\n },\n Prices: []components.ProductPrice{\n components.CreateProductPriceProductPriceRecurring(\n components.CreateProductPriceRecurringProductPriceRecurringFree(\n components.ProductPriceRecurringFree{\n CreatedAt: types.MustTimeFromString(\"2024-11-11T10:23:53.320Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-02-19T19:14:01.955Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n RecurringInterval: components.SubscriptionRecurringIntervalYear,\n },\n ),\n ),\n components.CreateProductPriceProductPriceRecurring(\n components.CreateProductPriceRecurringProductPriceRecurringCustom(\n components.ProductPriceRecurringCustom{\n CreatedAt: types.MustTimeFromString(\"2023-06-26T23:36:42.315Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-04-04T17:36:00.194Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n PriceCurrency: \"\",\n MinimumAmount: polargo.Int64(945814),\n MaximumAmount: polargo.Int64(528613),\n PresetAmount: polargo.Int64(757041),\n RecurringInterval: components.SubscriptionRecurringIntervalYear,\n },\n ),\n ),\n components.CreateProductPriceProductPriceRecurring(\n components.CreateProductPriceRecurringProductPriceRecurringFixed(\n components.ProductPriceRecurringFixed{\n CreatedAt: types.MustTimeFromString(\"2022-01-09T05:55:55.925Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-11-02T14:07:17.605Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n PriceCurrency: \"\",\n PriceAmount: 760908,\n RecurringInterval: components.SubscriptionRecurringIntervalMonth,\n },\n ),\n ),\n },\n Benefits: []components.Benefit{\n components.CreateBenefitBenefitDiscord(\n components.BenefitDiscord{\n CreatedAt: types.MustTimeFromString(\"2024-03-20T08:28:49.688Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-07-06T02:01:46.524Z\"),\n ID: \"\",\n Description: \"blah altruistic vaguely delirious when submissive desk how tarragon ew\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitDiscordProperties{\n GuildID: \"\",\n RoleID: \"\",\n GuildToken: \"\",\n },\n },\n ),\n },\n Medias: []components.ProductMediaFileRead{\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/selinux\",\n MimeType: \"\",\n Size: 307478,\n StorageVersion: polargo.String(\"\"),\n ChecksumEtag: polargo.String(\"\"),\n ChecksumSha256Base64: polargo.String(\"\"),\n ChecksumSha256Hex: polargo.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2023-08-09T04:03:47.757Z\"),\n Version: polargo.String(\"\"),\n IsUploaded: true,\n CreatedAt: types.MustTimeFromString(\"2024-03-19T06:48:17.921Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://bleak-worth.name\",\n },\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/opt/sbin\",\n MimeType: \"\",\n Size: 846156,\n StorageVersion: polargo.String(\"\"),\n ChecksumEtag: polargo.String(\"\"),\n ChecksumSha256Base64: polargo.String(\"\"),\n ChecksumSha256Hex: polargo.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2024-07-22T16:48:21.593Z\"),\n Version: polargo.String(\"\"),\n IsUploaded: false,\n CreatedAt: types.MustTimeFromString(\"2022-01-29T12:49:28.784Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://unusual-switch.name\",\n },\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/var/mail\",\n MimeType: \"\",\n Size: 4230,\n StorageVersion: polargo.String(\"\"),\n ChecksumEtag: polargo.String(\"\"),\n ChecksumSha256Base64: polargo.String(\"\"),\n ChecksumSha256Hex: polargo.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2024-09-24T13:03:31.087Z\"),\n Version: polargo.String(\"\"),\n IsUploaded: true,\n CreatedAt: types.MustTimeFromString(\"2022-07-22T04:02:13.353Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://warm-sideboard.name/\",\n },\n },\n AttachedCustomFields: []components.AttachedCustomField{\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldText(\n components.CustomFieldText{\n CreatedAt: types.MustTimeFromString(\"2023-05-06T13:33:08.877Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-10-27T11:52:34.438Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldTextMetadata{\n \"key\": components.CreateCustomFieldTextMetadataInteger(\n 500371,\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldTextProperties{},\n },\n ),\n Order: 740600,\n Required: false,\n },\n },\n },\n Price: components.CreateProductPriceRecurringProductPriceRecurringCustom(\n components.ProductPriceRecurringCustom{\n CreatedAt: types.MustTimeFromString(\"2024-04-23T08:39:31.977Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-09-21T10:36:30.029Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n PriceCurrency: \"\",\n MinimumAmount: polargo.Int64(754926),\n MaximumAmount: polargo.Int64(436377),\n PresetAmount: polargo.Int64(53495),\n RecurringInterval: components.SubscriptionRecurringIntervalYear,\n },\n ),\n Discount: components.CreateSubscriptionDiscountDiscountFixedOnceForeverDurationBase(\n components.DiscountFixedOnceForeverDurationBase{\n Duration: components.DiscountDurationOnce,\n Type: components.DiscountTypeFixed,\n Amount: 206819,\n Currency: \"Aruban Guilder\",\n CreatedAt: types.MustTimeFromString(\"2023-01-06T10:09:42.620Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-02-18T03:56:02.453Z\"),\n ID: \"\",\n Metadata: map[string]components.DiscountFixedOnceForeverDurationBaseMetadata{\n \"key\": components.CreateDiscountFixedOnceForeverDurationBaseMetadataBoolean(\n false,\n ),\n },\n Name: \"\",\n Code: polargo.String(\"\"),\n StartsAt: types.MustNewTimeFromString(\"2022-01-05T17:30:38.705Z\"),\n EndsAt: types.MustNewTimeFromString(\"2023-10-23T06:57:42.013Z\"),\n MaxRedemptions: polargo.Int64(138559),\n RedemptionsCount: 157916,\n OrganizationID: \"\",\n },\n ),\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"polar\"\n\t\"polar/types\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New()\n\n res, err := s.EndpointsubscriptionRevokedPost(ctx, components.WebhookSubscriptionRevokedPayload{\n Data: components.Subscription{\n CreatedAt: types.MustTimeFromString(\"2024-11-29T12:00:55.925Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-03-13T04:36:55.320Z\"),\n ID: \"\",\n Amount: polar.Int64(780683),\n Currency: polar.String(\"CFP Franc\"),\n RecurringInterval: components.SubscriptionRecurringIntervalYear,\n Status: components.SubscriptionStatusTrialing,\n CurrentPeriodStart: types.MustTimeFromString(\"2022-06-20T05:55:42.170Z\"),\n CurrentPeriodEnd: types.MustNewTimeFromString(\"2023-05-17T17:55:53.899Z\"),\n CancelAtPeriodEnd: true,\n StartedAt: types.MustNewTimeFromString(\"2024-10-25T10:04:20.460Z\"),\n EndedAt: types.MustNewTimeFromString(\"2023-09-30T18:36:35.285Z\"),\n CustomerID: \"\",\n ProductID: \"\",\n PriceID: \"\",\n DiscountID: polar.String(\"\"),\n CheckoutID: polar.String(\"\"),\n Metadata: map[string]components.Metadata{\n \"key\": components.CreateMetadataInteger(\n 721489,\n ),\n },\n Customer: components.SubscriptionCustomer{\n CreatedAt: types.MustTimeFromString(\"2022-06-02T05:06:11.692Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-09-02T15:09:07.489Z\"),\n ID: \"\",\n Metadata: map[string]components.SubscriptionCustomerMetadata{\n \"key\": components.CreateSubscriptionCustomerMetadataInteger(\n 112038,\n ),\n \"key1\": components.CreateSubscriptionCustomerMetadataInteger(\n 182663,\n ),\n \"key2\": components.CreateSubscriptionCustomerMetadataInteger(\n 85731,\n ),\n },\n Email: \"Tia59@yahoo.com\",\n EmailVerified: true,\n Name: polar.String(\"\"),\n BillingAddress: &components.Address{\n Country: \"Azerbaijan\",\n },\n TaxID: []components.TaxID{\n components.CreateTaxIDTaxIDFormat(\n components.TaxIDFormatSgUen,\n ),\n },\n OrganizationID: \"\",\n AvatarURL: \"https://babyish-plastic.net\",\n },\n UserID: \"\",\n User: components.SubscriptionUser{\n ID: \"\",\n Email: \"Reina59@yahoo.com\",\n PublicName: \"\",\n },\n Product: components.Product{\n CreatedAt: types.MustTimeFromString(\"2023-11-12T08:35:43.186Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-02-16T16:26:12.752Z\"),\n ID: \"\",\n Name: \"\",\n Description: polar.String(\"knavishly next unlike\"),\n IsRecurring: false,\n IsArchived: false,\n OrganizationID: \"\",\n Metadata: map[string]components.ProductMetadata{\n\n },\n Prices: []components.ProductPrice{\n components.CreateProductPriceProductPriceRecurring(\n components.CreateProductPriceRecurringProductPriceRecurringFree(\n components.ProductPriceRecurringFree{\n CreatedAt: types.MustTimeFromString(\"2024-11-11T10:23:53.320Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-02-19T19:14:01.955Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n RecurringInterval: components.SubscriptionRecurringIntervalYear,\n },\n ),\n ),\n components.CreateProductPriceProductPriceRecurring(\n components.CreateProductPriceRecurringProductPriceRecurringCustom(\n components.ProductPriceRecurringCustom{\n CreatedAt: types.MustTimeFromString(\"2023-06-26T23:36:42.315Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-04-04T17:36:00.194Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n PriceCurrency: \"\",\n MinimumAmount: polar.Int64(945814),\n MaximumAmount: polar.Int64(528613),\n PresetAmount: polar.Int64(757041),\n RecurringInterval: components.SubscriptionRecurringIntervalYear,\n },\n ),\n ),\n components.CreateProductPriceProductPriceRecurring(\n components.CreateProductPriceRecurringProductPriceRecurringFixed(\n components.ProductPriceRecurringFixed{\n CreatedAt: types.MustTimeFromString(\"2022-01-09T05:55:55.925Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-11-02T14:07:17.605Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n PriceCurrency: \"\",\n PriceAmount: 760908,\n RecurringInterval: components.SubscriptionRecurringIntervalMonth,\n },\n ),\n ),\n },\n Benefits: []components.Benefit{\n components.CreateBenefitBenefitDiscord(\n components.BenefitDiscord{\n CreatedAt: types.MustTimeFromString(\"2024-03-20T08:28:49.688Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-07-06T02:01:46.524Z\"),\n ID: \"\",\n Description: \"blah altruistic vaguely delirious when submissive desk how tarragon ew\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitDiscordProperties{\n GuildID: \"\",\n RoleID: \"\",\n GuildToken: \"\",\n },\n },\n ),\n },\n Medias: []components.ProductMediaFileRead{\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/selinux\",\n MimeType: \"\",\n Size: 307478,\n StorageVersion: polar.String(\"\"),\n ChecksumEtag: polar.String(\"\"),\n ChecksumSha256Base64: polar.String(\"\"),\n ChecksumSha256Hex: polar.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2023-08-09T04:03:47.757Z\"),\n Version: polar.String(\"\"),\n IsUploaded: true,\n CreatedAt: types.MustTimeFromString(\"2024-03-19T06:48:17.921Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://bleak-worth.name\",\n },\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/opt/sbin\",\n MimeType: \"\",\n Size: 846156,\n StorageVersion: polar.String(\"\"),\n ChecksumEtag: polar.String(\"\"),\n ChecksumSha256Base64: polar.String(\"\"),\n ChecksumSha256Hex: polar.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2024-07-22T16:48:21.593Z\"),\n Version: polar.String(\"\"),\n IsUploaded: false,\n CreatedAt: types.MustTimeFromString(\"2022-01-29T12:49:28.784Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://unusual-switch.name\",\n },\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/var/mail\",\n MimeType: \"\",\n Size: 4230,\n StorageVersion: polar.String(\"\"),\n ChecksumEtag: polar.String(\"\"),\n ChecksumSha256Base64: polar.String(\"\"),\n ChecksumSha256Hex: polar.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2024-09-24T13:03:31.087Z\"),\n Version: polar.String(\"\"),\n IsUploaded: true,\n CreatedAt: types.MustTimeFromString(\"2022-07-22T04:02:13.353Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://warm-sideboard.name/\",\n },\n },\n AttachedCustomFields: []components.AttachedCustomField{\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldText(\n components.CustomFieldText{\n CreatedAt: types.MustTimeFromString(\"2023-05-06T13:33:08.877Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-10-27T11:52:34.438Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldTextMetadata{\n \"key\": components.CreateCustomFieldTextMetadataInteger(\n 500371,\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldTextProperties{},\n },\n ),\n Order: 740600,\n Required: false,\n },\n },\n },\n Price: components.CreateProductPriceRecurringProductPriceRecurringCustom(\n components.ProductPriceRecurringCustom{\n CreatedAt: types.MustTimeFromString(\"2024-04-23T08:39:31.977Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-09-21T10:36:30.029Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n PriceCurrency: \"\",\n MinimumAmount: polar.Int64(754926),\n MaximumAmount: polar.Int64(436377),\n PresetAmount: polar.Int64(53495),\n RecurringInterval: components.SubscriptionRecurringIntervalYear,\n },\n ),\n Discount: components.CreateSubscriptionDiscountDiscountFixedOnceForeverDurationBase(\n components.DiscountFixedOnceForeverDurationBase{\n Duration: components.DiscountDurationOnce,\n Type: components.DiscountTypeFixed,\n Amount: 206819,\n Currency: \"Aruban Guilder\",\n CreatedAt: types.MustTimeFromString(\"2023-01-06T10:09:42.620Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-02-18T03:56:02.453Z\"),\n ID: \"\",\n Metadata: map[string]components.DiscountFixedOnceForeverDurationBaseMetadata{\n \"key\": components.CreateDiscountFixedOnceForeverDurationBaseMetadataBoolean(\n false,\n ),\n },\n Name: \"\",\n Code: polar.String(\"\"),\n StartsAt: types.MustNewTimeFromString(\"2022-01-05T17:30:38.705Z\"),\n EndsAt: types.MustNewTimeFromString(\"2023-10-23T06:57:42.013Z\"),\n MaxRedemptions: polar.Int64(138559),\n RedemptionsCount: 157916,\n OrganizationID: \"\",\n },\n ),\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" - target: $["paths"]["subscription.updated"]["post"] update: "x-codeSamples": - "lang": "go" "label": "_endpointsubscription_updated_post" - "source": "package main\n\nimport(\n\t\"context\"\n\tpolargo \"github.com/polarsource/polar-go\"\n\t\"github.com/polarsource/polar-go/types\"\n\t\"github.com/polarsource/polar-go/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polargo.New()\n\n res, err := s.EndpointsubscriptionUpdatedPost(ctx, components.WebhookSubscriptionUpdatedPayload{\n Data: components.Subscription{\n CreatedAt: types.MustTimeFromString(\"2022-08-16T06:35:49.390Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-11-13T10:48:05.575Z\"),\n ID: \"\",\n Amount: polargo.Int64(299644),\n Currency: polargo.String(\"Baht\"),\n RecurringInterval: components.SubscriptionRecurringIntervalYear,\n Status: components.SubscriptionStatusTrialing,\n CurrentPeriodStart: types.MustTimeFromString(\"2024-10-06T07:01:55.000Z\"),\n CurrentPeriodEnd: types.MustNewTimeFromString(\"2024-01-21T06:59:31.349Z\"),\n CancelAtPeriodEnd: false,\n StartedAt: types.MustNewTimeFromString(\"2022-10-04T04:56:04.382Z\"),\n EndedAt: types.MustNewTimeFromString(\"2022-01-22T12:57:07.430Z\"),\n CustomerID: \"\",\n ProductID: \"\",\n PriceID: \"\",\n DiscountID: polargo.String(\"\"),\n CheckoutID: polargo.String(\"\"),\n Metadata: map[string]components.Metadata{\n \"key\": components.CreateMetadataStr(\n \"\",\n ),\n \"key1\": components.CreateMetadataInteger(\n 442859,\n ),\n \"key2\": components.CreateMetadataInteger(\n 394013,\n ),\n },\n Customer: components.SubscriptionCustomer{\n CreatedAt: types.MustTimeFromString(\"2024-09-14T04:37:19.722Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-03-24T00:03:13.207Z\"),\n ID: \"\",\n Metadata: map[string]components.SubscriptionCustomerMetadata{\n \"key\": components.CreateSubscriptionCustomerMetadataStr(\n \"\",\n ),\n \"key1\": components.CreateSubscriptionCustomerMetadataBoolean(\n true,\n ),\n \"key2\": components.CreateSubscriptionCustomerMetadataInteger(\n 392900,\n ),\n },\n Email: \"Dominic.Toy27@yahoo.com\",\n EmailVerified: false,\n Name: polargo.String(\"\"),\n BillingAddress: &components.Address{\n Country: \"Sweden\",\n },\n TaxID: []components.TaxID{\n components.CreateTaxIDStr(\n \"mx_rfc\",\n ),\n components.CreateTaxIDStr(\n \"gb_vat\",\n ),\n components.CreateTaxIDStr(\n \"\",\n ),\n },\n OrganizationID: \"\",\n AvatarURL: \"https://worthy-place.biz\",\n },\n UserID: \"\",\n User: components.SubscriptionUser{\n ID: \"\",\n Email: \"Domenico_Franecki46@hotmail.com\",\n PublicName: \"\",\n },\n Product: components.Product{\n CreatedAt: types.MustTimeFromString(\"2023-06-12T14:55:33.574Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-06-02T07:14:13.619Z\"),\n ID: \"\",\n Name: \"\",\n Description: polargo.String(\"intent that yowza\"),\n IsRecurring: true,\n IsArchived: false,\n OrganizationID: \"\",\n Metadata: map[string]components.ProductMetadata{\n \"key\": components.CreateProductMetadataStr(\n \"\",\n ),\n \"key1\": components.CreateProductMetadataBoolean(\n true,\n ),\n },\n Prices: []components.ProductPrice{\n components.CreateProductPriceProductPriceRecurring(\n components.CreateProductPriceRecurringProductPriceRecurringFree(\n components.ProductPriceRecurringFree{\n CreatedAt: types.MustTimeFromString(\"2022-02-04T10:40:02.757Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-03-05T14:45:21.856Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n RecurringInterval: components.SubscriptionRecurringIntervalYear,\n },\n ),\n ),\n },\n Benefits: []components.Benefit{\n components.CreateBenefitBenefitDownloadables(\n components.BenefitDownloadables{\n CreatedAt: types.MustTimeFromString(\"2024-08-20T20:05:26.320Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-11-01T08:07:46.637Z\"),\n ID: \"\",\n Description: \"rare foolishly far vastly gah until how considering yahoo\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitDownloadablesProperties{\n Archived: map[string]bool{\n \"key\": false,\n },\n Files: []string{\n \"\",\n },\n },\n },\n ),\n },\n Medias: []components.ProductMediaFileRead{\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/lost+found\",\n MimeType: \"\",\n Size: 562154,\n StorageVersion: polargo.String(\"\"),\n ChecksumEtag: polargo.String(\"\"),\n ChecksumSha256Base64: polargo.String(\"\"),\n ChecksumSha256Hex: polargo.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2024-08-06T03:20:53.935Z\"),\n Version: polargo.String(\"\"),\n IsUploaded: false,\n CreatedAt: types.MustTimeFromString(\"2023-09-07T09:54:32.715Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://rare-trash.info\",\n },\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/etc/ppp\",\n MimeType: \"\",\n Size: 66044,\n StorageVersion: polargo.String(\"\"),\n ChecksumEtag: polargo.String(\"\"),\n ChecksumSha256Base64: polargo.String(\"\"),\n ChecksumSha256Hex: polargo.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2024-07-07T23:54:00.303Z\"),\n Version: polargo.String(\"\"),\n IsUploaded: true,\n CreatedAt: types.MustTimeFromString(\"2022-10-11T04:49:26.739Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://worse-ceramic.org\",\n },\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/home\",\n MimeType: \"\",\n Size: 75695,\n StorageVersion: polargo.String(\"\"),\n ChecksumEtag: polargo.String(\"\"),\n ChecksumSha256Base64: polargo.String(\"\"),\n ChecksumSha256Hex: polargo.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2022-09-16T06:56:23.715Z\"),\n Version: polargo.String(\"\"),\n IsUploaded: false,\n CreatedAt: types.MustTimeFromString(\"2023-06-23T20:54:57.375Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://closed-seafood.info\",\n },\n },\n AttachedCustomFields: []components.AttachedCustomField{\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldSelect(\n components.CustomFieldSelect{\n CreatedAt: types.MustTimeFromString(\"2023-03-27T06:41:23.276Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-09-01T19:58:32.729Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldSelectMetadata{\n \"key\": components.CreateCustomFieldSelectMetadataStr(\n \"\",\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldSelectProperties{\n Options: []components.CustomFieldSelectOption{\n components.CustomFieldSelectOption{\n Value: \"\",\n Label: \"\",\n },\n },\n },\n },\n ),\n Order: 553735,\n Required: false,\n },\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldCheckbox(\n components.CustomFieldCheckbox{\n CreatedAt: types.MustTimeFromString(\"2023-05-05T17:22:39.312Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-04-14T22:18:43.778Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldCheckboxMetadata{\n \"key\": components.CreateCustomFieldCheckboxMetadataInteger(\n 628033,\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldCheckboxProperties{},\n },\n ),\n Order: 892169,\n Required: true,\n },\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldCheckbox(\n components.CustomFieldCheckbox{\n CreatedAt: types.MustTimeFromString(\"2023-03-02T13:08:49.991Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-03-20T14:00:49.875Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldCheckboxMetadata{\n \"key\": components.CreateCustomFieldCheckboxMetadataStr(\n \"\",\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldCheckboxProperties{},\n },\n ),\n Order: 578881,\n Required: false,\n },\n },\n },\n Price: components.CreateProductPriceRecurringProductPriceRecurringFree(\n components.ProductPriceRecurringFree{\n CreatedAt: types.MustTimeFromString(\"2024-06-19T09:42:14.287Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-03-12T15:28:25.287Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n RecurringInterval: components.SubscriptionRecurringIntervalYear,\n },\n ),\n Discount: components.CreateSubscriptionDiscountDiscountFixedOnceForeverDurationBase(\n components.DiscountFixedOnceForeverDurationBase{\n Duration: components.DiscountDurationRepeating,\n Type: components.DiscountTypePercentage,\n Amount: 212227,\n Currency: \"Leone\",\n CreatedAt: types.MustTimeFromString(\"2023-08-20T10:09:40.057Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-03-03T12:17:34.471Z\"),\n ID: \"\",\n Metadata: map[string]components.DiscountFixedOnceForeverDurationBaseMetadata{\n \"key\": components.CreateDiscountFixedOnceForeverDurationBaseMetadataInteger(\n 925710,\n ),\n },\n Name: \"\",\n Code: polargo.String(\"\"),\n StartsAt: types.MustNewTimeFromString(\"2022-06-18T09:38:27.851Z\"),\n EndsAt: types.MustNewTimeFromString(\"2024-12-13T05:04:14.428Z\"),\n MaxRedemptions: polargo.Int64(341415),\n RedemptionsCount: 222865,\n OrganizationID: \"\",\n },\n ),\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" + "source": "package main\n\nimport(\n\t\"context\"\n\t\"polar\"\n\t\"polar/types\"\n\t\"polar/models/components\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := polar.New()\n\n res, err := s.EndpointsubscriptionUpdatedPost(ctx, components.WebhookSubscriptionUpdatedPayload{\n Data: components.Subscription{\n CreatedAt: types.MustTimeFromString(\"2022-08-16T06:35:49.390Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-11-13T10:48:05.575Z\"),\n ID: \"\",\n Amount: polar.Int64(299644),\n Currency: polar.String(\"Baht\"),\n RecurringInterval: components.SubscriptionRecurringIntervalYear,\n Status: components.SubscriptionStatusTrialing,\n CurrentPeriodStart: types.MustTimeFromString(\"2024-10-06T07:01:55.000Z\"),\n CurrentPeriodEnd: types.MustNewTimeFromString(\"2024-01-21T06:59:31.349Z\"),\n CancelAtPeriodEnd: false,\n StartedAt: types.MustNewTimeFromString(\"2022-10-04T04:56:04.382Z\"),\n EndedAt: types.MustNewTimeFromString(\"2022-01-22T12:57:07.430Z\"),\n CustomerID: \"\",\n ProductID: \"\",\n PriceID: \"\",\n DiscountID: polar.String(\"\"),\n CheckoutID: polar.String(\"\"),\n Metadata: map[string]components.Metadata{\n \"key\": components.CreateMetadataStr(\n \"\",\n ),\n \"key1\": components.CreateMetadataInteger(\n 442859,\n ),\n \"key2\": components.CreateMetadataInteger(\n 394013,\n ),\n },\n Customer: components.SubscriptionCustomer{\n CreatedAt: types.MustTimeFromString(\"2024-09-14T04:37:19.722Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-03-24T00:03:13.207Z\"),\n ID: \"\",\n Metadata: map[string]components.SubscriptionCustomerMetadata{\n \"key\": components.CreateSubscriptionCustomerMetadataStr(\n \"\",\n ),\n \"key1\": components.CreateSubscriptionCustomerMetadataBoolean(\n true,\n ),\n \"key2\": components.CreateSubscriptionCustomerMetadataInteger(\n 392900,\n ),\n },\n Email: \"Dominic.Toy27@yahoo.com\",\n EmailVerified: false,\n Name: polar.String(\"\"),\n BillingAddress: &components.Address{\n Country: \"Sweden\",\n },\n TaxID: []components.TaxID{\n components.CreateTaxIDStr(\n \"mx_rfc\",\n ),\n components.CreateTaxIDStr(\n \"gb_vat\",\n ),\n components.CreateTaxIDStr(\n \"\",\n ),\n },\n OrganizationID: \"\",\n AvatarURL: \"https://worthy-place.biz\",\n },\n UserID: \"\",\n User: components.SubscriptionUser{\n ID: \"\",\n Email: \"Domenico_Franecki46@hotmail.com\",\n PublicName: \"\",\n },\n Product: components.Product{\n CreatedAt: types.MustTimeFromString(\"2023-06-12T14:55:33.574Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-06-02T07:14:13.619Z\"),\n ID: \"\",\n Name: \"\",\n Description: polar.String(\"intent that yowza\"),\n IsRecurring: true,\n IsArchived: false,\n OrganizationID: \"\",\n Metadata: map[string]components.ProductMetadata{\n \"key\": components.CreateProductMetadataStr(\n \"\",\n ),\n \"key1\": components.CreateProductMetadataBoolean(\n true,\n ),\n },\n Prices: []components.ProductPrice{\n components.CreateProductPriceProductPriceRecurring(\n components.CreateProductPriceRecurringProductPriceRecurringFree(\n components.ProductPriceRecurringFree{\n CreatedAt: types.MustTimeFromString(\"2022-02-04T10:40:02.757Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-03-05T14:45:21.856Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n RecurringInterval: components.SubscriptionRecurringIntervalYear,\n },\n ),\n ),\n },\n Benefits: []components.Benefit{\n components.CreateBenefitBenefitDownloadables(\n components.BenefitDownloadables{\n CreatedAt: types.MustTimeFromString(\"2024-08-20T20:05:26.320Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2023-11-01T08:07:46.637Z\"),\n ID: \"\",\n Description: \"rare foolishly far vastly gah until how considering yahoo\",\n Selectable: false,\n Deletable: false,\n OrganizationID: \"\",\n Properties: components.BenefitDownloadablesProperties{\n Archived: map[string]bool{\n \"key\": false,\n },\n Files: []string{\n \"\",\n },\n },\n },\n ),\n },\n Medias: []components.ProductMediaFileRead{\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/lost+found\",\n MimeType: \"\",\n Size: 562154,\n StorageVersion: polar.String(\"\"),\n ChecksumEtag: polar.String(\"\"),\n ChecksumSha256Base64: polar.String(\"\"),\n ChecksumSha256Hex: polar.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2024-08-06T03:20:53.935Z\"),\n Version: polar.String(\"\"),\n IsUploaded: false,\n CreatedAt: types.MustTimeFromString(\"2023-09-07T09:54:32.715Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://rare-trash.info\",\n },\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/etc/ppp\",\n MimeType: \"\",\n Size: 66044,\n StorageVersion: polar.String(\"\"),\n ChecksumEtag: polar.String(\"\"),\n ChecksumSha256Base64: polar.String(\"\"),\n ChecksumSha256Hex: polar.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2024-07-07T23:54:00.303Z\"),\n Version: polar.String(\"\"),\n IsUploaded: true,\n CreatedAt: types.MustTimeFromString(\"2022-10-11T04:49:26.739Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://worse-ceramic.org\",\n },\n components.ProductMediaFileRead{\n ID: \"\",\n OrganizationID: \"\",\n Name: \"\",\n Path: \"/home\",\n MimeType: \"\",\n Size: 75695,\n StorageVersion: polar.String(\"\"),\n ChecksumEtag: polar.String(\"\"),\n ChecksumSha256Base64: polar.String(\"\"),\n ChecksumSha256Hex: polar.String(\"\"),\n LastModifiedAt: types.MustNewTimeFromString(\"2022-09-16T06:56:23.715Z\"),\n Version: polar.String(\"\"),\n IsUploaded: false,\n CreatedAt: types.MustTimeFromString(\"2023-06-23T20:54:57.375Z\"),\n SizeReadable: \"\",\n PublicURL: \"https://closed-seafood.info\",\n },\n },\n AttachedCustomFields: []components.AttachedCustomField{\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldSelect(\n components.CustomFieldSelect{\n CreatedAt: types.MustTimeFromString(\"2023-03-27T06:41:23.276Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-09-01T19:58:32.729Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldSelectMetadata{\n \"key\": components.CreateCustomFieldSelectMetadataStr(\n \"\",\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldSelectProperties{\n Options: []components.CustomFieldSelectOption{\n components.CustomFieldSelectOption{\n Value: \"\",\n Label: \"\",\n },\n },\n },\n },\n ),\n Order: 553735,\n Required: false,\n },\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldCheckbox(\n components.CustomFieldCheckbox{\n CreatedAt: types.MustTimeFromString(\"2023-05-05T17:22:39.312Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-04-14T22:18:43.778Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldCheckboxMetadata{\n \"key\": components.CreateCustomFieldCheckboxMetadataInteger(\n 628033,\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldCheckboxProperties{},\n },\n ),\n Order: 892169,\n Required: true,\n },\n components.AttachedCustomField{\n CustomFieldID: \"\",\n CustomField: components.CreateCustomFieldCustomFieldCheckbox(\n components.CustomFieldCheckbox{\n CreatedAt: types.MustTimeFromString(\"2023-03-02T13:08:49.991Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-03-20T14:00:49.875Z\"),\n ID: \"\",\n Metadata: map[string]components.CustomFieldCheckboxMetadata{\n \"key\": components.CreateCustomFieldCheckboxMetadataStr(\n \"\",\n ),\n },\n Slug: \"\",\n Name: \"\",\n OrganizationID: \"\",\n Properties: components.CustomFieldCheckboxProperties{},\n },\n ),\n Order: 578881,\n Required: false,\n },\n },\n },\n Price: components.CreateProductPriceRecurringProductPriceRecurringFree(\n components.ProductPriceRecurringFree{\n CreatedAt: types.MustTimeFromString(\"2024-06-19T09:42:14.287Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2022-03-12T15:28:25.287Z\"),\n ID: \"\",\n IsArchived: false,\n ProductID: \"\",\n RecurringInterval: components.SubscriptionRecurringIntervalYear,\n },\n ),\n Discount: components.CreateSubscriptionDiscountDiscountFixedOnceForeverDurationBase(\n components.DiscountFixedOnceForeverDurationBase{\n Duration: components.DiscountDurationRepeating,\n Type: components.DiscountTypePercentage,\n Amount: 212227,\n Currency: \"Leone\",\n CreatedAt: types.MustTimeFromString(\"2023-08-20T10:09:40.057Z\"),\n ModifiedAt: types.MustNewTimeFromString(\"2024-03-03T12:17:34.471Z\"),\n ID: \"\",\n Metadata: map[string]components.DiscountFixedOnceForeverDurationBaseMetadata{\n \"key\": components.CreateDiscountFixedOnceForeverDurationBaseMetadataInteger(\n 925710,\n ),\n },\n Name: \"\",\n Code: polar.String(\"\"),\n StartsAt: types.MustNewTimeFromString(\"2022-06-18T09:38:27.851Z\"),\n EndsAt: types.MustNewTimeFromString(\"2024-12-13T05:04:14.428Z\"),\n MaxRedemptions: polar.Int64(341415),\n RedemptionsCount: 222865,\n OrganizationID: \"\",\n },\n ),\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.Any != nil {\n // handle response\n }\n}" diff --git a/custom.go b/custom.go index 6451f45..6fb92ea 100644 --- a/custom.go +++ b/custom.go @@ -1,20 +1,20 @@ // Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -package polargo +package polar import ( "bytes" "context" "fmt" - "github.com/polarsource/polar-go/internal/hooks" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/apierrors" - "github.com/polarsource/polar-go/models/components" - "github.com/polarsource/polar-go/models/operations" - "github.com/polarsource/polar-go/retry" "github.com/spyzhov/ajson" "net/http" "net/url" + "polar/internal/hooks" + "polar/internal/utils" + "polar/models/apierrors" + "polar/models/components" + "polar/models/operations" + "polar/retry" ) type Custom struct { diff --git a/customerportal.go b/customerportal.go index 0cd8c3e..9940f07 100644 --- a/customerportal.go +++ b/customerportal.go @@ -1,6 +1,6 @@ // Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -package polargo +package polar type CustomerPortal struct { BenefitGrants *BenefitGrants diff --git a/customers.go b/customers.go index 5c900de..52ffba8 100644 --- a/customers.go +++ b/customers.go @@ -1,20 +1,20 @@ // Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -package polargo +package polar import ( "bytes" "context" "fmt" - "github.com/polarsource/polar-go/internal/hooks" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/apierrors" - "github.com/polarsource/polar-go/models/components" - "github.com/polarsource/polar-go/models/operations" - "github.com/polarsource/polar-go/retry" "github.com/spyzhov/ajson" "net/http" "net/url" + "polar/internal/hooks" + "polar/internal/utils" + "polar/models/apierrors" + "polar/models/components" + "polar/models/operations" + "polar/retry" ) type Customers struct { diff --git a/customfields.go b/customfields.go index 4c51fb6..5c4dfba 100644 --- a/customfields.go +++ b/customfields.go @@ -1,20 +1,20 @@ // Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -package polargo +package polar import ( "bytes" "context" "fmt" - "github.com/polarsource/polar-go/internal/hooks" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/apierrors" - "github.com/polarsource/polar-go/models/components" - "github.com/polarsource/polar-go/models/operations" - "github.com/polarsource/polar-go/retry" "github.com/spyzhov/ajson" "net/http" "net/url" + "polar/internal/hooks" + "polar/internal/utils" + "polar/models/apierrors" + "polar/models/components" + "polar/models/operations" + "polar/retry" ) type CustomFields struct { diff --git a/discounts.go b/discounts.go index 9b36f03..65acd3c 100644 --- a/discounts.go +++ b/discounts.go @@ -1,20 +1,20 @@ // Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -package polargo +package polar import ( "bytes" "context" "fmt" - "github.com/polarsource/polar-go/internal/hooks" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/apierrors" - "github.com/polarsource/polar-go/models/components" - "github.com/polarsource/polar-go/models/operations" - "github.com/polarsource/polar-go/retry" "github.com/spyzhov/ajson" "net/http" "net/url" + "polar/internal/hooks" + "polar/internal/utils" + "polar/models/apierrors" + "polar/models/components" + "polar/models/operations" + "polar/retry" ) type Discounts struct { diff --git a/docs/models/components/benefitcustom.md b/docs/models/components/benefitcustom.md index ffc9927..379a1d7 100644 --- a/docs/models/components/benefitcustom.md +++ b/docs/models/components/benefitcustom.md @@ -7,15 +7,15 @@ Use it to grant any kind of benefit that doesn't fit in the other types. ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `CreatedAt` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | Creation timestamp of the object. | -| `ModifiedAt` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | Last modification timestamp of the object. | -| `ID` | *string* | :heavy_check_mark: | The ID of the benefit. | -| `Type` | [components.BenefitCustomType](../../models/components/benefitcustomtype.md) | :heavy_check_mark: | N/A | -| `Description` | *string* | :heavy_check_mark: | The description of the benefit. | -| `Selectable` | *bool* | :heavy_check_mark: | Whether the benefit is selectable when creating a product. | -| `Deletable` | *bool* | :heavy_check_mark: | Whether the benefit is deletable. | -| `OrganizationID` | *string* | :heavy_check_mark: | The ID of the organization owning the benefit. | -| `Properties` | [components.BenefitCustomProperties](../../models/components/benefitcustomproperties.md) | :heavy_check_mark: | Properties for a benefit of type `custom`. | -| `IsTaxApplicable` | *bool* | :heavy_check_mark: | Whether the benefit is taxable. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | +| `CreatedAt` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | Creation timestamp of the object. | +| `ModifiedAt` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | Last modification timestamp of the object. | +| `ID` | *string* | :heavy_check_mark: | The ID of the benefit. | +| `Type` | [components.BenefitCustomType](../../models/components/benefitcustomtype.md) | :heavy_check_mark: | N/A | +| `Description` | *string* | :heavy_check_mark: | The description of the benefit. | +| `Selectable` | *bool* | :heavy_check_mark: | Whether the benefit is selectable when creating a product. | +| `Deletable` | *bool* | :heavy_check_mark: | Whether the benefit is deletable. | +| `OrganizationID` | *string* | :heavy_check_mark: | The ID of the organization owning the benefit. | +| `Properties` | [components.BenefitCustomProperties](../../models/components/benefitcustomproperties.md) | :heavy_check_mark: | Properties for a benefit of type `custom`. | +| ~~`IsTaxApplicable`~~ | *bool* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | \ No newline at end of file diff --git a/docs/models/components/benefitcustomcreate.md b/docs/models/components/benefitcustomcreate.md index 8df34cc..d99c0d9 100644 --- a/docs/models/components/benefitcustomcreate.md +++ b/docs/models/components/benefitcustomcreate.md @@ -10,5 +10,4 @@ Schema to create a benefit of type `custom`. | `Type` | [components.BenefitCustomCreateType](../../models/components/benefitcustomcreatetype.md) | :heavy_check_mark: | N/A | | `Description` | *string* | :heavy_check_mark: | The description of the benefit. Will be displayed on products having this benefit. | | `OrganizationID` | **string* | :heavy_minus_sign: | The ID of the organization owning the benefit. **Required unless you use an organization token.** | -| `IsTaxApplicable` | *bool* | :heavy_check_mark: | Whether the benefit is taxable. | | `Properties` | [components.BenefitCustomCreateProperties](../../models/components/benefitcustomcreateproperties.md) | :heavy_check_mark: | Properties for creating a benefit of type `custom`. | \ No newline at end of file diff --git a/docs/models/components/checkout.md b/docs/models/components/checkout.md index 53a106d..4818c62 100644 --- a/docs/models/components/checkout.md +++ b/docs/models/components/checkout.md @@ -44,4 +44,5 @@ Checkout session data retrieved using an access token. | `ProductPrice` | [components.ProductPrice](../../models/components/productprice.md) | :heavy_check_mark: | N/A | | `Discount` | [components.CheckoutDiscount](../../models/components/checkoutdiscount.md) | :heavy_check_mark: | N/A | | `SubscriptionID` | *string* | :heavy_check_mark: | N/A | -| `AttachedCustomFields` | [][components.AttachedCustomField](../../models/components/attachedcustomfield.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `AttachedCustomFields` | [][components.AttachedCustomField](../../models/components/attachedcustomfield.md) | :heavy_check_mark: | N/A | +| `CustomerMetadata` | map[string][components.CustomerMetadata](../../models/components/customermetadata.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/checkoutlinkupdate.md b/docs/models/components/checkoutlinkupdate.md index f7afb35..2b3c258 100644 --- a/docs/models/components/checkoutlinkupdate.md +++ b/docs/models/components/checkoutlinkupdate.md @@ -5,11 +5,11 @@ Schema to update an existing checkout link. ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Metadata` | map[string][components.CheckoutLinkUpdateMetadata](../../models/components/checkoutlinkupdatemetadata.md) | :heavy_minus_sign: | Key-value object allowing you to store additional information.

The key must be a string with a maximum length of **40 characters**.
The value must be either:

* A string with a maximum length of **500 characters**
* An integer
* A boolean

You can store up to **50 key-value pairs**. | -| `Label` | **string* | :heavy_minus_sign: | N/A | -| `AllowDiscountCodes` | **bool* | :heavy_minus_sign: | Whether to allow the customer to apply discount codes. If you apply a discount through `discount_id`, it'll still be applied, but the customer won't be able to change it. | -| `ProductPriceID` | **string* | :heavy_minus_sign: | N/A | -| `DiscountID` | **string* | :heavy_minus_sign: | ID of the discount to apply to the checkout. If the discount is not applicable anymore when opening the checkout link, it'll be ignored. | -| `SuccessURL` | **string* | :heavy_minus_sign: | URL where the customer will be redirected after a successful payment.You can add the `checkout_id={CHECKOUT_ID}` query parameter to retrieve the checkout session id. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Metadata` | map[string][components.CheckoutLinkUpdateMetadata](../../models/components/checkoutlinkupdatemetadata.md) | :heavy_minus_sign: | N/A | +| `Label` | **string* | :heavy_minus_sign: | N/A | +| `AllowDiscountCodes` | **bool* | :heavy_minus_sign: | Whether to allow the customer to apply discount codes. If you apply a discount through `discount_id`, it'll still be applied, but the customer won't be able to change it. | +| `ProductPriceID` | **string* | :heavy_minus_sign: | N/A | +| `DiscountID` | **string* | :heavy_minus_sign: | ID of the discount to apply to the checkout. If the discount is not applicable anymore when opening the checkout link, it'll be ignored. | +| `SuccessURL` | **string* | :heavy_minus_sign: | URL where the customer will be redirected after a successful payment.You can add the `checkout_id={CHECKOUT_ID}` query parameter to retrieve the checkout session id. | \ No newline at end of file diff --git a/docs/models/components/checkoutpricecreate.md b/docs/models/components/checkoutpricecreate.md index 3f2260f..6aab15d 100644 --- a/docs/models/components/checkoutpricecreate.md +++ b/docs/models/components/checkoutpricecreate.md @@ -8,21 +8,22 @@ to the resulting order and/or subscription. ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Metadata` | map[string][components.CheckoutPriceCreateMetadata](../../models/components/checkoutpricecreatemetadata.md) | :heavy_minus_sign: | Key-value object allowing you to store additional information.

The key must be a string with a maximum length of **40 characters**.
The value must be either:

* A string with a maximum length of **500 characters**
* An integer
* A boolean

You can store up to **50 key-value pairs**. | -| `CustomFieldData` | [*components.CheckoutPriceCreateCustomFieldData](../../models/components/checkoutpricecreatecustomfielddata.md) | :heavy_minus_sign: | Key-value object storing custom field values. | -| `PaymentProcessor` | [components.CheckoutPriceCreatePaymentProcessor](../../models/components/checkoutpricecreatepaymentprocessor.md) | :heavy_check_mark: | Payment processor to use. Currently only Stripe is supported. | -| `DiscountID` | **string* | :heavy_minus_sign: | ID of the discount to apply to the checkout. | -| `AllowDiscountCodes` | **bool* | :heavy_minus_sign: | Whether to allow the customer to apply discount codes. If you apply a discount through `discount_id`, it'll still be applied, but the customer won't be able to change it. | -| `Amount` | **int64* | :heavy_minus_sign: | N/A | -| `CustomerID` | **string* | :heavy_minus_sign: | ID of an existing customer in the organization. The customer data will be pre-filled in the checkout form. The resulting order will be linked to this customer. | -| `CustomerName` | **string* | :heavy_minus_sign: | N/A | -| `CustomerEmail` | **string* | :heavy_minus_sign: | N/A | -| `CustomerIPAddress` | **string* | :heavy_minus_sign: | N/A | -| `CustomerBillingAddress` | [*components.Address](../../models/components/address.md) | :heavy_minus_sign: | N/A | -| `CustomerTaxID` | **string* | :heavy_minus_sign: | N/A | -| `SubscriptionID` | **string* | :heavy_minus_sign: | ID of a subscription to upgrade. It must be on a free pricing. If checkout is successful, metadata set on this checkout will be copied to the subscription, and existing keys will be overwritten. | -| `SuccessURL` | **string* | :heavy_minus_sign: | URL where the customer will be redirected after a successful payment.You can add the `checkout_id={CHECKOUT_ID}` query parameter to retrieve the checkout session id. | -| `EmbedOrigin` | **string* | :heavy_minus_sign: | If you plan to embed the checkout session, set this to the Origin of the embedding page. It'll allow the Polar iframe to communicate with the parent page. | -| `ProductPriceID` | *string* | :heavy_check_mark: | ID of the product price to checkout. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Metadata` | map[string][components.CheckoutPriceCreateMetadata](../../models/components/checkoutpricecreatemetadata.md) | :heavy_minus_sign: | Key-value object allowing you to store additional information.

The key must be a string with a maximum length of **40 characters**.
The value must be either:

* A string with a maximum length of **500 characters**
* An integer
* A boolean

You can store up to **50 key-value pairs**. | +| `CustomFieldData` | [*components.CheckoutPriceCreateCustomFieldData](../../models/components/checkoutpricecreatecustomfielddata.md) | :heavy_minus_sign: | Key-value object storing custom field values. | +| `PaymentProcessor` | [components.CheckoutPriceCreatePaymentProcessor](../../models/components/checkoutpricecreatepaymentprocessor.md) | :heavy_check_mark: | Payment processor to use. Currently only Stripe is supported. | +| `DiscountID` | **string* | :heavy_minus_sign: | ID of the discount to apply to the checkout. | +| `AllowDiscountCodes` | **bool* | :heavy_minus_sign: | Whether to allow the customer to apply discount codes. If you apply a discount through `discount_id`, it'll still be applied, but the customer won't be able to change it. | +| `Amount` | **int64* | :heavy_minus_sign: | N/A | +| `CustomerID` | **string* | :heavy_minus_sign: | ID of an existing customer in the organization. The customer data will be pre-filled in the checkout form. The resulting order will be linked to this customer. | +| `CustomerName` | **string* | :heavy_minus_sign: | N/A | +| `CustomerEmail` | **string* | :heavy_minus_sign: | N/A | +| `CustomerIPAddress` | **string* | :heavy_minus_sign: | N/A | +| `CustomerBillingAddress` | [*components.Address](../../models/components/address.md) | :heavy_minus_sign: | N/A | +| `CustomerTaxID` | **string* | :heavy_minus_sign: | N/A | +| `CustomerMetadata` | map[string][components.CheckoutPriceCreateCustomerMetadata](../../models/components/checkoutpricecreatecustomermetadata.md) | :heavy_minus_sign: | Key-value object allowing you to store additional information that'll be copied to the created customer.

The key must be a string with a maximum length of **40 characters**.
The value must be either:

* A string with a maximum length of **500 characters**
* An integer
* A boolean

You can store up to **50 key-value pairs**. | +| `SubscriptionID` | **string* | :heavy_minus_sign: | ID of a subscription to upgrade. It must be on a free pricing. If checkout is successful, metadata set on this checkout will be copied to the subscription, and existing keys will be overwritten. | +| `SuccessURL` | **string* | :heavy_minus_sign: | URL where the customer will be redirected after a successful payment.You can add the `checkout_id={CHECKOUT_ID}` query parameter to retrieve the checkout session id. | +| `EmbedOrigin` | **string* | :heavy_minus_sign: | If you plan to embed the checkout session, set this to the Origin of the embedding page. It'll allow the Polar iframe to communicate with the parent page. | +| `ProductPriceID` | *string* | :heavy_check_mark: | ID of the product price to checkout. | \ No newline at end of file diff --git a/docs/models/components/checkoutpricecreatecustomermetadata.md b/docs/models/components/checkoutpricecreatecustomermetadata.md new file mode 100644 index 0000000..0352622 --- /dev/null +++ b/docs/models/components/checkoutpricecreatecustomermetadata.md @@ -0,0 +1,23 @@ +# CheckoutPriceCreateCustomerMetadata + + +## Supported Types + +### + +```go +checkoutPriceCreateCustomerMetadata := components.CreateCheckoutPriceCreateCustomerMetadataStr(string{/* values here */}) +``` + +### + +```go +checkoutPriceCreateCustomerMetadata := components.CreateCheckoutPriceCreateCustomerMetadataInteger(int64{/* values here */}) +``` + +### + +```go +checkoutPriceCreateCustomerMetadata := components.CreateCheckoutPriceCreateCustomerMetadataBoolean(bool{/* values here */}) +``` + diff --git a/docs/models/components/checkoutproductcreate.md b/docs/models/components/checkoutproductcreate.md index 055134b..7c62b51 100644 --- a/docs/models/components/checkoutproductcreate.md +++ b/docs/models/components/checkoutproductcreate.md @@ -8,21 +8,22 @@ to the resulting order and/or subscription. ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Metadata` | map[string][components.CheckoutProductCreateMetadata](../../models/components/checkoutproductcreatemetadata.md) | :heavy_minus_sign: | Key-value object allowing you to store additional information.

The key must be a string with a maximum length of **40 characters**.
The value must be either:

* A string with a maximum length of **500 characters**
* An integer
* A boolean

You can store up to **50 key-value pairs**. | -| `CustomFieldData` | [*components.CheckoutProductCreateCustomFieldData](../../models/components/checkoutproductcreatecustomfielddata.md) | :heavy_minus_sign: | Key-value object storing custom field values. | -| `PaymentProcessor` | [components.CheckoutProductCreatePaymentProcessor](../../models/components/checkoutproductcreatepaymentprocessor.md) | :heavy_check_mark: | Payment processor to use. Currently only Stripe is supported. | -| `DiscountID` | **string* | :heavy_minus_sign: | ID of the discount to apply to the checkout. | -| `AllowDiscountCodes` | **bool* | :heavy_minus_sign: | Whether to allow the customer to apply discount codes. If you apply a discount through `discount_id`, it'll still be applied, but the customer won't be able to change it. | -| `Amount` | **int64* | :heavy_minus_sign: | N/A | -| `CustomerID` | **string* | :heavy_minus_sign: | ID of an existing customer in the organization. The customer data will be pre-filled in the checkout form. The resulting order will be linked to this customer. | -| `CustomerName` | **string* | :heavy_minus_sign: | N/A | -| `CustomerEmail` | **string* | :heavy_minus_sign: | N/A | -| `CustomerIPAddress` | **string* | :heavy_minus_sign: | N/A | -| `CustomerBillingAddress` | [*components.Address](../../models/components/address.md) | :heavy_minus_sign: | N/A | -| `CustomerTaxID` | **string* | :heavy_minus_sign: | N/A | -| `SubscriptionID` | **string* | :heavy_minus_sign: | ID of a subscription to upgrade. It must be on a free pricing. If checkout is successful, metadata set on this checkout will be copied to the subscription, and existing keys will be overwritten. | -| `SuccessURL` | **string* | :heavy_minus_sign: | URL where the customer will be redirected after a successful payment.You can add the `checkout_id={CHECKOUT_ID}` query parameter to retrieve the checkout session id. | -| `EmbedOrigin` | **string* | :heavy_minus_sign: | If you plan to embed the checkout session, set this to the Origin of the embedding page. It'll allow the Polar iframe to communicate with the parent page. | -| `ProductID` | *string* | :heavy_check_mark: | ID of the product to checkout. First available price will be selected. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Metadata` | map[string][components.CheckoutProductCreateMetadata](../../models/components/checkoutproductcreatemetadata.md) | :heavy_minus_sign: | Key-value object allowing you to store additional information.

The key must be a string with a maximum length of **40 characters**.
The value must be either:

* A string with a maximum length of **500 characters**
* An integer
* A boolean

You can store up to **50 key-value pairs**. | +| `CustomFieldData` | [*components.CheckoutProductCreateCustomFieldData](../../models/components/checkoutproductcreatecustomfielddata.md) | :heavy_minus_sign: | Key-value object storing custom field values. | +| `PaymentProcessor` | [components.CheckoutProductCreatePaymentProcessor](../../models/components/checkoutproductcreatepaymentprocessor.md) | :heavy_check_mark: | Payment processor to use. Currently only Stripe is supported. | +| `DiscountID` | **string* | :heavy_minus_sign: | ID of the discount to apply to the checkout. | +| `AllowDiscountCodes` | **bool* | :heavy_minus_sign: | Whether to allow the customer to apply discount codes. If you apply a discount through `discount_id`, it'll still be applied, but the customer won't be able to change it. | +| `Amount` | **int64* | :heavy_minus_sign: | N/A | +| `CustomerID` | **string* | :heavy_minus_sign: | ID of an existing customer in the organization. The customer data will be pre-filled in the checkout form. The resulting order will be linked to this customer. | +| `CustomerName` | **string* | :heavy_minus_sign: | N/A | +| `CustomerEmail` | **string* | :heavy_minus_sign: | N/A | +| `CustomerIPAddress` | **string* | :heavy_minus_sign: | N/A | +| `CustomerBillingAddress` | [*components.Address](../../models/components/address.md) | :heavy_minus_sign: | N/A | +| `CustomerTaxID` | **string* | :heavy_minus_sign: | N/A | +| `CustomerMetadata` | map[string][components.CheckoutProductCreateCustomerMetadata](../../models/components/checkoutproductcreatecustomermetadata.md) | :heavy_minus_sign: | Key-value object allowing you to store additional information that'll be copied to the created customer.

The key must be a string with a maximum length of **40 characters**.
The value must be either:

* A string with a maximum length of **500 characters**
* An integer
* A boolean

You can store up to **50 key-value pairs**. | +| `SubscriptionID` | **string* | :heavy_minus_sign: | ID of a subscription to upgrade. It must be on a free pricing. If checkout is successful, metadata set on this checkout will be copied to the subscription, and existing keys will be overwritten. | +| `SuccessURL` | **string* | :heavy_minus_sign: | URL where the customer will be redirected after a successful payment.You can add the `checkout_id={CHECKOUT_ID}` query parameter to retrieve the checkout session id. | +| `EmbedOrigin` | **string* | :heavy_minus_sign: | If you plan to embed the checkout session, set this to the Origin of the embedding page. It'll allow the Polar iframe to communicate with the parent page. | +| `ProductID` | *string* | :heavy_check_mark: | ID of the product to checkout. First available price will be selected. | \ No newline at end of file diff --git a/docs/models/components/checkoutproductcreatecustomermetadata.md b/docs/models/components/checkoutproductcreatecustomermetadata.md new file mode 100644 index 0000000..d32b051 --- /dev/null +++ b/docs/models/components/checkoutproductcreatecustomermetadata.md @@ -0,0 +1,23 @@ +# CheckoutProductCreateCustomerMetadata + + +## Supported Types + +### + +```go +checkoutProductCreateCustomerMetadata := components.CreateCheckoutProductCreateCustomerMetadataStr(string{/* values here */}) +``` + +### + +```go +checkoutProductCreateCustomerMetadata := components.CreateCheckoutProductCreateCustomerMetadataInteger(int64{/* values here */}) +``` + +### + +```go +checkoutProductCreateCustomerMetadata := components.CreateCheckoutProductCreateCustomerMetadataBoolean(bool{/* values here */}) +``` + diff --git a/docs/models/components/checkoutupdate.md b/docs/models/components/checkoutupdate.md index 454f707..c09e761 100644 --- a/docs/models/components/checkoutupdate.md +++ b/docs/models/components/checkoutupdate.md @@ -5,18 +5,19 @@ Update an existing checkout session using an access token. ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `CustomFieldData` | [*components.CustomFieldData](../../models/components/customfielddata.md) | :heavy_minus_sign: | Key-value object storing custom field values. | -| `ProductPriceID` | **string* | :heavy_minus_sign: | ID of the product price to checkout. Must correspond to a price linked to the same product. | -| `Amount` | **int64* | :heavy_minus_sign: | N/A | -| `CustomerName` | **string* | :heavy_minus_sign: | N/A | -| `CustomerEmail` | **string* | :heavy_minus_sign: | N/A | -| `CustomerBillingAddress` | [*components.Address](../../models/components/address.md) | :heavy_minus_sign: | N/A | -| `CustomerTaxID` | **string* | :heavy_minus_sign: | N/A | -| `Metadata` | map[string][components.CheckoutUpdateMetadata](../../models/components/checkoutupdatemetadata.md) | :heavy_minus_sign: | Key-value object allowing you to store additional information.

The key must be a string with a maximum length of **40 characters**.
The value must be either:

* A string with a maximum length of **500 characters**
* An integer
* A boolean

You can store up to **50 key-value pairs**. | -| `DiscountID` | **string* | :heavy_minus_sign: | ID of the discount to apply to the checkout. | -| `AllowDiscountCodes` | **bool* | :heavy_minus_sign: | Whether to allow the customer to apply discount codes. If you apply a discount through `discount_id`, it'll still be applied, but the customer won't be able to change it. | -| `CustomerIPAddress` | **string* | :heavy_minus_sign: | N/A | -| `SuccessURL` | **string* | :heavy_minus_sign: | URL where the customer will be redirected after a successful payment.You can add the `checkout_id={CHECKOUT_ID}` query parameter to retrieve the checkout session id. | -| `EmbedOrigin` | **string* | :heavy_minus_sign: | If you plan to embed the checkout session, set this to the Origin of the embedding page. It'll allow the Polar iframe to communicate with the parent page. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `CustomFieldData` | [*components.CustomFieldData](../../models/components/customfielddata.md) | :heavy_minus_sign: | Key-value object storing custom field values. | +| `ProductPriceID` | **string* | :heavy_minus_sign: | ID of the product price to checkout. Must correspond to a price linked to the same product. | +| `Amount` | **int64* | :heavy_minus_sign: | N/A | +| `CustomerName` | **string* | :heavy_minus_sign: | N/A | +| `CustomerEmail` | **string* | :heavy_minus_sign: | N/A | +| `CustomerBillingAddress` | [*components.Address](../../models/components/address.md) | :heavy_minus_sign: | N/A | +| `CustomerTaxID` | **string* | :heavy_minus_sign: | N/A | +| `Metadata` | map[string][components.CheckoutUpdateMetadata](../../models/components/checkoutupdatemetadata.md) | :heavy_minus_sign: | N/A | +| `DiscountID` | **string* | :heavy_minus_sign: | ID of the discount to apply to the checkout. | +| `AllowDiscountCodes` | **bool* | :heavy_minus_sign: | Whether to allow the customer to apply discount codes. If you apply a discount through `discount_id`, it'll still be applied, but the customer won't be able to change it. | +| `CustomerIPAddress` | **string* | :heavy_minus_sign: | N/A | +| `CustomerMetadata` | map[string][components.CheckoutUpdateCustomerMetadata](../../models/components/checkoutupdatecustomermetadata.md) | :heavy_minus_sign: | Key-value object allowing you to store additional information that'll be copied to the created customer.

The key must be a string with a maximum length of **40 characters**.
The value must be either:

* A string with a maximum length of **500 characters**
* An integer
* A boolean

You can store up to **50 key-value pairs**. | +| `SuccessURL` | **string* | :heavy_minus_sign: | URL where the customer will be redirected after a successful payment.You can add the `checkout_id={CHECKOUT_ID}` query parameter to retrieve the checkout session id. | +| `EmbedOrigin` | **string* | :heavy_minus_sign: | If you plan to embed the checkout session, set this to the Origin of the embedding page. It'll allow the Polar iframe to communicate with the parent page. | \ No newline at end of file diff --git a/docs/models/components/checkoutupdatecustomermetadata.md b/docs/models/components/checkoutupdatecustomermetadata.md new file mode 100644 index 0000000..d288001 --- /dev/null +++ b/docs/models/components/checkoutupdatecustomermetadata.md @@ -0,0 +1,23 @@ +# CheckoutUpdateCustomerMetadata + + +## Supported Types + +### + +```go +checkoutUpdateCustomerMetadata := components.CreateCheckoutUpdateCustomerMetadataStr(string{/* values here */}) +``` + +### + +```go +checkoutUpdateCustomerMetadata := components.CreateCheckoutUpdateCustomerMetadataInteger(int64{/* values here */}) +``` + +### + +```go +checkoutUpdateCustomerMetadata := components.CreateCheckoutUpdateCustomerMetadataBoolean(bool{/* values here */}) +``` + diff --git a/docs/models/components/customer.md b/docs/models/components/customer.md index 98cb534..71482e3 100644 --- a/docs/models/components/customer.md +++ b/docs/models/components/customer.md @@ -5,16 +5,16 @@ A customer in an organization. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `CreatedAt` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | Creation timestamp of the object. | -| `ModifiedAt` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | Last modification timestamp of the object. | -| `ID` | *string* | :heavy_check_mark: | The ID of the object. | -| `Metadata` | map[string][components.CustomerMetadata](../../models/components/customermetadata.md) | :heavy_check_mark: | N/A | -| `Email` | *string* | :heavy_check_mark: | N/A | -| `EmailVerified` | *bool* | :heavy_check_mark: | N/A | -| `Name` | *string* | :heavy_check_mark: | N/A | -| `BillingAddress` | [components.Address](../../models/components/address.md) | :heavy_check_mark: | N/A | -| `TaxID` | [][components.CustomerTaxID](../../models/components/customertaxid.md) | :heavy_check_mark: | N/A | -| `OrganizationID` | *string* | :heavy_check_mark: | N/A | -| `AvatarURL` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `CreatedAt` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | Creation timestamp of the object. | +| `ModifiedAt` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | Last modification timestamp of the object. | +| `ID` | *string* | :heavy_check_mark: | The ID of the object. | +| `Metadata` | map[string][components.CustomerMetadata1](../../models/components/customermetadata1.md) | :heavy_check_mark: | N/A | +| `Email` | *string* | :heavy_check_mark: | N/A | +| `EmailVerified` | *bool* | :heavy_check_mark: | N/A | +| `Name` | *string* | :heavy_check_mark: | N/A | +| `BillingAddress` | [components.Address](../../models/components/address.md) | :heavy_check_mark: | N/A | +| `TaxID` | [][components.CustomerTaxID](../../models/components/customertaxid.md) | :heavy_check_mark: | N/A | +| `OrganizationID` | *string* | :heavy_check_mark: | N/A | +| `AvatarURL` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/customermetadata1.md b/docs/models/components/customermetadata1.md new file mode 100644 index 0000000..a407c9f --- /dev/null +++ b/docs/models/components/customermetadata1.md @@ -0,0 +1,23 @@ +# CustomerMetadata1 + + +## Supported Types + +### + +```go +customerMetadata1 := components.CreateCustomerMetadata1Str(string{/* values here */}) +``` + +### + +```go +customerMetadata1 := components.CreateCustomerMetadata1Integer(int64{/* values here */}) +``` + +### + +```go +customerMetadata1 := components.CreateCustomerMetadata1Boolean(bool{/* values here */}) +``` + diff --git a/docs/models/components/customfieldupdatecheckbox.md b/docs/models/components/customfieldupdatecheckbox.md index f92d0a9..5ea692e 100644 --- a/docs/models/components/customfieldupdatecheckbox.md +++ b/docs/models/components/customfieldupdatecheckbox.md @@ -5,10 +5,10 @@ Schema to update a custom field of type checkbox. ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Metadata` | map[string][components.CustomFieldUpdateCheckboxMetadata](../../models/components/customfieldupdatecheckboxmetadata.md) | :heavy_minus_sign: | Key-value object allowing you to store additional information.

The key must be a string with a maximum length of **40 characters**.
The value must be either:

* A string with a maximum length of **500 characters**
* An integer
* A boolean

You can store up to **50 key-value pairs**. | -| `Name` | **string* | :heavy_minus_sign: | N/A | -| `Slug` | **string* | :heavy_minus_sign: | N/A | -| `Type` | [components.CustomFieldUpdateCheckboxType](../../models/components/customfieldupdatecheckboxtype.md) | :heavy_check_mark: | N/A | -| `Properties` | [*components.CustomFieldCheckboxProperties](../../models/components/customfieldcheckboxproperties.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | +| `Metadata` | map[string][components.CustomFieldUpdateCheckboxMetadata](../../models/components/customfieldupdatecheckboxmetadata.md) | :heavy_minus_sign: | N/A | +| `Name` | **string* | :heavy_minus_sign: | N/A | +| `Slug` | **string* | :heavy_minus_sign: | N/A | +| `Type` | [components.CustomFieldUpdateCheckboxType](../../models/components/customfieldupdatecheckboxtype.md) | :heavy_check_mark: | N/A | +| `Properties` | [*components.CustomFieldCheckboxProperties](../../models/components/customfieldcheckboxproperties.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/customfieldupdatedate.md b/docs/models/components/customfieldupdatedate.md index ba1e48a..3d45883 100644 --- a/docs/models/components/customfieldupdatedate.md +++ b/docs/models/components/customfieldupdatedate.md @@ -5,10 +5,10 @@ Schema to update a custom field of type date. ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Metadata` | map[string][components.CustomFieldUpdateDateMetadata](../../models/components/customfieldupdatedatemetadata.md) | :heavy_minus_sign: | Key-value object allowing you to store additional information.

The key must be a string with a maximum length of **40 characters**.
The value must be either:

* A string with a maximum length of **500 characters**
* An integer
* A boolean

You can store up to **50 key-value pairs**. | -| `Name` | **string* | :heavy_minus_sign: | N/A | -| `Slug` | **string* | :heavy_minus_sign: | N/A | -| `Type` | [components.CustomFieldUpdateDateType](../../models/components/customfieldupdatedatetype.md) | :heavy_check_mark: | N/A | -| `Properties` | [*components.CustomFieldDateProperties](../../models/components/customfielddateproperties.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `Metadata` | map[string][components.CustomFieldUpdateDateMetadata](../../models/components/customfieldupdatedatemetadata.md) | :heavy_minus_sign: | N/A | +| `Name` | **string* | :heavy_minus_sign: | N/A | +| `Slug` | **string* | :heavy_minus_sign: | N/A | +| `Type` | [components.CustomFieldUpdateDateType](../../models/components/customfieldupdatedatetype.md) | :heavy_check_mark: | N/A | +| `Properties` | [*components.CustomFieldDateProperties](../../models/components/customfielddateproperties.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/customfieldupdatenumber.md b/docs/models/components/customfieldupdatenumber.md index 0f8d3e1..5e1b957 100644 --- a/docs/models/components/customfieldupdatenumber.md +++ b/docs/models/components/customfieldupdatenumber.md @@ -5,10 +5,10 @@ Schema to update a custom field of type number. ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Metadata` | map[string][components.CustomFieldUpdateNumberMetadata](../../models/components/customfieldupdatenumbermetadata.md) | :heavy_minus_sign: | Key-value object allowing you to store additional information.

The key must be a string with a maximum length of **40 characters**.
The value must be either:

* A string with a maximum length of **500 characters**
* An integer
* A boolean

You can store up to **50 key-value pairs**. | -| `Name` | **string* | :heavy_minus_sign: | N/A | -| `Slug` | **string* | :heavy_minus_sign: | N/A | -| `Type` | [components.CustomFieldUpdateNumberType](../../models/components/customfieldupdatenumbertype.md) | :heavy_check_mark: | N/A | -| `Properties` | [*components.CustomFieldNumberProperties](../../models/components/customfieldnumberproperties.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `Metadata` | map[string][components.CustomFieldUpdateNumberMetadata](../../models/components/customfieldupdatenumbermetadata.md) | :heavy_minus_sign: | N/A | +| `Name` | **string* | :heavy_minus_sign: | N/A | +| `Slug` | **string* | :heavy_minus_sign: | N/A | +| `Type` | [components.CustomFieldUpdateNumberType](../../models/components/customfieldupdatenumbertype.md) | :heavy_check_mark: | N/A | +| `Properties` | [*components.CustomFieldNumberProperties](../../models/components/customfieldnumberproperties.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/customfieldupdateselect.md b/docs/models/components/customfieldupdateselect.md index 4768eeb..55174a1 100644 --- a/docs/models/components/customfieldupdateselect.md +++ b/docs/models/components/customfieldupdateselect.md @@ -5,10 +5,10 @@ Schema to update a custom field of type select. ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Metadata` | map[string][components.CustomFieldUpdateSelectMetadata](../../models/components/customfieldupdateselectmetadata.md) | :heavy_minus_sign: | Key-value object allowing you to store additional information.

The key must be a string with a maximum length of **40 characters**.
The value must be either:

* A string with a maximum length of **500 characters**
* An integer
* A boolean

You can store up to **50 key-value pairs**. | -| `Name` | **string* | :heavy_minus_sign: | N/A | -| `Slug` | **string* | :heavy_minus_sign: | N/A | -| `Type` | [components.CustomFieldUpdateSelectType](../../models/components/customfieldupdateselecttype.md) | :heavy_check_mark: | N/A | -| `Properties` | [*components.CustomFieldSelectProperties](../../models/components/customfieldselectproperties.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `Metadata` | map[string][components.CustomFieldUpdateSelectMetadata](../../models/components/customfieldupdateselectmetadata.md) | :heavy_minus_sign: | N/A | +| `Name` | **string* | :heavy_minus_sign: | N/A | +| `Slug` | **string* | :heavy_minus_sign: | N/A | +| `Type` | [components.CustomFieldUpdateSelectType](../../models/components/customfieldupdateselecttype.md) | :heavy_check_mark: | N/A | +| `Properties` | [*components.CustomFieldSelectProperties](../../models/components/customfieldselectproperties.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/customfieldupdatetext.md b/docs/models/components/customfieldupdatetext.md index 627b27a..68a579b 100644 --- a/docs/models/components/customfieldupdatetext.md +++ b/docs/models/components/customfieldupdatetext.md @@ -5,10 +5,10 @@ Schema to update a custom field of type text. ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Metadata` | map[string][components.CustomFieldUpdateTextMetadata](../../models/components/customfieldupdatetextmetadata.md) | :heavy_minus_sign: | Key-value object allowing you to store additional information.

The key must be a string with a maximum length of **40 characters**.
The value must be either:

* A string with a maximum length of **500 characters**
* An integer
* A boolean

You can store up to **50 key-value pairs**. | -| `Name` | **string* | :heavy_minus_sign: | N/A | -| `Slug` | **string* | :heavy_minus_sign: | N/A | -| `Type` | [components.CustomFieldUpdateTextType](../../models/components/customfieldupdatetexttype.md) | :heavy_check_mark: | N/A | -| `Properties` | [*components.CustomFieldTextProperties](../../models/components/customfieldtextproperties.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `Metadata` | map[string][components.CustomFieldUpdateTextMetadata](../../models/components/customfieldupdatetextmetadata.md) | :heavy_minus_sign: | N/A | +| `Name` | **string* | :heavy_minus_sign: | N/A | +| `Slug` | **string* | :heavy_minus_sign: | N/A | +| `Type` | [components.CustomFieldUpdateTextType](../../models/components/customfieldupdatetexttype.md) | :heavy_check_mark: | N/A | +| `Properties` | [*components.CustomFieldTextProperties](../../models/components/customfieldtextproperties.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/discountupdate.md b/docs/models/components/discountupdate.md index 36d5eed..d2f54b0 100644 --- a/docs/models/components/discountupdate.md +++ b/docs/models/components/discountupdate.md @@ -5,18 +5,18 @@ Schema to update a discount. ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Metadata` | map[string][components.DiscountUpdateMetadata](../../models/components/discountupdatemetadata.md) | :heavy_minus_sign: | Key-value object allowing you to store additional information.

The key must be a string with a maximum length of **40 characters**.
The value must be either:

* A string with a maximum length of **500 characters**
* An integer
* A boolean

You can store up to **50 key-value pairs**. | -| `Name` | **string* | :heavy_minus_sign: | N/A | -| `Code` | **string* | :heavy_minus_sign: | N/A | -| `StartsAt` | [*time.Time](https://pkg.go.dev/time#Time) | :heavy_minus_sign: | N/A | -| `EndsAt` | [*time.Time](https://pkg.go.dev/time#Time) | :heavy_minus_sign: | N/A | -| `MaxRedemptions` | **int64* | :heavy_minus_sign: | N/A | -| `Duration` | [*components.DiscountDuration](../../models/components/discountduration.md) | :heavy_minus_sign: | N/A | -| `DurationInMonths` | **int64* | :heavy_minus_sign: | N/A | -| `Type` | [*components.DiscountType](../../models/components/discounttype.md) | :heavy_minus_sign: | N/A | -| `Amount` | **int64* | :heavy_minus_sign: | N/A | -| `Currency` | **string* | :heavy_minus_sign: | N/A | -| `BasisPoints` | **int64* | :heavy_minus_sign: | N/A | -| `Products` | []*string* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `Metadata` | map[string][components.DiscountUpdateMetadata](../../models/components/discountupdatemetadata.md) | :heavy_minus_sign: | N/A | +| `Name` | **string* | :heavy_minus_sign: | N/A | +| `Code` | **string* | :heavy_minus_sign: | N/A | +| `StartsAt` | [*time.Time](https://pkg.go.dev/time#Time) | :heavy_minus_sign: | N/A | +| `EndsAt` | [*time.Time](https://pkg.go.dev/time#Time) | :heavy_minus_sign: | N/A | +| `MaxRedemptions` | **int64* | :heavy_minus_sign: | N/A | +| `Duration` | [*components.DiscountDuration](../../models/components/discountduration.md) | :heavy_minus_sign: | N/A | +| `DurationInMonths` | **int64* | :heavy_minus_sign: | N/A | +| `Type` | [*components.DiscountType](../../models/components/discounttype.md) | :heavy_minus_sign: | N/A | +| `Amount` | **int64* | :heavy_minus_sign: | N/A | +| `Currency` | **string* | :heavy_minus_sign: | N/A | +| `BasisPoints` | **int64* | :heavy_minus_sign: | N/A | +| `Products` | []*string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/productupdate.md b/docs/models/components/productupdate.md index bcf171e..1cd9493 100644 --- a/docs/models/components/productupdate.md +++ b/docs/models/components/productupdate.md @@ -5,12 +5,12 @@ Schema to update a product. ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Metadata` | map[string][components.ProductUpdateMetadata](../../models/components/productupdatemetadata.md) | :heavy_minus_sign: | Key-value object allowing you to store additional information.

The key must be a string with a maximum length of **40 characters**.
The value must be either:

* A string with a maximum length of **500 characters**
* An integer
* A boolean

You can store up to **50 key-value pairs**. | -| `Name` | **string* | :heavy_minus_sign: | N/A | -| `Description` | **string* | :heavy_minus_sign: | The description of the product. | -| `IsArchived` | **bool* | :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](../../models/components/productupdateprices.md) | :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. | -| `AttachedCustomFields` | [][components.AttachedCustomFieldCreate](../../models/components/attachedcustomfieldcreate.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Metadata` | map[string][components.ProductUpdateMetadata](../../models/components/productupdatemetadata.md) | :heavy_minus_sign: | N/A | +| `Name` | **string* | :heavy_minus_sign: | N/A | +| `Description` | **string* | :heavy_minus_sign: | The description of the product. | +| `IsArchived` | **bool* | :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](../../models/components/productupdateprices.md) | :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. | +| `AttachedCustomFields` | [][components.AttachedCustomFieldCreate](../../models/components/attachedcustomfieldcreate.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdks/advertisements/README.md b/docs/sdks/advertisements/README.md index ac5011e..d4f71d8 100644 --- a/docs/sdks/advertisements/README.md +++ b/docs/sdks/advertisements/README.md @@ -20,15 +20,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Advertisements.List(ctx, "", nil, nil, nil) @@ -87,15 +87,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Advertisements.Get(ctx, "") diff --git a/docs/sdks/benefitgrants/README.md b/docs/sdks/benefitgrants/README.md index 950792b..0deab28 100644 --- a/docs/sdks/benefitgrants/README.md +++ b/docs/sdks/benefitgrants/README.md @@ -21,16 +21,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/operations" + "polar" + "polar/models/operations" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.CustomerPortal.BenefitGrants.List(ctx, operations.CustomerPortalBenefitGrantsListRequest{}) @@ -86,15 +86,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.CustomerPortal.BenefitGrants.Get(ctx, "") @@ -139,16 +139,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.CustomerPortal.BenefitGrants.Update(ctx, "", components.CreateCustomerBenefitGrantUpdateCustomerBenefitGrantDownloadablesUpdate( diff --git a/docs/sdks/benefits/README.md b/docs/sdks/benefits/README.md index 8a8f2cf..44211eb 100644 --- a/docs/sdks/benefits/README.md +++ b/docs/sdks/benefits/README.md @@ -24,15 +24,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Benefits.List(ctx, nil, nil, nil, nil) @@ -91,16 +91,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Benefits.Create(ctx, components.CreateBenefitCreateBenefitDownloadablesCreate( @@ -153,15 +153,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Benefits.Get(ctx, "") @@ -206,16 +206,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Benefits.Update(ctx, "", operations.CreateBenefitsUpdateBenefitUpdateBenefitGitHubRepositoryUpdate( @@ -274,15 +274,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Benefits.Delete(ctx, "") @@ -330,16 +330,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/operations" + "polar" + "polar/models/operations" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Benefits.Grants(ctx, operations.BenefitsGrantsRequest{ diff --git a/docs/sdks/checkoutlinks/README.md b/docs/sdks/checkoutlinks/README.md index 91b5638..74d9541 100644 --- a/docs/sdks/checkoutlinks/README.md +++ b/docs/sdks/checkoutlinks/README.md @@ -23,16 +23,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/operations" + "polar" + "polar/models/operations" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.CheckoutLinks.List(ctx, operations.CheckoutLinksListRequest{}) @@ -88,16 +88,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.CheckoutLinks.Create(ctx, components.CreateCheckoutLinkCreateCheckoutLinkPriceCreate( @@ -145,15 +145,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.CheckoutLinks.Get(ctx, "") @@ -198,16 +198,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.CheckoutLinks.Update(ctx, "", components.CheckoutLinkUpdate{}) @@ -253,15 +253,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.CheckoutLinks.Delete(ctx, "") diff --git a/docs/sdks/checkouts/README.md b/docs/sdks/checkouts/README.md index 6f4f8bd..ab5803f 100644 --- a/docs/sdks/checkouts/README.md +++ b/docs/sdks/checkouts/README.md @@ -22,16 +22,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Checkouts.Create(ctx, components.CheckoutLegacyCreate{ @@ -80,15 +80,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Checkouts.Get(ctx, "") diff --git a/docs/sdks/clients/README.md b/docs/sdks/clients/README.md index 45ee8fe..d0679e5 100644 --- a/docs/sdks/clients/README.md +++ b/docs/sdks/clients/README.md @@ -23,15 +23,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Oauth2.Clients.List(ctx, nil, nil) @@ -88,16 +88,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Oauth2.Clients.Create(ctx, components.OAuth2ClientConfiguration{ @@ -146,15 +146,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Oauth2.Clients.Get(ctx, "") @@ -198,16 +198,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Oauth2.Clients.Update(ctx, "", components.OAuth2ClientConfigurationUpdate{ @@ -260,15 +260,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Oauth2.Clients.Delete(ctx, "") diff --git a/docs/sdks/custom/README.md b/docs/sdks/custom/README.md index 3eb2f06..354735f 100644 --- a/docs/sdks/custom/README.md +++ b/docs/sdks/custom/README.md @@ -25,16 +25,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/operations" + "polar" + "polar/models/operations" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Checkouts.Custom.List(ctx, operations.CheckoutsCustomListRequest{}) @@ -90,16 +90,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Checkouts.Custom.Create(ctx, components.CreateCheckoutCreateCheckoutPriceCreate( @@ -147,15 +147,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Checkouts.Custom.Get(ctx, "") @@ -200,16 +200,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Checkouts.Custom.Update(ctx, "", components.CheckoutUpdate{}) @@ -255,15 +255,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Checkouts.Custom.ClientGet(ctx, "") @@ -308,16 +308,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Checkouts.Custom.ClientUpdate(ctx, "", components.CheckoutUpdatePublic{}) @@ -365,16 +365,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Checkouts.Custom.ClientConfirm(ctx, "", components.CheckoutConfirmStripe{}) diff --git a/docs/sdks/customers/README.md b/docs/sdks/customers/README.md index f65cba2..37c8e48 100644 --- a/docs/sdks/customers/README.md +++ b/docs/sdks/customers/README.md @@ -23,16 +23,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/operations" + "polar" + "polar/models/operations" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Customers.List(ctx, operations.CustomersListRequest{}) @@ -88,16 +88,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Customers.Create(ctx, components.CustomerCreate{ @@ -143,15 +143,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Customers.Get(ctx, "") @@ -196,16 +196,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Customers.Update(ctx, "", components.CustomerUpdate{}) @@ -253,15 +253,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Customers.Delete(ctx, "") diff --git a/docs/sdks/customfields/README.md b/docs/sdks/customfields/README.md index f47603c..b1f1563 100644 --- a/docs/sdks/customfields/README.md +++ b/docs/sdks/customfields/README.md @@ -23,16 +23,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/operations" + "polar" + "polar/models/operations" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.CustomFields.List(ctx, operations.CustomFieldsListRequest{}) @@ -88,16 +88,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.CustomFields.Create(ctx, components.CreateCustomFieldCreateCustomFieldCreateSelect( @@ -154,15 +154,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.CustomFields.Get(ctx, "") @@ -207,16 +207,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.CustomFields.Update(ctx, "", components.CreateCustomFieldUpdateCustomFieldUpdateNumber( @@ -264,15 +264,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.CustomFields.Delete(ctx, "") diff --git a/docs/sdks/discounts/README.md b/docs/sdks/discounts/README.md index 5fd26bb..9ce3f0c 100644 --- a/docs/sdks/discounts/README.md +++ b/docs/sdks/discounts/README.md @@ -23,16 +23,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/operations" + "polar" + "polar/models/operations" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Discounts.List(ctx, operations.DiscountsListRequest{}) @@ -88,16 +88,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Discounts.Create(ctx, components.CreateDiscountCreateDiscountFixedRepeatDurationCreate( @@ -149,15 +149,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Discounts.Get(ctx, "") @@ -202,16 +202,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Discounts.Update(ctx, "", components.DiscountUpdate{}) @@ -257,15 +257,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Discounts.Delete(ctx, "") diff --git a/docs/sdks/downloadables/README.md b/docs/sdks/downloadables/README.md index 2d7a830..f593df0 100644 --- a/docs/sdks/downloadables/README.md +++ b/docs/sdks/downloadables/README.md @@ -20,15 +20,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.CustomerPortal.Downloadables.List(ctx, nil, nil, nil, nil) @@ -87,15 +87,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.CustomerPortal.Downloadables.Get(ctx, "") diff --git a/docs/sdks/externalorganizations/README.md b/docs/sdks/externalorganizations/README.md index 10b07d6..96b509c 100644 --- a/docs/sdks/externalorganizations/README.md +++ b/docs/sdks/externalorganizations/README.md @@ -19,16 +19,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/operations" + "polar" + "polar/models/operations" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.ExternalOrganizations.List(ctx, operations.ExternalOrganizationsListRequest{}) diff --git a/docs/sdks/files/README.md b/docs/sdks/files/README.md index 01eed58..3762d57 100644 --- a/docs/sdks/files/README.md +++ b/docs/sdks/files/README.md @@ -23,15 +23,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Files.List(ctx, nil, nil, nil, nil) @@ -90,16 +90,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Files.Create(ctx, components.CreateFileCreateProductMediaFileCreate( @@ -158,16 +158,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Files.Uploaded(ctx, "", components.FileUploadCompleted{ @@ -177,17 +177,17 @@ func main() { components.S3FileUploadCompletedPart{ Number: 173116, ChecksumEtag: "", - ChecksumSha256Base64: polargo.String(""), + ChecksumSha256Base64: polar.String(""), }, components.S3FileUploadCompletedPart{ Number: 894030, ChecksumEtag: "", - ChecksumSha256Base64: polargo.String(""), + ChecksumSha256Base64: polar.String(""), }, components.S3FileUploadCompletedPart{ Number: 673715, ChecksumEtag: "", - ChecksumSha256Base64: polargo.String(""), + ChecksumSha256Base64: polar.String(""), }, }, }) @@ -234,16 +234,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Files.Update(ctx, "", components.FilePatch{}) @@ -290,15 +290,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Files.Delete(ctx, "") diff --git a/docs/sdks/licensekeys/README.md b/docs/sdks/licensekeys/README.md index c53d02e..2f470b0 100644 --- a/docs/sdks/licensekeys/README.md +++ b/docs/sdks/licensekeys/README.md @@ -22,15 +22,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.LicenseKeys.List(ctx, nil, nil, nil, nil) @@ -91,15 +91,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.LicenseKeys.Get(ctx, "") @@ -145,16 +145,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.LicenseKeys.Update(ctx, "", components.LicenseKeyUpdate{}) @@ -201,15 +201,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.LicenseKeys.GetActivation(ctx, "", "") diff --git a/docs/sdks/metrics/README.md b/docs/sdks/metrics/README.md index df7ab49..62a6ece 100644 --- a/docs/sdks/metrics/README.md +++ b/docs/sdks/metrics/README.md @@ -20,18 +20,18 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/types" - "github.com/polarsource/polar-go/models/components" - "github.com/polarsource/polar-go/models/operations" + "polar" + "polar/types" + "polar/models/components" + "polar/models/operations" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Metrics.Get(ctx, operations.MetricsGetRequest{ @@ -79,15 +79,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Metrics.Limits(ctx) diff --git a/docs/sdks/oauth2/README.md b/docs/sdks/oauth2/README.md index 7658513..90561e0 100644 --- a/docs/sdks/oauth2/README.md +++ b/docs/sdks/oauth2/README.md @@ -23,15 +23,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Oauth2.Authorize(ctx) @@ -73,16 +73,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Oauth2.Token(ctx, operations.CreateOauth2RequestTokenRequestBodyOnev11oauth21tokenPostXComponentsAuthorizationCodeTokenRequest( @@ -132,16 +132,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/operations" + "polar" + "polar/models/operations" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Oauth2.Revoke(ctx, operations.Oauth2RevokeTokenRevokeTokenRequest{ @@ -188,16 +188,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/operations" + "polar" + "polar/models/operations" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Oauth2.Introspect(ctx, operations.Oauth2IntrospectTokenIntrospectTokenRequest{ @@ -244,15 +244,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Oauth2.Userinfo(ctx) diff --git a/docs/sdks/orders/README.md b/docs/sdks/orders/README.md index 68f592f..18d34b3 100644 --- a/docs/sdks/orders/README.md +++ b/docs/sdks/orders/README.md @@ -21,16 +21,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/operations" + "polar" + "polar/models/operations" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Orders.List(ctx, operations.OrdersListRequest{}) @@ -86,15 +86,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Orders.Get(ctx, "") @@ -139,15 +139,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Orders.Invoice(ctx, "") diff --git a/docs/sdks/organizations/README.md b/docs/sdks/organizations/README.md index 0ab5287..42758ac 100644 --- a/docs/sdks/organizations/README.md +++ b/docs/sdks/organizations/README.md @@ -22,15 +22,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Organizations.List(ctx, nil, nil, nil, nil) @@ -89,16 +89,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Organizations.Create(ctx, components.OrganizationCreate{ @@ -145,15 +145,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Organizations.Get(ctx, "") @@ -198,16 +198,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Organizations.Update(ctx, "", components.OrganizationUpdate{}) diff --git a/docs/sdks/polarcustomers/README.md b/docs/sdks/polarcustomers/README.md index 75a0617..03cbde5 100644 --- a/docs/sdks/polarcustomers/README.md +++ b/docs/sdks/polarcustomers/README.md @@ -19,15 +19,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.CustomerPortal.Customers.Get(ctx, "") diff --git a/docs/sdks/polarlicensekeys/README.md b/docs/sdks/polarlicensekeys/README.md index 14bac42..7018ff5 100644 --- a/docs/sdks/polarlicensekeys/README.md +++ b/docs/sdks/polarlicensekeys/README.md @@ -23,15 +23,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.CustomerPortal.LicenseKeys.List(ctx, nil, nil, nil, nil) @@ -92,15 +92,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.CustomerPortal.LicenseKeys.Get(ctx, "") @@ -145,16 +145,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.CustomerPortal.LicenseKeys.Validate(ctx, components.LicenseKeyValidate{ @@ -202,16 +202,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.CustomerPortal.LicenseKeys.Activate(ctx, components.LicenseKeyActivate{ @@ -261,16 +261,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.CustomerPortal.LicenseKeys.Deactivate(ctx, components.LicenseKeyDeactivate{ diff --git a/docs/sdks/polarorders/README.md b/docs/sdks/polarorders/README.md index 99188ac..ed8c53c 100644 --- a/docs/sdks/polarorders/README.md +++ b/docs/sdks/polarorders/README.md @@ -21,16 +21,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/operations" + "polar" + "polar/models/operations" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.CustomerPortal.Orders.List(ctx, operations.CustomerPortalOrdersListRequest{}) @@ -86,15 +86,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.CustomerPortal.Orders.Get(ctx, "") @@ -139,15 +139,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.CustomerPortal.Orders.Invoice(ctx, "") diff --git a/docs/sdks/polarorganizations/README.md b/docs/sdks/polarorganizations/README.md index 6997477..3773c34 100644 --- a/docs/sdks/polarorganizations/README.md +++ b/docs/sdks/polarorganizations/README.md @@ -19,15 +19,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.CustomerPortal.Organizations.Get(ctx, "") diff --git a/docs/sdks/polarsubscriptions/README.md b/docs/sdks/polarsubscriptions/README.md index e8daaac..fbf7613 100644 --- a/docs/sdks/polarsubscriptions/README.md +++ b/docs/sdks/polarsubscriptions/README.md @@ -22,16 +22,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/operations" + "polar" + "polar/models/operations" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.CustomerPortal.Subscriptions.List(ctx, operations.CustomerPortalSubscriptionsListRequest{}) @@ -87,15 +87,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.CustomerPortal.Subscriptions.Get(ctx, "") @@ -140,16 +140,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.CustomerPortal.Subscriptions.Update(ctx, "", components.CustomerSubscriptionUpdate{ @@ -197,15 +197,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.CustomerPortal.Subscriptions.Cancel(ctx, "") diff --git a/docs/sdks/products/README.md b/docs/sdks/products/README.md index 8c45bbc..7f10a99 100644 --- a/docs/sdks/products/README.md +++ b/docs/sdks/products/README.md @@ -23,16 +23,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/operations" + "polar" + "polar/models/operations" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Products.List(ctx, operations.ProductsListRequest{}) @@ -88,16 +88,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Products.Create(ctx, components.CreateProductCreateProductRecurringCreate( @@ -153,15 +153,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Products.Get(ctx, "") @@ -206,16 +206,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Products.Update(ctx, "", components.ProductUpdate{}) @@ -262,16 +262,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Products.UpdateBenefits(ctx, "", components.ProductBenefitsUpdate{ diff --git a/docs/sdks/repositories/README.md b/docs/sdks/repositories/README.md index d8ba667..12936b3 100644 --- a/docs/sdks/repositories/README.md +++ b/docs/sdks/repositories/README.md @@ -21,16 +21,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/operations" + "polar" + "polar/models/operations" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Repositories.List(ctx, operations.RepositoriesListRequest{}) @@ -86,15 +86,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Repositories.Get(ctx, "") @@ -139,16 +139,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/components" + "polar" + "polar/models/components" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Repositories.Update(ctx, "", components.RepositoryUpdate{}) diff --git a/docs/sdks/subscriptions/README.md b/docs/sdks/subscriptions/README.md index 371a559..f873ebb 100644 --- a/docs/sdks/subscriptions/README.md +++ b/docs/sdks/subscriptions/README.md @@ -20,16 +20,16 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" - "github.com/polarsource/polar-go/models/operations" + "polar" + "polar/models/operations" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Subscriptions.List(ctx, operations.SubscriptionsListRequest{}) @@ -85,15 +85,15 @@ package main import( "context" "os" - polargo "github.com/polarsource/polar-go" + "polar" "log" ) func main() { ctx := context.Background() - s := polargo.New( - polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), + s := polar.New( + polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Subscriptions.Export(ctx, nil) diff --git a/downloadables.go b/downloadables.go index efdf0fa..ed98035 100644 --- a/downloadables.go +++ b/downloadables.go @@ -1,20 +1,20 @@ // Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -package polargo +package polar import ( "bytes" "context" "fmt" - "github.com/polarsource/polar-go/internal/hooks" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/apierrors" - "github.com/polarsource/polar-go/models/components" - "github.com/polarsource/polar-go/models/operations" - "github.com/polarsource/polar-go/retry" "github.com/spyzhov/ajson" "net/http" "net/url" + "polar/internal/hooks" + "polar/internal/utils" + "polar/models/apierrors" + "polar/models/components" + "polar/models/operations" + "polar/retry" ) type Downloadables struct { diff --git a/externalorganizations.go b/externalorganizations.go index 8feee72..1e09b92 100644 --- a/externalorganizations.go +++ b/externalorganizations.go @@ -1,20 +1,20 @@ // Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -package polargo +package polar import ( "bytes" "context" "fmt" - "github.com/polarsource/polar-go/internal/hooks" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/apierrors" - "github.com/polarsource/polar-go/models/components" - "github.com/polarsource/polar-go/models/operations" - "github.com/polarsource/polar-go/retry" "github.com/spyzhov/ajson" "net/http" "net/url" + "polar/internal/hooks" + "polar/internal/utils" + "polar/models/apierrors" + "polar/models/components" + "polar/models/operations" + "polar/retry" ) type ExternalOrganizations struct { diff --git a/files.go b/files.go index 994971a..a0c2618 100644 --- a/files.go +++ b/files.go @@ -1,20 +1,20 @@ // Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -package polargo +package polar import ( "bytes" "context" "fmt" - "github.com/polarsource/polar-go/internal/hooks" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/apierrors" - "github.com/polarsource/polar-go/models/components" - "github.com/polarsource/polar-go/models/operations" - "github.com/polarsource/polar-go/retry" "github.com/spyzhov/ajson" "net/http" "net/url" + "polar/internal/hooks" + "polar/internal/utils" + "polar/models/apierrors" + "polar/models/components" + "polar/models/operations" + "polar/retry" ) type Files struct { diff --git a/go.mod b/go.mod index 673adef..8a5a8ba 100644 --- a/go.mod +++ b/go.mod @@ -1,12 +1,8 @@ - -module github.com/polarsource/polar-go +module polar go 1.20 require ( github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05 - github.com/spyzhov/ajson v0.8.0 + github.com/spyzhov/ajson v0.8.0 ) - -// Legacy (experiment) before Speakeasy -retract v0.0.1-alpha.1 diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..b52e1a8 --- /dev/null +++ b/go.sum @@ -0,0 +1,4 @@ +github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05 h1:S92OBrGuLLZsyM5ybUzgc/mPjIYk2AZqufieooe98uw= +github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05/go.mod h1:M9R1FoZ3y//hwwnJtO51ypFGwm8ZfpxPT/ZLtO1mcgQ= +github.com/spyzhov/ajson v0.8.0 h1:sFXyMbi4Y/BKjrsfkUZHSjA2JM1184enheSjjoT/zCc= +github.com/spyzhov/ajson v0.8.0/go.mod h1:63V+CGM6f1Bu/p4nLIN8885ojBdt88TbLoSFzyqMuVA= diff --git a/internal/utils/form.go b/internal/utils/form.go index 45f9bfc..b98804f 100644 --- a/internal/utils/form.go +++ b/internal/utils/form.go @@ -12,7 +12,7 @@ import ( "github.com/ericlagergren/decimal" - "github.com/polarsource/polar-go/types" + "polar/types" ) func populateForm(paramName string, explode bool, objType reflect.Type, objValue reflect.Value, delimiter string, getFieldName func(reflect.StructField) string) url.Values { diff --git a/internal/utils/json.go b/internal/utils/json.go index 53aed10..48507a1 100644 --- a/internal/utils/json.go +++ b/internal/utils/json.go @@ -13,7 +13,7 @@ import ( "time" "unsafe" - "github.com/polarsource/polar-go/types" + "polar/types" "github.com/ericlagergren/decimal" ) diff --git a/internal/utils/pathparams.go b/internal/utils/pathparams.go index 059672e..6021826 100644 --- a/internal/utils/pathparams.go +++ b/internal/utils/pathparams.go @@ -13,7 +13,7 @@ import ( "github.com/ericlagergren/decimal" - "github.com/polarsource/polar-go/types" + "polar/types" ) func GenerateURL(_ context.Context, serverURL, path string, pathParams interface{}, globals interface{}) (string, error) { diff --git a/internal/utils/queryparams.go b/internal/utils/queryparams.go index 70bcaed..fc8511a 100644 --- a/internal/utils/queryparams.go +++ b/internal/utils/queryparams.go @@ -14,7 +14,7 @@ import ( "github.com/ericlagergren/decimal" - "github.com/polarsource/polar-go/types" + "polar/types" ) func PopulateQueryParams(_ context.Context, req *http.Request, queryParams interface{}, globals interface{}) error { diff --git a/internal/utils/retries.go b/internal/utils/retries.go index b8d7a5f..d25240b 100644 --- a/internal/utils/retries.go +++ b/internal/utils/retries.go @@ -6,11 +6,11 @@ import ( "context" "errors" "fmt" - "github.com/polarsource/polar-go/retry" "math" "math/rand" "net/http" "net/url" + "polar/retry" "strconv" "strings" "time" diff --git a/licensekeys.go b/licensekeys.go index e3ebddb..b059779 100644 --- a/licensekeys.go +++ b/licensekeys.go @@ -1,20 +1,20 @@ // Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -package polargo +package polar import ( "bytes" "context" "fmt" - "github.com/polarsource/polar-go/internal/hooks" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/apierrors" - "github.com/polarsource/polar-go/models/components" - "github.com/polarsource/polar-go/models/operations" - "github.com/polarsource/polar-go/retry" "github.com/spyzhov/ajson" "net/http" "net/url" + "polar/internal/hooks" + "polar/internal/utils" + "polar/models/apierrors" + "polar/models/components" + "polar/models/operations" + "polar/retry" ) type LicenseKeys struct { diff --git a/metrics.go b/metrics.go index c7d014a..1442c36 100644 --- a/metrics.go +++ b/metrics.go @@ -1,19 +1,19 @@ // Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -package polargo +package polar import ( "bytes" "context" "fmt" - "github.com/polarsource/polar-go/internal/hooks" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/apierrors" - "github.com/polarsource/polar-go/models/components" - "github.com/polarsource/polar-go/models/operations" - "github.com/polarsource/polar-go/retry" "net/http" "net/url" + "polar/internal/hooks" + "polar/internal/utils" + "polar/models/apierrors" + "polar/models/components" + "polar/models/operations" + "polar/retry" ) type Metrics struct { diff --git a/models/apierrors/httpvalidationerror.go b/models/apierrors/httpvalidationerror.go index c035e40..909070c 100644 --- a/models/apierrors/httpvalidationerror.go +++ b/models/apierrors/httpvalidationerror.go @@ -4,7 +4,7 @@ package apierrors import ( "encoding/json" - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type HTTPValidationError struct { diff --git a/models/components/advertisementcampaign.go b/models/components/advertisementcampaign.go index 63f2276..1167126 100644 --- a/models/components/advertisementcampaign.go +++ b/models/components/advertisementcampaign.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/authorizeresponseorganization.go b/models/components/authorizeresponseorganization.go index 9088b0a..aae42ee 100644 --- a/models/components/authorizeresponseorganization.go +++ b/models/components/authorizeresponseorganization.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type AuthorizeResponseOrganizationSubType string diff --git a/models/components/authorizeresponseuser.go b/models/components/authorizeresponseuser.go index 16aff46..67c6108 100644 --- a/models/components/authorizeresponseuser.go +++ b/models/components/authorizeresponseuser.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type AuthorizeResponseUserSubType string diff --git a/models/components/benefit.go b/models/components/benefit.go index d9e933d..f9a6ad5 100644 --- a/models/components/benefit.go +++ b/models/components/benefit.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type BenefitUnionType string diff --git a/models/components/benefitads.go b/models/components/benefitads.go index 516eee5..3c9f19b 100644 --- a/models/components/benefitads.go +++ b/models/components/benefitads.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/benefitadscreate.go b/models/components/benefitadscreate.go index 429080b..34d001d 100644 --- a/models/components/benefitadscreate.go +++ b/models/components/benefitadscreate.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type BenefitAdsCreateType string diff --git a/models/components/benefitadsproperties.go b/models/components/benefitadsproperties.go index 29782ef..1a04775 100644 --- a/models/components/benefitadsproperties.go +++ b/models/components/benefitadsproperties.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) // BenefitAdsProperties - Properties for a benefit of type `ads`. diff --git a/models/components/benefitadssubscriber.go b/models/components/benefitadssubscriber.go index d9a547c..7505f85 100644 --- a/models/components/benefitadssubscriber.go +++ b/models/components/benefitadssubscriber.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/benefitadsupdate.go b/models/components/benefitadsupdate.go index 4a8418c..830aa14 100644 --- a/models/components/benefitadsupdate.go +++ b/models/components/benefitadsupdate.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type BenefitAdsUpdateType string diff --git a/models/components/benefitbase.go b/models/components/benefitbase.go index ef4a3c9..e72b1d3 100644 --- a/models/components/benefitbase.go +++ b/models/components/benefitbase.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/benefitcreate.go b/models/components/benefitcreate.go index 350e61c..821f923 100644 --- a/models/components/benefitcreate.go +++ b/models/components/benefitcreate.go @@ -6,7 +6,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type BenefitCreateType string diff --git a/models/components/benefitcustom.go b/models/components/benefitcustom.go index 6155bef..e3120ef 100644 --- a/models/components/benefitcustom.go +++ b/models/components/benefitcustom.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) @@ -53,7 +53,7 @@ type BenefitCustom struct { OrganizationID string `json:"organization_id"` // Properties for a benefit of type `custom`. Properties BenefitCustomProperties `json:"properties"` - // Whether the benefit is taxable. + // Deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. IsTaxApplicable bool `json:"is_tax_applicable"` } diff --git a/models/components/benefitcustomcreate.go b/models/components/benefitcustomcreate.go index e7a46d9..f47b5e9 100644 --- a/models/components/benefitcustomcreate.go +++ b/models/components/benefitcustomcreate.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type BenefitCustomCreateType string @@ -38,8 +38,6 @@ type BenefitCustomCreate struct { Description string `json:"description"` // The ID of the organization owning the benefit. **Required unless you use an organization token.** OrganizationID *string `json:"organization_id,omitempty"` - // Whether the benefit is taxable. - IsTaxApplicable bool `json:"is_tax_applicable"` // Properties for creating a benefit of type `custom`. Properties BenefitCustomCreateProperties `json:"properties"` } @@ -73,13 +71,6 @@ func (o *BenefitCustomCreate) GetOrganizationID() *string { return o.OrganizationID } -func (o *BenefitCustomCreate) GetIsTaxApplicable() bool { - if o == nil { - return false - } - return o.IsTaxApplicable -} - func (o *BenefitCustomCreate) GetProperties() BenefitCustomCreateProperties { if o == nil { return BenefitCustomCreateProperties{} diff --git a/models/components/benefitcustomsubscriber.go b/models/components/benefitcustomsubscriber.go index c214e8a..70c01b9 100644 --- a/models/components/benefitcustomsubscriber.go +++ b/models/components/benefitcustomsubscriber.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/benefitcustomupdate.go b/models/components/benefitcustomupdate.go index eb45a1c..8cbf5b0 100644 --- a/models/components/benefitcustomupdate.go +++ b/models/components/benefitcustomupdate.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type BenefitCustomUpdateType string diff --git a/models/components/benefitdiscord.go b/models/components/benefitdiscord.go index 7da96ff..9657e77 100644 --- a/models/components/benefitdiscord.go +++ b/models/components/benefitdiscord.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/benefitdiscordcreate.go b/models/components/benefitdiscordcreate.go index 11297fc..42c6eee 100644 --- a/models/components/benefitdiscordcreate.go +++ b/models/components/benefitdiscordcreate.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type BenefitDiscordCreateType string diff --git a/models/components/benefitdiscordsubscriber.go b/models/components/benefitdiscordsubscriber.go index ca9a83c..e4611e1 100644 --- a/models/components/benefitdiscordsubscriber.go +++ b/models/components/benefitdiscordsubscriber.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/benefitdiscordupdate.go b/models/components/benefitdiscordupdate.go index 535a73a..3b201b2 100644 --- a/models/components/benefitdiscordupdate.go +++ b/models/components/benefitdiscordupdate.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type BenefitDiscordUpdateType string diff --git a/models/components/benefitdownloadables.go b/models/components/benefitdownloadables.go index 20dbc2c..bcda8a0 100644 --- a/models/components/benefitdownloadables.go +++ b/models/components/benefitdownloadables.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/benefitdownloadablescreate.go b/models/components/benefitdownloadablescreate.go index 8ca9782..674f47f 100644 --- a/models/components/benefitdownloadablescreate.go +++ b/models/components/benefitdownloadablescreate.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type BenefitDownloadablesCreateType string diff --git a/models/components/benefitdownloadablessubscriber.go b/models/components/benefitdownloadablessubscriber.go index e8f1468..d0d2104 100644 --- a/models/components/benefitdownloadablessubscriber.go +++ b/models/components/benefitdownloadablessubscriber.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/benefitdownloadablesupdate.go b/models/components/benefitdownloadablesupdate.go index 8070b81..41f7e86 100644 --- a/models/components/benefitdownloadablesupdate.go +++ b/models/components/benefitdownloadablesupdate.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type BenefitDownloadablesUpdateType string diff --git a/models/components/benefitgithubrepository.go b/models/components/benefitgithubrepository.go index d439728..0b00d90 100644 --- a/models/components/benefitgithubrepository.go +++ b/models/components/benefitgithubrepository.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/benefitgithubrepositorycreate.go b/models/components/benefitgithubrepositorycreate.go index afe26ef..978059a 100644 --- a/models/components/benefitgithubrepositorycreate.go +++ b/models/components/benefitgithubrepositorycreate.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type BenefitGitHubRepositoryCreateType string diff --git a/models/components/benefitgithubrepositorysubscriber.go b/models/components/benefitgithubrepositorysubscriber.go index 63be168..925617d 100644 --- a/models/components/benefitgithubrepositorysubscriber.go +++ b/models/components/benefitgithubrepositorysubscriber.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/benefitgithubrepositoryupdate.go b/models/components/benefitgithubrepositoryupdate.go index 7847cf7..c1cba3e 100644 --- a/models/components/benefitgithubrepositoryupdate.go +++ b/models/components/benefitgithubrepositoryupdate.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type BenefitGitHubRepositoryUpdateType string diff --git a/models/components/benefitgrant.go b/models/components/benefitgrant.go index e485462..477a8ec 100644 --- a/models/components/benefitgrant.go +++ b/models/components/benefitgrant.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/benefitgrantwebhook.go b/models/components/benefitgrantwebhook.go index bf7cf12..37899f9 100644 --- a/models/components/benefitgrantwebhook.go +++ b/models/components/benefitgrantwebhook.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/benefitlicensekeys.go b/models/components/benefitlicensekeys.go index 3fca119..c01eb85 100644 --- a/models/components/benefitlicensekeys.go +++ b/models/components/benefitlicensekeys.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/benefitlicensekeyscreate.go b/models/components/benefitlicensekeyscreate.go index ae671ec..77a1b6d 100644 --- a/models/components/benefitlicensekeyscreate.go +++ b/models/components/benefitlicensekeyscreate.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type BenefitLicenseKeysCreateType string diff --git a/models/components/benefitlicensekeyssubscriber.go b/models/components/benefitlicensekeyssubscriber.go index 236ca77..e77af3f 100644 --- a/models/components/benefitlicensekeyssubscriber.go +++ b/models/components/benefitlicensekeyssubscriber.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/benefitlicensekeysupdate.go b/models/components/benefitlicensekeysupdate.go index 478b990..b050769 100644 --- a/models/components/benefitlicensekeysupdate.go +++ b/models/components/benefitlicensekeysupdate.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type BenefitLicenseKeysUpdateType string diff --git a/models/components/checkout.go b/models/components/checkout.go index 699fa97..fefabb4 100644 --- a/models/components/checkout.go +++ b/models/components/checkout.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) @@ -208,6 +208,91 @@ func (u CheckoutDiscount) MarshalJSON() ([]byte, error) { return nil, errors.New("could not marshal union type CheckoutDiscount: all fields are null") } +type CustomerMetadataType string + +const ( + CustomerMetadataTypeStr CustomerMetadataType = "str" + CustomerMetadataTypeInteger CustomerMetadataType = "integer" + CustomerMetadataTypeBoolean CustomerMetadataType = "boolean" +) + +type CustomerMetadata struct { + Str *string `queryParam:"inline"` + Integer *int64 `queryParam:"inline"` + Boolean *bool `queryParam:"inline"` + + Type CustomerMetadataType +} + +func CreateCustomerMetadataStr(str string) CustomerMetadata { + typ := CustomerMetadataTypeStr + + return CustomerMetadata{ + Str: &str, + Type: typ, + } +} + +func CreateCustomerMetadataInteger(integer int64) CustomerMetadata { + typ := CustomerMetadataTypeInteger + + return CustomerMetadata{ + Integer: &integer, + Type: typ, + } +} + +func CreateCustomerMetadataBoolean(boolean bool) CustomerMetadata { + typ := CustomerMetadataTypeBoolean + + return CustomerMetadata{ + Boolean: &boolean, + Type: typ, + } +} + +func (u *CustomerMetadata) UnmarshalJSON(data []byte) error { + + var str string = "" + if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + u.Str = &str + u.Type = CustomerMetadataTypeStr + return nil + } + + var integer int64 = int64(0) + if err := utils.UnmarshalJSON(data, &integer, "", true, true); err == nil { + u.Integer = &integer + u.Type = CustomerMetadataTypeInteger + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + u.Boolean = &boolean + u.Type = CustomerMetadataTypeBoolean + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CustomerMetadata", string(data)) +} + +func (u CustomerMetadata) MarshalJSON() ([]byte, error) { + if u.Str != nil { + return utils.MarshalJSON(u.Str, "", true) + } + + if u.Integer != nil { + return utils.MarshalJSON(u.Integer, "", true) + } + + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + return nil, errors.New("could not marshal union type CustomerMetadata: all fields are null") +} + // Checkout session data retrieved using an access token. type Checkout struct { // Creation timestamp of the object. @@ -266,11 +351,12 @@ type Checkout struct { PaymentProcessorMetadata PaymentProcessorMetadata `json:"payment_processor_metadata"` Metadata map[string]CheckoutMetadata `json:"metadata"` // Product data for a checkout session. - Product CheckoutProduct `json:"product"` - ProductPrice ProductPrice `json:"product_price"` - Discount *CheckoutDiscount `json:"discount"` - SubscriptionID *string `json:"subscription_id"` - AttachedCustomFields []AttachedCustomField `json:"attached_custom_fields"` + Product CheckoutProduct `json:"product"` + ProductPrice ProductPrice `json:"product_price"` + Discount *CheckoutDiscount `json:"discount"` + SubscriptionID *string `json:"subscription_id"` + AttachedCustomFields []AttachedCustomField `json:"attached_custom_fields"` + CustomerMetadata map[string]CustomerMetadata `json:"customer_metadata"` } func (c Checkout) MarshalJSON() ([]byte, error) { @@ -546,3 +632,10 @@ func (o *Checkout) GetAttachedCustomFields() []AttachedCustomField { } return o.AttachedCustomFields } + +func (o *Checkout) GetCustomerMetadata() map[string]CustomerMetadata { + if o == nil { + return map[string]CustomerMetadata{} + } + return o.CustomerMetadata +} diff --git a/models/components/checkoutcreate.go b/models/components/checkoutcreate.go index d0acb12..3ff830f 100644 --- a/models/components/checkoutcreate.go +++ b/models/components/checkoutcreate.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type CheckoutCreateType string diff --git a/models/components/checkoutlink.go b/models/components/checkoutlink.go index 1157150..ee9d095 100644 --- a/models/components/checkoutlink.go +++ b/models/components/checkoutlink.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/checkoutlinkcreate.go b/models/components/checkoutlinkcreate.go index ea816d7..51a9c80 100644 --- a/models/components/checkoutlinkcreate.go +++ b/models/components/checkoutlinkcreate.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type CheckoutLinkCreateType string diff --git a/models/components/checkoutlinkpricecreate.go b/models/components/checkoutlinkpricecreate.go index d688dce..fba2184 100644 --- a/models/components/checkoutlinkpricecreate.go +++ b/models/components/checkoutlinkpricecreate.go @@ -6,7 +6,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type CheckoutLinkPriceCreateMetadataType string diff --git a/models/components/checkoutlinkproduct.go b/models/components/checkoutlinkproduct.go index 9c863c3..5bfaee6 100644 --- a/models/components/checkoutlinkproduct.go +++ b/models/components/checkoutlinkproduct.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/checkoutlinkproductcreate.go b/models/components/checkoutlinkproductcreate.go index a92c6a5..06bff36 100644 --- a/models/components/checkoutlinkproductcreate.go +++ b/models/components/checkoutlinkproductcreate.go @@ -6,7 +6,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type CheckoutLinkProductCreateMetadataType string diff --git a/models/components/checkoutlinkupdate.go b/models/components/checkoutlinkupdate.go index acc8cf6..83c98fa 100644 --- a/models/components/checkoutlinkupdate.go +++ b/models/components/checkoutlinkupdate.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type CheckoutLinkUpdateMetadataType string @@ -95,16 +95,6 @@ func (u CheckoutLinkUpdateMetadata) MarshalJSON() ([]byte, error) { // CheckoutLinkUpdate - Schema to update an existing checkout link. type CheckoutLinkUpdate struct { - // Key-value object allowing you to store additional information. - // - // The key must be a string with a maximum length of **40 characters**. - // The value must be either: - // - // * A string with a maximum length of **500 characters** - // * An integer - // * A boolean - // - // You can store up to **50 key-value pairs**. Metadata map[string]CheckoutLinkUpdateMetadata `json:"metadata,omitempty"` Label *string `json:"label,omitempty"` // Whether to allow the customer to apply discount codes. If you apply a discount through `discount_id`, it'll still be applied, but the customer won't be able to change it. diff --git a/models/components/checkoutpricecreate.go b/models/components/checkoutpricecreate.go index fcc476a..2d6ca0f 100644 --- a/models/components/checkoutpricecreate.go +++ b/models/components/checkoutpricecreate.go @@ -6,7 +6,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type CheckoutPriceCreateMetadataType string @@ -122,6 +122,91 @@ func (e *CheckoutPriceCreatePaymentProcessor) UnmarshalJSON(data []byte) error { } } +type CheckoutPriceCreateCustomerMetadataType string + +const ( + CheckoutPriceCreateCustomerMetadataTypeStr CheckoutPriceCreateCustomerMetadataType = "str" + CheckoutPriceCreateCustomerMetadataTypeInteger CheckoutPriceCreateCustomerMetadataType = "integer" + CheckoutPriceCreateCustomerMetadataTypeBoolean CheckoutPriceCreateCustomerMetadataType = "boolean" +) + +type CheckoutPriceCreateCustomerMetadata struct { + Str *string `queryParam:"inline"` + Integer *int64 `queryParam:"inline"` + Boolean *bool `queryParam:"inline"` + + Type CheckoutPriceCreateCustomerMetadataType +} + +func CreateCheckoutPriceCreateCustomerMetadataStr(str string) CheckoutPriceCreateCustomerMetadata { + typ := CheckoutPriceCreateCustomerMetadataTypeStr + + return CheckoutPriceCreateCustomerMetadata{ + Str: &str, + Type: typ, + } +} + +func CreateCheckoutPriceCreateCustomerMetadataInteger(integer int64) CheckoutPriceCreateCustomerMetadata { + typ := CheckoutPriceCreateCustomerMetadataTypeInteger + + return CheckoutPriceCreateCustomerMetadata{ + Integer: &integer, + Type: typ, + } +} + +func CreateCheckoutPriceCreateCustomerMetadataBoolean(boolean bool) CheckoutPriceCreateCustomerMetadata { + typ := CheckoutPriceCreateCustomerMetadataTypeBoolean + + return CheckoutPriceCreateCustomerMetadata{ + Boolean: &boolean, + Type: typ, + } +} + +func (u *CheckoutPriceCreateCustomerMetadata) UnmarshalJSON(data []byte) error { + + var str string = "" + if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + u.Str = &str + u.Type = CheckoutPriceCreateCustomerMetadataTypeStr + return nil + } + + var integer int64 = int64(0) + if err := utils.UnmarshalJSON(data, &integer, "", true, true); err == nil { + u.Integer = &integer + u.Type = CheckoutPriceCreateCustomerMetadataTypeInteger + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + u.Boolean = &boolean + u.Type = CheckoutPriceCreateCustomerMetadataTypeBoolean + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CheckoutPriceCreateCustomerMetadata", string(data)) +} + +func (u CheckoutPriceCreateCustomerMetadata) MarshalJSON() ([]byte, error) { + if u.Str != nil { + return utils.MarshalJSON(u.Str, "", true) + } + + if u.Integer != nil { + return utils.MarshalJSON(u.Integer, "", true) + } + + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + return nil, errors.New("could not marshal union type CheckoutPriceCreateCustomerMetadata: all fields are null") +} + // CheckoutPriceCreate - Create a new checkout session from a product price. // // Metadata set on the checkout will be copied @@ -154,6 +239,17 @@ type CheckoutPriceCreate struct { CustomerIPAddress *string `json:"customer_ip_address,omitempty"` CustomerBillingAddress *Address `json:"customer_billing_address,omitempty"` CustomerTaxID *string `json:"customer_tax_id,omitempty"` + // Key-value object allowing you to store additional information that'll be copied to the created customer. + // + // The key must be a string with a maximum length of **40 characters**. + // The value must be either: + // + // * A string with a maximum length of **500 characters** + // * An integer + // * A boolean + // + // You can store up to **50 key-value pairs**. + CustomerMetadata map[string]CheckoutPriceCreateCustomerMetadata `json:"customer_metadata,omitempty"` // ID of a subscription to upgrade. It must be on a free pricing. If checkout is successful, metadata set on this checkout will be copied to the subscription, and existing keys will be overwritten. SubscriptionID *string `json:"subscription_id,omitempty"` // URL where the customer will be redirected after a successful payment.You can add the `checkout_id={CHECKOUT_ID}` query parameter to retrieve the checkout session id. @@ -256,6 +352,13 @@ func (o *CheckoutPriceCreate) GetCustomerTaxID() *string { return o.CustomerTaxID } +func (o *CheckoutPriceCreate) GetCustomerMetadata() map[string]CheckoutPriceCreateCustomerMetadata { + if o == nil { + return nil + } + return o.CustomerMetadata +} + func (o *CheckoutPriceCreate) GetSubscriptionID() *string { if o == nil { return nil diff --git a/models/components/checkoutproduct.go b/models/components/checkoutproduct.go index 7944e7a..e42c86c 100644 --- a/models/components/checkoutproduct.go +++ b/models/components/checkoutproduct.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/checkoutproductcreate.go b/models/components/checkoutproductcreate.go index db693b5..875ea79 100644 --- a/models/components/checkoutproductcreate.go +++ b/models/components/checkoutproductcreate.go @@ -6,7 +6,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type CheckoutProductCreateMetadataType string @@ -122,6 +122,91 @@ func (e *CheckoutProductCreatePaymentProcessor) UnmarshalJSON(data []byte) error } } +type CheckoutProductCreateCustomerMetadataType string + +const ( + CheckoutProductCreateCustomerMetadataTypeStr CheckoutProductCreateCustomerMetadataType = "str" + CheckoutProductCreateCustomerMetadataTypeInteger CheckoutProductCreateCustomerMetadataType = "integer" + CheckoutProductCreateCustomerMetadataTypeBoolean CheckoutProductCreateCustomerMetadataType = "boolean" +) + +type CheckoutProductCreateCustomerMetadata struct { + Str *string `queryParam:"inline"` + Integer *int64 `queryParam:"inline"` + Boolean *bool `queryParam:"inline"` + + Type CheckoutProductCreateCustomerMetadataType +} + +func CreateCheckoutProductCreateCustomerMetadataStr(str string) CheckoutProductCreateCustomerMetadata { + typ := CheckoutProductCreateCustomerMetadataTypeStr + + return CheckoutProductCreateCustomerMetadata{ + Str: &str, + Type: typ, + } +} + +func CreateCheckoutProductCreateCustomerMetadataInteger(integer int64) CheckoutProductCreateCustomerMetadata { + typ := CheckoutProductCreateCustomerMetadataTypeInteger + + return CheckoutProductCreateCustomerMetadata{ + Integer: &integer, + Type: typ, + } +} + +func CreateCheckoutProductCreateCustomerMetadataBoolean(boolean bool) CheckoutProductCreateCustomerMetadata { + typ := CheckoutProductCreateCustomerMetadataTypeBoolean + + return CheckoutProductCreateCustomerMetadata{ + Boolean: &boolean, + Type: typ, + } +} + +func (u *CheckoutProductCreateCustomerMetadata) UnmarshalJSON(data []byte) error { + + var str string = "" + if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + u.Str = &str + u.Type = CheckoutProductCreateCustomerMetadataTypeStr + return nil + } + + var integer int64 = int64(0) + if err := utils.UnmarshalJSON(data, &integer, "", true, true); err == nil { + u.Integer = &integer + u.Type = CheckoutProductCreateCustomerMetadataTypeInteger + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + u.Boolean = &boolean + u.Type = CheckoutProductCreateCustomerMetadataTypeBoolean + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CheckoutProductCreateCustomerMetadata", string(data)) +} + +func (u CheckoutProductCreateCustomerMetadata) MarshalJSON() ([]byte, error) { + if u.Str != nil { + return utils.MarshalJSON(u.Str, "", true) + } + + if u.Integer != nil { + return utils.MarshalJSON(u.Integer, "", true) + } + + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + return nil, errors.New("could not marshal union type CheckoutProductCreateCustomerMetadata: all fields are null") +} + // CheckoutProductCreate - Create a new checkout session from a product. // // Metadata set on the checkout will be copied @@ -154,6 +239,17 @@ type CheckoutProductCreate struct { CustomerIPAddress *string `json:"customer_ip_address,omitempty"` CustomerBillingAddress *Address `json:"customer_billing_address,omitempty"` CustomerTaxID *string `json:"customer_tax_id,omitempty"` + // Key-value object allowing you to store additional information that'll be copied to the created customer. + // + // The key must be a string with a maximum length of **40 characters**. + // The value must be either: + // + // * A string with a maximum length of **500 characters** + // * An integer + // * A boolean + // + // You can store up to **50 key-value pairs**. + CustomerMetadata map[string]CheckoutProductCreateCustomerMetadata `json:"customer_metadata,omitempty"` // ID of a subscription to upgrade. It must be on a free pricing. If checkout is successful, metadata set on this checkout will be copied to the subscription, and existing keys will be overwritten. SubscriptionID *string `json:"subscription_id,omitempty"` // URL where the customer will be redirected after a successful payment.You can add the `checkout_id={CHECKOUT_ID}` query parameter to retrieve the checkout session id. @@ -256,6 +352,13 @@ func (o *CheckoutProductCreate) GetCustomerTaxID() *string { return o.CustomerTaxID } +func (o *CheckoutProductCreate) GetCustomerMetadata() map[string]CheckoutProductCreateCustomerMetadata { + if o == nil { + return nil + } + return o.CustomerMetadata +} + func (o *CheckoutProductCreate) GetSubscriptionID() *string { if o == nil { return nil diff --git a/models/components/checkoutpublic.go b/models/components/checkoutpublic.go index e31c469..b246145 100644 --- a/models/components/checkoutpublic.go +++ b/models/components/checkoutpublic.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/checkoutpublicconfirmed.go b/models/components/checkoutpublicconfirmed.go index ca349f8..07b2fa0 100644 --- a/models/components/checkoutpublicconfirmed.go +++ b/models/components/checkoutpublicconfirmed.go @@ -6,7 +6,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/checkoutupdate.go b/models/components/checkoutupdate.go index 69cb749..9e81f99 100644 --- a/models/components/checkoutupdate.go +++ b/models/components/checkoutupdate.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type CustomFieldData struct { @@ -96,18 +96,109 @@ func (u CheckoutUpdateMetadata) MarshalJSON() ([]byte, error) { return nil, errors.New("could not marshal union type CheckoutUpdateMetadata: all fields are null") } +type CheckoutUpdateCustomerMetadataType string + +const ( + CheckoutUpdateCustomerMetadataTypeStr CheckoutUpdateCustomerMetadataType = "str" + CheckoutUpdateCustomerMetadataTypeInteger CheckoutUpdateCustomerMetadataType = "integer" + CheckoutUpdateCustomerMetadataTypeBoolean CheckoutUpdateCustomerMetadataType = "boolean" +) + +type CheckoutUpdateCustomerMetadata struct { + Str *string `queryParam:"inline"` + Integer *int64 `queryParam:"inline"` + Boolean *bool `queryParam:"inline"` + + Type CheckoutUpdateCustomerMetadataType +} + +func CreateCheckoutUpdateCustomerMetadataStr(str string) CheckoutUpdateCustomerMetadata { + typ := CheckoutUpdateCustomerMetadataTypeStr + + return CheckoutUpdateCustomerMetadata{ + Str: &str, + Type: typ, + } +} + +func CreateCheckoutUpdateCustomerMetadataInteger(integer int64) CheckoutUpdateCustomerMetadata { + typ := CheckoutUpdateCustomerMetadataTypeInteger + + return CheckoutUpdateCustomerMetadata{ + Integer: &integer, + Type: typ, + } +} + +func CreateCheckoutUpdateCustomerMetadataBoolean(boolean bool) CheckoutUpdateCustomerMetadata { + typ := CheckoutUpdateCustomerMetadataTypeBoolean + + return CheckoutUpdateCustomerMetadata{ + Boolean: &boolean, + Type: typ, + } +} + +func (u *CheckoutUpdateCustomerMetadata) UnmarshalJSON(data []byte) error { + + var str string = "" + if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + u.Str = &str + u.Type = CheckoutUpdateCustomerMetadataTypeStr + return nil + } + + var integer int64 = int64(0) + if err := utils.UnmarshalJSON(data, &integer, "", true, true); err == nil { + u.Integer = &integer + u.Type = CheckoutUpdateCustomerMetadataTypeInteger + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + u.Boolean = &boolean + u.Type = CheckoutUpdateCustomerMetadataTypeBoolean + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CheckoutUpdateCustomerMetadata", string(data)) +} + +func (u CheckoutUpdateCustomerMetadata) MarshalJSON() ([]byte, error) { + if u.Str != nil { + return utils.MarshalJSON(u.Str, "", true) + } + + if u.Integer != nil { + return utils.MarshalJSON(u.Integer, "", true) + } + + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + return nil, errors.New("could not marshal union type CheckoutUpdateCustomerMetadata: all fields are null") +} + // CheckoutUpdate - Update an existing checkout session using an access token. type CheckoutUpdate struct { // Key-value object storing custom field values. CustomFieldData *CustomFieldData `json:"custom_field_data,omitempty"` // ID of the product price to checkout. Must correspond to a price linked to the same product. - ProductPriceID *string `json:"product_price_id,omitempty"` - Amount *int64 `json:"amount,omitempty"` - CustomerName *string `json:"customer_name,omitempty"` - CustomerEmail *string `json:"customer_email,omitempty"` - CustomerBillingAddress *Address `json:"customer_billing_address,omitempty"` - CustomerTaxID *string `json:"customer_tax_id,omitempty"` - // Key-value object allowing you to store additional information. + ProductPriceID *string `json:"product_price_id,omitempty"` + Amount *int64 `json:"amount,omitempty"` + CustomerName *string `json:"customer_name,omitempty"` + CustomerEmail *string `json:"customer_email,omitempty"` + CustomerBillingAddress *Address `json:"customer_billing_address,omitempty"` + CustomerTaxID *string `json:"customer_tax_id,omitempty"` + Metadata map[string]CheckoutUpdateMetadata `json:"metadata,omitempty"` + // ID of the discount to apply to the checkout. + DiscountID *string `json:"discount_id,omitempty"` + // Whether to allow the customer to apply discount codes. If you apply a discount through `discount_id`, it'll still be applied, but the customer won't be able to change it. + AllowDiscountCodes *bool `json:"allow_discount_codes,omitempty"` + CustomerIPAddress *string `json:"customer_ip_address,omitempty"` + // Key-value object allowing you to store additional information that'll be copied to the created customer. // // The key must be a string with a maximum length of **40 characters**. // The value must be either: @@ -117,12 +208,7 @@ type CheckoutUpdate struct { // * A boolean // // You can store up to **50 key-value pairs**. - Metadata map[string]CheckoutUpdateMetadata `json:"metadata,omitempty"` - // ID of the discount to apply to the checkout. - DiscountID *string `json:"discount_id,omitempty"` - // Whether to allow the customer to apply discount codes. If you apply a discount through `discount_id`, it'll still be applied, but the customer won't be able to change it. - AllowDiscountCodes *bool `json:"allow_discount_codes,omitempty"` - CustomerIPAddress *string `json:"customer_ip_address,omitempty"` + CustomerMetadata map[string]CheckoutUpdateCustomerMetadata `json:"customer_metadata,omitempty"` // URL where the customer will be redirected after a successful payment.You can add the `checkout_id={CHECKOUT_ID}` query parameter to retrieve the checkout session id. SuccessURL *string `json:"success_url,omitempty"` // If you plan to embed the checkout session, set this to the Origin of the embedding page. It'll allow the Polar iframe to communicate with the parent page. @@ -206,6 +292,13 @@ func (o *CheckoutUpdate) GetCustomerIPAddress() *string { return o.CustomerIPAddress } +func (o *CheckoutUpdate) GetCustomerMetadata() map[string]CheckoutUpdateCustomerMetadata { + if o == nil { + return nil + } + return o.CustomerMetadata +} + func (o *CheckoutUpdate) GetSuccessURL() *string { if o == nil { return nil diff --git a/models/components/customer.go b/models/components/customer.go index 9615251..982aea5 100644 --- a/models/components/customer.go +++ b/models/components/customer.go @@ -5,80 +5,80 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) -type CustomerMetadataType string +type CustomerMetadata1Type string const ( - CustomerMetadataTypeStr CustomerMetadataType = "str" - CustomerMetadataTypeInteger CustomerMetadataType = "integer" - CustomerMetadataTypeBoolean CustomerMetadataType = "boolean" + CustomerMetadata1TypeStr CustomerMetadata1Type = "str" + CustomerMetadata1TypeInteger CustomerMetadata1Type = "integer" + CustomerMetadata1TypeBoolean CustomerMetadata1Type = "boolean" ) -type CustomerMetadata struct { +type CustomerMetadata1 struct { Str *string `queryParam:"inline"` Integer *int64 `queryParam:"inline"` Boolean *bool `queryParam:"inline"` - Type CustomerMetadataType + Type CustomerMetadata1Type } -func CreateCustomerMetadataStr(str string) CustomerMetadata { - typ := CustomerMetadataTypeStr +func CreateCustomerMetadata1Str(str string) CustomerMetadata1 { + typ := CustomerMetadata1TypeStr - return CustomerMetadata{ + return CustomerMetadata1{ Str: &str, Type: typ, } } -func CreateCustomerMetadataInteger(integer int64) CustomerMetadata { - typ := CustomerMetadataTypeInteger +func CreateCustomerMetadata1Integer(integer int64) CustomerMetadata1 { + typ := CustomerMetadata1TypeInteger - return CustomerMetadata{ + return CustomerMetadata1{ Integer: &integer, Type: typ, } } -func CreateCustomerMetadataBoolean(boolean bool) CustomerMetadata { - typ := CustomerMetadataTypeBoolean +func CreateCustomerMetadata1Boolean(boolean bool) CustomerMetadata1 { + typ := CustomerMetadata1TypeBoolean - return CustomerMetadata{ + return CustomerMetadata1{ Boolean: &boolean, Type: typ, } } -func (u *CustomerMetadata) UnmarshalJSON(data []byte) error { +func (u *CustomerMetadata1) UnmarshalJSON(data []byte) error { var str string = "" if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { u.Str = &str - u.Type = CustomerMetadataTypeStr + u.Type = CustomerMetadata1TypeStr return nil } var integer int64 = int64(0) if err := utils.UnmarshalJSON(data, &integer, "", true, true); err == nil { u.Integer = &integer - u.Type = CustomerMetadataTypeInteger + u.Type = CustomerMetadata1TypeInteger return nil } var boolean bool = false if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { u.Boolean = &boolean - u.Type = CustomerMetadataTypeBoolean + u.Type = CustomerMetadata1TypeBoolean return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for CustomerMetadata", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CustomerMetadata1", string(data)) } -func (u CustomerMetadata) MarshalJSON() ([]byte, error) { +func (u CustomerMetadata1) MarshalJSON() ([]byte, error) { if u.Str != nil { return utils.MarshalJSON(u.Str, "", true) } @@ -91,7 +91,7 @@ func (u CustomerMetadata) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.Boolean, "", true) } - return nil, errors.New("could not marshal union type CustomerMetadata: all fields are null") + return nil, errors.New("could not marshal union type CustomerMetadata1: all fields are null") } type CustomerTaxIDType string @@ -164,15 +164,15 @@ type Customer struct { // Last modification timestamp of the object. ModifiedAt *time.Time `json:"modified_at"` // The ID of the object. - ID string `json:"id"` - Metadata map[string]CustomerMetadata `json:"metadata"` - Email string `json:"email"` - EmailVerified bool `json:"email_verified"` - Name *string `json:"name"` - BillingAddress *Address `json:"billing_address"` - TaxID []CustomerTaxID `json:"tax_id"` - OrganizationID string `json:"organization_id"` - AvatarURL string `json:"avatar_url"` + ID string `json:"id"` + Metadata map[string]CustomerMetadata1 `json:"metadata"` + Email string `json:"email"` + EmailVerified bool `json:"email_verified"` + Name *string `json:"name"` + BillingAddress *Address `json:"billing_address"` + TaxID []CustomerTaxID `json:"tax_id"` + OrganizationID string `json:"organization_id"` + AvatarURL string `json:"avatar_url"` } func (c Customer) MarshalJSON() ([]byte, error) { @@ -207,9 +207,9 @@ func (o *Customer) GetID() string { return o.ID } -func (o *Customer) GetMetadata() map[string]CustomerMetadata { +func (o *Customer) GetMetadata() map[string]CustomerMetadata1 { if o == nil { - return map[string]CustomerMetadata{} + return map[string]CustomerMetadata1{} } return o.Metadata } diff --git a/models/components/customerbenefitgrant.go b/models/components/customerbenefitgrant.go index 730fd55..2befd51 100644 --- a/models/components/customerbenefitgrant.go +++ b/models/components/customerbenefitgrant.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type CustomerBenefitGrantType string diff --git a/models/components/customerbenefitgrantads.go b/models/components/customerbenefitgrantads.go index 9fb8407..75ce1db 100644 --- a/models/components/customerbenefitgrantads.go +++ b/models/components/customerbenefitgrantads.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/customerbenefitgrantadsupdate.go b/models/components/customerbenefitgrantadsupdate.go index e34aa6f..8f3cb2c 100644 --- a/models/components/customerbenefitgrantadsupdate.go +++ b/models/components/customerbenefitgrantadsupdate.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type CustomerBenefitGrantAdsUpdateBenefitType string diff --git a/models/components/customerbenefitgrantcustom.go b/models/components/customerbenefitgrantcustom.go index 282ef71..d7f3814 100644 --- a/models/components/customerbenefitgrantcustom.go +++ b/models/components/customerbenefitgrantcustom.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/customerbenefitgrantcustomupdate.go b/models/components/customerbenefitgrantcustomupdate.go index fc231a3..a34ff33 100644 --- a/models/components/customerbenefitgrantcustomupdate.go +++ b/models/components/customerbenefitgrantcustomupdate.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type CustomerBenefitGrantCustomUpdateBenefitType string diff --git a/models/components/customerbenefitgrantdiscord.go b/models/components/customerbenefitgrantdiscord.go index d2300f9..a6f88df 100644 --- a/models/components/customerbenefitgrantdiscord.go +++ b/models/components/customerbenefitgrantdiscord.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/customerbenefitgrantdiscordupdate.go b/models/components/customerbenefitgrantdiscordupdate.go index fc8344d..3b19e24 100644 --- a/models/components/customerbenefitgrantdiscordupdate.go +++ b/models/components/customerbenefitgrantdiscordupdate.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type CustomerBenefitGrantDiscordUpdateBenefitType string diff --git a/models/components/customerbenefitgrantdownloadables.go b/models/components/customerbenefitgrantdownloadables.go index 660daa4..643fc18 100644 --- a/models/components/customerbenefitgrantdownloadables.go +++ b/models/components/customerbenefitgrantdownloadables.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/customerbenefitgrantdownloadablesupdate.go b/models/components/customerbenefitgrantdownloadablesupdate.go index 07de943..0dc5f96 100644 --- a/models/components/customerbenefitgrantdownloadablesupdate.go +++ b/models/components/customerbenefitgrantdownloadablesupdate.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type CustomerBenefitGrantDownloadablesUpdateBenefitType string diff --git a/models/components/customerbenefitgrantgithubrepository.go b/models/components/customerbenefitgrantgithubrepository.go index 1ac504a..9a5da56 100644 --- a/models/components/customerbenefitgrantgithubrepository.go +++ b/models/components/customerbenefitgrantgithubrepository.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/customerbenefitgrantgithubrepositoryupdate.go b/models/components/customerbenefitgrantgithubrepositoryupdate.go index bbd75de..ff0a715 100644 --- a/models/components/customerbenefitgrantgithubrepositoryupdate.go +++ b/models/components/customerbenefitgrantgithubrepositoryupdate.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type CustomerBenefitGrantGitHubRepositoryUpdateBenefitType string diff --git a/models/components/customerbenefitgrantlicensekeys.go b/models/components/customerbenefitgrantlicensekeys.go index b2dcf4a..2938970 100644 --- a/models/components/customerbenefitgrantlicensekeys.go +++ b/models/components/customerbenefitgrantlicensekeys.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/customerbenefitgrantlicensekeysupdate.go b/models/components/customerbenefitgrantlicensekeysupdate.go index 30d3cc8..ef3910e 100644 --- a/models/components/customerbenefitgrantlicensekeysupdate.go +++ b/models/components/customerbenefitgrantlicensekeysupdate.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type CustomerBenefitGrantLicenseKeysUpdateBenefitType string diff --git a/models/components/customerbenefitgrantupdate.go b/models/components/customerbenefitgrantupdate.go index ec08b86..cee1a6b 100644 --- a/models/components/customerbenefitgrantupdate.go +++ b/models/components/customerbenefitgrantupdate.go @@ -6,7 +6,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type CustomerBenefitGrantUpdateType string diff --git a/models/components/customercreate.go b/models/components/customercreate.go index 0c5bbed..f0e4fe6 100644 --- a/models/components/customercreate.go +++ b/models/components/customercreate.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type CustomerCreateTaxIDType string diff --git a/models/components/customerorder.go b/models/components/customerorder.go index 1056e08..2d6d4e0 100644 --- a/models/components/customerorder.go +++ b/models/components/customerorder.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/customerorderproduct.go b/models/components/customerorderproduct.go index 27703b2..64bf097 100644 --- a/models/components/customerorderproduct.go +++ b/models/components/customerorderproduct.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/customerordersubscription.go b/models/components/customerordersubscription.go index 2e4f26f..382699a 100644 --- a/models/components/customerordersubscription.go +++ b/models/components/customerordersubscription.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/customerportalcustomer.go b/models/components/customerportalcustomer.go index 9eb7a8c..27973e1 100644 --- a/models/components/customerportalcustomer.go +++ b/models/components/customerportalcustomer.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/customersubscription.go b/models/components/customersubscription.go index 40f0501..7d57364 100644 --- a/models/components/customersubscription.go +++ b/models/components/customersubscription.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/customersubscriptionproduct.go b/models/components/customersubscriptionproduct.go index 2346694..9e654cb 100644 --- a/models/components/customersubscriptionproduct.go +++ b/models/components/customersubscriptionproduct.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/customerupdate.go b/models/components/customerupdate.go index 66a599c..c863e41 100644 --- a/models/components/customerupdate.go +++ b/models/components/customerupdate.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type CustomerUpdateTaxIDType string diff --git a/models/components/customfield.go b/models/components/customfield.go index 4a475ba..24b36eb 100644 --- a/models/components/customfield.go +++ b/models/components/customfield.go @@ -6,7 +6,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type CustomFieldUnionType string diff --git a/models/components/customfieldcheckbox.go b/models/components/customfieldcheckbox.go index 7c94482..9ace198 100644 --- a/models/components/customfieldcheckbox.go +++ b/models/components/customfieldcheckbox.go @@ -6,7 +6,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/customfieldcreate.go b/models/components/customfieldcreate.go index 7372c29..d5d30db 100644 --- a/models/components/customfieldcreate.go +++ b/models/components/customfieldcreate.go @@ -6,7 +6,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type CustomFieldCreateType string diff --git a/models/components/customfieldcreatecheckbox.go b/models/components/customfieldcreatecheckbox.go index ea343c6..d84962c 100644 --- a/models/components/customfieldcreatecheckbox.go +++ b/models/components/customfieldcreatecheckbox.go @@ -6,7 +6,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type CustomFieldCreateCheckboxMetadataType string diff --git a/models/components/customfieldcreatedate.go b/models/components/customfieldcreatedate.go index 80f476b..453fd2a 100644 --- a/models/components/customfieldcreatedate.go +++ b/models/components/customfieldcreatedate.go @@ -6,7 +6,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type CustomFieldCreateDateMetadataType string diff --git a/models/components/customfieldcreatenumber.go b/models/components/customfieldcreatenumber.go index f902675..23ba9dc 100644 --- a/models/components/customfieldcreatenumber.go +++ b/models/components/customfieldcreatenumber.go @@ -6,7 +6,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type CustomFieldCreateNumberMetadataType string diff --git a/models/components/customfieldcreateselect.go b/models/components/customfieldcreateselect.go index 27b9449..2596db4 100644 --- a/models/components/customfieldcreateselect.go +++ b/models/components/customfieldcreateselect.go @@ -6,7 +6,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type CustomFieldCreateSelectMetadataType string diff --git a/models/components/customfieldcreatetext.go b/models/components/customfieldcreatetext.go index 3b98df9..3a20369 100644 --- a/models/components/customfieldcreatetext.go +++ b/models/components/customfieldcreatetext.go @@ -6,7 +6,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type CustomFieldCreateTextMetadataType string diff --git a/models/components/customfielddate.go b/models/components/customfielddate.go index 64947d8..c66fdb6 100644 --- a/models/components/customfielddate.go +++ b/models/components/customfielddate.go @@ -6,7 +6,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/customfieldnumber.go b/models/components/customfieldnumber.go index a639c75..612a443 100644 --- a/models/components/customfieldnumber.go +++ b/models/components/customfieldnumber.go @@ -6,7 +6,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/customfieldselect.go b/models/components/customfieldselect.go index 24a101f..957b4ba 100644 --- a/models/components/customfieldselect.go +++ b/models/components/customfieldselect.go @@ -6,7 +6,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/customfieldtext.go b/models/components/customfieldtext.go index b6e7445..23de575 100644 --- a/models/components/customfieldtext.go +++ b/models/components/customfieldtext.go @@ -6,7 +6,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/customfieldupdate.go b/models/components/customfieldupdate.go index a2e2324..c25aced 100644 --- a/models/components/customfieldupdate.go +++ b/models/components/customfieldupdate.go @@ -6,7 +6,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type CustomFieldUpdateType string diff --git a/models/components/customfieldupdatecheckbox.go b/models/components/customfieldupdatecheckbox.go index 8cba411..34f84bc 100644 --- a/models/components/customfieldupdatecheckbox.go +++ b/models/components/customfieldupdatecheckbox.go @@ -6,7 +6,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type CustomFieldUpdateCheckboxMetadataType string @@ -119,16 +119,6 @@ func (e *CustomFieldUpdateCheckboxType) UnmarshalJSON(data []byte) error { // CustomFieldUpdateCheckbox - Schema to update a custom field of type checkbox. type CustomFieldUpdateCheckbox struct { - // Key-value object allowing you to store additional information. - // - // The key must be a string with a maximum length of **40 characters**. - // The value must be either: - // - // * A string with a maximum length of **500 characters** - // * An integer - // * A boolean - // - // You can store up to **50 key-value pairs**. Metadata map[string]CustomFieldUpdateCheckboxMetadata `json:"metadata,omitempty"` Name *string `json:"name,omitempty"` Slug *string `json:"slug,omitempty"` diff --git a/models/components/customfieldupdatedate.go b/models/components/customfieldupdatedate.go index 7e6a126..3ea54e0 100644 --- a/models/components/customfieldupdatedate.go +++ b/models/components/customfieldupdatedate.go @@ -6,7 +6,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type CustomFieldUpdateDateMetadataType string @@ -119,16 +119,6 @@ func (e *CustomFieldUpdateDateType) UnmarshalJSON(data []byte) error { // CustomFieldUpdateDate - Schema to update a custom field of type date. type CustomFieldUpdateDate struct { - // Key-value object allowing you to store additional information. - // - // The key must be a string with a maximum length of **40 characters**. - // The value must be either: - // - // * A string with a maximum length of **500 characters** - // * An integer - // * A boolean - // - // You can store up to **50 key-value pairs**. Metadata map[string]CustomFieldUpdateDateMetadata `json:"metadata,omitempty"` Name *string `json:"name,omitempty"` Slug *string `json:"slug,omitempty"` diff --git a/models/components/customfieldupdatenumber.go b/models/components/customfieldupdatenumber.go index 16ed75f..34a0261 100644 --- a/models/components/customfieldupdatenumber.go +++ b/models/components/customfieldupdatenumber.go @@ -6,7 +6,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type CustomFieldUpdateNumberMetadataType string @@ -119,16 +119,6 @@ func (e *CustomFieldUpdateNumberType) UnmarshalJSON(data []byte) error { // CustomFieldUpdateNumber - Schema to update a custom field of type number. type CustomFieldUpdateNumber struct { - // Key-value object allowing you to store additional information. - // - // The key must be a string with a maximum length of **40 characters**. - // The value must be either: - // - // * A string with a maximum length of **500 characters** - // * An integer - // * A boolean - // - // You can store up to **50 key-value pairs**. Metadata map[string]CustomFieldUpdateNumberMetadata `json:"metadata,omitempty"` Name *string `json:"name,omitempty"` Slug *string `json:"slug,omitempty"` diff --git a/models/components/customfieldupdateselect.go b/models/components/customfieldupdateselect.go index 481c38e..702781d 100644 --- a/models/components/customfieldupdateselect.go +++ b/models/components/customfieldupdateselect.go @@ -6,7 +6,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type CustomFieldUpdateSelectMetadataType string @@ -119,16 +119,6 @@ func (e *CustomFieldUpdateSelectType) UnmarshalJSON(data []byte) error { // CustomFieldUpdateSelect - Schema to update a custom field of type select. type CustomFieldUpdateSelect struct { - // Key-value object allowing you to store additional information. - // - // The key must be a string with a maximum length of **40 characters**. - // The value must be either: - // - // * A string with a maximum length of **500 characters** - // * An integer - // * A boolean - // - // You can store up to **50 key-value pairs**. Metadata map[string]CustomFieldUpdateSelectMetadata `json:"metadata,omitempty"` Name *string `json:"name,omitempty"` Slug *string `json:"slug,omitempty"` diff --git a/models/components/customfieldupdatetext.go b/models/components/customfieldupdatetext.go index 5950938..8d1ff52 100644 --- a/models/components/customfieldupdatetext.go +++ b/models/components/customfieldupdatetext.go @@ -6,7 +6,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type CustomFieldUpdateTextMetadataType string @@ -119,16 +119,6 @@ func (e *CustomFieldUpdateTextType) UnmarshalJSON(data []byte) error { // CustomFieldUpdateText - Schema to update a custom field of type text. type CustomFieldUpdateText struct { - // Key-value object allowing you to store additional information. - // - // The key must be a string with a maximum length of **40 characters**. - // The value must be either: - // - // * A string with a maximum length of **500 characters** - // * An integer - // * A boolean - // - // You can store up to **50 key-value pairs**. Metadata map[string]CustomFieldUpdateTextMetadata `json:"metadata,omitempty"` Name *string `json:"name,omitempty"` Slug *string `json:"slug,omitempty"` diff --git a/models/components/discount.go b/models/components/discount.go index 48ef50d..bef368b 100644 --- a/models/components/discount.go +++ b/models/components/discount.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type DiscountUnionType string diff --git a/models/components/discountcreate.go b/models/components/discountcreate.go index c19f345..78c4239 100644 --- a/models/components/discountcreate.go +++ b/models/components/discountcreate.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type DiscountCreateType string diff --git a/models/components/discountfixedonceforeverduration.go b/models/components/discountfixedonceforeverduration.go index 50d4276..b38ff53 100644 --- a/models/components/discountfixedonceforeverduration.go +++ b/models/components/discountfixedonceforeverduration.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/discountfixedonceforeverdurationbase.go b/models/components/discountfixedonceforeverdurationbase.go index a879798..cc32436 100644 --- a/models/components/discountfixedonceforeverdurationbase.go +++ b/models/components/discountfixedonceforeverdurationbase.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/discountfixedonceforeverdurationcreate.go b/models/components/discountfixedonceforeverdurationcreate.go index 1cfc604..6e16816 100644 --- a/models/components/discountfixedonceforeverdurationcreate.go +++ b/models/components/discountfixedonceforeverdurationcreate.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/discountfixedrepeatduration.go b/models/components/discountfixedrepeatduration.go index 817b81b..e7844ec 100644 --- a/models/components/discountfixedrepeatduration.go +++ b/models/components/discountfixedrepeatduration.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/discountfixedrepeatdurationbase.go b/models/components/discountfixedrepeatdurationbase.go index 5394a3b..2008783 100644 --- a/models/components/discountfixedrepeatdurationbase.go +++ b/models/components/discountfixedrepeatdurationbase.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/discountfixedrepeatdurationcreate.go b/models/components/discountfixedrepeatdurationcreate.go index 57807dd..53218c4 100644 --- a/models/components/discountfixedrepeatdurationcreate.go +++ b/models/components/discountfixedrepeatdurationcreate.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/discountpercentageonceforeverduration.go b/models/components/discountpercentageonceforeverduration.go index dfa0d9f..b41f54e 100644 --- a/models/components/discountpercentageonceforeverduration.go +++ b/models/components/discountpercentageonceforeverduration.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/discountpercentageonceforeverdurationbase.go b/models/components/discountpercentageonceforeverdurationbase.go index d3ec5c0..dbc3f22 100644 --- a/models/components/discountpercentageonceforeverdurationbase.go +++ b/models/components/discountpercentageonceforeverdurationbase.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/discountpercentageonceforeverdurationcreate.go b/models/components/discountpercentageonceforeverdurationcreate.go index b51827a..e92814a 100644 --- a/models/components/discountpercentageonceforeverdurationcreate.go +++ b/models/components/discountpercentageonceforeverdurationcreate.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/discountpercentagerepeatduration.go b/models/components/discountpercentagerepeatduration.go index 6a5afc0..929e1a3 100644 --- a/models/components/discountpercentagerepeatduration.go +++ b/models/components/discountpercentagerepeatduration.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/discountpercentagerepeatdurationbase.go b/models/components/discountpercentagerepeatdurationbase.go index 635e561..5063a85 100644 --- a/models/components/discountpercentagerepeatdurationbase.go +++ b/models/components/discountpercentagerepeatdurationbase.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/discountpercentagerepeatdurationcreate.go b/models/components/discountpercentagerepeatdurationcreate.go index 690b127..7631544 100644 --- a/models/components/discountpercentagerepeatdurationcreate.go +++ b/models/components/discountpercentagerepeatdurationcreate.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/discountproduct.go b/models/components/discountproduct.go index a260ff3..d56ae2f 100644 --- a/models/components/discountproduct.go +++ b/models/components/discountproduct.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/discountupdate.go b/models/components/discountupdate.go index 1e1e9e0..16e398c 100644 --- a/models/components/discountupdate.go +++ b/models/components/discountupdate.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) @@ -96,16 +96,6 @@ func (u DiscountUpdateMetadata) MarshalJSON() ([]byte, error) { // DiscountUpdate - Schema to update a discount. type DiscountUpdate struct { - // Key-value object allowing you to store additional information. - // - // The key must be a string with a maximum length of **40 characters**. - // The value must be either: - // - // * A string with a maximum length of **500 characters** - // * An integer - // * A boolean - // - // You can store up to **50 key-value pairs**. Metadata map[string]DiscountUpdateMetadata `json:"metadata,omitempty"` Name *string `json:"name,omitempty"` Code *string `json:"code,omitempty"` diff --git a/models/components/downloadablefilecreate.go b/models/components/downloadablefilecreate.go index 6a303c6..1f4aa80 100644 --- a/models/components/downloadablefilecreate.go +++ b/models/components/downloadablefilecreate.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type DownloadableFileCreateService string diff --git a/models/components/downloadablefileread.go b/models/components/downloadablefileread.go index a995e09..1f60473 100644 --- a/models/components/downloadablefileread.go +++ b/models/components/downloadablefileread.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/externalorganization.go b/models/components/externalorganization.go index cb768af..2ccc78d 100644 --- a/models/components/externalorganization.go +++ b/models/components/externalorganization.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type ExternalOrganization struct { diff --git a/models/components/filecreate.go b/models/components/filecreate.go index c782c80..94227b9 100644 --- a/models/components/filecreate.go +++ b/models/components/filecreate.go @@ -6,7 +6,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type FileCreateType string diff --git a/models/components/filedownload.go b/models/components/filedownload.go index 594e4d1..d7fab16 100644 --- a/models/components/filedownload.go +++ b/models/components/filedownload.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/fileupload.go b/models/components/fileupload.go index 209510c..7450d2c 100644 --- a/models/components/fileupload.go +++ b/models/components/fileupload.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/issue.go b/models/components/issue.go index e06d07e..fcebf33 100644 --- a/models/components/issue.go +++ b/models/components/issue.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/licensekeyactivationbase.go b/models/components/licensekeyactivationbase.go index e501753..c63ee63 100644 --- a/models/components/licensekeyactivationbase.go +++ b/models/components/licensekeyactivationbase.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/licensekeyactivationread.go b/models/components/licensekeyactivationread.go index b925ea6..8bab7ed 100644 --- a/models/components/licensekeyactivationread.go +++ b/models/components/licensekeyactivationread.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/licensekeycustomer.go b/models/components/licensekeycustomer.go index 3cee0c2..490ba5d 100644 --- a/models/components/licensekeycustomer.go +++ b/models/components/licensekeycustomer.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/licensekeyread.go b/models/components/licensekeyread.go index 70aeaf6..099701c 100644 --- a/models/components/licensekeyread.go +++ b/models/components/licensekeyread.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/licensekeyupdate.go b/models/components/licensekeyupdate.go index 4c063e6..06d67f7 100644 --- a/models/components/licensekeyupdate.go +++ b/models/components/licensekeyupdate.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/licensekeywithactivations.go b/models/components/licensekeywithactivations.go index 8dadf97..50b16d1 100644 --- a/models/components/licensekeywithactivations.go +++ b/models/components/licensekeywithactivations.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/listresourcefileread.go b/models/components/listresourcefileread.go index 0153aad..bcdf178 100644 --- a/models/components/listresourcefileread.go +++ b/models/components/listresourcefileread.go @@ -6,7 +6,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type FileReadType string diff --git a/models/components/metricperiod.go b/models/components/metricperiod.go index f3dfa67..f3322a1 100644 --- a/models/components/metricperiod.go +++ b/models/components/metricperiod.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/metricslimits.go b/models/components/metricslimits.go index 1e52c00..790be96 100644 --- a/models/components/metricslimits.go +++ b/models/components/metricslimits.go @@ -3,8 +3,8 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/types" + "polar/internal/utils" + "polar/types" ) // MetricsLimits - Date limits to get metrics. diff --git a/models/components/oauth2client.go b/models/components/oauth2client.go index c64fbd9..2ec751a 100644 --- a/models/components/oauth2client.go +++ b/models/components/oauth2client.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/oauth2clientconfiguration.go b/models/components/oauth2clientconfiguration.go index 88221b8..97010c6 100644 --- a/models/components/oauth2clientconfiguration.go +++ b/models/components/oauth2clientconfiguration.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type OAuth2ClientConfigurationTokenEndpointAuthMethod string diff --git a/models/components/oauth2clientconfigurationupdate.go b/models/components/oauth2clientconfigurationupdate.go index 176f299..8489d87 100644 --- a/models/components/oauth2clientconfigurationupdate.go +++ b/models/components/oauth2clientconfigurationupdate.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod string diff --git a/models/components/oauth2clientpublic.go b/models/components/oauth2clientpublic.go index 2c96b1e..149ebb6 100644 --- a/models/components/oauth2clientpublic.go +++ b/models/components/oauth2clientpublic.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/onev11oauth21tokenpostxcomponentsauthorizationcodetokenrequest.go b/models/components/onev11oauth21tokenpostxcomponentsauthorizationcodetokenrequest.go index df87016..5f04028 100644 --- a/models/components/onev11oauth21tokenpostxcomponentsauthorizationcodetokenrequest.go +++ b/models/components/onev11oauth21tokenpostxcomponentsauthorizationcodetokenrequest.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type GrantType string diff --git a/models/components/onev11oauth21tokenpostxcomponentsrefreshtokenrequest.go b/models/components/onev11oauth21tokenpostxcomponentsrefreshtokenrequest.go index 0ed9cb4..e31e4c1 100644 --- a/models/components/onev11oauth21tokenpostxcomponentsrefreshtokenrequest.go +++ b/models/components/onev11oauth21tokenpostxcomponentsrefreshtokenrequest.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type Onev11oauth21tokenPostXComponentsRefreshTokenRequestGrantType string diff --git a/models/components/order.go b/models/components/order.go index 76b43a1..8b51c1c 100644 --- a/models/components/order.go +++ b/models/components/order.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/ordercustomer.go b/models/components/ordercustomer.go index 1314a6b..3a5f6ec 100644 --- a/models/components/ordercustomer.go +++ b/models/components/ordercustomer.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/orderproduct.go b/models/components/orderproduct.go index d156fac..cb265ea 100644 --- a/models/components/orderproduct.go +++ b/models/components/orderproduct.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/ordersubscription.go b/models/components/ordersubscription.go index 78d4c38..fa23f4f 100644 --- a/models/components/ordersubscription.go +++ b/models/components/ordersubscription.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/organization.go b/models/components/organization.go index 9ee3357..ab24f9f 100644 --- a/models/components/organization.go +++ b/models/components/organization.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/organizationavatarfilecreate.go b/models/components/organizationavatarfilecreate.go index 9cb79e3..96f5a54 100644 --- a/models/components/organizationavatarfilecreate.go +++ b/models/components/organizationavatarfilecreate.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type OrganizationAvatarFileCreateService string diff --git a/models/components/organizationavatarfileread.go b/models/components/organizationavatarfileread.go index dd608ce..794a4c3 100644 --- a/models/components/organizationavatarfileread.go +++ b/models/components/organizationavatarfileread.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/organizationfeaturesettings.go b/models/components/organizationfeaturesettings.go index 70e6c02..885fc16 100644 --- a/models/components/organizationfeaturesettings.go +++ b/models/components/organizationfeaturesettings.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type OrganizationFeatureSettings struct { diff --git a/models/components/organizationsubscribepromotesettings.go b/models/components/organizationsubscribepromotesettings.go index 4b44c25..09d2a1a 100644 --- a/models/components/organizationsubscribepromotesettings.go +++ b/models/components/organizationsubscribepromotesettings.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type OrganizationSubscribePromoteSettings struct { diff --git a/models/components/organizationupdate.go b/models/components/organizationupdate.go index 346ff38..cc687c9 100644 --- a/models/components/organizationupdate.go +++ b/models/components/organizationupdate.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type OrganizationUpdate struct { diff --git a/models/components/pledge.go b/models/components/pledge.go index 5e91aa9..e3e2ddc 100644 --- a/models/components/pledge.go +++ b/models/components/pledge.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/product.go b/models/components/product.go index 7ce48f0..68dc239 100644 --- a/models/components/product.go +++ b/models/components/product.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/productcreate.go b/models/components/productcreate.go index 5324029..c829581 100644 --- a/models/components/productcreate.go +++ b/models/components/productcreate.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type ProductCreateType string diff --git a/models/components/productmediafilecreate.go b/models/components/productmediafilecreate.go index 63e93f9..4d3a6d7 100644 --- a/models/components/productmediafilecreate.go +++ b/models/components/productmediafilecreate.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type ProductMediaFileCreateService string diff --git a/models/components/productmediafileread.go b/models/components/productmediafileread.go index 7ac48ac..ff33462 100644 --- a/models/components/productmediafileread.go +++ b/models/components/productmediafileread.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/productonetimecreate.go b/models/components/productonetimecreate.go index 1143fda..9bccab5 100644 --- a/models/components/productonetimecreate.go +++ b/models/components/productonetimecreate.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type ProductOneTimeCreateMetadataType string diff --git a/models/components/productprice.go b/models/components/productprice.go index 73a4c04..83f659b 100644 --- a/models/components/productprice.go +++ b/models/components/productprice.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type ProductPriceUnionType string diff --git a/models/components/productpriceonetime.go b/models/components/productpriceonetime.go index 61ff753..a5057b1 100644 --- a/models/components/productpriceonetime.go +++ b/models/components/productpriceonetime.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type ProductPriceOneTimeType string diff --git a/models/components/productpriceonetimecustom.go b/models/components/productpriceonetimecustom.go index 8c93664..6df9cf3 100644 --- a/models/components/productpriceonetimecustom.go +++ b/models/components/productpriceonetimecustom.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/productpriceonetimecustomcreate.go b/models/components/productpriceonetimecustomcreate.go index 3e90187..1c3f869 100644 --- a/models/components/productpriceonetimecustomcreate.go +++ b/models/components/productpriceonetimecustomcreate.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type ProductPriceOneTimeCustomCreateType string diff --git a/models/components/productpriceonetimefixed.go b/models/components/productpriceonetimefixed.go index 9174f1c..d2f997c 100644 --- a/models/components/productpriceonetimefixed.go +++ b/models/components/productpriceonetimefixed.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/productpriceonetimefixedcreate.go b/models/components/productpriceonetimefixedcreate.go index 31c1897..efc7123 100644 --- a/models/components/productpriceonetimefixedcreate.go +++ b/models/components/productpriceonetimefixedcreate.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type ProductPriceOneTimeFixedCreateType string diff --git a/models/components/productpriceonetimefree.go b/models/components/productpriceonetimefree.go index 28cc909..3dbc65e 100644 --- a/models/components/productpriceonetimefree.go +++ b/models/components/productpriceonetimefree.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/productpriceonetimefreecreate.go b/models/components/productpriceonetimefreecreate.go index d384c28..e249c8b 100644 --- a/models/components/productpriceonetimefreecreate.go +++ b/models/components/productpriceonetimefreecreate.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type ProductPriceOneTimeFreeCreateType string diff --git a/models/components/productpricerecurring.go b/models/components/productpricerecurring.go index 3593171..1ae4169 100644 --- a/models/components/productpricerecurring.go +++ b/models/components/productpricerecurring.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type ProductPriceRecurringType string diff --git a/models/components/productpricerecurringcustom.go b/models/components/productpricerecurringcustom.go index d437c95..61fe498 100644 --- a/models/components/productpricerecurringcustom.go +++ b/models/components/productpricerecurringcustom.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/productpricerecurringfixed.go b/models/components/productpricerecurringfixed.go index cc6f222..95516a0 100644 --- a/models/components/productpricerecurringfixed.go +++ b/models/components/productpricerecurringfixed.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/productpricerecurringfixedcreate.go b/models/components/productpricerecurringfixedcreate.go index b5d9af3..f56ba6f 100644 --- a/models/components/productpricerecurringfixedcreate.go +++ b/models/components/productpricerecurringfixedcreate.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type ProductPriceRecurringFixedCreateType string diff --git a/models/components/productpricerecurringfree.go b/models/components/productpricerecurringfree.go index e8ce950..d69876c 100644 --- a/models/components/productpricerecurringfree.go +++ b/models/components/productpricerecurringfree.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/productpricerecurringfreecreate.go b/models/components/productpricerecurringfreecreate.go index 1dd7f18..ddfddbc 100644 --- a/models/components/productpricerecurringfreecreate.go +++ b/models/components/productpricerecurringfreecreate.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type ProductPriceRecurringFreeCreateType string diff --git a/models/components/productrecurringcreate.go b/models/components/productrecurringcreate.go index 90aac47..1e982fb 100644 --- a/models/components/productrecurringcreate.go +++ b/models/components/productrecurringcreate.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type ProductRecurringCreateMetadataType string diff --git a/models/components/productupdate.go b/models/components/productupdate.go index 476bbf1..cdf1edc 100644 --- a/models/components/productupdate.go +++ b/models/components/productupdate.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type ProductUpdateMetadataType string @@ -246,16 +246,6 @@ func (u ProductUpdatePrices) MarshalJSON() ([]byte, error) { // ProductUpdate - Schema to update a product. type ProductUpdate struct { - // Key-value object allowing you to store additional information. - // - // The key must be a string with a maximum length of **40 characters**. - // The value must be either: - // - // * A string with a maximum length of **500 characters** - // * An integer - // * A boolean - // - // You can store up to **50 key-value pairs**. Metadata map[string]ProductUpdateMetadata `json:"metadata,omitempty"` Name *string `json:"name,omitempty"` // The description of the product. diff --git a/models/components/repository.go b/models/components/repository.go index 628f5da..a6c04ad 100644 --- a/models/components/repository.go +++ b/models/components/repository.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type Repository struct { diff --git a/models/components/s3downloadurl.go b/models/components/s3downloadurl.go index b3a6a8a..97fd6fb 100644 --- a/models/components/s3downloadurl.go +++ b/models/components/s3downloadurl.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/s3fileuploadpart.go b/models/components/s3fileuploadpart.go index b243081..c907a70 100644 --- a/models/components/s3fileuploadpart.go +++ b/models/components/s3fileuploadpart.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/subscription.go b/models/components/subscription.go index 2c81ec1..74d3808 100644 --- a/models/components/subscription.go +++ b/models/components/subscription.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/subscriptioncustomer.go b/models/components/subscriptioncustomer.go index 08d34cf..4455395 100644 --- a/models/components/subscriptioncustomer.go +++ b/models/components/subscriptioncustomer.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/tokenresponse.go b/models/components/tokenresponse.go index 61b69ff..079e4cc 100644 --- a/models/components/tokenresponse.go +++ b/models/components/tokenresponse.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type TokenType string diff --git a/models/components/validatedlicensekey.go b/models/components/validatedlicensekey.go index fb83313..973178b 100644 --- a/models/components/validatedlicensekey.go +++ b/models/components/validatedlicensekey.go @@ -3,7 +3,7 @@ package components import ( - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" "time" ) diff --git a/models/components/validationerror.go b/models/components/validationerror.go index 81f913a..c4ba4de 100644 --- a/models/components/validationerror.go +++ b/models/components/validationerror.go @@ -5,7 +5,7 @@ package components import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type LocType string diff --git a/models/components/webhookbenefitcreatedpayload.go b/models/components/webhookbenefitcreatedpayload.go index 6d061c1..5346eab 100644 --- a/models/components/webhookbenefitcreatedpayload.go +++ b/models/components/webhookbenefitcreatedpayload.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type WebhookBenefitCreatedPayloadType string diff --git a/models/components/webhookbenefitgrantcreatedpayload.go b/models/components/webhookbenefitgrantcreatedpayload.go index f41b9db..a6a9d63 100644 --- a/models/components/webhookbenefitgrantcreatedpayload.go +++ b/models/components/webhookbenefitgrantcreatedpayload.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type WebhookBenefitGrantCreatedPayloadType string diff --git a/models/components/webhookbenefitgrantrevokedpayload.go b/models/components/webhookbenefitgrantrevokedpayload.go index 332c809..8f91635 100644 --- a/models/components/webhookbenefitgrantrevokedpayload.go +++ b/models/components/webhookbenefitgrantrevokedpayload.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type WebhookBenefitGrantRevokedPayloadType string diff --git a/models/components/webhookbenefitgrantupdatedpayload.go b/models/components/webhookbenefitgrantupdatedpayload.go index 245bd8b..e7fcd4e 100644 --- a/models/components/webhookbenefitgrantupdatedpayload.go +++ b/models/components/webhookbenefitgrantupdatedpayload.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type WebhookBenefitGrantUpdatedPayloadType string diff --git a/models/components/webhookbenefitupdatedpayload.go b/models/components/webhookbenefitupdatedpayload.go index 029a697..1067007 100644 --- a/models/components/webhookbenefitupdatedpayload.go +++ b/models/components/webhookbenefitupdatedpayload.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type WebhookBenefitUpdatedPayloadType string diff --git a/models/components/webhookcheckoutcreatedpayload.go b/models/components/webhookcheckoutcreatedpayload.go index cc7f64a..46a907c 100644 --- a/models/components/webhookcheckoutcreatedpayload.go +++ b/models/components/webhookcheckoutcreatedpayload.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type WebhookCheckoutCreatedPayloadType string diff --git a/models/components/webhookcheckoutupdatedpayload.go b/models/components/webhookcheckoutupdatedpayload.go index 871f299..28d9310 100644 --- a/models/components/webhookcheckoutupdatedpayload.go +++ b/models/components/webhookcheckoutupdatedpayload.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type WebhookCheckoutUpdatedPayloadType string diff --git a/models/components/webhookordercreatedpayload.go b/models/components/webhookordercreatedpayload.go index c75ad33..5c10033 100644 --- a/models/components/webhookordercreatedpayload.go +++ b/models/components/webhookordercreatedpayload.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type WebhookOrderCreatedPayloadType string diff --git a/models/components/webhookorganizationupdatedpayload.go b/models/components/webhookorganizationupdatedpayload.go index dea50d4..0f90148 100644 --- a/models/components/webhookorganizationupdatedpayload.go +++ b/models/components/webhookorganizationupdatedpayload.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type WebhookOrganizationUpdatedPayloadType string diff --git a/models/components/webhookpledgecreatedpayload.go b/models/components/webhookpledgecreatedpayload.go index 0577b4f..1fa2e69 100644 --- a/models/components/webhookpledgecreatedpayload.go +++ b/models/components/webhookpledgecreatedpayload.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type WebhookPledgeCreatedPayloadType string diff --git a/models/components/webhookpledgeupdatedpayload.go b/models/components/webhookpledgeupdatedpayload.go index be92a41..4406788 100644 --- a/models/components/webhookpledgeupdatedpayload.go +++ b/models/components/webhookpledgeupdatedpayload.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type WebhookPledgeUpdatedPayloadType string diff --git a/models/components/webhookproductcreatedpayload.go b/models/components/webhookproductcreatedpayload.go index fc22939..9db2ff0 100644 --- a/models/components/webhookproductcreatedpayload.go +++ b/models/components/webhookproductcreatedpayload.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type WebhookProductCreatedPayloadType string diff --git a/models/components/webhookproductupdatedpayload.go b/models/components/webhookproductupdatedpayload.go index 1816a39..bc365a6 100644 --- a/models/components/webhookproductupdatedpayload.go +++ b/models/components/webhookproductupdatedpayload.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type WebhookProductUpdatedPayloadType string diff --git a/models/components/webhooksubscriptionactivepayload.go b/models/components/webhooksubscriptionactivepayload.go index 88d59ad..de42079 100644 --- a/models/components/webhooksubscriptionactivepayload.go +++ b/models/components/webhooksubscriptionactivepayload.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type WebhookSubscriptionActivePayloadType string diff --git a/models/components/webhooksubscriptioncanceledpayload.go b/models/components/webhooksubscriptioncanceledpayload.go index b5ad84c..7f3c8fd 100644 --- a/models/components/webhooksubscriptioncanceledpayload.go +++ b/models/components/webhooksubscriptioncanceledpayload.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type WebhookSubscriptionCanceledPayloadType string diff --git a/models/components/webhooksubscriptioncreatedpayload.go b/models/components/webhooksubscriptioncreatedpayload.go index e2ad221..3fd8d0a 100644 --- a/models/components/webhooksubscriptioncreatedpayload.go +++ b/models/components/webhooksubscriptioncreatedpayload.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type WebhookSubscriptionCreatedPayloadType string diff --git a/models/components/webhooksubscriptionrevokedpayload.go b/models/components/webhooksubscriptionrevokedpayload.go index 5d28684..40a0667 100644 --- a/models/components/webhooksubscriptionrevokedpayload.go +++ b/models/components/webhooksubscriptionrevokedpayload.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type WebhookSubscriptionRevokedPayloadType string diff --git a/models/components/webhooksubscriptionupdatedpayload.go b/models/components/webhooksubscriptionupdatedpayload.go index 7f5d90a..99aa74b 100644 --- a/models/components/webhooksubscriptionupdatedpayload.go +++ b/models/components/webhooksubscriptionupdatedpayload.go @@ -5,7 +5,7 @@ package components import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/internal/utils" + "polar/internal/utils" ) type WebhookSubscriptionUpdatedPayloadType string diff --git a/models/operations/advertisementsget.go b/models/operations/advertisementsget.go index 9e2ccf9..27977ba 100644 --- a/models/operations/advertisementsget.go +++ b/models/operations/advertisementsget.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type AdvertisementsGetRequest struct { diff --git a/models/operations/advertisementslist.go b/models/operations/advertisementslist.go index 11eb330..8980c26 100644 --- a/models/operations/advertisementslist.go +++ b/models/operations/advertisementslist.go @@ -3,8 +3,8 @@ package operations import ( - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/components" + "polar/internal/utils" + "polar/models/components" ) type AdvertisementsListRequest struct { diff --git a/models/operations/benefitscreate.go b/models/operations/benefitscreate.go index 53fb0a9..40d7e34 100644 --- a/models/operations/benefitscreate.go +++ b/models/operations/benefitscreate.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type BenefitsCreateResponse struct { diff --git a/models/operations/benefitsdelete.go b/models/operations/benefitsdelete.go index abb9c13..c8c4e63 100644 --- a/models/operations/benefitsdelete.go +++ b/models/operations/benefitsdelete.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type BenefitsDeleteRequest struct { diff --git a/models/operations/benefitsget.go b/models/operations/benefitsget.go index 8051c74..a2f148d 100644 --- a/models/operations/benefitsget.go +++ b/models/operations/benefitsget.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type BenefitsGetRequest struct { diff --git a/models/operations/benefitsgrants.go b/models/operations/benefitsgrants.go index 8901e79..6b2fba4 100644 --- a/models/operations/benefitsgrants.go +++ b/models/operations/benefitsgrants.go @@ -5,8 +5,8 @@ package operations import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/components" + "polar/internal/utils" + "polar/models/components" ) type QueryParamCustomerIDFilterType string diff --git a/models/operations/benefitslist.go b/models/operations/benefitslist.go index dc9de8b..4e733c0 100644 --- a/models/operations/benefitslist.go +++ b/models/operations/benefitslist.go @@ -5,8 +5,8 @@ package operations import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/components" + "polar/internal/utils" + "polar/models/components" ) type BenefitsListQueryParamOrganizationIDFilterType string diff --git a/models/operations/benefitsupdate.go b/models/operations/benefitsupdate.go index 21b5c68..f2cde8e 100644 --- a/models/operations/benefitsupdate.go +++ b/models/operations/benefitsupdate.go @@ -5,8 +5,8 @@ package operations import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/components" + "polar/internal/utils" + "polar/models/components" ) type BenefitsUpdateBenefitUpdateType string diff --git a/models/operations/checkoutlinkscreate.go b/models/operations/checkoutlinkscreate.go index 86fd3e2..7ddba9e 100644 --- a/models/operations/checkoutlinkscreate.go +++ b/models/operations/checkoutlinkscreate.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CheckoutLinksCreateResponse struct { diff --git a/models/operations/checkoutlinksdelete.go b/models/operations/checkoutlinksdelete.go index 05267cf..5e746eb 100644 --- a/models/operations/checkoutlinksdelete.go +++ b/models/operations/checkoutlinksdelete.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CheckoutLinksDeleteRequest struct { diff --git a/models/operations/checkoutlinksget.go b/models/operations/checkoutlinksget.go index baed4c5..b4815d0 100644 --- a/models/operations/checkoutlinksget.go +++ b/models/operations/checkoutlinksget.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CheckoutLinksGetRequest struct { diff --git a/models/operations/checkoutlinkslist.go b/models/operations/checkoutlinkslist.go index dfbbea2..1e9ab0b 100644 --- a/models/operations/checkoutlinkslist.go +++ b/models/operations/checkoutlinkslist.go @@ -5,8 +5,8 @@ package operations import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/components" + "polar/internal/utils" + "polar/models/components" ) type CheckoutLinksListQueryParamOrganizationIDFilterType string diff --git a/models/operations/checkoutlinksupdate.go b/models/operations/checkoutlinksupdate.go index f8aac76..f5686a6 100644 --- a/models/operations/checkoutlinksupdate.go +++ b/models/operations/checkoutlinksupdate.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CheckoutLinksUpdateRequest struct { diff --git a/models/operations/checkoutscreate.go b/models/operations/checkoutscreate.go index 4559d7a..069ac56 100644 --- a/models/operations/checkoutscreate.go +++ b/models/operations/checkoutscreate.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CheckoutsCreateResponse struct { diff --git a/models/operations/checkoutscustomclientconfirm.go b/models/operations/checkoutscustomclientconfirm.go index e0d35c5..f11d12e 100644 --- a/models/operations/checkoutscustomclientconfirm.go +++ b/models/operations/checkoutscustomclientconfirm.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CheckoutsCustomClientConfirmRequest struct { diff --git a/models/operations/checkoutscustomclientget.go b/models/operations/checkoutscustomclientget.go index 298bcfb..a3f0067 100644 --- a/models/operations/checkoutscustomclientget.go +++ b/models/operations/checkoutscustomclientget.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CheckoutsCustomClientGetRequest struct { diff --git a/models/operations/checkoutscustomclientupdate.go b/models/operations/checkoutscustomclientupdate.go index eefb63d..21acfb1 100644 --- a/models/operations/checkoutscustomclientupdate.go +++ b/models/operations/checkoutscustomclientupdate.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CheckoutsCustomClientUpdateRequest struct { diff --git a/models/operations/checkoutscustomcreate.go b/models/operations/checkoutscustomcreate.go index 23ab20e..adaad38 100644 --- a/models/operations/checkoutscustomcreate.go +++ b/models/operations/checkoutscustomcreate.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CheckoutsCustomCreateResponse struct { diff --git a/models/operations/checkoutscustomget.go b/models/operations/checkoutscustomget.go index 601cacf..5372b52 100644 --- a/models/operations/checkoutscustomget.go +++ b/models/operations/checkoutscustomget.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CheckoutsCustomGetRequest struct { diff --git a/models/operations/checkoutscustomlist.go b/models/operations/checkoutscustomlist.go index f0ad4ad..ca5681d 100644 --- a/models/operations/checkoutscustomlist.go +++ b/models/operations/checkoutscustomlist.go @@ -5,8 +5,8 @@ package operations import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/components" + "polar/internal/utils" + "polar/models/components" ) type CheckoutsCustomListQueryParamOrganizationIDFilterType string diff --git a/models/operations/checkoutscustomupdate.go b/models/operations/checkoutscustomupdate.go index 8056af7..6d67cf1 100644 --- a/models/operations/checkoutscustomupdate.go +++ b/models/operations/checkoutscustomupdate.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CheckoutsCustomUpdateRequest struct { diff --git a/models/operations/checkoutsget.go b/models/operations/checkoutsget.go index 1d70e9e..2426fd5 100644 --- a/models/operations/checkoutsget.go +++ b/models/operations/checkoutsget.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CheckoutsGetRequest struct { diff --git a/models/operations/customerportalbenefitgrantsget.go b/models/operations/customerportalbenefitgrantsget.go index 253a1d7..2f38116 100644 --- a/models/operations/customerportalbenefitgrantsget.go +++ b/models/operations/customerportalbenefitgrantsget.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CustomerPortalBenefitGrantsGetRequest struct { diff --git a/models/operations/customerportalbenefitgrantslist.go b/models/operations/customerportalbenefitgrantslist.go index 86ca4bc..c19b69d 100644 --- a/models/operations/customerportalbenefitgrantslist.go +++ b/models/operations/customerportalbenefitgrantslist.go @@ -5,8 +5,8 @@ package operations import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/components" + "polar/internal/utils" + "polar/models/components" ) type QueryParamBenefitTypeFilterType string diff --git a/models/operations/customerportalbenefitgrantsupdate.go b/models/operations/customerportalbenefitgrantsupdate.go index d7f66f9..2db81ad 100644 --- a/models/operations/customerportalbenefitgrantsupdate.go +++ b/models/operations/customerportalbenefitgrantsupdate.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CustomerPortalBenefitGrantsUpdateRequest struct { diff --git a/models/operations/customerportalcustomersget.go b/models/operations/customerportalcustomersget.go index 57f6ffe..2d8ae7e 100644 --- a/models/operations/customerportalcustomersget.go +++ b/models/operations/customerportalcustomersget.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CustomerPortalCustomersGetRequest struct { diff --git a/models/operations/customerportaldownloadablescustomerportaldownloadablesget.go b/models/operations/customerportaldownloadablescustomerportaldownloadablesget.go index b8d8770..be18e29 100644 --- a/models/operations/customerportaldownloadablescustomerportaldownloadablesget.go +++ b/models/operations/customerportaldownloadablescustomerportaldownloadablesget.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CustomerPortalDownloadablesCustomerPortalDownloadablesGetRequest struct { diff --git a/models/operations/customerportaldownloadableslist.go b/models/operations/customerportaldownloadableslist.go index 0e849a2..5f955b3 100644 --- a/models/operations/customerportaldownloadableslist.go +++ b/models/operations/customerportaldownloadableslist.go @@ -5,8 +5,8 @@ package operations import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/components" + "polar/internal/utils" + "polar/models/components" ) type CustomerPortalDownloadablesListQueryParamOrganizationIDFilterType string diff --git a/models/operations/customerportallicensekeysactivate.go b/models/operations/customerportallicensekeysactivate.go index 099918b..66469d6 100644 --- a/models/operations/customerportallicensekeysactivate.go +++ b/models/operations/customerportallicensekeysactivate.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CustomerPortalLicenseKeysActivateResponse struct { diff --git a/models/operations/customerportallicensekeysdeactivate.go b/models/operations/customerportallicensekeysdeactivate.go index 1359cdd..884558e 100644 --- a/models/operations/customerportallicensekeysdeactivate.go +++ b/models/operations/customerportallicensekeysdeactivate.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CustomerPortalLicenseKeysDeactivateResponse struct { diff --git a/models/operations/customerportallicensekeysget.go b/models/operations/customerportallicensekeysget.go index 71b2592..59ea62a 100644 --- a/models/operations/customerportallicensekeysget.go +++ b/models/operations/customerportallicensekeysget.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CustomerPortalLicenseKeysGetRequest struct { diff --git a/models/operations/customerportallicensekeyslist.go b/models/operations/customerportallicensekeyslist.go index 3936207..875acc1 100644 --- a/models/operations/customerportallicensekeyslist.go +++ b/models/operations/customerportallicensekeyslist.go @@ -5,8 +5,8 @@ package operations import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/components" + "polar/internal/utils" + "polar/models/components" ) type CustomerPortalLicenseKeysListQueryParamOrganizationIDFilterType string diff --git a/models/operations/customerportallicensekeysvalidate.go b/models/operations/customerportallicensekeysvalidate.go index 437cf5d..66d940e 100644 --- a/models/operations/customerportallicensekeysvalidate.go +++ b/models/operations/customerportallicensekeysvalidate.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CustomerPortalLicenseKeysValidateResponse struct { diff --git a/models/operations/customerportalordersget.go b/models/operations/customerportalordersget.go index 4603ed4..429a3c4 100644 --- a/models/operations/customerportalordersget.go +++ b/models/operations/customerportalordersget.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CustomerPortalOrdersGetRequest struct { diff --git a/models/operations/customerportalordersinvoice.go b/models/operations/customerportalordersinvoice.go index eed8086..c15217f 100644 --- a/models/operations/customerportalordersinvoice.go +++ b/models/operations/customerportalordersinvoice.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CustomerPortalOrdersInvoiceRequest struct { diff --git a/models/operations/customerportalorderslist.go b/models/operations/customerportalorderslist.go index 64c69a1..8ffe799 100644 --- a/models/operations/customerportalorderslist.go +++ b/models/operations/customerportalorderslist.go @@ -5,8 +5,8 @@ package operations import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/components" + "polar/internal/utils" + "polar/models/components" ) type CustomerPortalOrdersListQueryParamOrganizationIDFilterType string diff --git a/models/operations/customerportalorganizationsget.go b/models/operations/customerportalorganizationsget.go index 02fbd67..11d3fb8 100644 --- a/models/operations/customerportalorganizationsget.go +++ b/models/operations/customerportalorganizationsget.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CustomerPortalOrganizationsGetRequest struct { diff --git a/models/operations/customerportalsubscriptionscancel.go b/models/operations/customerportalsubscriptionscancel.go index 51057fd..c89c0e8 100644 --- a/models/operations/customerportalsubscriptionscancel.go +++ b/models/operations/customerportalsubscriptionscancel.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CustomerPortalSubscriptionsCancelRequest struct { diff --git a/models/operations/customerportalsubscriptionsget.go b/models/operations/customerportalsubscriptionsget.go index b1b5f0f..9387a18 100644 --- a/models/operations/customerportalsubscriptionsget.go +++ b/models/operations/customerportalsubscriptionsget.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CustomerPortalSubscriptionsGetRequest struct { diff --git a/models/operations/customerportalsubscriptionslist.go b/models/operations/customerportalsubscriptionslist.go index 06de639..cb8a016 100644 --- a/models/operations/customerportalsubscriptionslist.go +++ b/models/operations/customerportalsubscriptionslist.go @@ -5,8 +5,8 @@ package operations import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/components" + "polar/internal/utils" + "polar/models/components" ) type CustomerPortalSubscriptionsListQueryParamOrganizationIDFilterType string diff --git a/models/operations/customerportalsubscriptionsupdate.go b/models/operations/customerportalsubscriptionsupdate.go index e4f5f03..da69f24 100644 --- a/models/operations/customerportalsubscriptionsupdate.go +++ b/models/operations/customerportalsubscriptionsupdate.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CustomerPortalSubscriptionsUpdateRequest struct { diff --git a/models/operations/customerscreate.go b/models/operations/customerscreate.go index 2e29439..545352e 100644 --- a/models/operations/customerscreate.go +++ b/models/operations/customerscreate.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CustomersCreateResponse struct { diff --git a/models/operations/customersdelete.go b/models/operations/customersdelete.go index 746dbd5..be76078 100644 --- a/models/operations/customersdelete.go +++ b/models/operations/customersdelete.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CustomersDeleteRequest struct { diff --git a/models/operations/customersget.go b/models/operations/customersget.go index 9e008a5..44e6ded 100644 --- a/models/operations/customersget.go +++ b/models/operations/customersget.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CustomersGetRequest struct { diff --git a/models/operations/customerslist.go b/models/operations/customerslist.go index 7c9e1a5..e6b653f 100644 --- a/models/operations/customerslist.go +++ b/models/operations/customerslist.go @@ -5,8 +5,8 @@ package operations import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/components" + "polar/internal/utils" + "polar/models/components" ) type CustomersListQueryParamOrganizationIDFilterType string diff --git a/models/operations/customersupdate.go b/models/operations/customersupdate.go index 830da1f..17063d6 100644 --- a/models/operations/customersupdate.go +++ b/models/operations/customersupdate.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CustomersUpdateRequest struct { diff --git a/models/operations/customfieldscreate.go b/models/operations/customfieldscreate.go index 1050eed..8a40c33 100644 --- a/models/operations/customfieldscreate.go +++ b/models/operations/customfieldscreate.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CustomFieldsCreateResponse struct { diff --git a/models/operations/customfieldsdelete.go b/models/operations/customfieldsdelete.go index d10b763..f03ac4c 100644 --- a/models/operations/customfieldsdelete.go +++ b/models/operations/customfieldsdelete.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CustomFieldsDeleteRequest struct { diff --git a/models/operations/customfieldsget.go b/models/operations/customfieldsget.go index 6945780..5fb7689 100644 --- a/models/operations/customfieldsget.go +++ b/models/operations/customfieldsget.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CustomFieldsGetRequest struct { diff --git a/models/operations/customfieldslist.go b/models/operations/customfieldslist.go index 0a8b9fa..d2f83c8 100644 --- a/models/operations/customfieldslist.go +++ b/models/operations/customfieldslist.go @@ -5,8 +5,8 @@ package operations import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/components" + "polar/internal/utils" + "polar/models/components" ) type CustomFieldsListQueryParamOrganizationIDFilterType string diff --git a/models/operations/customfieldsupdate.go b/models/operations/customfieldsupdate.go index 4543f18..1c31170 100644 --- a/models/operations/customfieldsupdate.go +++ b/models/operations/customfieldsupdate.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type CustomFieldsUpdateRequest struct { diff --git a/models/operations/discountscreate.go b/models/operations/discountscreate.go index ad8fe3c..cdb1127 100644 --- a/models/operations/discountscreate.go +++ b/models/operations/discountscreate.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type DiscountsCreateResponse struct { diff --git a/models/operations/discountsdelete.go b/models/operations/discountsdelete.go index 4fe2fd5..89ee622 100644 --- a/models/operations/discountsdelete.go +++ b/models/operations/discountsdelete.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type DiscountsDeleteRequest struct { diff --git a/models/operations/discountsget.go b/models/operations/discountsget.go index 93c0e21..713310b 100644 --- a/models/operations/discountsget.go +++ b/models/operations/discountsget.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type DiscountsGetRequest struct { diff --git a/models/operations/discountslist.go b/models/operations/discountslist.go index 7631271..29beae6 100644 --- a/models/operations/discountslist.go +++ b/models/operations/discountslist.go @@ -5,8 +5,8 @@ package operations import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/components" + "polar/internal/utils" + "polar/models/components" ) type DiscountsListQueryParamOrganizationIDFilterType string diff --git a/models/operations/discountsupdate.go b/models/operations/discountsupdate.go index 806dd30..e1475e8 100644 --- a/models/operations/discountsupdate.go +++ b/models/operations/discountsupdate.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type DiscountsUpdateRequest struct { diff --git a/models/operations/externalorganizationslist.go b/models/operations/externalorganizationslist.go index 0ba3769..2149c1d 100644 --- a/models/operations/externalorganizationslist.go +++ b/models/operations/externalorganizationslist.go @@ -5,8 +5,8 @@ package operations import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/components" + "polar/internal/utils" + "polar/models/components" ) type PlatformFilterType string diff --git a/models/operations/filescreate.go b/models/operations/filescreate.go index 3271956..549bbaa 100644 --- a/models/operations/filescreate.go +++ b/models/operations/filescreate.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type FilesCreateResponse struct { diff --git a/models/operations/filesdelete.go b/models/operations/filesdelete.go index 54406b1..2a6da90 100644 --- a/models/operations/filesdelete.go +++ b/models/operations/filesdelete.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type FilesDeleteRequest struct { diff --git a/models/operations/fileslist.go b/models/operations/fileslist.go index d88211a..089aefa 100644 --- a/models/operations/fileslist.go +++ b/models/operations/fileslist.go @@ -3,8 +3,8 @@ package operations import ( - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/components" + "polar/internal/utils" + "polar/models/components" ) type FilesListRequest struct { diff --git a/models/operations/filesupdate.go b/models/operations/filesupdate.go index 793e09a..9e419aa 100644 --- a/models/operations/filesupdate.go +++ b/models/operations/filesupdate.go @@ -6,8 +6,8 @@ import ( "encoding/json" "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/components" + "polar/internal/utils" + "polar/models/components" ) type FilesUpdateRequest struct { diff --git a/models/operations/filesuploaded.go b/models/operations/filesuploaded.go index 10528e1..12bdb56 100644 --- a/models/operations/filesuploaded.go +++ b/models/operations/filesuploaded.go @@ -6,8 +6,8 @@ import ( "encoding/json" "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/components" + "polar/internal/utils" + "polar/models/components" ) type FilesUploadedRequest struct { diff --git a/models/operations/licensekeysget.go b/models/operations/licensekeysget.go index 4f25442..2768fcb 100644 --- a/models/operations/licensekeysget.go +++ b/models/operations/licensekeysget.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type LicenseKeysGetRequest struct { diff --git a/models/operations/licensekeysgetactivation.go b/models/operations/licensekeysgetactivation.go index 52422c6..0456c75 100644 --- a/models/operations/licensekeysgetactivation.go +++ b/models/operations/licensekeysgetactivation.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type LicenseKeysGetActivationRequest struct { diff --git a/models/operations/licensekeyslist.go b/models/operations/licensekeyslist.go index 4e906da..abbe3b1 100644 --- a/models/operations/licensekeyslist.go +++ b/models/operations/licensekeyslist.go @@ -5,8 +5,8 @@ package operations import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/components" + "polar/internal/utils" + "polar/models/components" ) type LicenseKeysListQueryParamOrganizationIDFilterType string diff --git a/models/operations/licensekeysupdate.go b/models/operations/licensekeysupdate.go index ce6da23..c955e32 100644 --- a/models/operations/licensekeysupdate.go +++ b/models/operations/licensekeysupdate.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type LicenseKeysUpdateRequest struct { diff --git a/models/operations/metricsget.go b/models/operations/metricsget.go index e35b971..03e3c3b 100644 --- a/models/operations/metricsget.go +++ b/models/operations/metricsget.go @@ -5,9 +5,9 @@ package operations import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/components" - "github.com/polarsource/polar-go/types" + "polar/internal/utils" + "polar/models/components" + "polar/types" ) type MetricsGetQueryParamOrganizationIDFilterType string diff --git a/models/operations/metricslimits.go b/models/operations/metricslimits.go index d77aa3c..165f730 100644 --- a/models/operations/metricslimits.go +++ b/models/operations/metricslimits.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type MetricsLimitsResponse struct { diff --git a/models/operations/oauth2authorize.go b/models/operations/oauth2authorize.go index 2a78551..f353411 100644 --- a/models/operations/oauth2authorize.go +++ b/models/operations/oauth2authorize.go @@ -6,8 +6,8 @@ import ( "encoding/json" "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/components" + "polar/internal/utils" + "polar/models/components" ) type Oauth2AuthorizeResponseOauth2AuthorizeType string diff --git a/models/operations/oauth2clientslist.go b/models/operations/oauth2clientslist.go index 4f0b210..6abbd30 100644 --- a/models/operations/oauth2clientslist.go +++ b/models/operations/oauth2clientslist.go @@ -3,8 +3,8 @@ package operations import ( - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/components" + "polar/internal/utils" + "polar/models/components" ) type Oauth2ClientsListRequest struct { diff --git a/models/operations/oauth2clientsoauth2createclient.go b/models/operations/oauth2clientsoauth2createclient.go index aaa082a..7269bc7 100644 --- a/models/operations/oauth2clientsoauth2createclient.go +++ b/models/operations/oauth2clientsoauth2createclient.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type Oauth2ClientsOauth2CreateClientResponse struct { diff --git a/models/operations/oauth2clientsoauth2deleteclient.go b/models/operations/oauth2clientsoauth2deleteclient.go index b2366c4..3f6863f 100644 --- a/models/operations/oauth2clientsoauth2deleteclient.go +++ b/models/operations/oauth2clientsoauth2deleteclient.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type Oauth2ClientsOauth2DeleteClientRequest struct { diff --git a/models/operations/oauth2clientsoauth2getclient.go b/models/operations/oauth2clientsoauth2getclient.go index cc651cd..128c184 100644 --- a/models/operations/oauth2clientsoauth2getclient.go +++ b/models/operations/oauth2clientsoauth2getclient.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type Oauth2ClientsOauth2GetClientRequest struct { diff --git a/models/operations/oauth2clientsoauth2updateclient.go b/models/operations/oauth2clientsoauth2updateclient.go index 53ad8db..2a1415e 100644 --- a/models/operations/oauth2clientsoauth2updateclient.go +++ b/models/operations/oauth2clientsoauth2updateclient.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type Oauth2ClientsOauth2UpdateClientRequest struct { diff --git a/models/operations/oauth2introspecttoken.go b/models/operations/oauth2introspecttoken.go index e79ff61..c729863 100644 --- a/models/operations/oauth2introspecttoken.go +++ b/models/operations/oauth2introspecttoken.go @@ -5,7 +5,7 @@ package operations import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type Oauth2IntrospectTokenTokenTypeHint string diff --git a/models/operations/oauth2requesttoken.go b/models/operations/oauth2requesttoken.go index 2ad377f..ffbdc83 100644 --- a/models/operations/oauth2requesttoken.go +++ b/models/operations/oauth2requesttoken.go @@ -6,8 +6,8 @@ import ( "encoding/json" "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/components" + "polar/internal/utils" + "polar/models/components" ) type Oauth2RequestTokenRequestBodyType string diff --git a/models/operations/oauth2revoketoken.go b/models/operations/oauth2revoketoken.go index d360da5..a09ff43 100644 --- a/models/operations/oauth2revoketoken.go +++ b/models/operations/oauth2revoketoken.go @@ -5,7 +5,7 @@ package operations import ( "encoding/json" "fmt" - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type TokenTypeHint string diff --git a/models/operations/oauth2userinfo.go b/models/operations/oauth2userinfo.go index 8fd97bb..0f1c075 100644 --- a/models/operations/oauth2userinfo.go +++ b/models/operations/oauth2userinfo.go @@ -5,8 +5,8 @@ package operations import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/components" + "polar/internal/utils" + "polar/models/components" ) type Oauth2UserinfoResponseOauth2UserinfoType string diff --git a/models/operations/options.go b/models/operations/options.go index ddfa9d6..d53ac6c 100644 --- a/models/operations/options.go +++ b/models/operations/options.go @@ -4,8 +4,8 @@ package operations import ( "errors" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/retry" + "polar/internal/utils" + "polar/retry" "time" ) diff --git a/models/operations/ordersget.go b/models/operations/ordersget.go index a8387bb..5fa96fd 100644 --- a/models/operations/ordersget.go +++ b/models/operations/ordersget.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type OrdersGetRequest struct { diff --git a/models/operations/ordersinvoice.go b/models/operations/ordersinvoice.go index 06399a7..f20cf82 100644 --- a/models/operations/ordersinvoice.go +++ b/models/operations/ordersinvoice.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type OrdersInvoiceRequest struct { diff --git a/models/operations/orderslist.go b/models/operations/orderslist.go index a40514a..181b29c 100644 --- a/models/operations/orderslist.go +++ b/models/operations/orderslist.go @@ -5,8 +5,8 @@ package operations import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/components" + "polar/internal/utils" + "polar/models/components" ) type OrdersListQueryParamOrganizationIDFilterType string diff --git a/models/operations/organizationscreate.go b/models/operations/organizationscreate.go index 768509b..0d5189a 100644 --- a/models/operations/organizationscreate.go +++ b/models/operations/organizationscreate.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type OrganizationsCreateResponse struct { diff --git a/models/operations/organizationsget.go b/models/operations/organizationsget.go index cceee9b..7cb4c0f 100644 --- a/models/operations/organizationsget.go +++ b/models/operations/organizationsget.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type OrganizationsGetRequest struct { diff --git a/models/operations/organizationslist.go b/models/operations/organizationslist.go index 1b16f63..767842e 100644 --- a/models/operations/organizationslist.go +++ b/models/operations/organizationslist.go @@ -3,8 +3,8 @@ package operations import ( - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/components" + "polar/internal/utils" + "polar/models/components" ) type OrganizationsListRequest struct { diff --git a/models/operations/organizationsupdate.go b/models/operations/organizationsupdate.go index 4ecd5f5..027c67c 100644 --- a/models/operations/organizationsupdate.go +++ b/models/operations/organizationsupdate.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type OrganizationsUpdateRequest struct { diff --git a/models/operations/productscreate.go b/models/operations/productscreate.go index edc5a36..59754ae 100644 --- a/models/operations/productscreate.go +++ b/models/operations/productscreate.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type ProductsCreateResponse struct { diff --git a/models/operations/productsget.go b/models/operations/productsget.go index 44e7988..449a1c5 100644 --- a/models/operations/productsget.go +++ b/models/operations/productsget.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type ProductsGetRequest struct { diff --git a/models/operations/productslist.go b/models/operations/productslist.go index 1ff82e1..68320fd 100644 --- a/models/operations/productslist.go +++ b/models/operations/productslist.go @@ -5,8 +5,8 @@ package operations import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/components" + "polar/internal/utils" + "polar/models/components" ) type ProductsListQueryParamOrganizationIDFilterType string diff --git a/models/operations/productsupdate.go b/models/operations/productsupdate.go index b21fdaf..1ac46fe 100644 --- a/models/operations/productsupdate.go +++ b/models/operations/productsupdate.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type ProductsUpdateRequest struct { diff --git a/models/operations/productsupdatebenefits.go b/models/operations/productsupdatebenefits.go index c46d764..a4e5315 100644 --- a/models/operations/productsupdatebenefits.go +++ b/models/operations/productsupdatebenefits.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type ProductsUpdateBenefitsRequest struct { diff --git a/models/operations/repositoriesget.go b/models/operations/repositoriesget.go index e6b500f..4c40d1b 100644 --- a/models/operations/repositoriesget.go +++ b/models/operations/repositoriesget.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type RepositoriesGetRequest struct { diff --git a/models/operations/repositorieslist.go b/models/operations/repositorieslist.go index 874ef15..038564d 100644 --- a/models/operations/repositorieslist.go +++ b/models/operations/repositorieslist.go @@ -5,8 +5,8 @@ package operations import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/components" + "polar/internal/utils" + "polar/models/components" ) type QueryParamPlatformFilterType string diff --git a/models/operations/repositoriesupdate.go b/models/operations/repositoriesupdate.go index 72c7bd0..2884203 100644 --- a/models/operations/repositoriesupdate.go +++ b/models/operations/repositoriesupdate.go @@ -3,7 +3,7 @@ package operations import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type RepositoriesUpdateRequest struct { diff --git a/models/operations/subscriptionsexport.go b/models/operations/subscriptionsexport.go index aea6d61..e55c20d 100644 --- a/models/operations/subscriptionsexport.go +++ b/models/operations/subscriptionsexport.go @@ -5,8 +5,8 @@ package operations import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/components" + "polar/internal/utils" + "polar/models/components" ) type OrganizationIDType string diff --git a/models/operations/subscriptionslist.go b/models/operations/subscriptionslist.go index ec9f824..63bbc0d 100644 --- a/models/operations/subscriptionslist.go +++ b/models/operations/subscriptionslist.go @@ -5,8 +5,8 @@ package operations import ( "errors" "fmt" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/components" + "polar/internal/utils" + "polar/models/components" ) type SubscriptionsListQueryParamOrganizationIDFilterType string diff --git a/models/webhooks/endpointbenefitcreatedpost.go b/models/webhooks/endpointbenefitcreatedpost.go index 631523c..de1919b 100644 --- a/models/webhooks/endpointbenefitcreatedpost.go +++ b/models/webhooks/endpointbenefitcreatedpost.go @@ -3,7 +3,7 @@ package webhooks import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type EndpointbenefitCreatedPostResponse struct { diff --git a/models/webhooks/endpointbenefitgrantcreatedpost.go b/models/webhooks/endpointbenefitgrantcreatedpost.go index e0fe936..c86c460 100644 --- a/models/webhooks/endpointbenefitgrantcreatedpost.go +++ b/models/webhooks/endpointbenefitgrantcreatedpost.go @@ -3,7 +3,7 @@ package webhooks import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type EndpointbenefitGrantCreatedPostResponse struct { diff --git a/models/webhooks/endpointbenefitgrantrevokedpost.go b/models/webhooks/endpointbenefitgrantrevokedpost.go index 311ac36..e98a9f4 100644 --- a/models/webhooks/endpointbenefitgrantrevokedpost.go +++ b/models/webhooks/endpointbenefitgrantrevokedpost.go @@ -3,7 +3,7 @@ package webhooks import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type EndpointbenefitGrantRevokedPostResponse struct { diff --git a/models/webhooks/endpointbenefitgrantupdatedpost.go b/models/webhooks/endpointbenefitgrantupdatedpost.go index 6f99b45..6ea75af 100644 --- a/models/webhooks/endpointbenefitgrantupdatedpost.go +++ b/models/webhooks/endpointbenefitgrantupdatedpost.go @@ -3,7 +3,7 @@ package webhooks import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type EndpointbenefitGrantUpdatedPostResponse struct { diff --git a/models/webhooks/endpointbenefitupdatedpost.go b/models/webhooks/endpointbenefitupdatedpost.go index d000822..81050dc 100644 --- a/models/webhooks/endpointbenefitupdatedpost.go +++ b/models/webhooks/endpointbenefitupdatedpost.go @@ -3,7 +3,7 @@ package webhooks import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type EndpointbenefitUpdatedPostResponse struct { diff --git a/models/webhooks/endpointcheckoutcreatedpost.go b/models/webhooks/endpointcheckoutcreatedpost.go index 1caf90f..652d487 100644 --- a/models/webhooks/endpointcheckoutcreatedpost.go +++ b/models/webhooks/endpointcheckoutcreatedpost.go @@ -3,7 +3,7 @@ package webhooks import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type EndpointcheckoutCreatedPostResponse struct { diff --git a/models/webhooks/endpointcheckoutupdatedpost.go b/models/webhooks/endpointcheckoutupdatedpost.go index b671d3f..e4fb89a 100644 --- a/models/webhooks/endpointcheckoutupdatedpost.go +++ b/models/webhooks/endpointcheckoutupdatedpost.go @@ -3,7 +3,7 @@ package webhooks import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type EndpointcheckoutUpdatedPostResponse struct { diff --git a/models/webhooks/endpointordercreatedpost.go b/models/webhooks/endpointordercreatedpost.go index e6c6f23..9bf2460 100644 --- a/models/webhooks/endpointordercreatedpost.go +++ b/models/webhooks/endpointordercreatedpost.go @@ -3,7 +3,7 @@ package webhooks import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type EndpointorderCreatedPostResponse struct { diff --git a/models/webhooks/endpointorganizationupdatedpost.go b/models/webhooks/endpointorganizationupdatedpost.go index 64c9cb4..2699997 100644 --- a/models/webhooks/endpointorganizationupdatedpost.go +++ b/models/webhooks/endpointorganizationupdatedpost.go @@ -3,7 +3,7 @@ package webhooks import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type EndpointorganizationUpdatedPostResponse struct { diff --git a/models/webhooks/endpointpledgecreatedpost.go b/models/webhooks/endpointpledgecreatedpost.go index d0928c1..eae9f05 100644 --- a/models/webhooks/endpointpledgecreatedpost.go +++ b/models/webhooks/endpointpledgecreatedpost.go @@ -3,7 +3,7 @@ package webhooks import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type EndpointpledgeCreatedPostResponse struct { diff --git a/models/webhooks/endpointpledgeupdatedpost.go b/models/webhooks/endpointpledgeupdatedpost.go index b65fbc1..c4ac16f 100644 --- a/models/webhooks/endpointpledgeupdatedpost.go +++ b/models/webhooks/endpointpledgeupdatedpost.go @@ -3,7 +3,7 @@ package webhooks import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type EndpointpledgeUpdatedPostResponse struct { diff --git a/models/webhooks/endpointproductcreatedpost.go b/models/webhooks/endpointproductcreatedpost.go index 3f5d452..6f3e4c1 100644 --- a/models/webhooks/endpointproductcreatedpost.go +++ b/models/webhooks/endpointproductcreatedpost.go @@ -3,7 +3,7 @@ package webhooks import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type EndpointproductCreatedPostResponse struct { diff --git a/models/webhooks/endpointproductupdatedpost.go b/models/webhooks/endpointproductupdatedpost.go index 2b2e347..57e6951 100644 --- a/models/webhooks/endpointproductupdatedpost.go +++ b/models/webhooks/endpointproductupdatedpost.go @@ -3,7 +3,7 @@ package webhooks import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type EndpointproductUpdatedPostResponse struct { diff --git a/models/webhooks/endpointsubscriptionactivepost.go b/models/webhooks/endpointsubscriptionactivepost.go index 9431508..5fd2911 100644 --- a/models/webhooks/endpointsubscriptionactivepost.go +++ b/models/webhooks/endpointsubscriptionactivepost.go @@ -3,7 +3,7 @@ package webhooks import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type EndpointsubscriptionActivePostResponse struct { diff --git a/models/webhooks/endpointsubscriptioncanceledpost.go b/models/webhooks/endpointsubscriptioncanceledpost.go index e236995..b3ce308 100644 --- a/models/webhooks/endpointsubscriptioncanceledpost.go +++ b/models/webhooks/endpointsubscriptioncanceledpost.go @@ -3,7 +3,7 @@ package webhooks import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type EndpointsubscriptionCanceledPostResponse struct { diff --git a/models/webhooks/endpointsubscriptioncreatedpost.go b/models/webhooks/endpointsubscriptioncreatedpost.go index 7bd2e58..9f4ad96 100644 --- a/models/webhooks/endpointsubscriptioncreatedpost.go +++ b/models/webhooks/endpointsubscriptioncreatedpost.go @@ -3,7 +3,7 @@ package webhooks import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type EndpointsubscriptionCreatedPostResponse struct { diff --git a/models/webhooks/endpointsubscriptionrevokedpost.go b/models/webhooks/endpointsubscriptionrevokedpost.go index b99ca8e..7269919 100644 --- a/models/webhooks/endpointsubscriptionrevokedpost.go +++ b/models/webhooks/endpointsubscriptionrevokedpost.go @@ -3,7 +3,7 @@ package webhooks import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type EndpointsubscriptionRevokedPostResponse struct { diff --git a/models/webhooks/endpointsubscriptionupdatedpost.go b/models/webhooks/endpointsubscriptionupdatedpost.go index 4f38e3f..2d9a6e7 100644 --- a/models/webhooks/endpointsubscriptionupdatedpost.go +++ b/models/webhooks/endpointsubscriptionupdatedpost.go @@ -3,7 +3,7 @@ package webhooks import ( - "github.com/polarsource/polar-go/models/components" + "polar/models/components" ) type EndpointsubscriptionUpdatedPostResponse struct { diff --git a/oauth2.go b/oauth2.go index 268e7ea..843654b 100644 --- a/oauth2.go +++ b/oauth2.go @@ -1,19 +1,19 @@ // Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -package polargo +package polar import ( "bytes" "context" "fmt" - "github.com/polarsource/polar-go/internal/hooks" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/apierrors" - "github.com/polarsource/polar-go/models/components" - "github.com/polarsource/polar-go/models/operations" - "github.com/polarsource/polar-go/retry" "net/http" "net/url" + "polar/internal/hooks" + "polar/internal/utils" + "polar/models/apierrors" + "polar/models/components" + "polar/models/operations" + "polar/retry" ) type Oauth2 struct { diff --git a/orders.go b/orders.go index 821074d..2e14971 100644 --- a/orders.go +++ b/orders.go @@ -1,20 +1,20 @@ // Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -package polargo +package polar import ( "bytes" "context" "fmt" - "github.com/polarsource/polar-go/internal/hooks" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/apierrors" - "github.com/polarsource/polar-go/models/components" - "github.com/polarsource/polar-go/models/operations" - "github.com/polarsource/polar-go/retry" "github.com/spyzhov/ajson" "net/http" "net/url" + "polar/internal/hooks" + "polar/internal/utils" + "polar/models/apierrors" + "polar/models/components" + "polar/models/operations" + "polar/retry" ) type Orders struct { diff --git a/organizations.go b/organizations.go index 8986edb..788e55b 100644 --- a/organizations.go +++ b/organizations.go @@ -1,20 +1,20 @@ // Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -package polargo +package polar import ( "bytes" "context" "fmt" - "github.com/polarsource/polar-go/internal/hooks" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/apierrors" - "github.com/polarsource/polar-go/models/components" - "github.com/polarsource/polar-go/models/operations" - "github.com/polarsource/polar-go/retry" "github.com/spyzhov/ajson" "net/http" "net/url" + "polar/internal/hooks" + "polar/internal/utils" + "polar/models/apierrors" + "polar/models/components" + "polar/models/operations" + "polar/retry" ) type Organizations struct { diff --git a/polar.go b/polar.go index b514974..0238ca2 100644 --- a/polar.go +++ b/polar.go @@ -1,15 +1,15 @@ // Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -package polargo +package polar import ( "context" "fmt" - "github.com/polarsource/polar-go/internal/hooks" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/components" - "github.com/polarsource/polar-go/retry" "net/http" + "polar/internal/hooks" + "polar/internal/utils" + "polar/models/components" + "polar/retry" "time" ) @@ -179,9 +179,9 @@ func New(opts ...SDKOption) *Polar { sdkConfiguration: sdkConfiguration{ Language: "go", OpenAPIDocVersion: "0.1.0", - SDKVersion: "0.0.1", - GenVersion: "2.480.1", - UserAgent: "speakeasy-sdk/go 0.0.1 2.480.1 0.1.0 github.com/polarsource/polar-go", + SDKVersion: "0.0.2", + GenVersion: "2.481.0", + UserAgent: "speakeasy-sdk/go 0.0.2 2.481.0 0.1.0 polar", Hooks: hooks.New(), }, } diff --git a/polarcustomers.go b/polarcustomers.go index 493dbd0..9db74b4 100644 --- a/polarcustomers.go +++ b/polarcustomers.go @@ -1,18 +1,18 @@ // Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -package polargo +package polar import ( "bytes" "context" "fmt" - "github.com/polarsource/polar-go/internal/hooks" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/apierrors" - "github.com/polarsource/polar-go/models/components" - "github.com/polarsource/polar-go/models/operations" - "github.com/polarsource/polar-go/retry" "net/http" + "polar/internal/hooks" + "polar/internal/utils" + "polar/models/apierrors" + "polar/models/components" + "polar/models/operations" + "polar/retry" ) type PolarCustomers struct { diff --git a/polarlicensekeys.go b/polarlicensekeys.go index d6d6b86..9e8d3b0 100644 --- a/polarlicensekeys.go +++ b/polarlicensekeys.go @@ -1,20 +1,20 @@ // Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -package polargo +package polar import ( "bytes" "context" "fmt" - "github.com/polarsource/polar-go/internal/hooks" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/apierrors" - "github.com/polarsource/polar-go/models/components" - "github.com/polarsource/polar-go/models/operations" - "github.com/polarsource/polar-go/retry" "github.com/spyzhov/ajson" "net/http" "net/url" + "polar/internal/hooks" + "polar/internal/utils" + "polar/models/apierrors" + "polar/models/components" + "polar/models/operations" + "polar/retry" ) type PolarLicenseKeys struct { diff --git a/polarorders.go b/polarorders.go index 7f0dcf8..0f56f90 100644 --- a/polarorders.go +++ b/polarorders.go @@ -1,20 +1,20 @@ // Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -package polargo +package polar import ( "bytes" "context" "fmt" - "github.com/polarsource/polar-go/internal/hooks" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/apierrors" - "github.com/polarsource/polar-go/models/components" - "github.com/polarsource/polar-go/models/operations" - "github.com/polarsource/polar-go/retry" "github.com/spyzhov/ajson" "net/http" "net/url" + "polar/internal/hooks" + "polar/internal/utils" + "polar/models/apierrors" + "polar/models/components" + "polar/models/operations" + "polar/retry" ) type PolarOrders struct { diff --git a/polarorganizations.go b/polarorganizations.go index 91d7478..7a49a3c 100644 --- a/polarorganizations.go +++ b/polarorganizations.go @@ -1,18 +1,18 @@ // Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -package polargo +package polar import ( "bytes" "context" "fmt" - "github.com/polarsource/polar-go/internal/hooks" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/apierrors" - "github.com/polarsource/polar-go/models/components" - "github.com/polarsource/polar-go/models/operations" - "github.com/polarsource/polar-go/retry" "net/http" + "polar/internal/hooks" + "polar/internal/utils" + "polar/models/apierrors" + "polar/models/components" + "polar/models/operations" + "polar/retry" ) type PolarOrganizations struct { diff --git a/polarsubscriptions.go b/polarsubscriptions.go index 61378b0..9909889 100644 --- a/polarsubscriptions.go +++ b/polarsubscriptions.go @@ -1,20 +1,20 @@ // Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -package polargo +package polar import ( "bytes" "context" "fmt" - "github.com/polarsource/polar-go/internal/hooks" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/apierrors" - "github.com/polarsource/polar-go/models/components" - "github.com/polarsource/polar-go/models/operations" - "github.com/polarsource/polar-go/retry" "github.com/spyzhov/ajson" "net/http" "net/url" + "polar/internal/hooks" + "polar/internal/utils" + "polar/models/apierrors" + "polar/models/components" + "polar/models/operations" + "polar/retry" ) type PolarSubscriptions struct { diff --git a/products.go b/products.go index 96b3759..004746c 100644 --- a/products.go +++ b/products.go @@ -1,20 +1,20 @@ // Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -package polargo +package polar import ( "bytes" "context" "fmt" - "github.com/polarsource/polar-go/internal/hooks" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/apierrors" - "github.com/polarsource/polar-go/models/components" - "github.com/polarsource/polar-go/models/operations" - "github.com/polarsource/polar-go/retry" "github.com/spyzhov/ajson" "net/http" "net/url" + "polar/internal/hooks" + "polar/internal/utils" + "polar/models/apierrors" + "polar/models/components" + "polar/models/operations" + "polar/retry" ) type Products struct { diff --git a/repositories.go b/repositories.go index 415e4d8..7d55fb4 100644 --- a/repositories.go +++ b/repositories.go @@ -1,20 +1,20 @@ // Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -package polargo +package polar import ( "bytes" "context" "fmt" - "github.com/polarsource/polar-go/internal/hooks" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/apierrors" - "github.com/polarsource/polar-go/models/components" - "github.com/polarsource/polar-go/models/operations" - "github.com/polarsource/polar-go/retry" "github.com/spyzhov/ajson" "net/http" "net/url" + "polar/internal/hooks" + "polar/internal/utils" + "polar/models/apierrors" + "polar/models/components" + "polar/models/operations" + "polar/retry" ) type Repositories struct { diff --git a/subscriptions.go b/subscriptions.go index 2296d7c..5e1b02b 100644 --- a/subscriptions.go +++ b/subscriptions.go @@ -1,20 +1,20 @@ // Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -package polargo +package polar import ( "bytes" "context" "fmt" - "github.com/polarsource/polar-go/internal/hooks" - "github.com/polarsource/polar-go/internal/utils" - "github.com/polarsource/polar-go/models/apierrors" - "github.com/polarsource/polar-go/models/components" - "github.com/polarsource/polar-go/models/operations" - "github.com/polarsource/polar-go/retry" "github.com/spyzhov/ajson" "net/http" "net/url" + "polar/internal/hooks" + "polar/internal/utils" + "polar/models/apierrors" + "polar/models/components" + "polar/models/operations" + "polar/retry" ) type Subscriptions struct {