From 1262bbb8b289b4a7dba39fe9bca51239e3cf23eb Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 27 Aug 2024 00:57:52 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.379.0 --- .speakeasy/gen.lock | 10 +- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 12 +- RELEASES.md | 12 +- codeSamples.yaml | 132 +++++++++++----------- docs/models/components/workspaceschema.md | 16 ++- dub.go | 6 +- models/components/workspaceschema.go | 108 ++++++++++++------ 8 files changed, 174 insertions(+), 124 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 92cc083..9997a69 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 1773e9c7-1931-4663-8ac8-4deaf8db76f5 management: - docChecksum: 3bb9be4afb2fadce5fd5e67aabc0a27e + docChecksum: eed7a2ad5cc93c07aac35e5c6d536a9a docVersion: 0.0.1 - speakeasyVersion: 1.377.3 - generationVersion: 2.404.2 - releaseVersion: 0.8.1 - configChecksum: 00def1b591b3e5f98f2ff34b2c8279e6 + speakeasyVersion: 1.379.0 + generationVersion: 2.404.3 + releaseVersion: 0.8.2 + configChecksum: 9ad93f9705e117c0020ddc17d962f7ae repoURL: https://github.com/dubinc/dub-go.git installationURL: https://github.com/dubinc/dub-go features: diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index c3a71cf..52be0c9 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: true go: - version: 0.8.1 + version: 0.8.2 additionalDependencies: {} allowUnknownFieldsInWeakUnions: false clientServerStatusCodesAsErrors: true diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index b41401c..6114ad9 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.377.3 +speakeasyVersion: 1.379.0 sources: dub: sourceNamespace: dub - sourceRevisionDigest: sha256:3ce5687fd3cba66efe7bdf74e115ea113ff8f700762507608dbbc16acd375392 - sourceBlobDigest: sha256:b56ec854820ec7a0ee23fe596f5fee03535d9b142038244744e8197ef8a542c7 + sourceRevisionDigest: sha256:20361bc4b0e0d752d9e2dc3416291702086cfc703db1934d990d54a64b085acb + sourceBlobDigest: sha256:60c8fb4ef34c80869c5b32ce1fe353138ae7ec1785ca158577f0f934460e5e9d tags: - latest - main @@ -11,10 +11,10 @@ targets: my-first-target: source: dub sourceNamespace: dub - sourceRevisionDigest: sha256:3ce5687fd3cba66efe7bdf74e115ea113ff8f700762507608dbbc16acd375392 - sourceBlobDigest: sha256:b56ec854820ec7a0ee23fe596f5fee03535d9b142038244744e8197ef8a542c7 + sourceRevisionDigest: sha256:20361bc4b0e0d752d9e2dc3416291702086cfc703db1934d990d54a64b085acb + sourceBlobDigest: sha256:60c8fb4ef34c80869c5b32ce1fe353138ae7ec1785ca158577f0f934460e5e9d codeSamplesNamespace: code-samples-go-my-first-target - codeSamplesRevisionDigest: sha256:8052678c7e0565b743d1989ff99cce602be631cbae8cde2e542e8b2d8a5cfcd9 + codeSamplesRevisionDigest: sha256:7abdb1aefff37c5b966d45be38fdb51c7aff76a0c6b933cd9aa692ca54b53634 outLocation: /github/workspace/repo workflow: workflowVersion: 1.0.0 diff --git a/RELEASES.md b/RELEASES.md index 0f049d8..2110d07 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -248,4 +248,14 @@ Based on: ### Generated - [go v0.8.1] . ### Releases -- [Go v0.8.1] https://github.com/dubinc/dub-go/releases/tag/v0.8.1 - . \ No newline at end of file +- [Go v0.8.1] https://github.com/dubinc/dub-go/releases/tag/v0.8.1 - . + +## 2024-08-27 00:56:29 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.379.0 (2.404.3) https://github.com/speakeasy-api/speakeasy +### Generated +- [go v0.8.2] . +### Releases +- [Go v0.8.2] https://github.com/dubinc/dub-go/releases/tag/v0.8.2 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index ab856f9..d37373d 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -3,6 +3,12 @@ info: title: CodeSamples overlay for go target version: 0.0.0 actions: + - target: $["paths"]["/links/{linkId}"]["delete"] + update: + "x-codeSamples": + - "lang": "go" + "label": "deleteLink" + "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n var linkID string = \"\"\n ctx := context.Background()\n res, err := s.Links.Delete(ctx, linkID)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - target: $["paths"]["/links/bulk"]["post"] update: "x-codeSamples": @@ -15,141 +21,135 @@ actions: - "lang": "go" "label": "bulkUpdateLinks" "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n var request *operations.BulkUpdateLinksRequestBody = &operations.BulkUpdateLinksRequestBody{\n LinkIds: []string{\n \"\",\n },\n Data: operations.Data{\n URL: dubgo.String(\"https://google.com\"),\n TagIds: operations.CreateBulkUpdateLinksTagIdsStr(\n \"[\\\"clux0rgak00011...\\\"]\",\n ),\n },\n }\n ctx := context.Background()\n res, err := s.Links.UpdateMany(ctx, request)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/workspaces/{idOrSlug}"]["patch"] + - target: $["paths"]["/tags"]["post"] update: "x-codeSamples": - "lang": "go" - "label": "updateWorkspace" - "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n var idOrSlug string = \"\"\n ctx := context.Background()\n res, err := s.Workspaces.Update(ctx, idOrSlug, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/domains"]["get"] + "label": "createTag" + "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n\n ctx := context.Background()\n res, err := s.Tags.Create(ctx, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + - target: $["paths"]["/track/customer"]["post"] update: "x-codeSamples": - "lang": "go" - "label": "listDomains" - "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n request := operations.ListDomainsRequest{\n Page: dubgo.Float64(1),\n PageSize: dubgo.Float64(50),\n }\n ctx := context.Background()\n res, err := s.Domains.List(ctx, request)\n if err != nil {\n log.Fatal(err)\n }\n if res != 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 }\n}" - - target: $["paths"]["/links"]["post"] + "label": "trackCustomer" + "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n\n ctx := context.Background()\n res, err := s.Track.Customer(ctx, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + - target: $["paths"]["/links/info"]["get"] update: "x-codeSamples": - "lang": "go" - "label": "createLink" - "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n var request *operations.CreateLinkRequestBody = &operations.CreateLinkRequestBody{\n URL: \"https://google.com\",\n ExternalID: dubgo.String(\"123456\"),\n TagIds: operations.CreateTagIdsStr(\n \"[\\\"clux0rgak00011...\\\"]\",\n ),\n }\n ctx := context.Background()\n res, err := s.Links.Create(ctx, request)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/tags"]["post"] + "label": "getLinkInfo" + "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n request := operations.GetLinkInfoRequest{\n LinkID: dubgo.String(\"clux0rgak00011...\"),\n ExternalID: dubgo.String(\"ext_123456\"),\n }\n ctx := context.Background()\n res, err := s.Links.Get(ctx, request)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + - target: $["paths"]["/links/count"]["get"] update: "x-codeSamples": - "lang": "go" - "label": "createTag" - "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n\n ctx := context.Background()\n res, err := s.Tags.Create(ctx, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/domains/{slug}"]["patch"] + "label": "getLinksCount" + "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n request := operations.GetLinksCountRequest{}\n ctx := context.Background()\n res, err := s.Links.Count(ctx, request)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + - target: $["paths"]["/qr"]["get"] update: "x-codeSamples": - "lang": "go" - "label": "updateDomain" - "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n var slug string = \"acme.com\"\n\n var requestBody *operations.UpdateDomainRequestBody = &operations.UpdateDomainRequestBody{\n Slug: dubgo.String(\"acme.com\"),\n ExpiredURL: dubgo.String(\"https://acme.com/expired\"),\n Archived: dubgo.Bool(false),\n Placeholder: dubgo.String(\"https://dub.co/help/article/what-is-dub\"),\n }\n ctx := context.Background()\n res, err := s.Domains.Update(ctx, slug, requestBody)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + "label": "getQRCode" + "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n request := operations.GetQRCodeRequest{\n URL: \"https://brief-micronutrient.org\",\n }\n ctx := context.Background()\n res, err := s.QRCodes.Get(ctx, request)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - target: $["paths"]["/workspaces/{idOrSlug}"]["get"] update: "x-codeSamples": - "lang": "go" "label": "getWorkspace" "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n request := operations.GetWorkspaceRequest{\n IDOrSlug: \"\",\n }\n ctx := context.Background()\n res, err := s.Workspaces.Get(ctx, request)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/links/count"]["get"] + - target: $["paths"]["/tags"]["get"] update: "x-codeSamples": - "lang": "go" - "label": "getLinksCount" - "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n request := operations.GetLinksCountRequest{}\n ctx := context.Background()\n res, err := s.Links.Count(ctx, request)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/links/info"]["get"] + "label": "getTags" + "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n\n ctx := context.Background()\n res, err := s.Tags.List(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + - target: $["paths"]["/domains/{slug}"]["patch"] update: "x-codeSamples": - "lang": "go" - "label": "getLinkInfo" - "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n request := operations.GetLinkInfoRequest{\n LinkID: dubgo.String(\"clux0rgak00011...\"),\n ExternalID: dubgo.String(\"ext_123456\"),\n }\n ctx := context.Background()\n res, err := s.Links.Get(ctx, request)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/links/{linkId}"]["delete"] + "label": "updateDomain" + "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n var slug string = \"acme.com\"\n\n var requestBody *operations.UpdateDomainRequestBody = &operations.UpdateDomainRequestBody{\n Slug: dubgo.String(\"acme.com\"),\n ExpiredURL: dubgo.String(\"https://acme.com/expired\"),\n Archived: dubgo.Bool(false),\n Placeholder: dubgo.String(\"https://dub.co/help/article/what-is-dub\"),\n }\n ctx := context.Background()\n res, err := s.Domains.Update(ctx, slug, requestBody)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + - target: $["paths"]["/track/sale"]["post"] update: "x-codeSamples": - "lang": "go" - "label": "deleteLink" - "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n var linkID string = \"\"\n ctx := context.Background()\n res, err := s.Links.Delete(ctx, linkID)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/links/{linkId}"]["patch"] + "label": "trackSale" + "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n var request *operations.TrackSaleRequestBody = &operations.TrackSaleRequestBody{\n CustomerID: \"\",\n Amount: 996500,\n PaymentProcessor: operations.PaymentProcessorShopify,\n EventName: dubgo.String(\"Purchase\"),\n }\n ctx := context.Background()\n res, err := s.Track.Sale(ctx, request)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + - target: $["paths"]["/metatags"]["get"] update: "x-codeSamples": - "lang": "go" - "label": "updateLink" - "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n var linkID string = \"\"\n\n var requestBody *operations.UpdateLinkRequestBody = &operations.UpdateLinkRequestBody{\n URL: dubgo.String(\"https://google.com\"),\n ExternalID: dubgo.String(\"123456\"),\n TagIds: operations.CreateUpdateLinkTagIdsArrayOfStr(\n []string{\n \"clux0rgak00011...\",\n },\n ),\n }\n ctx := context.Background()\n res, err := s.Links.Update(ctx, linkID, requestBody)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/qr"]["get"] + "label": "getMetatags" + "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n request := operations.GetMetatagsRequest{\n URL: \"https://dub.co\",\n }\n ctx := context.Background()\n res, err := s.Metatags.Get(ctx, request)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + - target: $["paths"]["/links/upsert"]["put"] update: "x-codeSamples": - "lang": "go" - "label": "getQRCode" - "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n request := operations.GetQRCodeRequest{\n URL: \"https://brief-micronutrient.org\",\n }\n ctx := context.Background()\n res, err := s.QRCodes.Get(ctx, request)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/analytics"]["get"] + "label": "upsertLink" + "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n var request *operations.UpsertLinkRequestBody = &operations.UpsertLinkRequestBody{\n URL: \"https://google.com\",\n ExternalID: dubgo.String(\"123456\"),\n TagIds: operations.CreateUpsertLinkTagIdsArrayOfStr(\n []string{\n \"clux0rgak00011...\",\n },\n ),\n }\n ctx := context.Background()\n res, err := s.Links.Upsert(ctx, request)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + - target: $["paths"]["/events"]["get"] update: "x-codeSamples": - "lang": "go" - "label": "retrieveAnalytics" - "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n request := operations.RetrieveAnalyticsRequest{\n Timezone: dubgo.String(\"America/New_York\"),\n City: dubgo.String(\"New York\"),\n Device: dubgo.String(\"Desktop\"),\n Browser: dubgo.String(\"Chrome\"),\n Os: dubgo.String(\"Windows\"),\n Referer: dubgo.String(\"google.com\"),\n }\n ctx := context.Background()\n res, err := s.Analytics.Retrieve(ctx, request)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/tags"]["get"] + "label": "listEvents" + "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n request := operations.ListEventsRequest{\n Timezone: dubgo.String(\"America/New_York\"),\n City: dubgo.String(\"New York\"),\n Device: dubgo.String(\"Desktop\"),\n Browser: dubgo.String(\"Chrome\"),\n Os: dubgo.String(\"Windows\"),\n Referer: dubgo.String(\"google.com\"),\n }\n ctx := context.Background()\n res, err := s.Events.List(ctx, request)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + - target: $["paths"]["/tags/{id}"]["patch"] update: "x-codeSamples": - "lang": "go" - "label": "getTags" - "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n\n ctx := context.Background()\n res, err := s.Tags.List(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/links"]["get"] + "label": "updateTag" + "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n var id string = \"\"\n ctx := context.Background()\n res, err := s.Tags.Update(ctx, id, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + - target: $["paths"]["/domains"]["get"] update: "x-codeSamples": - "lang": "go" - "label": "getLinks" - "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n request := operations.GetLinksRequest{\n Page: dubgo.Float64(1),\n PageSize: dubgo.Float64(50),\n }\n ctx := context.Background()\n res, err := s.Links.List(ctx, request)\n if err != nil {\n log.Fatal(err)\n }\n if res != 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 }\n}" + "label": "listDomains" + "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n request := operations.ListDomainsRequest{\n Page: dubgo.Float64(1),\n PageSize: dubgo.Float64(50),\n }\n ctx := context.Background()\n res, err := s.Domains.List(ctx, request)\n if err != nil {\n log.Fatal(err)\n }\n if res != 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 }\n}" - target: $["paths"]["/domains"]["post"] update: "x-codeSamples": - "lang": "go" "label": "createDomain" "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n var request *operations.CreateDomainRequestBody = &operations.CreateDomainRequestBody{\n Slug: \"acme.com\",\n ExpiredURL: dubgo.String(\"https://acme.com/expired\"),\n Archived: dubgo.Bool(false),\n Placeholder: dubgo.String(\"https://dub.co/help/article/what-is-dub\"),\n }\n ctx := context.Background()\n res, err := s.Domains.Create(ctx, request)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/domains/{slug}"]["delete"] - update: - "x-codeSamples": - - "lang": "go" - "label": "deleteDomain" - "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n var slug string = \"acme.com\"\n ctx := context.Background()\n res, err := s.Domains.Delete(ctx, slug)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/track/sale"]["post"] + - target: $["paths"]["/links"]["post"] update: "x-codeSamples": - "lang": "go" - "label": "trackSale" - "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n var request *operations.TrackSaleRequestBody = &operations.TrackSaleRequestBody{\n CustomerID: \"\",\n Amount: 996500,\n PaymentProcessor: operations.PaymentProcessorShopify,\n EventName: dubgo.String(\"Purchase\"),\n }\n ctx := context.Background()\n res, err := s.Track.Sale(ctx, request)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/tags/{id}"]["patch"] + "label": "createLink" + "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n var request *operations.CreateLinkRequestBody = &operations.CreateLinkRequestBody{\n URL: \"https://google.com\",\n ExternalID: dubgo.String(\"123456\"),\n TagIds: operations.CreateTagIdsStr(\n \"[\\\"clux0rgak00011...\\\"]\",\n ),\n }\n ctx := context.Background()\n res, err := s.Links.Create(ctx, request)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + - target: $["paths"]["/links/{linkId}"]["patch"] update: "x-codeSamples": - "lang": "go" - "label": "updateTag" - "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n var id string = \"\"\n ctx := context.Background()\n res, err := s.Tags.Update(ctx, id, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/events"]["get"] + "label": "updateLink" + "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n var linkID string = \"\"\n\n var requestBody *operations.UpdateLinkRequestBody = &operations.UpdateLinkRequestBody{\n URL: dubgo.String(\"https://google.com\"),\n ExternalID: dubgo.String(\"123456\"),\n TagIds: operations.CreateUpdateLinkTagIdsArrayOfStr(\n []string{\n \"clux0rgak00011...\",\n },\n ),\n }\n ctx := context.Background()\n res, err := s.Links.Update(ctx, linkID, requestBody)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + - target: $["paths"]["/analytics"]["get"] update: "x-codeSamples": - "lang": "go" - "label": "listEvents" - "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n request := operations.ListEventsRequest{\n Timezone: dubgo.String(\"America/New_York\"),\n City: dubgo.String(\"New York\"),\n Device: dubgo.String(\"Desktop\"),\n Browser: dubgo.String(\"Chrome\"),\n Os: dubgo.String(\"Windows\"),\n Referer: dubgo.String(\"google.com\"),\n }\n ctx := context.Background()\n res, err := s.Events.List(ctx, request)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/track/lead"]["post"] + "label": "retrieveAnalytics" + "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n request := operations.RetrieveAnalyticsRequest{\n Timezone: dubgo.String(\"America/New_York\"),\n City: dubgo.String(\"New York\"),\n Device: dubgo.String(\"Desktop\"),\n Browser: dubgo.String(\"Chrome\"),\n Os: dubgo.String(\"Windows\"),\n Referer: dubgo.String(\"google.com\"),\n }\n ctx := context.Background()\n res, err := s.Analytics.Retrieve(ctx, request)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + - target: $["paths"]["/workspaces/{idOrSlug}"]["patch"] update: "x-codeSamples": - "lang": "go" - "label": "trackLead" - "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n var request *operations.TrackLeadRequestBody = &operations.TrackLeadRequestBody{\n ClickID: \"\",\n EventName: \"Sign up\",\n CustomerID: \"\",\n }\n ctx := context.Background()\n res, err := s.Track.Lead(ctx, request)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/track/customer"]["post"] + "label": "updateWorkspace" + "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n var idOrSlug string = \"\"\n ctx := context.Background()\n res, err := s.Workspaces.Update(ctx, idOrSlug, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + - target: $["paths"]["/domains/{slug}"]["delete"] update: "x-codeSamples": - "lang": "go" - "label": "trackCustomer" - "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n\n ctx := context.Background()\n res, err := s.Track.Customer(ctx, nil)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/metatags"]["get"] + "label": "deleteDomain" + "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n var slug string = \"acme.com\"\n ctx := context.Background()\n res, err := s.Domains.Delete(ctx, slug)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + - target: $["paths"]["/track/lead"]["post"] update: "x-codeSamples": - "lang": "go" - "label": "getMetatags" - "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n request := operations.GetMetatagsRequest{\n URL: \"https://dub.co\",\n }\n ctx := context.Background()\n res, err := s.Metatags.Get(ctx, request)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - - target: $["paths"]["/links/upsert"]["put"] + "label": "trackLead" + "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n var request *operations.TrackLeadRequestBody = &operations.TrackLeadRequestBody{\n ClickID: \"\",\n EventName: \"Sign up\",\n CustomerID: \"\",\n }\n ctx := context.Background()\n res, err := s.Track.Lead(ctx, request)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + - target: $["paths"]["/links"]["get"] update: "x-codeSamples": - "lang": "go" - "label": "upsertLink" - "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n var request *operations.UpsertLinkRequestBody = &operations.UpsertLinkRequestBody{\n URL: \"https://google.com\",\n ExternalID: dubgo.String(\"123456\"),\n TagIds: operations.CreateUpsertLinkTagIdsArrayOfStr(\n []string{\n \"clux0rgak00011...\",\n },\n ),\n }\n ctx := context.Background()\n res, err := s.Links.Upsert(ctx, request)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + "label": "getLinks" + "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n request := operations.GetLinksRequest{\n Page: dubgo.Float64(1),\n PageSize: dubgo.Float64(50),\n }\n ctx := context.Background()\n res, err := s.Links.List(ctx, request)\n if err != nil {\n log.Fatal(err)\n }\n if res != 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 }\n}" diff --git a/docs/models/components/workspaceschema.md b/docs/models/components/workspaceschema.md index 6ef5e21..354f83e 100644 --- a/docs/models/components/workspaceschema.md +++ b/docs/models/components/workspaceschema.md @@ -9,6 +9,11 @@ | `Name` | *string* | :heavy_check_mark: | The name of the workspace. | | `Slug` | *string* | :heavy_check_mark: | The slug of the workspace. | | `Logo` | **string* | :heavy_minus_sign: | The logo of the workspace. | +| `Plan` | [components.Plan](../../models/components/plan.md) | :heavy_check_mark: | The plan of the workspace. | +| `StripeID` | *string* | :heavy_check_mark: | The Stripe ID of the workspace. | +| `BillingCycleStart` | *float64* | :heavy_check_mark: | The date and time when the billing cycle starts for the workspace. | +| `StripeConnectID` | *string* | :heavy_check_mark: | [BETA]: The Stripe Connect ID of the workspace. | +| `InviteCode` | *string* | :heavy_check_mark: | The invite code of the workspace. | | `Usage` | *float64* | :heavy_check_mark: | The usage of the workspace. | | `UsageLimit` | *float64* | :heavy_check_mark: | The usage limit of the workspace. | | `LinksUsage` | *float64* | :heavy_check_mark: | The links usage of the workspace. | @@ -18,13 +23,12 @@ | `DomainsLimit` | *float64* | :heavy_check_mark: | The domains limit of the workspace. | | `TagsLimit` | *float64* | :heavy_check_mark: | The tags limit of the workspace. | | `UsersLimit` | *float64* | :heavy_check_mark: | The users limit of the workspace. | -| `Plan` | [components.Plan](../../models/components/plan.md) | :heavy_check_mark: | The plan of the workspace. | -| `StripeID` | *string* | :heavy_check_mark: | The Stripe ID of the workspace. | -| `BillingCycleStart` | *float64* | :heavy_check_mark: | The date and time when the billing cycle starts for the workspace. | -| `StripeConnectID` | *string* | :heavy_check_mark: | [BETA]: The Stripe Connect ID of the workspace. | +| `AiUsage` | *float64* | :heavy_check_mark: | The AI usage of the workspace. | +| `AiLimit` | *float64* | :heavy_check_mark: | The AI limit of the workspace. | +| `ReferralLinkID` | *string* | :heavy_check_mark: | The ID of the referral link of the workspace. | +| `ReferredSignups` | *float64* | :heavy_check_mark: | The number of signups referred by the workspace. | +| `ConversionEnabled` | *bool* | :heavy_check_mark: | Whether the workspace has conversion tracking enabled (d.to/conversions). | | `CreatedAt` | *string* | :heavy_check_mark: | The date and time when the workspace was created. | | `Users` | [][components.Users](../../models/components/users.md) | :heavy_check_mark: | The role of the authenticated user in the workspace. | | `Domains` | [][components.Domains](../../models/components/domains.md) | :heavy_check_mark: | The domains of the workspace. | -| `InviteCode` | *string* | :heavy_check_mark: | The invite code of the workspace. | -| `ConversionEnabled` | *bool* | :heavy_check_mark: | Whether the workspace has conversion tracking enabled (d.to/conversions). | | `Flags` | map[string]*bool* | :heavy_minus_sign: | The feature flags of the workspace, indicating which features are enabled. | \ No newline at end of file diff --git a/dub.go b/dub.go index ddc265a..cbdecf2 100644 --- a/dub.go +++ b/dub.go @@ -154,9 +154,9 @@ func New(opts ...SDKOption) *Dub { sdkConfiguration: sdkConfiguration{ Language: "go", OpenAPIDocVersion: "0.0.1", - SDKVersion: "0.8.1", - GenVersion: "2.404.2", - UserAgent: "speakeasy-sdk/go 0.8.1 2.404.2 0.0.1 github.com/dubinc/dub-go", + SDKVersion: "0.8.2", + GenVersion: "2.404.3", + UserAgent: "speakeasy-sdk/go 0.8.2 2.404.3 0.0.1 github.com/dubinc/dub-go", Hooks: hooks.New(), }, } diff --git a/models/components/workspaceschema.go b/models/components/workspaceschema.go index 3784252..1b2ed23 100644 --- a/models/components/workspaceschema.go +++ b/models/components/workspaceschema.go @@ -139,6 +139,16 @@ type WorkspaceSchema struct { Slug string `json:"slug"` // The logo of the workspace. Logo *string `default:"null" json:"logo"` + // The plan of the workspace. + Plan Plan `json:"plan"` + // The Stripe ID of the workspace. + StripeID *string `json:"stripeId"` + // The date and time when the billing cycle starts for the workspace. + BillingCycleStart float64 `json:"billingCycleStart"` + // [BETA]: The Stripe Connect ID of the workspace. + StripeConnectID *string `json:"stripeConnectId"` + // The invite code of the workspace. + InviteCode *string `json:"inviteCode"` // The usage of the workspace. Usage float64 `json:"usage"` // The usage limit of the workspace. @@ -157,24 +167,22 @@ type WorkspaceSchema struct { TagsLimit float64 `json:"tagsLimit"` // The users limit of the workspace. UsersLimit float64 `json:"usersLimit"` - // The plan of the workspace. - Plan Plan `json:"plan"` - // The Stripe ID of the workspace. - StripeID *string `json:"stripeId"` - // The date and time when the billing cycle starts for the workspace. - BillingCycleStart float64 `json:"billingCycleStart"` - // [BETA]: The Stripe Connect ID of the workspace. - StripeConnectID *string `json:"stripeConnectId"` + // The AI usage of the workspace. + AiUsage float64 `json:"aiUsage"` + // The AI limit of the workspace. + AiLimit float64 `json:"aiLimit"` + // The ID of the referral link of the workspace. + ReferralLinkID *string `json:"referralLinkId"` + // The number of signups referred by the workspace. + ReferredSignups float64 `json:"referredSignups"` + // Whether the workspace has conversion tracking enabled (d.to/conversions). + ConversionEnabled bool `json:"conversionEnabled"` // The date and time when the workspace was created. CreatedAt string `json:"createdAt"` // The role of the authenticated user in the workspace. Users []Users `json:"users"` // The domains of the workspace. Domains []Domains `json:"domains"` - // The invite code of the workspace. - InviteCode *string `json:"inviteCode"` - // Whether the workspace has conversion tracking enabled (d.to/conversions). - ConversionEnabled bool `json:"conversionEnabled"` // The feature flags of the workspace, indicating which features are enabled. Flags map[string]bool `json:"flags,omitempty"` } @@ -218,6 +226,41 @@ func (o *WorkspaceSchema) GetLogo() *string { return o.Logo } +func (o *WorkspaceSchema) GetPlan() Plan { + if o == nil { + return Plan("") + } + return o.Plan +} + +func (o *WorkspaceSchema) GetStripeID() *string { + if o == nil { + return nil + } + return o.StripeID +} + +func (o *WorkspaceSchema) GetBillingCycleStart() float64 { + if o == nil { + return 0.0 + } + return o.BillingCycleStart +} + +func (o *WorkspaceSchema) GetStripeConnectID() *string { + if o == nil { + return nil + } + return o.StripeConnectID +} + +func (o *WorkspaceSchema) GetInviteCode() *string { + if o == nil { + return nil + } + return o.InviteCode +} + func (o *WorkspaceSchema) GetUsage() float64 { if o == nil { return 0.0 @@ -281,32 +324,39 @@ func (o *WorkspaceSchema) GetUsersLimit() float64 { return o.UsersLimit } -func (o *WorkspaceSchema) GetPlan() Plan { +func (o *WorkspaceSchema) GetAiUsage() float64 { if o == nil { - return Plan("") + return 0.0 } - return o.Plan + return o.AiUsage } -func (o *WorkspaceSchema) GetStripeID() *string { +func (o *WorkspaceSchema) GetAiLimit() float64 { + if o == nil { + return 0.0 + } + return o.AiLimit +} + +func (o *WorkspaceSchema) GetReferralLinkID() *string { if o == nil { return nil } - return o.StripeID + return o.ReferralLinkID } -func (o *WorkspaceSchema) GetBillingCycleStart() float64 { +func (o *WorkspaceSchema) GetReferredSignups() float64 { if o == nil { return 0.0 } - return o.BillingCycleStart + return o.ReferredSignups } -func (o *WorkspaceSchema) GetStripeConnectID() *string { +func (o *WorkspaceSchema) GetConversionEnabled() bool { if o == nil { - return nil + return false } - return o.StripeConnectID + return o.ConversionEnabled } func (o *WorkspaceSchema) GetCreatedAt() string { @@ -330,20 +380,6 @@ func (o *WorkspaceSchema) GetDomains() []Domains { return o.Domains } -func (o *WorkspaceSchema) GetInviteCode() *string { - if o == nil { - return nil - } - return o.InviteCode -} - -func (o *WorkspaceSchema) GetConversionEnabled() bool { - if o == nil { - return false - } - return o.ConversionEnabled -} - func (o *WorkspaceSchema) GetFlags() map[string]bool { if o == nil { return nil