diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 95d4f1b..37fc680 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,18 +1,18 @@ lockVersion: 2.0.0 id: 1773e9c7-1931-4663-8ac8-4deaf8db76f5 management: - docChecksum: 3c99a7dcfe0f7e784b8e12ec1e0f615b + docChecksum: abf27d0c6e859e3e6ba85249b3811dad docVersion: 0.0.1 speakeasyVersion: 1.761.9 generationVersion: 2.881.4 - releaseVersion: 0.23.9 - configChecksum: 47b03f990cc54d388272108da565d712 + releaseVersion: 0.23.10 + configChecksum: ff2b4758ec4011205c19c9ba88675b74 repoURL: https://github.com/dubinc/dub-go.git installationURL: https://github.com/dubinc/dub-go persistentEdits: - generation_id: b4afd525-c9cd-45ec-8eb9-2e31e2dacbfa - pristine_commit_hash: 1a7766a9ae9a0e7805c282a4ccf14c5dc9417e14 - pristine_tree_hash: fc55df3cd1b156b875463eba369d7a20d9b015c9 + generation_id: 235acb24-f7e9-4d1c-b138-4055d17c606b + pristine_commit_hash: 2c3bce08ac80f8fe14b76f5669aa5d30765ac84a + pristine_tree_hash: d5cbd4a4d1644e90faf688cb1666a9ac82e2eebb features: go: additionalDependencies: 0.1.0 @@ -49,8 +49,8 @@ trackedFiles: pristine_git_object: a92ecd544f926c3417d8f3b21b969c2dc8ef4960 analytics.go: id: c71afdf2c49d - last_write_checksum: sha1:d73574fa0494c54755f079946adf4db33868c1e0 - pristine_git_object: 2a09167501f059f61070ef805217b1ffdc25282d + last_write_checksum: sha1:d5e6cc3520bfbe1d17c5df914f4ddc6bcca0aa8e + pristine_git_object: 5a9aad633efd6e468ea8d68e8b2a306d98665c92 bounties.go: id: 5b3aed6eba66 last_write_checksum: sha1:8747cca2e77ae6cfffe09242e36a6c981b6e23e2 @@ -543,14 +543,14 @@ trackedFiles: id: 8322200a0483 last_write_checksum: sha1:fe8b2382f9e373e09c7f2b538bff1854f9690144 pristine_git_object: 667eb08c664efb7691364bfbbdf20e7716e5b587 - docs/models/operations/approvepartnerrequestbody.md: - id: ad6d47e6ff88 - last_write_checksum: sha1:dbf9a077063929de6bb7f5da81267c07f158345d - pristine_git_object: 2bcb9619fb94a8c58e8ae0426c932d11b35ee1c4 - docs/models/operations/approvepartnerresponsebody.md: - id: 6685c4fa6e7e - last_write_checksum: sha1:5db5c945501c3f4d4debec59893cfe18626a4be0 - pristine_git_object: 5c5b8d1995d77c7ebf1a219d7d1e932c50f26126 + docs/models/operations/approvepartnerapplicationrequestbody.md: + id: 98ed0d62dfa1 + last_write_checksum: sha1:2b2fbb93de0d0216a977decfc681d8811f459fdd + pristine_git_object: d736c9f6e64ce11da68b19c058316e7f88eebdc0 + docs/models/operations/approvepartnerapplicationresponsebody.md: + id: 6fad95b01afc + last_write_checksum: sha1:4175219e4a0d13c001af7eaf5277e3a52e9901fe + pristine_git_object: 51559c5c61843b9b0b68deaf8edfeb9a3fb5e130 docs/models/operations/bannedreason.md: id: 63e2b4b788c0 last_write_checksum: sha1:4b3afaca167a4e4d3ea2f1c7b42656d1da8ae01e @@ -1419,14 +1419,14 @@ trackedFiles: id: 99a67fae384a last_write_checksum: sha1:284d4726be65f89c4edf25d865a3ae978654fb71 pristine_git_object: 72f5eab0a95132ca9f5b94830a98f6dc276585fe - docs/models/operations/rejectpartnerrequestbody.md: - id: 66069b0de975 - last_write_checksum: sha1:15011f2fab6b6a1ec1a4c2b6570f877b59332caa - pristine_git_object: 1b418051aa05d11fbc276de8ac2c618eea9c1b1c - docs/models/operations/rejectpartnerresponsebody.md: - id: d58165da49ce - last_write_checksum: sha1:35c61116a18a05d9ce7150724407069e0ad2d768 - pristine_git_object: 341f18c9e3b32d2917763863663f7b76a89ef578 + docs/models/operations/rejectpartnerapplicationrequestbody.md: + id: e2d454aa9e3b + last_write_checksum: sha1:ffb4628eb220922be1d39cd630e2a0f1b6aea671 + pristine_git_object: e24fd3aaaed50cc7f84770a2ee839ce9731c2be5 + docs/models/operations/rejectpartnerapplicationresponsebody.md: + id: 0123c0d1a744 + last_write_checksum: sha1:c812cbdec3feaef7b39fe09320003d1370e73376 + pristine_git_object: 8f790a4b4e23aa9dc8f181ce2133cbe756934377 docs/models/operations/requestbody.md: id: f78af0833126 last_write_checksum: sha1:ccce766964aa32fd2a1149770692af905f177f9c @@ -1471,14 +1471,6 @@ trackedFiles: id: 41386a0b3f46 last_write_checksum: sha1:027c1d1ab3691bd0cd5ecc9027d024d10703b64d pristine_git_object: ce519815c2a9925b2a7f761d0996a58ab34e5d88 - docs/models/operations/retrievelinksrequest.md: - id: 4b6e2662a103 - last_write_checksum: sha1:bb9752f465a495efaf5c9c390696f199cf6eb53a - pristine_git_object: f9715147fc62839de36965c8fa588883da0d7c27 - docs/models/operations/retrievelinksresponsebody.md: - id: df985675c9ad - last_write_checksum: sha1:13c1fc4dc885402731e1d4da7bb292f2fd391f89 - pristine_git_object: d7900bc167ad46db5fb689c58142869df275d3ac docs/models/operations/retrievepartneranalyticsqueryparamgroupby.md: id: 50b1890d9697 last_write_checksum: sha1:97e6218bc1975750f4ba824a18ba1d302786ab17 @@ -1495,6 +1487,14 @@ trackedFiles: id: c49f6ba7e40e last_write_checksum: sha1:c475b29dbc417182702b8da34d2d106558534e98 pristine_git_object: 1204b73e8f6667216b31118f55c0c925cd2df01a + docs/models/operations/retrievepartnerlinksrequest.md: + id: 7c94726a71eb + last_write_checksum: sha1:f0b6ae3bca6d4e65c2c35995e3a33b81a57f8eb9 + pristine_git_object: b6d9b50a24e139d8193094857bed1daac51a434e + docs/models/operations/retrievepartnerlinksresponsebody.md: + id: e92074320c7a + last_write_checksum: sha1:10d41111f394468f6a5c6a488c0471c8a4d1cb2e + pristine_git_object: f49a05c82ad0dfdc52245504eb808f004f821193 docs/models/operations/sale.md: id: 3e9ba36ec88c last_write_checksum: sha1:f4982c5ffef885694e407a87a5100489b2ddb27a @@ -1869,12 +1869,12 @@ trackedFiles: pristine_git_object: 77e272b58820b82d013278fcfc5b0c89779e65a2 docs/sdks/partnerapplications/README.md: id: 6cf37e16d4c1 - last_write_checksum: sha1:7cea32b1217176aef5939e60db97581d83f4d75f - pristine_git_object: ebf16f8454bd44dc17d019c2563cabac3b200d99 + last_write_checksum: sha1:f936027c8512943c30bd8c7c53104f3ab0af7059 + pristine_git_object: c0d1259488f6a0765ef7b1a2dc0ef42b848390f6 docs/sdks/partners/README.md: id: 85ac19d13270 - last_write_checksum: sha1:58b97de146f881a12d3b7d8e1a2f7ee15efc30dd - pristine_git_object: a01625e8e7dc0cd547f23365c94183387228fa6c + last_write_checksum: sha1:8382ef0217c2fc0be6c7eba174a0f8d1c6033154 + pristine_git_object: 85e2332e4559ab5aff5c1250531ed3bc76bd8cab docs/sdks/payouts/README.md: id: 184ed4a74471 last_write_checksum: sha1:ffbba2f9fa015f42cc977a4558a5b2883bdfd054 @@ -1897,8 +1897,8 @@ trackedFiles: pristine_git_object: 9f8a5307c080b793f06924d1043a120587563f35 dub.go: id: 9bba8aa9ce0f - last_write_checksum: sha1:8624d88219af8021f80578d21b5784a4debb15c0 - pristine_git_object: 7f909b9409651dbcd3cd1c0478d0f7264c7ad276 + last_write_checksum: sha1:1d551aa0fc30a1365d83eb80551488af983f0d4b + pristine_git_object: baa8f213ac86b7402e0e931536be897310f22535 embedtokens.go: id: 0fc16a550ef5 last_write_checksum: sha1:213f79f8e3da77d79f1b4b6e41f1324e40d68579 @@ -2111,10 +2111,10 @@ trackedFiles: id: 42e69ab4c481 last_write_checksum: sha1:f00d14b11af95c662d677267a77043c0203b03c0 pristine_git_object: b8d8f6acaacc7521fc71a21a30f5db7b1eb00968 - models/operations/approvepartner.go: - id: 3834664a05ff - last_write_checksum: sha1:6e731de7c36aced4adec3f447edfddd9755c63ac - pristine_git_object: 5c239e07b16bf0d5c91c65db57f7f1ab3ad744bb + models/operations/approvepartnerapplication.go: + id: 86ad831088cd + last_write_checksum: sha1:2691fa12194fc8507811ced7b2dc50d9b9cf099f + pristine_git_object: 9709ed354029ad71bc49f2aa7b10dd9a2bda8966 models/operations/banpartner.go: id: 4f7f30f741f6 last_write_checksum: sha1:c3d158041ccb9df289a970d7a3559b3584f75b07 @@ -2263,22 +2263,22 @@ trackedFiles: id: 9552bea1a207 last_write_checksum: sha1:feccdfdacc42b6ed3846d5f82a7ed73f21f8bf1c pristine_git_object: 7f1eeb8b6ac26d5d9e380a4e59e570f7c8e3b298 - models/operations/rejectpartner.go: - id: cbac1759058f - last_write_checksum: sha1:655826fd7b08be2ccffaa7ea5a0205e5fd0722e9 - pristine_git_object: 28049e828563e7dfe0415dfbc16364e1396e9c8a + models/operations/rejectpartnerapplication.go: + id: b015ec475703 + last_write_checksum: sha1:9f3acb9c5b86123ad9a6c08c0c4ca8a18ad9ac4c + pristine_git_object: 713ea8c8248d80ac55f5a98d9d5b8ec3127f0d01 models/operations/retrieveanalytics.go: id: b7db4c88fb14 last_write_checksum: sha1:e649ab03157b92643a76d0cad7ef2c072c97bf50 pristine_git_object: 27e98b606e1ea18aed2e39a9bc152ae6c3fc3e51 - models/operations/retrievelinks.go: - id: 892cba46135a - last_write_checksum: sha1:1ea706fecf85c7ec23191466c1ebf09d8d1d5c47 - pristine_git_object: 15fa338c01ecf6d3f59a54d0c074f436416f1727 models/operations/retrievepartneranalytics.go: id: 39ad8e18acd3 last_write_checksum: sha1:904ab548b1cffcf66795c36a1dd61795d1dc25cd pristine_git_object: 7dfa894e31c357fa7a27147423374ec102e00c3d + models/operations/retrievepartnerlinks.go: + id: 747861c7dd58 + last_write_checksum: sha1:18a8785e9cdb845fd6e5e0e63ea50fc6a11eef0e + pristine_git_object: f3395423bdbfe3e7fc243b5d544c038a62602766 models/operations/tracklead.go: id: 1c2fe46d5eaa last_write_checksum: sha1:623c79e24352d63a6fd55bac09cdbf7e56b1f4cd @@ -2369,12 +2369,12 @@ trackedFiles: pristine_git_object: e6e5a01c6e721e879e24a38a1f97e3e27d4686d4 partnerapplications.go: id: 5a2ad9854136 - last_write_checksum: sha1:d3be343e67093cbd33a5a838edef3da9f56906ee - pristine_git_object: ab19402144ca432f1df9a8a5c15a3e721a42120d + last_write_checksum: sha1:e8394f77bab193561c3f20efc5648fc3e97b3af5 + pristine_git_object: 3bff3c1269a3662361c8c3ac8b58ccb9454e4354 partners.go: id: 08f6f7b25222 - last_write_checksum: sha1:fbafe0aac89c7a5cf1b6f33b1022ed8d8662d316 - pristine_git_object: 8ff25df65e2a70592fa50537d2dfba411618b530 + last_write_checksum: sha1:c4c0adb071c0dad7ed9c5f57036e7320438129d5 + pristine_git_object: eddc9aa497a3e1cf1ce1bc9017128a42d8af79a3 payouts.go: id: 4c2cb3e66872 last_write_checksum: sha1:f6dc8b27a5f86c88773963e7d263daa280b0de04 @@ -3923,16 +3923,81 @@ examples: application/json: {"error": {"code": "rate_limit_exceeded", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#rate-limit_exceeded"}} "500": application/json: {"error": {"code": "internal_server_error", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#internal-server_error"}} + retrievePartnerLinks: + speakeasy-default-retrieve-partner-links: + responses: + "200": + application/json: [{"id": "", "domain": "deadly-bonfire.name", "key": "", "shortLink": "https://simplistic-birdbath.org/", "url": "https://usable-hello.name/", "clicks": 0, "leads": 0, "conversions": 0, "sales": 0, "saleAmount": 0}] + "400": + application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}} + "401": + application/json: {"error": {"code": "unauthorized", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#unauthorized"}} + "403": + application/json: {"error": {"code": "forbidden", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#forbidden"}} + "404": + application/json: {"error": {"code": "not_found", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#not-found"}} + "409": + application/json: {"error": {"code": "conflict", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#conflict"}} + "410": + application/json: {"error": {"code": "invite_expired", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#invite-expired"}} + "422": + application/json: {"error": {"code": "unprocessable_entity", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#unprocessable-entity"}} + "429": + application/json: {"error": {"code": "rate_limit_exceeded", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#rate-limit_exceeded"}} + "500": + application/json: {"error": {"code": "internal_server_error", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#internal-server_error"}} + approvePartnerApplication: + speakeasy-default-approve-partner-application: + requestBody: + application/json: {"partnerId": ""} + responses: + "200": + application/json: {"partnerId": ""} + "400": + application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}} + "401": + application/json: {"error": {"code": "unauthorized", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#unauthorized"}} + "403": + application/json: {"error": {"code": "forbidden", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#forbidden"}} + "404": + application/json: {"error": {"code": "not_found", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#not-found"}} + "409": + application/json: {"error": {"code": "conflict", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#conflict"}} + "410": + application/json: {"error": {"code": "invite_expired", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#invite-expired"}} + "422": + application/json: {"error": {"code": "unprocessable_entity", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#unprocessable-entity"}} + "429": + application/json: {"error": {"code": "rate_limit_exceeded", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#rate-limit_exceeded"}} + "500": + application/json: {"error": {"code": "internal_server_error", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#internal-server_error"}} + rejectPartnerApplication: + speakeasy-default-reject-partner-application: + requestBody: + application/json: {"partnerId": "", "allowImmediateReapply": false} + responses: + "200": + application/json: {"partnerId": ""} + "400": + application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}} + "401": + application/json: {"error": {"code": "unauthorized", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#unauthorized"}} + "403": + application/json: {"error": {"code": "forbidden", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#forbidden"}} + "404": + application/json: {"error": {"code": "not_found", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#not-found"}} + "409": + application/json: {"error": {"code": "conflict", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#conflict"}} + "410": + application/json: {"error": {"code": "invite_expired", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#invite-expired"}} + "422": + application/json: {"error": {"code": "unprocessable_entity", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#unprocessable-entity"}} + "429": + application/json: {"error": {"code": "rate_limit_exceeded", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#rate-limit_exceeded"}} + "500": + application/json: {"error": {"code": "internal_server_error", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#internal-server_error"}} examplesVersion: 1.0.2 generatedTests: {} -releaseNotes: | - ## Go SDK Changes: - * `Dub.PartnerApplications.List()`: **Added** - * `Dub.PartnerApplications.Approve()`: **Added** - * `Dub.PartnerApplications.Reject()`: **Added** - * `Dub.Events.List()`: `response.[].union(SaleEvent).Sale.Currency` **Added** - * `Dub.Partners.List()`: `response.[].IdentityVerifiedAt` **Added** - * `Dub.Partners.Create()`: `response.IdentityVerifiedAt` **Added** generatedFiles: - .gitattributes - /models/components/analyticsbrowsers.go diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index d445613..8a0e016 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -29,7 +29,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false go: - version: 0.23.9 + version: 0.23.10 additionalDependencies: {} allowUnknownFieldsInWeakUnions: true baseErrorName: DubError diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index fbdeaad..8652971 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.761.9 sources: dub: sourceNamespace: dub - sourceRevisionDigest: sha256:0ec08cbcd2e443170af2f65a87a730ea85fee80c53b2ccc0e6e685c134b814e0 - sourceBlobDigest: sha256:c95e6e9feaed9d2cc7d68eab9855dd6ee3ba77615f44e0538cd4a0f19080ab67 + sourceRevisionDigest: sha256:1ac99f7516208f75678de0f09598c7b9c63b095aac3df9bde2abf915dd8c736e + sourceBlobDigest: sha256:4cfa099e5f7cae5705a6501f8b4455812eda42ddc94688897bca1de71abe0b38 tags: - latest - 0.0.1 @@ -11,10 +11,10 @@ targets: my-first-target: source: dub sourceNamespace: dub - sourceRevisionDigest: sha256:0ec08cbcd2e443170af2f65a87a730ea85fee80c53b2ccc0e6e685c134b814e0 - sourceBlobDigest: sha256:c95e6e9feaed9d2cc7d68eab9855dd6ee3ba77615f44e0538cd4a0f19080ab67 + sourceRevisionDigest: sha256:1ac99f7516208f75678de0f09598c7b9c63b095aac3df9bde2abf915dd8c736e + sourceBlobDigest: sha256:4cfa099e5f7cae5705a6501f8b4455812eda42ddc94688897bca1de71abe0b38 codeSamplesNamespace: code-samples-go-my-first-target - codeSamplesRevisionDigest: sha256:dfec97bf41cd6be48d251fea7281591a7df95d028190169e1fbeaa00681bb1dc + codeSamplesRevisionDigest: sha256:a428e84bff614580976eb4535ff935a939c5e233694e1272477ea6259b9eac2d workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index e30dc64..1109097 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1458,4 +1458,14 @@ Based on: ### Generated - [go v0.23.9] . ### Releases -- [Go v0.23.9] https://github.com/dubinc/dub-go/releases/tag/v0.23.9 - . \ No newline at end of file +- [Go v0.23.9] https://github.com/dubinc/dub-go/releases/tag/v0.23.9 - . + +## 2026-04-30 00:33:40 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.761.9 (2.881.4) https://github.com/speakeasy-api/speakeasy +### Generated +- [go v0.23.10] . +### Releases +- [Go v0.23.10] https://github.com/dubinc/dub-go/releases/tag/v0.23.10 - . \ No newline at end of file diff --git a/analytics.go b/analytics.go index 2a09167..5a9aad6 100644 --- a/analytics.go +++ b/analytics.go @@ -16,8 +16,6 @@ import ( "net/url" ) -// Analytics - Retrieve analytics for a partner -// Retrieve analytics for a partner within a program. The response type vary based on the `groupBy` query parameter. type Analytics struct { rootSDK *Dub sdkConfiguration config.SDKConfiguration diff --git a/codeSamples.yaml b/codeSamples.yaml index 1534bd7..965ce10 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -223,14 +223,14 @@ actions: update: "x-codeSamples": - "lang": "go" - "label": "approvePartner" - "source": "package main\n\nimport(\n\t\"context\"\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n\n res, err := s.PartnerApplications.Approve(ctx, operations.ApprovePartnerRequestBody{\n PartnerID: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + "label": "approvePartnerApplication" + "source": "package main\n\nimport(\n\t\"context\"\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n\n res, err := s.PartnerApplications.Approve(ctx, operations.ApprovePartnerApplicationRequestBody{\n PartnerID: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - target: $["paths"]["/partners/applications/reject"]["post"] update: "x-codeSamples": - "lang": "go" - "label": "rejectPartner" - "source": "package main\n\nimport(\n\t\"context\"\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n\n res, err := s.PartnerApplications.Reject(ctx, operations.RejectPartnerRequestBody{\n PartnerID: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + "label": "rejectPartnerApplication" + "source": "package main\n\nimport(\n\t\"context\"\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n\n res, err := s.PartnerApplications.Reject(ctx, operations.RejectPartnerApplicationRequestBody{\n PartnerID: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - target: $["paths"]["/partners/ban"]["post"] update: "x-codeSamples": @@ -247,8 +247,8 @@ actions: update: "x-codeSamples": - "lang": "go" - "label": "retrieveLinks" - "source": "package main\n\nimport(\n\t\"context\"\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n\n res, err := s.Partners.RetrieveLinks(ctx, operations.RetrieveLinksRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" + "label": "retrievePartnerLinks" + "source": "package main\n\nimport(\n\t\"context\"\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n\n res, err := s.Partners.RetrieveLinks(ctx, operations.RetrievePartnerLinksRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}" - target: $["paths"]["/partners/links"]["post"] update: "x-codeSamples": diff --git a/docs/models/operations/approvepartnerrequestbody.md b/docs/models/operations/approvepartnerapplicationrequestbody.md similarity index 98% rename from docs/models/operations/approvepartnerrequestbody.md rename to docs/models/operations/approvepartnerapplicationrequestbody.md index 2bcb961..d736c9f 100644 --- a/docs/models/operations/approvepartnerrequestbody.md +++ b/docs/models/operations/approvepartnerapplicationrequestbody.md @@ -1,4 +1,4 @@ -# ApprovePartnerRequestBody +# ApprovePartnerApplicationRequestBody ## Fields diff --git a/docs/models/operations/approvepartnerresponsebody.md b/docs/models/operations/approvepartnerapplicationresponsebody.md similarity index 91% rename from docs/models/operations/approvepartnerresponsebody.md rename to docs/models/operations/approvepartnerapplicationresponsebody.md index 5c5b8d1..51559c5 100644 --- a/docs/models/operations/approvepartnerresponsebody.md +++ b/docs/models/operations/approvepartnerapplicationresponsebody.md @@ -1,4 +1,4 @@ -# ApprovePartnerResponseBody +# ApprovePartnerApplicationResponseBody The approved partner diff --git a/docs/models/operations/rejectpartnerrequestbody.md b/docs/models/operations/rejectpartnerapplicationrequestbody.md similarity index 98% rename from docs/models/operations/rejectpartnerrequestbody.md rename to docs/models/operations/rejectpartnerapplicationrequestbody.md index 1b41805..e24fd3a 100644 --- a/docs/models/operations/rejectpartnerrequestbody.md +++ b/docs/models/operations/rejectpartnerapplicationrequestbody.md @@ -1,4 +1,4 @@ -# RejectPartnerRequestBody +# RejectPartnerApplicationRequestBody ## Fields diff --git a/docs/models/operations/rejectpartnerresponsebody.md b/docs/models/operations/rejectpartnerapplicationresponsebody.md similarity index 91% rename from docs/models/operations/rejectpartnerresponsebody.md rename to docs/models/operations/rejectpartnerapplicationresponsebody.md index 341f18c..8f790a4 100644 --- a/docs/models/operations/rejectpartnerresponsebody.md +++ b/docs/models/operations/rejectpartnerapplicationresponsebody.md @@ -1,4 +1,4 @@ -# RejectPartnerResponseBody +# RejectPartnerApplicationResponseBody The rejected partner diff --git a/docs/models/operations/retrievelinksrequest.md b/docs/models/operations/retrievepartnerlinksrequest.md similarity index 98% rename from docs/models/operations/retrievelinksrequest.md rename to docs/models/operations/retrievepartnerlinksrequest.md index f971514..b6d9b50 100644 --- a/docs/models/operations/retrievelinksrequest.md +++ b/docs/models/operations/retrievepartnerlinksrequest.md @@ -1,4 +1,4 @@ -# RetrieveLinksRequest +# RetrievePartnerLinksRequest ## Fields diff --git a/docs/models/operations/retrievelinksresponsebody.md b/docs/models/operations/retrievepartnerlinksresponsebody.md similarity index 99% rename from docs/models/operations/retrievelinksresponsebody.md rename to docs/models/operations/retrievepartnerlinksresponsebody.md index d7900bc..f49a05c 100644 --- a/docs/models/operations/retrievelinksresponsebody.md +++ b/docs/models/operations/retrievepartnerlinksresponsebody.md @@ -1,4 +1,4 @@ -# RetrieveLinksResponseBody +# RetrievePartnerLinksResponseBody ## Fields diff --git a/docs/sdks/partnerapplications/README.md b/docs/sdks/partnerapplications/README.md index ebf16f8..c0d1259 100644 --- a/docs/sdks/partnerapplications/README.md +++ b/docs/sdks/partnerapplications/README.md @@ -80,7 +80,7 @@ Approve a pending partner application to your program. The partner will be enrol ### Example Usage - + ```go package main @@ -98,7 +98,7 @@ func main() { dubgo.WithSecurity("DUB_API_KEY"), ) - res, err := s.PartnerApplications.Approve(ctx, operations.ApprovePartnerRequestBody{ + res, err := s.PartnerApplications.Approve(ctx, operations.ApprovePartnerApplicationRequestBody{ PartnerID: "", }) if err != nil { @@ -112,15 +112,15 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.ApprovePartnerRequestBody](../../models/operations/approvepartnerrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.ApprovePartnerApplicationRequestBody](../../models/operations/approvepartnerapplicationrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.ApprovePartnerResponseBody](../../models/operations/approvepartnerresponsebody.md), error** +**[*operations.ApprovePartnerApplicationResponseBody](../../models/operations/approvepartnerapplicationresponsebody.md), error** ### Errors @@ -143,7 +143,7 @@ Reject a pending partner application to your program. The partner will be notifi ### Example Usage - + ```go package main @@ -161,7 +161,7 @@ func main() { dubgo.WithSecurity("DUB_API_KEY"), ) - res, err := s.PartnerApplications.Reject(ctx, operations.RejectPartnerRequestBody{ + res, err := s.PartnerApplications.Reject(ctx, operations.RejectPartnerApplicationRequestBody{ PartnerID: "", }) if err != nil { @@ -175,15 +175,15 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.RejectPartnerRequestBody](../../models/operations/rejectpartnerrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.RejectPartnerApplicationRequestBody](../../models/operations/rejectpartnerapplicationrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.RejectPartnerResponseBody](../../models/operations/rejectpartnerresponsebody.md), error** +**[*operations.RejectPartnerApplicationResponseBody](../../models/operations/rejectpartnerapplicationresponsebody.md), error** ### Errors diff --git a/docs/sdks/partners/README.md b/docs/sdks/partners/README.md index a01625e..85e2332 100644 --- a/docs/sdks/partners/README.md +++ b/docs/sdks/partners/README.md @@ -170,7 +170,7 @@ Retrieve a partner's links by their partner ID or tenant ID. ### Example Usage - + ```go package main @@ -188,7 +188,7 @@ func main() { dubgo.WithSecurity("DUB_API_KEY"), ) - res, err := s.Partners.RetrieveLinks(ctx, operations.RetrieveLinksRequest{}) + res, err := s.Partners.RetrieveLinks(ctx, operations.RetrievePartnerLinksRequest{}) if err != nil { log.Fatal(err) } @@ -200,15 +200,15 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [operations.RetrieveLinksRequest](../../models/operations/retrievelinksrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [operations.RetrievePartnerLinksRequest](../../models/operations/retrievepartnerlinksrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[[]operations.RetrieveLinksResponseBody](../../.md), error** +**[[]operations.RetrievePartnerLinksResponseBody](../../.md), error** ### Errors diff --git a/dub.go b/dub.go index 7f909b9..baa8f21 100644 --- a/dub.go +++ b/dub.go @@ -142,9 +142,9 @@ func WithTimeout(timeout time.Duration) SDKOption { // New creates a new instance of the SDK with the provided options func New(opts ...SDKOption) *Dub { sdk := &Dub{ - SDKVersion: "0.23.9", + SDKVersion: "0.23.10", sdkConfiguration: config.SDKConfiguration{ - UserAgent: "speakeasy-sdk/go 0.23.9 2.881.4 0.0.1 github.com/dubinc/dub-go", + UserAgent: "speakeasy-sdk/go 0.23.10 2.881.4 0.0.1 github.com/dubinc/dub-go", ServerList: ServerList, }, hooks: hooks.New(), diff --git a/models/operations/approvepartner.go b/models/operations/approvepartnerapplication.go similarity index 62% rename from models/operations/approvepartner.go rename to models/operations/approvepartnerapplication.go index 5c239e0..9709ed3 100644 --- a/models/operations/approvepartner.go +++ b/models/operations/approvepartnerapplication.go @@ -2,34 +2,34 @@ package operations -type ApprovePartnerRequestBody struct { +type ApprovePartnerApplicationRequestBody struct { // The ID of the partner to approve. PartnerID string `json:"partnerId"` // The ID of the group to assign the partner to. If not provided, the partner will be assigned to the group they applied to, or the program's default group if no application group is set. GroupID *string `json:"groupId,omitempty"` } -func (a *ApprovePartnerRequestBody) GetPartnerID() string { +func (a *ApprovePartnerApplicationRequestBody) GetPartnerID() string { if a == nil { return "" } return a.PartnerID } -func (a *ApprovePartnerRequestBody) GetGroupID() *string { +func (a *ApprovePartnerApplicationRequestBody) GetGroupID() *string { if a == nil { return nil } return a.GroupID } -// ApprovePartnerResponseBody - The approved partner -type ApprovePartnerResponseBody struct { +// ApprovePartnerApplicationResponseBody - The approved partner +type ApprovePartnerApplicationResponseBody struct { // The ID of the approved partner. PartnerID string `json:"partnerId"` } -func (a *ApprovePartnerResponseBody) GetPartnerID() string { +func (a *ApprovePartnerApplicationResponseBody) GetPartnerID() string { if a == nil { return "" } diff --git a/models/operations/rejectpartner.go b/models/operations/rejectpartnerapplication.go similarity index 75% rename from models/operations/rejectpartner.go rename to models/operations/rejectpartnerapplication.go index 28049e8..713ea8c 100644 --- a/models/operations/rejectpartner.go +++ b/models/operations/rejectpartnerapplication.go @@ -41,7 +41,7 @@ func (e *RejectionReason) UnmarshalJSON(data []byte) error { } } -type RejectPartnerRequestBody struct { +type RejectPartnerApplicationRequestBody struct { // The ID of the partner to reject. PartnerID string `json:"partnerId"` // The reason for rejecting the partner application. This will be shared with the partner via email. @@ -52,52 +52,52 @@ type RejectPartnerRequestBody struct { AllowImmediateReapply *bool `default:"false" json:"allowImmediateReapply"` } -func (r RejectPartnerRequestBody) MarshalJSON() ([]byte, error) { +func (r RejectPartnerApplicationRequestBody) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(r, "", false) } -func (r *RejectPartnerRequestBody) UnmarshalJSON(data []byte) error { +func (r *RejectPartnerApplicationRequestBody) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &r, "", false, nil); err != nil { return err } return nil } -func (r *RejectPartnerRequestBody) GetPartnerID() string { +func (r *RejectPartnerApplicationRequestBody) GetPartnerID() string { if r == nil { return "" } return r.PartnerID } -func (r *RejectPartnerRequestBody) GetRejectionReason() *RejectionReason { +func (r *RejectPartnerApplicationRequestBody) GetRejectionReason() *RejectionReason { if r == nil { return nil } return r.RejectionReason } -func (r *RejectPartnerRequestBody) GetRejectionNote() *string { +func (r *RejectPartnerApplicationRequestBody) GetRejectionNote() *string { if r == nil { return nil } return r.RejectionNote } -func (r *RejectPartnerRequestBody) GetAllowImmediateReapply() *bool { +func (r *RejectPartnerApplicationRequestBody) GetAllowImmediateReapply() *bool { if r == nil { return nil } return r.AllowImmediateReapply } -// RejectPartnerResponseBody - The rejected partner -type RejectPartnerResponseBody struct { +// RejectPartnerApplicationResponseBody - The rejected partner +type RejectPartnerApplicationResponseBody struct { // The ID of the rejected partner. PartnerID string `json:"partnerId"` } -func (r *RejectPartnerResponseBody) GetPartnerID() string { +func (r *RejectPartnerApplicationResponseBody) GetPartnerID() string { if r == nil { return "" } diff --git a/models/operations/retrievelinks.go b/models/operations/retrievepartnerlinks.go similarity index 70% rename from models/operations/retrievelinks.go rename to models/operations/retrievepartnerlinks.go index 15fa338..f339542 100644 --- a/models/operations/retrievelinks.go +++ b/models/operations/retrievepartnerlinks.go @@ -6,28 +6,28 @@ import ( "github.com/dubinc/dub-go/internal/utils" ) -type RetrieveLinksRequest struct { +type RetrievePartnerLinksRequest struct { // The ID of the partner to create a link for. Will take precedence over `tenantId` if provided. PartnerID *string `queryParam:"style=form,explode=true,name=partnerId"` // The ID of the partner in your system. If both `partnerId` and `tenantId` are not provided, an error will be thrown. TenantID *string `queryParam:"style=form,explode=true,name=tenantId"` } -func (r *RetrieveLinksRequest) GetPartnerID() *string { +func (r *RetrievePartnerLinksRequest) GetPartnerID() *string { if r == nil { return nil } return r.PartnerID } -func (r *RetrieveLinksRequest) GetTenantID() *string { +func (r *RetrievePartnerLinksRequest) GetTenantID() *string { if r == nil { return nil } return r.TenantID } -type RetrieveLinksResponseBody struct { +type RetrievePartnerLinksResponseBody struct { // The unique ID of the short link. ID string `json:"id"` // The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains). @@ -50,81 +50,81 @@ type RetrieveLinksResponseBody struct { SaleAmount *float64 `default:"0" json:"saleAmount"` } -func (r RetrieveLinksResponseBody) MarshalJSON() ([]byte, error) { +func (r RetrievePartnerLinksResponseBody) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(r, "", false) } -func (r *RetrieveLinksResponseBody) UnmarshalJSON(data []byte) error { +func (r *RetrievePartnerLinksResponseBody) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &r, "", false, nil); err != nil { return err } return nil } -func (r *RetrieveLinksResponseBody) GetID() string { +func (r *RetrievePartnerLinksResponseBody) GetID() string { if r == nil { return "" } return r.ID } -func (r *RetrieveLinksResponseBody) GetDomain() string { +func (r *RetrievePartnerLinksResponseBody) GetDomain() string { if r == nil { return "" } return r.Domain } -func (r *RetrieveLinksResponseBody) GetKey() string { +func (r *RetrievePartnerLinksResponseBody) GetKey() string { if r == nil { return "" } return r.Key } -func (r *RetrieveLinksResponseBody) GetShortLink() string { +func (r *RetrievePartnerLinksResponseBody) GetShortLink() string { if r == nil { return "" } return r.ShortLink } -func (r *RetrieveLinksResponseBody) GetURL() string { +func (r *RetrievePartnerLinksResponseBody) GetURL() string { if r == nil { return "" } return r.URL } -func (r *RetrieveLinksResponseBody) GetClicks() *float64 { +func (r *RetrievePartnerLinksResponseBody) GetClicks() *float64 { if r == nil { return nil } return r.Clicks } -func (r *RetrieveLinksResponseBody) GetLeads() *float64 { +func (r *RetrievePartnerLinksResponseBody) GetLeads() *float64 { if r == nil { return nil } return r.Leads } -func (r *RetrieveLinksResponseBody) GetConversions() *float64 { +func (r *RetrievePartnerLinksResponseBody) GetConversions() *float64 { if r == nil { return nil } return r.Conversions } -func (r *RetrieveLinksResponseBody) GetSales() *float64 { +func (r *RetrievePartnerLinksResponseBody) GetSales() *float64 { if r == nil { return nil } return r.Sales } -func (r *RetrieveLinksResponseBody) GetSaleAmount() *float64 { +func (r *RetrievePartnerLinksResponseBody) GetSaleAmount() *float64 { if r == nil { return nil } diff --git a/partnerapplications.go b/partnerapplications.go index ab19402..3bff3c1 100644 --- a/partnerapplications.go +++ b/partnerapplications.go @@ -424,7 +424,7 @@ func (s *PartnerApplications) List(ctx context.Context, request operations.ListP // Approve a partner application // Approve a pending partner application to your program. The partner will be enrolled in the specified group and notified of the approval. -func (s *PartnerApplications) Approve(ctx context.Context, request operations.ApprovePartnerRequestBody, opts ...operations.Option) (*operations.ApprovePartnerResponseBody, error) { +func (s *PartnerApplications) Approve(ctx context.Context, request operations.ApprovePartnerApplicationRequestBody, opts ...operations.Option) (*operations.ApprovePartnerApplicationResponseBody, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -453,7 +453,7 @@ func (s *PartnerApplications) Approve(ctx context.Context, request operations.Ap SDKConfiguration: s.sdkConfiguration, BaseURL: baseURL, Context: ctx, - OperationID: "approvePartner", + OperationID: "approvePartnerApplication", OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -591,7 +591,7 @@ func (s *PartnerApplications) Approve(ctx context.Context, request operations.Ap return nil, err } - var out operations.ApprovePartnerResponseBody + var out operations.ApprovePartnerApplicationResponseBody if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } @@ -819,7 +819,7 @@ func (s *PartnerApplications) Approve(ctx context.Context, request operations.Ap // Reject a partner application // Reject a pending partner application to your program. The partner will be notified via email that their application was not approved. -func (s *PartnerApplications) Reject(ctx context.Context, request operations.RejectPartnerRequestBody, opts ...operations.Option) (*operations.RejectPartnerResponseBody, error) { +func (s *PartnerApplications) Reject(ctx context.Context, request operations.RejectPartnerApplicationRequestBody, opts ...operations.Option) (*operations.RejectPartnerApplicationResponseBody, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -848,7 +848,7 @@ func (s *PartnerApplications) Reject(ctx context.Context, request operations.Rej SDKConfiguration: s.sdkConfiguration, BaseURL: baseURL, Context: ctx, - OperationID: "rejectPartner", + OperationID: "rejectPartnerApplication", OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -986,7 +986,7 @@ func (s *PartnerApplications) Reject(ctx context.Context, request operations.Rej return nil, err } - var out operations.RejectPartnerResponseBody + var out operations.RejectPartnerApplicationResponseBody if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } diff --git a/partners.go b/partners.go index 8ff25df..eddc9aa 100644 --- a/partners.go +++ b/partners.go @@ -820,7 +820,7 @@ func (s *Partners) Create(ctx context.Context, request *operations.CreatePartner // RetrieveLinks - Retrieve a partner's links. // Retrieve a partner's links by their partner ID or tenant ID. -func (s *Partners) RetrieveLinks(ctx context.Context, request operations.RetrieveLinksRequest, opts ...operations.Option) ([]operations.RetrieveLinksResponseBody, error) { +func (s *Partners) RetrieveLinks(ctx context.Context, request operations.RetrievePartnerLinksRequest, opts ...operations.Option) ([]operations.RetrievePartnerLinksResponseBody, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -849,7 +849,7 @@ func (s *Partners) RetrieveLinks(ctx context.Context, request operations.Retriev SDKConfiguration: s.sdkConfiguration, BaseURL: baseURL, Context: ctx, - OperationID: "retrieveLinks", + OperationID: "retrievePartnerLinks", OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -984,7 +984,7 @@ func (s *Partners) RetrieveLinks(ctx context.Context, request operations.Retriev return nil, err } - var out []operations.RetrieveLinksResponseBody + var out []operations.RetrievePartnerLinksResponseBody if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err }