diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index b2eefd55..b4032f2a 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,26 +1,26 @@ lockVersion: 2.0.0 id: 43187d3e-7c3c-4c11-b5d4-4b2334fb6d96 management: - docChecksum: 3c99a7dcfe0f7e784b8e12ec1e0f615b + docChecksum: c3af06f4aa4a0f715926cc2eddf0e8a6 docVersion: 0.0.1 - speakeasyVersion: 1.761.9 - generationVersion: 2.881.4 - releaseVersion: 0.15.9 - configChecksum: 905a2f098279e69436117237d2e94b1f + speakeasyVersion: 1.768.2 + generationVersion: 2.889.1 + releaseVersion: 0.15.10 + configChecksum: 2f7826a6eac75a993f8815c68c67d525 repoURL: https://github.com/dubinc/dub-php.git installationURL: https://github.com/dubinc/dub-php.git published: true persistentEdits: - generation_id: 9f8448a9-ea36-4f39-b089-a29dcea2d7a9 - pristine_commit_hash: fa966bf2e46666f7f60b0f10cbe6fb05829c475b - pristine_tree_hash: b471da519ab48e839fe2edbf7d7ec14be26c7ef4 + generation_id: abe54d6e-ccb2-4425-804c-b146418aef5b + pristine_commit_hash: 9440872f1a166fe4548334a60a0cafa7c60c077d + pristine_tree_hash: 5427e3025057a9b953d2e38871d54a7ac38b9f2f features: php: constsAndDefaults: 0.2.2 - core: 3.9.22 + core: 3.9.23 deprecations: 2.81.1 errors: 0.3.1 - examples: 2.81.7 + examples: 2.81.8 flattening: 2.81.2 globalSecurity: 2.81.12 globalSecurityFlattening: 0.1.2 @@ -168,8 +168,8 @@ trackedFiles: pristine_git_object: 9e5ebec2e4589a99e2a893af6e7e75954fa122fd docs/Models/Components/CommissionCreatedEventType.md: id: c586ed52b2f5 - last_write_checksum: sha1:c1249627a11bfe6d4b617db2504fd5ec13260ced - pristine_git_object: e8c4467a41135a867e85c17b3ae7c1dbf3783f48 + last_write_checksum: sha1:897ba03e36cc446c755d9a79cc6711d58089d0b8 + pristine_git_object: a250f5fa7cf8eb5c1691bb1f2552355647e8811d docs/Models/Components/Constraints.md: id: 58a4ae7b256b last_write_checksum: sha1:faf5cb0607b75c8c503b1ad443a6a0c7a92ec1d5 @@ -318,6 +318,10 @@ trackedFiles: id: 96c82369ab69 last_write_checksum: sha1:7e45c60cb6c674767e0cd455e2e4af8a64ead6b1 pristine_git_object: ba10de05e335d4cfd0491f8d74ac551ee4513a2b + docs/Models/Components/NetworkStatus.md: + id: 774c74e22c4b + last_write_checksum: sha1:a81c3f7695a490b13048b17bc076fa2d0f5339d9 + pristine_git_object: e358be56eaf5ecbf4c2ea4cf7a105ab6be5b4f89 docs/Models/Components/One.md: id: 37e74752e70f last_write_checksum: sha1:0ce760d2cc96ef4fbd81170e6e7706248ae71d27 @@ -368,8 +372,8 @@ trackedFiles: pristine_git_object: 455ed98d18b55c690557e4ece1874f9854f439e5 docs/Models/Components/PartnerEnrolledEventData.md: id: fe101ec35813 - last_write_checksum: sha1:050954b27dc62b972359634557b28f3e9c5738c0 - pristine_git_object: 10a6b3a3a56158a32634cfc583cd9fbada713ca9 + last_write_checksum: sha1:68bcd5b19e9ca9a06d4be127a203d2f0910df3a2 + pristine_git_object: 20f356b3ac3a7d0d3ae4424ca9b9b5bece1f5e2f docs/Models/Components/PartnerEnrolledEventEvent.md: id: 4e0df4240e3d last_write_checksum: sha1:4ed74db31a986edccafca4c938b1f3306603dc58 @@ -470,6 +474,10 @@ trackedFiles: id: 71d0264ee613 last_write_checksum: sha1:80b5727ff99e93951675b046446831cc1a890fb7 pristine_git_object: e0d347ea42a972f0adf8d22e096d6be20900bf8c + docs/Models/Components/Tags.md: + id: ec3d398ba5e8 + last_write_checksum: sha1:77c7f7e5cd0941f187c4d20d5eee7b0e9b016d9e + pristine_git_object: abe39642883fcac5b7cc998222b4065abbc37113 docs/Models/Components/TestVariants.md: id: ad27a5bc8ca8 last_write_checksum: sha1:719e35b975879f0913043417bf65a14737390649 @@ -638,18 +646,18 @@ trackedFiles: id: 5da651c3baf4 last_write_checksum: sha1:20659fa2cb46d4c8e0d8cdc3d8ee07b45dbb164e pristine_git_object: f399c94d297b0eca65f4a5e1a4149e56c0a38914 - docs/Models/Operations/ApprovePartnerRequestBody.md: - id: 288b99717fd2 - last_write_checksum: sha1:ff76b9446c4da27722cf1956af673da03a2fc19d - pristine_git_object: 55f4cb01339d749c9771bb1073901a53d1ae2556 - docs/Models/Operations/ApprovePartnerResponse.md: - id: 0c9d77ec5f50 - last_write_checksum: sha1:147123194975eee6b89fff65af41567a808f77d1 - pristine_git_object: 294305a67a32db64836915e69cd1625b70ad7133 - docs/Models/Operations/ApprovePartnerResponseBody.md: - id: d71aaef99337 - last_write_checksum: sha1:d6d81bef1f970ce9d9190089dc02ef7fb46b1d3b - pristine_git_object: ec614ca2fbed6776360b9e56cd7971c5d9afdb12 + docs/Models/Operations/ApprovePartnerApplicationRequestBody.md: + id: 4a4cbc8d2ba8 + last_write_checksum: sha1:f6bbb51093fc27f2852df98324e42d6b24ae96a1 + pristine_git_object: 5d980450b1274a3bf05e44f869e26dc62240e4af + docs/Models/Operations/ApprovePartnerApplicationResponse.md: + id: e514b000a26f + last_write_checksum: sha1:eb7d08cb37d9e0953b9ef707387afec4375d0db7 + pristine_git_object: bd0ef0afc15f07fbffddd2ea0bf086ff0c9c5ae1 + docs/Models/Operations/ApprovePartnerApplicationResponseBody.md: + id: 13bc1942cdc0 + last_write_checksum: sha1:8853b29bcfd0d23dbc28e437197280853fea742c + pristine_git_object: c6435f015280f94d93e4e48711b6659c44f30e77 docs/Models/Operations/BanPartnerRequestBody.md: id: c56d34424ee7 last_write_checksum: sha1:e2ce953653896cf74d06650759750de43f1d065e @@ -894,6 +902,10 @@ trackedFiles: id: 24ed5445c8a2 last_write_checksum: sha1:6cd7dd93ea9f63cfbaeb2514f14aa1f185138e88 pristine_git_object: b05de325e8195adc2ba34b386c92501f44002aee + docs/Models/Operations/CreatePartnerNetworkStatus.md: + id: 68a971363d00 + last_write_checksum: sha1:fadf70cf0cbea875e321f05157a91ae25a2e029c + pristine_git_object: 4f7e9a095fa6d494e39b348fd5b6a84301acee30 docs/Models/Operations/CreatePartnerReferralFormData.md: id: 1d3729f56ff5 last_write_checksum: sha1:6cba8486c73478652c73984dffe2e3f744955944 @@ -912,8 +924,8 @@ trackedFiles: pristine_git_object: ee34780fccfc6def9e2af60ac9cced0958ac80ec docs/Models/Operations/CreatePartnerResponseBody.md: id: 754981e9484e - last_write_checksum: sha1:f9ca53c4b7afeea0e80c7b7bc139a13aa532c895 - pristine_git_object: 11ff60e4c7c41da5658709e4845b8a71f68be952 + last_write_checksum: sha1:c6d61b3f9ea341ee9e7eadf3a2ff509130310489 + pristine_git_object: 6cdf3f87985016676aee4f6e8028a6844cf38664 docs/Models/Operations/CreatePartnerStatus.md: id: 09d630a59472 last_write_checksum: sha1:1781a6f81305b8a013adca6bef6fa5125f485fc2 @@ -926,6 +938,10 @@ trackedFiles: id: 1add55df9b77 last_write_checksum: sha1:0f396396cb9aee23eb5aa21d489d8e6b1e672c15 pristine_git_object: ad07176c64f4502a41c74fb622ada7411d6d0b9e + docs/Models/Operations/CreatePartnerTags.md: + id: e7a74eae2140 + last_write_checksum: sha1:6710e30be0761c5224610617929aec596d12b3fc + pristine_git_object: 45b5cd97e689daade303fcadba618bbea8c0feb1 docs/Models/Operations/CreatePartnerTestVariants.md: id: c747a795420b last_write_checksum: sha1:b720e5bc0240f8a8fc668da0be8f8c5b509e013b @@ -1324,8 +1340,8 @@ trackedFiles: pristine_git_object: 1141749505ebc675867fa082f411db678b257b9c docs/Models/Operations/ListCommissionsRequest.md: id: 2e1a5c138650 - last_write_checksum: sha1:9a16de88890ca02a75fea657291b3b224667b3e0 - pristine_git_object: b637d9f2a3d3a0477c20af148ce7e2ff54a1b8b2 + last_write_checksum: sha1:799d1255bd92895a5bdee198a3447c5d77b7f5be + pristine_git_object: ad110888701b2b1e8de20878f0df6ad553646f31 docs/Models/Operations/ListCommissionsResponse.md: id: bd9b4f236b7c last_write_checksum: sha1:307782ff0a1a3c87816d964e1d3abd922a21a696 @@ -1340,8 +1356,8 @@ trackedFiles: pristine_git_object: b678f286b09ac02c07295cb4fc9201d0daa10fa3 docs/Models/Operations/ListCommissionsType.md: id: eb43ca64b189 - last_write_checksum: sha1:c9eb774fc01acabc8cccc7ca3bcfbe4dc46411e3 - pristine_git_object: c4a25daf863ff90541d4f3cc0705865cb252f722 + last_write_checksum: sha1:21d3976b23868c3d718c1c3a182f6f796f4b7757 + pristine_git_object: fbec57151fac203da44ef423c89e75f1ef84bad5 docs/Models/Operations/ListDomainsRequest.md: id: a78c8bdd7ba1 last_write_checksum: sha1:5477631c35776c18eeab7296c5fda152f57c12b6 @@ -1352,8 +1368,8 @@ trackedFiles: pristine_git_object: d14ef85c50aab2dfd0b68c86edf8af977bae0db5 docs/Models/Operations/ListEventsRequest.md: id: 8f1df99265a9 - last_write_checksum: sha1:cd07692e3b46c07482444cb684f493b5a8739482 - pristine_git_object: c6ec2e263c23245012d4d47e128ef6a0de1f2418 + last_write_checksum: sha1:72df987f11fcd2acd44876f00a9fb0c535d28f24 + pristine_git_object: 2d1b09bca183c630c71f50a651311d67da62a0e4 docs/Models/Operations/ListEventsResponse.md: id: 5f502bb8bfe8 last_write_checksum: sha1:8461c0e260e99b7f0dae3d0f96f6e1b886b1ee83 @@ -1480,8 +1496,8 @@ trackedFiles: pristine_git_object: a0a55bfad1464cbb1b76e5d4552fcf1c2b22491f docs/Models/Operations/ListPartnersResponseBody.md: id: 5bf0277463c6 - last_write_checksum: sha1:3ed54ac6ee3a0c37f8bc02aca044520b502af680 - pristine_git_object: f7425c79be79f523919ef870565b39e628462959 + last_write_checksum: sha1:8cc6af7821d510977d18b7a0c779d3f0898b6275 + pristine_git_object: 3318e587497fd6a9c812ab41f2393c4fbf265e30 docs/Models/Operations/ListPartnersStatus.md: id: f2b4066a012b last_write_checksum: sha1:10b37123f381d4a03fe2f5e7bea6b1781e170eeb @@ -1534,6 +1550,10 @@ trackedFiles: id: cea9d74f736b last_write_checksum: sha1:d4d99e6c0752b8a728d9e34aa31cdb30a48c7d23 pristine_git_object: 0290911db694d8ff04233501e7182d727813e3ed + docs/Models/Operations/NetworkStatus.md: + id: 2184db59dce4 + last_write_checksum: sha1:a81c3f7695a490b13048b17bc076fa2d0f5339d9 + pristine_git_object: e358be56eaf5ecbf4c2ea4cf7a105ab6be5b4f89 docs/Models/Operations/One.md: id: 5880cdc9beab last_write_checksum: sha1:1bce59746147b42e75f9bf74d61550288b306801 @@ -1552,16 +1572,16 @@ trackedFiles: pristine_git_object: 9a937b22012b2a04def399733ced3a4a7d72b0a5 docs/Models/Operations/PaymentProcessor.md: id: 8908ff3ead1d - last_write_checksum: sha1:df2b0f5f0e1b22b03a1e965f1a6bbaf352ab7972 - pristine_git_object: c3b72caf0cf0baf794877be6ff631277b562550e + last_write_checksum: sha1:a602668fdca91732365ab6f3e2809397a2fe07e0 + pristine_git_object: e07ba4b087c281297532fdc71cac79a81015aa50 docs/Models/Operations/QueryParamEvent.md: id: 8bb1122d26fe last_write_checksum: sha1:13ef260e238ed61632ac7fd2ee05cb60de09cc63 pristine_git_object: 744bbec20aa89ba2fb433ae2d09bb2d0066d01af docs/Models/Operations/QueryParamGroupBy.md: id: 48f243bcc7e6 - last_write_checksum: sha1:4ae6cf48eb1bff03dc35f565676f14beeaed1700 - pristine_git_object: 041920e06be5e31fca15d483d7b3adad8820fcd0 + last_write_checksum: sha1:5346d415336db365f6d1dbdb4445ab7cfaa5c028 + pristine_git_object: 0c72ad5cd2dcc49a38c4dc81a7feb0dec6a570b0 docs/Models/Operations/QueryParamInterval.md: id: 29dcecd7f3a6 last_write_checksum: sha1:b97b5fc0549362537e423ead2e0c72f1e6a42162 @@ -1590,6 +1610,10 @@ trackedFiles: id: 14909b4de6fe last_write_checksum: sha1:2daec444f60c9dc371adff42feeeec53e52cc46d pristine_git_object: 26c7cb937b06fcce8f2e7072eb612124a1ae6218 + docs/Models/Operations/ReapplicationTimeframe.md: + id: f0ba95bec836 + last_write_checksum: sha1:0883e8c09c4b6626f39aa49c50aaa836df015cde + pristine_git_object: 7260354a5501b5d5e4151edbd1d75ac1816c749f docs/Models/Operations/Reason.md: id: c87b808ec134 last_write_checksum: sha1:1fd9d103a2dd481e214dfe1e4c4f3090eaca826a @@ -1638,18 +1662,18 @@ trackedFiles: id: 3eb56eb6268b last_write_checksum: sha1:a928a4583c9fde5070b5e916e9af105a9bf2740b pristine_git_object: 90755e669c9eabe9f94fdbd98e8b0fe2166b7d5e - docs/Models/Operations/RejectPartnerRequestBody.md: - id: 35bd73b49015 - last_write_checksum: sha1:0cc4ec31685755895f57ea284354c0e58d985818 - pristine_git_object: 5e4fb9f89a01636daf71771030fc48f2fa2d5d3e - docs/Models/Operations/RejectPartnerResponse.md: - id: e2ec8656a33e - last_write_checksum: sha1:3f9a6367cd3509241c3a7500e55b70aeb01d5355 - pristine_git_object: 6f3b6a6dea983e00fefda57000ef2398e9e4c9bb - docs/Models/Operations/RejectPartnerResponseBody.md: - id: bfa83ca198b1 - last_write_checksum: sha1:d0aa0646b74d4c8aa767b827acdba4a4afb602e6 - pristine_git_object: 7b151670f5876d3f796c39ebd5b428add74eeb57 + docs/Models/Operations/RejectPartnerApplicationRequestBody.md: + id: f997afbf3e14 + last_write_checksum: sha1:58fff20e6ec3504360e9852bd2acd10c1c98a860 + pristine_git_object: b8a79802497d082fb7141880178988deb6a40e7d + docs/Models/Operations/RejectPartnerApplicationResponse.md: + id: 4bdfa1ce1b82 + last_write_checksum: sha1:ca45bdb152edda2c4c7efd55f0b735e071a183c0 + pristine_git_object: 6542eb7a73a12d991a77739792a355c8c2d0bd3d + docs/Models/Operations/RejectPartnerApplicationResponseBody.md: + id: 739f919f949b + last_write_checksum: sha1:b718eb01be8be7696cacccf625ed098d11be8c8d + pristine_git_object: 65bf2ea52eaeee0953b66a16f3643e735b5757ff docs/Models/Operations/RejectionReason.md: id: 2f90131df294 last_write_checksum: sha1:40ee052e641e2aaa8e435a04df0eb9c6862efea1 @@ -1680,8 +1704,8 @@ trackedFiles: pristine_git_object: 757afe9f5afc61cc5a196ad656d8542aabcc43e3 docs/Models/Operations/ResponseBodyPaymentProcessor.md: id: b3c5d6485493 - last_write_checksum: sha1:fe786445ecd6f68ff667fef6d1017d3ef932fcb2 - pristine_git_object: 4ca8e507b71e0c96cdbe726ea28e540a5b82a5af + last_write_checksum: sha1:a5eea32af55d1f4e080f021c634635d1fb99599b + pristine_git_object: 55328dab0863d078564b1f75e9ef54c08e0ec96c docs/Models/Operations/ResponseBodySale.md: id: af7d707f0dcd last_write_checksum: sha1:b83d34f4aabe95bd7a921ea2ef78b5a1bf15217a @@ -1692,8 +1716,8 @@ trackedFiles: pristine_git_object: dfdd33bb0c1d333aedf060eebda433b810b0b396 docs/Models/Operations/RetrieveAnalyticsRequest.md: id: ef3c1898fe54 - last_write_checksum: sha1:a5226193a6a094177b2274bf530823dcb4e7bcbf - pristine_git_object: 941b88592e538c47b997628249fde159b29890d4 + last_write_checksum: sha1:78ebaa2a768dca3276d9ae68ebcc22cbc587b678 + pristine_git_object: a73cd066d452665db347ceed7487df9bd96b7048 docs/Models/Operations/RetrieveAnalyticsResponse.md: id: 819439c460dd last_write_checksum: sha1:2b3931ea0df525d2ca95ccc9e9ee7adc32191927 @@ -1702,18 +1726,6 @@ trackedFiles: id: ef30d2701b72 last_write_checksum: sha1:db3333c919fbbac9bdcf96bb837c1d0aef44f1e3 pristine_git_object: ccd61b6b91a7af09ddd3b6a81cdb728a67c956f3 - docs/Models/Operations/RetrieveLinksRequest.md: - id: c1f83be4c5ca - last_write_checksum: sha1:799767730f30fafbc264b2e093ce12afcb9eb153 - pristine_git_object: 7b5321a7f0cbcd988d975ecd808aba0a2de5ae18 - docs/Models/Operations/RetrieveLinksResponse.md: - id: fcae59d2b77e - last_write_checksum: sha1:bfa9fdecb0668b08c6b4926c567d5a96d4b93b64 - pristine_git_object: 6ba52489ec7f10a12110f81ba4a95b053bb88621 - docs/Models/Operations/RetrieveLinksResponseBody.md: - id: fe9fdc161a94 - last_write_checksum: sha1:1b428f249f52d2162c78454815d0a6fe47819ff1 - pristine_git_object: e5665213b31e5062d9f3db7893a487379013b23d docs/Models/Operations/RetrievePartnerAnalyticsQueryParamGroupBy.md: id: c5a857fc7132 last_write_checksum: sha1:5eff0eaf812b6a6286861e2bfa30f8c2e5f1f135 @@ -1734,6 +1746,18 @@ trackedFiles: id: eb6808e83298 last_write_checksum: sha1:bec7f0625302f4bd0fc9e1feef6d8ab51ae6ab46 pristine_git_object: 42ad9fbb13a6d52beccc56016123c87382bed8d3 + docs/Models/Operations/RetrievePartnerLinksRequest.md: + id: f9ec2599dd14 + last_write_checksum: sha1:4caf534101c06b287cc184373b3283c842d087a5 + pristine_git_object: 4857e1a3d12989b4aa204950cceeb398ab1853a0 + docs/Models/Operations/RetrievePartnerLinksResponse.md: + id: d22a632a0d42 + last_write_checksum: sha1:b80c1328cea0a52bd5299393f671c01f4c2a510f + pristine_git_object: 31900f0904b543d8d1bcafb6685070f2b7fb9c64 + docs/Models/Operations/RetrievePartnerLinksResponseBody.md: + id: 0ed9a70152d6 + last_write_checksum: sha1:a36abe8eb8273a8d84265bf32d8097b950787626 + pristine_git_object: b31cc71779404edd027b72d7b615ae78c70b1940 docs/Models/Operations/Sale.md: id: 6454d94e79df last_write_checksum: sha1:d387d59cd6812bf30dc7e4657489119613377d0f @@ -1778,6 +1802,10 @@ trackedFiles: id: dc6d705e3586 last_write_checksum: sha1:232ac2da6217445a5ee30971d36a9cc50f145189 pristine_git_object: 5da11d7d2c7be698d00cef986345f02d69b7aae4 + docs/Models/Operations/Tags.md: + id: 08a013b135d1 + last_write_checksum: sha1:77c7f7e5cd0941f187c4d20d5eee7b0e9b016d9e + pristine_git_object: abe39642883fcac5b7cc998222b4065abbc37113 docs/Models/Operations/TestVariants.md: id: 3149211cef1a last_write_checksum: sha1:719e35b975879f0913043417bf65a14737390649 @@ -1820,8 +1848,8 @@ trackedFiles: pristine_git_object: 46cb4a60c30bfecfed13840134f1c084837590cb docs/Models/Operations/Type.md: id: 7ed3ea2b9d4f - last_write_checksum: sha1:878e07770526f5fe27619dbcbcae981f35bb18f4 - pristine_git_object: f68acb1dac93f904f2039ff5c39397e7d5470652 + last_write_checksum: sha1:f97a8ca36dafb08c0b7fa31f1018aead7e8b0c6b + pristine_git_object: 7817f19f59f4282d3a7c1a8aa432766162a1d635 docs/Models/Operations/UpdateCommissionCustomer.md: id: d11e0a21a994 last_write_checksum: sha1:eb434d189dc8b0379e696a84c22a08442d388c00 @@ -1852,8 +1880,8 @@ trackedFiles: pristine_git_object: b53faccfcb1a774895bd5f959c05e7ea09a2b8d3 docs/Models/Operations/UpdateCommissionType.md: id: 5bf489e2e970 - last_write_checksum: sha1:a731729d13c3fcd111843dfd4cecc2c8d53bafe8 - pristine_git_object: b681010394cb3a778f0c53d4a96174ff89325553 + last_write_checksum: sha1:47c2c0e5b816db762549b8704d34aebc89283637 + pristine_git_object: fbe79968cd69604c57e89ad05cc59dabcfa70d13 docs/Models/Operations/UpdateCustomerDiscount.md: id: a06906a15b96 last_write_checksum: sha1:96bb361892da78604a4a68b293b07f50eb1c6516 @@ -2040,12 +2068,12 @@ trackedFiles: pristine_git_object: 87caf5116b7d31773cd27f8dfe595ff6d35f8147 docs/sdks/partnerapplications/README.md: id: 6cf37e16d4c1 - last_write_checksum: sha1:8e81a7db44566b09b616c0d067d5950c67d9cf2f - pristine_git_object: 0ec5f3b463b433560c614e100073925aba0d0202 + last_write_checksum: sha1:58230b90ba4d3231b878bb47491b5efed51f0224 + pristine_git_object: 81b5ab0424d67ca6398627ff85ce4f689852e555 docs/sdks/partners/README.md: id: 85ac19d13270 - last_write_checksum: sha1:5a04005152518fbbfd5116a840e8b0624adb9807 - pristine_git_object: 988cd257556f8354146cd5141e22a542bc703c42 + last_write_checksum: sha1:cf3ceac2d9056040b8fdb004cccb9c08faf0b007 + pristine_git_object: 4444f5c0a5278c942bff609af9e2b4c24a2c9f00 docs/sdks/payouts/README.md: id: 184ed4a74471 last_write_checksum: sha1:bfc26160d57b0ae820e168b88b8a7d99f629e185 @@ -2088,8 +2116,8 @@ trackedFiles: pristine_git_object: 5050e02a2169fbcc2878a2b3a1405de0872bcd51 src/Commissions.php: id: ecb5e51d43fb - last_write_checksum: sha1:65d4b2864d3cb809811f513bb42c9788bbdb245e - pristine_git_object: 80c7b5aa82e2554a4abab814c5efd6ff3771573f + last_write_checksum: sha1:7123b884d8b890e7db19cfe7d5dbf1636bb8bb4c + pristine_git_object: 334bd5422dbd24917519dbcd0e270f9dc0470861 src/Customers.php: id: e30600fa045b last_write_checksum: sha1:8fdbce36486885b1233f5b382d54c4081f43b1e6 @@ -2308,8 +2336,8 @@ trackedFiles: pristine_git_object: 577d93b6b3e4b73fcfe15f23eee871ebdb5549ba src/Models/Components/CommissionCreatedEventType.php: id: d878ae8b9e17 - last_write_checksum: sha1:1a3b602c26c7e3abb7b420b95d9c2d156f24abae - pristine_git_object: 25a5c4ae562be2bd7aeb185b6600c78f9ebdcbb7 + last_write_checksum: sha1:7e9d4f3bc316514cd977b6362bef1e868e02c13c + pristine_git_object: 7246ea8c114e56e726302b30972e01fe85b6c000 src/Models/Components/Constraints.php: id: 7a6f4235e5f2 last_write_checksum: sha1:2fddb670bcc7d07e93622f5494d135e5ffbb3a46 @@ -2450,6 +2478,10 @@ trackedFiles: id: 5200cf8f06b8 last_write_checksum: sha1:2c1657ecfb7a21cb3560b00b6d8af68f38e74cb6 pristine_git_object: 0c67c0ed8519c1cc26ab3ea426c7e92ca8a6ce29 + src/Models/Components/NetworkStatus.php: + id: bbb071fc0178 + last_write_checksum: sha1:d6b55acd75526a2bf560d5efa7425f191205382e + pristine_git_object: cd012ce47e86eb588d95167057c120283e8ccad0 src/Models/Components/One.php: id: 5601016c5a2c last_write_checksum: sha1:62b4d5c3fc300344891978b5590be3dee3765921 @@ -2500,8 +2532,8 @@ trackedFiles: pristine_git_object: b40900db5d507c71af4e69ba8d10eceb51612c54 src/Models/Components/PartnerEnrolledEventData.php: id: f87391f37742 - last_write_checksum: sha1:3b4cce461079945aba5c6811a49c770a79925702 - pristine_git_object: 38d4d6794066583e7a5fb8c7778fa5ca27a472d2 + last_write_checksum: sha1:ac2f1356f29a5338982b41111856d9dce4979238 + pristine_git_object: 29298eb8b3227711ba184f1a96c06a27009a03e7 src/Models/Components/PartnerEnrolledEventEvent.php: id: 27e1073bd038 last_write_checksum: sha1:39a79cabb5c1791032eb7028558a2dad4d328ab5 @@ -2602,6 +2634,10 @@ trackedFiles: id: acaeb52457b8 last_write_checksum: sha1:3ac0ea69c5b607d9c8c0da65134ca1cd59727ccd pristine_git_object: f5906e526401ba5173c59390aae187b44924d543 + src/Models/Components/Tags.php: + id: 7b2c7eb8fa0e + last_write_checksum: sha1:aeca46cb9cf3b814a43e1840ce0fca40616a2ff5 + pristine_git_object: 228f001cd6678a39f19536328870ea846b6e109a src/Models/Components/TestVariants.php: id: 55d551a2db03 last_write_checksum: sha1:74dc01061005828302c40feef723da256e9171c6 @@ -2806,18 +2842,18 @@ trackedFiles: id: f127f57da01e last_write_checksum: sha1:e06ee1b4ddf529acc39d3ddce697b156bcafda32 pristine_git_object: b451a90c913ede13b10a980146c237383cf4eed8 - src/Models/Operations/ApprovePartnerRequestBody.php: - id: 94285e2b2564 - last_write_checksum: sha1:c107895d0a5c31caec3b1b4ac5a27429a9a90d33 - pristine_git_object: 7735ff60c8f3bc58af4fb6bd309cee09f8b68dea - src/Models/Operations/ApprovePartnerResponse.php: - id: 7be827a86c85 - last_write_checksum: sha1:7c0aad9007ad6aec866a4029fc218b1d00aebd88 - pristine_git_object: 927c2f1700848ca59a6ba70fbbfc89be0123463d - src/Models/Operations/ApprovePartnerResponseBody.php: - id: 18c8b90922f2 - last_write_checksum: sha1:6ce0099bf40b4b4c5869f3f9b8b4bf54d67a38bd - pristine_git_object: b383d912a28cc4594d63f3b2d522175a4904b51b + src/Models/Operations/ApprovePartnerApplicationRequestBody.php: + id: cddfffeff08e + last_write_checksum: sha1:e556ccaeccb1717dbb9aad64b27def8ee1a8ff1a + pristine_git_object: b296e5133814227e17c002fb79a04d1ece11d3ff + src/Models/Operations/ApprovePartnerApplicationResponse.php: + id: 6783253ef62a + last_write_checksum: sha1:eb455cc0add9fd12705e88f8dfd53225d61cc11c + pristine_git_object: 1510142fe594bc5badb5087f0e68dcdf3b01c54a + src/Models/Operations/ApprovePartnerApplicationResponseBody.php: + id: 75313e231e2f + last_write_checksum: sha1:4f410a3dbdc70d7baaa0709fcae42dec96fad2c0 + pristine_git_object: 6f0dfb0083aa8799d1d9a39a595e7e2a521e9feb src/Models/Operations/BanPartnerRequestBody.php: id: c377177b08a4 last_write_checksum: sha1:949b8d6d2032a71731728202b34c8c9654718ace @@ -3034,6 +3070,10 @@ trackedFiles: id: b865de4e163c last_write_checksum: sha1:4225af80ec79d12ce3c77856cdcef70fd0e92014 pristine_git_object: e54d19f2db674982f1de0f55b5d03b817772bdca + src/Models/Operations/CreatePartnerNetworkStatus.php: + id: e515a177ce13 + last_write_checksum: sha1:d434e2b71618578fe6b975e757d50cc92f53916b + pristine_git_object: 4b2cb2cd2dab10ef0f375e56d96b58a7cc6313a6 src/Models/Operations/CreatePartnerReferralFormData.php: id: 0cafb94a13af last_write_checksum: sha1:09a1c7406e8effcba3fbb053ab47134522258153 @@ -3052,12 +3092,16 @@ trackedFiles: pristine_git_object: 3528925d0ff6f58330b5f502b4de8bae5cd42450 src/Models/Operations/CreatePartnerResponseBody.php: id: 19780bcb8e6c - last_write_checksum: sha1:028ca72cd02be0ddcaf4fb434d1405a691251da0 - pristine_git_object: d4fcc12d8998a2e7f615cb2063289bfb125001d6 + last_write_checksum: sha1:86edd7215bf0ffd3fa3e409c767a4619ba3f46b5 + pristine_git_object: 64d5741aa774b5a848f2685771b4f9fb24e86b32 src/Models/Operations/CreatePartnerStatus.php: id: af08e73c41bc last_write_checksum: sha1:454e4ba30e70da761051857acce1fad5a74d2a57 pristine_git_object: 87dc2d02f36e2e3fa52eddbc2d189b1553aa7c4c + src/Models/Operations/CreatePartnerTags.php: + id: 457075f507a7 + last_write_checksum: sha1:9f4bd45c33149001063f423c0e342c0b57bc9ba0 + pristine_git_object: 3fb6a916940d8bbcade6c427fdd914dbe99f17b1 src/Models/Operations/CreatePartnerTestVariants.php: id: 87e83f9811f2 last_write_checksum: sha1:08faa81be28c6390e71a3ba5e8353cd7bac7cbb3 @@ -3424,8 +3468,8 @@ trackedFiles: pristine_git_object: 4e05729fd3ef57397ade01bd8e7741e8b320d694 src/Models/Operations/ListCommissionsRequest.php: id: 233e187c846e - last_write_checksum: sha1:38c1307d09b48a35ea0ba397e8f8d46db5a1df01 - pristine_git_object: 248f28067304c65fe9186fcbb80dcffa0f595fca + last_write_checksum: sha1:7cb9fafeea100342c6428f35e0e77f2e4c29ac9f + pristine_git_object: aadfd401f13d863caf4380e16c8be530a01dbe8c src/Models/Operations/ListCommissionsResponse.php: id: cd86b4064e3d last_write_checksum: sha1:6c987952d34a92664430fda01414792ca2417c92 @@ -3440,8 +3484,8 @@ trackedFiles: pristine_git_object: 45905699670d22db0b8227c1afb1e04800d45f4a src/Models/Operations/ListCommissionsType.php: id: a8b9e95e0567 - last_write_checksum: sha1:072a59dc491fd49921955df89c6ed60431a661bf - pristine_git_object: 3bcf84fb6f9fea3ec10cf743708c43446e9a29fb + last_write_checksum: sha1:29b3cb45094a139961479ce98dfad3b6811cd226 + pristine_git_object: c2c71b621feff58d14469e74975f5954e1144256 src/Models/Operations/ListDomainsRequest.php: id: 897b27f839c6 last_write_checksum: sha1:5b87c53e3bd5aebce2d6dcc6ce4aa14d52a64fbf @@ -3452,8 +3496,8 @@ trackedFiles: pristine_git_object: 5e7088ccc58b10ccce795870e4ab0defebc0f93f src/Models/Operations/ListEventsRequest.php: id: de0185d53dd4 - last_write_checksum: sha1:09bbcef82afc905aae07f3636e12e2a76ab38461 - pristine_git_object: a3cb6e8d96a6c60f3713c084027a0134418b9be6 + last_write_checksum: sha1:0b0bb7a132e96920a63d9bf1bb0efc4422e3426c + pristine_git_object: 460060e0dbb077bf9a608052801345436afecd7e src/Models/Operations/ListEventsResponse.php: id: 00711f456530 last_write_checksum: sha1:587a0dbf943f02bd330ab3b680907b7bc7b74c3b @@ -3576,8 +3620,8 @@ trackedFiles: pristine_git_object: 2df561ca3cc145d8cb8490e9a864aac87dfb140f src/Models/Operations/ListPartnersResponseBody.php: id: f6c34f690cf2 - last_write_checksum: sha1:6eb5f90911f87906402ec48525527adbd10d7cb4 - pristine_git_object: 518ceb69606af3e2dcb231e6d02ac7fe486afad7 + last_write_checksum: sha1:d6b956a2d9ba0b1b56e55034ee9000026e493ed0 + pristine_git_object: 764a3f141847b6f128a6ebb54259792c1618a862 src/Models/Operations/ListPartnersStatus.php: id: 3bcd170db193 last_write_checksum: sha1:4c2e7e47d029292334894ba8d05c6b08861ba66d @@ -3630,6 +3674,10 @@ trackedFiles: id: 4295b129315d last_write_checksum: sha1:724c2f6762ffddb900f69f720c96fdac83532a0e pristine_git_object: 357a531de950e9c0f6a98689b2e10b54dcd94c23 + src/Models/Operations/NetworkStatus.php: + id: 4971951cde36 + last_write_checksum: sha1:747a8755d7c1821c8fd22e85aebf6866d5ceeae9 + pristine_git_object: 86e7a2dd0920ae872aedc92fd0512670789a5c09 src/Models/Operations/One.php: id: 96a89a5be9d8 last_write_checksum: sha1:2b9468fc7667003eb1ca496d5f568cfadcb66fd0 @@ -3648,16 +3696,16 @@ trackedFiles: pristine_git_object: 80f6a4cd687830f36b907d47eaa5741e6d5b89eb src/Models/Operations/PaymentProcessor.php: id: 657c56f82707 - last_write_checksum: sha1:3d7638e2265f10bff4335639c548059a5f2c3525 - pristine_git_object: bb9dd3445c32603cd25822967c6a14274f1930b9 + last_write_checksum: sha1:03428015cc2d629a44c0a595b470bbe1288eab51 + pristine_git_object: d129b521c98d13835441f67a3464a09cd476fdb7 src/Models/Operations/QueryParamEvent.php: id: 40e193757d35 last_write_checksum: sha1:5c87ab775f50ffd4db4990e791bb1efe610213d8 pristine_git_object: 1f5d889becbd2774cfaf594bd4c6a97b82d78475 src/Models/Operations/QueryParamGroupBy.php: id: 89340925bd47 - last_write_checksum: sha1:43b236b6610d80af399702e58afb07b24554af69 - pristine_git_object: eb1efacba26bfbabfc4f3afe8f3e743225075410 + last_write_checksum: sha1:c064d1d9b1cc956883d5f51a7d28134341971705 + pristine_git_object: 2cbb81fb0db230fa17aa3ec52cdffa47394217bf src/Models/Operations/QueryParamInterval.php: id: 05867df3ac72 last_write_checksum: sha1:0580b9722b0553ec1c66f73ea999ae602e533eb8 @@ -3678,6 +3726,10 @@ trackedFiles: id: 0484b65081a6 last_write_checksum: sha1:945ae16067a1742bd327879e661e1d6a146b6106 pristine_git_object: 5feb8ada2237e5d06ea632030330eb5ae26c7a88 + src/Models/Operations/ReapplicationTimeframe.php: + id: eae54c8bdf7a + last_write_checksum: sha1:b76012b813316b6e716bce7f477c6167f1de5932 + pristine_git_object: 3afb85180f202a0567ae27af2a8e76e495fdd9ec src/Models/Operations/Reason.php: id: fe2c72056e25 last_write_checksum: sha1:a370d1d224bc995be26da60827ea695cfb095837 @@ -3726,18 +3778,18 @@ trackedFiles: id: 9331f99f1bfe last_write_checksum: sha1:1e7ecfe4e2355ef287381dd0663aa603bc7cf6a4 pristine_git_object: 08bbb5007546d3dd3c147b9829a4d16250855377 - src/Models/Operations/RejectPartnerRequestBody.php: - id: 147451da5a1d - last_write_checksum: sha1:563ff9cd6f6d3bf98c8fac723e6430123c1addbe - pristine_git_object: 75145f28f2272a6f46565add58a065b0aa26699e - src/Models/Operations/RejectPartnerResponse.php: - id: 0c65dfa43251 - last_write_checksum: sha1:dc11c8569f57084019e83d7fd165f12b0354320b - pristine_git_object: 33c44f96a294bd4c04a1e6f7916b320fcf1dc07b - src/Models/Operations/RejectPartnerResponseBody.php: - id: a94fdc81d6aa - last_write_checksum: sha1:744b94fe2087583a8685bdeec94b4b92aaabbeb7 - pristine_git_object: 38546bbc5d409e81e1a3a64721e8bd2b7a6584be + src/Models/Operations/RejectPartnerApplicationRequestBody.php: + id: 85c10b652d7b + last_write_checksum: sha1:642a05de4d8e7e481f2927dd22192bac2867fdd1 + pristine_git_object: 45c2ccb8c3461fbb6d2d1bdea3f2c56827edf285 + src/Models/Operations/RejectPartnerApplicationResponse.php: + id: 457b545519b2 + last_write_checksum: sha1:419a5ebdcf8dc73a50ec92731fa96d893a4dfa50 + pristine_git_object: c8cb96c6e9db4b39fb57c4b20f385093842a857d + src/Models/Operations/RejectPartnerApplicationResponseBody.php: + id: 7ed51f7bd5bb + last_write_checksum: sha1:4d4ad7a43178c193343a311dfc660abb4b82e9bb + pristine_git_object: fc404a650a840db5882b7dc7e6da1223da17e0d9 src/Models/Operations/RejectionReason.php: id: 0bd86fe7165d last_write_checksum: sha1:90495cea714d359ed8cec379b7fd070c5f04a458 @@ -3764,8 +3816,8 @@ trackedFiles: pristine_git_object: 90997569734b6b3f5ada7b4438338952a871ff6e src/Models/Operations/ResponseBodyPaymentProcessor.php: id: 52183e8b835f - last_write_checksum: sha1:22be3971feac53cc494beea401bfab8a93d4b441 - pristine_git_object: 3cd8bec7fb565a265faa77c4e303ad2d9580fc55 + last_write_checksum: sha1:21f0801ddfbc50f16ed9fdc7762e991ca45e4f51 + pristine_git_object: 7f82c8afb1f79df29b191c59a37582e9beb0f94a src/Models/Operations/ResponseBodySale.php: id: 183aa4055aec last_write_checksum: sha1:b628f418bbb6ff03a553877cbe4a14bca3bb55e6 @@ -3776,24 +3828,12 @@ trackedFiles: pristine_git_object: 0f26328a1d2a4e34c5b610f24fd9e42aab7fd1f1 src/Models/Operations/RetrieveAnalyticsRequest.php: id: 9f76e9868839 - last_write_checksum: sha1:f179083f3fb536819baf494449ee0e24aefec030 - pristine_git_object: 834bd846de27c0b35395a7fff9b0ff47cb68ee7f + last_write_checksum: sha1:b592121cb53bd613b570de956afc03f2c9c83cb2 + pristine_git_object: 14e9d102020d0a728afe60afebdb09162ba2faaf src/Models/Operations/RetrieveAnalyticsResponse.php: id: 8298765f83fd last_write_checksum: sha1:b634f26d1b6f71fee1cf42f7a92ec98bd70b4553 pristine_git_object: 585ae8596c24f37b188ba7573bf508bad34bae27 - src/Models/Operations/RetrieveLinksRequest.php: - id: 64258a992f1e - last_write_checksum: sha1:19e7569377ac6d559018146329fa3a3538673dcc - pristine_git_object: 89432fedc6eb54ae5115671b977906550caacccb - src/Models/Operations/RetrieveLinksResponse.php: - id: 7acd1254e9b6 - last_write_checksum: sha1:4999294231bc6709f9a656ee418d1bb41bc4cfc5 - pristine_git_object: 984549273d1fcfd3c9afeacb88f6ac55db64d06f - src/Models/Operations/RetrieveLinksResponseBody.php: - id: caff8f39ac61 - last_write_checksum: sha1:0c2a0ca9f3ea6ce37767425663439649bdf42abe - pristine_git_object: 124e572d4e67e17e983e1f83cbafd8a0dfe98a76 src/Models/Operations/RetrievePartnerAnalyticsQueryParamGroupBy.php: id: 695cd4403984 last_write_checksum: sha1:c2697a046295c29063a97ba1aaa9e4c13eb7630e @@ -3810,6 +3850,18 @@ trackedFiles: id: d2b6d20e959e last_write_checksum: sha1:39b1ec1d798084415c9fcd66dfb1c657b5d1536f pristine_git_object: 6260b4ed10756a014ed27ab94e32d3fe51ce4105 + src/Models/Operations/RetrievePartnerLinksRequest.php: + id: 9bd2900a0e74 + last_write_checksum: sha1:e22b33713c72f6f5605468a858bcc3ebbf588364 + pristine_git_object: 8445cc149b4b7a2819d146158b797f3062501f5a + src/Models/Operations/RetrievePartnerLinksResponse.php: + id: 11aaa59fabbd + last_write_checksum: sha1:4b965115c3afa7d377295f34993de402bf9f2dd7 + pristine_git_object: cbbcdf7f71b03f14b8f8f5ff7b1fb72c05d88e8e + src/Models/Operations/RetrievePartnerLinksResponseBody.php: + id: a23a366b9b3c + last_write_checksum: sha1:18b64f51c70e305b469173efa1e06f7a541e3cd3 + pristine_git_object: 97c523c3ccd7e224fd3833a7d59ea6f015664826 src/Models/Operations/Sale.php: id: fda253f70f69 last_write_checksum: sha1:edd9002a7c423039ca25b9e018313788734fae5d @@ -3846,6 +3898,10 @@ trackedFiles: id: a07db016f1fe last_write_checksum: sha1:65769f437a8a6dcdb5a4bb9ed33dc0c49905a678 pristine_git_object: 6047694bae43b10b61aeb26aef51ec1cb8c246c1 + src/Models/Operations/Tags.php: + id: 6e574ce3cc26 + last_write_checksum: sha1:bef0af71818413a5c8db2bdff7345716f80e6cba + pristine_git_object: 03795390b2871d82993631fc8ee06d0c28eb0356 src/Models/Operations/TestVariants.php: id: ef54ef084e9c last_write_checksum: sha1:e5d14e31a322b310a302ec9920f518c3c48b6f30 @@ -3888,8 +3944,8 @@ trackedFiles: pristine_git_object: d2c1c9f5745323891603813609ccde0b6e0c5a2c src/Models/Operations/Type.php: id: 1dd039f481cd - last_write_checksum: sha1:8c016ba8409ba30890091a24e2d2012d72b4f7a7 - pristine_git_object: 165d28f4a9fedf485d3dbf31f3206beaa1403270 + last_write_checksum: sha1:03782b5a4b9c225264a4e4c0af4c820c7f2281f3 + pristine_git_object: 3ee66fbd9cdbc50432f2e13b63aad8fdca662bea src/Models/Operations/UpdateCommissionCustomer.php: id: 314b22d3d020 last_write_checksum: sha1:494b89261302be2e99046b2d912dee8be976c9d6 @@ -3920,8 +3976,8 @@ trackedFiles: pristine_git_object: 287d9b1a0c9dfd90dd0ce726416c93af6dfa2b95 src/Models/Operations/UpdateCommissionType.php: id: c5ed72d1b5a0 - last_write_checksum: sha1:bf19eb4be346434973c00cf4825b5ed03310da66 - pristine_git_object: b9b24d2948c31d8151b4028d377fc304e4b2d7d1 + last_write_checksum: sha1:9f3a23976dfcdf815238f7dc3f8156398e981fde + pristine_git_object: 7176b7de27cb75fe091e48dec68f9d3ad946d225 src/Models/Operations/UpdateCustomerDiscount.php: id: bfb770a63b68 last_write_checksum: sha1:2a14f5633125c638a97b52c9acdf41077ad40251 @@ -4048,12 +4104,12 @@ trackedFiles: pristine_git_object: eb474f937d8651bb4306b716c60fe6ef3ff342d3 src/PartnerApplications.php: id: 4e472aa6190d - last_write_checksum: sha1:4051821bc11df72da50e36dd9f21b1aafb0799e1 - pristine_git_object: 78e709d943455e5c24089eee2b0d5063b3e96246 + last_write_checksum: sha1:d1b05ef1d197a0414b7ad7761ebf8b416f98199d + pristine_git_object: bd99f393ac11d63fc8bd7325bf9182ca62d55bab src/Partners.php: id: af0fe0411022 - last_write_checksum: sha1:c19d993f12e278b6ba8afb87742be309090b9372 - pristine_git_object: c3929d811ea23ee4ccbf9b882398372670c1e3f6 + last_write_checksum: sha1:b6e99bcf5984c4af0f12a8ad50505a0758865863 + pristine_git_object: a0ae015a430aead9d8a5a5e9c93010d7600b2614 src/Payouts.php: id: f9c31976b5a0 last_write_checksum: sha1:181aadd34444c87d2cdffb983e6cdbbeff16cae3 @@ -4064,8 +4120,8 @@ trackedFiles: pristine_git_object: dd4f70b7212bebd94f22ce422bd25ea31b1fe9ec src/SDKConfiguration.php: id: 9d60ab0bec0b - last_write_checksum: sha1:b81cdf44e6e2c6194f6d0ba9fa77d0f44c8efb1b - pristine_git_object: e9399c46dcefdffb81c49d120153b6725b3cca12 + last_write_checksum: sha1:27d5a3d16628c6f63fe13a8152f03d018d7ebbb0 + pristine_git_object: f0c413d7612b614c667849b659df797bf466596a src/Tags.php: id: 946b9974d4d1 last_write_checksum: sha1:905c35ccca16baf435fedd69558083ffaba18f13 @@ -5062,7 +5118,7 @@ examples: application/json: {"email": "Summer50@yahoo.com", "linkProps": {"externalId": "123456", "tagIds": ["clux0rgak00011..."], "testVariants": [{"url": "https://example.com/variant-1", "percentage": 50}, {"url": "https://example.com/variant-2", "percentage": 50}]}} responses: "201": - application/json: {"id": "", "name": "", "companyName": "Schowalter, Hauck and Bradtke", "email": "Jan9@yahoo.com", "image": "https://loremflickr.com/2599/3934?lock=3607054824535492", "country": "Equatorial Guinea", "defaultPayoutMethod": "paypal", "paypalEmail": "", "stripeConnectId": "", "payoutsEnabledAt": "", "trustedAt": "", "identityVerifiedAt": "", "programId": "", "partnerId": "", "tenantId": "", "createdAt": "1736363424924", "status": "banned", "links": [], "totalCommissions": 0, "totalClicks": 0, "totalLeads": 0, "totalConversions": 0, "totalSales": 0, "totalSaleAmount": 0, "netRevenue": 0} + application/json: {"id": "", "name": "", "username": "Summer50", "email": "Jan9@yahoo.com", "image": "https://loremflickr.com/2599/3934?lock=3607054824535492", "country": "Equatorial Guinea", "companyName": "Schowalter, Hauck and Bradtke", "networkStatus": "approved", "defaultPayoutMethod": "paypal", "paypalEmail": "", "stripeConnectId": "", "payoutsEnabledAt": "", "identityVerifiedAt": "", "programId": "", "partnerId": "", "tenantId": "", "createdAt": "1736363424924", "status": "banned", "links": [], "totalCommissions": 0, "totalClicks": 0, "totalLeads": 0, "totalConversions": 0, "totalSales": 0, "totalSaleAmount": 0, "netRevenue": 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": @@ -5445,7 +5501,7 @@ examples: groupId: "grp_123" responses: "200": - application/json: [{"id": "", "name": "", "companyName": "Pacocha, McClure and Kuvalis", "email": "Korey.Corkery26@hotmail.com", "image": "https://picsum.photos/seed/X7WjNI/969/1620", "country": "Paraguay", "defaultPayoutMethod": "paypal", "paypalEmail": "", "stripeConnectId": "", "payoutsEnabledAt": "", "trustedAt": "", "identityVerifiedAt": "", "programId": "", "partnerId": "", "tenantId": "", "createdAt": "1715609832325", "status": "rejected", "links": [{"id": "", "domain": "perky-tributary.biz", "key": "", "shortLink": "https://neighboring-draft.biz/", "url": "https://unsightly-nectarine.biz/", "clicks": 0, "leads": 0, "conversions": 0, "sales": 0, "saleAmount": 0}], "totalCommissions": 0, "totalClicks": 0, "totalLeads": 0, "totalConversions": 0, "totalSales": 0, "totalSaleAmount": 0, "netRevenue": 0}] + application/json: [{"id": "", "name": "", "username": "Nikko_McClure14", "email": "Korey.Corkery26@hotmail.com", "image": "https://picsum.photos/seed/X7WjNI/969/1620", "country": "Paraguay", "companyName": "Pacocha, McClure and Kuvalis", "networkStatus": "submitted", "defaultPayoutMethod": "paypal", "paypalEmail": "", "stripeConnectId": "", "payoutsEnabledAt": "", "identityVerifiedAt": "", "programId": "", "partnerId": "", "tenantId": "", "createdAt": "1715609832325", "status": "rejected", "links": [{"id": "", "domain": "perky-tributary.biz", "key": "", "shortLink": "https://neighboring-draft.biz/", "url": "https://unsightly-nectarine.biz/", "clicks": 0, "leads": 0, "conversions": 0, "sales": 0, "saleAmount": 0}], "totalCommissions": 0, "totalClicks": 0, "totalLeads": 0, "totalConversions": 0, "totalSales": 0, "totalSaleAmount": 0, "netRevenue": 0, "trustedAt": ""}] "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": @@ -5726,16 +5782,82 @@ 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": "", "reapplicationTimeframe": "standard"} + 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: | - ## Php SDK Changes: - * `dub->partner applications->list()`: **Added** - * `dub->partner applications->approve()`: **Added** - * `dub->partner applications->reject()`: **Added** - * `dub->events->list()`: `response.[]->union(SaleEvent)->sale->currency` **Added** - * `dub->partners->list()`: `response.[]->identityVerifiedAt` **Added** - * `dub->partners->create()`: `response.identityVerifiedAt` **Added** +releaseNotes: "## Php SDK Changes:\n* `dub->events->list()`: \n * `request->partnerTagId` **Added**\n * `response.[]->union(SaleEvent)->sale->paymentProcessor` **Changed** (Breaking ⚠️)\n* `dub->partner applications->reject()`: `request` **Changed** (Breaking ⚠️)\n* `dub->commissions->list()`: \n * `request` **Changed**\n * `response.[]->type->enum(referral)` **Added** (Breaking ⚠️)\n* `dub->commissions->update()`: `response.type->enum(referral)` **Added** (Breaking ⚠️)\n* `dub->analytics->retrieve()`: `request` **Changed**\n* `dub->folders->update()`: \n * `requestBody->accessLevel` **Changed**\n* `dub->track->sale()`: \n * `request->paymentProcessor` **Changed**\n* `dub->partners->list()`: `response.[]` **Changed**\n* `dub->partners->create()`: `response` **Changed**\n" generatedFiles: - .gitattributes - USAGE.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 07d5f948..60c2096e 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -29,7 +29,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false php: - version: 0.15.9 + version: 0.15.10 additionalDependencies: autoload: {} autoload-dev: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index ca057d3a..1bc8ff6a 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.761.9 +speakeasyVersion: 1.768.2 sources: dub: sourceNamespace: dub - sourceRevisionDigest: sha256:0ec08cbcd2e443170af2f65a87a730ea85fee80c53b2ccc0e6e685c134b814e0 - sourceBlobDigest: sha256:c95e6e9feaed9d2cc7d68eab9855dd6ee3ba77615f44e0538cd4a0f19080ab67 + sourceRevisionDigest: sha256:f26660df6a64ad829f161b5e811325032cd839c602c6f6a5d5455f3ac07fdeb5 + sourceBlobDigest: sha256:6e0f87a909254e47118f2813b93738d032e0022c9b59700006504b36a0be2a76 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:f26660df6a64ad829f161b5e811325032cd839c602c6f6a5d5455f3ac07fdeb5 + sourceBlobDigest: sha256:6e0f87a909254e47118f2813b93738d032e0022c9b59700006504b36a0be2a76 codeSamplesNamespace: code-samples-php-my-first-target - codeSamplesRevisionDigest: sha256:5f5c2d3d005c8ebecb48c78ffc8e23364717427a1f9166f39555efe4fecba097 + codeSamplesRevisionDigest: sha256:f82b0a96167f6788cc06ca75af95414dd37cba396585afb89230e36bdf9e3792 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index 952c412c..3d69686f 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1350,4 +1350,14 @@ Based on: ### Generated - [php v0.15.9] . ### Releases -- [Composer v0.15.9] https://packagist.org/packages/dub/dub-php#v0.15.9 - . \ No newline at end of file +- [Composer v0.15.9] https://packagist.org/packages/dub/dub-php#v0.15.9 - . + +## 2026-06-01 00:58:45 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.768.2 (2.889.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [php v0.15.10] . +### Releases +- [Composer v0.15.10] https://packagist.org/packages/dub/dub-php#v0.15.10 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index aae793f5..5a68ae5a 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -223,14 +223,14 @@ actions: update: "x-codeSamples": - "lang": "php" - "label": "approvePartner" - "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Operations;\n\n$sdk = Dub\\Dub::builder()\n ->setSecurity(\n 'DUB_API_KEY'\n )\n ->build();\n\n$request = new Operations\\ApprovePartnerRequestBody(\n partnerId: '',\n);\n\n$response = $sdk->partnerApplications->approve(\n request: $request\n);\n\nif ($response->object !== null) {\n // handle response\n}" + "label": "approvePartnerApplication" + "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Operations;\n\n$sdk = Dub\\Dub::builder()\n ->setSecurity(\n 'DUB_API_KEY'\n )\n ->build();\n\n$request = new Operations\\ApprovePartnerApplicationRequestBody(\n partnerId: '',\n);\n\n$response = $sdk->partnerApplications->approve(\n request: $request\n);\n\nif ($response->object !== null) {\n // handle response\n}" - target: $["paths"]["/partners/applications/reject"]["post"] update: "x-codeSamples": - "lang": "php" - "label": "rejectPartner" - "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Operations;\n\n$sdk = Dub\\Dub::builder()\n ->setSecurity(\n 'DUB_API_KEY'\n )\n ->build();\n\n$request = new Operations\\RejectPartnerRequestBody(\n partnerId: '',\n);\n\n$response = $sdk->partnerApplications->reject(\n request: $request\n);\n\nif ($response->object !== null) {\n // handle response\n}" + "label": "rejectPartnerApplication" + "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Operations;\n\n$sdk = Dub\\Dub::builder()\n ->setSecurity(\n 'DUB_API_KEY'\n )\n ->build();\n\n$request = new Operations\\RejectPartnerApplicationRequestBody(\n partnerId: '',\n);\n\n$response = $sdk->partnerApplications->reject(\n request: $request\n);\n\nif ($response->object !== null) {\n // handle response\n}" - target: $["paths"]["/partners/ban"]["post"] update: "x-codeSamples": @@ -247,7 +247,7 @@ actions: update: "x-codeSamples": - "lang": "php" - "label": "retrieveLinks" + "label": "retrievePartnerLinks" "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\n\n$sdk = Dub\\Dub::builder()\n ->setSecurity(\n 'DUB_API_KEY'\n )\n ->build();\n\n\n\n$response = $sdk->partners->retrieveLinks(\n\n);\n\nif ($response->responseBodies !== null) {\n // handle response\n}" - target: $["paths"]["/partners/links"]["post"] update: diff --git a/docs/Models/Components/CommissionCreatedEventType.md b/docs/Models/Components/CommissionCreatedEventType.md index e8c4467a..a250f5fa 100644 --- a/docs/Models/Components/CommissionCreatedEventType.md +++ b/docs/Models/Components/CommissionCreatedEventType.md @@ -3,9 +3,10 @@ ## Values -| Name | Value | -| -------- | -------- | -| `Click` | click | -| `Lead` | lead | -| `Sale` | sale | -| `Custom` | custom | \ No newline at end of file +| Name | Value | +| ---------- | ---------- | +| `Click` | click | +| `Lead` | lead | +| `Sale` | sale | +| `Referral` | referral | +| `Custom` | custom | \ No newline at end of file diff --git a/docs/Models/Components/NetworkStatus.md b/docs/Models/Components/NetworkStatus.md new file mode 100644 index 00000000..e358be56 --- /dev/null +++ b/docs/Models/Components/NetworkStatus.md @@ -0,0 +1,14 @@ +# NetworkStatus + +The partner's network status on Dub. + + +## Values + +| Name | Value | +| ----------- | ----------- | +| `Draft` | draft | +| `Submitted` | submitted | +| `Approved` | approved | +| `Rejected` | rejected | +| `Trusted` | trusted | \ No newline at end of file diff --git a/docs/Models/Components/PartnerEnrolledEventData.md b/docs/Models/Components/PartnerEnrolledEventData.md index 10a6b3a3..20f356b3 100644 --- a/docs/Models/Components/PartnerEnrolledEventData.md +++ b/docs/Models/Components/PartnerEnrolledEventData.md @@ -7,16 +7,17 @@ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *string* | :heavy_check_mark: | The partner's unique ID on Dub. | | `name` | *string* | :heavy_check_mark: | The partner's full legal name. | -| `companyName` | *string* | :heavy_check_mark: | If the partner profile type is a company, this is the partner's legal company name. | +| `username` | *string* | :heavy_check_mark: | The partner's unique username on Dub. | | `email` | *string* | :heavy_check_mark: | The partner's email address. Should be a unique value across Dub. | | `image` | *string* | :heavy_check_mark: | The partner's avatar image. | | `description` | *?string* | :heavy_minus_sign: | A brief description of the partner and their background. | | `country` | *string* | :heavy_check_mark: | The partner's country (required for tax purposes). | +| `companyName` | *string* | :heavy_check_mark: | If the partner profile type is a company, this is the partner's legal company name. | +| `networkStatus` | [Components\NetworkStatus](../../Models/Components/NetworkStatus.md) | :heavy_check_mark: | The partner's network status on Dub. | | `defaultPayoutMethod` | [Components\DefaultPayoutMethod](../../Models/Components/DefaultPayoutMethod.md) | :heavy_check_mark: | The partner's default payout method. Connect: Bank account payouts via Stripe Connect; Stablecoin: USDC payouts directly to a crypto wallet; PayPal: Payouts via PayPal | | `paypalEmail` | *string* | :heavy_check_mark: | The partner's PayPal email (for receiving payouts via PayPal). | | `stripeConnectId` | *string* | :heavy_check_mark: | The partner's Stripe Connect ID (for receiving payouts via Stripe). | | `payoutsEnabledAt` | *string* | :heavy_check_mark: | The date when the partner enabled payouts. | -| `trustedAt` | *string* | :heavy_check_mark: | The date when the partner received the trusted badge in the partner network. | | `identityVerifiedAt` | *string* | :heavy_check_mark: | The date when the partner's identity was verified. | | `programId` | *string* | :heavy_check_mark: | The program's unique ID on Dub. | | `groupId` | *?string* | :heavy_minus_sign: | The partner's group ID on Dub. | @@ -29,12 +30,14 @@ | `clickRewardId` | *?string* | :heavy_minus_sign: | N/A | | `leadRewardId` | *?string* | :heavy_minus_sign: | N/A | | `saleRewardId` | *?string* | :heavy_minus_sign: | N/A | +| `referralRewardId` | *?string* | :heavy_minus_sign: | N/A | | `discountId` | *?string* | :heavy_minus_sign: | N/A | | `applicationId` | *?string* | :heavy_minus_sign: | If the partner submitted an application to join the program, this is the ID of the application. | | `bannedAt` | *?string* | :heavy_minus_sign: | If the partner was banned from the program, this is the date of the ban. | | `bannedReason` | [?Components\BannedReason](../../Models/Components/BannedReason.md) | :heavy_minus_sign: | If the partner was banned from the program, this is the reason for the ban. | | `referralFormData` | [?Components\ReferralFormData](../../Models/Components/ReferralFormData.md) | :heavy_minus_sign: | N/A | | `application` | [?Components\Application](../../Models/Components/Application.md) | :heavy_minus_sign: | Linked program application, including review outcome when applicable. | +| `tags` | array<[Components\Tags](../../Models/Components/Tags.md)> | :heavy_minus_sign: | The tags associated with the partner. | | `totalClicks` | *?float* | :heavy_minus_sign: | The total number of clicks on the partner's links | | `totalLeads` | *?float* | :heavy_minus_sign: | The total number of leads generated by the partner's links | | `totalConversions` | *?float* | :heavy_minus_sign: | The total number of leads that converted to paying customers | @@ -52,4 +55,5 @@ | `twitter` | *?string* | :heavy_minus_sign: | The partner's Twitter username (e.g. `johndoe`). | | `linkedin` | *?string* | :heavy_minus_sign: | The partner's LinkedIn username (e.g. `johndoe`). | | `instagram` | *?string* | :heavy_minus_sign: | The partner's Instagram username (e.g. `johndoe`). | -| `tiktok` | *?string* | :heavy_minus_sign: | The partner's TikTok username (e.g. `johndoe`). | \ No newline at end of file +| `tiktok` | *?string* | :heavy_minus_sign: | The partner's TikTok username (e.g. `johndoe`). | +| ~~`trustedAt`~~ | *?string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

DEPRECATED: Use `networkStatus` instead. | \ No newline at end of file diff --git a/docs/Models/Components/Tags.md b/docs/Models/Components/Tags.md new file mode 100644 index 00000000..abe39642 --- /dev/null +++ b/docs/Models/Components/Tags.md @@ -0,0 +1,9 @@ +# Tags + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `id` | *string* | :heavy_check_mark: | N/A | +| `name` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file 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 55f4cb01..5d980450 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/ApprovePartnerApplicationResponse.md b/docs/Models/Operations/ApprovePartnerApplicationResponse.md new file mode 100644 index 00000000..bd0ef0af --- /dev/null +++ b/docs/Models/Operations/ApprovePartnerApplicationResponse.md @@ -0,0 +1,11 @@ +# ApprovePartnerApplicationResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\ApprovePartnerApplicationResponseBody](../../Models/Operations/ApprovePartnerApplicationResponseBody.md) | :heavy_minus_sign: | The approved partner | \ No newline at end of file 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 ec614ca2..c6435f01 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/ApprovePartnerResponse.md b/docs/Models/Operations/ApprovePartnerResponse.md deleted file mode 100644 index 294305a6..00000000 --- a/docs/Models/Operations/ApprovePartnerResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApprovePartnerResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [?Operations\ApprovePartnerResponseBody](../../Models/Operations/ApprovePartnerResponseBody.md) | :heavy_minus_sign: | The approved partner | \ No newline at end of file diff --git a/docs/Models/Operations/CreatePartnerNetworkStatus.md b/docs/Models/Operations/CreatePartnerNetworkStatus.md new file mode 100644 index 00000000..4f7e9a09 --- /dev/null +++ b/docs/Models/Operations/CreatePartnerNetworkStatus.md @@ -0,0 +1,14 @@ +# CreatePartnerNetworkStatus + +The partner's network status on Dub. + + +## Values + +| Name | Value | +| ----------- | ----------- | +| `Draft` | draft | +| `Submitted` | submitted | +| `Approved` | approved | +| `Rejected` | rejected | +| `Trusted` | trusted | \ No newline at end of file diff --git a/docs/Models/Operations/CreatePartnerResponseBody.md b/docs/Models/Operations/CreatePartnerResponseBody.md index 11ff60e4..6cdf3f87 100644 --- a/docs/Models/Operations/CreatePartnerResponseBody.md +++ b/docs/Models/Operations/CreatePartnerResponseBody.md @@ -9,16 +9,17 @@ The created or updated partner | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *string* | :heavy_check_mark: | The partner's unique ID on Dub. | | `name` | *string* | :heavy_check_mark: | The partner's full legal name. | -| `companyName` | *string* | :heavy_check_mark: | If the partner profile type is a company, this is the partner's legal company name. | +| `username` | *string* | :heavy_check_mark: | The partner's unique username on Dub. | | `email` | *string* | :heavy_check_mark: | The partner's email address. Should be a unique value across Dub. | | `image` | *string* | :heavy_check_mark: | The partner's avatar image. | | `description` | *?string* | :heavy_minus_sign: | A brief description of the partner and their background. | | `country` | *string* | :heavy_check_mark: | The partner's country (required for tax purposes). | +| `companyName` | *string* | :heavy_check_mark: | If the partner profile type is a company, this is the partner's legal company name. | +| `networkStatus` | [Operations\CreatePartnerNetworkStatus](../../Models/Operations/CreatePartnerNetworkStatus.md) | :heavy_check_mark: | The partner's network status on Dub. | | `defaultPayoutMethod` | [Operations\CreatePartnerDefaultPayoutMethod](../../Models/Operations/CreatePartnerDefaultPayoutMethod.md) | :heavy_check_mark: | The partner's default payout method. Connect: Bank account payouts via Stripe Connect; Stablecoin: USDC payouts directly to a crypto wallet; PayPal: Payouts via PayPal | | `paypalEmail` | *string* | :heavy_check_mark: | The partner's PayPal email (for receiving payouts via PayPal). | | `stripeConnectId` | *string* | :heavy_check_mark: | The partner's Stripe Connect ID (for receiving payouts via Stripe). | | `payoutsEnabledAt` | *string* | :heavy_check_mark: | The date when the partner enabled payouts. | -| `trustedAt` | *string* | :heavy_check_mark: | The date when the partner received the trusted badge in the partner network. | | `identityVerifiedAt` | *string* | :heavy_check_mark: | The date when the partner's identity was verified. | | `programId` | *string* | :heavy_check_mark: | The program's unique ID on Dub. | | `groupId` | *?string* | :heavy_minus_sign: | The partner's group ID on Dub. | @@ -31,12 +32,14 @@ The created or updated partner | `clickRewardId` | *?string* | :heavy_minus_sign: | N/A | | `leadRewardId` | *?string* | :heavy_minus_sign: | N/A | | `saleRewardId` | *?string* | :heavy_minus_sign: | N/A | +| `referralRewardId` | *?string* | :heavy_minus_sign: | N/A | | `discountId` | *?string* | :heavy_minus_sign: | N/A | | `applicationId` | *?string* | :heavy_minus_sign: | If the partner submitted an application to join the program, this is the ID of the application. | | `bannedAt` | *?string* | :heavy_minus_sign: | If the partner was banned from the program, this is the date of the ban. | | `bannedReason` | [?Operations\CreatePartnerBannedReason](../../Models/Operations/CreatePartnerBannedReason.md) | :heavy_minus_sign: | If the partner was banned from the program, this is the reason for the ban. | | `referralFormData` | [?Operations\CreatePartnerReferralFormData](../../Models/Operations/CreatePartnerReferralFormData.md) | :heavy_minus_sign: | N/A | | `application` | [?Operations\CreatePartnerApplication](../../Models/Operations/CreatePartnerApplication.md) | :heavy_minus_sign: | Linked program application, including review outcome when applicable. | +| `tags` | array<[Operations\CreatePartnerTags](../../Models/Operations/CreatePartnerTags.md)> | :heavy_minus_sign: | The tags associated with the partner. | | `totalClicks` | *?float* | :heavy_minus_sign: | The total number of clicks on the partner's links | | `totalLeads` | *?float* | :heavy_minus_sign: | The total number of leads generated by the partner's links | | `totalConversions` | *?float* | :heavy_minus_sign: | The total number of leads that converted to paying customers | @@ -54,4 +57,5 @@ The created or updated partner | `twitter` | *?string* | :heavy_minus_sign: | The partner's Twitter username (e.g. `johndoe`). | | `linkedin` | *?string* | :heavy_minus_sign: | The partner's LinkedIn username (e.g. `johndoe`). | | `instagram` | *?string* | :heavy_minus_sign: | The partner's Instagram username (e.g. `johndoe`). | -| `tiktok` | *?string* | :heavy_minus_sign: | The partner's TikTok username (e.g. `johndoe`). | \ No newline at end of file +| `tiktok` | *?string* | :heavy_minus_sign: | The partner's TikTok username (e.g. `johndoe`). | +| ~~`trustedAt`~~ | *?string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

DEPRECATED: Use `networkStatus` instead. | \ No newline at end of file diff --git a/docs/Models/Operations/CreatePartnerTags.md b/docs/Models/Operations/CreatePartnerTags.md new file mode 100644 index 00000000..45b5cd97 --- /dev/null +++ b/docs/Models/Operations/CreatePartnerTags.md @@ -0,0 +1,9 @@ +# CreatePartnerTags + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `id` | *string* | :heavy_check_mark: | N/A | +| `name` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/ListCommissionsRequest.md b/docs/Models/Operations/ListCommissionsRequest.md index b637d9f2..ad110888 100644 --- a/docs/Models/Operations/ListCommissionsRequest.md +++ b/docs/Models/Operations/ListCommissionsRequest.md @@ -3,23 +3,24 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `type` | [?Operations\Type](../../Models/Operations/Type.md) | :heavy_minus_sign: | N/A | | -| `customerId` | *?string* | :heavy_minus_sign: | Filter the list of commissions by the associated customer. | | -| `payoutId` | *?string* | :heavy_minus_sign: | Filter the list of commissions by the associated payout. | | -| `partnerId` | *?string* | :heavy_minus_sign: | Filter the list of commissions by the associated partner. When specified, takes precedence over `tenantId`. | | -| `tenantId` | *?string* | :heavy_minus_sign: | Filter the list of commissions by the associated partner's `tenantId` (their unique ID within your database). | | -| `groupId` | *?string* | :heavy_minus_sign: | Filter the list of commissions by the associated partner group. | | -| `invoiceId` | *?string* | :heavy_minus_sign: | Filter the list of commissions by the associated invoice. Since invoiceId is unique on a per-program basis, this will only return one commission per invoice. | | -| `status` | [?Operations\QueryParamStatus](../../Models/Operations/QueryParamStatus.md) | :heavy_minus_sign: | Filter the list of commissions by their corresponding status. | | -| `sortBy` | [?Operations\ListCommissionsQueryParamSortBy](../../Models/Operations/ListCommissionsQueryParamSortBy.md) | :heavy_minus_sign: | The field to sort the list of commissions by. | | -| `sortOrder` | [?Operations\ListCommissionsQueryParamSortOrder](../../Models/Operations/ListCommissionsQueryParamSortOrder.md) | :heavy_minus_sign: | The sort order for the list of commissions. | | -| `interval` | [?Operations\ListCommissionsQueryParamInterval](../../Models/Operations/ListCommissionsQueryParamInterval.md) | :heavy_minus_sign: | The interval to retrieve commissions for. | | -| `start` | *?string* | :heavy_minus_sign: | The start date of the date range to filter the commissions by. | | -| `end` | *?string* | :heavy_minus_sign: | The end date of the date range to filter the commissions by. | | -| `timezone` | *?string* | :heavy_minus_sign: | N/A | | -| `endingBefore` | *?string* | :heavy_minus_sign: | If specified, the query only searches for results before this cursor. Mutually exclusive with `startingAfter`. | cm_1KAP4CGN2Z5TPYYQ1W4JEYD56 | -| `startingAfter` | *?string* | :heavy_minus_sign: | If specified, the query only searches for results after this cursor. Mutually exclusive with `endingBefore`. | cm_1KAP4CGN2Z5TPYYQ1W4JEYD56 | -| `page` | *?float* | :heavy_minus_sign: | DEPRECATED. Use `startingAfter` instead. | 1 | -| `pageSize` | *?float* | :heavy_minus_sign: | The number of items per page. | 50 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `type` | [?Operations\Type](../../Models/Operations/Type.md) | :heavy_minus_sign: | Filter the list of commissions by type. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `sale`, `sale,lead`, `-click`. | | +| `customerId` | *?string* | :heavy_minus_sign: | Filter the list of commissions by the associated customer. | | +| `payoutId` | *?string* | :heavy_minus_sign: | Filter the list of commissions by the associated payout. | | +| `partnerId` | *?string* | :heavy_minus_sign: | Filter the list of commissions by the associated partner. When specified, takes precedence over `tenantId`. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `partner_abc`, `partner_abc,partner_xyz`, `-partner_abc`. | | +| `tenantId` | *?string* | :heavy_minus_sign: | Filter the list of commissions by the associated partner's `tenantId` (their unique ID within your database). | | +| `groupId` | *?string* | :heavy_minus_sign: | Filter the list of commissions by the associated partner group. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `group_abc`, `group_abc,group_xyz`, `-group_abc`. | | +| `partnerTagId` | *?string* | :heavy_minus_sign: | Filter the list of commissions by the associated partner tag. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `ptag_abc`, `ptag_abc,ptag_xyz`, `-ptag_abc`. | | +| `invoiceId` | *?string* | :heavy_minus_sign: | Filter the list of commissions by the associated invoice. Since invoiceId is unique on a per-program basis, this will only return one commission per invoice. | | +| `status` | [?Operations\QueryParamStatus](../../Models/Operations/QueryParamStatus.md) | :heavy_minus_sign: | Filter the list of commissions by their corresponding status. | | +| `sortBy` | [?Operations\ListCommissionsQueryParamSortBy](../../Models/Operations/ListCommissionsQueryParamSortBy.md) | :heavy_minus_sign: | The field to sort the list of commissions by. | | +| `sortOrder` | [?Operations\ListCommissionsQueryParamSortOrder](../../Models/Operations/ListCommissionsQueryParamSortOrder.md) | :heavy_minus_sign: | The sort order for the list of commissions. | | +| `interval` | [?Operations\ListCommissionsQueryParamInterval](../../Models/Operations/ListCommissionsQueryParamInterval.md) | :heavy_minus_sign: | The interval to retrieve commissions for. | | +| `start` | *?string* | :heavy_minus_sign: | The start date of the date range to filter the commissions by. | | +| `end` | *?string* | :heavy_minus_sign: | The end date of the date range to filter the commissions by. | | +| `timezone` | *?string* | :heavy_minus_sign: | N/A | | +| `endingBefore` | *?string* | :heavy_minus_sign: | If specified, the query only searches for results before this cursor. Mutually exclusive with `startingAfter`. | cm_1KAP4CGN2Z5TPYYQ1W4JEYD56 | +| `startingAfter` | *?string* | :heavy_minus_sign: | If specified, the query only searches for results after this cursor. Mutually exclusive with `endingBefore`. | cm_1KAP4CGN2Z5TPYYQ1W4JEYD56 | +| `page` | *?float* | :heavy_minus_sign: | DEPRECATED. Use `startingAfter` instead. | 1 | +| `pageSize` | *?float* | :heavy_minus_sign: | The number of items per page. | 50 | \ No newline at end of file diff --git a/docs/Models/Operations/ListCommissionsType.md b/docs/Models/Operations/ListCommissionsType.md index c4a25daf..fbec5715 100644 --- a/docs/Models/Operations/ListCommissionsType.md +++ b/docs/Models/Operations/ListCommissionsType.md @@ -3,9 +3,10 @@ ## Values -| Name | Value | -| -------- | -------- | -| `Click` | click | -| `Lead` | lead | -| `Sale` | sale | -| `Custom` | custom | \ No newline at end of file +| Name | Value | +| ---------- | ---------- | +| `Click` | click | +| `Lead` | lead | +| `Sale` | sale | +| `Referral` | referral | +| `Custom` | custom | \ No newline at end of file diff --git a/docs/Models/Operations/ListEventsRequest.md b/docs/Models/Operations/ListEventsRequest.md index c6ec2e26..2d1b09bc 100644 --- a/docs/Models/Operations/ListEventsRequest.md +++ b/docs/Models/Operations/ListEventsRequest.md @@ -13,6 +13,7 @@ | `tenantId` | *?string* | :heavy_minus_sign: | The ID of the tenant that created the link inside your system. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `tenant_123`, `tenant_123,tenant_456`, `-tenant_789`. | | | `tagId` | *?string* | :heavy_minus_sign: | The tag ID to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `tag_123`, `tag_123,tag_456`, `-tag_789`. | | | `folderId` | *?string* | :heavy_minus_sign: | The folder ID to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `folder_123`, `folder_123,folder_456`, `-folder_789`. If not provided, return analytics for all links. | | +| `partnerTagId` | *?string* | :heavy_minus_sign: | The partner tag ID(s) to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `ptag_123`, `ptag_123,ptag_456`, `-ptag_789`. | | | `groupId` | *?string* | :heavy_minus_sign: | The group ID to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `grp_123`, `grp_123,grp_456`, `-grp_789`. | | | `partnerId` | *?string* | :heavy_minus_sign: | The ID of the partner to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `pn_123`, `pn_123,pn_456`, `-pn_789`. | | | `customerId` | *?string* | :heavy_minus_sign: | The ID of the customer to retrieve analytics for. | | diff --git a/docs/Models/Operations/ListPartnersResponseBody.md b/docs/Models/Operations/ListPartnersResponseBody.md index f7425c79..3318e587 100644 --- a/docs/Models/Operations/ListPartnersResponseBody.md +++ b/docs/Models/Operations/ListPartnersResponseBody.md @@ -7,16 +7,17 @@ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *string* | :heavy_check_mark: | The partner's unique ID on Dub. | | `name` | *string* | :heavy_check_mark: | The partner's full legal name. | -| `companyName` | *string* | :heavy_check_mark: | If the partner profile type is a company, this is the partner's legal company name. | +| `username` | *string* | :heavy_check_mark: | The partner's unique username on Dub. | | `email` | *string* | :heavy_check_mark: | The partner's email address. Should be a unique value across Dub. | | `image` | *string* | :heavy_check_mark: | The partner's avatar image. | | `description` | *?string* | :heavy_minus_sign: | A brief description of the partner and their background. | | `country` | *string* | :heavy_check_mark: | The partner's country (required for tax purposes). | +| `companyName` | *string* | :heavy_check_mark: | If the partner profile type is a company, this is the partner's legal company name. | +| `networkStatus` | [Operations\NetworkStatus](../../Models/Operations/NetworkStatus.md) | :heavy_check_mark: | The partner's network status on Dub. | | `defaultPayoutMethod` | [Operations\DefaultPayoutMethod](../../Models/Operations/DefaultPayoutMethod.md) | :heavy_check_mark: | The partner's default payout method. Connect: Bank account payouts via Stripe Connect; Stablecoin: USDC payouts directly to a crypto wallet; PayPal: Payouts via PayPal | | `paypalEmail` | *string* | :heavy_check_mark: | The partner's PayPal email (for receiving payouts via PayPal). | | `stripeConnectId` | *string* | :heavy_check_mark: | The partner's Stripe Connect ID (for receiving payouts via Stripe). | | `payoutsEnabledAt` | *string* | :heavy_check_mark: | The date when the partner enabled payouts. | -| `trustedAt` | *string* | :heavy_check_mark: | The date when the partner received the trusted badge in the partner network. | | `identityVerifiedAt` | *string* | :heavy_check_mark: | The date when the partner's identity was verified. | | `programId` | *string* | :heavy_check_mark: | The program's unique ID on Dub. | | `groupId` | *?string* | :heavy_minus_sign: | The partner's group ID on Dub. | @@ -29,12 +30,14 @@ | `clickRewardId` | *?string* | :heavy_minus_sign: | N/A | | `leadRewardId` | *?string* | :heavy_minus_sign: | N/A | | `saleRewardId` | *?string* | :heavy_minus_sign: | N/A | +| `referralRewardId` | *?string* | :heavy_minus_sign: | N/A | | `discountId` | *?string* | :heavy_minus_sign: | N/A | | `applicationId` | *?string* | :heavy_minus_sign: | If the partner submitted an application to join the program, this is the ID of the application. | | `bannedAt` | *?string* | :heavy_minus_sign: | If the partner was banned from the program, this is the date of the ban. | | `bannedReason` | [?Operations\BannedReason](../../Models/Operations/BannedReason.md) | :heavy_minus_sign: | If the partner was banned from the program, this is the reason for the ban. | | `referralFormData` | [?Operations\ReferralFormData](../../Models/Operations/ReferralFormData.md) | :heavy_minus_sign: | N/A | | `application` | [?Operations\Application](../../Models/Operations/Application.md) | :heavy_minus_sign: | Linked program application, including review outcome when applicable. | +| `tags` | array<[Operations\Tags](../../Models/Operations/Tags.md)> | :heavy_minus_sign: | The tags associated with the partner. | | `totalClicks` | *?float* | :heavy_minus_sign: | The total number of clicks on the partner's links | | `totalLeads` | *?float* | :heavy_minus_sign: | The total number of leads generated by the partner's links | | `totalConversions` | *?float* | :heavy_minus_sign: | The total number of leads that converted to paying customers | @@ -52,4 +55,5 @@ | `twitter` | *?string* | :heavy_minus_sign: | The partner's Twitter username (e.g. `johndoe`). | | `linkedin` | *?string* | :heavy_minus_sign: | The partner's LinkedIn username (e.g. `johndoe`). | | `instagram` | *?string* | :heavy_minus_sign: | The partner's Instagram username (e.g. `johndoe`). | -| `tiktok` | *?string* | :heavy_minus_sign: | The partner's TikTok username (e.g. `johndoe`). | \ No newline at end of file +| `tiktok` | *?string* | :heavy_minus_sign: | The partner's TikTok username (e.g. `johndoe`). | +| ~~`trustedAt`~~ | *?string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

DEPRECATED: Use `networkStatus` instead. | \ No newline at end of file diff --git a/docs/Models/Operations/NetworkStatus.md b/docs/Models/Operations/NetworkStatus.md new file mode 100644 index 00000000..e358be56 --- /dev/null +++ b/docs/Models/Operations/NetworkStatus.md @@ -0,0 +1,14 @@ +# NetworkStatus + +The partner's network status on Dub. + + +## Values + +| Name | Value | +| ----------- | ----------- | +| `Draft` | draft | +| `Submitted` | submitted | +| `Approved` | approved | +| `Rejected` | rejected | +| `Trusted` | trusted | \ No newline at end of file diff --git a/docs/Models/Operations/PaymentProcessor.md b/docs/Models/Operations/PaymentProcessor.md index c3b72caf..e07ba4b0 100644 --- a/docs/Models/Operations/PaymentProcessor.md +++ b/docs/Models/Operations/PaymentProcessor.md @@ -11,5 +11,7 @@ The payment processor via which the sale was made. | `Shopify` | shopify | | `Polar` | polar | | `Paddle` | paddle | +| `Apple` | apple | | `Revenuecat` | revenuecat | +| `Dub` | dub | | `Custom` | custom | \ No newline at end of file diff --git a/docs/Models/Operations/QueryParamGroupBy.md b/docs/Models/Operations/QueryParamGroupBy.md index 041920e0..0c72ad5c 100644 --- a/docs/Models/Operations/QueryParamGroupBy.md +++ b/docs/Models/Operations/QueryParamGroupBy.md @@ -5,31 +5,32 @@ The parameter to group the analytics data points by. Defaults to `count` if unde ## Values -| Name | Value | -| -------------- | -------------- | -| `Count` | count | -| `Timeseries` | timeseries | -| `Continents` | continents | -| `Regions` | regions | -| `Countries` | countries | -| `Cities` | cities | -| `Devices` | devices | -| `Browsers` | browsers | -| `Os` | os | -| `Trigger` | trigger | -| `Triggers` | triggers | -| `Referers` | referers | -| `RefererUrls` | referer_urls | -| `TopFolders` | top_folders | -| `TopLinkTags` | top_link_tags | -| `TopDomains` | top_domains | -| `TopLinks` | top_links | -| `TopUrls` | top_urls | -| `TopBaseUrls` | top_base_urls | -| `TopPartners` | top_partners | -| `TopGroups` | top_groups | -| `UtmSources` | utm_sources | -| `UtmMediums` | utm_mediums | -| `UtmCampaigns` | utm_campaigns | -| `UtmTerms` | utm_terms | -| `UtmContents` | utm_contents | \ No newline at end of file +| Name | Value | +| ---------------- | ---------------- | +| `Count` | count | +| `Timeseries` | timeseries | +| `Continents` | continents | +| `Regions` | regions | +| `Countries` | countries | +| `Cities` | cities | +| `Devices` | devices | +| `Browsers` | browsers | +| `Os` | os | +| `Trigger` | trigger | +| `Triggers` | triggers | +| `Referers` | referers | +| `RefererUrls` | referer_urls | +| `TopFolders` | top_folders | +| `TopLinkTags` | top_link_tags | +| `TopDomains` | top_domains | +| `TopLinks` | top_links | +| `TopUrls` | top_urls | +| `TopBaseUrls` | top_base_urls | +| `TopPartners` | top_partners | +| `TopGroups` | top_groups | +| `TopPartnerTags` | top_partner_tags | +| `UtmSources` | utm_sources | +| `UtmMediums` | utm_mediums | +| `UtmCampaigns` | utm_campaigns | +| `UtmTerms` | utm_terms | +| `UtmContents` | utm_contents | \ No newline at end of file diff --git a/docs/Models/Operations/ReapplicationTimeframe.md b/docs/Models/Operations/ReapplicationTimeframe.md new file mode 100644 index 00000000..7260354a --- /dev/null +++ b/docs/Models/Operations/ReapplicationTimeframe.md @@ -0,0 +1,12 @@ +# ReapplicationTimeframe + +The mode for reapplying for the program. `instant`: The partner can reapply immediately. `standard`: The partner can reapply after 30 days. `never`: The partner can never reapply for the program. Defaults to `standard` if undefined. + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `Instant` | instant | +| `Standard` | standard | +| `Never` | never | \ No newline at end of file diff --git a/docs/Models/Operations/RejectPartnerApplicationRequestBody.md b/docs/Models/Operations/RejectPartnerApplicationRequestBody.md new file mode 100644 index 00000000..b8a79802 --- /dev/null +++ b/docs/Models/Operations/RejectPartnerApplicationRequestBody.md @@ -0,0 +1,13 @@ +# RejectPartnerApplicationRequestBody + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `partnerId` | *string* | :heavy_check_mark: | The ID of the partner to reject. | +| `rejectionReason` | [?Operations\RejectionReason](../../Models/Operations/RejectionReason.md) | :heavy_minus_sign: | The reason for rejecting the partner application. This will be shared with the partner via email. | +| `rejectionNote` | *?string* | :heavy_minus_sign: | Additional details about the rejection. This will be shared with the partner via email. | +| `reapplicationTimeframe` | [?Operations\ReapplicationTimeframe](../../Models/Operations/ReapplicationTimeframe.md) | :heavy_minus_sign: | The mode for reapplying for the program. `instant`: The partner can reapply immediately. `standard`: The partner can reapply after 30 days. `never`: The partner can never reapply for the program. Defaults to `standard` if undefined. | +| `flagForFraud` | *?bool* | :heavy_minus_sign: | Whether to flag the partner for fraud review by the Dub team. Cannot be combined with `reapplicationTimeframe: instant`. | +| `flagForFraudReason` | *?string* | :heavy_minus_sign: | The reason for flagging the partner for fraud. Required when flagForFraud is true. | \ No newline at end of file diff --git a/docs/Models/Operations/RejectPartnerApplicationResponse.md b/docs/Models/Operations/RejectPartnerApplicationResponse.md new file mode 100644 index 00000000..6542eb7a --- /dev/null +++ b/docs/Models/Operations/RejectPartnerApplicationResponse.md @@ -0,0 +1,11 @@ +# RejectPartnerApplicationResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `object` | [?Operations\RejectPartnerApplicationResponseBody](../../Models/Operations/RejectPartnerApplicationResponseBody.md) | :heavy_minus_sign: | The rejected partner | \ No newline at end of file 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 7b151670..65bf2ea5 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/RejectPartnerRequestBody.md b/docs/Models/Operations/RejectPartnerRequestBody.md deleted file mode 100644 index 5e4fb9f8..00000000 --- a/docs/Models/Operations/RejectPartnerRequestBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# RejectPartnerRequestBody - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `partnerId` | *string* | :heavy_check_mark: | The ID of the partner to reject. | -| `rejectionReason` | [?Operations\RejectionReason](../../Models/Operations/RejectionReason.md) | :heavy_minus_sign: | The reason for rejecting the partner application. This will be shared with the partner via email. | -| `rejectionNote` | *?string* | :heavy_minus_sign: | Additional details about the rejection. This will be shared with the partner via email. | -| `allowImmediateReapply` | *?bool* | :heavy_minus_sign: | When true, pending enrollment is removed so the partner can submit a new application immediately. | \ No newline at end of file diff --git a/docs/Models/Operations/RejectPartnerResponse.md b/docs/Models/Operations/RejectPartnerResponse.md deleted file mode 100644 index 6f3b6a6d..00000000 --- a/docs/Models/Operations/RejectPartnerResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# RejectPartnerResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [?Operations\RejectPartnerResponseBody](../../Models/Operations/RejectPartnerResponseBody.md) | :heavy_minus_sign: | The rejected partner | \ No newline at end of file diff --git a/docs/Models/Operations/ResponseBodyPaymentProcessor.md b/docs/Models/Operations/ResponseBodyPaymentProcessor.md index 4ca8e507..55328dab 100644 --- a/docs/Models/Operations/ResponseBodyPaymentProcessor.md +++ b/docs/Models/Operations/ResponseBodyPaymentProcessor.md @@ -11,5 +11,7 @@ The payment processor via which the sale was made. | `Shopify` | shopify | | `Polar` | polar | | `Paddle` | paddle | +| `Apple` | apple | | `Revenuecat` | revenuecat | +| `Dub` | dub | | `Custom` | custom | \ No newline at end of file diff --git a/docs/Models/Operations/RetrieveAnalyticsRequest.md b/docs/Models/Operations/RetrieveAnalyticsRequest.md index 941b8859..a73cd066 100644 --- a/docs/Models/Operations/RetrieveAnalyticsRequest.md +++ b/docs/Models/Operations/RetrieveAnalyticsRequest.md @@ -14,6 +14,7 @@ | `tenantId` | *?string* | :heavy_minus_sign: | The ID of the tenant that created the link inside your system. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `tenant_123`, `tenant_123,tenant_456`, `-tenant_789`. | | | `tagId` | *?string* | :heavy_minus_sign: | The tag ID to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `tag_123`, `tag_123,tag_456`, `-tag_789`. | | | `folderId` | *?string* | :heavy_minus_sign: | The folder ID to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `folder_123`, `folder_123,folder_456`, `-folder_789`. If not provided, return analytics for all links. | | +| `partnerTagId` | *?string* | :heavy_minus_sign: | The partner tag ID(s) to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `ptag_123`, `ptag_123,ptag_456`, `-ptag_789`. | | | `groupId` | *?string* | :heavy_minus_sign: | The group ID to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `grp_123`, `grp_123,grp_456`, `-grp_789`. | | | `partnerId` | *?string* | :heavy_minus_sign: | The ID of the partner to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `pn_123`, `pn_123,pn_456`, `-pn_789`. | | | `customerId` | *?string* | :heavy_minus_sign: | The ID of the customer to retrieve analytics for. | | diff --git a/docs/Models/Operations/RetrieveLinksResponse.md b/docs/Models/Operations/RetrieveLinksResponse.md deleted file mode 100644 index 6ba52489..00000000 --- a/docs/Models/Operations/RetrieveLinksResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# RetrieveLinksResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `responseBodies` | array<[Operations\RetrieveLinksResponseBody](../../Models/Operations/RetrieveLinksResponseBody.md)> | :heavy_minus_sign: | The retrieved partner links. | \ No newline at end of file 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 7b5321a7..4857e1a3 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/RetrievePartnerLinksResponse.md b/docs/Models/Operations/RetrievePartnerLinksResponse.md new file mode 100644 index 00000000..31900f09 --- /dev/null +++ b/docs/Models/Operations/RetrievePartnerLinksResponse.md @@ -0,0 +1,11 @@ +# RetrievePartnerLinksResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `responseBodies` | array<[Operations\RetrievePartnerLinksResponseBody](../../Models/Operations/RetrievePartnerLinksResponseBody.md)> | :heavy_minus_sign: | The retrieved partner links. | \ No newline at end of file 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 e5665213..b31cc717 100644 --- a/docs/Models/Operations/RetrieveLinksResponseBody.md +++ b/docs/Models/Operations/RetrievePartnerLinksResponseBody.md @@ -1,4 +1,4 @@ -# RetrieveLinksResponseBody +# RetrievePartnerLinksResponseBody ## Fields diff --git a/docs/Models/Operations/Tags.md b/docs/Models/Operations/Tags.md new file mode 100644 index 00000000..abe39642 --- /dev/null +++ b/docs/Models/Operations/Tags.md @@ -0,0 +1,9 @@ +# Tags + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `id` | *string* | :heavy_check_mark: | N/A | +| `name` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/Type.md b/docs/Models/Operations/Type.md index f68acb1d..7817f19f 100644 --- a/docs/Models/Operations/Type.md +++ b/docs/Models/Operations/Type.md @@ -1,11 +1,14 @@ # Type +Filter the list of commissions by type. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `sale`, `sale,lead`, `-click`. + ## Values -| Name | Value | -| -------- | -------- | -| `Click` | click | -| `Lead` | lead | -| `Sale` | sale | -| `Custom` | custom | \ No newline at end of file +| Name | Value | +| ---------- | ---------- | +| `Click` | click | +| `Lead` | lead | +| `Sale` | sale | +| `Referral` | referral | +| `Custom` | custom | \ No newline at end of file diff --git a/docs/Models/Operations/UpdateCommissionType.md b/docs/Models/Operations/UpdateCommissionType.md index b6810103..fbe79968 100644 --- a/docs/Models/Operations/UpdateCommissionType.md +++ b/docs/Models/Operations/UpdateCommissionType.md @@ -3,9 +3,10 @@ ## Values -| Name | Value | -| -------- | -------- | -| `Click` | click | -| `Lead` | lead | -| `Sale` | sale | -| `Custom` | custom | \ No newline at end of file +| Name | Value | +| ---------- | ---------- | +| `Click` | click | +| `Lead` | lead | +| `Sale` | sale | +| `Referral` | referral | +| `Custom` | custom | \ No newline at end of file diff --git a/docs/sdks/partnerapplications/README.md b/docs/sdks/partnerapplications/README.md index 0ec5f3b4..81b5ab04 100644 --- a/docs/sdks/partnerapplications/README.md +++ b/docs/sdks/partnerapplications/README.md @@ -77,7 +77,7 @@ Approve a pending partner application to your program. The partner will be enrol ### Example Usage - + ```php declare(strict_types=1); @@ -92,7 +92,7 @@ $sdk = Dub\Dub::builder() ) ->build(); -$request = new Operations\ApprovePartnerRequestBody( +$request = new Operations\ApprovePartnerApplicationRequestBody( partnerId: '', ); @@ -107,13 +107,13 @@ if ($response->object !== null) { ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `$request` | [Operations\ApprovePartnerRequestBody](../../Models/Operations/ApprovePartnerRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `$request` | [Operations\ApprovePartnerApplicationRequestBody](../../Models/Operations/ApprovePartnerApplicationRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[?Operations\ApprovePartnerResponse](../../Models/Operations/ApprovePartnerResponse.md)** +**[?Operations\ApprovePartnerApplicationResponse](../../Models/Operations/ApprovePartnerApplicationResponse.md)** ### Errors @@ -136,7 +136,7 @@ Reject a pending partner application to your program. The partner will be notifi ### Example Usage - + ```php declare(strict_types=1); @@ -151,7 +151,7 @@ $sdk = Dub\Dub::builder() ) ->build(); -$request = new Operations\RejectPartnerRequestBody( +$request = new Operations\RejectPartnerApplicationRequestBody( partnerId: '', ); @@ -166,13 +166,13 @@ if ($response->object !== null) { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `$request` | [Operations\RejectPartnerRequestBody](../../Models/Operations/RejectPartnerRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `$request` | [Operations\RejectPartnerApplicationRequestBody](../../Models/Operations/RejectPartnerApplicationRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[?Operations\RejectPartnerResponse](../../Models/Operations/RejectPartnerResponse.md)** +**[?Operations\RejectPartnerApplicationResponse](../../Models/Operations/RejectPartnerApplicationResponse.md)** ### Errors diff --git a/docs/sdks/partners/README.md b/docs/sdks/partners/README.md index 988cd257..4444f5c0 100644 --- a/docs/sdks/partners/README.md +++ b/docs/sdks/partners/README.md @@ -160,7 +160,7 @@ Retrieve a partner's links by their partner ID or tenant ID. ### Example Usage - + ```php declare(strict_types=1); @@ -194,7 +194,7 @@ if ($response->responseBodies !== null) { ### Response -**[?Operations\RetrieveLinksResponse](../../Models/Operations/RetrieveLinksResponse.md)** +**[?Operations\RetrievePartnerLinksResponse](../../Models/Operations/RetrievePartnerLinksResponse.md)** ### Errors diff --git a/src/Commissions.php b/src/Commissions.php index 80c7b5aa..334bd542 100644 --- a/src/Commissions.php +++ b/src/Commissions.php @@ -282,6 +282,7 @@ private function listIndividual(?Operations\ListCommissionsRequest $request = nu partnerId: $request != null ? $request->partnerId : null, tenantId: $request != null ? $request->tenantId : null, groupId: $request != null ? $request->groupId : null, + partnerTagId: $request != null ? $request->partnerTagId : null, invoiceId: $request != null ? $request->invoiceId : null, status: $request != null ? $request->status : null, sortBy: $request != null ? $request->sortBy : null, diff --git a/src/Models/Components/CommissionCreatedEventType.php b/src/Models/Components/CommissionCreatedEventType.php index 25a5c4ae..7246ea8c 100644 --- a/src/Models/Components/CommissionCreatedEventType.php +++ b/src/Models/Components/CommissionCreatedEventType.php @@ -14,5 +14,6 @@ enum CommissionCreatedEventType: string case Click = 'click'; case Lead = 'lead'; case Sale = 'sale'; + case Referral = 'referral'; case Custom = 'custom'; } diff --git a/src/Models/Components/NetworkStatus.php b/src/Models/Components/NetworkStatus.php new file mode 100644 index 00000000..cd012ce4 --- /dev/null +++ b/src/Models/Components/NetworkStatus.php @@ -0,0 +1,20 @@ +|null')] public ?array $links; + /** + * The tags associated with the partner. + * + * @var ?array<\Dub\Models\Components\Tags> $tags + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('tags')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Dub\Models\Components\Tags>|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?array $tags = null; + /** * A brief description of the partner and their background. * @@ -199,6 +218,14 @@ class PartnerEnrolledEventData #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $saleRewardId = null; + /** + * + * @var ?string $referralRewardId + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('referralRewardId')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?string $referralRewardId = null; + /** * * @var ?string $discountId @@ -362,6 +389,16 @@ class PartnerEnrolledEventData #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $tiktok = null; + /** + * DEPRECATED: Use `networkStatus` instead. + * + * @var ?string $trustedAt + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('trustedAt')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?string $trustedAt = null; + /** * The total commissions paid to the partner for their referrals * @@ -428,23 +465,25 @@ class PartnerEnrolledEventData /** * @param string $id * @param string $name + * @param \Dub\Models\Components\NetworkStatus $networkStatus * @param string $programId * @param string $partnerId * @param string $createdAt * @param \Dub\Models\Components\Status $status - * @param ?string $companyName + * @param ?string $username * @param ?string $email * @param ?string $image * @param ?string $country + * @param ?string $companyName * @param ?\Dub\Models\Components\DefaultPayoutMethod $defaultPayoutMethod * @param ?string $paypalEmail * @param ?string $stripeConnectId * @param ?string $payoutsEnabledAt - * @param ?string $trustedAt * @param ?string $identityVerifiedAt * @param ?string $tenantId * @param ?array<\Dub\Models\Components\Links> $links * @param ?float $totalCommissions + * @param ?array<\Dub\Models\Components\Tags> $tags * @param ?float $totalClicks * @param ?float $totalLeads * @param ?float $totalConversions @@ -456,6 +495,7 @@ class PartnerEnrolledEventData * @param ?string $clickRewardId * @param ?string $leadRewardId * @param ?string $saleRewardId + * @param ?string $referralRewardId * @param ?string $discountId * @param ?string $applicationId * @param ?string $bannedAt @@ -474,33 +514,37 @@ class PartnerEnrolledEventData * @param ?string $linkedin * @param ?string $instagram * @param ?string $tiktok + * @param ?string $trustedAt * @phpstan-pure */ - public function __construct(string $id, string $name, string $programId, string $partnerId, string $createdAt, Status $status, ?string $companyName = null, ?string $email = null, ?string $image = null, ?string $country = null, ?DefaultPayoutMethod $defaultPayoutMethod = null, ?string $paypalEmail = null, ?string $stripeConnectId = null, ?string $payoutsEnabledAt = null, ?string $trustedAt = null, ?string $identityVerifiedAt = null, ?string $tenantId = null, ?array $links = null, ?string $description = null, ?string $groupId = null, ?string $clickRewardId = null, ?string $leadRewardId = null, ?string $saleRewardId = null, ?string $discountId = null, ?string $applicationId = null, ?string $bannedAt = null, ?BannedReason $bannedReason = null, ?ReferralFormData $referralFormData = null, ?Application $application = null, ?float $earningsPerClick = null, ?float $averageLifetimeValue = null, ?float $clickToLeadRate = null, ?float $clickToConversionRate = null, ?float $leadToConversionRate = null, ?float $returnOnAdSpend = null, ?string $website = null, ?string $youtube = null, ?string $twitter = null, ?string $linkedin = null, ?string $instagram = null, ?string $tiktok = null, ?float $totalCommissions = 0, ?float $totalClicks = 0, ?float $totalLeads = 0, ?float $totalConversions = 0, ?float $totalSales = 0, ?float $totalSaleAmount = 0, ?float $netRevenue = 0) + public function __construct(string $id, string $name, NetworkStatus $networkStatus, string $programId, string $partnerId, string $createdAt, Status $status, ?string $username = null, ?string $email = null, ?string $image = null, ?string $country = null, ?string $companyName = null, ?DefaultPayoutMethod $defaultPayoutMethod = null, ?string $paypalEmail = null, ?string $stripeConnectId = null, ?string $payoutsEnabledAt = null, ?string $identityVerifiedAt = null, ?string $tenantId = null, ?array $links = null, ?array $tags = null, ?string $description = null, ?string $groupId = null, ?string $clickRewardId = null, ?string $leadRewardId = null, ?string $saleRewardId = null, ?string $referralRewardId = null, ?string $discountId = null, ?string $applicationId = null, ?string $bannedAt = null, ?BannedReason $bannedReason = null, ?ReferralFormData $referralFormData = null, ?Application $application = null, ?float $earningsPerClick = null, ?float $averageLifetimeValue = null, ?float $clickToLeadRate = null, ?float $clickToConversionRate = null, ?float $leadToConversionRate = null, ?float $returnOnAdSpend = null, ?string $website = null, ?string $youtube = null, ?string $twitter = null, ?string $linkedin = null, ?string $instagram = null, ?string $tiktok = null, ?string $trustedAt = null, ?float $totalCommissions = 0, ?float $totalClicks = 0, ?float $totalLeads = 0, ?float $totalConversions = 0, ?float $totalSales = 0, ?float $totalSaleAmount = 0, ?float $netRevenue = 0) { $this->id = $id; $this->name = $name; + $this->networkStatus = $networkStatus; $this->programId = $programId; $this->partnerId = $partnerId; $this->createdAt = $createdAt; $this->status = $status; - $this->companyName = $companyName; + $this->username = $username; $this->email = $email; $this->image = $image; $this->country = $country; + $this->companyName = $companyName; $this->defaultPayoutMethod = $defaultPayoutMethod; $this->paypalEmail = $paypalEmail; $this->stripeConnectId = $stripeConnectId; $this->payoutsEnabledAt = $payoutsEnabledAt; - $this->trustedAt = $trustedAt; $this->identityVerifiedAt = $identityVerifiedAt; $this->tenantId = $tenantId; $this->links = $links; + $this->tags = $tags; $this->description = $description; $this->groupId = $groupId; $this->clickRewardId = $clickRewardId; $this->leadRewardId = $leadRewardId; $this->saleRewardId = $saleRewardId; + $this->referralRewardId = $referralRewardId; $this->discountId = $discountId; $this->applicationId = $applicationId; $this->bannedAt = $bannedAt; @@ -519,6 +563,7 @@ public function __construct(string $id, string $name, string $programId, string $this->linkedin = $linkedin; $this->instagram = $instagram; $this->tiktok = $tiktok; + $this->trustedAt = $trustedAt; $this->totalCommissions = $totalCommissions; $this->totalClicks = $totalClicks; $this->totalLeads = $totalLeads; diff --git a/src/Models/Components/Tags.php b/src/Models/Components/Tags.php new file mode 100644 index 00000000..228f001c --- /dev/null +++ b/src/Models/Components/Tags.php @@ -0,0 +1,38 @@ +id = $id; + $this->name = $name; + } +} \ No newline at end of file diff --git a/src/Models/Operations/ApprovePartnerRequestBody.php b/src/Models/Operations/ApprovePartnerApplicationRequestBody.php similarity index 95% rename from src/Models/Operations/ApprovePartnerRequestBody.php rename to src/Models/Operations/ApprovePartnerApplicationRequestBody.php index 7735ff60..b296e513 100644 --- a/src/Models/Operations/ApprovePartnerRequestBody.php +++ b/src/Models/Operations/ApprovePartnerApplicationRequestBody.php @@ -9,7 +9,7 @@ namespace Dub\Models\Operations; -class ApprovePartnerRequestBody +class ApprovePartnerApplicationRequestBody { /** * The ID of the partner to approve. diff --git a/src/Models/Operations/ApprovePartnerResponse.php b/src/Models/Operations/ApprovePartnerApplicationResponse.php similarity index 78% rename from src/Models/Operations/ApprovePartnerResponse.php rename to src/Models/Operations/ApprovePartnerApplicationResponse.php index 927c2f17..1510142f 100644 --- a/src/Models/Operations/ApprovePartnerResponse.php +++ b/src/Models/Operations/ApprovePartnerApplicationResponse.php @@ -9,7 +9,7 @@ namespace Dub\Models\Operations; -class ApprovePartnerResponse +class ApprovePartnerApplicationResponse { /** * HTTP response content type for this operation @@ -35,18 +35,18 @@ class ApprovePartnerResponse /** * The approved partner * - * @var ?\Dub\Models\Operations\ApprovePartnerResponseBody $object + * @var ?\Dub\Models\Operations\ApprovePartnerApplicationResponseBody $object */ - public ?ApprovePartnerResponseBody $object = null; + public ?ApprovePartnerApplicationResponseBody $object = null; /** * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?\Dub\Models\Operations\ApprovePartnerResponseBody $object + * @param ?\Dub\Models\Operations\ApprovePartnerApplicationResponseBody $object * @phpstan-pure */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?ApprovePartnerResponseBody $object = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?ApprovePartnerApplicationResponseBody $object = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/ApprovePartnerResponseBody.php b/src/Models/Operations/ApprovePartnerApplicationResponseBody.php similarity index 82% rename from src/Models/Operations/ApprovePartnerResponseBody.php rename to src/Models/Operations/ApprovePartnerApplicationResponseBody.php index b383d912..6f0dfb00 100644 --- a/src/Models/Operations/ApprovePartnerResponseBody.php +++ b/src/Models/Operations/ApprovePartnerApplicationResponseBody.php @@ -9,8 +9,8 @@ namespace Dub\Models\Operations; -/** ApprovePartnerResponseBody - The approved partner */ -class ApprovePartnerResponseBody +/** ApprovePartnerApplicationResponseBody - The approved partner */ +class ApprovePartnerApplicationResponseBody { /** * The ID of the approved partner. diff --git a/src/Models/Operations/CreatePartnerNetworkStatus.php b/src/Models/Operations/CreatePartnerNetworkStatus.php new file mode 100644 index 00000000..4b2cb2cd --- /dev/null +++ b/src/Models/Operations/CreatePartnerNetworkStatus.php @@ -0,0 +1,20 @@ +|null')] public ?array $links; + /** + * The tags associated with the partner. + * + * @var ?array<\Dub\Models\Operations\CreatePartnerTags> $tags + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('tags')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Dub\Models\Operations\CreatePartnerTags>|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?array $tags = null; + /** * A brief description of the partner and their background. * @@ -200,6 +219,14 @@ class CreatePartnerResponseBody #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $saleRewardId = null; + /** + * + * @var ?string $referralRewardId + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('referralRewardId')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?string $referralRewardId = null; + /** * * @var ?string $discountId @@ -363,6 +390,16 @@ class CreatePartnerResponseBody #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $tiktok = null; + /** + * DEPRECATED: Use `networkStatus` instead. + * + * @var ?string $trustedAt + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('trustedAt')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?string $trustedAt = null; + /** * The total commissions paid to the partner for their referrals * @@ -429,23 +466,25 @@ class CreatePartnerResponseBody /** * @param string $id * @param string $name + * @param \Dub\Models\Operations\CreatePartnerNetworkStatus $networkStatus * @param string $programId * @param string $partnerId * @param string $createdAt * @param \Dub\Models\Operations\CreatePartnerStatus $status - * @param ?string $companyName + * @param ?string $username * @param ?string $email * @param ?string $image * @param ?string $country + * @param ?string $companyName * @param ?\Dub\Models\Operations\CreatePartnerDefaultPayoutMethod $defaultPayoutMethod * @param ?string $paypalEmail * @param ?string $stripeConnectId * @param ?string $payoutsEnabledAt - * @param ?string $trustedAt * @param ?string $identityVerifiedAt * @param ?string $tenantId * @param ?array<\Dub\Models\Operations\CreatePartnerLinks> $links * @param ?float $totalCommissions + * @param ?array<\Dub\Models\Operations\CreatePartnerTags> $tags * @param ?float $totalClicks * @param ?float $totalLeads * @param ?float $totalConversions @@ -457,6 +496,7 @@ class CreatePartnerResponseBody * @param ?string $clickRewardId * @param ?string $leadRewardId * @param ?string $saleRewardId + * @param ?string $referralRewardId * @param ?string $discountId * @param ?string $applicationId * @param ?string $bannedAt @@ -475,33 +515,37 @@ class CreatePartnerResponseBody * @param ?string $linkedin * @param ?string $instagram * @param ?string $tiktok + * @param ?string $trustedAt * @phpstan-pure */ - public function __construct(string $id, string $name, string $programId, string $partnerId, string $createdAt, CreatePartnerStatus $status, ?string $companyName = null, ?string $email = null, ?string $image = null, ?string $country = null, ?CreatePartnerDefaultPayoutMethod $defaultPayoutMethod = null, ?string $paypalEmail = null, ?string $stripeConnectId = null, ?string $payoutsEnabledAt = null, ?string $trustedAt = null, ?string $identityVerifiedAt = null, ?string $tenantId = null, ?array $links = null, ?string $description = null, ?string $groupId = null, ?string $clickRewardId = null, ?string $leadRewardId = null, ?string $saleRewardId = null, ?string $discountId = null, ?string $applicationId = null, ?string $bannedAt = null, ?CreatePartnerBannedReason $bannedReason = null, ?CreatePartnerReferralFormData $referralFormData = null, ?CreatePartnerApplication $application = null, ?float $earningsPerClick = null, ?float $averageLifetimeValue = null, ?float $clickToLeadRate = null, ?float $clickToConversionRate = null, ?float $leadToConversionRate = null, ?float $returnOnAdSpend = null, ?string $website = null, ?string $youtube = null, ?string $twitter = null, ?string $linkedin = null, ?string $instagram = null, ?string $tiktok = null, ?float $totalCommissions = 0, ?float $totalClicks = 0, ?float $totalLeads = 0, ?float $totalConversions = 0, ?float $totalSales = 0, ?float $totalSaleAmount = 0, ?float $netRevenue = 0) + public function __construct(string $id, string $name, CreatePartnerNetworkStatus $networkStatus, string $programId, string $partnerId, string $createdAt, CreatePartnerStatus $status, ?string $username = null, ?string $email = null, ?string $image = null, ?string $country = null, ?string $companyName = null, ?CreatePartnerDefaultPayoutMethod $defaultPayoutMethod = null, ?string $paypalEmail = null, ?string $stripeConnectId = null, ?string $payoutsEnabledAt = null, ?string $identityVerifiedAt = null, ?string $tenantId = null, ?array $links = null, ?array $tags = null, ?string $description = null, ?string $groupId = null, ?string $clickRewardId = null, ?string $leadRewardId = null, ?string $saleRewardId = null, ?string $referralRewardId = null, ?string $discountId = null, ?string $applicationId = null, ?string $bannedAt = null, ?CreatePartnerBannedReason $bannedReason = null, ?CreatePartnerReferralFormData $referralFormData = null, ?CreatePartnerApplication $application = null, ?float $earningsPerClick = null, ?float $averageLifetimeValue = null, ?float $clickToLeadRate = null, ?float $clickToConversionRate = null, ?float $leadToConversionRate = null, ?float $returnOnAdSpend = null, ?string $website = null, ?string $youtube = null, ?string $twitter = null, ?string $linkedin = null, ?string $instagram = null, ?string $tiktok = null, ?string $trustedAt = null, ?float $totalCommissions = 0, ?float $totalClicks = 0, ?float $totalLeads = 0, ?float $totalConversions = 0, ?float $totalSales = 0, ?float $totalSaleAmount = 0, ?float $netRevenue = 0) { $this->id = $id; $this->name = $name; + $this->networkStatus = $networkStatus; $this->programId = $programId; $this->partnerId = $partnerId; $this->createdAt = $createdAt; $this->status = $status; - $this->companyName = $companyName; + $this->username = $username; $this->email = $email; $this->image = $image; $this->country = $country; + $this->companyName = $companyName; $this->defaultPayoutMethod = $defaultPayoutMethod; $this->paypalEmail = $paypalEmail; $this->stripeConnectId = $stripeConnectId; $this->payoutsEnabledAt = $payoutsEnabledAt; - $this->trustedAt = $trustedAt; $this->identityVerifiedAt = $identityVerifiedAt; $this->tenantId = $tenantId; $this->links = $links; + $this->tags = $tags; $this->description = $description; $this->groupId = $groupId; $this->clickRewardId = $clickRewardId; $this->leadRewardId = $leadRewardId; $this->saleRewardId = $saleRewardId; + $this->referralRewardId = $referralRewardId; $this->discountId = $discountId; $this->applicationId = $applicationId; $this->bannedAt = $bannedAt; @@ -520,6 +564,7 @@ public function __construct(string $id, string $name, string $programId, string $this->linkedin = $linkedin; $this->instagram = $instagram; $this->tiktok = $tiktok; + $this->trustedAt = $trustedAt; $this->totalCommissions = $totalCommissions; $this->totalClicks = $totalClicks; $this->totalLeads = $totalLeads; diff --git a/src/Models/Operations/CreatePartnerTags.php b/src/Models/Operations/CreatePartnerTags.php new file mode 100644 index 00000000..3fb6a916 --- /dev/null +++ b/src/Models/Operations/CreatePartnerTags.php @@ -0,0 +1,38 @@ +id = $id; + $this->name = $name; + } +} \ No newline at end of file diff --git a/src/Models/Operations/ListCommissionsRequest.php b/src/Models/Operations/ListCommissionsRequest.php index 248f2806..aadfd401 100644 --- a/src/Models/Operations/ListCommissionsRequest.php +++ b/src/Models/Operations/ListCommissionsRequest.php @@ -12,6 +12,7 @@ class ListCommissionsRequest { /** + * Filter the list of commissions by type. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `sale`, `sale,lead`, `-click`. * * @var ?\Dub\Models\Operations\Type $type */ @@ -35,7 +36,7 @@ class ListCommissionsRequest public ?string $payoutId = null; /** - * Filter the list of commissions by the associated partner. When specified, takes precedence over `tenantId`. + * Filter the list of commissions by the associated partner. When specified, takes precedence over `tenantId`. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `partner_abc`, `partner_abc,partner_xyz`, `-partner_abc`. * * @var ?string $partnerId */ @@ -51,13 +52,21 @@ class ListCommissionsRequest public ?string $tenantId = null; /** - * Filter the list of commissions by the associated partner group. + * Filter the list of commissions by the associated partner group. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `group_abc`, `group_abc,group_xyz`, `-group_abc`. * * @var ?string $groupId */ #[SpeakeasyMetadata('queryParam:style=form,explode=true,name=groupId')] public ?string $groupId = null; + /** + * Filter the list of commissions by the associated partner tag. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `ptag_abc`, `ptag_abc,ptag_xyz`, `-ptag_abc`. + * + * @var ?string $partnerTagId + */ + #[SpeakeasyMetadata('queryParam:style=form,explode=true,name=partnerTagId')] + public ?string $partnerTagId = null; + /** * Filter the list of commissions by the associated invoice. Since invoiceId is unique on a per-program basis, this will only return one commission per invoice. * @@ -160,6 +169,7 @@ class ListCommissionsRequest * @param ?string $partnerId * @param ?string $tenantId * @param ?string $groupId + * @param ?string $partnerTagId * @param ?string $invoiceId * @param ?\Dub\Models\Operations\QueryParamStatus $status * @param ?\Dub\Models\Operations\ListCommissionsQueryParamSortBy $sortBy @@ -174,7 +184,7 @@ class ListCommissionsRequest * @param ?float $pageSize * @phpstan-pure */ - public function __construct(?Type $type = null, ?string $customerId = null, ?string $payoutId = null, ?string $partnerId = null, ?string $tenantId = null, ?string $groupId = null, ?string $invoiceId = null, ?QueryParamStatus $status = null, ?string $start = null, ?string $end = null, ?string $timezone = null, ?string $endingBefore = null, ?string $startingAfter = null, ?float $page = null, ?ListCommissionsQueryParamSortBy $sortBy = ListCommissionsQueryParamSortBy::CreatedAt, ?ListCommissionsQueryParamSortOrder $sortOrder = ListCommissionsQueryParamSortOrder::Desc, ?ListCommissionsQueryParamInterval $interval = ListCommissionsQueryParamInterval::All, ?float $pageSize = 100) + public function __construct(?Type $type = null, ?string $customerId = null, ?string $payoutId = null, ?string $partnerId = null, ?string $tenantId = null, ?string $groupId = null, ?string $partnerTagId = null, ?string $invoiceId = null, ?QueryParamStatus $status = null, ?string $start = null, ?string $end = null, ?string $timezone = null, ?string $endingBefore = null, ?string $startingAfter = null, ?float $page = null, ?ListCommissionsQueryParamSortBy $sortBy = ListCommissionsQueryParamSortBy::CreatedAt, ?ListCommissionsQueryParamSortOrder $sortOrder = ListCommissionsQueryParamSortOrder::Desc, ?ListCommissionsQueryParamInterval $interval = ListCommissionsQueryParamInterval::All, ?float $pageSize = 100) { $this->type = $type; $this->customerId = $customerId; @@ -182,6 +192,7 @@ public function __construct(?Type $type = null, ?string $customerId = null, ?str $this->partnerId = $partnerId; $this->tenantId = $tenantId; $this->groupId = $groupId; + $this->partnerTagId = $partnerTagId; $this->invoiceId = $invoiceId; $this->status = $status; $this->start = $start; diff --git a/src/Models/Operations/ListCommissionsType.php b/src/Models/Operations/ListCommissionsType.php index 3bcf84fb..c2c71b62 100644 --- a/src/Models/Operations/ListCommissionsType.php +++ b/src/Models/Operations/ListCommissionsType.php @@ -14,5 +14,6 @@ enum ListCommissionsType: string case Click = 'click'; case Lead = 'lead'; case Sale = 'sale'; + case Referral = 'referral'; case Custom = 'custom'; } diff --git a/src/Models/Operations/ListEventsRequest.php b/src/Models/Operations/ListEventsRequest.php index a3cb6e8d..460060e0 100644 --- a/src/Models/Operations/ListEventsRequest.php +++ b/src/Models/Operations/ListEventsRequest.php @@ -67,6 +67,14 @@ class ListEventsRequest #[SpeakeasyMetadata('queryParam:style=form,explode=true,name=folderId')] public ?string $folderId = null; + /** + * The partner tag ID(s) to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `ptag_123`, `ptag_123,ptag_456`, `-ptag_789`. + * + * @var ?string $partnerTagId + */ + #[SpeakeasyMetadata('queryParam:style=form,explode=true,name=partnerTagId')] + public ?string $partnerTagId = null; + /** * The group ID to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `grp_123`, `grp_123,grp_456`, `-grp_789`. * @@ -354,6 +362,7 @@ class ListEventsRequest * @param ?string $tenantId * @param ?string $tagId * @param ?string $folderId + * @param ?string $partnerTagId * @param ?string $groupId * @param ?string $partnerId * @param ?string $customerId @@ -390,7 +399,7 @@ class ListEventsRequest * @param ?\Dub\Models\Operations\Order $order * @phpstan-pure */ - public function __construct(?string $domain = null, ?string $key = null, ?string $linkId = null, ?string $externalId = null, ?string $tenantId = null, ?string $tagId = null, ?string $folderId = null, ?string $groupId = null, ?string $partnerId = null, ?string $customerId = null, ?QueryParamInterval $interval = null, ?string $start = null, ?string $end = null, ?string $country = null, ?string $city = null, ?string $region = null, ?string $continent = null, ?string $device = null, ?string $browser = null, ?string $os = null, ?string $trigger = null, ?string $referer = null, ?string $refererUrl = null, ?string $url = null, ?string $utmSource = null, ?string $utmMedium = null, ?string $utmCampaign = null, ?string $utmTerm = null, ?string $utmContent = null, ?bool $root = null, ?QueryParamSaleType $saleType = null, ?string $query = null, ?string $programId = null, ?string $tagIds = null, ?bool $qr = null, ?QueryParamEvent $event = QueryParamEvent::Clicks, ?string $timezone = 'UTC', ?float $page = 1, ?float $limit = 100, ?QueryParamSortOrder $sortOrder = QueryParamSortOrder::Desc, ?QueryParamSortBy $sortBy = QueryParamSortBy::Timestamp, ?Order $order = Order::Desc) + public function __construct(?string $domain = null, ?string $key = null, ?string $linkId = null, ?string $externalId = null, ?string $tenantId = null, ?string $tagId = null, ?string $folderId = null, ?string $partnerTagId = null, ?string $groupId = null, ?string $partnerId = null, ?string $customerId = null, ?QueryParamInterval $interval = null, ?string $start = null, ?string $end = null, ?string $country = null, ?string $city = null, ?string $region = null, ?string $continent = null, ?string $device = null, ?string $browser = null, ?string $os = null, ?string $trigger = null, ?string $referer = null, ?string $refererUrl = null, ?string $url = null, ?string $utmSource = null, ?string $utmMedium = null, ?string $utmCampaign = null, ?string $utmTerm = null, ?string $utmContent = null, ?bool $root = null, ?QueryParamSaleType $saleType = null, ?string $query = null, ?string $programId = null, ?string $tagIds = null, ?bool $qr = null, ?QueryParamEvent $event = QueryParamEvent::Clicks, ?string $timezone = 'UTC', ?float $page = 1, ?float $limit = 100, ?QueryParamSortOrder $sortOrder = QueryParamSortOrder::Desc, ?QueryParamSortBy $sortBy = QueryParamSortBy::Timestamp, ?Order $order = Order::Desc) { $this->domain = $domain; $this->key = $key; @@ -399,6 +408,7 @@ public function __construct(?string $domain = null, ?string $key = null, ?string $this->tenantId = $tenantId; $this->tagId = $tagId; $this->folderId = $folderId; + $this->partnerTagId = $partnerTagId; $this->groupId = $groupId; $this->partnerId = $partnerId; $this->customerId = $customerId; diff --git a/src/Models/Operations/ListPartnersResponseBody.php b/src/Models/Operations/ListPartnersResponseBody.php index 518ceb69..764a3f14 100644 --- a/src/Models/Operations/ListPartnersResponseBody.php +++ b/src/Models/Operations/ListPartnersResponseBody.php @@ -27,6 +27,15 @@ class ListPartnersResponseBody #[\Speakeasy\Serializer\Annotation\SerializedName('name')] public string $name; + /** + * The partner's network status on Dub. + * + * @var \Dub\Models\Operations\NetworkStatus $networkStatus + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('networkStatus')] + #[\Speakeasy\Serializer\Annotation\Type('\Dub\Models\Operations\NetworkStatus')] + public NetworkStatus $networkStatus; + /** * The program's unique ID on Dub. * @@ -60,12 +69,12 @@ class ListPartnersResponseBody public ListPartnersStatus $status; /** - * If the partner profile type is a company, this is the partner's legal company name. + * The partner's unique username on Dub. * - * @var ?string $companyName + * @var ?string $username */ - #[\Speakeasy\Serializer\Annotation\SerializedName('companyName')] - public ?string $companyName; + #[\Speakeasy\Serializer\Annotation\SerializedName('username')] + public ?string $username; /** * The partner's email address. Should be a unique value across Dub. @@ -91,6 +100,14 @@ class ListPartnersResponseBody #[\Speakeasy\Serializer\Annotation\SerializedName('country')] public ?string $country; + /** + * If the partner profile type is a company, this is the partner's legal company name. + * + * @var ?string $companyName + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('companyName')] + public ?string $companyName; + /** * The partner's default payout method. Connect: Bank account payouts via Stripe Connect; Stablecoin: USDC payouts directly to a crypto wallet; PayPal: Payouts via PayPal * @@ -124,14 +141,6 @@ class ListPartnersResponseBody #[\Speakeasy\Serializer\Annotation\SerializedName('payoutsEnabledAt')] public ?string $payoutsEnabledAt; - /** - * The date when the partner received the trusted badge in the partner network. - * - * @var ?string $trustedAt - */ - #[\Speakeasy\Serializer\Annotation\SerializedName('trustedAt')] - public ?string $trustedAt; - /** * The date when the partner's identity was verified. * @@ -157,6 +166,16 @@ class ListPartnersResponseBody #[\Speakeasy\Serializer\Annotation\Type('array<\Dub\Models\Operations\Links>|null')] public ?array $links; + /** + * The tags associated with the partner. + * + * @var ?array<\Dub\Models\Operations\Tags> $tags + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('tags')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Dub\Models\Operations\Tags>|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?array $tags = null; + /** * A brief description of the partner and their background. * @@ -199,6 +218,14 @@ class ListPartnersResponseBody #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $saleRewardId = null; + /** + * + * @var ?string $referralRewardId + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('referralRewardId')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?string $referralRewardId = null; + /** * * @var ?string $discountId @@ -362,6 +389,16 @@ class ListPartnersResponseBody #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $tiktok = null; + /** + * DEPRECATED: Use `networkStatus` instead. + * + * @var ?string $trustedAt + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('trustedAt')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?string $trustedAt = null; + /** * The total commissions paid to the partner for their referrals * @@ -428,23 +465,25 @@ class ListPartnersResponseBody /** * @param string $id * @param string $name + * @param \Dub\Models\Operations\NetworkStatus $networkStatus * @param string $programId * @param string $partnerId * @param string $createdAt * @param \Dub\Models\Operations\ListPartnersStatus $status - * @param ?string $companyName + * @param ?string $username * @param ?string $email * @param ?string $image * @param ?string $country + * @param ?string $companyName * @param ?\Dub\Models\Operations\DefaultPayoutMethod $defaultPayoutMethod * @param ?string $paypalEmail * @param ?string $stripeConnectId * @param ?string $payoutsEnabledAt - * @param ?string $trustedAt * @param ?string $identityVerifiedAt * @param ?string $tenantId * @param ?array<\Dub\Models\Operations\Links> $links * @param ?float $totalCommissions + * @param ?array<\Dub\Models\Operations\Tags> $tags * @param ?float $totalClicks * @param ?float $totalLeads * @param ?float $totalConversions @@ -456,6 +495,7 @@ class ListPartnersResponseBody * @param ?string $clickRewardId * @param ?string $leadRewardId * @param ?string $saleRewardId + * @param ?string $referralRewardId * @param ?string $discountId * @param ?string $applicationId * @param ?string $bannedAt @@ -474,33 +514,37 @@ class ListPartnersResponseBody * @param ?string $linkedin * @param ?string $instagram * @param ?string $tiktok + * @param ?string $trustedAt * @phpstan-pure */ - public function __construct(string $id, string $name, string $programId, string $partnerId, string $createdAt, ListPartnersStatus $status, ?string $companyName = null, ?string $email = null, ?string $image = null, ?string $country = null, ?DefaultPayoutMethod $defaultPayoutMethod = null, ?string $paypalEmail = null, ?string $stripeConnectId = null, ?string $payoutsEnabledAt = null, ?string $trustedAt = null, ?string $identityVerifiedAt = null, ?string $tenantId = null, ?array $links = null, ?string $description = null, ?string $groupId = null, ?string $clickRewardId = null, ?string $leadRewardId = null, ?string $saleRewardId = null, ?string $discountId = null, ?string $applicationId = null, ?string $bannedAt = null, ?BannedReason $bannedReason = null, ?ReferralFormData $referralFormData = null, ?Application $application = null, ?float $earningsPerClick = null, ?float $averageLifetimeValue = null, ?float $clickToLeadRate = null, ?float $clickToConversionRate = null, ?float $leadToConversionRate = null, ?float $returnOnAdSpend = null, ?string $website = null, ?string $youtube = null, ?string $twitter = null, ?string $linkedin = null, ?string $instagram = null, ?string $tiktok = null, ?float $totalCommissions = 0, ?float $totalClicks = 0, ?float $totalLeads = 0, ?float $totalConversions = 0, ?float $totalSales = 0, ?float $totalSaleAmount = 0, ?float $netRevenue = 0) + public function __construct(string $id, string $name, NetworkStatus $networkStatus, string $programId, string $partnerId, string $createdAt, ListPartnersStatus $status, ?string $username = null, ?string $email = null, ?string $image = null, ?string $country = null, ?string $companyName = null, ?DefaultPayoutMethod $defaultPayoutMethod = null, ?string $paypalEmail = null, ?string $stripeConnectId = null, ?string $payoutsEnabledAt = null, ?string $identityVerifiedAt = null, ?string $tenantId = null, ?array $links = null, ?array $tags = null, ?string $description = null, ?string $groupId = null, ?string $clickRewardId = null, ?string $leadRewardId = null, ?string $saleRewardId = null, ?string $referralRewardId = null, ?string $discountId = null, ?string $applicationId = null, ?string $bannedAt = null, ?BannedReason $bannedReason = null, ?ReferralFormData $referralFormData = null, ?Application $application = null, ?float $earningsPerClick = null, ?float $averageLifetimeValue = null, ?float $clickToLeadRate = null, ?float $clickToConversionRate = null, ?float $leadToConversionRate = null, ?float $returnOnAdSpend = null, ?string $website = null, ?string $youtube = null, ?string $twitter = null, ?string $linkedin = null, ?string $instagram = null, ?string $tiktok = null, ?string $trustedAt = null, ?float $totalCommissions = 0, ?float $totalClicks = 0, ?float $totalLeads = 0, ?float $totalConversions = 0, ?float $totalSales = 0, ?float $totalSaleAmount = 0, ?float $netRevenue = 0) { $this->id = $id; $this->name = $name; + $this->networkStatus = $networkStatus; $this->programId = $programId; $this->partnerId = $partnerId; $this->createdAt = $createdAt; $this->status = $status; - $this->companyName = $companyName; + $this->username = $username; $this->email = $email; $this->image = $image; $this->country = $country; + $this->companyName = $companyName; $this->defaultPayoutMethod = $defaultPayoutMethod; $this->paypalEmail = $paypalEmail; $this->stripeConnectId = $stripeConnectId; $this->payoutsEnabledAt = $payoutsEnabledAt; - $this->trustedAt = $trustedAt; $this->identityVerifiedAt = $identityVerifiedAt; $this->tenantId = $tenantId; $this->links = $links; + $this->tags = $tags; $this->description = $description; $this->groupId = $groupId; $this->clickRewardId = $clickRewardId; $this->leadRewardId = $leadRewardId; $this->saleRewardId = $saleRewardId; + $this->referralRewardId = $referralRewardId; $this->discountId = $discountId; $this->applicationId = $applicationId; $this->bannedAt = $bannedAt; @@ -519,6 +563,7 @@ public function __construct(string $id, string $name, string $programId, string $this->linkedin = $linkedin; $this->instagram = $instagram; $this->tiktok = $tiktok; + $this->trustedAt = $trustedAt; $this->totalCommissions = $totalCommissions; $this->totalClicks = $totalClicks; $this->totalLeads = $totalLeads; diff --git a/src/Models/Operations/NetworkStatus.php b/src/Models/Operations/NetworkStatus.php new file mode 100644 index 00000000..86e7a2dd --- /dev/null +++ b/src/Models/Operations/NetworkStatus.php @@ -0,0 +1,20 @@ +partnerId = $partnerId; + $this->rejectionReason = $rejectionReason; + $this->rejectionNote = $rejectionNote; + $this->flagForFraud = $flagForFraud; + $this->flagForFraudReason = $flagForFraudReason; + $this->reapplicationTimeframe = $reapplicationTimeframe; + } +} \ No newline at end of file diff --git a/src/Models/Operations/RejectPartnerResponse.php b/src/Models/Operations/RejectPartnerApplicationResponse.php similarity index 78% rename from src/Models/Operations/RejectPartnerResponse.php rename to src/Models/Operations/RejectPartnerApplicationResponse.php index 33c44f96..c8cb96c6 100644 --- a/src/Models/Operations/RejectPartnerResponse.php +++ b/src/Models/Operations/RejectPartnerApplicationResponse.php @@ -9,7 +9,7 @@ namespace Dub\Models\Operations; -class RejectPartnerResponse +class RejectPartnerApplicationResponse { /** * HTTP response content type for this operation @@ -35,18 +35,18 @@ class RejectPartnerResponse /** * The rejected partner * - * @var ?\Dub\Models\Operations\RejectPartnerResponseBody $object + * @var ?\Dub\Models\Operations\RejectPartnerApplicationResponseBody $object */ - public ?RejectPartnerResponseBody $object = null; + public ?RejectPartnerApplicationResponseBody $object = null; /** * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?\Dub\Models\Operations\RejectPartnerResponseBody $object + * @param ?\Dub\Models\Operations\RejectPartnerApplicationResponseBody $object * @phpstan-pure */ - public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?RejectPartnerResponseBody $object = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?RejectPartnerApplicationResponseBody $object = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/RejectPartnerResponseBody.php b/src/Models/Operations/RejectPartnerApplicationResponseBody.php similarity index 82% rename from src/Models/Operations/RejectPartnerResponseBody.php rename to src/Models/Operations/RejectPartnerApplicationResponseBody.php index 38546bbc..fc404a65 100644 --- a/src/Models/Operations/RejectPartnerResponseBody.php +++ b/src/Models/Operations/RejectPartnerApplicationResponseBody.php @@ -9,8 +9,8 @@ namespace Dub\Models\Operations; -/** RejectPartnerResponseBody - The rejected partner */ -class RejectPartnerResponseBody +/** RejectPartnerApplicationResponseBody - The rejected partner */ +class RejectPartnerApplicationResponseBody { /** * The ID of the rejected partner. diff --git a/src/Models/Operations/RejectPartnerRequestBody.php b/src/Models/Operations/RejectPartnerRequestBody.php deleted file mode 100644 index 75145f28..00000000 --- a/src/Models/Operations/RejectPartnerRequestBody.php +++ /dev/null @@ -1,64 +0,0 @@ -partnerId = $partnerId; - $this->rejectionReason = $rejectionReason; - $this->rejectionNote = $rejectionNote; - $this->allowImmediateReapply = $allowImmediateReapply; - } -} \ No newline at end of file diff --git a/src/Models/Operations/ResponseBodyPaymentProcessor.php b/src/Models/Operations/ResponseBodyPaymentProcessor.php index 3cd8bec7..7f82c8af 100644 --- a/src/Models/Operations/ResponseBodyPaymentProcessor.php +++ b/src/Models/Operations/ResponseBodyPaymentProcessor.php @@ -16,6 +16,8 @@ enum ResponseBodyPaymentProcessor: string case Shopify = 'shopify'; case Polar = 'polar'; case Paddle = 'paddle'; + case Apple = 'apple'; case Revenuecat = 'revenuecat'; + case Dub = 'dub'; case Custom = 'custom'; } diff --git a/src/Models/Operations/RetrieveAnalyticsRequest.php b/src/Models/Operations/RetrieveAnalyticsRequest.php index 834bd846..14e9d102 100644 --- a/src/Models/Operations/RetrieveAnalyticsRequest.php +++ b/src/Models/Operations/RetrieveAnalyticsRequest.php @@ -67,6 +67,14 @@ class RetrieveAnalyticsRequest #[SpeakeasyMetadata('queryParam:style=form,explode=true,name=folderId')] public ?string $folderId = null; + /** + * The partner tag ID(s) to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `ptag_123`, `ptag_123,ptag_456`, `-ptag_789`. + * + * @var ?string $partnerTagId + */ + #[SpeakeasyMetadata('queryParam:style=form,explode=true,name=partnerTagId')] + public ?string $partnerTagId = null; + /** * The group ID to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `grp_123`, `grp_123,grp_456`, `-grp_789`. * @@ -325,6 +333,7 @@ class RetrieveAnalyticsRequest * @param ?string $tenantId * @param ?string $tagId * @param ?string $folderId + * @param ?string $partnerTagId * @param ?string $groupId * @param ?string $partnerId * @param ?string $customerId @@ -356,7 +365,7 @@ class RetrieveAnalyticsRequest * @param ?bool $qr * @phpstan-pure */ - public function __construct(?string $domain = null, ?string $key = null, ?string $linkId = null, ?string $externalId = null, ?string $tenantId = null, ?string $tagId = null, ?string $folderId = null, ?string $groupId = null, ?string $partnerId = null, ?string $customerId = null, ?Interval $interval = null, ?string $start = null, ?string $end = null, ?string $country = null, ?string $city = null, ?string $region = null, ?string $continent = null, ?string $device = null, ?string $browser = null, ?string $os = null, ?string $trigger = null, ?string $referer = null, ?string $refererUrl = null, ?string $url = null, ?string $utmSource = null, ?string $utmMedium = null, ?string $utmCampaign = null, ?string $utmTerm = null, ?string $utmContent = null, ?bool $root = null, ?SaleType $saleType = null, ?string $query = null, ?string $programId = null, ?string $tagIds = null, ?bool $qr = null, ?Event $event = Event::Clicks, ?QueryParamGroupBy $groupBy = QueryParamGroupBy::Count, ?string $timezone = 'UTC') + public function __construct(?string $domain = null, ?string $key = null, ?string $linkId = null, ?string $externalId = null, ?string $tenantId = null, ?string $tagId = null, ?string $folderId = null, ?string $partnerTagId = null, ?string $groupId = null, ?string $partnerId = null, ?string $customerId = null, ?Interval $interval = null, ?string $start = null, ?string $end = null, ?string $country = null, ?string $city = null, ?string $region = null, ?string $continent = null, ?string $device = null, ?string $browser = null, ?string $os = null, ?string $trigger = null, ?string $referer = null, ?string $refererUrl = null, ?string $url = null, ?string $utmSource = null, ?string $utmMedium = null, ?string $utmCampaign = null, ?string $utmTerm = null, ?string $utmContent = null, ?bool $root = null, ?SaleType $saleType = null, ?string $query = null, ?string $programId = null, ?string $tagIds = null, ?bool $qr = null, ?Event $event = Event::Clicks, ?QueryParamGroupBy $groupBy = QueryParamGroupBy::Count, ?string $timezone = 'UTC') { $this->domain = $domain; $this->key = $key; @@ -365,6 +374,7 @@ public function __construct(?string $domain = null, ?string $key = null, ?string $this->tenantId = $tenantId; $this->tagId = $tagId; $this->folderId = $folderId; + $this->partnerTagId = $partnerTagId; $this->groupId = $groupId; $this->partnerId = $partnerId; $this->customerId = $customerId; diff --git a/src/Models/Operations/RetrieveLinksRequest.php b/src/Models/Operations/RetrievePartnerLinksRequest.php similarity index 96% rename from src/Models/Operations/RetrieveLinksRequest.php rename to src/Models/Operations/RetrievePartnerLinksRequest.php index 89432fed..8445cc14 100644 --- a/src/Models/Operations/RetrieveLinksRequest.php +++ b/src/Models/Operations/RetrievePartnerLinksRequest.php @@ -9,7 +9,7 @@ namespace Dub\Models\Operations; use Dub\Utils\SpeakeasyMetadata; -class RetrieveLinksRequest +class RetrievePartnerLinksRequest { /** * The ID of the partner to create a link for. Will take precedence over `tenantId` if provided. diff --git a/src/Models/Operations/RetrieveLinksResponse.php b/src/Models/Operations/RetrievePartnerLinksResponse.php similarity index 84% rename from src/Models/Operations/RetrieveLinksResponse.php rename to src/Models/Operations/RetrievePartnerLinksResponse.php index 98454927..cbbcdf7f 100644 --- a/src/Models/Operations/RetrieveLinksResponse.php +++ b/src/Models/Operations/RetrievePartnerLinksResponse.php @@ -9,7 +9,7 @@ namespace Dub\Models\Operations; -class RetrieveLinksResponse +class RetrievePartnerLinksResponse { /** * HTTP response content type for this operation @@ -35,7 +35,7 @@ class RetrieveLinksResponse /** * The retrieved partner links. * - * @var ?array<\Dub\Models\Operations\RetrieveLinksResponseBody> $responseBodies + * @var ?array<\Dub\Models\Operations\RetrievePartnerLinksResponseBody> $responseBodies */ public ?array $responseBodies = null; @@ -43,7 +43,7 @@ class RetrieveLinksResponse * @param string $contentType * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse - * @param ?array<\Dub\Models\Operations\RetrieveLinksResponseBody> $responseBodies + * @param ?array<\Dub\Models\Operations\RetrievePartnerLinksResponseBody> $responseBodies * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $responseBodies = null) diff --git a/src/Models/Operations/RetrieveLinksResponseBody.php b/src/Models/Operations/RetrievePartnerLinksResponseBody.php similarity index 98% rename from src/Models/Operations/RetrieveLinksResponseBody.php rename to src/Models/Operations/RetrievePartnerLinksResponseBody.php index 124e572d..97c523c3 100644 --- a/src/Models/Operations/RetrieveLinksResponseBody.php +++ b/src/Models/Operations/RetrievePartnerLinksResponseBody.php @@ -9,7 +9,7 @@ namespace Dub\Models\Operations; -class RetrieveLinksResponseBody +class RetrievePartnerLinksResponseBody { /** * The unique ID of the short link. diff --git a/src/Models/Operations/Tags.php b/src/Models/Operations/Tags.php new file mode 100644 index 00000000..03795390 --- /dev/null +++ b/src/Models/Operations/Tags.php @@ -0,0 +1,38 @@ +id = $id; + $this->name = $name; + } +} \ No newline at end of file diff --git a/src/Models/Operations/Type.php b/src/Models/Operations/Type.php index 165d28f4..3ee66fbd 100644 --- a/src/Models/Operations/Type.php +++ b/src/Models/Operations/Type.php @@ -9,11 +9,12 @@ namespace Dub\Models\Operations; - +/** Filter the list of commissions by type. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `sale`, `sale,lead`, `-click`. */ enum Type: string { case Click = 'click'; case Lead = 'lead'; case Sale = 'sale'; + case Referral = 'referral'; case Custom = 'custom'; } diff --git a/src/Models/Operations/UpdateCommissionType.php b/src/Models/Operations/UpdateCommissionType.php index b9b24d29..7176b7de 100644 --- a/src/Models/Operations/UpdateCommissionType.php +++ b/src/Models/Operations/UpdateCommissionType.php @@ -14,5 +14,6 @@ enum UpdateCommissionType: string case Click = 'click'; case Lead = 'lead'; case Sale = 'sale'; + case Referral = 'referral'; case Custom = 'custom'; } diff --git a/src/PartnerApplications.php b/src/PartnerApplications.php index 78e709d9..bd99f393 100644 --- a/src/PartnerApplications.php +++ b/src/PartnerApplications.php @@ -49,11 +49,11 @@ public function getUrl(string $baseUrl, array $urlVariables): string * * Approve a pending partner application to your program. The partner will be enrolled in the specified group and notified of the approval. * - * @param \Dub\Models\Operations\ApprovePartnerRequestBody $request - * @return \Dub\Models\Operations\ApprovePartnerResponse + * @param \Dub\Models\Operations\ApprovePartnerApplicationRequestBody $request + * @return \Dub\Models\Operations\ApprovePartnerApplicationResponse * @throws \Dub\Models\Errors\SDKException */ - public function approve(Operations\ApprovePartnerRequestBody $request, ?Options $options = null): Operations\ApprovePartnerResponse + public function approve(Operations\ApprovePartnerApplicationRequestBody $request, ?Options $options = null): Operations\ApprovePartnerApplicationResponse { $baseUrl = $this->sdkConfiguration->getTemplatedServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/partners/applications/approve'); @@ -67,7 +67,7 @@ public function approve(Operations\ApprovePartnerRequestBody $request, ?Options $httpOptions['headers']['Accept'] = 'application/json'; $httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent; $httpRequest = new \GuzzleHttp\Psr7\Request('POST', $url); - $hookContext = new HookContext($this->sdkConfiguration, $baseUrl, 'approvePartner', null, $this->sdkConfiguration->securitySource); + $hookContext = new HookContext($this->sdkConfiguration, $baseUrl, 'approvePartnerApplication', null, $this->sdkConfiguration->securitySource); $httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest); $httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions); $httpRequest = Utils\Utils::removeHeaders($httpRequest); @@ -91,8 +91,8 @@ public function approve(Operations\ApprovePartnerRequestBody $request, ?Options $serializer = Utils\JSON::createSerializer(); $responseData = (string) $httpResponse->getBody(); - $obj = $serializer->deserialize($responseData, '\Dub\Models\Operations\ApprovePartnerResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\ApprovePartnerResponse( + $obj = $serializer->deserialize($responseData, '\Dub\Models\Operations\ApprovePartnerApplicationResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\ApprovePartnerApplicationResponse( statusCode: $statusCode, contentType: $contentType, rawResponse: $httpResponse, @@ -388,11 +388,11 @@ public function list(?string $country = null, ?string $groupId = null, ?float $p * * Reject a pending partner application to your program. The partner will be notified via email that their application was not approved. * - * @param \Dub\Models\Operations\RejectPartnerRequestBody $request - * @return \Dub\Models\Operations\RejectPartnerResponse + * @param \Dub\Models\Operations\RejectPartnerApplicationRequestBody $request + * @return \Dub\Models\Operations\RejectPartnerApplicationResponse * @throws \Dub\Models\Errors\SDKException */ - public function reject(Operations\RejectPartnerRequestBody $request, ?Options $options = null): Operations\RejectPartnerResponse + public function reject(Operations\RejectPartnerApplicationRequestBody $request, ?Options $options = null): Operations\RejectPartnerApplicationResponse { $baseUrl = $this->sdkConfiguration->getTemplatedServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/partners/applications/reject'); @@ -406,7 +406,7 @@ public function reject(Operations\RejectPartnerRequestBody $request, ?Options $o $httpOptions['headers']['Accept'] = 'application/json'; $httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent; $httpRequest = new \GuzzleHttp\Psr7\Request('POST', $url); - $hookContext = new HookContext($this->sdkConfiguration, $baseUrl, 'rejectPartner', null, $this->sdkConfiguration->securitySource); + $hookContext = new HookContext($this->sdkConfiguration, $baseUrl, 'rejectPartnerApplication', null, $this->sdkConfiguration->securitySource); $httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest); $httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions); $httpRequest = Utils\Utils::removeHeaders($httpRequest); @@ -430,8 +430,8 @@ public function reject(Operations\RejectPartnerRequestBody $request, ?Options $o $serializer = Utils\JSON::createSerializer(); $responseData = (string) $httpResponse->getBody(); - $obj = $serializer->deserialize($responseData, '\Dub\Models\Operations\RejectPartnerResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\RejectPartnerResponse( + $obj = $serializer->deserialize($responseData, '\Dub\Models\Operations\RejectPartnerApplicationResponseBody', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\RejectPartnerApplicationResponse( statusCode: $statusCode, contentType: $contentType, rawResponse: $httpResponse, diff --git a/src/Partners.php b/src/Partners.php index c3929d81..a0ae015a 100644 --- a/src/Partners.php +++ b/src/Partners.php @@ -869,31 +869,26 @@ public function list(?Operations\ListPartnersRequest $request = null, ?Options $ } /** - * Retrieve a partner's links. + * Retrieve analytics for a partner * - * Retrieve a partner's links by their partner ID or tenant ID. + * Retrieve analytics for a partner within a program. The response type vary based on the `groupBy` query parameter. * - * @param ?string $partnerId - * @param ?string $tenantId - * @return \Dub\Models\Operations\RetrieveLinksResponse + * @param ?\Dub\Models\Operations\RetrievePartnerAnalyticsRequest $request + * @return \Dub\Models\Operations\RetrievePartnerAnalyticsResponse * @throws \Dub\Models\Errors\SDKException */ - public function retrieveLinks(?string $partnerId = null, ?string $tenantId = null, ?Options $options = null): Operations\RetrieveLinksResponse + public function analytics(?Operations\RetrievePartnerAnalyticsRequest $request = null, ?Options $options = null): Operations\RetrievePartnerAnalyticsResponse { - $request = new Operations\RetrieveLinksRequest( - partnerId: $partnerId, - tenantId: $tenantId, - ); $baseUrl = $this->sdkConfiguration->getTemplatedServerUrl(); - $url = Utils\Utils::generateUrl($baseUrl, '/partners/links'); + $url = Utils\Utils::generateUrl($baseUrl, '/partners/analytics'); $urlOverride = null; $httpOptions = ['http_errors' => false]; - $qp = Utils\Utils::getQueryParams(Operations\RetrieveLinksRequest::class, $request, $urlOverride); + $qp = Utils\Utils::getQueryParams(Operations\RetrievePartnerAnalyticsRequest::class, $request, $urlOverride); $httpOptions['headers']['Accept'] = 'application/json'; $httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent; $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $hookContext = new HookContext($this->sdkConfiguration, $baseUrl, 'retrieveLinks', null, $this->sdkConfiguration->securitySource); + $hookContext = new HookContext($this->sdkConfiguration, $baseUrl, 'retrievePartnerAnalytics', null, $this->sdkConfiguration->securitySource); $httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest); $httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp); $httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions); @@ -918,12 +913,12 @@ public function retrieveLinks(?string $partnerId = null, ?string $tenantId = nul $serializer = Utils\JSON::createSerializer(); $responseData = (string) $httpResponse->getBody(); - $obj = $serializer->deserialize($responseData, 'array<\Dub\Models\Operations\RetrieveLinksResponseBody>', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\RetrieveLinksResponse( + $obj = $serializer->deserialize($responseData, '\Dub\Models\Components\PartnerAnalyticsCount|array<\Dub\Models\Components\PartnerAnalyticsTimeseries>|array<\Dub\Models\Components\PartnerAnalyticsTopLinks>', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\RetrievePartnerAnalyticsResponse( statusCode: $statusCode, contentType: $contentType, rawResponse: $httpResponse, - responseBodies: $obj); + oneOf: $obj); return $response; } else { @@ -1038,26 +1033,31 @@ public function retrieveLinks(?string $partnerId = null, ?string $tenantId = nul } /** - * Retrieve analytics for a partner + * Retrieve a partner's links. * - * Retrieve analytics for a partner within a program. The response type vary based on the `groupBy` query parameter. + * Retrieve a partner's links by their partner ID or tenant ID. * - * @param ?\Dub\Models\Operations\RetrievePartnerAnalyticsRequest $request - * @return \Dub\Models\Operations\RetrievePartnerAnalyticsResponse + * @param ?string $partnerId + * @param ?string $tenantId + * @return \Dub\Models\Operations\RetrievePartnerLinksResponse * @throws \Dub\Models\Errors\SDKException */ - public function analytics(?Operations\RetrievePartnerAnalyticsRequest $request = null, ?Options $options = null): Operations\RetrievePartnerAnalyticsResponse + public function retrieveLinks(?string $partnerId = null, ?string $tenantId = null, ?Options $options = null): Operations\RetrievePartnerLinksResponse { + $request = new Operations\RetrievePartnerLinksRequest( + partnerId: $partnerId, + tenantId: $tenantId, + ); $baseUrl = $this->sdkConfiguration->getTemplatedServerUrl(); - $url = Utils\Utils::generateUrl($baseUrl, '/partners/analytics'); + $url = Utils\Utils::generateUrl($baseUrl, '/partners/links'); $urlOverride = null; $httpOptions = ['http_errors' => false]; - $qp = Utils\Utils::getQueryParams(Operations\RetrievePartnerAnalyticsRequest::class, $request, $urlOverride); + $qp = Utils\Utils::getQueryParams(Operations\RetrievePartnerLinksRequest::class, $request, $urlOverride); $httpOptions['headers']['Accept'] = 'application/json'; $httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent; $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); - $hookContext = new HookContext($this->sdkConfiguration, $baseUrl, 'retrievePartnerAnalytics', null, $this->sdkConfiguration->securitySource); + $hookContext = new HookContext($this->sdkConfiguration, $baseUrl, 'retrievePartnerLinks', null, $this->sdkConfiguration->securitySource); $httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest); $httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp); $httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions); @@ -1082,12 +1082,12 @@ public function analytics(?Operations\RetrievePartnerAnalyticsRequest $request = $serializer = Utils\JSON::createSerializer(); $responseData = (string) $httpResponse->getBody(); - $obj = $serializer->deserialize($responseData, '\Dub\Models\Components\PartnerAnalyticsCount|array<\Dub\Models\Components\PartnerAnalyticsTimeseries>|array<\Dub\Models\Components\PartnerAnalyticsTopLinks>', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); - $response = new Operations\RetrievePartnerAnalyticsResponse( + $obj = $serializer->deserialize($responseData, 'array<\Dub\Models\Operations\RetrievePartnerLinksResponseBody>', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\RetrievePartnerLinksResponse( statusCode: $statusCode, contentType: $contentType, rawResponse: $httpResponse, - oneOf: $obj); + responseBodies: $obj); return $response; } else { diff --git a/src/SDKConfiguration.php b/src/SDKConfiguration.php index e9399c46..f0c413d7 100644 --- a/src/SDKConfiguration.php +++ b/src/SDKConfiguration.php @@ -26,11 +26,11 @@ class SDKConfiguration public string $openapiDocVersion = '0.0.1'; - public string $sdkVersion = '0.15.9'; + public string $sdkVersion = '0.15.10'; - public string $genVersion = '2.881.4'; + public string $genVersion = '2.889.1'; - public string $userAgent = 'speakeasy-sdk/php 0.15.9 2.881.4 0.0.1 dub/dub-php'; + public string $userAgent = 'speakeasy-sdk/php 0.15.10 2.889.1 0.0.1 dub/dub-php'; public ?RetryConfig $retryConfig = null;